(function(){function dc(){this.BD={};this.QR={}}dc.o9=[];dc.Ni=function(h){var e=dc.o9;if(e.length!=0){var $=new B(D.E.Pt);
for(var G=0;G<e.length;G++)e[G].f($)}window.requestAnimationFrame(dc.Ni)};window.requestAnimationFrame(dc.Ni);
dc.prototype.UA=function(h){var e=this.BD[h];if(e==null)return!1;return e.length>0};dc.prototype.addEventListener=function(h,e){this.k(h,e,null)};
dc.prototype.k=function(h,e,$){if(this.BD[h]==null){this.BD[h]=[];this.QR[h]=[]}this.BD[h].push(e);this.QR[h].push($);
if(h==D.E.Pt){var Z=dc.o9;if(Z.indexOf(this)==-1)Z.push(this)}};dc.prototype.removeEventListener=function(h,e){var $=this.BD[h];
if($==null)return;var Z=$.indexOf(e);if(Z<0)return;var c=this.QR[h];$.splice(Z,1);c.splice(Z,1);if(h==D.E.Pt&&$.length==0){var q=dc.o9;
q.splice(q.indexOf(this),1)}};dc.prototype.f=function(h){h.currentTarget=this;if(h.target==null)h.target=this;
var e=this.BD[h.type];if(e==null)return;var $=this.QR[h.type];for(var G=0;G<e.length;G++){if($[G]==null)e[G](h);
else e[G].call($[G],h)}};function p(){this.sP={};this.OS=0;this.kQ();window.__kb=this}p.Ji=null;p.prototype.kQ=function(){var h=navigator.keyboard;
if(h&&window.top==window.self)h.getLayoutMap().then(function(e){p.Ji=e})};p.prototype.reset=function(){this.sP={};
this.OS=0};p.prototype.QT=function(h){this.OS++;this.sP[h]=!0};p.prototype.N1=function(h){this.OS--;
delete this.sP[h];if(this.OS<=0||p.VG(h,p.jP))this.reset()};p.prototype.q=function(h){for(var G=0;G<h.GK.length;
G++)if(this.sP[h.GK[G]])return!0;return!1};p.prototype.cy=function(){var h=this,e=h.q(p.ai)?10:1,$=0,Z=0;
if(h.q(p.V8))$=-e;if(h.q(p.Ns))$=e;if(h.q(p.wi))Z=-e;if(h.q(p.Xs))Z=e;return new eu($,Z)};p.prototype.sC=function(){var h=this,e=p.rG;
for(var G=0;G<10;G++)if(h.q(e[G]))return G;return-1};p.VG=function(h,e){return e.GK.indexOf(h)!=-1};
p.Zt=function(h){var e=h.code,c=!1;if(e=="")return!1;var $=p.VG,Z=p.rG.concat([p.MY,p.Lj,p.IA,p.QI]);
for(var G=0;G<Z.length;G++)if($(e,Z[G]))c=!0;if(h.altKey&&!h.shiftKey&&!h.ctrlKey&&c)return!1;return p.YB.indexOf(e)==-1||h.shiftKey&&(e=="F5"||e=="F6")};
p.a4$=function(h){var e=h.code;return e!=""&&(p.YB.indexOf(e)==-1||h.shiftKey&&(e=="F5"||e=="F6"))};
p.Js=function(h){if(typeof h=="string")return h;var e=navigator.platform.toUpperCase().indexOf("MAC")>=0;
if(h==null)return"";var $=[];for(var G=0;G<h.length;G++){var Z=h[G].S_?h[G].S_:h[G];if(e&&h[G].LN)Z=h[G].LN;
$.push(Z)}if(e||$.length==1)return $.join(" + ");else{var c=$.pop();return $.join("+")+" + "+c}};p.YB="ZoomToggle BrightnessDown BrightnessUp AudioVolumeMute AudioVolumeDown AudioVolumeUp LaunchApplication1 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Enter Shift Escape KeyV".split(" ");
p.xH=function(h){var e=h.code,$=p.Ji;if($&&$.get(e)){var Z={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},c=$.get(e).toLowerCase(),q=c.charCodeAt(0);
if(97<=q&&q<=122){var E="Key"+c.toUpperCase();e=E}else if(Z[c])e=Z[c];return e}var Z={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},c=h.key.toLowerCase(),q=c.charCodeAt(0);
if(c.length==1){if(97<=q&&q<=122){var E="Key"+c.toUpperCase();e=E}else if(Z[c])e=Z[c]}if(c=="control"&&e!="")e="ControlLeft";
return e};p.aeW={nm:"No Touch",GK:["NoTouch"]};p.Gr={S_:"Enter",GK:["Enter","NumpadEnter"]};p.ai={S_:"Shift",LN:"\u21E7",GK:["ShiftLeft","ShiftRight"]};
p.jP={S_:"Meta",GK:["MetaLeft","MetaRight","OSLeft","OSRight"]};p.tm={S_:"Ctrl",LN:"\u2318",GK:"ControlLeft ControlRight MetaLeft MetaRight OSLeft OSRight".split(" ")};
p.ys={S_:"Alt",LN:"\u2325",GK:["AltLeft","AltRight"]};p.a50={S_:"CtrlOrAlt",GK:p.tm.GK.concat(p.ys.GK)};
p.fp={S_:"Escape",GK:["Escape"]};p.P2={S_:"Space",GK:["Space"]};p.EB={S_:"Tab",GK:["Tab"]};p.alF={S_:"Home",GK:["Home"]};
p.aeE={S_:"End",GK:["End"]};p.V8={S_:"Left",GK:["ArrowLeft"]};p.wi={S_:"Up",GK:["ArrowUp"]};p.Ns={S_:"Right",GK:["ArrowRight"]};
p.Xs={S_:"Down",GK:["ArrowDown"]};p.MY={S_:"+",GK:["NumpadAdd","Equal"]};p.Lj={S_:"-",GK:["NumpadSubtract","Minus","Slash"]};
p.Ih={S_:";",GK:["Semicolon"]};p.acb={S_:"Dead",GK:["Dead"]};p.aao={S_:"=",GK:["Equal"]};p.iC={S_:"Backspace",GK:["Backspace"]};
p.PA={S_:"Delete",GK:["Delete"]};p.amg={S_:"Backslash",GK:["Backslash","IntlBackslash"]};p.a2T={S_:"Backquote",GK:["Backquote"]};
p.IA={S_:"[",GK:["BracketLeft"]};p.QI={S_:"]",GK:["BracketRight"]};p.u_={S_:".",GK:["Period"]};p.ao0={S_:",",GK:["Comma"]};
p.N4={S_:"'",GK:["Quote"]};p.U={S_:"A",GK:["KeyA"]};p.lj={S_:"B",GK:["KeyB"]};p.ok={S_:"C",GK:["KeyC"]};
p.ob={S_:"D",GK:["KeyD"]};p.E={S_:"E",GK:["KeyE"]};p.nC={S_:"F",GK:["KeyF"]};p.dP={S_:"G",GK:["KeyG"]};
p.Am={S_:"H",GK:["KeyH"]};p.J1={S_:"I",GK:["KeyI"]};p.eC={S_:"J",GK:["KeyJ"]};p.el={S_:"K",GK:["KeyK"]};
p.Hs={S_:"L",GK:["KeyL"]};p.bQ={S_:"M",GK:["KeyM"]};p.sf={S_:"N",GK:["KeyN"]};p.No={S_:"O",GK:["KeyO"]};
p.g$={S_:"P",GK:["KeyP"]};p.j$={S_:"Q",GK:["KeyQ"]};p.WT={S_:"R",GK:["KeyR"]};p.mu={S_:"S",GK:["KeyS"]};
p.V={S_:"T",GK:["KeyT"]};p.oK={S_:"U",GK:["KeyU"]};p.hK={S_:"V",GK:["KeyV"]};p.U$={S_:"W",GK:["KeyW"]};
p.Af={S_:"X",GK:["KeyX"]};p.aft={S_:"Y",GK:["KeyY"]};p.HT={S_:"Z",GK:["KeyZ"]};p.ik={S_:"0",GK:["Numpad0","Digit0"]};
p.s7={S_:"1",GK:["Numpad1","Digit1"]};p.a51={S_:"2",GK:["Numpad2","Digit2"]};p.afQ={S_:"3",GK:["Numpad3","Digit3"]};
p.a1i={S_:"4",GK:["Numpad4","Digit4"]};p.alf={S_:"5",GK:["Numpad5","Digit5"]};p.af7={S_:"6",GK:["Numpad6","Digit6"]};
p.ac2={S_:"7",GK:["Numpad7","Digit7"]};p.a6i={S_:"8",GK:["Numpad8","Digit8"]};p.a0e={S_:"9",GK:["Numpad9","Digit9"]};
p.rG=[p.ik,p.s7,p.a51,p.afQ,p.a1i,p.alf,p.af7,p.ac2,p.a6i,p.a0e];p.aeR={S_:"F1",GK:["F1"]};p.a7S={S_:"F2",GK:["F2"]};
p.acF={S_:"F3",GK:["F3"]};p.a20={S_:"FF",GK:["F4"]};p.Gm={S_:"F5",GK:["F5"]};p.akN={S_:"F6",GK:["F6"]};
p.a4P={S_:"F7",GK:["F7"]};p.afO={S_:"F8",GK:["F8"]};p.alb={S_:"F9",GK:["F9"]};p.agG={S_:"F10",GK:["F10"]};
p.aj0={S_:"F11",GK:["F11"]};p.a0G={S_:"F12",GK:["F12"]};function bc(){dc.call(this);this.Vx={};this.lw={};
this.abT=0;this.am1={};this.lt=[];this.amo=0;bc.Az=this}bc.prototype=new dc;bc.a8f=function(h,e){var G=0,$=bc.eM;
while(G<$.length){if((e>>>G&1)==1)break;G++}if(e==0||$[G][1]==""){if((e&15)!=0&&bc.RH(h,[33,126])>.7)G=0;
else if(e==0)G=0;else{G=0}}return $[G][1]};bc.cI=120;bc.SA=20;bc.cols=16;bc.w8=function(h){var e=h.name.postScriptName;
if(e==null)return null;return e.replace(/ /g,"-")};bc.on=function(h){var e=h.name,$=e.typoFamilyName?e.typoFamilyName:e.fontFamily,Z=e.typoSubfamilyName?e.typoSubfamilyName:e.fontSubfamily,c=bc.ah2,q=$.toLowerCase();
for(var G=0;G<c.length;G++){if(c[G]=="roman")continue;if(q.endsWith(" "+c[G])||q.endsWith("-"+c[G])){var E=$.length-c[G].length,P=$.slice(E);
$=$.slice(0,E-1);if(P!=""){if(Z=="Regular"||Z==$+" Regular")Z=P;else Z=P+" "+Z}break}}var a="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 G=0;G<a.length;G++)if($.startsWith(a[G])){var P=$.slice(a[G].length);$=a[G];if(P.startsWith(" ")||P.startsWith("-"))P=P.slice(1);
if(P!=""){if(Z=="Regular")Z=P;else Z=P+" "+Z}break}var j={"Caudex-BoldItalic":"Bold Italic","Comfortaa-Light":"Light","Comfortaa-Medium":"Medium","Comfortaa-SemiBold":"SemiBold",DevroyeSCOSF:"Regular SCOSF",DevroyeUnicode:"Regular Unicode","LeagueScriptThin-Regular":"Regular","Monda-Bold":"Bold","Nobile-Bold":"Bold","Oswald-BoldItalic":"Bold Italic","Oswald-HeavyItalic":"Heavy Italic","Oswald-LightItalic":"Light Italic","Oswald-MediumItalic":"Medium Italic","Oswald-RegularItalic":"Regular Italic","PaloAlto-Italic":"Heavy Italic"},L=j[bc.w8(h)];
if(L)Z=L;return[$,Z]};bc.prototype.a96=function(h){var e=this.Ht();for(var $ in e)if(e[$][0]==h)this.bE($)};
bc.prototype.bE=function(h,e){if(this.Vx[h])return this.Vx[h];if(this.lw[h])return null;var $=null,Z=this.Ht();
if(Z[h]!=null)$=Z[h][5];if($==null){var c=bc.abm[h];if(c==null){var q="DejaVuSans DejaVuSans-Bold DejaVuSans-Oblique DejaVuSans-BoldOblique DejaVuSerif DejaVuSerif-Bold DejaVuSerif-Italic DejaVuSerif-BoldItalic".split(" "),E=h.toLowerCase(),P=0;
if(E.indexOf("sans")!=-1)P=0;else if(E.indexOf("serif")!=-1)P=4;var a=E.indexOf("bold")!=-1||E.indexOf("-black")!=-1,j=E.indexOf("italic")!=-1||E.indexOf("oblique")!=-1||E.endsWith("-it");
if(a&&j)P+=3;else if(j)P+=2;else if(a)P+=1;c=q[P]}if(e!=null&&e>128)c=this.XJ(e,c);if(this.am1[h]==null){this.am1[h]=1;
var L=Date.now()-this.abT>2e3?2e3:0;this.abT=Date.now();alert(h+" \u27A1 "+c,L)}return this.bE(c,e)}this.lw[h]="a";
var H=new B(D.E.P,!0);H.data={e:D.U.fu,Av:{url:"rsrc/fonts/"+$}};this.f(H)};bc.prototype.XJ=function(h,e,$){var Z=this.Vx[e];
if(Z&&Typr.U.codeToGlyph(Z,h)!=0)return e;var c=this.Ht(),q=bc.a1$(h),E=q[0];if(c[e]&&(c[e][3]&E)==0){if($)for(var G=0;
G<$.length;G++){var P=$[G].Name,a=c[P];if(a&&(a[3]&E)!=0)return P}var P=bc.eM[q[1]][4];if(c[P])return P}return e};
bc.a1$=function(h){var e=bc.eM,$=[0];for(var G=0;G<e.length;G++){var Z=e[G][2];for(var c=0;c<Z.length;
c+=2)if(Z[c]<=h&&h<=Z[c+1]){$[0]+=1<<G;$.push(G)}}if($.length==1)$.push(0);return $};bc.prototype.a8l=function(){var h=this.lt,e=h[0],$=h.length-1;
alert(e_.get([22,6,0])+" "+e+($==0?"":", ... ("+$+")")+" "+e_.get([23,0])+".",1500);this.lt=[]};bc.prototype.a5z=function(h,e){if(e!=!0){this.lt.push(h.name.fullName);
clearTimeout(this.amo);this.amo=setTimeout(this.a8l.bind(this),300)}var $=bc.w8(h),Z=this.Ht(),c=Z[$],q=bc.a3l(h);
if(c==null){var E=document.createElement("canvas"),P=E.getContext("2d");E.width=bc.cI;E.height=bc.SA;
var a=bc.SA*1.2/h.head.unitsPerEm;P.translate(4,bc.SA*.9);P.scale(a,-a);P.fillStyle="#000000";var j=Typr.U.shape(h,bc.a8f(h,q[3]),!0);
Typr.U.pathToContext(Typr.U.shapeToPath(h,j),P);P.fill();q.a1d=E.toDataURL();this.Xh(q)}delete this.lw[$];
this.Vx[$]=h};bc.akL=function(){var h=bc.eM,e=[];for(var G=0;G<h.length;G++)e.push(h[G][0]);return e};
bc.eM=[["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"]];
bc.a3l=function(h,e,$){var Z=h.name,a=0;if(bc.w8(h)==null){console.log(h);throw"No postScriptName!"}var c=bc.eM,q=[];
for(var G=0;G<c.length;G++){var E=c[G][2],P=c[G][3];q[G]=bc.RH(h,E)>P?1:0}for(var G=0;G<q.length;G++)a+=q[G]<<G;
var j=bc.on(h);return[j[0],j[1],bc.w8(h),a,$,e]};bc.RH=function(h,e){var $=0,Z=0;for(var c=0;c<e.length;
c+=2){for(var q=e[c];q<=e[c+1];q++){var E=Typr.U.codeToGlyph(h,q);if(E==0)Z++;else $++}}return $/($+Z)};
bc.a8c=function(h,e){if(h[2]<e[2])return-1;if(h[2]>e[2])return 1;return 0};bc.a0Y=function(h,e){if(h[5]=="fs/"+h[2]+".otf")h[5]="";
else if(h[5]=="gf/"+h[2]+".otf")h[5]="a";if(h[2]==(h[0]+"-"+h[1]).replace(/\s/g,"")){h[2]=""}else if(h[2]==h[0].replace(/\s/g,"")){h[2]="a"}if(e){if(h[0]==e[0])h[0]="";
if(h[1]==e[1])h[1]="";if(h[3]==e[3])h[3]="";if(h[4]==e[4])h[4]=""}return h.join(",")};bc.aeU=function(h,e){h=h.split(",");
if(h[0]=="")h[0]=e[0];if(h[1]=="")h[1]=e[1];if(h[3]=="")h[3]=e[3];else h[3]=parseInt(h[3]);if(h[4]=="")h[4]=e[4];
else h[4]=parseInt(h[4]);if(h[2]=="")h[2]=(h[0]+"-"+h[1]).replace(/\s/g,"");else if(h[2]=="a")h[2]=h[0].replace(/\s/g,"");
if(h[5]=="")h[5]="fs/"+h[2]+".otf";else if(h[5]=="a")h[5]="gf/"+h[2]+".otf";return h};bc.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"};
bc.prototype.Ht=function(){if(FNTS.map==null){var h=FNTS.list,e=[];for(var G=0;G<h.length;G++){e[G]=bc.aeU(h[G],e[G-1]);
e[G].NS=G;this.Xh(e[G])}}return FNTS.map};bc.prototype.Xh=function(h){var e=h[0],$=h[1],Z=h[5];if(FNTS.map==null)FNTS.map={};
FNTS.map[h[2]]=h;if(FNTS.mapFS==null)FNTS.mapFS={};var c=FNTS.mapFS[e+"---"+$];FNTS.mapFS[e+"---"+$]=h;
if(FNTS.mapSub==null)FNTS.mapSub={};var q=FNTS.mapSub[e];if(q==null)q=FNTS.mapSub[e]=[];var E=q.indexOf($);
if(E==-1)q.push($);else q[E]=$};bc.amJ=function(h,e){return bc.sa(h)-bc.sa(e)};bc.sa=function(h){h=h.toLowerCase();
var e=bc.a1T(h)+(bc.agP(h)<<1);if(h.indexOf("cond")==-1)e+=1<<25;return e};bc.a1T=function(h){return h.indexOf("italic")!=-1||h.indexOf("oblique")!=-1?1:0};
bc.ah2="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(",");
bc.anq=["two","four","eight","hair","thin","ultralight","extralight","light",["regular","roman","book"],"medium",["semibold","demibold"],"bold","extrabold","heavy","ultra","black","x black"];
bc.agP=function(h){var e=bc.anq,$=-1,Z=-1;for(var G=0;G<e.length;G++){var c=e[G];if(c instanceof Array)for(var q=0;
q<c.length;q++){var E=c[q];if(h.indexOf(E)!=-1&&($==-1||Z<E.length)){$=G;Z=E.length}}else if(h.indexOf(c)!=-1&&($==-1||Z<c.length)){$=G;
Z=c.length}}if($==-1)$=8;return $};bc.fR=function(h,e){var $=1e9,Z=null,c=bc.sa(e);for(var G=0;G<h.length;
G++){var q=Math.abs(bc.sa(h[G])-c);if(q<$){$=q;Z=h[G]}}return Z};bc.prototype.hC=function(h,e){this.Ht();
return FNTS.mapFS[h+"---"+e]};bc.prototype.I3=function(h){this.Ht();return FNTS.mapSub[h]};bc.prototype.a07=function(){this.Ht();
return FNTS.mapSub};var e3={mw:0,gW:null,zK:null,Bu:null,RN:null,Fd:null,nw:!0,yG:0,r8:!1},hi=0;e3.xK=function(){var h=D.Zk(24)?" ":"",e=D.TH[D.YO("Uu,"+h)];
e=e[D.YO(h+"$/")];return e3.Lr()!=null&&e3.Lr()[D.Wc("!&|'&50")]*50>e()/20};e3.z5=function(){return e3.ale()!=null};
e3.Lr=function(){return e3.Fd};e3.Py=function(h){window.addEventListener("message",e3.ahg,!1);setInterval(e3.yz,5e3);
if(e3.z5()){e3.gW=h;e3.DW()}else setTimeout(h,1)};e3.yz=function(){if(e3.z5()&&e3.r8){e3.UZ(e3.Wi());
e3.r8=!1}};e3.ck=function(h){e3.gW=h;var e="https://www.photopea.com/papi/login.php?redirect="+encodeURIComponent(window.location.href);
e3.Bu=window.open(e,"_blank")};e3.akH=function(){localStorage.removeItem(e3.mw+"_uid");localStorage.removeItem(e3.mw+"_provider");
localStorage.removeItem(e3.mw+"_token");e3.Fd=null};e3.ahg=function(h){if(h.data instanceof ArrayBuffer||h.data instanceof Object)return;
if(h.data.charAt(0)!="{")return;var e=JSON.parse(h.data);if(e.prms==null)return;var $=e.prms.split(",");
if($[0]=="papi_logged_in"){localStorage[e3.mw+"_uid"]=$[1];e3.BV($[2]);localStorage[e3.mw+"_provider"]=$[3];
e3.Bu.close();e3.DW()}if($[0]=="payment_complete"){e3.RN.close();e3.DW()}};e3.ale=function(){var h=localStorage[e3.mw+"_token"];
if(h!=null&&Date.now()*.001+10<parseInt(h.split("-")[0]))return h;return null};e3.BV=function(h){var e=localStorage[e3.mw+"_token"];
if(e!=null&&parseInt(h.split("-")[0])<parseInt(e.split("-")[0]))return;localStorage[e3.mw+"_token"]=h;
clearTimeout(e3.yG);e3.yG=setTimeout(e3.a78,Math.min(1e9,parseInt(h.split("-")[0])*1e3-Date.now()-20*1e3))};
e3.a78=function(){var h=new XMLHttpRequest;h.open("POST","https://www.photopea.com/papi/record_new.php",!0);
h.onload=e3.ajP;var e=e3.b3(0)+"&read=2";h.setRequestHeader("Content-type","application/x-www-form-urlencoded");
h.send(e)};e3.DW=function(){var h=new XMLHttpRequest;h.open("POST","https://www.photopea.com/papi/record_new.php",!0);
h.onload=e3.amT;var e=e3.b3(0)+"&read=1";h.setRequestHeader("Content-type","application/x-www-form-urlencoded");
h.send(e)};e3.UZ=function(h){var e=new XMLHttpRequest;e.open("POST","https://www.photopea.com/papi/record_new.php",!0);
e.onload=e3.amU;var $=e3.b3(0)+"&read=0&score="+(h.tpl?1:0)+"&spublic="+e3.nw+"&record="+encodeURIComponent(JSON.stringify(h));
e.setRequestHeader("Content-type","application/x-www-form-urlencoded");e.send($)};e3.amT=function(h){var e=JSON.parse(h.target.response);
if(e.error){}else{e3.Fd=e.user;var $=e3.Wi(),Z=e.record;if(e.record){e3.nw=e.spublic;e3.bI(Z)}else if($)e3.UZ($)}e3.BV(e.token);
if(e3.gW){e3.gW();e3.gW=null}if(e3.zK){e3.zK();e3.zK=null}};e3.ajP=function(h){var e=JSON.parse(h.target.response);
e3.BV(e.token)};e3.amU=function(h){var e=JSON.parse(h.target.response);e3.BV(e.token);if(e3.zK)e3.DW()};
e3.b3=function(h){return"app="+h+"&uid="+localStorage[e3.mw+"_uid"]+"&token="+localStorage[e3.mw+"_token"]};
e3.Sa=function(){return e3.Wi()};e3.i_=function(h,e){e3.bI(h);e3.r8=!0;if(e){e3.zK=e;e3.yz()}};e3.Wi=function(){var h=localStorage[e3.mw+"_stateLocal"],e;
if(h==null)return null;try{e=JSON.parse(h)}catch(e_){return null}return e};e3.bI=function(h){var e=JSON.stringify(h);
localStorage[e3.mw+"_stateLocal"]=e};e3.order=function(h,e,$){e3.gW=$;var Z="https://www.photopea.com/papi/order.php?ptype="+e+"&param="+h+"&uid="+localStorage[e3.mw+"_uid"]+"&token="+localStorage[e3.mw+"_token"];
e3.RN=window.open(Z,"_blank")};e3.adC=function(h,e){e3.gW=e;var $="https://www.photopea.com/papi/insertKey.php?key="+h+"&uid="+localStorage[e3.mw+"_uid"]+"&token="+localStorage[e3.mw+"_token"];
e3.RN=window.open($,"_blank")};var e_={};e_.I6=0;e_.IS={};e_.Sr=function(h){var e=LNG.tables,$=e[h];
if(typeof $=="string"){$=e[h]=e_.PF($)}return $};e_.PF=function(h){var e=[],$=0,Z=0,c=[],q=h.length;
while(Z!=q){var E=h[Z];if(E=="["){e.push(c);c=[];Z=$=Z+1}else if(E=="]"){c.push($==Z?null:h.substring($,Z));
var P=c;c=e.pop();c.push(P);Z=$=Z+1}else if(E==";"){if(h[Z-1]!="]")c.push($==Z?null:h.substring($,Z));
Z=$=Z+1}else Z++}return c};e_.get=function(h){if(typeof h=="string")return h;var e=typeof h[0];if(e=="number"){for(var G=1;
G<h.length;G++)if(typeof h[G]!="number"){console.log(h);throw"e"}return e_.aca(h)}var $=e_.get(h[0]);
for(var G=1;G<h.length;G++){var Z=e_.get(h[G]),c=$.indexOf("VAR"+(G-1));$=$.slice(0,c)+Z+$.slice(c+4)}return $};
e_.aca=function(h){var e=JSON.stringify(h);if(e_.IS[e]!=null)return e_.IS[e];var $=e_.Sr(0),Z=e_.Sr(e_.I6),c=e_.D3(h,Z);
if(c==null)c=e_.D3(h,$);return c};e_.D3=function(h,e){for(var G=0;G<h.length;G++){e=e[h[G]];if(e==null)return null;
else if(typeof e=="string")break}return e.split("::")[0]};e_.a8k=function(){var h=function($,Z){var c=$.code,q=Z.code;
if(c=="en")return-1;if(q=="en")return 1;var E=navigator.languages,P=E.indexOf(c)!=-1,a=E.indexOf(q)!=-1;
if(P&&a)return c>q?1:-1;if(P)return-1;if(a)return 1;return c>q?1:-1},e=LNG.langs.slice(0);e.sort(h);
return e};e_.aig=function(h){e_.I6=h};e_.VV=function(h){for(var G=0;G<LNG.langs.length;G++)if(LNG.langs[G].code==h)e_.I6=G};
e_.od=function(){return LNG.langs[e_.I6].code};e_.aon=function(h){for(var G=0;G<h.length;G+=2)if(h[G+1].indexOf(">")==-1)e_.IS[JSON.stringify(h[G])]=h[G+1]};
e_.wE=function(h){var e=-1,$=LNG.langs;for(var G=0;G<$.length;G++)if($[G].code==h)e=G;return e};var aC={rY:!1,e3:!1,Vj:!1};
aC.G5=function(){return D.TH[D.t5("vrt",2)]!=D.TH[D.t5("xksn",5)]};aC.JO=function(){var h=D.Wc,e=D.TH[h("u#z/*%1:")],$=e[h("s#{3")],Z=h("t&|{1%h2.94@I"),c=h("xy+_)%0+7@qK~<"),q=h("r$'\x7F+$f.283"),E=h("#y$)3%f.283"),P=0,a=h("$y+[145/+AC7"),j=h("rx*\x7F+3("),L=D.aR("Y_5UDDB>&\x7F");
if(D.TH[L]!=!0){P=1}var H=e[Z](h("u}-"));H[a](h("zx"),j);H[a](h("$(0&\""),h("(}{.%ZXVY<GmU@@GHL[$\" #fq7"));
$[q](H);H=e[c](j);if(H==null){P=2}else{if(!$[h("t#%.~)19")](H)){P=3}else if(Math.round(H[h("xy+\\,51*2:6uAA@LU6LMa")]()[h("(}{.%")]-500)>5){P=4}$[E](H)}if(aC.e3)P=5;
if(aC.Vj)P=6;return P};aC.aey=function(h){var e=D.YO("y),+1ZRU:.787=mlITWRZVgphaifg}u~!C{+,P5)2328eDPnDJ\\NhYdgbjf2q}"),$={method:"HEAD",mode:"no-cors"},Z=new Request(e,$);
fetch(Z).then(function(c){return c}).then(function(c){h(!1)}).catch(function(c){aC.e3=!0;console.clear();
h(!0)})};aC.a7E=function(){var h=D.vO("UU[YW#ECC8"),e=D.vO("VQ](RUK>@B8p71*03m}x'"),$=D.vO("WQRMKT"),Z=this.al5[h][e]();
if(Z[$]<4){aC.Vj=!0;this.a0b(!0)}};aC.aoB=function(){var h=D.TH._cwY,e=D.TH[D.Wc("$y+n&-(5>@")],$="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\\",Z=String.fromCharCode(32);
h(D.aR($)+Z+Z+aC.JO());if(!e3.xK())e(aC.aoB,Math.round(Math.PI*1e4))};aC.xC=function(h){var e=D.Wc,$=D.TH[e("u#z/*%1:")],Z=e("t&|{1%h2.94@I"),c=e("$y+[145/+AC7"),q=e("%y/.`/1:.:C"),E=$[Z](h[0]);
for(var P in h[1]){if(P=="txt")E[q]=h[1][P];else E[c](P,h[1][P])}return E};aC.alK=function(h,e,$,Z,c){D.LK($);
var q=D.Wc,E=q("r$'\x7F+$f.283"),P=q("$y+[145/+AC7"),a=q("rx{_3%1:u5BF:F@P"),j=q("#y'&~#("),L=q("$(0&\""),H=q("$&z"),_=q("r'0( "),J=q("%y/.`/1:.:C"),S=q("u}-"),N=D.YO("zz*{+&"),Y=D.TH[q("u#z/*%1:")],U=q("t&|{1%h2.94@I"),g=q("$w)#-4"),M=D.YO("z#+ 05e,0<B8"),C=D.YO("w}*.2c,061"),y=D.YO(" u.$%\"86<"),i=D.YO("!#c$,&"),Q=D.TH[y][i];
if(!aC.G5()&&!aC.JO()&&Q&&h*e>300*300){var m=Y[q("xy+_)%0+7@BtN,<E/ETO")](q("yyx~"))[0],n=JSON.parse(D.YO("lo9.!3-7>N[NWLNBc~iSbedj4,/fsy:%!~{+-5*6?[4CDhSqqY]aQ bai,kw)6/ \"#)}$D_JC8@9GRk@CFQT_z~zy\\.`*~q$}(/?L?H=?3ToZDSVU[%| Wdj+uqol{}&z'0L%45YDbbnnArE~}\"\"W$[hn/nz,92t*3+#D_=>D7R5f9bWJ\\V`gw%w!v}|-H3,!)\"0;T1<?:B>P@Id%jeZb[it.juxs{w*y#>>AGFKkSVQFNGU`yVad_gcuen8p}w6V<7,4-;F_<GJEMI[KT}Vc]{{~%chI14/$,%3>W4?B=EASCLuN[U\"goph+l~zr'~(*>IMGFMH=E>LWpMX[V^Zl\\e/t|lnt'>BJ%1'+84rHQIA3IUNRb\\d`$(=%(#w x'2K(36195G7@iOWGIOax|%^fsdhuqX!~-% .p7,2X\\qY\\]k!hsPVhZtepsnvr0P61&.'5@Y06H:TEPSNVRoorxW\\+3xl$%yX~o&5</@DFUu[o|feHK"));
for(var G=0;G<n.length;G++){var u=aC.xC(n[n.length-1-G]);m[M](u,m[C])}var K=D.YO("p}&$2a(:"),F=D.YO("'#!}i0%+"),b=D.YO("ps,}$\"40");
D.TH.___ggo=function(){D.TH[b](a,2,function(A,z){if(z&&A[F]==!0){if(!D.TH[K]){D.TH[K]=!0;var T=aC.ajz.bind({Dh:$,a5Q:c,head:m,CD:e});
T()}}})}}else{var d=[q("z!~I-0\":*8;`EFB")];for(var G=0;G<d.length;G++){var W=Y[U](q("z!~"));W[P](L,q("t))-,2]685=F:Jv"));
W[a](q("t  }("),Z,!1);W[P](H,d[G]);$[E](W)}}};aC.wF=function(h){var e=2;if(h>=3*270+30)e=3;if(h>=4*270+30)e=4;
return e};aC.ajz=function(){var h=D.Wc,e=h("r$'\x7F+$f.283"),$=h("$y+[145/+AC7"),Z=h("rx{_3%1:u5BF:F@P"),c=h("#y'&~#("),q=h("$(0&\""),E=h("$&z"),P=h("r'0( "),a=h("%y/.`/1:.:C"),j=h("u}-"),L=D.YO("zz*{+&"),H=D.TH[h("u#z/*%1:")],_=h("t&|{1%h2.94@I"),J=h("$w)#-4"),S=D.YO("z#+ 05e,0<B8"),N=D.YO("w}*.2c,061"),Y=JSON.parse(D.YO("lo9|35868N[NW<H@UXi%oSVkh~,%om.I4+'%\"N,,;@R_XIKCOOLWp,vodles~8lo(y }0,M%M>B:FPLJGCku+e[mqqp%nlz%yR<IB8?>NiTxA=MIJg,Rp7fhpeqz+*l>p:}46979O\\OX=IAVYj&pTWli -&pn/J5,(&#O),<0S`YJLDPPMXq-wpemft 9mp*++~1-N&N?C;GQMKHDlv,f\\nrrq&om{&zS=JC9@?OjUzI\\NRZh_T^awhw!hh~n21sv")),U=D.TH,g=-1,M=U[D.YO("f#!}f")],C=D.YO("xy'"),y=D.YO("TU"),i=D.YO("Vi"),W=0;
if(M&&M[C]){var Q=M[C];if(Q==i)g=0;if(Q==y)g=1}var m=g==-1?null:aC.xC(Y[g]),n=this.Dh,u=this.a5Q,K=this.head,F=this.CD,b=[.4,.4,.2],d=Math.random();
while(b[W]<d&&W<b.length-1){d-=b[W];W++}if(u==2&&Math.random()<.5){console.log(0);var A=aC.wF(F);if(!aC.rY){aC.rY=!0;
var z=D.YO("uu,{J*(R:5?GEIA@oHWXM$$'r/53eMR_>[j\\kffv|qu&bih3&888;;C?'lp0TK_W\\daahim|W^]\"x-%*2>31D;\")(SQUUL`X]eFMLoko!|s( %-mtsbWUh_&.,kkrsw'AI"),T=z.split(","),R=D.YO("9z-)!5-68LW[UT[UCWg^WkY4!003~;A?9Ay 40.<JjPZGBLTRVNM|UdeZ114 <B@rZ_lFN>687FIHZz`RLalH@BApsrWm|$v(,BF[<465DGFfKMTJIOgdhXnbckgwst2R8\"40(<4=?[_UFFbmaY[Zilk,sihn'c(w.\"?_bH_NWZWSKML[^]}fjZptu%EH.CDGC97%9I2CRrX@NEZUP\\e\"hobr|Ynxtu*(._.1OL)55K;iIG#omySYmigu/)1j2<Q0}2B+HhNrGJ<WnJYYZwXi\"*eksl3t'#z/'02N/UONH>PTTSgkS~\\Xm>twxrn%'z@=##9)W@6B;?OEGgqiw-^^#c* }k 0||,}-(EeK4_8GIRFR[AV^Wep*cqh}xs )R$$3%4/Z?C;Gcg|NN]O^Y%qoiwk1%|~}-0/O7->>@BJ?1E[Zq'XXgYhc/gsy!u;?T\"M6+=lCFGA=SUInpQQgW&ndpim}su;C:239,RJMPpQIKJY\\[{`d\\h%\"JK].;2<!0328aY\\AI9;ASpMvP^gWd`ammju;~x+H$!06*0]39PyGV!uz!'%*/-7;4/6ou*&$2KJL=GlY`>JBQIM@@:{jcwe,102$Oe%|\"'2-9B0HPJBdu*\\Qah^fb$(/Kk\"uA%)4GKQH@AG:`uVNPO^a`!i^jc*.C)79=R");
for(var I=0;I<A;I++){var r=H[_](L);for(var G=0;G<T.length;G+=2)r[$](T[G+0],T[G+1]);r[$](q,h("~u)!&.P(8@CABrmnQ\\"));
n[e](r);var x=H[_](J);x[a]=R;n[e](x)}}}else if(u==1&&W==0){console.log(0);var z=D.YO("zxC+&086:21`9HI>rzwc$!$V>CP/l{m|ww(.#'7SZYD7IIILLTPw]a!e\\phmurryz~.HON3*>6;CODBULryxdbff]qinv7>=!|!2.%916>^edSHFYPv~'$#bbijn}8EBE"),T=z.split(","),r=H[_](L);
for(var G=0;G<T.length;G+=2)r[$](T[G+0],T[G+1]);r[$](q,h("~u)!&.P(8@CABrmnQ\\"));n[e](r);if(!aC.rY){aC.rY=!0;
var R=D.YO("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"),x=H[_](J);
x[a]=R;K[e](x)}}else if(u==1&&W==1){console.log(1);var X=H[_](D.YO("u}."));X[$](q,D.Wc("~u)!&.P(8@CABrmnQ\\"));
var l=H[_](D.YO("u}."));X[e](l);l[$](D.YO("zx"),D.YO("AK}|~T()V`1i9eoEGwtL##V$`0e4>@rtvMOL"));l[$](D.YO("t!x.1"),D.YO("pu(y~1)?).4"));
var R=D.YO("(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"),x=H[_](J);
x[a]=R;l[e](x);n[e](X);if(!aC.rY){aC.rY=!0;var R=D.YO("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"),x=H[_](J);
x[$](D.YO("uu,{J$*(=F>6"),D.YO("wu$.#"));x[a]=R;K[e](x)}}else{console.log(2);var hH=H[_](J);hH.setAttribute(E,D.YO("y),+1ZRU.@8iARrqq|S~P~Wcirdixxz$@$}0M2:*77D<<LPnSNX`^bZY^mnrl\";}|%G'3"));
K[e](hH);var hZ=JSON.parse(D.YO("l6{$4M+7>Y17bIDNVTXPOTcd-245=+81v~/H&29T,2]D?IQOSKJO^_(-138&3,qy*C!-4O'-X?:DLJNFEJYZ#(,/4!.'lt%>{(/J\"(S:5?GEIA@ETU}#(%({)\"go 9v#*E|#N50:B@D<;@OPx}# $vU")),gj=[hZ[0]];
if(u==2)gj=hZ.slice(1,1+aC.wF(F));for(var G=0;G<gj.length;G++){var l=H[_](D.vO("SU_"));l[$](D.vO("XP"),gj[G]);
l[$](q,h("~u)!&.P(8@CABrmnQ\\"));n[e](l)}}if(m)n[e](m)};var eY={SQ:0,aW:{expires_at:0},O2:[]};eY.lr=function(h){if(h)eY.O2.splice(0,0,h);
if(eY.SQ==1)return;if(eY.aW.expires_at>Date.now()*.001+30){while(eY.O2.length>0)eY.O2.pop()()}else{if(eY.SQ==0)eY.SQ=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:eY.SQ==2?!1:!0},eY.ajd)}};
eY.ajd=function(h){if(h&&!h.error){eY.aW=h;eY.SQ=!1;eY.lr()}else if(eY.SQ==1){eY.SQ=2;eY.lr()}else alert("Error: "+h.error)};
eY.ZP=function(){return"access_token="+eY.aW.access_token+"&token_type="+eY.aW.token_type};eY.VE=function(){return eY.aW.token_type+" "+eY.aW.access_token};
function gH(){}gH.Hm=function(h){var e=new Uint8Array(h),$=0,Z={nM:[],fB:[],list:[]},c=k.oO(e,$);$+=2;
if(c<=2){return gH.afX(e)}var q=k.oO(e,$);$+=2;var E=k.dd(e,$,8);$+=8;var P=k.n(e,$);$+=4;if(P>0)Z.nM=gH.w7(e,$,P,q,c);
$+=P;var a=k.dd(e,$,8);$+=8;var j=k.n(e,$);$+=4;if(j>0)Z.fB=b5.ky(e,$,j);$+=j;var L=k.dd(e,$,8);$+=8;
var H=k.n(e,$);$+=4;if(H>0){var _={};bf.Cb(e,_,$+4);Z.list=_.Brsh.v}$+=H;var J=Z.list;for(var G=0;G<J.length;
G++){cC.Em.check(J[G].v)}return Z};gH.KG=function(h,e){h.v.Nm.v=e};gH.afX=function(h){var e={nM:[],fB:[],list:[]},$=0,Z=k.oO(h,$);
$+=2;var c=k.oO(h,$);$+=2;for(var G=0;G<c;G++){var q=k.oO(h,$);$+=2;var E=k.n(h,$);$+=4;var P=$;if(q==2){var a={};
e.nM.push(a);var j=k.n(h,P);P+=4;var L=k.oO(h,P);P+=2;if(Z==2){var H=k.$d(h,P);P+=4+H.length*2+2}a.id=c9.YV()+"-d71c-11e5-b1ae-a548a96e5f9f";
P++;P+=8;a._=k.RQ(h,P);P+=16;var _=k.oO(h,P);P+=2;var J=h[P];P++;a.channel=f6.yl(!1,_,h,a._.d,a._.v,P,J);
var S=cC.Zn(a.id),N=S.Brsh.v;N.Dmtr.v.val=a._.d;N.Spcn.v.val=L;e.list.push({t:"Objc",v:S})}$+=E}return e};
gH.A7=function(h){var e=new e4,$=0,Z=0;k.W$(e,$,6);$+=2;k.W$(e,$,2);$+=2;k.Ed(e,$,"8BIMsamp");$+=8;$+=4;
Z=$;$=gH.v6(e,$,h.nM);k.ni(e,Z-4,$-Z);k.Ed(e,$,"8BIMpatt");$+=8;$+=4;Z=$;$=b5.tN(e,$,h.fB);k.ni(e,Z-4,$-Z);
var c={classID:"null",Brsh:{t:"VlLs",v:h.list}};k.Ed(e,$,"8BIMdesc");$+=8;$+=4;Z=$;k.ni(e,$,16);$+=4;
$+=bf.il(e,c,$);k.ni(e,Z-4,$-Z);return e.data.slice(0,$).buffer};gH.w7=function(h,e,$,Z,c){var q=k.n,E=k.RQ,P=e+$,a=[];
while(e<P){var j={};a.push(j);var L=q(h,e);e+=4;var H=e,_=k.CA(h,e);e+=_.length;j.id=_.zm;if(Z==1){e+=9;
j._=E(h,e);e+=16}else{e+=7;var J=q(h,e);e+=4;j._=E(h,e);e+=16;var S=q(h,e);e+=4;e+=S*4;var N=q(h,e);
e+=4;var Y=q(h,e);e+=4;var U=E(h,e);e+=16}var g=k.oO(h,e);e+=2;var M=h[e];e+=1;j.channel=f6.yl(!1,g,h,j._.d,j._.v,e,M);
if(L%4!=0)L+=4-L%4;e=H+L}return a};gH.v6=function(h,e,$){var Z=k.ni,c=k.pS;for(var G=0;G<$.length;G++){var q=$[G],E=e+4,a=56,L=1;
e+=4;k.vL(h,e,q.id);e+=q.id.length+2;h.sN(e,1);h.data[e]=1;e+=3;Z(h,e,3);e+=4;var P=e;e+=4;c(h,e,q._);
e+=16;Z(h,e,a);e+=4;e+=a*4;Z(h,e-4,1);var j=e;e+=4;Z(h,e,8);e+=4;c(h,e,q._);e+=16;k.W$(h,e,8);e+=2;h.sN(e,1);
h.data[e]=L;e++;h.sN(e,q._.X()*2);e=f6.jF(q.channel,h.data,q._.d,q._.v,e,L);h.sN(e,8);e+=8;var H=e-E;
Z(h,E-4,H);Z(h,P,H-49);Z(h,j,H-305);if(H%4!=0)e+=4-H%4}return e};function cH(){}cH.Hm=function(h){var e=new Uint8Array(h),$=[],Z=0,c=k.oO(e,Z);
Z+=2;if(c!=4){throw"Unknown version of curves: "+c}var q=k.oO(e,Z);Z+=2;for(var G=0;G<q;G++){var E=cH.tQ(e,Z);
Z+=2+2*E.length;$.push(E)}if(Z==e.length)return $;var P=k.dd(e,Z,4);Z+=4;var a=k.oO(e,Z);Z+=2;var j=k.oO(e,Z);
Z+=2;if(j!=0)throw"extra curves for channels";return $};cH.Yo=function(h,e,$){var Z=e,c=[],q=h[e];e+=3;
var E=k.n(h,e);e+=4;for(var G=0;G<4;G++){var P=E>>>G&1;if(P){if(q==0){var a=cH.tQ(h,e);e+=2+2*a.length}else{var a=cH.amz(h,e);
e+=256}c.push(a)}else c.push(q==0?[0,0,255,255]:cH.agp())}var j=dA.X3("curv");for(var G=0;G<4;G++){if(q==0){var L=c[G],H=[];
for(var _=0;_<L.length;_+=2)H.push(s.$e.cc(L[_],L[_+1],!0));cH.u1(j,G,H)}else cH.u1(j,G,c[G])}return j};
cH.agp=function(){var h=[];for(var G=0;G<256;G++)h.push(G);return h};cH.u1=function(h,e,$){var Z=fH.Vz("CrvA",e);
if($.length<256)Z.Crv={t:"VlLs",v:$};else{Z.Mpng={t:"VlLs",v:[]};for(var G=0;G<256;G++)Z.Mpng.v[G]={t:"long",v:$[G]}}Z={t:"Objc",v:Z};
var c=h.Adjs.v,q=fH.jC(c,e);if(q==-1)c.push(Z);else c[q]=Z};cH.aj=function(h,e){var $=h.Adjs.v,Z=fH.jC($,e);
if(Z==-1){if($.length==0||$[0].v.Crv)return[s.$e.cc(0,0,!0),s.$e.cc(255,255,!0)];var c=[];for(var G=0;
G<256;G++)c.push(G);return c}var q=$[Z].v,E=q.Crv;if(E)return E.v;var c=[];for(var G=0;G<256;G++)c.push(q.Mpng.v[G].v);
return c};cH.tQ=function(h,e){var $=[],Z=k.oO(h,e);e+=2;for(var c=0;c<Z;c++){var q=k.oO(h,e);e+=2;var E=k.oO(h,e);
e+=2;$.push(E,q)}return $};cH.anp=function(h,e,$){var Z=$.length/2;k.W$(h,e,Z);e+=2;for(var c=0;c<Z;
c++){k.W$(h,e,$[c*2+1]);e+=2;k.W$(h,e,$[c*2+0]);e+=2}};cH.amz=function(h,e){var $=[];for(var G=0;G<256;
G++)$.push(h[e+G]);return $};cH.am6=function(h,e,$){h.sN(e,256);for(var G=0;G<256;G++)h.data[e+G]=$[G]};
cH.G4=function(h,e,$){var Z=[];for(var G=0;G<4;G++){var c=cH.aj($,G);if(c.length==256)Z.push(c);else{var q=[];
for(var E=0;E<c.length;E++)q.push(c[E].v.Hrzn.v,c[E].v.Vrtc.v);Z.push(q)}}var P=e,a=Z[0].length==256?1:0;
h.sN(e,3);h.data[e]=a;h.data[e+1]=0;h.data[e+2]=1;e+=3;k.ni(h,e,15);e+=4;for(var G=0;G<4;G++){var j=Z[G];
if(a==0){cH.anp(h,e,j);e+=2+2*j.length}else{cH.am6(h,e,j);e+=256}}return e-P};function eb(){}eb.Yo=function(h,e,$){var Z={},c=k.oO(h,e);
e+=2;Z.HF=h[e]==1;e++;e++;Z.uH=[k.nP(h,e),k.nP(h,e+2),k.nP(h,e+4)];e+=6;Z.lM=[k.nP(h,e),k.nP(h,e+2),k.nP(h,e+4)];
e+=6;Z.gx=[];for(var G=0;G<6;G++){var q={};q.bR=[k.nP(h,e),k.nP(h,e+2),k.nP(h,e+4),k.nP(h,e+6)];e+=8;
q.eV=[k.nP(h,e),k.nP(h,e+2),k.nP(h,e+4)];e+=6;Z.gx.push(q)}var E=dA.X3("hue2"),P=Z;if(E.Clrz==null)E.Clrz={t:"bool",v:!1};
E.Clrz.v=P.HF;for(var G=0;G<7;G++){var a=G==0?P.HF?P.uH:P.lM:P.gx[G-1];eb.u1(E,G,a)}return E};eb.ajZ=function(h){return{classID:"Hst2",H:{t:"long",v:h[0]},Strt:{t:"long",v:h[1]},Lght:{t:"long",v:h[2]}}};
eb.jC=function(h,e){for(var G=0;G<h.length;G++){var $=h[G].v.LclR;if(e==0&&$==null||$!=null&&$.v==e)return G}return-1};
eb.u1=function(h,e,$){var Z=e==0?$:$.eV,c=eb.ajZ(Z);if(e!=0){var q=$.bR;c.LclR={t:"long",v:e},c.BgnR={t:"long",v:q[0]};
c.BgnS={t:"long",v:q[1]};c.EndS={t:"long",v:q[2]};c.EndR={t:"long",v:q[3]}}c={t:"Objc",v:c};var E=h.Adjs.v,P=eb.jC(E,e);
if(P==-1)E.push(c);else E[P]=c};eb.aj=function(h,e){var $=h.Adjs.v,Z=eb.jC($,e);if(Z==-1){if(e==0)return[0,0,0];
else return[{bR:[315,345,15,45],eV:[0,0,0]},{bR:[15,45,75,105],eV:[0,0,0]},{bR:[75,105,135,165],eV:[0,0,0]},{bR:[135,165,195,225],eV:[0,0,0]},{bR:[195,225,255,285],eV:[0,0,0]},{bR:[255,285,315,345],eV:[0,0,0]}][e-1]}var c=$[Z].v,q=[c.H.v,c.Strt.v,c.Lght.v];
if(e==0)return q;return{eV:q,bR:[c.BgnR.v,c.BgnS.v,c.EndS.v,c.EndR.v]}};eb.G4=function(h,e,$){var Z={HF:$.Clrz.v,gx:[]};
Z.uH=Z.lM=eb.aj($,0);for(var G=1;G<7;G++)Z.gx.push(eb.aj($,G));var c=2+2+12+6*14,q=h.data;h.sN(e,c);
k.OF(q,e,2);e+=2;q[e]=Z.HF?1:0;e++;e++;k.H0(q,e+0,Z.uH[0]);k.H0(q,e+2,Z.uH[1]);k.H0(q,e+4,Z.uH[2]);e+=6;
k.H0(q,e+0,Z.lM[0]);k.H0(q,e+2,Z.lM[1]);k.H0(q,e+4,Z.lM[2]);e+=6;for(var G=0;G<6;G++){var E=Z.gx[G].bR,P=Z.gx[G].eV;
k.H0(q,e+0,E[0]);k.H0(q,e+2,E[1]);k.H0(q,e+4,E[2]);k.H0(q,e+6,E[3]);e+=8;k.H0(q,e+0,P[0]);k.H0(q,e+2,P[1]);
k.H0(q,e+4,P[2]);e+=6}return c};function fH(){}fH.Hm=function(h){var e=new Uint8Array(h),$=2,Z=[];for(var G=0;
G<29;G++){var c=[];Z.push(c);for(var q=0;q<5;q++)c.push(k.oO(e,$+G*10+q*2))}$+=29*10;if($<e.length){var E=k.dd(e,$,4);
$+=4;var P=k.oO(e,$);$+=2;var a=k.oO(e,$);$+=2;var j=a-29;for(var G=0;G<j;G++){var c=[];Z.push(c);for(var q=0;
q<5;q++)c.push(k.oO(e,$+G*10+q*2))}}var L=dA.X3("levl");for(var G=0;G<4;G++)fH.u1(L,G,Z[G]);return L};
fH.Vz=function(h,G){var e=["Cmps","Rd","Grn","Bl"],$={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:e[G]}}]};
return{classID:h,Chnl:$}};fH.jC=function(h,e){var $={Cmps:0,Rd:1,Grn:2,Bl:3};for(var G=0;G<h.length;
G++){var Z=h[G].v,c=$[Z.Chnl.v[0].v.enum];if(c==e)return G}return-1};fH.u1=function(h,e,$){var Z=fH.Vz("LvlA",e);
Z.Inpt={t:"VlLs",v:[{t:"long",v:$[0]},{t:"long",v:$[1]}]};Z.Otpt={t:"VlLs",v:[{t:"long",v:$[2]},{t:"long",v:$[3]}]};
Z.Gmm={t:"doub",v:$[4]/100};Z={t:"Objc",v:Z};var c=h.Adjs.v,q=fH.jC(c,e);if(q==-1)c.push(Z);else c[q]=Z};
fH.aj=function(h,e){var $=[0,255,0,255,100],Z=h.Adjs.v,c=fH.jC(Z,e);if(c==-1)return $;var q=Z[c].v;if(q.Inpt){$[0]=q.Inpt.v[0].v;
$[1]=q.Inpt.v[1].v}if(q.Otpt){$[2]=q.Otpt.v[0].v;$[3]=q.Otpt.v[1].v}if(q.Gmm){$[4]=Math.round(q.Gmm.v*100)}return $};
fH.A7=function(h,e){var $=[],Z=0;for(var G=0;G<4;G++)$.push(fH.aj(e,G));while($.length<29)$.push([0,255,0,255,100]);
h.sN(0,2+10*29);k.OF(h.data,Z,2);Z+=2;for(var G=0;G<29;G++){var c=$[G];for(var q=0;q<5;q++)k.OF(h.data,Z+G*10+q*2,c[q])}Z+=29*10;
if($.length==29)return Z;h.sN(Z,8+10*($.length-29));k.KP(h.data,Z,"Lvls");Z+=4;k.OF(h.data,Z,3);Z+=2;
k.OF(h.data,Z,$.length);Z+=2;var E=$.length-29;for(var G=0;G<E;G++){var c=$[29+G];for(var q=0;q<5;q++)k.OF(h.data,Z+G*10+q*2,c[q])}Z+=10*E;
return Z};function bA(){}bA.Hm=function(h){var e=new Uint8Array(h),$=2,Z={Qm:[],Mp:[]},c=k.dd(e,$,4);
$+=4;var q=k.oO(e,$);$+=2;var E=k.n(e,$);$+=4;Z.Qm=b5.ky(e,$,E);$+=E;var P=k.n(e,$);$+=4;for(var G=0;
G<P;G++){var a=k.n(e,$);$+=4;var j=$,L={h0:{},R_:{}};Z.Mp.push(L);$+=4;$+=bf.Cb(e,L.h0,$);$+=4;$+=bf.Cb(e,L.R_,$);
$=j+a;var H=L.R_.blendOptions,_=L.R_.Lefx;if(H&&Object.keys(H.v).length>1){}if(_){if(_.v.masterFXSwitch==null)_.v.masterFXSwitch={t:"bool",v:!0};
ck.q1(_.v)}}return Z};bA.KG=function(h,e){h.h0.Nm.v=e};bA.A7=function(h){var e=new e4,$=0;k.W$(e,$,2);
$+=2;k.Ed(e,$,"8BSL");$+=4;k.W$(e,$,3);$+=2;var Z=$;$+=4;$=b5.tN(e,$,h.Qm);k.ni(e,Z,$-Z-4);var c=h.Mp.length;
k.ni(e,$,c);$+=4;for(var G=0;G<c;G++){$+=4;var q=$,E=h.Mp[G];k.ni(e,$,16);$+=4;$+=bf.il(e,E.h0,$);var P=E.R_.Lefx;
if(P){E.R_.Lefx=JSON.parse(JSON.stringify(P));ck.ej(E.R_.Lefx.v)}k.ni(e,$,16);$+=4;$+=bf.il(e,E.R_,$);
if(P)E.R_.Lefx=P;k.ni(e,q-4,$-q)}return e.data.slice(0,$).buffer};function aS(){}aS.Yo=function(h,e,$){var Z=k.oO(h,e);
e+=2;var c={};c.I5=k.oO(h,e)==1;e+=2;c.BJ=[];for(var G=0;G<10;G++){var q=[];c.BJ.push(q);for(var E=0;
E<4;E++)q.push(k.nP(h,e+E*2));e+=8}var P=dA.X3("selc");P.Mthd.v.CrcM=c.I5?"Absl":"Rltv";for(var G=1;
G<10;G++)aS.u1(P,G-1,c.BJ[G]);return P};aS.rx="Rds Ylws Grns Cyns Bls Mgnt Whts Ntrl Blks".split(" ");
aS.Vz=function(h,G){var e=["Cmps","Rd","Grn","Bl"],$={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:e[G]}}]};
return{classID:h,Chnl:$}};aS.jC=function(h,e){var $=aS.rx;for(var G=0;G<h.length;G++){var Z=h[G].v,c=$.indexOf(Z.Clrs.v.Clrs);
if(c==e)return G}return-1};aS.u1=function(h,e,$){var Z=["Cyn","Mgnt","Ylw","Blck"],c={classID:"ClrC",Clrs:{t:"enum",v:{Clrs:aS.rx[e]}}};
for(var q=0;q<4;q++)c[Z[q]]={t:"UntF",v:{type:"#Prc",val:$[q]}};c={t:"Objc",v:c};var E=h.ClrC.v,P=aS.jC(E,e);
if(P==-1)E.push(c);else E[P]=c};aS.aj=function(h,e){var $=[0,0,0,0],Z=h.ClrC.v,c=aS.jC(Z,e);if(c==-1)return $;
var q=["Cyn","Mgnt","Ylw","Blck"];for(var G=0;G<4;G++)if(Z[c].v[q[G]])$[G]=Z[c].v[q[G]].v.val;return $};
aS.G4=function(h,e,$){var Z={I5:$.Mthd.v.CrcM=="Absl",BJ:[[0,0,0,0]]};for(var G=0;G<9;G++)Z.BJ.push(aS.aj($,G));
h.sN(e,84);k.OF(h.data,e,1);e+=2;k.OF(h.data,e,Z.I5?1:0);e+=2;for(var G=0;G<10;G++){var c=Z.BJ[G];for(var q=0;
q<4;q++)k.H0(h.data,e+q*2,c[q]);e+=8}return 84};function bS(){}bS.X3=function(){return{Ny:new O(0,0,50,50),h0:"",dA:"play",b:s.W.d5.k8([.1,.1,.9,.5,.1,.9],0)}};
bS.Hm=function(h){h=new Uint8Array(h);var e=0,$=[],Z=Date.now(),c=k.dd(h,0,4);e+=4;var q=k.n(h,e);e+=4;
var E=k.n(h,e);e+=4;for(var G=0;G<E;G++){var P=k.$d(h,e);e+=P.length*2+4+2;if((P.length&1)==0)e+=2;e=bS.C8(h,e,P,$)}return $};
bS.C8=function(h,e,$,Z){var c=k.n(h,e);e+=4;var q=k.n(h,e);e+=4;var E=e,P=k.CA(h,E).zm;E+=P.length+1;
var a=k.RQ(h,E);E+=16;var j=bS.KJ(h,E,q-(E-e)),L=s.W.qs(j),H=s.a.Be(L),_=1/H.d,J=1/H.v;s.W.wD(j,new i7(_,0,0,J,-H.x*_,-H.y*J));
Z.push({dA:$,h0:P,b:j,Ny:a});e+=q;return e};bS.KG=function(h,e){h.dA=e};bS.A7=function(h){var e=new e4,$=0;
k.Ed(e,$,"cush");$+=4;k.ni(e,$,2);$+=4;k.ni(e,$,h.length);$+=4;for(var G=0;G<h.length;G++){var Z=h[G],c=Z.dA+"\0";
k.Q7(e,$,c);$+=4+c.length*2;if((c.length&1)==1)$+=2;k.ni(e,$,1);$+=4;$+=4;var q=$;k.vL(e,$,Z.h0);$+=Z.h0.length+1;
k.pS(e,$,Z.Ny);$+=16;e.sN($,Z.b.length*26);bS.Co(e.data,$,Z.b,1,1);$+=Z.b.length*26;var E=$-q;if((E&3)!=0)E+=4-(E&3);
k.ni(e,q-4,E);$=q+E}return e.data.slice(0,$).buffer};bS.anS=function(h){var e=[];for(var G=0;G<h.length;
G++){var $=h[G],Z=$.type,c={type:Z};e.push(c);if(Z==6){}else if(Z==8)c.all=$.all;else if(Z==0||Z==3){c.length=$.length;
c.frule=$.aN;c.third=$.pg;c.prmA=$.Bs;c.prmB=$.W7}else{c.c=[$.LD.x,$.LD.y,$.D.x,$.D.y,$.EH.x,$.EH.y]}}return e};
bS.a3y=function(h){var e=[];for(var G=0;G<h.length;G++){var $=h[G],Z=$.type,c={type:Z};e.push(c);if(Z==6){}else if(Z==8)c.all=$.all;
else if(Z==0||Z==3){c.length=$.length;c.aN=$.frule;c.pg=$.third;c.Bs=$.prmA;c.W7=$.prmB}else{var q=$.c;
c.LD=new eu(q[0],q[1]);c.D=new eu(q[2],q[3]);c.EH=new eu(q[4],q[5])}}return e};bS.KJ=function(h,e,$,Z,c){if(Z==null)Z=1;
if(c==null)c=1;function q(N,Y,U){var g=k.akX(N,Y)*U,M=Math.round(g);return Math.abs(g-M)<1e-6?M:g}var E=k.nP,P=[],a=Math.floor($/26);
for(var G=0;G<a;G++){var j=e+G*26,L={},H=0;P.push(L);L.type=E(h,j);j+=2;if(L.type==6){H=24}if(L.type==8){L.all=E(h,j);
j+=2;H=22}if(L.type==0||L.type==3){L.length=E(h,j);j+=2;L.aN=E(h,j);j+=2;L.pg=E(h,j);j+=2;L.Bs=k.n(h,j);
j+=4;L.W7=k.n(h,j);j+=4;H=10}if(L.type==1||L.type==2||L.type==4||L.type==5){var _,J;J=q(h,j,c);j+=4;
_=q(h,j,Z);j+=4;L.LD=new eu(_,J);J=q(h,j,c);j+=4;_=q(h,j,Z);j+=4;L.D=new eu(_,J);J=q(h,j,c);j+=4;_=q(h,j,Z);
j+=4;L.EH=new eu(_,J);H=0}for(var S=0;S<H;S++)if(h[j+S]!=0){console.log("Unexpected non-zero byte!",L,S,h[j+S])}}return P};
bS.Co=function(h,e,$,Z,c){var q=k.H0,E=k.NE,P=$.length;for(var G=0;G<P;G++){var a=e+G*26,j=$[G];q(h,a,j.type);
a+=2;if(j.type==6){}if(j.type==8)q(h,a,j.all);if(j.type==0||j.type==3){q(h,a,j.length);a+=2;q(h,a,j.aN);
a+=2;q(h,a,j.pg);a+=2}if(j.type==1||j.type==2||j.type==4||j.type==5){E(h,a,j.LD.y/c);a+=4;E(h,a,j.LD.x/Z);
a+=4;E(h,a,j.D.y/c);a+=4;E(h,a,j.D.x/Z);a+=4;E(h,a,j.EH.y/c);a+=4;E(h,a,j.EH.x/Z);a+=4}}};function ho(){}ho.Hm=function(h){var e=new Uint8Array(h),$=[],Z=0;
Z=ho.Fl(e,Z,$);if(Z+3<e.length){$=[];Z=ho.Fl(e,Z,$)}return $};ho.Fl=function(h,e,$){var Z=k.oO,c=k.nP,q=Z(h,e);
e+=2;var E=Z(h,e);e+=2;for(var G=0;G<E;G++){var P=ho._w(h,e);e+=10;if(q==2){P.yK=k.$d(h,e);e+=4+P.yK.length*2+2}$.push(P)}return e};
ho._w=function(h,e){var $=k.oO,Z=k.nP,c=$(h,e),J=null;e+=2;var q=$(h,e);e+=2;var E=$(h,e);e+=2;var P=$(h,e);
e+=2;var a=$(h,e);e+=2;var j=1/65535,L=255/65535,H=100/65535,_=255/1e4;if(c==0)J={h:q*L,l:E*L,O:P*L};
else if(c==1){J=s.g7(q*j,E*j,P*j);J.h*=255;J.l*=255;J.O*=255}else if(c==2)J=s.Y.LX({classID:"CMYC",Cyn:{t:"doub",v:100-q*H},Mgnt:{t:"doub",v:100-E*H},Ylw:{t:"doub",v:100-P*H},Blck:{t:"doub",v:100-a*H}});
else if(c==7){var S=s.Dl(q/100,Z(h,e-6)/100,Z(h,e-4)/100);J=S}else if(c==8){J={h:255-q*_,l:255-E*_,O:255-P*_}}else throw"e "+c+", ";
return J};ho.A7=function(h){var e=new e4,$=0,Z=k.W$;Z(e,$,2);$+=2;Z(e,$,h.length);$+=2;for(var G=0;G<h.length;
G++){var c=h[G];e.sN($,10);ho.iP(e.data,$,c);$+=10;var q=(c.yK?c.yK:"")+"\0";k.Q7(e,$,q);$+=4+q.length*2}return e.data.slice(0,$).buffer};
ho.KG=function(h,e){h.yK=e};ho.iP=function(h,e,$){var Z=65535/255,c=k.OF;c(h,e,0);c(h,e+2,Math.round($.h*Z));
c(h,e+4,Math.round($.l*Z));c(h,e+6,Math.round($.O*Z));c(h,e+8,0)};function aK(){}aK.Hm=function(h){var e=new Uint8Array(h),$=4,Z={};
Z.cJ=k.$d(e,$);$+=4+Z.cJ.length*2+2;Z.exp=e[$++]==1;Z.qM=[];var c=k.n(e,$);$+=4;for(var G=0;G<c;G++){var q={};
Z.qM.push(q);q.NS=k.oO(e,$);$+=2;q.shift=e[$++]==1;q.ak5=e[$++]==1;q.color=k.oO(e,$);$+=2;q.cJ=k.$d(e,$);
$+=4+q.cJ.length*2+2;q.exp=e[$++]==1;q.qM=[];var hi=k.n(e,$);$+=4;for(var E=0;E<hi;E++){var P={};q.qM.push(P);
P.exp=e[$++]==1;P.Q=e[$++]==1;P.anb=e[$++]==1;P.aly=e[$++];var a=k.dd(e,$,4);$+=4;if(a=="TEXT"){P.Lw=aK.aD(e,$);
$+=4+P.Lw.length}else if(a=="long"){P.Lw=k.dd(e,$,4);$+=4}else throw"e";P.Lp=aK.aD(e,$);$+=4+P.Lp.length;
var j=k.hY(e,$);$+=4;if(j==-1){P.TJ={};var L=bf.Cb(e,P.TJ,$);$+=L}}}console.log(Z);var H=new Uint8Array(aK.A7(Z));
for(var G=0;G<H.length;G++)if(H[G]!=e[G]){console.log(e.length,H.length);var _=4*(G>>>2)-16;console.log(k.PH(e,_,64));
console.log(k.PH(H,_,64));console.log(e.slice(_,_+64));console.log(H.slice(_,_+64));throw G}return[Z]};
aK.aD=function(h,e){var $=k.n(h,e);return k.dd(h,e+4,$)};aK.Bo=function(h,e,$){k.ni(h,e,$.length);k.Ed(h,e+4,$)};
aK.A7=function(h){var e=new e4,$=0;k.ni(e,$,16);$+=4;k.Q7(e,$,h.cJ+"\0");$+=4+h.cJ.length*2+2;e.sN($,1);
e.data[$++]=h.exp?1:0;var Z=h.qM.length;k.ni(e,$,Z);$+=4;for(var G=0;G<Z;G++){var c=h.qM[G];k.W$(e,$,c.NS);
$+=2;e.sN($,2);e.data[$++]=c.shift?1:0;e.data[$++]=c.ak5?1:0;k.W$(e,$,c.color);$+=2;k.Q7(e,$,c.cJ+"\0");
$+=4+c.cJ.length*2+2;e.sN($,1);e.data[$++]=c.exp?1:0;var hi=c.qM.length;k.ni(e,$,hi);$+=4;for(var q=0;
q<hi;q++){var E=c.qM[q];e.sN($,4);e.data[$++]=E.exp?1:0;e.data[$++]=E.Q?1:0;e.data[$++]=E.anb?1:0;e.data[$++]=E.aly;
var P=E.Lw=="LqFy"||E.Lw=="Avrg"||E.Lw=="GEfc"||E.Lw=="PbPl"||E.Lw=="Fbrs"||E.Lw=="Bokh";k.Ed(e,$,P?"long":"TEXT");
$+=4;if(!P){aK.Bo(e,$,E.Lw);$+=4+E.Lw.length}else{k.Ed(e,$,E.Lw);$+=4}aK.Bo(e,$,E.Lp);$+=4+E.Lp.length;
k.vi(e,$,E.TJ?-1:0);$+=4;if(E.TJ){var a=bf.il(e,E.TJ,$);$+=a}}}return e.data.slice(0,$).buffer};function hd(){}hd.Hm=function(h){var e=new Uint8Array(h),$=0,Z=k.n(e,$),a;
$+=4;var c=k.dd(e,$,8);$+=8;var q=k.bt(e,$);$+=4;var E=k.bt(e,$);$+=4;var P=k.bt(e,$);$+=4;if(Z==2){a=new Float32Array(h,32,h.byteLength-32>>>2)}else if(Z==3||Z==4){a=new Float32Array(E*P*2);
var j=0,L=0,H=!0;$=Z==3?32:16+8+40;while($<e.length){var _=k.bt(e,$);$+=4;if(H)L+=_;else{for(var G=0;
G<_;G++){a[j+L+G<<1]=k.hz(e,$);a[(j+L+G<<1)+1]=k.hz(e,$+4);$+=8}L+=_}H=!H;if(_!=0&&L==E){j+=E;L=0;H=!0;
if(j==E*P)break}}}else throw"unknown Mesh version: "+Z;return{EN:E,CD:P,map:a}};hd.XE=function(h){var e=h.EN,$=h.CD,Z=h.map,c=new Uint8Array(32+$*e*8+$*8),q=0,E=0;
k.K_(c,q,3);q+=4;k.KP(c,q,"yfqLhseM");q+=8;k.E5(c,q,2);q+=4;k.E5(c,q,e);q+=4;k.E5(c,q,$);q+=4;k.E5(c,q,0);
q+=4;k.E5(c,q,1);q+=4;for(var P=0;P<$;P++){k.E5(c,q,0);q+=4;k.E5(c,q,e);q+=4;for(var a=0;a<e;a++){k.gs(c,q,Z[E]);
k.gs(c,q+4,Z[E+1]);E+=2;q+=8}}return c.buffer};function gk(){}gk.Hm=function(h){var e=new Uint8Array(h),$=0,Z=k.dd(e,$,4);
$+=4;var c=k.oO(e,$);$+=2;var q=k.n(e,$);$+=4;var E=[];for(var G=0;G<q;G++){var P=k.n(e,$);$+=4;var a={classID:"ShpC",Nm:{t:"TEXT",v:""},Crv:{t:"VlLs",v:[]}};
E.push(a);var j=k.$d(e,$);a.Nm.v=j;$+=4+j.length*2+2;var L=k.oO(e,$);$+=2;var H=k.oO(e,$);$+=2;for(var _=0;
_<H;_++){var J=s.$e.cc(0,0,!0);J.v.Vrtc.v=k.oO(e,$);$+=2;J.v.Hrzn.v=k.oO(e,$);$+=2;a.Crv.v.push(J)}if(P==1){}else if(P==2){for(var _=0;
_<H;_++){a.Crv.v[_].v.Cnty.v=e[$]==1;$+=1}}else throw"error";var S=k.n(e,$);$+=4;var N=k.n(e,$);$+=4}return E};
gk.KG=function(h,e){h.Nm.v=e};gk.A7=function(h){var e=new e4,$=0;k.Ed(e,$,"8BFS");$+=4;k.W$(e,$,1);$+=2;
k.ni(e,$,h.length);$+=4;for(var G=0;G<h.length;G++){k.ni(e,$,2);$+=4;var Z=h[G];k.Q7(e,$,Z.Nm.v+"\0");
$+=4+Z.Nm.v.length*2+2;k.W$(e,$,2);$+=2;var c=Z.Crv.v.length;k.W$(e,$,c);$+=2;for(var q=0;q<c;q++){var E=Z.Crv.v[q];
k.W$(e,$,E.v.Vrtc.v);$+=2;k.W$(e,$,E.v.Hrzn.v);$+=2}e.sN($,c);for(var q=0;q<c;q++){e.data[$]=Z.Crv.v[q].v.Cnty.v;
$++}k.ni(e,$,0);$+=4;k.ni(e,$,0);$+=4}return e.data.slice(0,$).buffer};function b5(){}b5.Hm=function(h){var e=new Uint8Array(h),$=4,Z=k.oO(e,$);
$+=2;var c=k.n(e,$);$+=4;var q=[];for(var G=0;G<c;G++){var E={};q.push(E);$=b5.ey(e,$,E)}return q};b5.KG=function(h,e){h.name=e};
b5.A7=function(h){var e=new e4,$=0;k.Ed(e,$,"8BPT");$+=4;k.W$(e,$,1);$+=2;k.ni(e,$,h.length);$+=4;for(var G=0;
G<h.length;G++){$=b5.f4(e,$,h[G])}return e.data.slice(0,$).buffer};b5.ky=function(h,e,$){var Z=e+$,c=[];
while(e<Z){var q={},E=k.n(h,e);e+=4;var P=e;e=b5.ey(h,e,q);if(!q.Rv[1].nK())c.push(q);if(E%4!=0)E+=4-E%4;
e=P+E}return c};b5.tN=function(h,e,$){for(var G=0;G<$.length;G++){var Z=$[G];e+=4;var c=e;e=b5.f4(h,e,Z);
var q=e-c;k.ni(h,c-4,q);if(q%4!=0)c+=4-q%4;e=c+q}return e};b5.ey=function(h,e,$){var Z=k.n(h,e);e+=4;
if(Z!=1)alert("Unknown version of pattern");var c=k.n(h,e);e+=4;if(c!=1&&c!=2&&c!=3)console.log("Unsupported mode of pattern: "+c);
var q=k.oO(h,e);e+=2;var E=k.oO(h,e);e+=2;var P=new O(0,0,E,q);$.name=k.$d(h,e);e+=4+2*$.name.length+2;
var a=h[e];e++;$.id=k.dd(h,e,a);e+=$.id.length;var j=-1;if(c==2){j=e;e+=3*256+4}var L=new s.EI(E*q);
e=b5.a1P(h,e,L);if(c==2){for(var G=0;G<L.h.length;G++){var H=3*L.h[G];L.h[G]=h[j+H+0];L.l[G]=h[j+H+1];
L.O[G]=h[j+H+2]}}var _=s.m(P.X()*4);s.cl(L,_);$.Rv=[_,P];return e};b5.f4=function(h,e,$){var Z=$.Rv[0],c=$.Rv[1];
k.ni(h,e,1);e+=4;k.ni(h,e,3);e+=4;k.W$(h,e,c.v);e+=2;k.W$(h,e,c.d);e+=2;k.Q7(h,e,$.name+"\0");e+=4+2*$.name.length+2;
k.Bn(h,e,$.id.length);e++;k.Ed(h,e,$.id);e+=$.id.length;var q=new s.EI(c.X());s.DC(Z,q);e=b5.a6V(h,e,q,c);
return e};b5.a1P=function(h,e,$){var Z=e,c={_:null,RI:[],a4B:null,lK:null},q=k.n(h,e);e+=4;var E=k.n(h,e);
e+=4;c._=k.RQ(h,e);e+=16;var P=k.n(h,e);e+=4;for(var G=0;G<P+2;G++){var a=k.n(h,e);e+=4;if(a==0)continue;
var j=k.n(h,e);e+=4;if(j==0)continue;var L=k.n(h,e);e+=4;var H=k.RQ(h,e);e+=16;var _=k.oO(h,e);e+=2;
var J=h[e];e++;var S=f6.yl(!1,L,h,H.d,H.v,e,J);if(G<P)c.RI.push(S);if(G==P)c.a4B=S;if(G==P+1)c.lK=S;
e+=j-23}if(!c._.nK()){if(c.RI[0])$.h=c.RI[0];if(c.RI[1])$.l=c.RI[1];else $.l=c.RI[0].slice(0);if(c.RI[2])$.O=c.RI[2];
else $.O=c.RI[0].slice(0);if(c.lK)$.R=c.lK;else $.R.fill(255)}return e};b5.a6V=function(h,e,$,Z){var c=e,q={_:Z,RI:[$.h,$.l,$.O],a4B:null,lK:$.R};
k.ni(h,e,3);e+=4;k.ni(h,e,0);e+=4;k.pS(h,e,Z);e+=16;k.ni(h,e,24);e+=4;for(var G=0;G<24+2;G++){var E=e,P=G<3||G==25?1:0;
k.ni(h,e,P);e+=4;if(P==0)continue;k.ni(h,e,0);e+=4;k.ni(h,e,8);e+=4;k.pS(h,e,Z);e+=16;k.W$(h,e,8);e+=2;
k.Bn(h,e,1,1);e++;var a=G<3?q.RI[G]:q.lK;h.sN(e,Z.X()+2);e=f6.jF(a,h.data,Z.d,Z.v,e,1);k.ni(h,E+4,e-E-8)}k.ni(h,c+4,e-c-8);
return e};function ap(){}ap.Hm=function(h){var e=new Uint8Array(h),$=0,Z=k.dd(e,$,4);$+=4;var c=k.oO(e,$);
$+=2;var q=[];if(c<=3){var E=k.oO(e,$);$+=2;for(var G=0;G<E;G++){var P=e[$++],a=k.dd(e,$,P);$+=P;var j=ap.sl(e,$,a),L=j[0];
$=j[1];q.push(L);$+=6}}else{var j={},H=bf.Cb(e,j,$+4),_=j.GrdL.v;for(var G=0;G<_.length;G++)q[G]=_[G].v.Grad.v}return q};
ap.KG=function(h,e){h.Nm.v=e};ap.A7=function(h){var e=new e4,$=0;k.Ed(e,$,"8BGR");$+=4;k.W$(e,$,5);$+=2;
k.ni(e,$,16);$+=4;var Z={classID:"null",GrdL:{t:"VlLs",v:[]}},c=Z.GrdL.v;for(var G=0;G<h.length;G++)c[G]={t:"Objc",v:{classID:"Grdn",__name:"Gradient ",Grad:{t:"Objc",v:h[G]}}};
$+=bf.il(e,Z,$);return e.data.slice(0,$).buffer};ap.sl=function(h,e,$){var Z={classID:"Grdn",Clrs:{t:"VlLs",v:[]},GrdF:{t:"enum",v:{GrdF:"CstS"}},Intr:{t:"doub",v:4096},Nm:{t:"TEXT",v:$},Trns:{t:"VlLs",v:[]}},c=k.oO(h,e);
e+=2;if(c==0)throw"e";for(var G=0;G<c;G++){var q=k.n(h,e),E=k.n(h,e+4),P=ho._w(h,e+8),a={t:"Objc",v:{classID:"Clrt",Clr:{t:"Objc",v:{classID:"RGBC",Rd:{t:"doub",v:P.h},Grn:{t:"doub",v:P.l},Bl:{t:"doub",v:P.O}}},Type:{t:"enum",v:{Clry:"UsrS"}},Lctn:{t:"long",v:q},Mdpn:{t:"long",v:E}}};
Z.Clrs.v.push(a);e+=20}var j=k.oO(h,e);e+=2;for(var G=0;G<j;G++){var q=k.n(h,e),E=k.n(h,e+4),L=k.oO(h,e+8),a={t:"Objc",v:{classID:"TrnS",Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(100*L/255)}},Lctn:{t:"long",v:q},Mdpn:{t:"long",v:E}}};
Z.Trns.v.push(a);e+=10}return[Z,e]};ap.a32=function(h,e,$){var Z=$.Clrs.v.length;k.W$(h,e,Z);e+=2;for(var G=0;
G<Z;G++){var c=$.Clrs.v[G];k.ni(h,e,c.v.Lctn.v);k.ni(h,e+4,c.v.Mdpn.v);k.W$(h,e+8,0);var q=s.Y.lp(s.Y.LX(c.v.Clr.v)),E=[q.Rd.v,q.Grn.v,q.Bl.v,0];
for(var P=0;P<4;P++)k.W$(h,e+10+P*2,Math.round(65535*(E[P]/255)));e+=20}var a=$.Trns.v.length;k.W$(h,e,a);
e+=2;for(var G=0;G<a;G++){var c=$.Trns.v[G];k.ni(h,e,c.v.Lctn.v);k.ni(h,e+4,c.v.Mdpn.v);k.W$(h,e+8,Math.round(255*c.v.Opct.v.val/100));
e+=10}return e};function g5(){}g5.Hm=function(h){var e=new Uint8Array(h),$=[],Z=[],c=[],q=[],E=[],P=0,a=k.dd(e,P,4);
P+=4;var j=k.n(e,P);P+=4;var L=k.n(e,P);P+=4;while(P<e.length){var H=k.dd(e,P,4);P+=4;var _=k.dd(e,P,4);
P+=4;var J=k.n(e,P);P+=4;if(_=="tppa"){Z=b5.ky(e,P,J);P+=J}else if(_=="tpbd"){c=gH.w7(e,P,J,1,1);P+=J}else if(_=="tptp"){var S=k.n(e,P);
P+=4;for(var G=0;G<S;G++){var N=k.$d(e,P);P+=6+N.length*2;P+=4;var Y={};P+=bf.Cb(e,Y,P);$.push([N,Y])}while((P&3)!=0)P++}else if(_=="tpsh"){var U=P,g=e.slice(P,P+J);
while(P<U+J){var M=k.n(e,P);P+=4;P=bS.C8(e,P,"Shape",q)}P=U+J}else if(_=="tpst"){var U=P;P+=4;while(P<U+J){var C=k.n(e,P);
P+=4;var y=P,i=k.n(e,P);P+=4;var Y={h0:{},R_:{}};E.push(Y);P+=4;P+=bf.Cb(e,Y.h0,P);P+=4;P+=bf.Cb(e,Y.R_,P);
P=y+C;var Q=Y.R_.Lefx;if(Q){if(Q.v.masterFXSwitch==null)Q.v.masterFXSwitch={t:"bool",v:!0};ck.q1(Q.v)}}P=U+J}else{console.log(e.slice(P-8,P+64));
console.log(k.dd(e,P-8,64));throw _}}return{nM:c,fB:Z,list:$,abw:q,Mp:E}};g5.KG=function(h,e){h[0]=e};
g5.A7=function(h){var e=new e4,$=0;k.Ed(e,$,"8BTP");$+=4;k.ni(e,$,3);$+=4;k.ni(e,$,1);$+=4;var Z=[h.fB,h.nM,h.list];
for(var G=0;G<3;G++){if(Z[G].length==0)continue;k.Ed(e,$,"8BIM");$+=4;var c=["tppa","tpbd","tptp"][G];
k.Ed(e,$,c);$+=4;var q=$;$+=4;if(c=="tppa"){$=b5.tN(e,$,h.fB)}else if(c=="tpbd"){$=gH.v6(e,$,h.nM)}else if(c=="tptp"){k.ni(e,$,h.list.length);
$+=4;for(var E=0;E<h.list.length;E++){var P=h.list[E];k.Q7(e,$,P[0]+"\0");$+=6+P[0].length*2;k.ni(e,$,16);
$+=4;$+=bf.il(e,P[1],$)}}k.ni(e,q,$-q-4);while(($&3)!=0)$++;e.sN($,0)}return e.data.slice(0,$).buffer};
function f0(){}f0.Hm=function(h,e){var $=new Uint8Array(h),Z;if(k.n($,0)==$.length)Z="icc";else if($[0]=="<".charCodeAt(0))Z="look";
else if(k.O8($,"LUT_3D_SIZE")!=-1)Z="cube";else Z="3DL";if(Z!="icc"){var c=f0.a8$($,Z),q=f0.aks(c[0],c[1]);
$=q}var E=[];for(var G=0;G<$.length;G++)E.push($[G]);return[{classID:"null",Dthr:{t:"bool",v:!0},Nm:{t:"TEXT",v:e?e:"file.icc"},lookupType:{t:"enum",v:{colorLookupType:"abstractProfile"}},profile:{t:"tdta",v:E}}]};
f0.A7=function(h){var e=h[0],$=new Uint8Array(e.profile.v);return $.buffer};f0.KG=function(h,e){h.Nm.v=e};
f0.aks=function(h,e){var $=new e4,Z=128;$.sN(0,128);var c=[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 G=0;G<c.length;G++)$.data[G]=c[G];var q=["desc","A2B0"],E=q.length,P=128+4+E*12;k.ni($,Z,E);
Z+=4;for(var a=0;a<E;a++){var j=q[a];k.Ed($,Z,j);Z+=4;k.ni($,Z,P);Z+=4;var L=P;if(j=="desc"){k.Ed($,L,"mluc");
L+=4;L+=4;k.ni($,L,1);L+=4;k.ni($,L,12);L+=4;k.Ed($,L,"enUS");L+=4;var H="ICC by Photopea\0",_=H.length*2+2;
k.ni($,L,_);L+=4;k.ni($,L,28);L+=4;$.sN(L,_);for(var G=0;G<H.length;G++)$.data[L+G*2+1]=H.charCodeAt(G);
L+=_}if(j=="A2B0"){k.Ed($,L,"mAB ");L+=4;L+=4;$.sN(L,4);$.data[L]=3;$.data[L+1]=3;L+=4;$.sN(L,4*5);L+=4*3;
k.ni($,L,L+8-P);L+=4;L+=4;$.sN(L,20);$.data[L]=h;$.data[L+1]=h;$.data[L+2]=h;L+=16;$.data[L]=2;L+=4;
var J=h*h*h*3;$.sN(L,J*2);for(var G=0;G<J;G++)k.OF($.data,L+G*2,Math.max(0,Math.min(65535,Math.round(e[G]*65535))));
L+=J*2}var S=L-P;while((S&3)!=0)S++;k.ni($,Z,S);Z+=4;P+=S}k.ni($,0,P);return $.data.slice(0,P)};f0.a8$=function(h,e){e="LUTFormat"+e.toUpperCase();
var $=[],Z=0,c=k.rM(h,0,h.length),q="";for(var G=0;G<h.length&&q=="";G++){if(h[G]==10)q="\n";else if(h[G]==13){q="\r";
if(h[G+1]==10)q+="\n"}}if(e=="LUTFormatCUBE"){var E=c.split(q);for(var G=0;G<E.length;G++){if(E[G]==""||E[G][0]=="#")continue;
var P=E[G].split(" "),a=P[0];if(a=="LUT_3D_SIZE"){Z=parseInt(P[1]);continue}if(["TITLE","DOMAIN_MIN","DOMAIN_MAX"].indexOf(a)!=-1)continue;
$.push(parseFloat(P[0]),parseFloat(P[1]),parseFloat(P[2]))}$=f0.xe(Z,$)}else if(e=="LUTFormat3DL"){var E=c.split(q),j=1/4095;
for(var G=0;G<E.length;G++){var L=E[G];if(L==""||L=="3DMESH"||L.startsWith("Mesh")||L[0]=="#")continue;
var P=L.split(" "),a=P[0];if(Z==0){Z=P.length;continue}$.push(parseFloat(P[0])*j,parseFloat(P[1])*j,parseFloat(P[2])*j)}}else if(e=="LUTFormatLOOK"){var H=new DOMParser,_=H.parseFromString(c,"text/xml"),J=_.getElementsByTagName("LUT")[0],S=J.children[0].textContent;
Z=parseInt(JSON.parse(S));var N=J.children[1].textContent;N=N.replace(/"/g,"").replace(/\s/g,"");var Y=3*Z*Z*Z,U=Y*4,g=new Uint8Array(U);for(var G=0;G<U;G++){var M=N.charCodeAt(G*2),C=N.charCodeAt(G*2+1),y=M<58?M-48:M-55,i=C<58?C-48:C-55;g[G]=(y<<4)+i}for(var G=0;G<Y;G++)$.push(k.hz(g,G<<2));$=f0.xe(Z,$)}else throw e;return[Z,$]};f0.a72=function(h,e,$){var Z=["#Created by www.Photopea.com","TITLE \""+$+"\"","","#LUT size","LUT_3D_SIZE "+e,"","#data domain","DOMAIN_MIN 0.0 0.0 0.0","DOMAIN_MAX 1.0 1.0 1.0","","#LUT data points"],c=6;
for(var G=0;G<h.length;G+=3){Z.push(h[G].toFixed(c)+" "+h[G+1].toFixed(c)+" "+h[G+2].toFixed(c))}Z.push("");
return k.Ft(Z.join("\n")).buffer};f0.xe=function(h,e){var $=[],Z=h*h*h;for(var G=0;G<Z;G++)$.push(0,0,0);
for(var c=0;c<h;c++)for(var q=0;q<h;q++)for(var E=0;E<h;E++){var G=3*(E+q*h+c*h*h),P=3*(c+q*h+E*h*h);
$[P]=e[G];$[P+1]=e[G+1];$[P+2]=e[G+2]}return $};function bf(){}bf.Cb=function(h,e,$,Z,c){var q=$,E;if(c==null)c=0;
var P=k.n(h,$);if(P==0){E="";$+=4}else{E=k.$d(h,$);$+=4+2*E.length+2}if(E!="")e.__name=E;e.classID=bf.mP(h,$);
if(Z)console.log("\t".repeat(c),"- reading descriptor",e.classID,$);$+=bf.bS(h,$);var a=k.hY(h,$);$+=4;
for(var G=0;G<a;G++){var j=bf.mP(h,$);$+=bf.bS(h,$);var L=bf.Vw(h,$,Z,c);e[j]=L;$+=L.size;delete L.size}return $-q};
bf.il=function(h,e,$,Z){var c=$,q=e.__name;if(q==null)q="";q+="\0";k.Q7(h,$,q);$+=4+2*q.length;bf.U8(h,$,e.classID);
$+=bf.bS(h.data,$);k.vi(h,$,Object.keys(e).length-1-(e.__name==null?0:1));$+=4;for(var E in e){if(E=="classID")continue;
if(E=="__name")continue;bf.U8(h,$,E);$+=bf.bS(h.data,$);$+=bf.sY(h,$,e[E])}return $-c};bf.Vw=function(h,e,$,Z){var c=e,q=k.dd(h,e,4);
e+=4;var E={size:0,t:q,v:null};if($)console.log("\t".repeat(Z),"reading key",q,c);switch(q){case"obj ":case"VlLs":E.v=[];
var P=k.n(h,e);e+=4;for(var G=0;G<P;G++){var a=bf.Vw(h,e,$,Z+1);e+=a.size;delete a.size;E.v.push(a)}break;
case"UntF":E.v={type:k.dd(h,e,4),val:k.bq(h,e+4)};e+=12;break;case"doub":E.v=k.bq(h,e);e+=8;break;case"bool":E.v=h[e]==1;
e+=1;break;case"long":E.v=k.hY(h,e);e+=4;break;case"comp":E.v=k.hY(h,e+4);e+=8;break;case"Objc":E.v={};
var j=bf.Cb(h,E.v,e,$,Z+1);e+=j;break;case"TEXT":var L=k.n(h,e);if(L==0){E.v="";e+=4}else{E.v=k.$d(h,e);
e+=4+E.v.length*2+2}break;case"enum":var H=bf.mP(h,e);e+=bf.bS(h,e);var _=bf.mP(h,e);e+=bf.bS(h,e);E.v={};
E.v[H]=_;break;case"tdta":var J=k.hY(h,e);e+=4;E.v=[];for(var G=0;G<J;G++)E.v.push(h[e+G]);e+=J;break;
case"ObAr":var S=k.n(h,e);e+=4;var N=k.$d(h,e);e+=4+2*N.length+2;if(N!="")throw N;var Y=bf.mP(h,e);e+=4+Math.max(4,Y.length);
E.v={classID:Y,arr:[]};var U=k.n(h,e);e+=4;for(var G=0;G<U;G++){var Y=bf.mP(h,e);e+=4+Math.max(4,Y.length);
var H=k.dd(h,e,4);e+=4;var g=k.dd(h,e,4);e+=4;var M={id:Y,type:H,uID:g,arr:[]};E.v.arr.push(M);var C=k.n(h,e,4);
e+=4;for(var y=0;y<C;y++){var i=k.bq(h,e);e+=8;M.arr.push(i)}}break;case"Pth ":var Q=e,J=k.n(h,e);e+=4;
var m=k.dd(h,e,4);e+=4;var n=k.bt(h,e);e+=4;var u=k.anh(h,e);e+=4+u.length*2;E.v={sig:m,pth:u};break;
case"Clss":case"type":case"rele":var u=k.$d(h,e);e+=4+u.length*2+2;var K=bf.mP(h,e);e+=4+Math.max(4,K.length);
E.v={classID:K};if(u!="")E.v.__name=u;if(q=="rele"){E.v.val=k.hY(h,e);e+=4}break;case"prop":case"Enmr":case"indx":case"name":var F=bf.vY[q],u=k.$d(h,e);
e+=4+u.length*2+2;if(u.length!=0){console.log(q,u);throw"e"}E.v={};for(var G=0;G<F.length;G++){var K=bf.mP(h,e);
e+=4+Math.max(4,K.length);E.v[F[G]]=K}if(q=="name"){var u=k.$d(h,e);e+=4+u.length*2+2;E.v.val=u}if(q=="indx"){E.v.val=k.n(h,e);
e+=4}break;case"alis":var J=k.n(h,e);e+=4;E.v=k.dd(h,e,J);e+=J;break;default:{console.log("unknown oskey: "+q+", "+c);
throw"e";return E}}if($){console.log("\t".repeat(Z),E.v);console.log("\t".repeat(Z),"======",e)}E.size=e-c;
return E};bf.vY={name:["classID"],prop:["classID","keyID"],Enmr:["classID","typeID","enum"],indx:["classID"]};
bf.sY=function(h,e,$){var Z=e,c=$.t;$=$.v;k.Ed(h,e,c);e+=4;switch(c){case"obj ":case"VlLs":k.vi(h,e,$.length);
e+=4;for(var q=0;q<$.length;q++){var E=bf.sY(h,e,$[q]);e+=E}break;case"UntF":k.Ed(h,e,$.type);k.aL(h,e+4,$.val);
e+=12;break;case"doub":k.aL(h,e,$);e+=8;break;case"bool":k.Bn(h,e,$?1:0,1);e+=1;break;case"long":k.vi(h,e,$);
e+=4;break;case"comp":k.vi(h,e+4,$);e+=8;break;case"Objc":var E=bf.il(h,$,e);e+=E;break;case"TEXT":k.Q7(h,e,$+"\0");
e+=4+$.length*2+2;break;case"enum":var P=Object.keys($)[0],a=$[P];bf.U8(h,e,P);e+=bf.bS(h.data,e);bf.U8(h,e,a);
e+=bf.bS(h.data,e);break;case"tdta":k.ni(h,e,$.length);e+=4;k.$N(h,e,$);e+=$.length;break;case"ObAr":k.ni(h,e,$.arr[0].arr.length);
e+=4;k.Q7(h,e,"\0");e+=6;bf.U8(h,e,$.classID);e+=4+Math.max(4,$.classID.length);k.ni(h,e,$.arr.length);
e+=4;for(var G=0;G<$.arr.length;G++){var j=$.arr[G];bf.U8(h,e,j.id);e+=4+Math.max(4,j.id.length);k.Ed(h,e,j.type);
e+=4;k.Ed(h,e,j.uID);e+=4;k.ni(h,e,j.arr.length);e+=4;for(var q=0;q<j.arr.length;q++){k.aL(h,e,j.arr[q]);
e+=8}}break;case"Pth ":var L=$.pth.length*2+4+8;k.ni(h,e,L);e+=4;k.Ed(h,e,$.sig);e+=4;k.t2(h,e,L);e+=4;
k.al7(h,e,$.pth);e+=$.pth.length*2+4;break;case"Clss":case"type":case"rele":var H=$.__name;if(H==null)H="";
k.Q7(h,e,H+"\0");e+=4+H.length*2+2;var _=$.classID;bf.U8(h,e,_);e+=4+Math.max(4,_.length);if(c=="rele"){k.vi(h,e,$.val);
e+=4}break;case"prop":case"Enmr":case"indx":case"name":var J=bf.vY[c];k.ni(h,e,1);e+=6;for(var G=0;G<J.length;
G++){var _=$[J[G]];bf.U8(h,e,_);e+=4+Math.max(4,_.length)}if(c=="name"){k.Q7(h,e,$.val+"\0");e+=4+$.val.length*2+2}if(c=="indx"){k.ni(h,e,$.val);
e+=4}break;case"alis":var L=$.length;k.ni(h,e,L);e+=4;k.Ed(h,e,$);e+=L;break;default:console.log("unknown oskey: "+c);
e=Z;break}return e-Z};bf.mP=function(h,e){var $=k.hY(h,e);if($>1e3)throw"e";if($==0)$=4;return k.dd(h,e+4,$).trim()};
bf.bS=function(h,e){var $=k.hY(h,e);return $==0?8:4+$};bf.U8=function(h,e,$){var Z="warp list Comp xx xy yx yy tx ty PinP PnRt PnOv PnDp xor PuX0 PuX1 PuX2 PuX3 PuY0 PuY1 PuY2 PuY3 base kana ruby box flow trim then else".split(" "),c=4<$.length||Z.indexOf($)!=-1;
k.vi(h,e,c?$.length:0);k.Ed(h,e+4,$);if($.length<4&&!c){var q="";for(var G=$.length;G<4;G++)q+=" ";k.Ed(h,e+4+$.length,q)}};
bf.adA=function(h){var e={};for(var $ in h){if($=="classID")e[$]=h[$];else if($=="__name")e[$]=h[$];
else e[$]=bf.Wg(h[$])}return e};bf.Wg=function(h){if(h.A2=="Objc")return bf.adA(h.v);else if(h.A2=="VlLs"){var e=[];
for(var G=0;G<h.v.length;G++)e.push(bf.Wg(h.v[G]));return e}else if(h.A2=="UntF")return h.v.val;else return h.v};
function ck(){}ck.SM=function(h,e,$,Z,c,q){while(e<$){var E=k.dd(h,e,4);e+=4;if(E!="8BIM"&&E!="8B64"){console.log("layer information signature error! "+E,"PSB = "+c);
alert("Error in PSD file: wrong signature.");return $}var P=k.dd(h,e,4);e+=4;var a=k.hY(h,e);e+=4;if(c&&"LMsk Lr16 Lr32 Layr Mt16 Mt32 Mtrn Alph FMsk lnk2 lnkE FEid FXid PxSD extn cinf artd".split(" ").indexOf(P)!=-1){a=a<<32|k.hY(h,e);
e+=4}if(c&&["pths"].indexOf(P)!=-1){a=a<<32|k.hY(h,e);e+=4}var j=["lrFX","PlLd"];if(j.indexOf(P)!=-1){if(a%4!=0)a+=4-a%4;
e+=a;continue}switch(P){case"iOpa":Z[P]=h[e];break;case"brst":Z[P]=[1,1,1];for(var G=0;G<a;G+=4)Z[P][k.n(h,e+G)]=0;
break;case"knko":Z[P]=h[e];break;case"infx":Z[P]=h[e];break;case"clbl":Z[P]=h[e];break;case"lmgm":Z[P]=h[e];
break;case"vmgm":Z[P]=h[e];break;case"lyid":Z[P]=k.n(h,e);break;case"lsct":Z[P]={type:k.n(h,e)};if(a>=12)Z[P].oG=k.dd(h,e+8,4);
break;case"lsdk":Z.lsct={type:k.n(h,e)};break;case"lyvr":Z[P]=k.n(h,e);break;case"lnsr":var L={artb:1,bgnd:1,cont:1,layr:1,lset:1,rend:1,shap:1,user:1,____:null};
Z[P]=k.dd(h,e,4);break;case"lspf":Z[P]=k.n(h,e);break;case"lclr":Z[P]=k.oO(h,e);break;case"luni":Z[P]=k.uT(h,e);
break;case"fxrp":Z[P]=new eu(k.bq(h,e),k.bq(h,e+8));break;case"artb":case"artd":Z[P]={};bf.Cb(h,Z[P],e+4);
break;case"SoCo":Z[P]={};bf.Cb(h,Z[P],e+4);break;case"GdFl":Z[P]={};bf.Cb(h,Z[P],e+4);ck.Nc(Z[P],P);
break;case"PtFl":Z[P]={};bf.Cb(h,Z[P],e+4);ck.Nc(Z[P],P);break;case"CgEd":var H=Z.brit=dA.X3("brit"),_={};
bf.Cb(h,_,e+4);H.Brgh.v=_.Brgh?_.Brgh.v:0;H.Cntr.v=_.Cntr?_.Cntr.v:0;H.useLegacy.v=_.useLegacy?_.useLegacy.v:0;
break;case"brit":if(Z.brit==null){var H=Z.brit=dA.X3("brit"),_={};H.Brgh.v=k.nP(h,e);H.Cntr.v=k.nP(h,e+2);
H.useLegacy.v=!1}break;case"levl":var J=h.buffer.slice(e,e+a);Z[P]=fH.Hm(J);break;case"curv":Z[P]=cH.Yo(h,e,a);
break;case"expA":var S=k.oO(h,e),N=Z[P]=dA.X3("expA");N.Exps.v=k.tk(h,e+2);N.Ofst.v=k.tk(h,e+6);N.gammaCorrection.v=k.tk(h,e+10);
break;case"vibA":Z[P]={};bf.Cb(h,Z[P],e+4);break;case"hue2":Z[P]=eb.Yo(h,e,a);break;case"blnc":var N=Z[P]=dA.X3(P);
N.PrsL.v=h[e+18]==1;var Y=["ShdL","MdtL","HghL"];for(var G=0;G<3;G++)for(var U=0;U<3;U++)N[Y[G]].v[U].v=k.nP(h,e+G*6+U*2);
break;case"blwh":var g={};bf.Cb(h,g,e+4);var N=dA.X3(P),M="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" ");
for(var G=0;G<M.length;G++){N[M[G]]=g[M[G]];delete g[M[G]]}Z[P]=N;break;case"phfl":var N=Z[P]=dA.X3(P),C=N.Clr.v,S=k.oO(h,e);
if(S==3){var y=[k.n(h,e+2),k.n(h,e+6),k.n(h,e+10)],i=32768,Q=s.Ok(y[0]/i,y[1]/i,y[2]/i);C.Lmnc.v=Q.Hs;
C.A.v=Q.R;C.B.v=Q.O}if(S==2){var m=k.oO(h,e+2);if(m!=7)throw"e";C.Lmnc.v=k.nP(h,e+4)/100;C.A.v=k.nP(h,e+6)/100;
C.B.v=k.nP(h,e+8)/100}var n=e+2+(S==3?12:10);N.Dnst.v=k.n(h,n);n+=4;N.PrsL.v=h[n]==1;break;case"mixr":var u={OK:k.oO(h,e+2)==1,G:[]};
for(var G=0;G<20;G++)u.G.push(k.nP(h,e+4+G*2));Z[P]=es.Kk(u);break;case"clrL":case"rplc":Z[P]={};bf.Cb(h,Z[P],e+6);
break;case"nvrt":Z[P]={};break;case"post":Z[P]=dA.X3("post");Z[P].Lvls.v=k.oO(h,e);break;case"thrs":Z[P]=dA.X3("thrs");
Z[P].Lvl.v=k.oO(h,e);break;case"grdm":var K={rev:h[e+2]==1,aep:h[e+3]==1},F=e+4,b=k.uT(h,F);F+=4+b.length*2;
var d=ap.sl(h,F,b),W=d[0];F=d[1];var A=k.oO(h,F);F+=2;W.Intr.v=k.oO(h,F);F+=2;var z=k.oO(h,F);F+=2;K.mode=k.oO(h,F);
F+=2;K.ZW=k.n(h,F);F+=4;K.a7d=k.oO(h,F)==1;F+=2;K.a9D=k.oO(h,F)==1;F+=2;K.a8S=k.n(h,F);F+=4;K.a3Q=k.oO(h,F);
F+=2;K.XV=[];for(var G=0;G<4;G++)K.XV.push(k.oO(h,F+G*2));F+=8;K.d9=[];for(var G=0;G<4;G++)K.d9.push(k.oO(h,F+G*2));
F+=8;var T=k.oO(h,F);F+=2;var R=dA.X3("grdm");R.Rvrs.v=K.rev;R.Grad.v=W;Z[P]=R;break;case"selc":Z[P]=aS.Yo(h,e,a);
break;case"vmsk":case"vsms":var I=Z.vmsk=new o.MM,r=k.hY(h,e+4),x=(r>>0&1)==1;I.MV=(r>>1&1)==0;I.isEnabled=(r>>2&1)==0;
I.b=bS.KJ(h,e+8,a-8,q.d,q.v);break;case"shmd":Z[P]={};var l=k.n(h,e),n=e+4;for(var G=0;G<l;G++){var E=k.dd(h,n,4);
n+=4;var hH=k.dd(h,n,4);n+=4;var hZ=h[n];n++;if(Math.max(h[n],h[n+1],h[n+2])!=0)throw"e";n+=3;var gj=k.n(h,n);
n+=4;if(hH=="cust"||hH=="cmls"||hH=="extn"||hH=="mlst"){var hO=k.n(h,n);if(hO!=16)n+=4;if(k.n(h,n)==16){var g={};
bf.Cb(h,g,n+4,!1);Z[P][hH]=g;if(hH=="cmls")bn.Mv.a1W(Z[P][hH])}}else{console.log("unknown shmd key: "+hH+", size: "+gj)}n+=gj}break;
case"shpa":var S=k.n(h,e),d3=k.n(h,e+4);if(d3!=0)console.log("some patterns present!");break;case"TySh":var v=Z[P]={},S=k.oO(h,e);
v.J=k.eb(h,e+2);var hl=k.oO(h,e+2+48);v.jR={};var ht=bf.Cb(h,v.jR,e+56),ga=gK.eU();for(var eB in ga)if(v.jR[eB]==null)v.jR[eB]=ga[eB];
v.$F={};var bP=bf.Cb(h,v.$F,e+56+ht+6);v._P=k.ahu(h,e+56+ht+6+bP);v.Kx=i3.Hm(v.jR.EngineData.v);gK.a0q(v.Kx.EngineDict.StyleRun.RunArray);
if(v.Kx.ResourceDict==null)v.Kx.ResourceDict=JSON.parse(JSON.stringify(v.Kx.DocumentResources));delete v.jR.EngineData;
break;case"lfx2":case"lmfx":case"lfxs":var ek=k.n(h,e),b_=k.n(h,e+4);Z.lmfx={};var ht=bf.Cb(h,Z.lmfx,e+8);
ck.q1(Z.lmfx);break;case"FMsk":Z[P]=k.nH(h,e,a);break;case"Txt2":Z[P]={};Z[P].raw=k.nH(h,e,a);Z[P].AA=dL.Hm(Z[P].raw);
break;case"Patt":Z[P]=b5.ky(h,e,a);break;case"SoLd":var fz=k.dd(h,e,4),ca=k.n(h,e+4),gf=k.n(h,e+8);Z[P]={};
var bb=bf.Cb(h,Z[P],e+12);if(Z[P].nonAffineTransform==null)Z[P].nonAffineTransform=JSON.parse(JSON.stringify(Z[P].Trnf));
if(Z[P].Impr==null)Z[P].Impr={t:"Objc",v:{__name:"None",classID:"none"}};break;case"vstk":case"pths":var ca=k.n(h,e);
Z[P]={};var bb=bf.Cb(h,Z[P],e+4);break;case"vscg":var hH=k.dd(h,e,4),ca=k.n(h,e+4);Z[hH]={};var bb=bf.Cb(h,Z[hH],e+8);
ck.Nc(Z[hH],hH);break;case"vogk":var b2=k.n(h,e),ca=k.n(h,e+4);Z[P]={};var bb=bf.Cb(h,Z[P],e+8);Z[P]=Z[P].keyDescriptorList.v;
for(var G=0;G<Z[P].length;G++){}break;case"lnk2":case"lnkD__":case"lnk3__":Z[P]=[];var F=e;while(F<e+a){var dV=new o.uI;
Z[P].push(dV);var z=k.EQ(h,F);F+=8;var ch=F;dV.type=k.dd(h,F,4);F+=4;if(dV.type!="liFD"){alert("Unknown Linked Layer type: "+dV.type);
break;throw dV.type}dV.hs=k.n(h,F);F+=4;var hE=k.CA(h,F);F+=1+hE.zm.length;dV.af=hE.zm;dV.mD=k.$d(h,F);
F+=4+dV.mD.length*2+2;dV.cp=k.dd(h,F,4);F+=4;dV.B6=k.dd(h,F,4);F+=4;var dS=k.EQ(h,F);F+=8;dV.open=h[F];
F+=1;if(dV.open!=0){var e1={},ht=bf.Cb(h,e1,F+4);if(ht%4!=0)ht+=4-ht%4;console.log(e1);F+=ht+4}dV.open=0;
dV.raw=k.nH(h,F,dS);F=ch+z;if(z%4!=0)F+=4-z%4}break;case"FEid":var F=e;Z[P]=[];var eG=F+a,S=k.n(h,F);
F+=4;while(F<eG){F+=4;var z=k.n(h,F);F+=4;var d={};Z[P].push(d);d.id=k.CA(h,F).zm;F+=d.id.length+1;var S=k.n(h,F);
F+=4;F+=4;var dq=k.n(h,F);F+=4;d.rect=k.RQ(h,F);F+=16;var f2=k.n(h,F);F+=4;var a3=k.n(h,F);F+=4;var bm=new s.EI(0);
for(var G=0;G<a3+2;G++){var h2=k.n(h,F);F+=4;if(h2!=0){F+=4;var ag=k.n(h,F),eU=null;F+=4;if(G<3||G==25)eU=f6.pI(!0,f2,h,d.rect.d,d.rect.v,F,ag);
if(G==0)bm.h=eU;if(G==1)bm.l=eU;if(G==2)bm.O=eU;if(G==25)bm.R=eU;F+=ag}}d.buffer=s.m(d.rect.X()*4);s.cl(bm,d.buffer);
s.Wm(d);var iz=h[F];F++;if(iz!=0){d.r=new o.kq;d.r.rect=k.RQ(h,F);F+=16;F+=4;var d2=k.n(h,F);F+=4;d.r.channel=f6.pI(!0,f2,h,d.r.rect.d,d.r.rect.v,F,d2);
d.r.color=255;d.r.V9();F+=d2}if(z%4!=0)F+=4-z%4}break;case"Lr16":ip.BE(q,h,e);break;default:console.log("unknown layer tag: "+P+", size: "+a);
break}var gP="Lr16 LMsk Txt2 artd extd luni pths extn tySh lfx2".split(" ");if(gP.indexOf(P)==-1)if(a%4!=0)console.log("size not multiple of 4!!!",P);
if(P!="luni"&&P!="TySh"&&P!="tySh"&&P!="lfx2")if(a%4!=0)a+=4-a%4;e+=a}var fa=[];for(var G=0;G<fa.length;
G++)delete Z[fa[G]];return e};ck.v7=function(h,e,$,Z){for(var c in $)if($[c]==null){alert("A bug occured (see console).");
console.log("Please, report a bug, that \""+c+"\" tag was present with a null value.");delete $[c]}for(var c in $){k.Ed(h,e,"8BIM");
e+=4;var q=e,E=0;k.Ed(h,e,c);e+=4;k.vi(h,e,0);e+=4;switch(c){case"iOpa":k.Bn(h,e,$[c],1);E=4;break;case"brst":E=0;
for(var G=0;G<3;G++)if($[c][G]==0){k.ni(h,e+E,G);E+=4}break;case"knko":k.Bn(h,e,$[c],1);E=4;break;case"infx":k.Bn(h,e,$[c],1);
E=4;break;case"clbl":k.Bn(h,e,$[c],1);E=4;break;case"lmgm":k.Bn(h,e,$[c],1);E=4;break;case"vmgm":k.Bn(h,e,$[c],1);
E=4;break;case"lyid":k.ni(h,e,$[c]);E=4;break;case"lsct":k.ni(h,e,$[c].type);E=4;if($[c].oG){k.Ed(h,e+4,"8BIM");
k.Ed(h,e+8,$[c].oG);E=12}break;case"lyvr":k.ni(h,e,$[c]);E=4;break;case"lnsr":k.Ed(h,e,$[c]);E=4;break;
case"lspf":k.ni(h,e,$[c]);E=4;break;case"lclr":k.W$(h,e,$[c]);E=8;break;case"luni":k.Q7(h,e,$[c]);E=4+2*$[c].length;
break;case"fxrp":k.aL(h,e,$[c].x);k.aL(h,e+8,$[c].y);E=16;break;case"artb":case"artd":k.ni(h,e,16);E=bf.il(h,$[c],e+4)+4;
break;case"SoCo":k.ni(h,e,16);E=bf.il(h,$[c],e+4)+4;break;case"GdFl":k.ni(h,e,16);E=bf.il(h,$[c],e+4)+4;
break;case"PtFl":k.ni(h,e,16);E=bf.il(h,$[c],e+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}},a=P,j=$[c];
a.Brgh.v=j.Brgh.v;a.Cntr.v=j.Cntr.v;a.useLegacy.v=j.useLegacy.v;k.ni(h,e,16);E=bf.il(h,P,e+4)+4;break;
case"brit":h.sN(e,8);E=8;break;case"levl":var L=new e4;E=fH.A7(L,$[c]);k.$N(h,e,L.data);break;case"curv":E=cH.G4(h,e,$[c]);
break;case"expA":E=14;h.sN(e,14);k.OF(h.data,e,1);k.sM(h.data,e+2,$[c].Exps.v);k.sM(h.data,e+6,$[c].Ofst.v);
k.sM(h.data,e+10,$[c].gammaCorrection.v);break;case"vibA":k.ni(h,e,16);E=bf.il(h,$[c],e+4)+4;break;case"hue2":E=eb.G4(h,e,$[c]);
break;case"blnc":E=19;h.sN(e,E);var H=["ShdL","MdtL","HghL"];for(var G=0;G<3;G++){var _=$[c][H[G]].v;
for(var J=0;J<3;J++)_.push(k.H0(h.data,e+G*6+J*2,_[J].v))}h.data[e+18]=$[c].PrsL.v?1:0;break;case"blwh":var P={classID:"null",bwPresetKind:{t:"long",v:1},blackAndWhitePresetFileName:{t:"TEXT",v:""}},S="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" ");
for(var G=0;G<S.length;G++){P[S[G]]=$[c][S[G]]}k.ni(h,e,16);E=bf.il(h,P,e+4)+4;break;case"phfl":k.W$(h,e,2);
var N=$[c].Clr.v;k.W$(h,e+2,7);k.W$(h,e+4,Math.round(N.Lmnc.v*100));k.W$(h,e+6,Math.round(N.A.v*100));
k.W$(h,e+8,Math.round(N.B.v*100));k.W$(h,e+10,0);var Y=e+2+10;h.sN(Y,5);k.K_(h.data,Y,$[c].Dnst.v);Y+=4;
h.data[Y]=$[c].PrsL.v?1:0;Y++;E=Y-e;break;case"mixr":E=44;h.sN(e,E);var U=es.Mz($[c]);k.OF(h.data,e,1);
k.OF(h.data,e+2,U.OK?1:0);for(var G=0;G<20;G++)k.H0(h.data,e+4+G*2,U.G[G]);break;case"clrL":case"rplc":k.W$(h,e,1);
k.ni(h,e+2,16);E=bf.il(h,$[c],e+6)+6;break;case"nvrt":E=0;break;case"post":k.W$(h,e,$[c].Lvls.v);E=2;
break;case"thrs":k.W$(h,e,$[c].Lvl.v);E=2;break;case"grdm":var g={rev:$[c].Rvrs.v,aep:!1,mode:0,ZW:867527939,a7d:!1,a9D:!0,a8S:2048,a3Q:3,XV:[0,0,0,0],d9:[32768,32768,32768,32768]},M=$[c].Grad.v;
h.sN(e,4);k.OF(h.data,e,1);h.data[e+2]=g.rev?1:0;h.data[e+3]=g.aep?1:0;var C=e+4;k.Q7(h,C,M.Nm.v);C+=4+M.Nm.v.length*2;
C=ap.a32(h,C,M);k.W$(h,C,2);C+=2;k.W$(h,C,M.Intr.v);C+=2;k.W$(h,C,32);C+=2;k.W$(h,C,g.mode);C+=2;k.ni(h,C,g.ZW);
C+=4;k.W$(h,C,g.a7d?1:0);C+=2;k.W$(h,C,g.a9D?1:0);C+=2;k.ni(h,C,g.a8S);C+=4;k.W$(h,C,g.a3Q);C+=2;for(var G=0;
G<4;G++)k.W$(h,C+G*2,g.XV[G]);C+=8;for(var G=0;G<4;G++)k.W$(h,C+G*2,g.d9[G]);C+=8;C+=2;E=C-e;break;case"selc":E=aS.G4(h,e,$[c]);
break;case"FMsk":k.$N(h,e,$[c]);E=$[c].length;break;case"Txt2":var y=new e4,i=dL.XE($[c].AA,y),Q=s.m(i,!0);
for(var G=0;G<i;G++)Q[G]=y.data[G];k.$N(h,e,Q);E=Q.length;break;case"vmsk":var m=$[c],n=0;k.ni(h,e,3);
if(!m.MV)n+=1<<1;if(!m.isEnabled)n+=1<<2;k.ni(h,e+4,n);E=8;var u=m.b.length;h.sN(e+8,u*26);bS.Co(h.data,e+8,m.b,Z.d,Z.v);
E+=u*26;break;case"shmd":k.ni(h,e,Object.keys($[c]).length);var Y=e+4;for(var K in $[c]){k.Ed(h,Y,"8BIM");
Y+=4;k.Ed(h,Y,K);Y+=4;k.ni(h,Y,0);Y+=4;k.ni(h,Y,0);Y+=4;k.ni(h,Y,16);Y+=4;var F=bf.il(h,$[c][K],Y);if(F%4!=0)F+=4-F%4;
k.ni(h,Y-8,F+4);Y+=F}E=Y-e;break;case"TySh":var Y=e;k.qI(h,Y,1);Y+=2;var b=$[c],y=new e4;b.Kx.DocumentResources=JSON.parse(JSON.stringify(b.Kx.ResourceDict));
var i=i3.XE(b.Kx,y),Q=s.m(i,!0);for(var G=0;G<i;G++)Q[G]=y.data[G];b.jR.EngineData={t:"tdta",v:Q};var d=b.Kx.EngineDict.Editor.Text;
b.jR.Txt.v=d.substring(0,d.length-1);k.a6U(h,Y,b.J);Y+=48;k.qI(h,Y,50);Y+=2;k.ni(h,Y,16);Y+=4;Y+=bf.il(h,b.jR,Y);
k.qI(h,Y,1);Y+=2;k.ni(h,Y,16);Y+=4;Y+=bf.il(h,b.$F,Y);k.a8z(h,Y,b._P);Y+=16;E=Y-e;break;case"lmfx":k.ni(h,e,0);
k.ni(h,e+4,16);var P=JSON.parse(JSON.stringify($[c])),W=!1;ck.ej(P);for(var G=0;G<c3.qV.length;G++)if(P[c3.qV[G]]!=null)W=!0;
k.Ed(h,q,W?"lmfx":"lfx2");E=bf.il(h,P,e+8)+8;break;case"Patt":var Y=b5.tN(h,e,$[c]);E=Y-e;break;case"SoLd":k.Ed(h,e,"soLD");
k.ni(h,e+4,4);k.ni(h,e+8,16);E=bf.il(h,$[c],e+12)+12;break;case"vstk":case"pths":k.ni(h,e,16);E=bf.il(h,$[c],e+4)+4;
break;case"vscg__":k.Ed(h,e,$[c].key);k.ni(h,e+4,16);E=bf.il(h,$[c].G,e+8)+8;break;case"vogk":k.ni(h,e,1);
k.ni(h,e+4,16);s.as.ahq($[c]);for(var G=0;G<$[c].length;G++){var A=$[c][G].v.keyOriginResolution;if(A)A.v=Z.Ay}var z={classID:"null",keyDescriptorList:{t:"VlLs",v:$[c]}};
E=bf.il(h,z,e+8)+8;break;case"lnkD":case"lnk2":case"lnk3":var C=e;for(var G=0;G<$[c].length;G++){var T=$[c][G],R=C;
k.VJ(h,C,0);C+=8;k.Ed(h,C,T.type);C+=4;k.ni(h,C,T.hs);C+=4;h.sN(C,1);h.data[C]=T.af.length;C++;k.Ed(h,C,T.af);
C+=T.af.length;k.Q7(h,C,T.mD+"\0");C+=4+T.mD.length*2+2;k.Ed(h,C,T.cp);C+=4;k.Ed(h,C,T.B6);C+=4;k.VJ(h,C,T.raw.length);
C+=8;h.sN(C,1);h.data[C]=T.open;C++;k.$N(h,C,T.raw);C+=T.raw.length;k.ni(h,C,1);C+=4;C+=11;var I=C-R-8;
k.VJ(h,R,I);if(I%4!=0){h.sN(C,4-I%4);C+=4-I%4}}E=C-e;break;case"FEid":var C=e;k.ni(h,C,3);C+=4;for(var r=0;
r<$[c].length;r++){var x=$[c][r];C+=4;var X=C;C+=4;k.vL(h,C,x.id);C+=x.id.length+1;k.ni(h,C,1);C+=4;
C+=4;var l=C;C+=4;k.pS(h,C,x.rect);C+=16;k.ni(h,C,8);C+=4;k.ni(h,C,24);C+=4;var hH=new s.EI(x.rect.X());
s.DC(x.buffer,hH);for(var G=0;G<24+2;G++){var hZ=null;if(G==0)hZ=hH.h;if(G==1)hZ=hH.l;if(G==2)hZ=hH.O;
if(G==25)hZ=hH.R;k.ni(h,C,hZ!=null?1:0);C+=4;if(hZ!=null){C+=4;var gj=C;C+=4;h.sN(C,x.rect.X()+2);C=f6.q_(hZ,h.data,x.rect.d,x.rect.v,C,3);
k.ni(h,gj,C-(gj+4))}}k.ni(h,l,C-(l+4));h.sN(C,1);h.data[C]=x.r?1:0;C++;if(x.r!=null){var hO=x.r.rect,d3=x.r.channel;
hO=x.rect;d3=s.m(hO.X());d3.fill(x.r.color);s.T7(x.r.channel,x.r.rect,d3,hO);k.pS(h,C,hO);C+=16;C+=4;
var v=C;C+=4;h.sN(C,hO.X()+2);C=f6.q_(d3,h.data,hO.d,hO.v,C,3);k.ni(h,v,C-(v+4))}var I=C-(X+4);k.ni(h,X,I);
if(I%4!=0)C+=4-I%4}E=C-e;break;default:console.log("unknown layer tag: "+c+", size: "+E);e-=12;continue}var hl=["Txt2","artd","extd","luni","pths"];
if(hl.indexOf(c)==-1)if(E%4!=0)E+=4-E%4;k.vi(h,e-4,E);if(c!="luni"&&c!="TySh")if(E%4!=0)E+=4-E%4;e+=E}return e};
ck.q1=function(h){for(var G=0;G<c3.order.length;G++){var e=c3.order[G],$=c3.qV[G];if(h[$]==null)h[$]={t:"VlLs",v:[]};
if(h[e]!=null){h[$].v.push(h[e]);delete h[e]}var Z=[];for(var c=0;c<h[$].v.length;c++){var q=h[$].v[c];
if(q.v.present==null||q.v.present.v==!0)Z.push(q)}h[$].v=Z}};ck.ej=function(h){for(var G=0;G<c3.order.length;
G++){var e=c3.order[G],$=c3.qV[G],Z=h[$].v.length;if(Z==0){delete h[$];continue}if(Z==1){h[e]=h[$].v[0];
delete h[$];continue}}};ck.Nc=function(h,e){if(e=="GdFl"){if(h.Angl==null)h.Angl={v:{type:"#Ang",val:0},t:"UntF"};
if(h.Algn==null)h.Algn={v:!0,t:"bool"};if(h.Scl==null)h.Scl={v:{type:"#Prc",val:100},t:"UntF"};if(h.Ofst==null)h.Ofst={v:{classID:"Pnt",Hrzn:{v:{type:"#Prc",val:0},t:"UntF"},Vrtc:{v:{type:"#Prc",val:0},t:"UntF"}},t:"Objc"};
if(h.Rvrs==null)h.Rvrs={v:!1,t:"bool"};if(h.Dthr==null)h.Dthr={v:!1,t:"bool"}}if(e=="PtFl"){if(h.Algn==null)h.Algn={v:!0,t:"bool"};
if(h.Scl==null)h.Scl={v:{type:"#Prc",val:100},t:"UntF"};if(h.phase==null)h.phase={v:{classID:"Pnt",Hrzn:{v:0,t:"doub"},Vrtc:{v:0,t:"doub"}},t:"Objc"}}};
ck.clone=function(h,e){var $={};if(h=="TySh"){$.J=e.J.clone();$.jR=JSON.parse(JSON.stringify(e.jR));
$.$F=JSON.parse(JSON.stringify(e.$F));$._P=e._P.clone();$.Kx=JSON.parse(JSON.stringify(e.Kx));if(e.add)$.add={vmsk:e.add.vmsk.clone(),vogk:JSON.parse(JSON.stringify(e.add.vogk))};
return $}else if(h=="fxrp")return e.clone();else if(h=="vmsk")return e.clone();else return JSON.parse(JSON.stringify(e))};
function f5(h,e){}f5.Hm=function(h,e,$,Z){Z=f5.aee(h,e,$,Z);return Z};f5.XE=function(h,e,$,Z,c){Z=f5.a7u(h,e,$,Z,c);
return Z};f5.aee=function(h,e,$,Z){var c=Z;h.rect=k.RQ($,Z);Z+=16;var q=k.oO($,Z);Z+=2;h.mn=[];var E=e.vB;
for(var G=0;G<q;G++){h.mn[G]={id:k.nP($,Z),length:(E?k.EQ:k.n)($,Z+2)};Z+=E?10:6}var P=k.dd($,Z,4);Z+=4;
if(P!="8BIM"){console.log("Invalid Blend mode signature: "+P);alert("Error in Photoshop file: wrong signature.");
throw"e"}h.oG=k.dd($,Z,4);Z+=4;h.opacity=$[Z];Z+=1;h._U=$[Z]==1;Z+=1;h.GO=$[Z];Z+=1;if($[Z]!=0)console.log("error in filler!");
Z+=1;var a=k.n($,Z);Z+=4;var j=Z;Z=f5.af6(h,$,Z);Z=f5.ac_(h,$,Z);var L=k.CA($,Z);h.name=L.zm;Z+=L.length;
if(L.length%4!=0)Z+=4-L.length%4;Z=ck.SM($,Z,j+a,h.add,E,e);if(h.tD){var H=h.tD;if(h.kV()){h.kV().Ks=H[0];
h.kV().gE=H[1]}if(h.add.vmsk){h.add.vmsk.Ks=H[2];h.add.vmsk.gE=H[3]}}if(h.add.lsct){if(h.add.lsct.oG)h.oG=h.add.lsct.oG;
h.add.lsct=h.add.lsct.type}return Z};f5.a7u=function(h,e,$,Z,c){var q=Z;k.pS($,Z,h.rect);Z+=16;var E=h.jZ();
k.W$($,Z,E.length);Z+=2;c.push(Z);for(var G=0;G<E.length;G++){k.qI($,Z,E[G]);k.ni($,Z+2,0);Z+=6}k.Ed($,Z,"8BIM");
Z+=4;k.Ed($,Z,h.oG);Z+=4;k.Bn($,Z,h.opacity,1);Z+=1;k.Bn($,Z,h._U?1:0,1);Z+=1;k.Bn($,Z,h.GO,1);Z+=1;
k.Bn($,Z,0,1);Z+=1;var P=Z;k.ni($,Z,0);Z+=4;var a=Z;Z=f5.aei(h,$,Z);Z=f5.aoI(h,$,Z);var j=k.vL($,Z,h.name.slice(0,255));
Z+=j;if(j%4!=0)Z+=4-j%4;if(h.add.lsct){h.add.lsct={type:h.add.lsct};if(h.oG=="pass"){h.add.lsct.oG="pass";
h.oG="norm"}}if(h.oG=="pass")h.add.lsct={type:h.add.lsct,oG:"pass"};if(h.add.brit)h.add.CgEd=h.add.brit;
Z=ck.v7($,Z,h.add,e);delete h.add.CgEd;if(h.add.lsct){if(h.add.lsct.oG)h.oG=h.add.lsct.oG;h.add.lsct=h.add.lsct.type}var L=Z-a;
k.ni($,P,L);return Z};f5.af6=function(h,e,$){var Z=k.n(e,$);$+=4;if(Z==0)return $;var c=$;h.r=new o.kq;
h.r.rect=k.RQ(e,$);$+=16;h.r.color=e[$];$+=1;var q=f5.iT(h.r,e,$);$+=1;if(q){var E=!1,P=255,a=0,j=255,L=0;
for(var G=0;G<h.mn.length;G++)if(h.mn[G].id==-3)E=!0;if(E){h.MN=f5.yB(e,$);$+=18}var H=$,_=e[$];$++;
if(_>>0&1){P=e[$];$++}if(_>>1&1){a=k.bq(e,$);$+=8}if(_>>2&1){j=e[$];$++}if(_>>3&1){L=k.bq(e,$);$+=8}if(($-H&1)==1)$++;
h.tD=[P,a,j,L]}else{if(Z==20)$+=2;else{h.MN=f5.yB(e,$);$+=18}}return c+Z};f5.aei=function(h,e,$){k.ni(e,$,0);
$+=4;if(h.r==null)return $;var Z=$,c=!0;k.ni(e,$,0);k.pS(e,$,h.r.rect);$+=16;k.Bn(e,$,h.r.color);$+=1;
f5.xu(h.r,e,$,c);$+=1;if(c){if(h.MN){f5.a1k(e,$,h.MN);$+=18}k.Bn(e,$,15);$+=1;var q=h.kV(),E=h.add.vmsk;
k.Bn(e,$,q?q.Ks:255);$+=1;k.aL(e,$,q?q.gE:0);$+=8;k.Bn(e,$,E?E.Ks:255);$+=1;k.aL(e,$,E?E.gE:0);$+=8;
$++;k.ni(e,Z-4,$-Z)}return $};f5.yB=function(h,e){var $=new o.kq;f5.iT($,h,e);e+=1;$.color=h[e];e+=1;
$.rect=k.RQ(h,e);e+=16;return $};f5.a1k=function(h,e,$){f5.xu($,h,e,!1);e+=1;k.Bn(h,e,$.color);e+=1;
k.pS(h,e,$.rect);e+=16};f5.iT=function(h,e,$){var Z=e[$];h.MV=(Z>>0&1)==0;h.isEnabled=(Z>>1&1)==0;h.FH=(Z>>3&1)==1;
return Z>>4&1};f5.xu=function(h,e,$,Z){var c=0;if(!h.MV)c+=1<<0;if(!h.isEnabled)c+=1<<1;if(h.FH)c+=1<<3;
if(Z)c+=1<<4;k.Bn(e,$,c)};f5.ac_=function(h,e,$){var Z=k.n(e,$);$+=4;if(Z==0)return $;if(Z!=5*8)console.log("unexpected Layer Blending Ranges content, size:",Z);
for(var G=0;G<Z;G++)h.q8[G]=e[$+G];return $+40};f5.aoI=function(h,e,$){k.ni(e,$,h.q8.length);$+=4;e.sN($,40);
for(var G=0;G<40;G++){e.data[$+G]=h.q8[G]}return $+40};function f6(){}f6.Hm=function(h,e,$,Z){Z=f6.anG(e.vB,e.NJ,e.Np,h,$,Z);
return Z};f6.A7=function(h,e,$,Z,c){$=f6.agm(h,e,$,Z,c);return $};f6.anG=function(h,e,$,Z,c,q){var E=Z.mn,P={},a=q;
for(var G=0;G<E.length;G++){var j=E[G],L=j.id,H=j.length,_;if(L==-3)_=Z.MN.rect;else if(L==-2)_=Z.r.rect;
else _=Z.rect;var J=f6.pI(h,e,c,_.d,_.v,q,H);q+=H;if(L==-3)Z.MN.channel=J;else if(L==-2)Z.r.channel=J;
else P["c"+L]=J}var S=new s.EI(0);S.R=null;if($==3){S.h=P.c0;S.l=P.c1;S.O=P.c2;S.R=P["c-1"]}else if($==1){S.h=P.c0;
S.l=P.c0;S.O=P.c0;S.R=P["c-1"]}else if($==4){var N=P.c0,Y=P.c1,U=P.c2,g=P.c3,M=N.length,C=1/255;for(var G=0;
G<M;G++){var y=N[G],i=Y[G],Q=U[G],m=g[G]*C;N[G]=Math.round(y*m);Y[G]=Math.round((.2*y+.8*i)*m);U[G]=Math.round((.2*i+.8*Q)*m)}S.h=N;
S.l=Y;S.O=U;S.R=P["c-1"];console.log("converting from CMYK to RGB")}if(S.h==null)S.h=s.m(0);if(S.R==null&&S.h!=null){S.R=S.h.slice(0);
S.R.fill(255)}if(S.l==null)S.l=S.h.slice(0);if(S.O==null)S.O=S.h.slice(0);Z.buffer=s.m(Math.max(0,Z.rect.X()*4));
s.cl(S,Z.buffer);return q};f6.agm=function(h,e,$,Z,c){var q=h.jZ(),E=new s.EI(h.rect.X());s.DC(h.buffer,E);
for(var G=0;G<q.length;G++){var P=q[G],a,j;if(P==-3)a=h.MN.rect;else if(P==-2)a=h.r.rect;else a=h.rect;
if(P==-3)j=h.MN.channel;if(P==-2)j=h.r.channel;if(P==-1)j=E.R;if(P==0)j=E.h;if(P==1)j=E.l;if(P==2)j=E.O;
e.sN($,a.X()*3+4);var L=$;$=f6.q_(j,e.data,a.d,a.v,$,c[1]?3:1);var H=$-L;if(H%2!=0){H+=H%2;$++}k.K_(e.data,Z+G*6+2,H)}return $};
f6.pI=function(h,e,$,Z,c,q,E){var P=k.oO($,q);q+=2;return f6.yl(h,e,$,Z,c,q,P,E-2)};f6.q_=function(h,e,$,Z,c,q){k.H0(e,c,q);
c+=2;c=f6.jF(h,e,$,Z,c,q);return c};f6.yl=function(h,e,$,Z,c,q,E,P){var a,j=Z*c*(e>>>3),L=j&3,H=j+(L==0?0:4-L);
if(P<=0){return s.m(H)}if(E>3){console.log("unknown compression: "+E,Z,c,Z*c,P);E=0}if(E==0){if(q+H<=$.length)a=$.slice(q,q+H);
else{a=s.m(j);for(var G=0;G<j;G++)a[G]=$[q+G]}q+=j}else if(E==1){a=s.m(j);var _=h?4:2,J=f6.mB($,a,Z,c,q,q+_*c,_);
q+=_*c+J}else if(E==2||E==3){var S=new Uint8Array($.buffer,q+2,P-6),N=pako.inflateRaw(S);if(E==3){if(e==8)for(var Y=0;
Y<c;Y++){var U=Y*Z+1,g=U+Z-1,M=N[U-1];for(var C=U;C<g;C++){M+=N[C];N[C]=M&255}}else for(var Y=0;Y<c;
Y++){var U=Y*Z+1,g=U+Z-1,M=N[2*U-2]<<8|N[2*U-1];for(var C=U;C<g;C++){var y=C<<1;M+=N[y]<<8|N[y+1];N[y]=M>>>8;
N[y+1]=M&255}}}if(N.length==H)a=N;else{a=s.m(H);for(var G=0;G<N.length;G++)a[G]=N[G]}}if(e==16){var i=s.m(Z*c);
for(var G=0;G<j;G+=2)i[G>>>1]=a[G];a=i}return a};f6.jF=function(h,e,$,Z,c,q){var E=$*Z;if(q==0)for(var G=0;
G<E;G++)e[c++]=h[G];else if(q==1){var P=f6.WH(h,e,$,Z,c,c+2*Z);c+=2*Z+P}else if(q==2||q==3){if(q==3){var a=new Uint8Array(h.length);
for(var j=0;j<Z;j++){var L=j*$+1,H=L+$-1,_=h[L-1];a[L-1]=_;for(var J=L;J<H;J++){a[J]=h[J]+(256-_)&255;
_=h[J]}}h=a}e[c]=120;e[c+1]=156;c+=2;var S=pako.deflateRaw(h,{a2G:4});k.Ze(e,c,S);c+=S.length+4}else console.log("Unknown compression: "+q);
return c};f6.mB=function(h,e,$,Z,c,q,E){var P=q,a=Z|0;if(E==2)for(var G=0;G<a;G++){var j=k.oO(h,c+(G<<1));
f6.qj(h,q,j,e,G*$,$);q+=j}else for(var G=0;G<a;G++){var j=k.n(h,c+(G<<2));f6.qj(h,q,j,e,G*$,$);q+=j}return q-P};
f6.WH=function(h,e,$,Z,c,q){var E=q;for(var G=0;G<Z;G++){var P=f6.a1e(h,G*$,$,e,q);k.OF(e,c+G*2,P);q+=P}return q-E};
f6.a1e=function(h,e,t,$,Z){var c,q,E,P,a,d6,j;P=e+t;for(E=e,q=Z;t>0;E=c,t-=d6){j=t<128?t:128;if(E<=P-3&&h[E+1]==h[E+0]&&h[E+2]==h[E+0]){for(c=E+3;
c<E+j&&h[c]==h[E+0];)++c;d6=c-E;$[q++]=1+256-d6;$[q++]=h[E+0]}else{for(c=E;c<E+j;)if(c<=P-3&&h[c+1]==h[c+0]&&h[c+2]==h[c+0])break;
else++c;d6=c-E;$[q++]=d6-1;for(var G=0;G<d6;G++)$[q+G]=h[E+G];q+=d6}}return q-Z};f6.qj=function(h,e,$,Z,c,q){for(var E=0;
E<$;){var t=h[e++];if(t>=128){var P=h[e++],a=c+(257-t);while(c+1<a){Z[c++]=Z[c++]=P}if(c<a)Z[c++]=P;
E+=2}else{for(var G=0;G<=t;G++)Z[c+G]=h[e+G];e+=t+1;c+=t+1;E+=1+1+t}}};function ip(){}ip.Hm=function(h,e){e.vB=!1;
e.NJ=8;var $=new Uint8Array(h),Z=0,c=0,l,bP=!1,ek=!0,b_=!1,fz=0;c=ip.xd(e,$,Z);Z=c;c=ip.a8r(e,$,Z);Z=c;
c=ip.ahK(e,$,Z);Z=c;c=ip.aeI(e,$,Z);Z=c;c=ip.a1q(e,$,Z);Z=c;if(e.t.length==0){var q=e.by();q.aq("Background");
e.t.push(q);q.buffer=e.buffer.slice(0);q.rect=new O(0,0,e.d,e.v)}if(e.Iw.r1005){e.Ay=k.a22(e.Iw.r1005,0)}if(e.Iw.r1026){var $=e.Iw.r1026;
for(var G=0;G<$.length;G+=2){var c=e.t[G>>>1];if(c)c.MX=k.oO($,G)}}if(e.Iw.r1032){var $=e.Iw.r1032,E=k.n($,12);
for(var G=0;G<E;G++){var P=$[16+G*5+4],a=k.hY($,16+G*5)/32;e._D[P].push(a)}}delete e.Iw.r1036;delete e.Iw.r1039;
if(e.Iw.r1050){var j=k.n,L=e.Iw.r1050,H=k.n(L,0);if(H==6){var _=4,J=k.RQ(L,_);_+=16;var S=k.uT(L,_);
_+=4+S.length*2;var N=j(L,_);_+=4;var Y=e.E1;for(var G=0;G<N;G++){var U=f.Al.X9(),M;Y.push(U);U=U.v;
U.sliceID.v=j(L,_);_+=4;U.groupID.v=j(L,_);_+=4;var g=j(L,_);_+=4;if(g==1){M=j(L,_);_+=4}var S=k.uT(L,_);
_+=4+S.length*2;var C=j(L,_);_+=4;var y=[j(L,_),j(L,_+4),j(L,_+8),j(L,_+12)];_+=16;f.Al.Ju(Y,Y.length-1,y);
var i=U.url.v=k.uT(L,_);_+=4+i.length*2;var Q=U.null.v=k.uT(L,_);_+=4+Q.length*2;var m=U.Msge.v=k.uT(L,_);
_+=4+m.length*2;var n=U.altTag.v=k.uT(L,_);_+=4+n.length*2;U.cellTextIsHTML.v=L[_]==1;_++;var u=U.cellText.v=k.uT(L,_);
_+=4+u.length*2;var K=j(L,_);_+=4;var F=j(L,_);_+=4;var b=L.slice(_,_+4);_+=4;if(g!=2)Y.pop()}}else if(H==8){var d={};
bf.Cb(L,d,8,!1);var L=e.E1=d.slices.v;for(var G=0;G<L.length;G++){if(L[G].v.origin.v.ESliceOrigin!="userGenerated"){L.splice(G,1);
G--}}}}if(e.Iw.r1058){var W=e.Iw.r1058,A=UTIF.decode(W.buffer,{parseMN:!1,debug:!1});dn.Vm(A[0],e.ZG);
delete e.Iw.r1058}if(e.Iw.r1060){var z=k.rM(e.Iw.r1060);dn.Vi(z,e.ZG);delete e.Iw.r1060}if(e.Iw.r1065){var $=e.Iw.r1065;
e.Gs={};bf.Cb($,e.Gs,4,!1)}if(e.Iw.r1069){var $=e.Iw.r1069,T=[];for(var G=2;G<$.length;G+=4){var M=k.n($,G);
for(var R=0;R<e.t.length;R++){var c=e.t[R];if(c.add.lyid==M&&c.add.lsct!=3)T.push(R)}}e.C=T}if(e.Iw.r1025){var I=e.Iw.r1025;
delete e.Iw.r1025;var r=bS.KJ(I,0,I.length,e.d,e.v),x=new o.MM;x.b=r;e.DZ[0]=c9.Bd("Working Path",{vmsk:x})}var X=e.add.pths;
delete e.add.pths;var hH=e.Iw.r3000;if(hH){l={};bf.Cb(hH,l,4,!1);delete e.Iw.r3000}for(var hZ=0;hZ<=997;
hZ++){var gj="r"+(2e3+hZ),I=e.Iw[gj];if(I==null)break;var r=bS.KJ(I,0,I.length,e.d,e.v),hO=X?X.pathList.v[hZ].v.pathUnicodeName.v:"Path "+hZ,d3=l?l.keyRootDescriptorList.v[hZ].v.keyDescriptorList.v:o.__(r),x=new o.MM;
x.b=r;e.DZ[hZ+1]=c9.Bd(hO,{vmsk:x,vogk:d3});delete e.Iw[gj]}delete e.vB;var v=new O(0,0,e.d,e.v),hl=e.add.Txt2,ht=hl;
if(ht){ht=ht.AA;if(ht._DocumentResources==null)ht=cU.aci(ht)}if(hl&&hl.AA._DocumentResources!=null){var ga="_Type _FrameMatrix _TextOnPathTRange _PathData _FirstBaselineAlignment _LineOrientation _RowGutter _ColumnGutter".split(" "),eB=hl.AA._DocumentResources._TextFrameSet._Resources;
for(var G=0;G<eB.length;G++){}}for(var G=0;G<e.t.length;G++){var c=e.t[G],ca=c.add.lsct,gf=c.add.vmsk,bb=c.kV();
if(ca==hJ.RS){fz++;c.add.lspf=0}else if(ca==hJ.sE||ca==hJ.Y7)fz--;if(c.name==""){c.name="Layer "+(G+1);
b_=!0}if(b_&&c.vG()&&c.oG=="norm")c.oG="pass";if(c.fi()&&c.wV(e).r){var b2=c.wV(e);b2.r.isEnabled=c.add.SoLd.filterFX.v.filterMaskEnable.v}if(gf&&c.SV()){var dV=c3.oF.default;
if(c.add.vstk==null)c.add.vstk=JSON.parse(JSON.stringify(dV));else{var ch="strokeStyleLineDashSet";if(c.add.vstk[ch]==null)c.add.vstk[ch]=JSON.parse(JSON.stringify(dV[ch]))}c.add.vstk.strokeStyleResolution.v=e.Ay}if(gf&&(c.add.vogk==null||s.W.H4(gf.b)!=c.add.vogk.length))c.__();
if(c.add.SoLd&&c.rect.nK()){console.log("redrawing smart instance");c.l3(e)}if(bb==null&&c.r!=null){if(c.r.FH==!1){c.r.FH=!0;
c.MN=c.r.clone()}else{gf.MN=c.r;gf.w4=!1;c.r.gE=gf.gE;c.r.Ks=gf.Ks}}if(bb!=null&&gf!=null&&(bb.gE+gf.gE!=0||bb.Ks+gf.Ks!=2*255))c.ZB(e);
var hE=c.add.artb;if(hE&&hE.artboardBackgroundType==null)hE.artboardBackgroundType={t:"long",v:1};if(hE&&fz!=0)delete c.add.artb;
var dS=c.add.vstk;if(c.SV()&&(c.rect.nK()||gf&&gf.gE!=0||dS&&!dS.fillEnabled.v&&(!dS.strokeEnabled.v||dS.strokeStyleLineWidth.v.val==0)))c.r5(e);
if(c.add.TySh){bP=!0;if(!c.rect.nK())ek=!1}if(c.add.TySh&&ht){var e1=c.add.TySh.jR.TextIndex.v;if(e1==-1)continue;
var eG=c.add.TySh.Kx,dq=gK.r1(eG),f2=eG.ResourceDict.StyleSheetSet[0].StyleSheetData.FontSize;if(f2==null)f2=12;
var a3=eG.EngineDict.StyleRun.RunArray;for(var bm=0;bm<a3.length;bm++){var h2=a3[bm].StyleSheet.StyleSheetData;
if(h2.FontSize==null){if(h2.BaselineDirection==null)h2.FontSize=Math.round(f2*e.Ay/72)}}var ag=eG.EngineDict.ParagraphRun.RunArray,eU=ht._DocumentObjects._TextObjects;
if(eU.length<=e1){console.log("Txt2 incomplete");continue}eU=eU[e1]._Model._ParagraphRun._RunArray;if(eU==null)eU=[];
var iz=Math.min(eU.length,ag.length);for(var R=0;R<iz;R++){var d2=ag[R].ParagraphSheet.Properties,gP=ht._DocumentResources._ParagraphSheetSet._Resources,fa=eU[R]._RunData._ParagraphSheet;
if(typeof fa=="string")fa=gP[parseInt(fa.slice(1))]._Resource;var eI=fa._Parent==null?fa:gP[parseInt(fa._Parent.slice(1))]._Resource,it=fa._Features._ParagraphDirection;
if(it==null)it=eI._Features._ParagraphDirection;if(it)d2._Direction=parseInt(it.slice(1))}var ic=ht._DocumentResources,iK=ic._TextFrameSet._Resources,fA=iK[e1]._Resource,iB=fA._Data,hG=new i7(1,0,0,1,0,0);
if(fA._0){var dt=parseFloat(fA._0[0].slice(1)),gO=parseFloat(fA._0[1].slice(1));hG.translate(dt,gO)}if(dq){hG.translate(dq[0],dq[1]);
gK.IE(eG,[0,0,dq[2]-dq[0],dq[3]-dq[1]])}else{if(fA._Bezier&&fA._Bezier._Points){var r=fA._Bezier._Points,dt=parseFloat(r[0].slice(1)),gO=parseFloat(r[1].slice(1));
if(dt!=0||gO!=0){hG.translate(dt,gO)}}}if(fA._Data&&fA._Data._FrameMatrix){var cX=fA._Data._FrameMatrix;
cX=cX.map(function(dM){return parseFloat(dM.slice(1))});hG.concat(new i7(cX[0],cX[1],cX[2],cX[3],cX[4],cX[5]))}hG.concat(c.add.TySh.J);
c.add.TySh.J=hG;var C=iB._Type?parseInt(iB._Type.slice(1)):0;if(C==2||C==1&&iB._PathData._Spacing=="i-3"){var bh=function(dM){return parseFloat(dM.slice(1))},r=fA._Bezier._Points.map(bh);
if(dq)s.a.J(r,new i7(1,0,0,1,-dq[0],-dq[1]),r);var bi=iB._PathData?iB._PathData._Reversed:!1;eG.Curve={Points:r,TextOnPathTRange:iB._TextOnPathTRange.map(bh),Reversed:bi==null?!1:bi};
c.add.TySh.add={vmsk:new o.MM,vogk:null};gK.iU(c.add.TySh)}}}bn.Mv.xp(e,!0)};ip.XE=function(h,e,$){bn.Mv.RA(h);
bn.Mv.xp(h,!1);var Z=[],c=[],q=[],E=[],P=[],n=16,d3=0;for(var G=0;G<h.t.length;G++){var a=h.t[G];if(a.fi()&&a.wV(h).r){a.add.SoLd.filterFX.v.filterMaskEnable.v=a.wV(h).r.isEnabled}if(a.add.SoLd){c.push(a.add.SoLd.Idnt.v);
q.push(a.add.SoLd.placed.v)}if(a.add.TySh){var j=a.add.TySh.Kx,L=gK.De(j);a.add.TySh.jR.TextIndex={t:"long",v:Z.length};
Z.push(j);if(L==2)gK._Z(a.add.TySh)}if(a.add.PtFl)E.push(a.add.PtFl.Ptrn.v.Idnt.v);if(a.add.lmfx){for(var H=0;
H<c3.qV.length;H++){var _=a.add.lmfx[c3.qV[H]].v;for(var J=0;J<_.length;J++)if(_[J].v.Ptrn)E.push(_[J].v.Ptrn.v.Idnt.v)}}var S=a.add.vstk;
if(S&&S.strokeStyleContent.v.classID=="patternLayer"){E.push(S.strokeStyleContent.v.Ptrn.v.Idnt.v)}if(S)S.strokeStyleResolution.v=h.Ay;
if(a.SV()||$[2]&&a.add.SoLd){P[G]=[a.rect,a.buffer];a.rect=new O;a.buffer=s.m(0)}}if(Z.length>0){var N=h.add.Txt2?h.add.Txt2.AA:null;
h.add.Txt2={};h.add.Txt2.AA=bQ.a5L(Z,null,N)}var Y=h.add.lnk2;if(Y){var U=h.add.lnk2=[];for(var G=0;
G<Y.length;G++)if(c.indexOf(Y[G].af)!=-1)U.push(Y[G]);if(U.length==0)delete h.add.lnk2}var g=h.add.FEid;
if(g){var M=h.add.FEid=[];for(var G=0;G<g.length;G++)if(q.indexOf(g[G].id)!=-1)M.push(g[G]);if(M.length==0)delete h.add.FEid}var C=h.add.Patt;
if(C){var y=h.add.Patt=[];for(var G=0;G<C.length;G++)if(E.indexOf(C[G].id)!=-1)y.push(C[G])}h.Iw.r1005=new Uint8Array([0,0,0,0,0,1,0,2,0,0,0,0,0,1,0,2]);
k.A1(h.Iw.r1005,0,h.Ay);k.A1(h.Iw.r1005,8,h.Ay);if(h.M3()){h.Iw.r1022=new Uint8Array([0,3+h.Qe.length-1,0])}else delete h.Iw.r1022;
h.Iw.r1026=new Uint8Array(h.t.length*2);for(var G=0;G<h.t.length;G++)k.OF(h.Iw.r1026,G*2,h.t[G].MX);
var i=h._D,Q=i[0].length+i[1].length,m=h.Iw.r1032=s.m(16+5*Q,!0);k.K_(m,0,1);k.K_(m,4,576);k.K_(m,8,576);
k.K_(m,12,Q);for(var G=0;G<2;G++)for(var J=0;J<i[G].length;J++){k.KB(m,n,Math.round(i[G][J]*32));m[n+4]=G;
n+=5}var u=s.AC(h.buffer),K=[];if(u)K.push({name:"Transparency",Nr:{h:255,l:0,O:0},lU:100,wx:1});K=K.concat(h.Qe);
delete h.Iw.r1045;delete h.Iw.r1006;delete h.Iw.r1077;var F=new e4;n=0;var b=new Uint8Array(4+K.length*13);
b[3]=1;for(var G=0;G<K.length;G++){var d=K[G],W=d.name+"\0";k.Q7(F,n,W);n+=4+W.length*2;var A=4+G*13;
ho.iP(b,A,d.Nr);b[A+11]=d.lU;b[A+12]=d.wx}h.Iw.r1045=F.data.slice(0,n);h.Iw.r1077=b;for(var G=0;G<h.E1.length;
G++)h.E1[h.E1.length-G-1].v.sliceID.v=2+G*3;var z={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:h.E1}},F=new e4;
k.ni(F,0,8);k.ni(F,4,16);var T=bf.il(F,z,8);h.Iw.r1050=F.data.slice(0,T+8);var F=new e4;k.ni(F,0,16);
var T=bf.il(F,h.Gs,4);h.Iw.r1065=F.data.slice(0,T+4);var R=h.C;m=h.Iw.r1069=s.m(2+R.length*4,!0);k.OF(m,0,R.length);
for(var G=0;G<R.length;G++)k.K_(m,2+4*G,h.t[R[G]].add.lyid);delete h.Iw.r1058;delete h.Iw.r1060;if(Object.keys(h.ZG).length!=0){var I=[{t274:[1],t282:[[72,1]],t283:[[72,1]],t296:[2]},{t259:[6],t282:[[72,1]],t283:[[72,1]],t296:[2],t513:[302],t514:[0]}];
dn.RM(h.ZG,I[0],$[0]&&$[1]);h.Iw.r1058=new Uint8Array(UTIF.encode(I));var r=dn.Za(h.ZG);h.Iw.r1060=k.Ft(r)}var x=[],X=[];
for(var G=0;G<h.DZ.length;G++){var hH=h.DZ[G],hZ=hH.add.vmsk.b;if(G==0&&hZ.length==2)continue;var gj=s.m(hZ.length*26);
bS.Co(gj,0,hZ,h.d,h.v);var hO=G==0?1025:2e3+G-1;h.Iw["r"+hO]=gj;if(G!=0){x.push({t:"Objc",v:{classID:"pathInfoClass",pathUnicodeName:{t:"TEXT",v:hH.name}}});
X.push({t:"Objc",v:{classID:"null",keyDescriptorList:{t:"VlLs",v:hH.add.vogk}}})}}if(x.length!=0){h.add.pths={classID:"pathsDataClass",pathList:{t:"VlLs",v:x}};
X={classID:"null",keyRootDescriptorList:{t:"VlLs",v:X}};var F=new e4;k.ni(F,0,16);var T=bf.il(F,X,4);
h.Iw.r3000=F.data.slice(0,T+4)}else{delete h.add.pths;delete h.Iw.r3000}d3=ip.a1D(h,e,d3,3+K.length);
d3=ip.anP(h,e,d3);d3=ip.afk(h,e,d3);d3=ip.agH(h,e,d3,$,u);d3=ip.af0(h,e,d3,$[0],u);var v=[1025,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016];
for(var G=0;G<v.length;G++)delete h.Iw["r"+v[G]];for(var G=0;G<h.t.length;G++){var a=h.t[G];if(a.SV()||$[2]&&a.add.SoLd){a.rect=P[G][0];
a.buffer=P[G][1]}}if(Y)h.add.lnk2=Y;if(g)h.add.FEid=g;if(C)h.add.Patt=C;bn.Mv.xp(h,!0);return d3};ip.xd=function(h,e,$){var Z=k.dd(e,$,4);
$+=4;if(Z!="8BPS")alert("invalid header signature: "+Z);var c=k.oO(e,$);$+=2;h.vB=c==2;if(c!=1&&c!=2)alert("invalid version: "+c);
$+=6;h.OL=k.oO(e,$);$+=2;h.v=k.hY(e,$);$+=4;h.d=k.hY(e,$);$+=4;h.NJ=k.oO(e,$);$+=2;h.Np=k.oO(e,$);$+=2;
return $};ip.a1D=function(h,e,$,Z){e.sN(0,64);k.KP(e.data,$,"8BPS");$+=4;k.OF(e.data,$,1);$+=2;k.K_(e.data,$,0);
$+=4;k.OF(e.data,$,0);$+=2;k.OF(e.data,$,Z);$+=2;k.KB(e.data,$,h.v);$+=4;k.KB(e.data,$,h.d);$+=4;k.OF(e.data,$,8);
$+=2;k.OF(e.data,$,3);$+=2;return $};ip.a8r=function(h,e,$){var Z=k.hY(e,$);$+=4;if(Z!=0)h.JM=e.slice($,$+Z);
$+=Z;return $};ip.anP=function(h,e,$){k.vi(e,$,0);$+=4;return $};ip.ahK=function(h,e,$){var Z=k.n(e,$),c=0;
$+=4;var q=[];while(c<Z){var E=k.dd(e,$+c,4);c+=4;var P=k.oO(e,$+c);c+=2;var a=k.CA(e,$+c);c+=a.length;
if(E!="8BIM"){q.push(P);console.log("Unknown Image Resources signature: "+E+", ID: "+P)}var j=k.n(e,$+c);
c+=4;if(h.Iw["r"+P]!=null)console.log("--- two resources with same ID");h.Iw["r"+P]=k.nH(e,$+c,j);c+=j+(j&1)}for(var G=0;
G<q.length;G++)delete h.Iw["r"+q[G]];return $+Z};ip.afk=function(h,e,$){var Z=$,E=0;$+=4;var c=[];for(var q in h.Iw){c.push(parseInt(q.slice(1)))}c.sort(function(H,_){return H-_});
for(var G=0;G<c.length;G++){k.Ed(e,$+E,"8BIM");E+=4;var P=c[G];k.W$(e,$+E,P);E+=2;var a=k.vL(e,$+E,"");
E+=a;var j=h.Iw["r"+P],L=j.length;k.ni(e,$+E,L);E+=4;k.$N(e,$+E,j);E+=L;if(L%2==1)E++}k.ni(e,Z,E);return $+E};
ip.aeI=function(h,e,$){var Z=$,c,q=h.vB?8:4;if(h.vB)c=k.EQ(e,$);else c=k.n(e,$);$+=q;if(c==0)return Z+q;
$=ip.aii(h,e,$);$=ip.a5N(h,e,$);$=ck.SM(e,$,Z+q+c,h.add,h.vB,h);return Z+q+c};ip.agH=function(h,e,$,Z,c){var q=$;
k.ni(e,$,0);$+=4;$=ip.a6d(h,e,$,Z,c);$=ip.ai0(h,e,$);$=ck.v7(e,$,h.add,h);k.ni(e,q,$-q-4);return $};
ip.aii=function(h,e,$){var Z,c=h.vB?8:4;if(h.vB)Z=k.EQ(e,$);else Z=k.n(e,$);$+=c;if(Z!=0)ip.BE(h,e,$);
return $+Z};ip.BE=function(h,e,$){var Z=k.nP(e,$);$+=2;var c=Math.abs(Z);for(var G=0;G<c;G++){var q=new o;
$=f5.Hm(q,h,e,$);h.t[G]=q}var E=new O(0,0,h.d,h.v);for(var G=0;G<c;G++){var P=h.t[G],a=P.kV();$=f6.Hm(P,h,e,$);
ip.nO(P,E);if(a)ip.nO(a,E)}};ip.nO=function(h,e){var $=h.rect.X(),Z=h.rect.jx(e),c=Z.X()/$;if($>2e3*3e3&&c<.5){if(h.buffer){var q=s.m(Z.X()*4);
s.hX(h.buffer,h.rect,q,Z);h.buffer=q;h.rect=Z}else{var q=s.m(Z.X());s.T7(h.channel,h.rect,q,Z);h.channel=q;
h.rect=Z}alert("Removing hidden parts of layers")}};ip.a6d=function(h,e,$,Z,c){var q=$;k.ni(e,$,0);$+=4;
var E=h.t.length;k.W$(e,$,c?-E:E);$+=2;var P=[];for(var G=0;G<E;G++)$=f5.XE(h.t[G],h,e,$,P);for(var G=0;
G<E;G++)$=f6.A7(h.t[G],e,$,P[G],Z);var a=$-q-4;if(a%2!=0)a++;k.ni(e,q,a);return q+a+4};ip.a5N=function(h,e,$){var Z=k.n(e,$);
$+=4;$+=Z;return $};ip.ai0=function(h,e,$){var Z=k.ni(e,$,0);$+=4;return $};ip.a1q=function(h,e,$){var Z=h.Np,c="Bitmap Grayscale Indexed RGB CMYK Multichannel Duotone Lab".split(" "),q=[1,1,1,3,4,1,1,3],E,N;
if(Z!=3){if(Z==1||Z==2||Z==4)alert("Project will be converted from "+c[Z]+" to "+c[3]+" mode.");else{alert("Color mode "+c[Z]+" is not supported yet :(")}}if(h.Iw.r1045){E=[];
var P=h.Iw.r1045,a=0;while(a<P.length){var j=k.$d(P,a);E.push(j);a+=4+2+j.length*2}}var L=q[Z]+(E==null||E[0]=="Transparency"?1:0),H=h.d,_=h.v,J=H*_,S=k.oO(e,$);
$+=2;h.buffer=s.m(J*4);s.Ut(h.buffer,4278190080);var Y=$;for(var U=0;U<h.OL;U++){if(S==0){N=f6.yl(h.vB,h.NJ,e,H,_,$,S);
$+=J*(h.NJ>>>3)}else if(S==1){N=s.m(J);var g=h.vB?4:2;if(U==0)$+=h.OL*_*g;$+=f6.mB(e,N,H,_,Y+U*_*g,$,g)}else{console.log("unknown compression of image data: ",S);
return}if(U<L){s.Jk(N,h.buffer,U);if(h.OL==1&&U==0){s.Jk(N,h.buffer,1);s.Jk(N,h.buffer,2)}}else{var M=new o.kq,C=U-L,y=U-q[h.Np];
M.name=E?E[y]:"Alpha";if(M.name=="Quick Mask"){M.rV=!0;h.vw.push(C)}M.rect=new O(0,0,H,_);M.channel=N;
M.color=0;M.V9();h.Qe[C]=M;if(h.Iw.r1077){var P=h.Iw.r1077.slice(4+y*13);M.Nr=ho._w(P,0);M.lU=P[11];
M.wx=P[12];if(M.wx==2)M.rV=!0}}}h.OL=4;if(h.Np==2)for(var G=0;G<J;G++){var i=G*4,Q=h.buffer[i];h.buffer[i]=h.JM[0+Q];
h.buffer[i+1]=h.JM[256+Q];h.buffer[i+2]=h.JM[512+Q]}return $};ip.af0=function(h,e,$,Z,c){var q=1,E=16,P=h.d,a=h.v,L,H;
k.W$(e,$,q);$+=2;var j=P*a;if(!Z){H=new s.EI(P*a);s.DC(h.buffer,H);var _=H.h,J=H.l,S=H.O,N=H.R;for(var G=0;
G<j;G++){var Y=N[G]*(1/255);_[G]=~~(_[G]*Y+255*(1-Y));J[G]=~~(J[G]*Y+255*(1-Y));S[G]=~~(S[G]*Y+255*(1-Y))}}else L=s.m(j);
var U=[L,L,L];if(!Z)U=[H.h,H.l,H.O];if(c)U.push(Z?L:H.R);for(var G=0;G<h.Qe.length;G++){U.push(h.Qe[G].tM(new O(0,0,h.d,h.v)))}var g=$;
for(var M=0;M<U.length;M++){e.sN($,P*a+4);L=U[M];if(q==0||q==2||q==3)$=f6.jF(L,e.data,P,a,$,q);else{if(M==0)$+=U.length*a*2;
var C=$;$+=f6.WH(L,e.data,P,a,g+M*a*2,$)}}return $};function i3(){}i3.Hm=function(h){var e={};i3.xW(h,e,0,0);
return e};i3.XE=function(h,e){var $=0;$=i3.Ky(h,e,$,0);return $};i3.xW=function(h,e,$,Z){while(h[$]!="<".charCodeAt(0))$++;
$+=2;while(!0){if(h[$]=="/".charCodeAt(0)){$++;var c=k.indexOf(h," ".charCodeAt(0),$,$+50),q=k.indexOf(h,"\n".charCodeAt(0),$,$+50);
if(q==-1)q=Infinity;if(c==-1)c=Infinity;var E=Math.min(q,c),P=k.dd(h,$,E-$),a=i3.iL(h,E+1,Z+1,P);e[P]=a.G;
$=E+1;$+=a.size}else if(h[$]==">".charCodeAt(0)){$+=2;break}else{var j=h[$];if(j==10||j==9||j==32)$++;
else{console.log("unknown byte: "+j+", char: "+String.fromCharCode(j),$);$++}}}return $};i3.Ky=function(h,e,$,Z){k.Ed(e,$,"<<\n");
$+=3;var c=i3.a6a;for(var q in h){k.Bn(e,$,"\t".charCodeAt(0),Z+1);$+=Z+1;k.Ed(e,$,"/"+q);$+=1+q.length;
if(c(h[q])||h[q]instanceof Array){k.Ed(e,$," ");$++}else{k.Ed(e,$,"\n");$++;k.Bn(e,$,"\t".charCodeAt(0),Z+1);
$+=Z+1}$=i3.qR(h[q],e,$,Z+1);k.Ed(e,$,"\n");$++}k.Bn(e,$,"\t".charCodeAt(0),Z);$+=Z;k.Ed(e,$,">>");$+=2;
return $};i3.iL=function(h,e,$,Z){var c=e,q={size:0,G:0};while(!0){while(h[e]==" ".charCodeAt(0)||h[e]=="\t".charCodeAt(0)||h[e]=="\n".charCodeAt(0))e++;
if(h[e]=="<".charCodeAt(0)){q.G={};e=i3.xW(h,q.G,e,$+1);break}else if(h[e]=="(".charCodeAt(0)){e+=3;
var E=e;while(!0){if(h[E-1]!="\\".charCodeAt(0)&&h[E]==")".charCodeAt(0)&&(h[E+1]=="\n".charCodeAt(0)||h[E+1]==" ".charCodeAt(0)))break;
else E++}q.G=k.Jf(h,e,E);e=E+2;break}else if(h[e]=="[".charCodeAt(0)){e++;q.G=[];while(h[e]==" ".charCodeAt(0)||h[e]=="\t".charCodeAt(0)||h[e]=="\n".charCodeAt(0))e++;
while(h[e]!="]".charCodeAt(0)){var P=i3.iL(h,e,$+1,Z);q.G.push(P.G);e+=P.size;while(h[e]==" ".charCodeAt(0)||h[e]=="\t".charCodeAt(0)||h[e]=="\n".charCodeAt(0))e++}e++;
break}else{var a=k.indexOf(h," ".charCodeAt(0),e,e+50),j=k.indexOf(h,"\n".charCodeAt(0),e,e+50);if(j==-1)j=Infinity;
if(a==-1)a=Infinity;var L=k.dd(h,e,Math.min(a,j)-e).trim(),H=parseFloat(L);if(!isNaN(H)){q.G=parseFloat(L);
e=Math.min(a,j)+1;break}else if(L=="true"||L=="false"){q.G=L=="true";e=Math.min(a,j)+1;break}else if(L=="null"||L=="NaN"||L=="undefined"){q.G=0;
e=Math.min(a,j)+1;break}else{console.log("unknown identifier: "+L);throw"e"}e=Math.min(a,j)+1}}q.size=e-c;
return q};i3.qR=function(h,e,$,Z){if(h instanceof Array){var c=h.length==0||typeof h[0]=="number";if(c){k.Ed(e,$,"[ ");
$+=2;for(var G=0;G<h.length;G++){var q=h[G]+" ";k.Ed(e,$,q);$+=q.length}k.Ed(e,$,"]");$+=1}else{k.Ed(e,$,"[\n");
$+=2;for(var G=0;G<h.length;G++){k.Bn(e,$,"\t".charCodeAt(0),Z);$+=Z;$=i3.qR(h[G],e,$,Z);k.Ed(e,$,"\n");
$++}k.Bn(e,$,"\t".charCodeAt(0),Z);$+=Z;k.Ed(e,$,"]");$+=1}}else if(h instanceof Object){$=i3.Ky(h,e,$,Z)}else if(typeof h=="string"){k.Ed(e,$,"(");
$++;k.Bn(e,$,254);$++;k.Bn(e,$,255);$++;$=k.lo(e,$,h);k.Ed(e,$,")");$+=1}else{var q=h+"";k.Ed(e,$,q);
$+=q.length}return $};i3.a6a=function(h){var e=typeof h;return e=="string"||e=="number"||e=="boolean"};
function dL(){}dL.Hm=function(h){var e={};dL.kn(h,e,0,0);return e};dL.XE=function(h,e){var $=0;k.Ed(e,$," ");
$++;$=dL.LA(h,e,$,0);$--;e.sN($,2);e.data[$]=e.data[$+1]=0;$+=2;return $};dL.xW=function(h,e,$,Z){while(h[$]!="<".charCodeAt(0)){$++;
console.log("\u0161ipka")}$+=2;$=dL.kn(h,e,$,Z);return $};dL.Ky=function(h,e,$,Z){k.Ed(e,$,"<< ");$+=3;
$=dL.LA(h,e,$,Z);k.Ed(e,$,">>");$+=2;return $};dL._e=function(h){return h==9||h==10||h==32};dL.kn=function(h,e,$,Z){while(!0){while(dL._e(h[$])||h[$]==0)$++;
if($>=h.length)break;if(h[$]=="/".charCodeAt(0)){$++;var c=$;while(!dL._e(h[c]))c++;var q=k.dd(h,$,c-$);
$=c+1;var E=dL.iL(h,$,Z,q);e["_"+q]=E.G;$+=E.size}else if(h[$]==">".charCodeAt(0)){$+=2;break}else{var P=h[$];
console.log(k.dd(h,$,$+100));console.log("unknown byte: "+P+", char: "+String.fromCharCode(P)+", offset: "+$);
$++;throw"e";return-1}}return $};dL.LA=function(h,e,$,Z){for(var c in h){var q=c.substring(1,c.length);
k.Ed(e,$,"/"+q);$+=1+q.length;k.Ed(e,$," ");$++;$=dL.qR(h[c],e,$,Z+1);k.Ed(e,$," ");$++}return $};dL.iL=function(h,e,$,Z){var c=e,q={type:"",size:0,G:0};
while(dL._e(h[e]))e++;if(h[e]=="<".charCodeAt(0)){q.type="Object";q.G={};e=dL.xW(h,q.G,e,$+1)}else if(h[e]=="(".charCodeAt(0)){q.type="String";
e++;if(h[e]==")".charCodeAt(0)){q.G="s";e++}else{e+=2;var E=e,hi=0;while(!0){if(h[E]==")".charCodeAt(0)&&h[E-1]!="\\".charCodeAt(0))break;
else E+=1}q.G="s"+k.Jf(h,e,E);e=E+2}}else if(h[e]=="[".charCodeAt(0)){e++;q.G=[];q.type="Array";while(dL._e(h[e]))e++;
while(h[e]!="]".charCodeAt(0)){var P=dL.iL(h,e,$+1,Z);if(P==-1)return-1;q.G.push(P.G);e+=P.size;delete P.size;
while(dL._e(h[e]))e++}e++}else{var a=e;while(!dL._e(h[a]))a++;var j=k.dd(h,e,a-e),L=parseFloat(j);if(!isNaN(L)&&j.indexOf(".")!=-1){q.type="Float";
var H=parseFloat(j);q.G="f"+H}else if(!isNaN(L)&&j.indexOf(".")==-1){q.type="Integer";q.G="i"+parseInt(j)}else if(j=="true"||j=="false"){q.type="Boolean";
q.G=j=="true"}else if(j.charAt(0)=="/"){q.type="BString";q.G=j}else if(j=="NaN"){q.type="Float";q.G="f0"}else{console.log("unknown value",JSON.stringify(j));
throw"e"}e=a+1}q.size=e-c;return q};dL.a0r=function(h){if(h==Math.round(h))return h+".0";var e=h.toFixed(5);
if(0<h&&h<1)e=e.substring(1,e.length);if(-1<h&&h<0)e="-"+e.substring(2,e.length);return e};dL.qR=function(h,e,$,Z){var c=typeof h=="string"?h.charAt(0):"";
if(h instanceof Array){k.Ed(e,$,"[ ");$+=2;for(var G=0;G<h.length;G++){$=dL.qR(h[G],e,$,Z);k.Ed(e,$," ");
$++}k.Ed(e,$,"]");$+=1}else if(h instanceof Object){$=dL.Ky(h,e,$,Z)}else if(c=="s"){k.Ed(e,$,"(");$++;
k.Bn(e,$,254);$++;k.Bn(e,$,255);$++;$=k.lo(e,$,h.substring(1));k.Ed(e,$,")");$++}else if(c=="/"){k.Ed(e,$,h);
$+=h.length}else if(c=="f"){var q=parseFloat(h.substring(1)),E=dL.a0r(q);k.Ed(e,$,E);$+=E.length}else if(c=="i"){k.Ed(e,$,h.substring(1));
$+=h.length-1}else{var E=h+"";k.Ed(e,$,E);$+=E.length}return $};function eu(h,e){if(!h)h=0;if(!e)e=0;
this.x=h;this.y=e}eu.prototype.add=function(h){return new eu(this.x+h.x,this.y+h.y)};eu.prototype.clone=function(){return new eu(this.x,this.y)};
eu.prototype.tE=function(h){this.x=h.x;this.y=h.y};eu.prototype.dz=function(h){return this.x==h.x&&this.y==h.y};
eu.prototype.normalize=function(h){var e=Math.sqrt(this.x*this.x+this.y*this.y);this.x*=h/e;this.y*=h/e};
eu.prototype.offset=function(h,e){this.x+=h;this.y+=e};eu.prototype.su=function(h,e){this.x=h;this.y=e};
eu.prototype.MR=function(h){return new eu(this.x-h.x,this.y-h.y)};eu.nj=function(h,e){return eu.am4(h.x,h.y,e.x,e.y)};
eu.R6=function(h,e,$){return new eu(h.x+$*(e.x-h.x),h.y+$*(e.y-h.y))};eu.a0J=function(h,e){return new eu(h*Math.cos(e),h*Math.sin(e))};
eu.am4=function(h,e,$,Z){return Math.sqrt(($-h)*($-h)+(Z-e)*(Z-e))};eu.mH={};eu.e7={};eu.mH.create=function(){var h=new Float32Array(4);
return h};eu.e7.create=function(h){var e=new Float32Array(16);e[0]=e[5]=e[10]=e[15]=1;if(h)eu.e7.set(h,e);
return e};eu.mH.add=function(h,e,$){$[0]=h[0]+e[0];$[1]=h[1]+e[1];$[2]=h[2]+e[2];$[3]=h[3]+e[3]};eu.mH.set=function(h,e){e[0]=h[0];
e[1]=h[1];e[2]=h[2];e[3]=h[3]};eu.e7.set=function(h,e){e[0]=h[0];e[1]=h[1];e[2]=h[2];e[3]=h[3];e[4]=h[4];
e[5]=h[5];e[6]=h[6];e[7]=h[7];e[8]=h[8];e[9]=h[9];e[10]=h[10];e[11]=h[11];e[12]=h[12];e[13]=h[13];e[14]=h[14];
e[15]=h[15]};eu.e7.multiply=function(h,e,$){var Z=h[0],c=h[1],q=h[2],E=h[3],P=h[4],a=h[5],j=h[6],L=h[7],H=h[8],_=h[9],J=h[10],S=h[11],N=h[12],Y=h[13],U=h[14],g=h[15],M=e[0],C=e[1],y=e[2],i=e[3];
$[0]=M*Z+C*P+y*H+i*N;$[1]=M*c+C*a+y*_+i*Y;$[2]=M*q+C*j+y*J+i*U;$[3]=M*E+C*L+y*S+i*g;M=e[4];C=e[5];y=e[6];
i=e[7];$[4]=M*Z+C*P+y*H+i*N;$[5]=M*c+C*a+y*_+i*Y;$[6]=M*q+C*j+y*J+i*U;$[7]=M*E+C*L+y*S+i*g;M=e[8];C=e[9];
y=e[10];i=e[11];$[8]=M*Z+C*P+y*H+i*N;$[9]=M*c+C*a+y*_+i*Y;$[10]=M*q+C*j+y*J+i*U;$[11]=M*E+C*L+y*S+i*g;
M=e[12];C=e[13];y=e[14];i=e[15];$[12]=M*Z+C*P+y*H+i*N;$[13]=M*c+C*a+y*_+i*Y;$[14]=M*q+C*j+y*J+i*U;$[15]=M*E+C*L+y*S+i*g;
return $};eu.e7.inverse=function(h,e){var $=h[0],Z=h[1],c=h[2],q=h[3],E=h[4],P=h[5],a=h[6],j=h[7],L=h[8],H=h[9],_=h[10],J=h[11],S=h[12],N=h[13],Y=h[14],U=h[15],g=$*P-Z*E,M=$*a-c*E,C=$*j-q*E,y=Z*a-c*P,i=Z*j-q*P,Q=c*j-q*a,m=L*N-H*S,n=L*Y-_*S,u=L*U-J*S,K=H*Y-_*N,F=H*U-J*N,b=_*U-J*Y,d=g*b-M*F+C*K+y*u-i*n+Q*m;
if(!d){return null}d=1/d;e[0]=(P*b-a*F+j*K)*d;e[1]=(c*F-Z*b-q*K)*d;e[2]=(N*Q-Y*i+U*y)*d;e[3]=(_*i-H*Q-J*y)*d;
e[4]=(a*u-E*b-j*n)*d;e[5]=($*b-c*u+q*n)*d;e[6]=(Y*C-S*Q-U*M)*d;e[7]=(L*Q-_*C+J*M)*d;e[8]=(E*F-P*u+j*m)*d;
e[9]=(Z*u-$*F-q*m)*d;e[10]=(S*i-N*C+U*g)*d;e[11]=(H*C-L*i-J*g)*d;e[12]=(P*n-E*K-a*m)*d;e[13]=($*K-Z*n+c*m)*d;
e[14]=(N*M-S*y-Y*g)*d;e[15]=(L*y-H*M+_*g)*d;return e};eu.e7.aox=function(h,e,$){var Z=e[0],c=e[1];$[0]=Z*h[0]+c*h[4]+h[12];
$[1]=Z*h[1]+c*h[5]+h[13]};eu.e7.a4k=function(h,e,$){var Z=e[0],c=e[1],q=e[2],E=e[3];$[0]=h[0]*Z+h[4]*c+h[8]*q+h[12]*E;
$[1]=h[1]*Z+h[5]*c+h[9]*q+h[13]*E;$[2]=h[2]*Z+h[6]*c+h[10]*q+h[14]*E;$[3]=h[3]*Z+h[7]*c+h[11]*q+h[15]*E};
function i7(h,e,$,Z,c,q){if(typeof h==="undefined"){h=1;e=0;$=0;Z=1;c=0;q=0}this.R=h;this.O=e;this.Ma=$;
this.rU=Z;this.zq=c;this.nL=q}i7.prototype.rD=function(){return Math.sqrt(Math.abs(this.R*this.rU-this.O*this.Ma))};
i7.prototype.Ux=function(){var h=this,e=function($){return Math.abs($)<1e-9?0:$};h.R=e(h.R);h.O=e(h.O);
h.Ma=e(h.Ma);h.rU=e(h.rU);h.zq=e(h.zq);h.nL=e(h.nL)};i7.prototype.tf=function(h){return new eu(h.x*this.R+h.y*this.Ma+this.zq,h.x*this.O+h.y*this.rU+this.nL)};
i7.prototype.translate=function(h,e){this.zq+=h;this.nL+=e};i7.prototype.rotate=function(h){var e=new i7(Math.cos(h),-Math.sin(h),Math.sin(h),Math.cos(h),0,0);
this.concat(e)};i7.prototype.scale=function(h,e){var $=new i7(h,0,0,e,0,0);this.concat($)};i7.prototype.concat=function(h){this.tE(new i7(this.R*h.R+this.O*h.Ma,this.R*h.O+this.O*h.rU,this.Ma*h.R+this.rU*h.Ma,this.Ma*h.O+this.rU*h.rU,this.zq*h.R+this.nL*h.Ma+h.zq,this.zq*h.O+this.nL*h.rU+h.nL))};
i7.prototype.vy=function(){var h=this.R*this.rU-this.O*this.Ma;this.tE(new i7(this.rU/h,-this.O/h,-this.Ma/h,this.R/h,(this.Ma*this.nL-this.rU*this.zq)/h,(this.O*this.zq-this.R*this.nL)/h))};
i7.prototype.clone=function(){return new i7(this.R,this.O,this.Ma,this.rU,this.zq,this.nL)};i7.prototype.tE=function(h){this.R=h.R;
this.O=h.O;this.Ma=h.Ma;this.rU=h.rU;this.zq=h.zq;this.nL=h.nL};function k(){}k.aie=function(t){var h="";
for(var G=3;G>=0;G--)h+=String.fromCharCode(t>>G*8&255);return h};k.ae5=function(h){var t=0;for(var G=h.length-1;
G>=0;G--)t|=h.charCodeAt(G)<<(3-G)*8;return t};k.indexOf=function(h,e,$,Z){if($==null)$=0;if(Z==null)Z=h.length;
Z=Math.min(Z,h.length);for(var G=$;G<Z;G++)if(h[G]==e)return G;return-1};k.O8=function(h,e,$){if($==null)$=0;
if(typeof e=="string"){var Z=[];for(var G=0;G<e.length;G++)Z.push(e.charCodeAt(G));e=Z}for(var G=$;G<h.length;
G++){var c=!0;for(var q=0;q<e.length;q++)if(e[q]!=h[G+q]){c=!1;break}if(c)return G}return-1};k.Jf=function(h,e,$){var Z=[],q="";
while(e<$){var c=h[e++];if(c=="\\".charCodeAt(0))Z.push(h[e++]);else Z.push(c)}for(var G=0;G<Z.length;
G+=2)q+=String.fromCharCode(Z[G]<<8|Z[G+1]);return q};k.ad1=function(h,e,$){var Z=new Uint8Array(2);
for(var G=0;G<$.length;G++){k.OF(Z,0,$.charCodeAt(G));if(Z[0]==")".charCodeAt(0)||Z[0]=="(".charCodeAt(0)||Z[0]=="\\".charCodeAt(0)){h[e]="\\".charCodeAt(0);
e++}h[e]=Z[0];e++;if(Z[1]==")".charCodeAt(0)||Z[1]=="(".charCodeAt(0)||Z[1]=="\\".charCodeAt(0)){h[e]="\\".charCodeAt(0);
e++}h[e]=Z[1];e++}return e};k.lo=function(h,e,$){h.sN(e,4*$.length);return k.ad1(h.data,e,$)};k.Os=function(h,e,$){var Z="";
for(var G=0;G<$;G++){var c=h[e++]|h[e++]<<8;Z+=String.fromCharCode(c)}return Z};k.M2=function(h,e,$){var Z="";
for(var G=0;G<$;G++){var c=h[e++]<<8|h[e++];Z+=String.fromCharCode(c)}return Z};k.a3J=function(h,e,$){for(var G=0;
G<$.length;G++){var Z=$.charCodeAt(G);k.wB(h,e+2*G,Z)}};k._8=function(h,e,$){for(var G=0;G<$.length;
G++){var Z=$.charCodeAt(G);k.OF(h,e+2*G,Z)}};k.a4Y=function(h,e,$){h.sN(e,2*$.length);k._8(h.data,e,$)};
k.acg=function(h,G,e){var $=[],Z=0,c=0;e+=G;while(G<e){Z=h[G++];if((Z&128)==0)c=Z;else if((Z&224)==192){c=(Z&31)<<6;
Z=h[G++];c|=Z&63}else if((Z&240)==224){c=(Z&15)<<12;Z=h[G++];c|=(Z&63)<<6;Z=h[G++];c|=Z&63}else if((Z&248)==240){c=(Z&7)<<18;
Z=h[G++];c|=(Z&63)<<12;Z=h[G++];c|=(Z&63)<<6;Z=h[G++];c|=Z&63}else throw"e";$.push(c)}return $};k.tJ=window.TextDecoder?new window.TextDecoder("utf8"):null;
k.rM=function(h,e,$){if(e==null)e=0;if($==null)$=h.length;if(k.tJ&&e==0&&$==h.length)return k.tJ.decode(h);
var Z=k.acg(h,e,$),c=Z.length;for(var G=0;G<c;G++)Z[G]=String.fromCharCode(Z[G]);return Z.join("")};
k.QZ=window.TextEncoder?new window.TextEncoder("utf8"):null;k.Ft=function(h){if(k.QZ)return k.QZ.encode(h);
var e=new Uint8Array(h.length*4),$=k.Gn(h,e,0);return e.slice(0,$)};k.Gn=function(h,e,$){var Z=h.length,G=0;
for(var c=0;c<Z;c++){var q=h.charCodeAt(c);if((q&4294967295-(1<<7)+1)==0){e[$+G]=q;G++}else if((q&4294967295-(1<<11)+1)==0){e[$+G]=192|q>>6;
e[$+G+1]=128|q>>0&63;G+=2}else if((q&4294967295-(1<<16)+1)==0){e[$+G]=224|q>>12;e[$+G+1]=128|q>>6&63;
e[$+G+2]=128|q>>0&63;G+=3}else if((q&4294967295-(1<<21)+1)==0){e[$+G]=240|q>>18;e[$+G+1]=128|q>>12&63;
e[$+G+2]=128|q>>6&63;e[$+G+3]=128|q>>0&63;G+=4}else throw"e"}return G};k.aT=function(h,e){var $=k.n(h,e),Z=k.rM(h,e+4,$-1);
return{Zp:Z,a9:4+$}};k.anh=function(h,e){var $=k.bt(h,e),Z=k.Os(h,e+4,$);return Z};k.uT=function(h,e){var $=k.n(h,e),Z=k.M2(h,e+4,$);
return Z};k.$d=function(h,e){var $=k.n(h,e),Z=k.M2(h,e+4,$-1);return Z};k.a7L=function(h,e,$){k.E5(h,e,$.length);
e+=4;k.a3J(h,e,$)};k.afy=function(h,e,$){k.K_(h,e,$.length);e+=4;k._8(h,e,$)};k.Q7=function(h,e,$){h.sN(e,4+2*$.length);
k.afy(h.data,e,$)};k.al7=function(h,e,$){h.sN(e,4+2*$.length);k.a7L(h.data,e,$)};k.PH=function(h,e,$){var Z=[];
for(var G=0;G<$;G++)Z.push(String.fromCharCode(h[e+G]));return Z};k.ajS=function(h,e,$){var Z=!1,c=h.length-$.length;
for(var G=e;G<c;G++){for(var q=0;q<$.length;q++){if(h[G+q]!=$.charCodeAt(q))break;if(q==$.length-1)return G}}};
k.dd=function(h,e,$){var Z="";for(var G=0;G<$;G++)Z+=String.fromCharCode(h[e+G]);return Z};k.KP=function(h,e,$){for(var G=0;
G<$.length;G++)h[e+G]=$.charCodeAt(G)};k.Ed=function(h,e,$){h.sN(e,$.length);k.KP(h.data,e,$)};k.a9M=function(h,e,$){var Z="";
for(var G=0;G<$;G++){var c=h[e+G];if(c<10)Z+="  ";else if(c<100)Z+=" ";Z+=c+", "}return Z};k.oO=function(h,e){return h[e]<<8|h[e+1]};
k.OF=function(h,e,t){h[e]=t>>8&255;h[e+1]=t&255};k.W$=function(h,e,t){h.sN(e,4);k.OF(h.data,e,t)};k.a22=function(h,e){var $=k.oO(h,e),Z=k.oO(h,e+2);
return $+Z*(1/65536)};k.A1=function(h,e,t){var $=Math.floor(t),Z=Math.floor((t-$)*65536);k.OF(h,e,$);
k.OF(h,e+2,Z)};k.EW=function(h,e){return h[e+1]<<8|h[e]};k.wB=function(h,e,t){h[e+1]=t>>8&255;h[e]=t&255};
k.lc=function(h,e,t){h.sN(e,4);k.wB(h.data,e,t)};k.nP=function(h,e){k.AD[0]=h[e+1];k.AD[1]=h[e];return k.FL[0]};
k.av=function(h,e){k.AD[0]=h[e];k.AD[1]=h[e+1];return k.FL[0]};k.H0=k.OF;k.qI=k.W$;k.hY=function(h,e){k.kx[0]=h[e+3];
k.kx[1]=h[e+2];k.kx[2]=h[e+1];k.kx[3]=h[e];return k.Si[0]};k.KB=function(h,e,t){k.Si[0]=t;h[e+3]=k.kx[0];
h[e+2]=k.kx[1];h[e+1]=k.kx[2];h[e+0]=k.kx[3]};k.vi=function(h,e,t){h.sN(e,4);k.KB(h.data,e,t)};k.Ir=function(h,e,$,Z){$[Z+0]=h[e+0];
$[Z+1]=h[e+1];$[Z+2]=h[e+2];$[Z+3]=h[e+3]};k.bt=function(h,e){k.Ir(h,e,k.kx,0);return k.bh[0]};k.E5=function(h,e,t){k.bh[0]=t;
k.Ir(k.kx,0,h,e)};k.t2=function(h,e,t){h.sN(e,4);k.E5(h.data,e,t)};k.Mn=function(h,e){k.Ir(h,e,k.kx,0);
return k.Si[0]};k.a9y=function(h,e,t){k.Si[0]=t;k.Ir(k.kx,0,h,e)};k.adZ=function(h,e,t){h.sN(e,4);k.a9y(h.data,e,t)};
k.n=function(h,e){var $=h[e]*(256*256*256)+(h[e+1]<<16|h[e+2]<<8|h[e+3]);return $};k.K_=function(h,e,t){h[e]=t>>24&255;
h[e+1]=t>>16&255;h[e+2]=t>>8&255;h[e+3]=t>>0&255};k.ni=function(h,e,t){h.sN(e,4);k.K_(h.data,e,t)};k.EQ=function(h,e){return k.n(h,e)<<32|k.n(h,e+4)};
k.a0m=function(h,e,t){k.K_(h,e,t>>16>>16);k.K_(h,e+4,t&4294967295)};k.VJ=function(h,e,t){h.sN(e,8);k.a0m(h.data,e,t)};
k.bq=function(h,e){var $=new Uint8Array(8);for(var G=0;G<8;G++)$[G]=h[e+7-G];var Z=new Float64Array($.buffer);
return Z[0]};k.a0W=function(h,e){var $=new Uint8Array(8);for(var G=0;G<8;G++)$[G]=h[e+G];var Z=new Float64Array($.buffer);
return Z[0]};k.NW=function(h,e,t){var $=new Float64Array(1);$[0]=t;var Z=new Uint8Array($.buffer);for(var G=0;
G<4;G++){var c=Z[G];Z[G]=Z[7-G];Z[7-G]=c}for(var G=0;G<8;G++)h[e+G]=Z[G]};k.aL=function(h,e,t){h.sN(e,8);
k.NW(h.data,e,t)};k.tk=function(h,e){k.kx[0]=h[e+3];k.kx[1]=h[e+2];k.kx[2]=h[e+1];k.kx[3]=h[e+0];return k.vd[0]};
k.hz=function(h,e){k.kx[0]=h[e+0];k.kx[1]=h[e+1];k.kx[2]=h[e+2];k.kx[3]=h[e+3];return k.vd[0]};k.sM=function(h,e,t){k.vd[0]=t;
h[e+0]=k.kx[3];h[e+1]=k.kx[2];h[e+2]=k.kx[1];h[e+3]=k.kx[0]};k.afp=function(h,e,t){h.sN(e,4);k.sM(h.data,e,t)};
k.gs=function(h,e,t){k.vd[0]=t;h[e+0]=k.kx[0];h[e+1]=k.kx[1];h[e+2]=k.kx[2];h[e+3]=k.kx[3]};k.aiw=function(h,e,t){h.sN(e,4);
k.gs(h.data,e,t)};k.akX=function(h,e){var $=k.hY(h,e),Z=$*(1/(1<<24));return Z};k.NE=function(h,e,$){var Z=Math.floor($*(1<<24));
k.KB(h,e,Z)};k.ae2=function(h,e,$){h.sN(e,4);k.NE(h.data,e,$)};k.CA=function(h,e){var $=h[e],Z=k.dd(h,e+1,$);
$+=1-$%2;return{zm:Z,length:$+1}};k.a2$=function(h,e,$){var Z=$.length;h[e]=Z;k.KP(h,e+1,$);if(Z%2==0){h[e+1+Z]=0;
++Z}return Z+1};k.vL=function(h,e,$){h.sN(e,$.length+2);return k.a2$(h.data,e,$)};k.eb=function(h,e){var $=new i7;
$.R=k.bq(h,e+0*8);$.O=k.bq(h,e+1*8);$.Ma=k.bq(h,e+2*8);$.rU=k.bq(h,e+3*8);$.zq=k.bq(h,e+4*8);$.nL=k.bq(h,e+5*8);
return $};k.uC=function(h,e,$){k.NW(h,e+0*8,$.R);k.NW(h,e+1*8,$.O);k.NW(h,e+2*8,$.Ma);k.NW(h,e+3*8,$.rU);
k.NW(h,e+4*8,$.zq);k.NW(h,e+5*8,$.nL)};k.a6U=function(h,e,$){h.sN(e,48);k.uC(h.data,e,$)};k.ahu=function(h,e){var $=k.tk(h,e),Z=k.tk(h,e+4),c=k.tk(h,e+8),q=k.tk(h,e+12);
return new O($,Z,c-$,q-Z)};k.agk=function(h,e,$){k.sM(h,e,$.x);k.sM(h,e+4,$.y);k.sM(h,e+8,$.x+$.d);k.sM(h,e+12,$.y+$.v)};
k.a8z=function(h,e,$){h.sN(e,16);k.agk(h.data,e,$)};k.RQ=function(h,e){var $=k.hY(h,e),Z=k.hY(h,e+4),c=k.hY(h,e+8),q=k.hY(h,e+12);
return new O(Z,$,q-Z,c-$)};k.kZ=function(h,e,$){k.KB(h,e,$.y);k.KB(h,e+4,$.x);k.KB(h,e+8,$.y+$.v);k.KB(h,e+12,$.x+$.d)};
k.pS=function(h,e,$){h.sN(e,16);k.kZ(h.data,e,$)};k.nH=function(h,e,$){var Z=new Uint8Array($);for(var G=0;
G<$;G++)Z[G]=h[e+G];return Z};k.Ze=function(h,e,$){h.set($,e)};k.$N=function(h,e,$){h.sN(e,$.length);
k.Ze(h.data,e,$)};k.a2H=function(h,e,$,t){if(!t)t=1;for(var G=0;G<t;G++)h[e+G]=$};k.Bn=function(h,e,$,t){if(!t)t=1;
h.sN(e,t);k.a2H(h.data,e,$,t)};k.FL=new Int16Array(1);k.AD=new Uint8Array(k.FL.buffer);k.Si=new Int32Array(1);
k.bh=new Uint32Array(k.Si.buffer);k.kx=new Uint8Array(k.Si.buffer);k.vd=new Float32Array(k.Si.buffer);
function O(h,e,$,Z){if(!h)h=0;if(!e)e=0;if(!$)$=0;if(!Z)Z=0;this.x=h;this.y=e;this.d=$;this.v=Z}O.prototype.X=function(){return this.d*this.v};
O.prototype.clone=function(){return new O(this.x,this.y,this.d,this.v)};O.prototype.contains=function(h,e){return h>=this.x&&h<=this.x+this.d&&(e>=this.y&&e<=this.y+this.v)};
O.prototype.B4=function(h){return this.contains(h.x,h.y)};O.prototype.x1=function(h){return this.x<=h.x&&this.y<=h.y&&h.x+h.d<=this.x+this.d&&h.y+h.v<=this.y+this.v};
O.prototype.tE=function(h){this.x=h.x;this.y=h.y;this.d=h.d;this.v=h.v};O.prototype.dz=function(h){return this.x==h.x&&this.y==h.y&&this.d==h.d&&this.v==h.v};
O.prototype.P5=function(h,e){this.x-=h;this.y-=e;this.d+=2*h;this.v+=2*e};O.prototype.anx=function(h){this.P5(h.x,h.y)};
O.prototype.jx=function(h){var e=Math.max(this.x,h.x),$=Math.max(this.y,h.y),Z=Math.min(this.x+this.d,h.x+h.d),c=Math.min(this.y+this.v,h.y+h.v);
if(Z<e||c<$)return new O;else return new O(e,$,Z-e,c-$)};O.prototype.k3=function(h){if(h.y+h.v<this.y||h.x>this.x+this.d||h.y>this.y+this.v||h.x+h.d<this.x)return!1;
return!0};O.prototype.nK=function(){return this.d<=0||this.v<=0};O.prototype.offset=function(h,e){this.x+=h;
this.y+=e};O.prototype.c3=function(h){this.offset(h.x,h.y)};O.prototype.ag2=function(){this.x=this.y=this.d=this.v=0};
O.prototype.su=function(h,e,$,Z){this.x=h;this.y=e;this.d=$;this.v=Z};O.prototype.iJ=function(h){if(this.nK())return h.clone();
if(h.nK())return this.clone();var e=this.clone();e.ac6(h);return e};O.$H=new Float32Array(2);O.prototype.ac6=function(h){if(h.nK())return;
if(this.nK()){this.tE(h);return}this.BI(h.x,h.y);this.BI(h.x+h.d,h.y+h.v)};O.prototype.BI=function(h,e){var $=Math.min(this.x,h),Z=Math.min(this.y,e);
this.d=Math.max(this.x+this.d,h)-$;this.v=Math.max(this.y+this.v,e)-Z;this.x=$;this.y=Z};O.prototype.a9O=function(h,e,$,Z){if(this.d==0&&this.v==0)this.a57(h,e);
else this.BI(h,e);this.BI($,Z)};O.prototype.a57=function(h,e){this.x=h;this.y=e;this.d=this.v=0};function eZ(){}eZ.Hm=function(h,e){var $=new Uint8Array(h),Z=0,c=k.dd($,Z,9),P=4,a=100;
Z+=9;var q=k.dd($,Z,4);Z+=4;Z++;e.d=k.n($,Z);Z+=4;e.v=k.n($,Z);Z+=4;var E=k.n($,Z);Z+=4;if(E!=0)alert("Unsupported image format, not RGB!");
if(["file","v001","v002","v003"].indexOf(q)==-1){a=k.n($,Z);Z+=4;if(parseInt(q.slice(1))>=7){a=a}else alert("Unknown XCF version: "+q);
P=8}var j={};Z=eZ.dB($,Z,j);var L=[];Z=eZ.Fi($,Z,L,P);var H=[];Z=eZ.Fi($,Z,H,P);e.Zs=0;for(var G=0;G<L.length;
G++)eZ.aba($,L[G],e,j,P,a);while(e.Zs>0){e.t.push(e.d_());e.Zs--}e.t.reverse();delete e.Zs;e.buffer=s.m(e.d*e.v*4);
if(e.t.length==0)console.log("No layers!!!");for(var G=0;G<H.length;G++){var _=eZ.uj($,H[G],j,P,a);if(_.l8[dw.ajb])e.N={channel:_.mF,rect:new O(0,0,e.d,e.v)}}};
eZ.aba=function(h,e,$,Z,c,q){var E=$.by(),P=k.n(h,e),H=0;e+=4;var a=k.n(h,e);e+=4;E.rect=new O(0,0,P,a);
var j=k.n(h,e);e+=4;var L=k.aT(h,e);e+=L.a9;E.aq(L.Zp);var _={};e=eZ.dB(h,e,_);if(_[dw.A0]){var J=_[dw.A0];
H=J.length/4-1}if(_[dw.DO]){E.rect.x=k.hY(_[dw.DO],0);E.rect.y=k.hY(_[dw.DO],4)}if(_[dw.ae]){E.opacity=k.n(_[dw.ae],0)}if(_[dw.aau]){E.add.lsct=hJ.sE;
E.rect=new O(0,0,0,0);E.buffer=s.m(0);E.GO=24}if(_[dw.GD]){var S=k.n(_[dw.GD],0);E.oG=dw.a97[S];if(E.vG()&&E.oG=="norm")E.oG="pass"}if(_[dw.Yp]){if(k.n(_[dw.Yp],0)==0)E.GO+=2}if(_[dw.Iu]){var N=k.n(_[dw.Iu],0);
E.add.lsct=N&1==1?hJ.sE:hJ.Y7}if(_[dw.Yj]){var Y=_[dw.Yj];for(var U in Y){var g=Y[U];if(U=="gimp-text-layer"){var M=eZ.a5n(g),C=M.text,y=M.font,i=M.color,Q=M["font-size"];
if(C==null&&M.markup){var m=new DOMParser,n=m.parseFromString(M.markup,"image/svg+xml");while(n.firstChild!=null&&n.firstChild.tagName!=null){n=n.firstChild;
var u=n.getAttribute("font"),K=n.getAttribute("foreground"),F=n.getAttribute("size");if(u!=null)y=u;
if(K!=null){K=CSS._w(K);i=[1,K.h/255,K.l/255,K.O/255]}if(F!=null){Q=""+parseFloat(F)/245}}C=n.textContent}E.add.lnsr="rend";
E.add.TySh=gK.Zh(0,0);E.add.TySh._P=new O(0,0,100,100);E.add.TySh.J=new i7(1,0,0,1,E.rect.x,E.rect.y);
var b=E.add.TySh.Kx;gK.Ja(b,0,C);var d=gK.hT(b,0,0),W=M.justify,A=M["line-spacing"];if(i)d.By.FillColor={Type:1,Values:[1,parseFloat(i[1]),parseFloat(i[2]),parseFloat(i[3])]};
if(Q){Q=Math.round(parseFloat(Q));d.By.FontSize=Q;E.add.TySh.J.nL+=Math.min(17,Q*.17)}if(A){A=Math.round(parseFloat(A)+d.By.FontSize*1.2);
d.By.Leading=A;d.By.AutoLeading=!1}if(W)d.Bp.Justification=["left","right","center","fill"].indexOf(W);
if(y&&y!="Sans-serif"){var z=y.toLowerCase(),T="bold italic semi extra regular condensed light".split(" "),R=z.length;
for(var G=0;G<T.length;G++){var I=z.indexOf(T[G]);if(I!=-1&&I<R&&z[I-1]==" ")R=I}if(R!=z.length)y=y.slice(0,R-1).split(" ").join("")+"-"+y.slice(R).split(" ").join("");
gK.P0(d,y)}gK.sq(b,0,C.length,d);var r=M["box-width"],x=M["box-height"],X=r?parseFloat(r):E.rect.d,hH=x?parseFloat(x):E.rect.v;
gK.gq(b,1);gK.IE(b,[0,0,Math.ceil(X),Math.ceil(hH)])}else console.log("Unknown property "+U)}}while($.Zs>H){$.t.push($.d_());
$.Zs--}$.Zs=H;if(E.add.lsct==hJ.sE||E.add.lsct==hJ.Y7)$.Zs++;var hZ=c==4?k.n:k.EQ;if(E.J7()){E.buffer=s.m(E.rect.X()*4);
var gj=new s.EI(E.rect.X()),hO=hZ(h,e);e+=c;var d3=hZ(h,e);e+=c;eZ.mh(h,hO,gj,Z,c,q);s.cl(gj,E.buffer);
if(d3!=0){E.r=new o.kq;E.r.color=0;E.r.rect=E.rect.clone();E.r.channel=eZ.uj(h,d3,Z,c,q).mF;if(_[dw.i9])E.r.isEnabled=k.n(_[dw.i9],0)==1}}$.t.push(E)};
eZ.a5n=function(h){var e="("+k.rM(h,0,h.length-1)+")",$=[],Z={};eZ.Pa(e,1,$);eZ.aaN($,Z);return Z};eZ.aaN=function(h,e){for(var G=0;
G<h.length;G++){var $=h[G],Z=$[0];if($.length==2)e[Z]=$[1];else e[Z]=$.slice(1)}};eZ.Pa=function(h,e,$){while(!0){if(e>=h.length)throw"e";
var Z=h.charAt(e);e++;if(Z=="("){var c=[];e=eZ.Pa(h,e,c);$.push(c)}else if(Z==" "||Z=="\n"||Z=="\r"){}else if(Z==")")return e;
else if(Z=="\""){var q=e;while(!0){var E=h[e];e++;if(E=="\"")break;if(E=="\\")e++}$.push(JSON.parse(h.slice(q-1,e)))}else{var q=e-1;
while(h[e]!=" "&&h[e]!=")")e++;$.push(h.slice(q,e))}}};eZ.uj=function(h,e,$,Z,c){var q=k.n(h,e);e+=4;
var E=k.n(h,e);e+=4;var P=k.aT(h,e);e+=P.a9;var a={};e=eZ.dB(h,e,a);var j=new s.EI(q*E),L=Z==4?k.n:k.EQ,H=L(h,e);
e+=Z;eZ.mh(h,H,j,$,Z,c);return{mF:j.h,l8:a}};eZ.mh=function(h,e,$,Z,c,q){var E=k.n(h,e);e+=4;var P=k.n(h,e);
e+=4;var a=k.n(h,e);e+=4;var j=c==4?k.n:k.EQ,L=j(h,e);e+=c;eZ.a5B(h,L,$,Z,a,c,q)};eZ.a5B=function(h,e,$,Z,c,q,E){var P=k.n(h,e),L=0,G=0;
e+=4;var a=k.n(h,e);e+=4;var j=new O(0,0,P,a);if(E==100||E==150)L=1;else if(E==200||E==250)L=2;else if(E==300||E==350)L=4;
else if(E==500||E==550)L=2;else if(E==600||E==650)L=4;else if(E==700||E==750)L=8;else{alert("unsupported bit depth "+E);
throw"e"}var H=c/L,L=Math.round(c/H),_=[];e=eZ.Fi(h,e,_,q);var J=new s.EI(64*64*L),S=new O,N=Z[dw.adw][0],Y=[J.h,J.l,J.O,J.R];
if(H==3)J.R.fill(255);var U=Date.now();for(var g=0;g<a;g+=64)for(var M=0;M<P;M+=64){var C=Math.min(P-M,64),y=Math.min(a-g,64),i=C*y;
S.su(M,g,C,y);eZ.ahH(h,_[G++],i*L,N,H,Y);if(E==100||E==150){}else if(E==250){for(var Q=0;Q<H;Q++){var m=Y[Q];
for(var n=0;n<i;n++){var u=m[n]<<8|m[i+n];m[n]=Math.min(u>>>8,255)}}}else if(E==600){var K=eZ.ak7(),F=new Uint32Array(1),b=new Float32Array(F.buffer);
for(var Q=0;Q<H;Q++){var m=Y[Q];for(var n=0;n<i;n++){F[0]=m[n]<<24|m[i+n]<<16|m[(i<<1)+n]<<8|m[(i<<1)+i+n]<<0;
var d=b[0];if(d<0)d=0;else if(d>1)d=1;m[n]=K[~~(.5+d*1e3)]}}}else console.log("unknown data format",E);
s.wU(J,S,$,j)}};eZ.ak7=function(){var h=eZ.aje;if(h!=null)return h;h=eZ.aje=new Uint8Array(1001);for(var G=0;
G<1001;G++)h[G]=~~(.49+255*s.QN(G*.001));return h};eZ.ahH=function(h,e,$,Z,c,q){if(Z==1){for(var E=0;
E<c;E++){var P=q[E],a=0;while(a<$){var t=h[e];e++;if(t<127){var j=h[e];e++;t++;for(var G=0;G<t;G++)P[a+G]=j}else if(t==127){var L=h[e];
e++;var H=h[e];e++;var j=h[e];e++;t=L<<8|H;for(var G=0;G<t;G++)P[a+G]=j}else if(t==128){var L=h[e];e++;
var H=h[e];e++;t=L<<8|H;for(var G=0;G<t;G++)P[a+G]=h[e+G];e+=t}else{t=256-t;for(var G=0;G<t;G++)P[a+G]=h[e+G];
e+=t}a+=t}}}else if(Z==2){var _=pako.inflate(h.slice(e)),J=Math.round(_.length/$);for(var G=0;G<$;G++){var S=G*J;
q[0][G]=_[S];q[1][G]=_[S+1];q[2][G]=_[S+2];q[3][G]=J==3?255:_[S+3]}}else alert("Unknown compression "+Z)};
eZ.Fi=function(h,e,$,Z){var c=Z==4?k.n:k.EQ;while(!0){var q=c(h,e);e+=Z;if(q==0)break;else $.push(q)}return e};
eZ.dB=function(h,e,$){while(!0){var Z=k.n(h,e);e+=4;var c=k.n(h,e);e+=4;if(Z==dw.a3T)break;else if(Z==dw.Yj)$[Z]=eZ.a9l(h,e,e+c);
else $[Z]=k.nH(h,e,c);e+=c}return e};eZ.a9l=function(h,e,$){var Z={};while(e<$){var c=k.aT(h,e);e+=c.a9;
var q=k.n(h,e);e+=4;if(q!=1)console.log("unknown flags",q);var E=k.n(h,e);e+=4;Z[c.Zp]=k.nH(h,e,E);e+=E}return Z};
var dw={a3T:0,a7D:1,aa3:2,adg:3,ajb:4,a55:5,ae:6,GD:7,Yp:8,alG:9,a6x:10,i9:11,a2o:12,a9L:13,aj2:14,DO:15,ad9:16,adw:17,a1x:18,a4w:19,abK:20,Yj:21,akj:22,a4D:23,ahR:24,aes:25,ajB:26,a9c:27,ahk:28,aau:29,A0:30,Iu:31,a2R:32,a16:33,ahS:34,a9W:35,aoj:36,aoG:37,aoy:38,abz:0,aaD:1,akE:2,adc:3,a4A:1,a2e:2,a9P:0,al$:1,a7Z:1};
dw.a97="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 cj(){}cj.Hm=function(h,e){var $=cj,Z=gt.parse(h),q=0;if(Z.pages.length>1)console.log(Z.pages.length,"pages");
var c=[],E=new O;for(var P=0;P<Z.pages.length;P++){var a=Z.pages[P],j=a.layers,L=$.Be(j,P),_=!1;if(L.X()>8e3*8e3||L.d>3e4||L.v>3e4){$.M_(j,!0);
var H=$.Be(j,P);if(H.X()>=L.X())$.M_(j,!1)}L=$.Be(j,P);for(var J=0;J<j.length;J++){var S=j[J];if($.Dq(S)=="artboard")_=!0}if(!_){console.log("no artboard");
var N={};for(var Y in a)N[Y]=a[Y];N._class="group";a.layers=[N]}c.push(L.clone());if(L.nK())continue;
L.x=0;L.y=q;q+=L.v+200;E=E.iJ(L)}var U={};if(Z.foreignSymbols)for(var G=0;G<Z.foreignSymbols.length;
G++){var g=Z.foreignSymbols[G].symbolMaster;U[g.symbolID]={Hp:g}}$.nY(Z.pages,U,e);for(var M in U){var S=U[M].Hp,C=$.SK(S.layers)}var y=cj.d6(E,8192*8192);
e.ms=!0;e.d=Math.round(E.d/y);e.v=Math.round(E.v/y);e.buffer=s.m(e.d*e.v*4);e.CK(Z.pages[0].layers.length);
e.K5={};e.nn=[];q=0;for(var P=0;P<Z.pages.length;P++){var i=Z.pages[P],L=c[P],Q=new i7(y,0,0,y,L.x,L.y-q);
$.P7(i.layers,e,Q,Z,U,{},[]);q+=L.v+200}delete e.K5;delete e.nn;if(y!=1)alert("File scaled down "+y+"x");
e.ao8()};cj.a8B=0;cj.Dq=function(h){return h._class?h._class:h.$class};cj.d6=function(h,e){var $=1;while(Math.round(h.d/$)*Math.round(h.v/$)>e||Math.max(Math.round(h.d/$),Math.round(h.v/$))>3e4)$++;
if($!=1&&!window.confirm("Your image is quite large ("+h.d+" x "+h.v+" px).\n"+"Press OK to scale it down "+$+"x, or Cancel to keep the size."))$=1;
return $};cj.Be=function(h,e){var $=[],Z=cj;for(var c=0;c<h.length;c++){var q=h[c],E=Z.RQ(q.frame);if(e==0||Z.Dq(q)=="artboard")$.push(E)}return s.rect.RF($)};
cj.M_=function(h,e){var $=[],Z=cj;for(var c=0;c<h.length;c++){var q=h[c],E=Z.RQ(q.frame);E.d+=150;E.v+=150;
$.push(E)}var P=s.rect.RF($);s.rect.a7c($,e);var a=s.rect.RF($);if(a.X()*1.5<P.X()||P.d>3e4&&a.d<=3e4||P.v>3e4&&a.v<=3e4){alert("Re-arranging artboards");
for(var c=0;c<h.length;c++){var j=$[c],q=h[c],L=q.frame;L.x=j.x;L.y=j.y}}};cj.nY=function(h,e,$){var Z=cj;
for(var c=0;c<h.length;c++){var q=h[c],E=Z.Dq(q);if(["page","artboard","group"].indexOf(E)!=-1)Z.nY(q.layers,e,$);
else if(E=="symbolMaster")e[q.symbolID]={Hp:q}}};cj.SK=function(h){var e=cj;for(var $=0;$<h.length;$++){var Z=h[$],c=e.Dq(Z),q=null;
if(["page","artboard","group"].indexOf(c)!=-1)q=e.SK(Z.layers);if(c=="symbolMaster"||c=="symbolInstance")q=Z;
if(q!=null)return q}return null};cj.P7=function(h,e,$,Z,c,q,E){var P=cj,a=[];for(var j=0;j<h.length;
j++){var L=h[j],H=L.frame?P.RQ(L.frame):null,_=L.style,U="",Q=null,m=!1;if(_==null){console.log("no styles")}var J=P.Uy(L,$),S=P.Dq(L),N=S=="shapeGroup"||S=="shapePath"||S=="rectangle"||S=="oval"||S=="triangle"||S=="polygon",Y=["page","artboard","group"].indexOf(S)!=-1;
if(S=="shapeGroup"){for(var G=0;G<L.layers.length;G++)if(P.Dq(L.layers[G])=="shapeGroup")Y=!0}var g=L.exportOptions;
if(g){var M=g.exportFormats;if(M==null)M=g.sizes;if(S!="artboard"&&(M&&M.length!=0)){var C=M[0].scale}}var y=e.by();
y.QL(L.isVisible);var i=L.name;if(!(typeof i=="string"))i=S;y.aq(U+i.slice(0,250));if(_!=null)Q=P.a5_(Z,e,_,H,J,y.getName(),N||S=="artboard"||Y);
if(S=="rectangle"&&_&&_.fills&&_.fills[0]){var n=_.fills[0];if(n.fillType==4&&n.patternFillType>1&&n.image!=null)m=!0}if(L.shouldBreakMaskChain){while(a.length!=0)P.eA(a.pop(),e)}if(Y){y.add.lsct=L.layerListExpandedType==2?hJ.sE:hJ.Y7;
y.oG="pass";y.GO=24;y.QL(L.isVisible);e.t.push(e.d_());if(S=="artboard"){var u=H.clone(),K=J.rD();u.x=-Math.floor(J.zq/K);
u.y=-Math.floor(J.nL/K);u.d=Math.floor(u.d/K);u.v=Math.floor(u.v/K);y.$O(u);var F=L.backgroundColor,b=F?{h:255*F.red,l:255*F.green,O:255*F.blue}:{h:255,l:255,O:255};
y.add.artb.Clr={t:"Objc",v:s.Y.lp(b)};y.add.artb.artboardBackgroundType={t:"long",v:4}}P.P7(L.layers,e,J,Z,c,q,E)}else if(N&&!m){y.add.vmsk=new o.MM;
y.add.vstk=JSON.parse(JSON.stringify(c3.oF.default));y.add.vstk.strokeEnabled.v=!1;y.add.vogk=[];var d=Q!=null&&Q.frameFXMulti.v.length==1,W=_?_.fills:null,A=_?P.uV(Z,W,H,J,y.getName(),e,P.lC(E,L.do_objectID+"_image")):[];
if(A.length==0){if(d)y.add.vstk.fillEnabled.v=!1;else y.add.iOpa=0;y.add.SoCo={classID:"null",Clr:{t:"Objc",v:s.Y.lp({h:0,l:0,O:0})}}}else{var z=A[0],T=null,R=null;
if(z.type=="SoFi"){T="SoCo";R=c3.O7}if(z.type=="GrFl"){T="GdFl";R=c3.bv}if(z.type=="patternFill"){T="PtFl";
R=c3.Tk}if(T!=null){y.add[T]={classID:"null"};for(var G=0;G<R.length;G++){var I=R[G];y.add[T][I]=z.G.v[I]}var r=z.G.v.Opct.v.val;
if(d&&r==0)y.add.vstk.fillEnabled.v=!1;else y.add.iOpa=Math.round(255*r/100)}}y.GO|=16;y.add.vmsk.b=P.zu(L.layers?L.layers:[L],L.layers?J:$,y.add.vogk);
var x=_?_.blur:null;if(x&&x.isEnabled&&x.type<=1)y.add.vmsk.gE=x.radius;if(y.add.vmsk.b.length==2){console.log("shape with no content:",y.getName())}if(d){var X=Q.frameFXMulti.v[0].v,l=y.add.vstk,hH=_.borders[0];
Q.frameFXMulti.v=[];hn.pJ(X,l);var hZ=_.borderOptions,gj=_.miterLimit;if(hZ){var hO=hZ.dashPattern;l.strokeStyleLineCapType.v.strokeStyleLineCapType=c3.oF.kS[hZ.lineCapStyle];
l.strokeStyleLineJoinType.v.strokeStyleLineJoinType=c3.oF.join[hZ.lineJoinStyle];if(hO)l.strokeStyleLineDashSet.v=hn.bw(hO,1/X.Sz.v.val);
if(gj!=null)l.strokeStyleMiterLimit.v=gj}}y.ZB(e)}else if(S=="bitmap"||m){var d3=m?_.fills[0]:null,v=m?d3.image.bdata:L.image.bdata,hl=e.L4(v,y.getName(),0,0);
hl.GO=y.GO;y=hl;var x=_?_.blur:null,ht=_?_.colorControls:null;if(x||ht){y.add.SoLd.filterFX=dA.WW();
e.Ts({id:y.add.SoLd.placed.v,rect:new O,buffer:s.m(1),r:new o.kq});var W=y.add.SoLd.filterFX.v.filterFXList.v;
if(x){var ga=dA.fq("GsnB",{});ga.v.enab.v=x.isEnabled;ga.v.Fltr.v.Rds.v.val=x.radius;W.push(ga)}if(ht){var eB=ht.brightness,bP=ht.contrast,ek=ht.hue,b_=ht.saturation;
if(ek!=0||b_!=1){var ga=dA.fq("hue2",{});ga.v.enab.v=ht.isEnabled;eb.u1(ga.v.Fltr.v,0,[Math.round(ek*180/Math.PI),Math.round((b_-1)*100),0]);
W.push(ga)}if(eB!=0||bP!=1){var ga=dA.fq("brit",{});ga.v.enab.v=ht.isEnabled;bP=bP-1;if(bP>0)bP/=2;var fz=ga.v.Fltr.v;
fz.Brgh.v=Math.round(eB*255);fz.Cntr.v=Math.round(bP*255);fz.useLegacy.v=!0;W.push(ga)}}}if(m){var ca=d3.patternFillType;
if(ca==3){var gf=y.rect.d/y.rect.v,bb=H.d/H.v;if(gf<bb){J.translate(-(H.d*(1-gf/bb))/2,0);J.scale(bb/gf,1)}else{J.translate(0,-(H.v*(1-bb/gf))/2);
J.scale(1,gf/bb)}}}H.x=H.y=0;var b2=s.a.Kf(H).H;J.vy();s.a.J(b2,J,b2);y.add.SoLd.Trnf=f.o.h8(b2);y.add.SoLd.nonAffineTransform=f.o.h8(b2);
y.l3(e,!1)}else if(S=="text"){if(L.attributedString==null)continue;var dV=J.clone(),ch,hE,f2=0;dV.vy();
dV.R=dV.rU=Math.min(dV.R,dV.rU);y.add.lnsr="rend";y.add.TySh=gK.Zh(0,0);y.add.TySh._P=new O(0,0,H.d,H.v);
y.add.TySh.J=dV;var dS=L.attributedString;if(dS.archivedAttributedString)dS=dS.archivedAttributedString;
var e1=dS.NSString;if(e1==null)e1=dS.string;if(e1==null)e1="";if(e1["NS.string"])e1=e1["NS.string"];
if(q[L.do_objectID]!=null)e1=q[L.do_objectID];var eG=P.lC(E,L.do_objectID+"_stringValue");if(eG)e1=eG.value;
if(dS.attributes!=null){ch=[];hE=[];var dq=dS.attributes;for(var G=0;G<dq.length;G++){ch.push(dq[G].length,G);
hE.push(dq[G].attributes)}}else if(dS.NSAttributeInfo==null){ch=[e1.length,0];hE=[dS.NSAttributes]}else{ch=dS.NSAttributeInfo["NS.data"];
hE=dS.NSAttributes;ch=cj.afT(ch,hE)}for(var G=0;G<ch.length;G+=2)f2+=ch[G];if(f2!=e1.length){while(f2>e1.length){ch[ch.length-2]--;
f2--;if(ch[ch.length-2]==0){ch.pop();ch.pop()}}ch[ch.length-2]+=e1.length-f2}e1=e1.replace(/\u2028/g,"\n");
e1=e1.replace(/\u2029/g,"\n");e1=e1.replace(/\r/g,"\n");var a3=y.add.TySh.Kx;gK.Ja(a3,0,e1);if(e1!=""){var bm=L.textBehaviour,h2=_.textStyle,ag=h2?h2.verticalAlignment:0,eU=P.a4I(a3,ch,hE,e1),K=dV.rD(),iz=gK.hT(a3,0,1),fa=0;
if(iz.By.Font){var d2=iz.Kr[iz.By.Font].Name;if(d2=="FontAwesome"||d2=="Ionicons")eU*=.87}var gP=iz.By.AutoLeading?0:iz.By.Leading*.6,eI=Math.max(eU,gP)*K,it=H.d,ic=H.v;
if(bm==0){gK.gq(a3,0);var iK=gK.Ge(iz.Bp);if(iK==1)fa=it*K;if(iK==2)fa=it*K*.5;if(ag==0)eI*=1;else eI*=.9}else{gK.gq(a3,1);
gK.IE(a3,[0,0,Math.round(it),Math.round(ic)]);if(bm==2&&ag==0)eI=eI*.2;else if(bm==2&&ag==1){eI=K*.5*(ic-iz.By.FontSize)}else if(bm==1&&ag==0)eI=eI*.2;
else eI=eI*.35}y.add.TySh.J.translate(fa,eI)}}else if(S=="symbolInstance"||S=="symbolMaster"){var fA=L.symbolID;
if(q[L.do_objectID])fA=q[L.do_objectID].symbolID;var iB=P.lC(E,L.do_objectID+"_symbolID");if(iB)fA=iB.value;
if(fA=="")continue;var hG={};for(var I in q)hG[I]=q[I];if(L.overrides)for(var I in L.overrides)hG[I]=L.overrides[I];
var dt=E.slice(0);if(L.overrideValues)dt=dt.concat(L.overrideValues);var gO=c[fA];if(gO==null){console.log("Unknown master master",L.symbolID);
continue}var cX=cj.RQ(gO.Hp.frame),bh=cX.d/H.d,bi=cX.v/H.v,dM=J.clone();dM.scale(bh,bi);y.add.lsct=hJ.Y7;
y.oG="pass";y.GO=24;y.QL(L.isVisible);e.t.push(e.d_());var ik=gO.Hp;if(e.nn.indexOf(ik)==-1){e.nn.push(ik);
P.P7(ik.layers,e,dM,Z,c,hG,dt);e.nn.pop()}}else if(S=="slice"){console.log("slice layers are ignored by now");
continue}else{console.log("unknown layer type: "+S,L);continue}if(_&&_.contextSettings){var iW=_.contextSettings,et=iW.blendMode;
if(et<P.TE.length){y.oG=eN.Pn[eN.ie.indexOf(P.TE[et])];if(Y&&y.oG=="norm")y.oG="pass"}y.opacity=Math.round(y.opacity*iW.opacity)}if(Q!=null){y.add.lmfx=Q}e.t.push(y);
if(L.hasClippingMask&&h.length>1){a.push(y);e.t.push(e.d_())}}while(a.length!=0)P.eA(a.pop(),e)};cj.lC=function(h,e){for(var G=0;
G<h.length;G++)if(h[G].overrideName.startsWith(e))return h[G]};cj.afT=function(h,e){var $=0,Z=[];while($+1<h.length){var c=h[$];
$++;if(c>127){c+=128*(h[$]-1);$++;if(h[$-1]>127){c+=128*(h[$]-1);$++}}var q=h[$];$++;Z.push(c,q)}return Z};
cj.a4I=function(h,e,$,Z){var c=cj,q=0,L=0,H=0;for(var G=0;G<Z.length;G++){var E=Z.charCodeAt(G),P=1473<=E&&E<=1479||1488<=E&&E<=1514||1520<=E&&E<=1524,a=1569<=E&&E<=1594||1600<=E&&E<=1749;
if(P||a)q++}var j=q>Z.length/2;for(var G=0;G<e.length;G+=2){var _=e[G],y=14,i="DejaVuSans";if(_==0)continue;
var J=e[G+1],S=$[J],N=gK.hT(h,L,L+_-1),Y=S.NSColor;if(Y==null){var Y=S.MSAttributedStringColorDictionaryAttribute;
if(Y==null)Y=S.MSAttributedStringColorAttribute;if(Y==null)Y="0 0 0";else Y=[Y.red,Y.green,Y.blue].join(" ")}else if(c.Dq(Y)=="MSArchivedColor")Y=Y.dr+" "+Y.dg+" "+Y.db;
else if(Y.NSRGB){Y=Y.NSRGB;Y=k.dd(Y,0,Y.length-1)}else if(Y.NSCMYK){Y=Y.NSCMYK;Y=k.dd(Y,0,Y.length-1);
Y=Y.split(" ").map(parseFloat);var U=1-Y[0],g=1-Y[1],M=1-Y[2],C=1-Y[3];Y=U*C+" "+g*C+" "+M*C}else if(Y.NSWhite){Y="1 1 1"}Y=Y.split(" ");
N.By.FillColor={Type:1,Values:[1,parseFloat(Y[0]),parseFloat(Y[1]),parseFloat(Y[2])]};var Q=S.MSAttributedStringFontAttribute;
if(S.NSFont){y=S.NSFont.NSSize;i=S.NSFont.NSName}else if(Q){if(Q.attributes){Q=Q.attributes;y=Q.size;
i=Q.name}else{var m=Q.NSFontDescriptorAttributes;if(m==null)m=Q.UIFontDescriptorAttributes;Q=m;y=Q.NSFontSizeAttribute;
i=Q.NSFontNameAttribute}if(i==null)i="DejaVuSans"}var H=Math.max(H,y);N.By.FontSize=Math.round(y);gK.P0(N,i);
var n=S.NSKern;if(n==null)n=S.kerning;if(n!=null)N.By.Tracking=Math.round(1e3*n/y);if(S.NSUnderline!=null)N.By.Underline=S.NSUnderline>0;
var u=S.NSStrikethrough;if(u==null)u=S.strikethroughStyle;if(u!=null)N.By.Strikethrough=u>0;if(S.MSAttributedStringTextTransformAttribute==1)N.By.FontCaps=2;
var K=S.NSParagraphStyle;if(K==null)K=S.paragraphStyle;if(K){var F=K.paragraphSpacing;if(F!=null){N.Bp.SpaceAfter=F}var b=K.NSAlignment;
if(b==null)b=K.alignment;if(b!=null){var d=0;if(!1){}else if(b==1)d=1;else if(b==2)d=2;else if(b==4)d=0;
else{d=b;console.log("unknown align",b)}if(j&&d<2)d=1-d;N.Bp.Justification=d}var W=K.NSMinLineHeight;
if(W==null)W=K.minimumLineHeight;if(W!=null){N.By.AutoLeading=!1;N.By.Leading=W}}N.Bp._Direction=j?1:0;
gK.sq(h,L,L+_,N);L+=_}return H};cj.a5_=function(h,e,$,Z,c,q,E){var P=cj,a=JSON.parse(c3.default),j=!1;
for(var G=0;G<c3.order.length;G++)a[c3.qV[G]]={t:"VlLs",v:[]};var L=$.fills,H=P.uV(h,L,Z,c,q,e);for(var _=0;
_<2;_++){var J=$[["shadows","innerShadows"][_]];if(J==null)continue;var S=["DrSh","IrSh"][_],N=c3.qV[c3.order.indexOf(S)];
for(var G=0;G<J.length;G++){var Y=J[G];if(!Y.isEnabled)continue;if(Y.contextSettings.opacity==0||Y.color.alpha==0)continue;
var U=JSON.parse(c3.kD[c3.order.indexOf(S)]);a[N].v.unshift({t:"Objc",v:U});j=!0;U.Clr.v=P._w(Y.color);
U.blur.v.val=Math.round(Y.blurRadius/c.rD());var g=c.clone();g.zq=g.nL=0;g.vy();var M=g.tf(new eu(Y.offsetX,Y.offsetY)),C=Math.sqrt(M.x*M.x+M.y*M.y);
U.Dstn.v.val=Math.round(C);U.lagl.v.val=Math.round(Math.atan2(M.y,-M.x)*(180/Math.PI));if(U.layerConceals)U.layerConceals.v=H.length!=0;
P.UQ(Y,U)}}var y=$.borders;if(y!=null&&(H.length==0||$.blur==null||!$.blur.isEnabled))for(var G=0;G<y.length;
G++){var i=y[G];if(!i.isEnabled)continue;var U=JSON.parse(c3.kD[c3.order.indexOf("FrFX")]),N=c3.qV[c3.order.indexOf("FrFX")];
a[N].v.unshift({t:"Objc",v:U});j=!0;U.Clr.v=P._w(i.color);if(i.fillType!=0&&i.gradient){var Q=P.OB(i.gradient,Z,c,q),m=["Type","Angl","Ofst","Scl"];
for(var G=0;G<m.length;G++)U[m[G]]=Q[m[G]];U.Grad.v=Q.Grad.v;U.PntT.v.FrFl="GrFl"}U.Sz.v.val=i.thickness/c.rD();
U.Styl.v.FStl=["CtrF","InsF","OutF"][i.position];P.UQ(i,U)}for(var G=E?1:0;G<H.length;G++){var n=H[G],N=c3.qV[c3.order.indexOf(n.type)];
a[N].v.unshift(n.G);j=!0}return j?a:null};cj.uV=function(h,e,$,Z,c,q,E){if(e==null)return[];var P=cj,a=[];
for(var G=0;G<e.length;G++)if(e[G].isEnabled)a.push(e[G]);e=a;var j=[];for(var G=0;G<e.length;G++){var L=e[G],H=null,_=null;
if(L.fillType==0){H="SoFi";var J=JSON.parse(c3.kD[c3.order.indexOf("SoFi")]);_={t:"Objc",v:J};_.v.Clr.v=P._w(L.color)}else if(L.fillType==1){H="GrFl";
_={t:"Objc",v:P.OB(L.gradient,$,Z,c)}}else if(L.fillType==4&&L.image!=null){var S=L.image;if(E)S=E.value;
var N=cE.B3(S.bdata.buffer);if(N!=null&&N!="pdf"&&N!="eps"){var Y,i=0,Q=0,m=0;if(q.K5[S.key])Y=q.K5[S.key];
else{var U=cE.fy(N).Cj(S.bdata)[0],g=U.Au.clone();Y={};Y.id=c9.YV()+"-d71c-11e5-b1ae-a548a96e5f9f";Y.name="someImage";
Y.Rv=[new Uint8Array(U.data),g];q.x0(Y);q.K5[S.key]=Y}var M=Y.Rv[1],J=JSON.parse(c3.kD[c3.order.indexOf("patternFill")]);
H="patternFill";_={t:"Objc",v:J};var C=L.patternFillType,y=L.patternTileScale;J.Algn.v=!0;J.Ptrn.v.Idnt.v=Y.id;
if(C==0){i=y*M.d/Math.min(M.d,M.v);Q=-Z.zq;m=-Z.nL}else{i=Math.max($.d/M.d,$.v/M.v);Q=-Z.zq-(M.d*i-$.d)/2;
m=-Z.nL-(M.v*i-$.v)/2}J.Scl.v.val=100*i*(1/Z.rD());J.phase.v.Hrzn.v=Math.round(Q/Z.rD());J.phase.v.Vrtc.v=Math.round(m/Z.rD())}}else if(L.fillType==5){console.log("fill type Noise not supported yet")}else console.log("unknown fill type",L.fillType);
if(H!=null){P.UQ(L,_.v);j.push({type:H,G:_})}}return j};cj.a9B=function(h){var e=cj,$=new O(0,0,1,1);
h=h.slice(0);while(!0){var Z=!1;for(var G=0;G<h.length-1;G++){var c=h[G],q=h[G+1],E=null,P=c.contextSettings;
if(c.fillType==0&&(P==null||P.opacity==1&&P.blendMode==0)&&c.color.alpha==1){var a="norm",j=1,P=q.contextSettings;
if(P){j=P.opacity;a=eN.Tj(e.TE[P.blendMode])}if(q.fillType==0){E=JSON.parse(JSON.stringify(q));e.Td(E.color,c.color,E.color,$,a,j)}if(q.fillType==1){E=JSON.parse(JSON.stringify(q));
var L=E.gradient.stops;for(var H=0;H<L.length;H++)e.Td(L[H].color,c.color,L[H].color,$,a,j)}if(E!=null&&E.contextSettings){var P=E.contextSettings;
P.opacity=1;P.blendMode=0}}if(E!=null){h.splice(G,0,E);Z=!0;break}}if(!Z||h.length<2)break}return h};
cj.Td=function(h,e,$,Z,c,q){var E=cj,P=s.m(4);E.rj(h,P);var a=s.m(4);E.rj(e,a);s.p.Jn(c,P,Z,a,Z,Z,q);
E.afU(a,$)};cj.rj=function(h,e){e[0]=255*h.red;e[1]=255*h.green;e[2]=255*h.blue;e[3]=255*h.alpha};cj.afU=function(h,e){e.red=h[0]/255;
e.green=h[1]/255;e.blue=h[2]/255;e.alpha=h[3]/255};cj.eA=function(h,e){h=h.clone();h.GO=24;h.aq("Mask by "+h.getName());
e.t.push(h);h.add.lsct=hJ.sE;h.add.lyid=e.ne();delete h.add.lmfx;delete h.add.SoCo;delete h.add.GdFl;
delete h.add.PtFl;delete h.add.iOpa;if(h.add.vmsk)h.add.vmsk.w4=!0;h.ZB(e);if((h.GO&16)==16)h.GO-=16;
if((h.GO&2)==2)h.GO-=2;h.oG="pass";h.opacity=255};cj.TE="Nrml Drkn Mltp CBrn Lghn Scrn CDdg Ovrl SftL HrdL Dfrn Xclu H Strt Clr Lmns linearBurn linearDodge".split(" ");
cj.OB=function(h,e,$,Z){$=$.clone();$.vy();$.zq=$.nL=0;var c=$.rD(),_=0,J=0;$.scale(1/c,1/c);var q=cj,E=JSON.parse(c3.kD[c3.order.indexOf("GrFl")]),P=E.Grad.v;
P.Intr.v=0;if(h==null)return E;var a=h.gradientType,j=q.D2(h.from),L=q.D2(h.to);j.offset(-.5,-.5);L.offset(-.5,-.5);
j=$.tf(j);L=$.tf(L);var H=Math.atan2(-(L.y-j.y),L.x-j.x);E.Type.v.GrdT=["Lnr","Rdl","Angl"][a];E.Scl.v.val=100*eu.nj(j,L);
if(a==0){E.Angl.v.val=180/Math.PI*H;E.Scl.v.val=100*eu.nj(j,L);_=(j.x+L.x)/2;J=(j.y+L.y)/2}if(a==1){E.Scl.v.val=200*eu.nj(j,L);
_=j.x;J=j.y}if(a==2){E.Angl.v.val=180/Math.PI*(H-Math.PI/2)}var S=E.Ofst.v;S.Hrzn.v.val=_*100;S.Vrtc.v.val=J*100;
var N=[];for(var G=0;G<h.stops.length;G++){var Y=h.stops[G],U=Y.color;N.push([Y.position,U?[U.red,U.green,U.blue]:[0,0,0],U.alpha])}s.Y.GI(N,P);
return E};cj.UQ=function(h,e){var $=cj,Z=1,c=h.contextSettings;if(c!=null){e.Md.v.BlnM=$.TE[c.blendMode];
Z*=c.opacity}else e.Md.v.BlnM=$.TE[0];e.enab.v=h.isEnabled;if(e.uglg!=null)e.uglg.v=!1;if(h.color!=null)Z*=h.color.alpha;
e.Opct.v.val=Math.round(Z*100)};cj._w=function(h){return s.Y.lp(h?{h:h.red*255,l:h.green*255,O:h.blue*255}:{h:0,l:0,O:0})};
cj.zu=function(h,e,$){var Z=cj,c=[{type:6},{type:8,all:0}];for(var q=0;q<h.length;q++){var E=h[q],P=E.booleanOperation,a=0,j=E._class,N=!1;
if(j=="group"||j=="text"||j=="symbolInstance"||j=="slice"){console.log(j+" inside ShapeGroup");continue}if(P==-1)a=0;
else if(P==0)a=1;else if(P==1)a=2;else if(P==2)a=3;else if(P==3)a=0;if(q==0)a=1;var L=cj.RQ(E.frame),H=Z.Uy(E,e),_=E.path?E.path:E,J=[{type:0,length:0,aN:a,pg:2,Bs:0,W7:0}],S=_.points;
for(var G=0;G<S.length;G++){var Y=S[G],U=Z.D2(Y.curveTo),g=Z.D2(Y.point),M=Z.D2(Y.curveFrom);N=N||Y.hasCurveFrom&&!M.dz(g)||Y.hasCurveTo&&!U.dz(g)}var C=[];
if(!N){var y=[],t=S.length;if(t==0)continue;for(var G=0;G<t;G++){C[G]=S[G].cornerRadius;var Y=Z.D2(S[G].point);
y.push(Y.x,Y.y)}H.scale(1/L.d,1/L.v);H.vy();s.a.J(y,H,y);var i=s.W.PW(y,C);J=J.concat(i);J[0].length=J.length-1}else{var Q=S.length;
J[0].length=Q;for(var G=0;G<Q;G++){var Y=S[G],m=Y.curveMode,n=Z.D2(Y.point);J[1+G]={type:m==2||m==4?1:2,LD:Y.hasCurveTo?Z.D2(Y.curveTo):n.clone(),D:n,EH:Y.hasCurveFrom?Z.D2(Y.curveFrom):n.clone()}}H.scale(1/L.d,1/L.v);
H.vy();s.W.wD(J,H);var C=[];for(var G=0;G<Q;G++){var Y=S[G],m=Y.curveMode,u=Y.cornerRadius;if(m==1&&u!=0)C.push(u);
else C.push(0)}}if(!_.isClosed)for(var G=0;G<J.length;G++)J[G].type+=3;c=c.concat(J);var K=s.as.qm(),F=Z.Dq(E);
if(H.O==0&&H.Ma==0){var b=H.zq,d=H.nL,W=b+H.R,A=d+H.rU,z=[b,d,W,A];if(F=="rectangle"&&C.length==4)K=s.as.Or(2,z,C);
if(F=="oval")K=s.as.Or(5,z)}$.push(K)}return c};cj.Uy=function(h,e){var $=e.clone(),Z=h.frame?cj.RQ(h.frame):null;
if(Z)$.translate(-Z.x-Z.d/2,-Z.y-Z.v/2);if(h.isFlippedHorizontal)$.scale(-1,1);if(h.isFlippedVertical)$.scale(1,-1);
$.rotate(-h.rotation*(Math.PI/180));if(Z)$.translate(Z.d/2,Z.v/2);return $};cj.D2=function(h){h=h.slice(1,h.length-1).split(",");
return new eu(parseFloat(h[0]),parseFloat(h[1]))};cj.RQ=function(h){return new O(h.x,h.y,h.width,h.height)};
cj.kZ=function(h){return{_class:"rect",constrainProportions:!1,x:h.x,y:h.y,width:h.d,height:h.v}};function fQ(){}fQ.Hm=function(h,e){var $=Date.now(),Z=fQ,c=UZIP.parse(h),q=JSON.parse(k.rM(c.manifest)),E=JSON.parse(k.rM(c["resources/graphics/graphicContent.agc"])).resources,P=[],a=q.children;
for(var G=0;G<a.length;G++){var j=a[G];if(j.name=="artwork"){var L=j.children;for(var H=0;H<L.length;
H++)if(L[H]["uxdesign#bounds"]){var _=L[H],J=JSON.parse(k.rM(c["artwork/"+_.path+"/graphics/graphicContent.agc"]));
if(J.children.length!=1)throw"e";_._node=J.children[0];P.push(_)}}}var S=[],N=new O;for(var G=0;G<P.length;
G++){var _=P[G],Y=cj.RQ(_["uxdesign#bounds"]);S.push(Y);N=N.iJ(Y)}var U=cj.d6(N,8192*8192);e.ms=!0;e.d=Math.round(N.d/U);
e.v=Math.round(N.v/U);e.buffer=s.m(e.d*e.v*4);e.CK(P.length);var g=new i7(U,0,0,U,N.x,N.y);e.K5={};for(var G=0;
G<P.length;G++){var _=P[G],Y=cj.RQ(_["uxdesign#bounds"]),M=_._node,C=g.clone(),y=Y.clone(),i=C.rD();
C.translate(-Y.x,-Y.y);y.x=-Math.floor(C.zq/i);y.y=-Math.floor(C.nL/i);y.d=Math.floor(y.d/i);y.v=Math.floor(y.v/i);
C.translate(Y.x,Y.y);fQ.wN(M,e,C,E,c,y);var Q=e.t[e.t.length-1];Q.aq(_.name);Q.$O(y);if(G!=P.length-1)Q.add.lsct=hJ.Y7}delete e.K5};
fQ.eb=function(h){if(h==null)return new i7;return new i7(h.a,h.b,h.c,h.d,h.tx,h.ty)};fQ.wN=function(h,e,$,Z,c,q){var E=fQ,P=h.type,a=h[P],j=h.style,L=E.eb(h.transform),S,N="none",Y,U="none",g,M;
L.vy();var H=$.clone();H.concat(L);var _=e.by(),J=h.name;_.aq(J?J.slice(0,250):"Layer");if(h.visible!=null)_.QL(h.visible);
if(j){S=j.stroke;N=S?S.type:"none";Y=j.fill;U=Y?Y.type:"none";g=j.filters;M=j.clipPath;if(M&&Z.clipPaths[M.ref])M=Z.clipPaths[M.ref].children;
else M=null;if(j.opacity)_.opacity=Math.round(255*j.opacity);if(U=="solid"&&Y.color.alpha)_.opacity=Math.round(_.opacity*Y.color.alpha);
if(g){_.add.lmfx=E.aaJ(g);for(var G=0;G<g.length;G++)if(g[G].type=="uxdesign#blur"){var C=g[G],y=C.params,i=y.brightnessAmount;
if(i==null)i=0;i=Math.abs(i/100);if((C.visible==null||C.visible==!0)&&y.backgroundEffect)_.opacity=Math.round(_.opacity*(i+(1-i)*y.fillOpacity))}}if(U=="pattern"&&Y.pattern.meta.ux.uid=="")U="none"}if(M==null&&h.meta&&h.meta.ux&&h.meta.ux.clipPathResources)M=h.meta.ux.clipPathResources.children;
if(P=="artboard"||P=="group"){if(M){var Q=M[0],m=Q.shape,n=m!=null&&m.type=="rect"&&m.width*m.height>1e6;
if(Q.type!="text"&&!n){if(m){var L=E.eb(Q.transform);L.vy();var u=H.clone();u.concat(L);_.add.vmsk=new o.MM;
_.add.vmsk.b=E.zu(m);u=u.clone();u.vy();s.W.wD(_.add.vmsk.b,u);_.ZB(e)}}else if(!n)alert("Clipping by text has been ignored")}_.add.lsct=hJ.sE;
_.oG="pass";_.GO=24;if(h.visible!=null)_.QL(h.visible);e.t.push(e.d_());var K=a.children,F=Y;if(F)F=F.color;
if(F)F=F.value;if(Y){if(P=="artboard"&&U=="solid"){_.$O(new O(0,0,10,10));_.add.artb.Clr={t:"Objc",v:s.Y.lp({h:F.r,l:F.g,O:F.b})};
_.add.artb.artboardBackgroundType={t:"long",v:4}}else{var b=e.by();b.aq("BACKGROUND");b.GO|=16;b.add.vstk=JSON.parse(JSON.stringify(c3.oF.default));
b.add.vmsk=new o.MM;b.add.vmsk.b=E.zu({type:"rect",x:q.x,y:q.y,width:q.d,height:q.v});E.Tn(Y,U,H,q,q,b,e,Z,c);
b.ZB(e);e.t.push(b)}}for(var G=0;G<K.length;G++){fQ.wN(K[G],e,H,Z,c,q)}}else if(P=="shape"&&h.shape.type=="rect"&&(h.shape.r==null||h.shape.r==0)&&U=="pattern"&&Math.abs(h.shape.width/h.shape.height-Y.pattern.width/Y.pattern.height)<.01){var d=Y.pattern,W=d.meta.ux,A=W.uid,z=c["resources/"+A];
if(z==null){console.log(d);return}var T=e.L4(z,_.getName(),0,0);T.GO=_.GO;T.opacity=_.opacity;_=T;var R=s.a.Kf(new O(0,0,d.width,d.height)).H,I=new i7;
I.scale(d.width/h.shape.width,d.height/h.shape.height);if(W.offsetX)I.translate(-W.offsetX*d.width,0);
if(W.offsetY)I.translate(0,-W.offsetY*d.height);H.concat(I);H.vy();s.a.J(R,H,R);_.add.SoLd.Trnf=f.o.h8(R);
_.add.SoLd.nonAffineTransform=f.o.h8(R);_.l3(e,!1)}else if(P=="shape"){_.GO|=16;_.add.vstk=JSON.parse(JSON.stringify(c3.oF.default));
_.add.vmsk=new o.MM;_.add.vmsk.b=E.zu(a);var r=s.W.v4(_.add.vmsk.b,null),u=H.clone();u.vy();s.W.wD(_.add.vmsk.b,u);
var x=s.W.v4(_.add.vmsk.b,null);if(N=="none"){}else{var X=S.color.value,l,hH;l="SoFi";var hZ=JSON.parse(c3.kD[c3.order.indexOf("SoFi")]);
hH={t:"Objc",v:hZ};hH.v.Clr.v=s.Y.lp({h:X.r,l:X.g,O:X.b});var gj=S.align,hO=S.cap;if(gj==null)gj="center";
var d3=_.add.vstk;d3.strokeEnabled.v=!0;d3.strokeStyleLineWidth.v.val=S.width;if(gj)d3.strokeStyleLineAlignment.v.strokeStyleLineAlignment=c3.oF.ws[["inside","center","outside"].indexOf(gj)];
if(hO)d3.strokeStyleLineCapType.v.strokeStyleLineCapType=c3.oF.kS[["butt","round","square"].indexOf(hO)];
var v=["SoFi","GrFl","patternFill"].indexOf(l),hl=[c3.O7,c3.bv,c3.Tk][v];d3.strokeStyleContent.v={classID:c3.oF.$v[0]};
var ht=d3.strokeStyleContent.v={classID:c3.oF.$v[v]};for(var G=0;G<hl.length;G++)ht[hl[G]]=hH.v[hl[G]]}if(g)for(var G=0;
G<g.length;G++)if(g[G].type=="uxdesign#blur"&&g[G].visible){var ga=g[G];_.add.vmsk.gE=ga.params.blurAmount}E.Tn(Y,U,H,r,x,_,e,Z,c);
_.ZB(e)}else if(P=="text"&&h.text){var eB=h.text,bP=eB.frame,ek=j.font,b_=j.textAttributes,L=H.clone(),dV=0;
L.vy();_.add.lnsr="rend";_.add.TySh=gK.Zh(0,0);_.add.TySh._P=new O(0,0,100,100);_.add.TySh.J=L;var fz=_.add.TySh.Kx,ca=eB.rawText.replace(/\r/g,"\n").replace(/\u000b/g,"\n");
gK.Ja(fz,0,ca);if(ca!=""){var gf=gK.hT(fz,0,1),bb=ek.postscriptName;if(bb==null)bb=ek.family;gK.P0(gf,bb);
gf.By.FontSize=Math.round(ek.size);if(Y){var X=Y.color.value;gf.By.FillColor={Type:1,Values:[1,X.r/255,X.g/255,X.b/255]}}if(b_){if(b_.paragraphAlign)gf.Bp.Justification=["left","right","center"].indexOf(b_.paragraphAlign);
if(b_.letterSpacing)gf.By.Tracking=Math.round(b_.letterSpacing);if(b_.lineHeight){gf.By.AutoLeading=!1;
gf.By.Leading=Math.round(b_.lineHeight)}}gK.sq(fz,0,ca.length,gf)}var b2=h.meta.ux.rangedStyles;if(b2)for(var G=0;
G<b2.length;G++){var a=b2[G],ch=Math.min(a.length,ca.length-dV),gf=gK.hT(fz,dV,dV+ch),bb=a.postscriptName;
if(bb==null)bb=a.family;if(bb!=null)gK.P0(gf,bb);var hE=a.textScript,dS=a.underline,e1=a.fontSize,C=a.fill,eG=a.textTransform;
if(hE&&hE!="none")gf.By.FontBaseline=hE=="superscript"?1:2;if(dS!=null)gf.By.Underline=dS;if(e1!=null)gf.By.FontSize=Math.round(e1);
if(eG!=null)gf.By.FontCaps=eG=="uppercase"?2:0;if(C!=null){var dq=C.value;gf.By.FillColor={Type:1,Values:[1,(dq>>>16&255)/255,(dq>>>8&255)/255,(dq>>>0&255)/255]}}gK.sq(fz,dV,dV+ch,gf);
dV+=ch}if(bP.type=="area"||bP.type=="autoHeight"){var f2=bP.width,a3=bP.height;gK.gq(fz,1);gK.IE(fz,[0,0,f2,a3!=null?a3:f2*2])}}else console.log(P,h);
e.t.push(_)};fQ.zu=function(h){var e=h.type,$=[{type:6},{type:8,all:0}];if(e=="rect"){var Z=h.r,c=h.x,q=h.y,E=h.width,P=h.height;
if(Z==null)$=s.W.d5.Rect(c,q,E,P,0);else $=$.concat([{type:0,aN:1,length:8,Bs:0,W7:0,pg:1}]).concat(s.W.PW([c,q,c+E,q,c+E,q+P,c,q+P],Z,!1))}else if(e=="circle"){var Z=h.r;
$=s.W.d5.eX(h.cx-Z,h.cy-Z,2*Z,2*Z)}else if(e=="ellipse"){var a=h.rx,j=h.ry;$=s.W.d5.eX(h.cx-a,h.cy-j,2*a,2*j)}else if(e=="path"||e=="compound"){var L=Typr.U.SVGToPath(h.path);
$=s.a.b0({Z:L.cmds,H:L.crds},!1)}else if(e=="line"){var H=h.x1,_=h.x2,J=h.y1,S=h.y2;$=$.concat([{type:0,aN:1,length:2,Bs:0,W7:0,pg:1}]).concat(s.W.PW([H,J,_,S],0,!0))}else if(e=="polygon"){var N=h.points,Y=[];
for(var G=0;G<N.length;G++)Y.push(N[G].x,N[G].y);$=$.concat(s.W.d5.k8(Y,0,!1).slice(2))}else console.log(e,h);
return $};fQ.aaJ=function(h){var e=JSON.parse(c3.default);for(var G=0;G<c3.order.length;G++)e[c3.qV[G]]={t:"VlLs",v:[]};
for(var G=0;G<h.length;G++){var $=h[G],Z=$.type,c=$.params,q=$.visible;if(Z=="dropShadow"){var E=c3.qV[c3.order.indexOf("DrSh")],P=JSON.parse(c3.kD[c3.order.indexOf("DrSh")]);
e[E].v.unshift({t:"Objc",v:P});var a=c.dropShadows;if(a.length!=1)throw"e";var j=a[G],L=j.color,H=L.value,_=j.dx,J=j.dy;
P.Clr.v=s.Y.lp({h:H.r,l:H.g,O:H.b});P.Opct.v.val=Math.round((L.alpha!=null?L.alpha:1)*100);P.uglg.v=!1;
P.enab.v=q!=null?q:!0;P.lagl.v.val=Math.round(180/Math.PI*Math.atan2(J,-_));P.Dstn.v.val=Math.round(Math.sqrt(_*_+J*J));
P.blur.v.val=Math.round(j.r*2.3)}}return e};fQ.Tn=function(h,e,$,Z,c,q,E,P,a){var j=fQ;if(e=="none"){q.add.vstk.fillEnabled.v=!1;
q.add.SoCo={classID:"null",Clr:{t:"Objc",v:s.Y.lp({h:0,l:0,O:0})}}}else{var L,H,_;if(e=="solid"){var J=h.color.value;
L="SoCo";H=c3.O7;var S=JSON.parse(c3.kD[c3.order.indexOf("SoFi")]);_={t:"Objc",v:S};_.v.Clr.v=s.Y.lp({h:J.r,l:J.g,O:J.b})}else if(e=="gradient"){L="GdFl";
H=c3.bv;var S=JSON.parse(c3.kD[c3.order.indexOf("GrFl")]),N=S.Grad.v,C,y,i;N.Intr.v=0;var Y=h[e],U=Y.ref?P.gradients[Y.ref]:Y.meta.ux.gradientResources,g=["linear","radial"].indexOf(U.type),M=U.stops;
S.Type.v.GrdT=["Lnr","Rdl","Angl"][g];if(g==0){var C=new eu(Y.x1,Y.y1),y=new eu(Y.x2,Y.y2);C.x=y.x+.5*(C.x-y.x);
C.y=y.y+.5*(C.y-y.y)}else{var C=new eu(Y.cx,Y.cy),y=new eu(Y.cx+Y.r,Y.cy)}i=c;if(Y.units=="objectBoundingBox"){var Q=new i7(Z.d,0,0,Z.v,Z.x,Z.y);
C=Q.tf(C);y=Q.tf(y)}var Q=j.eb(Y.transform);C=Q.tf(C);y=Q.tf(y);Q=$.clone();Q.vy();C=Q.tf(C);y=Q.tf(y);
s.Y.N9(C,y,i,S);var m=[];for(var G=0;G<M.length;G++){var n=M[G],u=n.color,J=u.value,K=u.alpha;if(K==null)K=1;
m.push([n.offset,[J.r/255,J.g/255,J.b/255],K])}s.Y.GI(m,N);_={t:"Objc",v:S}}else if(e=="pattern"){L="PtFl";
H=c3.Tk;var S=JSON.parse(c3.kD[c3.order.indexOf("patternFill")]),z,x=1,X=0,l=0,hH=1;_={t:"Objc",v:S};
var F=h[e],b=F.meta.ux,d=b.uid,W=a["resources/"+d].buffer,A=cE.B3(W);if(E.K5[d])z=E.K5[d];else{var T=new O(0,0,F.width,F.height),R;
if(T.nK()){T=new O(0,0,1,1);R=new ArrayBuffer(4)}else{var I=cE.fy(A);if(I._Q){var r=new c9;I.Cj(W,r);
R=r.v2().buffer}else R=I.Cj(W)[0].data}z={};z.id=c9.YV()+"-d71c-11e5-b1ae-a548a96e5f9f";z.name="someImage";
z.Rv=[new Uint8Array(R),T];E.x0(z);E.K5[d]=z}var T=z.Rv[1];S.Algn.v=!0;S.Ptrn.v.Idnt.v=z.id;if(b.scaleBehavior=="cover"){x=hH*Math.max(c.d/T.d,c.v/T.v);
var hZ=x;if(b.scale!=null)x*=b.scale;X=c.x-(T.d*x-c.d)/2;l=c.y-(T.v*x-c.v)/2;if(b.offsetX!=null)X+=b.offsetX*T.d*hZ;
if(b.offsetY!=null)l+=b.offsetY*T.v*hZ}else if(b.scaleBehavior=="fill"){x=hH*Math.min(c.d,c.v)/Math.max(T.d,T.v);
X=c.x-(T.d*x-c.d)/2;l=c.y-(T.v*x-c.v)/2}else throw"Unknown scale behaviour";S.Scl.v.val=100*x;S.phase.v.Hrzn.v=Math.round(X);
S.phase.v.Vrtc.v=Math.round(l)}else console.log(e);if(L!=null){q.add[L]={classID:"null"};for(var G=0;
G<H.length;G++){var gj=H[G];q.add[L][gj]=_.v[gj]}}}};function a0(){}a0.Hm=function(h,e,$){h=new Uint8Array(h);
var Z=k.rM(h,0,h.length),c=new DOMParser,q=c.parseFromString(Z,"image/svg+xml"),E=q.getElementsByTagName("style")[0],J=1;
if(E)E=Typr.U.SVG.cssMap(E.textContent);else E={};var P=q.firstChild;while(P.tagName!="svg")P=P.nextSibling;
var a=new O(0,0,100,100),j=P.getAttribute("viewBox"),L=P.getAttribute("width"),H=P.getAttribute("height");
if(j){var _=a0.GA(j);a.x=_[0];a.y=_[1];a.d=_[2];a.v=_[3]}else if(L!=null||H!=null){a.d=L!=null?parseFloat(L):parseFloat(H);
a.v=H!=null?parseFloat(H):parseFloat(L)}a=s.a.Lu(a);while($&&Math.max(a.d*J,a.v*J)<Math.max($[0],$[1]))J++;
while($==null&&Math.max(a.d,a.v)*J>8192)J*=.5;e.ms=!0;e.d=~~(a.d*J);e.v=~~(a.v*J);e.buffer=s.m(e.d*e.v*4);
var S=new i7(J,0,0,J,-a.x*J,-a.y*J),N={R_:a0.VP(P),ac4:E};a0.BE(q,P.children,e,S,N,new i7,0);if(e.t.length==0){var Y=e.by();
Y.aq("Layer");e.t.push(Y)}};a0.GA=function(h){var e=" ";if(h.indexOf(",")!=-1)e=",";return h.split(e).map(parseFloat)};
a0.BE=function(h,e,$,Z,c,q,E){var P=a0,a=["display","opacity","fill-opacity"];for(var j=0;j<e.length;
j++){var L=e[j],H=L.tagName,_=L.getAttribute("id"),J=P.VP(L,c.ac4),N=13,C=1,Q="clip-path",m=null;for(var S in c.R_)if(a.indexOf(S)==-1&&J[S]==null)J[S]=c.R_[S];
if(J["font-size"])N=P.KC(J["font-size"],N);if(L.getAttribute("dx"))Z.zq+=P.KC(L.getAttribute("dx"),N);
if(L.getAttribute("dy"))Z.nL+=P.KC(L.getAttribute("dy"),N);var Y=P.zt(L);Y.concat(Z);var U=L.getAttribute("visibility"),g=J.display,M=$.by();
if(U=="hidden"||g=="none")M.QL(!1);M.aq(_!=null?_.split(":::")[0]:"Layer");if(J.opacity)C*=parseFloat(J.opacity);
if(J["fill-opacity"]){var y=parseFloat(J["fill-opacity"]);if(y!=0)C*=y}M.opacity=Math.round(255*C);if(J["mix-blend-mode"]){var i=eN.JX.indexOf(J["mix-blend-mode"]);
if(i!=-1)M.oG=eN.Pn[i]}if(L.getAttribute(Q)==null)Q="mask";if(L.getAttribute(Q)!=null){var n=L.getAttribute(Q);
n=n.slice(4,n.length-1);var u=h.getElementById(n.slice(1));if(u){var K=u.children;m=$.by();m.aq("Clip-Path"+(_?": "+_:""));
m.add.lsct=E<2?hJ.sE:hJ.Y7;m.oG="pass";m.GO=24;var F=m.add.vmsk=new o.MM;$.t.push($.d_());var b=[];if(u.getAttribute(Q)){var n=u.getAttribute(Q);
n=n.slice(4,n.length-1);b=h.getElementById(n.slice(1)).children}for(var G=0;G<K.length;G++){var d=P.zt(K[G]);
d.concat(Y);var W=P.zu(h,K[G],!1).slice(2);s.W.wD(W,d);F.b=F.b.concat(W)}for(var G=0;G<b.length;G++){var d=P.zt(K[G]);
d.concat(Y);var W=P.zu(h,b[G],!1).slice(2);for(var A=0;A<W.length;A++)if(W[G].aN!=null)W[G].aN=3;s.W.wD(W,d);
F.b=F.b.concat(W)}m.__();m.ZB();E++}}if(H=="g"||H=="a"||H=="svg"||H=="switch"||(H=="text"||H=="textPath")&&L.children.length>0){if(H=="text")q=P.go(L,q);
var z=L.getAttribute("viewBox"),T=L.getAttribute("width"),R=L.getAttribute("height");if(z&&T&&R){var I=a0.GA(z),r=P.go(L),x=new i7;
x.translate(-I[0],-I[1]);x.scale(parseFloat(T)/I[2],parseFloat(R)/I[3]);x.translate(r.zq,r.nL);x.concat(Y);
Y=x}var X=L.children.length,l=c.R_;c.R_=J;var hH=H!="text"&&H!="textPath"||X>1;if(hH){var hZ=M.o6();
M.add.lsct=E<2&&hZ&&(_==null||!_.endsWith(":::"))?hJ.sE:hJ.Y7;M.oG="pass";M.GO=24;M.QL(hZ);$.t.push($.d_())}P.BE(h,L.children,$,Y,c,q,E+1);
if(hH)$.t.push(M);else{var gj=$.t[$.t.length-1];gj.opacity=M.opacity;gj.oG=M.oG}c.R_=l}else if(H=="use"){var x=P.go(L);
x.concat(Y);var hO=P.Zv(L),d3=h.getElementById(hO.slice(1)),l=c.R_;c.R_=J;P.BE(h,[d3],$,x,c,q,E+1);c.R_=l}else if(H=="path"||H=="rect"||H=="circle"||H=="ellipse"||H=="polygon"||H=="polyline"||H=="line"){M.GO|=16;
M.add.vmsk=new o.MM;M.add.vstk=JSON.parse(JSON.stringify(c3.oF.default));M.add.vstk.strokeEnabled.v=!1;
var v=M.add.vstk,F=M.add.vmsk;F.b=P.zu(h,L,J["fill-rule"]=="evenodd");s.W.wD(F.b,Y);var hl=s.W.v4(F.b),ht=J.stroke,ga=J["stroke-width"],eB=J["stroke-dasharray"],bP=J.fill,ek=J["stroke-linejoin"],b_=J["stroke-linecap"],fz=J["paint-order"];
if(ht==null||ht=="none"||ht=="null"){}else{var ca=P.pz(h,ht,Y,hl),gf=["SoFi","GrFl","patternFill"].indexOf(ca.type),bb=ca.G.v.Opct.v,ch=1;
if(bb.val!=100){M.opacity=Math.round(M.opacity*bb.val/100);bb.val=100}var b2=[c3.O7,c3.bv,c3.Tk][gf],dV=v.strokeStyleContent.v={classID:c3.oF.$v[gf]};
for(var G=0;G<b2.length;G++)dV[b2[G]]=ca.G.v[b2[G]];ga=ga?parseFloat(ga):1;if(fz&&fz.replace(/\s\s+/g," ").slice(0,11)=="stroke fill"){ch=2;
ga/=2}v.strokeEnabled.v=!0;if(ek)v.strokeStyleLineJoinType.v.strokeStyleLineJoinType=c3.oF.join[["miter","round","bevel"].indexOf(ek)];
if(b_)v.strokeStyleLineCapType.v.strokeStyleLineCapType=c3.oF.kS[["butt","round","square"].indexOf(b_)];
v.strokeStyleLineWidth.v.val=ga*f.o.rD(Y);v.strokeStyleLineAlignment.v.strokeStyleLineAlignment=c3.oF.ws[ch];
v.strokeStyleOpacity.v.val=100*(J["stroke-opacity"]?parseFloat(J["stroke-opacity"]):1);if(eB!=null&&eB!="none")v.strokeStyleLineDashSet.v=hn.bw(eB.split(",").map(parseFloat),1/ga)}if(bP=="none"||J["fill-opacity"]&&parseFloat(J["fill-opacity"])==0){M.add.vstk.fillEnabled.v=!1;
M.add.SoCo={classID:"null",Clr:{t:"Objc",v:s.Y.lp({h:0,l:0,O:0})}}}else{var ca=P.pz(h,bP,Y,hl),hE=null,dS=null;
if(ca.type=="SoFi"){hE="SoCo";dS=c3.O7}if(ca.type=="GrFl"){hE="GdFl";dS=c3.bv}if(ca.type=="patternFill"){hE="PtFl";
dS=c3.Tk}if(hE!=null){M.add[hE]={classID:"null"};for(var G=0;G<dS.length;G++){var S=dS[G];M.add[hE][S]=ca.G.v[S]}}}if(J.filter&&J.filter!="none"){var e1=J.filter;
e1=e1.slice(5,e1.length-1);if(h.getElementById(e1)){var eG=h.getElementById(e1).children[0];if(eG.tagName=="feGaussianBlur"){M.add.vmsk.gE=parseFloat(eG.getAttribute("stdDeviation"))*f.o.rD(Y)}}}M.__();
M.ZB($);$.t.push(M)}else if((H=="text"||H=="tspan")&&L.textContent!=""){q=P.go(L,q);var x=q.clone(),d2=0;
x.concat(Y);if(L.children.length>0){var dq=P.VP(L.children[0],c.ac4);for(var S in dq)if(a.indexOf(S)==-1)J[S]=dq[S]}var f2=J["xml:space"],a3=L.textContent;
if(f2=="preserve")a3=a3.replace(/\t/g," ").replace(/\n/g," ");if(_==null)M.aq(a3);M.add.lnsr="rend";
M.add.TySh=gK.Zh(0,0);M.add.TySh._P=new O(0,0,100,100);M.add.TySh.J=x.clone();var bm=M.add.TySh.Kx;gK.Ja(bm,0,a3);
var bP=J.fill,h2=J["font-weight"],ag=J["font-family"],eU=J["text-decoration"],ht=J.stroke,ga=J["stroke-width"],iz=J["dominant-baseline"];
if(iz=="text-before-edge")d2=N;else if(iz=="middle")d2=N/2;else if(iz=="hanging")d2=N;if(d2!=0)M.add.TySh.J.translate(0,d2);
var gP=gK.hT(bm,0,1);if(bP&&bP!="none"){var fa=CSS._w(bP);gP.By.FillColor={Type:1,Values:[1,fa.h/255,fa.l/255,fa.O/255]}}if(eU=="underline")gP.By.Underline=!0;
gP.By.FontSize=Math.round(N);gK.P0(gP,"LiberationSans");if(h2=="bold")gK.P0(gP,"LiberationSans-Bold");
if(ag){ag=ag.split(",")[0].trim();if(ag[0]=="\"")ag=ag.slice(1);if(ag[ag.length-1]=="\"")ag=ag.slice(0,ag.length-1);
var eI=ag+":"+(h2?h2:"normal"),it={"'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(it[eI])gK.P0(gP,it[eI]);else gK.P0(gP,ag)}if(J["text-anchor"])gP.Bp.Justification=["start","end","middle"].indexOf(J["text-anchor"]);
gK.sq(bm,0,a3.length,gP);if(ht==null||ht=="none"){}else{var ic=JSON.parse(c3.kD[c3.order.indexOf("FrFX")]);
ic.Clr.v=s.Y.lp(CSS._w(ht));ic.Sz.v.val=Math.round(parseFloat(ga)*f.o.rD(x));var iK=JSON.parse(c3.default);
for(var G=0;G<c3.order.length;G++)iK[c3.qV[G]]={t:"VlLs",v:[]};iK.frameFXMulti.v.push({t:"Objc",v:ic});
M.add.lmfx=iK}$.t.push(M)}else if(H=="image"){var hO=P.Zv(L);if(hO.slice(0,4)=="data"){var fA=cE.Fq(hO),iB=fA,hG=$.L4(iB,M.getName(),0,0);
hG.GO=M.GO;M=hG;var dt=M.rect.clone();dt.x=dt.y=0;var gO=L.getAttribute("width"),cX=L.getAttribute("height");
if(gO)dt.d=parseFloat(gO);if(cX)dt.v=parseFloat(cX);var bh=P.go(L);bh.concat(Y);var bi=s.a.Kf(dt).H;
s.a.J(bi,bh,bi);M.add.SoLd.Trnf=f.o.h8(bi);M.add.SoLd.nonAffineTransform=f.o.h8(bi);M.l3($,!1);$.t.push(M)}}else console.log("unknown tag: "+H,L.children.length,L.textContent.length);
if(m!=null){$.t.push(m);E--}}};a0.zu=function(h,e,$){var Z=a0,c=[{type:6},{type:8,all:0}],q=e.tagName;
if(q=="use"){var E=Z.Zv(e),P=h.getElementById(E.slice(1)),a=new i7;if(P.tagName!="rect")a=Z.go(P);a.concat(Z.zt(P));
c=Z.zu(h,P,$);s.W.wD(c,a)}else if(q=="path"){var j=e.getAttribute("d");if(j==null)return c;var L=Typr.U.SVGToPath(j);
c=s.a.b0({H:L.crds,Z:L.cmds},$)}else if(q=="rect"){var H=e.getAttribute("rx"),_=Z.go(e);c=s.W.d5.Rect(_.zq,_.nL,parseFloat(e.getAttribute("width")),parseFloat(e.getAttribute("height")),H?parseFloat(H):0)}else if(q=="circle"||q=="ellipse"){var J=[0,0,0,0],S=["cx","cy","rx","ry","r"];
for(var G=0;G<5;G++){var N=e.getAttribute(S[G]);if(N){N=parseFloat(N);if(G<4)J[G]=N;else J[2]=J[3]=N}}c=s.W.d5.eX(J[0]-J[2],J[1]-J[3],2*J[2],2*J[3])}else if(q=="polygon"||q=="polyline"||q=="line"){var Y;
if(q=="line")Y=[e.getAttribute("x1"),e.getAttribute("y1"),e.getAttribute("x2"),e.getAttribute("y2")].map(parseFloat);
else Y=e.getAttribute("points").trim().replace(/\s\s+/g," ").split(",").join(" ").split(" ").map(parseFloat);
c=s.W.d5.k8(Y,0,q!="polygon")}return c};a0.KC=function(h,e){if(h.charAt(h.length-1)=="m")return e*parseFloat(h.slice(0,h.length-2));
else return parseFloat(h)};a0.pz=function(h,e,$,Z){var c,q,E=a0,P=JSON.parse(c3.kD[c3.order.indexOf("SoFi")]),a=e!=null?e.indexOf("("):-1;
if(a!=-1){var j=e.indexOf(")"),L=e.slice(0,a).trim(),H=e.slice(a+1,j).trim();if(H.charAt(0)=="'")H=H.slice(1,H.length-1);
if(L=="url"){if(H.charAt(0)=="#"){var _=h.getElementById(H.slice(1));if(_&&_.tagName.toLowerCase().endsWith("gradient")){var J=E.OB(h,_,$,Z);
c="GrFl";q={t:"Objc",v:J}}else{c="SoFi";q={t:"Objc",v:P}}}else console.log("unknown url",H)}else if(L=="rgb"||L=="rgba"){c="SoFi";
q={t:"Objc",v:P};q.v.Clr.v=s.Y.lp(CSS._w(e));if(L=="rgba")q.v.Opct.v.val=Math.round(100*parseFloat(e.split(",").pop()))}else console.log("unknown fill",e)}else{c="SoFi";
q={t:"Objc",v:P};q.v.Clr.v=s.Y.lp(CSS._w(e))}return{type:c,G:q}};a0.zt=function(h){var e=new i7,$=h.getAttribute("transform");
if($)e=a0.ef($);var Z=h.getAttribute("style");if(Z!=null){var c={};a0.Hr(c,Z,["transform"]);Z=c.transform;
if(Z)e.concat(a0.ef(Z))}return e};a0.go=function(h,e){var $=new i7,Z=h.getAttribute("x"),c=h.getAttribute("y");
if(Z)$.zq=parseFloat(Z);else if(e)$.zq=e.zq;if(c)$.nL=parseFloat(c);else if(e)$.nL=e.nL;return $};a0.ef=function(h){var e=Typr.U.SVG.readTrnf(h);
return new i7(e[0],e[1],e[2],e[3],e[4],e[5])};a0.VP=function(h,e){var $={},Z="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 G=0;G<Z.length;G++){var c=h.getAttribute(Z[G]);if(c!=null&&c!="inherit")$[Z[G]]=c}var q=h.getAttribute("class");
if(e!=null&&q!=null&&e["."+q]!=null)a0.Hr($,e["."+q],Z);var E=h.getAttribute("id");if(e!=null&&E!=null&&e["#"+E]!=null)a0.Hr($,e["#"+E],Z);
var P=h.getAttribute("style");if(P!=null)a0.Hr($,P,Z);return $};a0.Hr=function(h,e,$){e=e.trim().split(";");
for(var G=0;G<e.length;G++){var Z=e[G].split(":"),c=Z[0]?Z[0].trim():"",q=Z[1]?Z[1].trim():"";for(var E=0;
E<$.length;E++)if(c==$[E]&&q!="inherit")h[$[E]]=q}};a0.Zv=function(h){var e=h.getAttribute("xlink:href");
if(e==null)e=h.getAttribute("href");return e};a0.OB=function(h,e,$,Z){var c=a0,q=new i7,E=e.getAttribute("gradientTransform");
if(E)q=c.ef(E);q.concat($);var P=JSON.parse(c3.kD[c3.order.indexOf("GrFl")]),a=P.Grad.v;a.Intr.v=0;var j=e.tagName,L=new eu(0,0),H=new eu(Z.d,0);
if(j=="linearGradient"){P.Type.v.GrdT="Lnr";if(e.getAttribute("x1"))L.x=parseFloat(e.getAttribute("x1"));
if(e.getAttribute("y1"))L.y=parseFloat(e.getAttribute("y1"));if(e.getAttribute("x2"))H.x=parseFloat(e.getAttribute("x2"));
if(e.getAttribute("y2"))H.y=parseFloat(e.getAttribute("y2"));L.x=H.x+.5*(L.x-H.x);L.y=H.y+.5*(L.y-H.y)}if(j=="radialGradient"){P.Type.v.GrdT="Rdl";
if(e.getAttribute("cx"))L.x=parseFloat(e.getAttribute("cx"));if(e.getAttribute("cy"))L.y=parseFloat(e.getAttribute("cy"));
H.su(L.x,L.y);if(e.getAttribute("r"))H.x+=parseFloat(e.getAttribute("r"))}if(e.getAttribute("gradientUnits")=="userSpaceOnUse"){L=q.tf(L);
H=q.tf(H)}else{L.x=Z.x+L.x*Z.d;L.y=Z.y+L.y*Z.v;H.x=Z.x+H.x*Z.d;H.y=Z.y+H.y*Z.v}s.Y.N9(L,H,Z,P);var _=e.children;
if(_.length==0){var J=c.Zv(e);if(J==null)throw"gradient has no stops";var S=h.getElementById(J.slice(1));
if(S==null){console.log(J.slice(1));throw"e"}var N=c.OB(h,S,q,Z);P.Grad=N.Grad}else{var Y=[];for(var G=0;
G<_.length;G++){var U=_[G],g=c.VP(U),M=g["stop-color"],C=g["stop-opacity"],y=U.getAttribute("offset");
if(M==null)M="#000000";if(C==null)C="1";var i=y?parseFloat(y):0;M=CSS._w(M);Y.push([i,[M.h/255,M.l/255,M.O/255],parseFloat(C)])}s.Y.GI(Y,a)}return P};
a0.A7=function(h,e,$){var Z=[],c=a0;c.u6=e.a4s?"\t":"";var q=e.afn,E=e.a42;Z.push("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 "+h.d+" "+h.v+"\" width=\""+q+"\" height=\""+E+"\">");
var P={CV:[],qM:[],l$:0,vh:0,PL:0,Kj:{},wz:{},dD:0,Mp:{},hR:{},fl:0,R0:[]};a0.ZX(h,P,h.root.children,1,e,$);
if(P.CV.length!=0){Z.push(c.za(1)+"<defs>");Z=Z.concat(P.CV);Z.push(c.za(1)+"</defs>")}Z.push(c.za(1)+"<style>");
Z.push(c.za(2)+"tspan { white-space:pre }");for(var a in P.Mp)Z.push(c.za(2)+"."+a+" { "+P.Mp[a]+" } ");
Z.push(c.za(1)+"</style>");Z=Z.concat(P.qM);Z.push("</svg>");Z=Z.join(e.a4s?"\n":"");var j=s.m(Math.round(Z.length*1.5)),L=k.Gn(Z,j,0);
if(c.t7){console.log(c.t7);var H="SVGParser.gen.db = [\n";for(var G=0;G<c.t7.length;G++){var _=c.t7[G];
H+="{\n\tnam: \""+_.A3+"\",\n\tpts: [\n";for(var J=0;J<_.v9.length;J++){var S=_.v9[J];H+="\t\t[\""+S[0]+"\", { cmds: "+JSON.stringify(S[1].Z)+", crds:"+JSON.stringify(S[1].H)+" } ]"+(J==_.v9.length-1?"":",")+"\n"}H+="\t]\n}"+(G==c.t7.length-1?"":",")+"\n"}H+="]\n";
console.log(H)}return j.buffer.slice(0,L)};a0.u6="";a0.za=function(t){var h="";for(var G=0;G<t;G++)h+=a0.u6;
return h};a0.$0=function(t){return""+parseFloat(t.toFixed(3))};a0.ZX=function(h,e,$,Z,c,q){var E=a0;
for(var P=0;P<$.length;P++){var a=$[P].$,j=a.add.lsct,L=a.add.vmsk,H=a.add.vstk,_=a.add.TySh,J=[];if(!c.hidden&&!a.o6())continue;
var S=a.opacity/255,N=a.add.iOpa?a.add.iOpa/255:1;if(S!=1)J.push("opacity: "+E.$0(S));if(N!=1)J.push("fill-opacity: "+E.$0(N));
if(a.oG!="norm"){var Y=eN.JX[eN.Pn.indexOf(a.oG)];if(Y!=null)J.push("mix-blend-mode: "+Y)}if(!a.o6())J.push("display: none");
var U=[],g=[],M=a.getName(),C=M.indexOf(" .");if(C!=-1){g.push(M.slice(C+2));M=M.slice(0,C)}if(c.names)U.push("id=\""+E.zm(M)+"\"");
var y=a.add.lmfx;if(y)y=y.solidFillMulti.v[0];if(y)y=y.v;if(y&&!y.enab.v)y=null;if(a.vG()){var i=$[P].children;
if(!(i.length==1&&i[0].$.add.SoLd&&!c.Dy)){if(E.t7&&a.getName().split("-").length==3){E.t7.push({A3:a.getName(),NX:0,v9:[]})}if(L||a.add.artb){var Q;
if(L)Q=s.W.dG(L.b).ahD;else{var m=a.B2(),n=s.a.Kf(m);Q=Typr.U.pathToSVG({crds:n.H,cmds:n.Z},2)}e.PL++;
U.push("clip-path=\"url(#cp"+e.PL+")\"");e.CV.push(E.za(2)+"<clipPath clipPathUnits=\"userSpaceOnUse\" id=\"cp"+e.PL+"\">");
e.CV.push(E.za(3)+"<path d=\""+Q+"\" />");e.CV.push(E.za(2)+"</clipPath>")}if(J.length!=0)U.push("style=\""+J.join(";")+"\"");
e.qM.push(E.za(Z)+"<g "+E.hq(U,g)+">");E.ZX(h,e,i,Z+1,c,q);e.qM.push(E.za(Z)+"</g>")}}else if(a.SV()&&L==null){var u=new O(0,0,h.d,h.v);
E.NZ(J,a.add,e,u);if(J.length!=0)U.push("style=\""+J.join(";")+"\"");e.qM.push(E.za(Z)+"<rect width=\""+h.d+"\" height=\""+h.v+"\" "+E.hq(U,g)+" />")}else if(L){var u=s.W.v4(L.b),Q=s.W.dG(L.b);
if(Q.lD!=0){U.push("fill-rule=\"evenodd\"")}var K=Q.ahD;E.NZ(J,a.add,e,u);if(J.length!=0){var F=J.join(";"),b=e.hR[F];
if(b==null){b="shp"+e.fl;e.fl++;e.hR[F]=b;e.Mp[b]=F}g.push(b)}e.qM.push(E.za(Z)+"<path "+E.hq(U,g)+" d=\""+K+"\" />");
if(E.t7&&E.t7[E.t7.length-1]){var d=s.a.$o(L.b);d.H=d.H.map(Math.round);var W=E.t7[E.t7.length-1];W.NX+=JSON.stringify(d).length;
W.v9.push([J[0].split("#").pop(),d])}}else if(_&&c.a6Q){var A=_.Kx,z=new br(A,q);if(y)U.push("fill=\""+CSS.PU(y.Clr.v)+"\"");
var T=cg.VL(z,_),R=s.a.G9(T);for(var I in R){if(y==null)U.push("fill=\""+I+"\"");var n=R[I],K=Typr.U.pathToSVG({crds:n.H,cmds:n.Z},2);
e.qM.push(E.za(Z)+"<path "+E.hq(U,g)+" d=\""+K+"\" />");if(y==null)U.pop()}}else if(_&&!c.anc){var A=_.Kx,r=_.J.clone(),ht=0,ga=0;
if(gK.De(A)==1){var x=gK.hT(A,0,0).Bp.Justification,X=0,hH=gK.r1(A)[2];if(x==2)X=hH/2;if(x==1)X=hH;r.translate(X,0)}J.push("transform: "+E.uC(r));
var hZ=gK.N8(A),gj=A.EngineDict.ParagraphRun,hO=gj.RunArray,d3=gj.RunLengthArray;if(J.length!=0)U.push("style=\""+J.join(";")+"\"");
e.qM.push(E.za(Z)+"<text "+E.hq(U,g)+" >");var v=a.add.lmfx;if(v)v=v.frameFXMulti.v[0];if(v)v=v.v;var hl=y?CSS.PU(y.Clr.v):null;
for(var G=0;G<hO.length;G++){var eB=[],bP=d3[G],ek=hZ.slice(ht,ht+bP-1),b_=gK.hT(A,ht,ht),fz=b_.Kr[b_.By.Font].Name;
if(e.R0.indexOf(fz)==-1)e.R0.push(fz);CSS.pu(eB,b_,_.J,!0,!0,hl);if(v){J.push("stroke: "+CSS.PU(v.Clr.v));
J.push("stroke-width: "+v.Sz.v.val)}var ca=b_.By.FontSize*1.12;if(G==0)ca=gK.De(A)==0?0:b_.By.FontSize;
ga+=ca;if(ek!=""){var F=eB.join(";"),b=e.hR[F],bb="";if(b==null){b="txt"+e.fl;e.fl++;e.hR[F]=b;e.Mp[b]=F}var gf=b_.By.Tracking;
if(gf!=null&&gf!=0){gf=Math.round(gf*b_.By.FontSize/1e3);bb=" dx=\"0";for(var b2=1;b2<ek.length;b2++)bb+=" "+gf;
bb+="\" "}e.qM.push(E.za(Z+1)+"<tspan x=\"0\" y=\""+E.$0(ga)+"\" class=\""+b+"\""+bb+">"+E.zm(ek)+"</tspan>")}ht+=bP}e.qM.push(E.za(Z)+"</text>")}else if(a.add.SoLd&&c.Dy){var dV=a.add.SoLd,ch=dV.Idnt.v,hE=0,dS=dV.Crop?dV.Crop.v:null;
if(e.wz[ch]!=null)hE=e.wz[ch];else{e.dD++;hE=e.dD;e.wz[ch]=e.dD;var e1=h.Cv(ch,dS),f2="";if(e1==null)return;
var eG=e1.bH,dq=cE.B3(e1.raw.buffer);if(dq=="pdf"){var a3=new c9("h");cE.fy("PDF").Cj(e1.raw.buffer,a3);
a3.Nq();a3.pL();a3.s();a3.cm();if(dV.Crop&&dV.Crop.v==1){f.u4.Hx(a3,a3.root._A(a3,!0))}var bm=cE.fy("SVG").pT(a3,a3.d,a3.v,null,{R0:q});
f2="data:image/svg+xml;base64,"+cE.oq(bm)}else if(dq=="jpg"||dq=="png"||dq=="gif"||dq=="svg"){var h2={jpg:"image/jpg",png:"image/png",jpg:"image/jpg",svg:"image/svg+xml"};
f2="data:"+h2[dq]+";base64,"+cE.oq(e1.raw.buffer)}else{f2=cE.Me(eG[0].buffer,eG[1].d,eG[1].v)}e.CV.push(E.za(2)+"<image width=\""+eG[1].d+"\" height=\""+eG[1].v+"\" id=\"img"+hE+"\" href=\""+f2+"\"/>")}var ag=s.I.co(dV);
if(J.length!=0)U.push("style=\""+J.join(";")+"\"");var eU=E.hq(U,g);e.qM.push(E.za(Z)+"<use "+eU+" href=\"#img"+hE+"\" transform=\""+E.uC(ag)+"\"/>")}else if(!a.rect.nK()&&(c.Dy||_)){if(J.length!=0)U.push("style=\""+J.join(";")+"\"");
var eU=E.hq(U,g),iz=a.buffer;if(y)iz=hn.Qo(iz,y,a.rect);var d2=a.rect;e.dD++;var f2=cE.Me(iz.buffer,d2.d,d2.v,"png",null,!0);
e.CV.push(E.za(2)+"<image width=\""+a.rect.d+"\" height=\""+a.rect.v+"\" id=\"img"+e.dD+"\" href=\""+f2+"\"/>");
e.qM.push(E.za(Z)+"<use "+eU+" href=\"#img"+e.dD+"\" x=\""+d2.x+"\" y=\""+d2.y+"\" />")}}};a0.hq=function(h,e){if(e.length!=0)h.push("class=\""+e.join(" ")+"\"");
return h.join(" ")};a0.zm=function(h){return String(h).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u0022/g,"&quot;")};
a0.uC=function(h){var e=[h.R,h.O,h.Ma,h.rU,h.zq,h.nL].map(a0.$0);return"matrix("+e.join(",")+")"};a0.NZ=function(h,e,$,Z){var c=a0,q=e.vstk,E=e.vmsk,P=e.lmfx;
if(E&&E.gE!=0){var a=c.$0(E.gE);if($.Kj[a]==null){$.vh++;$.Kj[a]=$.vh;$.CV.push(c.za(2)+"<filter x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\" id=\"flt"+$.vh+"\"> <feGaussianBlur stdDeviation=\""+a+"\" /> </filter>")}h.push("filter: url(#flt"+$.Kj[a]+")")}var j=hn.Ef(P,e),L=j[0],H=j[1];
if(q&&!q.fillEnabled.v)h.push("fill: none");else if(L){var _=CSS.PU(L.Clr.v);h.push("fill: "+_)}else if(H){c.Cd(H,$,Z);
h.push("fill: url(#grd"+$.l$+")")}if(q==null||!q.strokeEnabled.v)q=hn.tX(P);if(q&&q.strokeEnabled.v){var J=q.strokeStyleContent.v,S=J.classID;
if(S=="solidColorLayer")h.push("stroke: "+CSS.PU(J.Clr.v));else{c.Cd(J,$,Z);h.push("stroke: url(#grd"+$.l$+")")}var N=c3.oF.kS.indexOf(q.strokeStyleLineCapType.v.strokeStyleLineCapType),Y=c3.oF.join.indexOf(q.strokeStyleLineJoinType.v.strokeStyleLineJoinType),U=q.strokeStyleOpacity.v.val/100,g=q.strokeStyleLineWidth.v.val,M=c3.oF.ws.indexOf(q.strokeStyleLineAlignment.v.strokeStyleLineAlignment);
if(M==2){g*=2;h.push("paint-order:stroke fill markers")}var C=q.strokeStyleLineDashSet.v,y=[];for(var G=0;
G<C.length;G++)y.push(Math.round(C[G].v.val*g));if(N!=0)h.push("stroke-linecap:"+["butt","round","square"][N]);
if(Y!=0)h.push("stroke-linejoin:"+["miter","round","bevel"][Y]);if(U!=1)h.push("stroke-opacity:"+c.$0(U));
if(g!=1)h.push("stroke-width: "+c.$0(g));if(y.length!=0)h.push("stroke-dasharray: "+y.join(","))}};a0.Cd=function(h,e,$){e.l$++;
var Z=a0,c=h.Grad.v,q=c.Clrs.v.slice(0),E=c.Trns.v.slice(0),P=h.Ofst.v,a=h.Type.v.GrdT=="Rdl"?1:0,j=(a==1?"radial":"linear")+"Gradient",L=s.Y.po(h,$);
if(a==0){L[0].x=L[1].x+2*(L[0].x-L[1].x);L[0].y=L[1].y+2*(L[0].y-L[1].y)}var H=Z.za(2)+"<"+j+" id=\"grd"+e.l$+"\" gradientUnits=\"userSpaceOnUse\" ";
if(a==0)e.CV.push(H+" x1=\""+Z.$0(L[0].x)+"\" y1=\""+Z.$0(L[0].y)+"\" x2=\""+Z.$0(L[1].x)+"\" y2=\""+Z.$0(L[1].y)+"\">");
if(a==1)e.CV.push(H+" cx=\""+Z.$0(L[0].x)+"\" cy=\""+Z.$0(L[0].y)+"\" r=\""+Z.$0(eu.nj(L[0],L[1]))+"\">");
var _=h.Rvrs.v;if(_){q.reverse();E.reverse()}for(var G=0;G<q.length;G++){var J=q[G].v,S=G<E.length?E[G].v.Opct.v.val/100:1,S=S==1?"":"stop-opacity=\""+Z.$0(S)+"\"",N=J.Lctn.v/4096;
if(_)N=1-N;e.CV.push(Z.za(3)+"<stop offset=\""+Z.$0(N)+"\" stop-color=\""+CSS.PU(J.Clr.v)+"\" "+S+" />")}e.CV.push(Z.za(2)+"</"+j+">")};
a0.d5=function(h,e,$,Z,c){var q=[],E=a0.d5,P=!1,a={EN:h,CD:e,mc:[!0,!0,!0],rn:!1,ZW:$,ad7:0};a.bQ=Math.round(Math.max(h,e)*(.02+E.Dg(a)*.03));
a.a0=E.aaa(a);a.fL=E.aeJ(a.a0,(E.Dg(a)<.5?-1:1)*(.2+E.Dg(a)*.3));if(E.Dg(a)<.5){var j=a.a0;a.a0=a.fL;
a.fL=j}a.a4S=E.Dg(a)<.4&&E.a0y(a.fL,{h:1,l:1,O:1})>.3;a.age=E.Dg(a)<.5?0:1;q.push("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 "+h+" "+e+"\" width=\""+h+"\" height=\""+e+"\">");
a.z$=Z[Math.floor(E.J_(a)*Z.length)];a.wp=Z[Math.floor(E.J_(a)*Z.length)];q.push("<style>");q.push("@font-face {  font-family: "+a.z$[2]+";  src: url(rsrc/fonts/"+a.z$[5]+");  }");
q.push("@font-face {  font-family: "+a.wp[2]+";  src: url(rsrc/fonts/"+a.wp[5]+");  }");q.push("</style>");
var L=[0,0,h,e],H=L;if(c==null)q.push("<path style=\"fill: "+E.Fv(a.a0)+"\" d=\""+E.Rect(L[0],L[1],L[2]-L[0],L[3]-L[1])+"\" id=\"Background\" />");
else{a.rn=!0;E.FP(a,L,q,c)}if(E.Dg(a)<.25&&!a.rn){a.mc[0]=a.mc[2]=!1;E.a34(L,a,q);H=L}else if(E.Dg(a)<.25||a.rn)H=L;
else{var _=.52+E.Dg(a)*.2;if(E.Dg(a)<.5)_=1-_;var J=L.slice(0),S=L.slice(0);if(E.Dg(a)<.5)J[2]=S[0]=Math.round(_*h);
else J[3]=S[1]=Math.round(_*e);if(E.Dg(a)<.5){var j=J;J=S;S=j}H=J;E.alD(a,S,q,c)}E.a5$(a,H,q);q.push("</svg>");
q=q.join("\n");var N=s.m(Math.round(q.length*1.5)),Y=k.Gn(q,N,0);return[N.buffer.slice(0,Y),a.bj]};a0.d5.a34=function(h,e,$){var Z=a0.d5,c=h[2]-h[0],q=h[3]-h[1];
if(Z.Dg(e)<.5){$.push("<path id=\"Border\" style=\"fill: "+Z.Fv(e.fL)+"\" d=\""+Z.ahh(h[0],h[1],h[2]-h[0],h[3]-h[1],e.bQ)+"\" />")}else if(Z.Dg(e)<-.4){Z.agw(e,h,$)}else{var E=Z.Dg(e)<.5?0:1,P=(E==0?q:c)/4,a=Z.oU(e,E,h,$,P,!0),a=Z.oU(e,E+2,h,$,P,!0,a)}};
a0.d5.a5$=function(h,e,$){var Z=a0.d5,c="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("-"),q=2*Math.floor(Z.Dg(h)*c.length/2),E=e[2]-e[0],P=e[3]-e[1],j=0,H=0;
h.nC=(h.EN+E)*.5*(.04+Z.Dg(h)*.05);h.nC=Math.min(h.nC,P*.4,E*.12);h.nC=Math.round(h.nC);var a=Math.min(h.nC*c[q].length*(.35+.3*Z.Dg(h)),E*.9),L=(e[1]+e[3])/2,_=s.GE(h.a0)<.85?{h:1,l:1,O:1}:{h:.1,l:.1,O:.1};
if(Z.Dg(h)<.25&&h.mc[0]){H=0;j=e[0]+h.bQ}else if(Z.Dg(h)<.33&&h.mc[2]){H=2;j=e[2]-h.bQ}else{H=1;j=(e[0]+e[2])/2}var J=_.h==1?"0,0,0":"255,255,255",S=h.rn&&Z.Dg(h)<1;
if(S){var N=e[0],Y=E,U=L-h.nC*1.1,g=h.nC*2.2,M=.7;if(H==1&&Z.Dg(h)<.5){N=U=.2*Math.min(E,P);Y=E-2*U;
g=P-U-U}else if(Z.Dg(h)<.7){N=U=0;Y=E;g=P;M=.25}$.push("<path id=\"Strip\" style=\"fill: rgb("+J+"); opacity: "+M+"\" d=\""+Z.Rect(N,U,Y,g)+"\" />")}if(Z.Dg(h)<.4){var C=h.nC*.07;
C*=1.5+Z.Dg(h)*1;if(H==-1&&E/P<3&&!S){$.push("<path id=\"Bar-bottom\" style=\"fill: "+Z.Fv(_)+"\" d=\""+Z.Rect(j-a/2,L+h.nC*1.1-C/2,a,C)+"\" />");
$.push("<path id=\"Bar-top\"    style=\"fill: "+Z.Fv(_)+"\" d=\""+Z.Rect(j-a/2,L-h.nC*1.1-C/2,a,C)+"\" />")}if(H!=1){$.push("<path id=\"Bar\" style=\"fill: "+Z.Fv(_)+"\" d=\""+Z.Rect(j-C/2,L-h.nC*.8,C,h.nC*.8*2)+"\" />");
j+=(H==0?1:-1)*h.nC/3}}var y=h.nC*.4;$.push(Z.qX(c[q+1],j,L+y*1.6,y,_,H,h.wp));$.push(Z.qX(c[q],j,L+h.nC*.04,h.nC,_,H,h.z$))};
a0.d5.alD=function(h,e,$,Z){var c=e[2]-e[0],q=e[3]-e[1],E=Math.max(c,q),P=Math.min(c,q),a=a0.d5;if(E/P<5&&!h.rn&&!1){a.FP(h,e,$,Z)}else if(a.Dg(h)<0)$.push("<path style=\"fill: "+a.Fv(h.fL)+"\" d=\""+a.Rect(e[0],e[1],c,q)+"\" />");
else{var j=0;if(e[3]!=h.CD)j=0;if(e[2]!=h.EN)j=3;if(e[0]!=0)j=1;if(e[1]!=0)j=2;var L=j+2&3;if(E/P<3){var H=a.a2x(L),_=H[Math.round(a.Dg(h)*(H.length-1))],J=_.A3.slice(0,4),S=J.indexOf(1);
_=JSON.parse(JSON.stringify(_));var N=-1;if(J!="0000"){var Y=new i7;if(_.A3[5]=="0"){if(S==3&&j==1){N=1;
Y.scale(-1,1)}else N=S}else{var U=L;while(U==L)U=Math.floor(a.Dg(h)*4)&3;Y.rotate((-S+U)*Math.PI/2)}a.J(_,Y)}var g=a.Be(_),M=c-2*h.bQ,C=q-2*h.bQ;
if(N!=-1){if((N&1)==0)C-=h.bQ;else M-=h.bQ}var y=Math.min(M/g.d,C/g.v),i=new i7;i.translate(-g.x,-g.y);
i.scale(y,y);var Q=(c-g.d*y)/2,m=(q-g.v*y)/2;if(N!=-1){if(N==3)Q=0;if(N==0)m=0;if(N==1)Q=c-g.d*y;if(N==2)m=q-g.v*y}i.translate(e[0]+Q,e[1]+m);
a.vA(h,_,i,h.fL,$)}else{a.oU(h,j,e,$,1e9)}}};a0.d5.FP=function(h,e,$,Z){var c=e[2]-e[0],q=e[3]-e[1],E=Math.max(c,q),P=Math.min(c,q),a=a0.d5,j=a.J_(h),L,H,_,J=Z[0]instanceof ArrayBuffer;
if(J){L="data:image/jpg;base64,"+co.vo(Z[0]);H=Z[1];_=Z[2]}else{var S=Math.floor(j*Z.length),N=Z[S];
h.bj=N;L=N.webformatURL;H=N.webformatWidth;_=N.webformatHeight}var Y=e[0],U=e[1],g=c,M=q;if(c/q>H/_){M=g*_/H;
U=U-(M-q)/2}else{g=M*H/_;Y=Y-(g-c)/2}if(J){$.push("<defs>");$.push("<image width=\""+H+"\" height=\""+_+"\" id=\"Background\" href=\""+L+"\" />");
$.push("</defs>");var C=g/H;$.push("<use href=\"#Background\" transform=\""+a0.uC(new i7(C,0,0,C,Y,U))+"\" />")}else{var y="cp"+Math.random();
$.push("<clipPath id=\""+y+"\">");$.push("<path style=\"fill: "+a.Fv(h.fL)+"\" d=\""+a.Rect(e[0],e[1],c,q)+"\" />");
$.push("</clipPath>");$.push("<image  clip-path=\"url(#"+y+")\" xlink:href=\""+L+"\" x=\""+Y+"\" y=\""+U+"\" width=\""+g+"\" height=\""+M+"\" />")}};
a0.d5.qX=function(h,e,$,Z,c,q,E){var P=a0.d5;return"<text x=\""+e+"\" y=\""+$+"\" style=\"fill:"+P.Fv(c)+"; font-size:"+Z+"px; text-anchor:"+["start","middle","end"][q]+"; font-family:"+E[2]+";\"><tspan>"+h+"</tspan></text>"};
a0.d5.vA=function(h,e,$,Z,c){var q=a0.d5,E=[];for(var G=0;G<e.v9.length;G++){E.push(Z);if(h.a4S){Z=(G&1)==h.age?{h:1,l:1,O:1}:E[0]}}c.push("<g id=\""+e.A3.split("-")[2]+":::\" style=\"transform: "+a0.uC($)+";\" >");
for(var G=0;G<e.v9.length;G++){var P=e.v9[G];Z=E.pop();c.push("<path style=\"fill: "+(Z?q.Fv(Z):"#"+P[0])+"\" d=\""+Typr.U.pathToSVG({crds:P[1].H,cmds:P[1].Z})+"\" />")}c.push("</g>")};
a0.d5.agw=function(h,e,$){var Z=a0.d5,c=a0.d5.Oe,q=[];for(var G=0;G<c.length;G++){var E=c[G],P=E.A3.slice(0,4);
if(P!="1001")continue;q.push(E)}var E=q[Math.floor(Z.Dg(h)*q.length)];if(Z.Dg(h)<.5)Z.J(E,new i7(0,1,1,0,0,0));
var a=e[3]-e[1],j=e[2]-e[0],L=Z.Be(E),H=.7*Math.min(j,a,.5*Math.max(j,a))/Math.max(L.d,L.v),_=new i7;
_.scale(H,H);if(Z.Dg(h)<.5){_.scale(1,-1);_.translate(0,a)}Z.vA(h,E,_,h.fL,$);_.rotate(Math.PI);_.translate(j,a);
Z.vA(h,E,_,h.fL,$)};a0.d5.a2x=function(h){var e=a0.d5.Oe,$=[];for(var G=0;G<e.length;G++){var Z=e[G],c=Z.A3.slice(0,4);
if(c=="0000"){$.push(Z);continue}if(["1000","0100","0010","0001"].indexOf(c)==-1)continue;var q=c.indexOf("1");
if(Z.A3[5]=="0"&&h==q&&q!=3)continue;$.push(Z)}return $};a0.d5.oU=function(h,e,$,Z,c,q,E){var P=a0.d5.Oe,a=a0.d5,j=[],g,M;
for(var G=0;G<P.length;G++){var L=P[G],H=L.A3.slice(0,4);if(["1110","1101","1011","0111"].indexOf(H)==-1)continue;
var _=H.indexOf("0")+2&3;if(L.A3[5]=="0")if(q==!0||e!=_&&!(e==1&&_==3))continue;j.push(L)}var J=E!=null?E:Math.floor(a.Dg(h)*j.length),L=j[J],L=JSON.parse(JSON.stringify(L)),H=L.A3.slice(0,4),_=H.indexOf("0")+2&3;
if(_==3&&e==1)s.J(L,new i7(1,0,0,-1,0,1e3));var S=new i7;S.translate(-500,-500);S.rotate(-_*Math.PI/2);
S.translate(500,500);a.J(L,S);var N=$[3]-$[1],Y=$[2]-$[0],U=a.Be(L);if(U.y<0){U.v+=U.y;U.y=0}if(U.y>0){U.v+=U.y;
U.y=0}if((e&1)==0){M=N;g=Y}else{g=N;M=Y}var C=Math.min(Math.min(.5+.5*a.Dg(h))*Math.min(Y,N),c)/U.v,y=Math.ceil(g/(1e3*C)),i=new i7,Q=new i7;
Q.scale(C,C);if(e==0||e==2){Q.translate(-(Y/2),-(N/2));Q.rotate(-e*Math.PI/2);Q.translate(Y/2+$[0],N/2+$[1])}else{Q.rotate(Math.PI/2);
Q.scale(1,-1);Q.translate($[0],$[1]);if(e==1){Q.scale(-1,1);Q.translate(Y,0)}}Z.push("<g id=\"Border-"+["top","right","bottom","left"][e]+":::\">");
for(var G=0;G<y;G++){var m=i.clone();m.concat(Q);a.vA(h,L,m,h.fL,Z);i.translate(1e3-2,0)}Z.push("</g>");
return J};a0.d5.Rect=function(h,e,$,Z){return Typr.U.pathToSVG({crds:[h,e,h+$,e,h+$,e+Z,h,e+Z],cmds:["M","L","L","L","Z"]})};
a0.d5.ahh=function(h,e,$,Z,c){var q=[h,e,h+$,e,h+$,e+Z,h,e+Z];h+=c;e+=c;$-=2*c;Z-=2*c;q.push(h,e,h,e+Z,h+$,e+Z,h+$,e);
return Typr.U.pathToSVG({crds:q,cmds:"M L L L Z M L L L Z".split(" ")})};a0.d5.aeJ=function(h,e){var $=s.fe(h.h,h.l,h.O);
$.a9=Math.max(.1,Math.min(.9,$.a9+e));return s.lR($.CD,$.Zp,$.a9)};a0.d5.aeC=function(h,e){var $=s.fe(h.h,h.l,h.O);
$.CD+=e;return s.lR($.CD,$.Zp,$.a9)};a0.d5.amc=function(h){var e=s.fe(h.h,h.l,h.O);e.a9=1-e.a9;return s.lR(e.CD,e.Zp,e.a9)};
a0.d5.a0y=function(h,e){var $=h.h-e.h,Z=h.l-e.l,c=h.O-e.O;return Math.sqrt($*$+Z*Z+c*c)};a0.d5.aaa=function(h){var e=a0.d5;
return{h:e.Dg(h),l:e.Dg(h),O:e.Dg(h)}};a0.d5.Fv=function(h){return CSS.iP({h:h.h*255,l:h.l*255,O:h.O*255})};
a0.d5.Be=function(h){var e=h.v9,$=new O;for(var G=0;G<e.length;G++)$=$.iJ(s.a.Be(e[G][1].H));return $};
a0.d5.J=function(h,e){var $=h.v9;for(var G=0;G<$.length;G++)s.a.J($[G][1].H,e,$[G][1].H)};a0.d5.Dg=function(h){h.ad7++;
var e=h.ad7&3;if(e==0)h.ZW=a0.d5.Ms(h.ZW);var $=h.ZW>>>8*e&255;return $*(.99999999/255)};a0.d5.J_=function(h){var e=a0.d5.Ms(h.ZW);
h.ZW=a0.d5.Ms(e);return e*(1/4294967295)};a0.d5.Ms=function(h){h=(h^61^h>>>16)>>>0;h=h+(h<<3)>>>0;h=(h^h>>>4)>>>0;
h=h*668265261>>>0;h=(h^h>>>15)>>>0;return h};a0.d5.Oe=[{A3:"0001-0-bird",v9:[["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(" "),H:[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(" "),H:[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(" "),H:[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]}]]},{A3:"0001-0-bird2",v9:[["ff7f2a",{Z:"M L L L Z M L L L Z".split(" "),H:[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(" "),H:[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(" "),H:[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(" "),H:[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(" "),H:[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(" "),H:[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]}]]},{A3:"0000-1-flower",v9:[["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(" "),H:[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]}]]},{A3:"0000-1-flower",v9:[["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(" "),H:[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]}]]},{A3:"0000-1-flower",v9:[["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(" "),H:[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]}]]},{A3:"0000-1-flower",v9:[["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(" "),H:[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]}]]},{A3:"0000-1-flower",v9:[["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(" "),H:[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(" "),H:[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]}]]},{A3:"0000-0-hearts",v9:[["d17070",{Z:"M C C C C C C C C C L Z".split(" "),H:[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(" "),H:[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(" "),H:[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]}]]},{A3:"0000-0-anchor",v9:[["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(" "),H:[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]}]]},{A3:"0000-1-leaf",v9:[["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(" "),H:[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]}]]},{A3:"0000-1-acorn",v9:[["a05a2c",{Z:"M C C C C C C C L Z".split(" "),H:[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(" "),H:[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]}]]},{A3:"0000-0-skull",v9:[["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(" "),H:[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]}]]},{A3:"0000-0-ghost",v9:[["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(" "),H:[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(" "),H:[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]}]]},{A3:"1001-1-rose",v9:[["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(" "),H:[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(" "),H:[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]}]]},{A3:"1001-1-curls",v9:[["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(" "),H:[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(" "),H:[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]}]]},{A3:"0111-0-pines",v9:[["e9e9e9",{Z:"M C C C C C C C C L L L Z".split(" "),H:[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(" "),H:[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]}]]},{A3:"0111-0-flowers",v9:[["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(" "),H:[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(" "),H:[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]}]]},{A3:"1101-1-confetti",v9:[["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(" "),H:[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(" "),H:[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]}]]},{A3:"1101-1-branch",v9:[["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(" "),H:[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(" "),H:[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]}]]},{A3:"1101-1-sticks",v9:[["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(" "),H:[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(" "),H:[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]}]]},{A3:"1101-1-dots",v9:[["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(" "),H:[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(" "),H:[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"],H:[389,224,389,224,410,230,410,230,410,230,389,224,389,224]}]]},{A3:"1101-1-strips",v9:[["ffc88c",{Z:"M L L L L Z M L L L L Z M L L L L Z".split(" "),H:[-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(" "),H:[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"],H:[407,217,407,217,428,223,428,223,428,223,407,217,407,217]}]]},{A3:"1101-1-circs",v9:[["ec7272",{Z:"M C C C C Z M C C C C Z".split(" "),H:[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(" "),H:[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"],H:[530,273,530,273,551,279,551,279,551,279,530,273,530,273]}]]},{A3:"1101-1-squares",v9:[["014ea7",{Z:"M L L L L Z M L L L L Z".split(" "),H:[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(" "),H:[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"],H:[389,354,389,354,410,360,410,360,410,360,389,354,389,354]}]]},{A3:"1101-0-christmas",v9:[["014ea7",{Z:"M C C C C Z M C C C C Z M L L L L Z".split(" "),H:[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(" "),H:[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 gt={};gt.parse=function(h){var e=new Uint8Array(h),$=null;if(e[0]==80&&e[1]==75){var Z=Date.now(),c=UZIP.parse(e.buffer),$=c["document.json"];
$=JSON.parse(k.rM($,0,$.length));gt.cq($,c)}else{var q=ab.parse(h);$=gt.eo(q[2][0][1])}return $};gt.cq=function(h,e){var $=typeof h;
if($=="string"||$=="number"||$=="boolean")return h;if(h instanceof Array){for(var G=0;G<h.length;G++)h[G]=gt.cq(h[G],e);
return h}var Z=h._class;if(Z==null)return h;if(Z=="MSJSONFileReference"){var c=h._ref;if(!1){}else if(e[c+".json"]!=null){var q=e[c+".json"],E=q.length;
for(var G=0;G<E;G++)if(q[G]==11||q[G]==3)q[G]=32;var P=k.rM(q,0,E);h=JSON.parse(P)}else if(e[c+".png"]!=null)return{key:c.split("/").pop(),bdata:e[c+".png"]};
else if(e[c+".jpg"]!=null)return{key:c.split("/").pop(),bdata:e[c+".jpg"]};else if(e[c+".pdf"]!=null)return{key:c.split("/").pop(),bdata:e[c+".pdf"]};
else if(e[c]!=null)return{key:c.split("/").pop(),bdata:e[c]};else{console.log(h,e);return}}else if(Z=="MSAttributedString"){var P=atob(h.archivedAttributedString._archive),a=P.length-1,j=new Uint8Array(a);
for(var G=0;G<a;G++)j[G]=P.charCodeAt(G);h.archivedAttributedString=gt.eo(j)}for(var L in h)h[L]=gt.cq(h[L],e);
return h};gt.CT=function(h,e,$,Z){if(h instanceof Uint8Array)return null;if(Z.indexOf(h)!=-1)return null;
Z.push(h);if(h==e)return $;for(var c in h){$.push(c);var q=gt.CT(h[c],e,$,Z);if(q){console.log(h,q);
throw"e"}$.pop()}};gt.eo=function(h){var e=iJ.parse(h,0),$=e.$objects,Z=new Uint8Array($.length),c=gt.Ii($,Z,e.$top.root);
for(var G=0;G<$.length;G++)if(Z[G]==0&&G!=0){console.log(G,$[G]);gt.CT(c,G,[],[])}for(var G=0;G<$.length;
G++){var q=$[G];if(q._class&&(q._class=="bitmap"||q._class=="fill"&&q.fillType==4&&(q.image||q.imageSHA))){var E=q.image,P=q.imageSHA,a=null,j=null;
if(E=="$null")E=null;if(P=="$null")P=null;if(E&&E.data){j=E.sha1["NS.bytes"];j=btoa(k.dd(j,0,j.length));
a=E.data instanceof Uint8Array?E.data:E.data["NS.bytes"]}else if(E==null&&P==null){var L=cE.fy("PNG").pT([[s.m(4).buffer]],1,1);
a=new Uint8Array(L)}else{var H=(c.assets?c.assets.imageCollection:c.images).images;if(P)j=P instanceof Uint8Array?P:P["NS.bytes"];
else j=E.sha1["NS.bytes"];j=btoa(k.dd(j,0,j.length));var a=H[j].data;if(a["NS.bytes"])a=a["NS.bytes"]}a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+a.length));
delete q.imageSHA;q.image={key:j,bdata:a}}}return c};gt.aoc=function(h){return h.slice(0,11)=="MSImmutable"?"MS"+h.slice(11):h};
gt.Ii=function(h,e,$){var Z=h[$];if(e[$]==1){return Z}e[$]=1;if(typeof Z=="string")return Z;if(typeof Z=="number")return Z;
if(typeof Z=="boolean")return Z;if(Z instanceof Array)return Z;if(Z instanceof Uint8Array){return Z}if(h[Z.$class]==null){if(Z.$class==null&&Z["NS.data"]!=null)return Z;
console.log($,Z);throw"e"}var c=h[Z.$class],q=gt.aoc(c.$classname);e[Z.$class]=1;Z.$class=q;if(gt.PT[q]){delete Z.$class;
Z._class=gt.PT[q]}var E=gt.Ii;if(q=="NSMutableArray"||q=="NSArray"){var P=[];if(Z["NS.objects"]!=null)for(var G=0;
G<Z["NS.objects"].length;G++)P.push(E(h,e,Z["NS.objects"][G]));else for(var G=0;Z["NS.object."+G]!=null;
G++)P.push(E(h,e,Z["NS.object."+G]));h[$]=P;return P}if(q=="NSDictionary"||q=="NSMutableDictionary"){var a={$class:q};
if(Z["NS.keys"]!=null)for(var G=0;G<Z["NS.keys"].length;G++){var j=E(h,e,Z["NS.keys"][G]);if(j instanceof Uint8Array)j=btoa(gt.pi.dd(j,0,j.length));
else if(typeof j!="string"&&typeof j!="number")j=btoa(gt.pi.dd(j["NS.bytes"],0,j["NS.bytes"].length));
a[j]=E(h,e,Z["NS.objects"][G])}else for(var G=0;Z["NS.key."+G]!=null;G++){var j=E(h,e,Z["NS.key."+G]);
if(j instanceof Uint8Array)j=btoa(gt.pi.dd(j,0,j.length));else if(typeof j!="string"&&typeof j!="number")j=btoa(gt.pi.dd(j["NS.bytes"],0,j["NS.bytes"].length));
a[j]=E(h,e,Z["NS.object."+G])}for(var L in Z)delete Z[L];for(var L in a)Z[L]=a[L];return Z}if(q=="NSURL")return{$class:q,base:E(h,e,Z["NS.base"]),relative:E(h,e,Z["NS.relative"])};
if(gt.aeO.indexOf(q)!=-1){h[$]=E(h,e,Z.array_do);return h[$]}if(Z.do_objectID!=null)Z.do_objectID=E(h,e,Z.do_objectID);
if(gt.anF.indexOf(q)!=-1)return Z;var H=gt.adn[q];if(H==null){console.log(h,Z);throw"unknown class "+q}for(var G=0;
G<H.length;G++)if(Z[H[G]]!=null)Z[H[G]]=E(h,e,Z[H[G]]);if(q=="MSTextLayer"){var _=Z,J,S,N,Y;if(_.attributedString)J=_.attributedString.archivedAttributedString;
else J=_.storage;Y=J.NSString;if(typeof Y!="string")Y=k.rM(Y["NS.bytes"],0,Y["NS.bytes"].length);if(J.NSAttributeInfo)S=J.NSAttributeInfo["NS.bytes"];
else{var U=Y.length,g=[];while(U>0){var M=Math.min(100,U);g.push(M,0);U-=M}S=new Uint8Array(g)}N=J.NSAttributes instanceof Array?J.NSAttributes:[J.NSAttributes];
var C={$class:"NSAttributedString",NSString:Y,NSAttributes:N};_.attributedString={_class:"MSAttributedString",archivedAttributedString:C};
C.NSAttributeInfo={$class:"NSMutableData","NS.data":S};delete _.storage}return Z};gt.pi={oO:function(h,e){return h[e+1]<<8|h[e]},n:function(h,e){return h[e+3]<<24|h[e+2]<<16|h[e+1]<<8|h[e]},dd:function(h,e,$){var Z="";
for(var G=0;G<$;G++)Z+=String.fromCharCode(h[e+G]);return Z}};gt.PT={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"};
gt.aeO=["MSArray","MSFillStyleCollection","MSBorderStyleCollection","MSShadowStyleCollection","MSInnerShadowStyleCollection"];
gt.anF="MSArchivedColor MSLayoutGrid MSSimpleGrid MSColor MSRect MSStyleColorControls MSGraphicsContextSettings NSMutableString NSMutableData NSDecimalNumberPlaceholder MSStyleReflection".split(" ");
gt.adn={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 iJ={};iJ.parse=function(h,e){var $=k.dd(h,e,8);e+=8;var Z=iJ.parse.amn(h,h.length-31),c=[];if(Z.ZR==1){var e=h.length-31-Z.ZR*Z.rA;
for(var G=0;G<Z.rA;G++)c.push(h[e+G])}else if(Z.ZR==2){var e=h.length-31-Z.ZR*Z.rA;for(var G=0;G<Z.rA;
G++)c.push(k.oO(h,e+G*2))}else if(Z.ZR==4){var e=h.length-31-Z.ZR*Z.rA;for(var G=0;G<Z.rA;G++)c.push(k.n(h,e+G*4))}else{throw"e"}var q=iJ.parse.Ii(h,c,Z.root,Z);
return q};iJ.parse.Ii=function(h,e,$,Z){var c=iJ.pi,q=Z.akS,E=q==4?c.n:q==2?c.oO:c.akW,P=iJ.parse,a=e[$],j=h[a],L=j>>4,H=j&15,J=null;
a+=1;if([4,5,6,10,12,13].indexOf(L)!=-1&&H==15){var _=P.hY(h,a);a+=_.NX;H=_.G}if(!1){}else if(L==0)J=H==8?!1:H==9?!0:null;
else if(L==1)J=P.hY(h,a-1).G;else if(L==2)J=1<<H==4?k.tk(h,a):k.bq(h,a);else if(L==3)J=k.bq(h,a);else if(L==4)J=new Uint8Array(h.buffer,a,H);
else if(L==5)J=k.dd(h,a,H);else if(L==6)J=k.M2(h,a,H);else if(L==8){J=0;for(var G=0;G<H+1;G++)J=J<<8|h[a+G]}else if(L==10){J=[];
for(var G=0;G<H;G++)J.push(P.Ii(h,e,E(h,a+q*G),Z))}else if(L==12){J=[];for(var G=0;G<H;G++)J.push(P.Ii(h,e,E(h,a+q*G),Z))}else if(L==13){J={};
for(var G=0;G<H;G++){var S=P.Ii(h,e,E(h,a+q*G),Z),N=P.Ii(h,e,E(h,a+q*(H+G)),Z);J[S]=N}}else throw"unknown mask "+L;
return J};iJ.parse.hY=function(h,e){var $=1<<(h[e]&15),Z=0;for(var G=0;G<$;G++)Z=Z<<8|h[e+1+G];return{G:Z,NX:$+1}};
iJ.parse.amn=function(h,e){var $={};e+=6;$.ZR=h[e];e++;$.akS=h[e];e++;e+=4;$.rA=k.n(h,e);e+=4;e+=4;$.root=k.n(h,e);
e+=4;e+=4;$.a9k=k.n(h,e);e+=4;return $};iJ.pi={akW:function(h,e){return h[e]},oO:function(h,e){return h[e]<<8|h[e+1]},n:function(h,e){return h[e]<<24|h[e+1]<<16|h[e+2]<<8|h[e+3]},dd:function(h,e,$){var Z="";
for(var G=0;G<$;G++)Z+=String.fromCharCode(h[e+G]);return Z}};var ab={parse:function(h){var e=new Uint8Array(h),$=ab.xd(e),Z=[],c=new Uint8Array(e.length),q=[];
Z.push(q);ab.CU(e,$,1,c,q);for(var G=0;G<q.length;G++){var E=[];Z.push(E);ab.CU(e,$,q[G][3],c,E);q[G][3]=G+1}return Z},CU:function(h,e,$,Z,c){$--;
var q=$*e.N$+($==0?100:0),E=h[q],P=ab.oO(h,q+1);if(P!=0)throw"free block in a page";var a=ab.oO(h,q+3),j=ab.oO(h,q+5);
if(j==0)j=65536;var L=h[q+7],H=ab.oO(h,q+8);if(E==2||E==5)q+=4;else H=0;for(var _=0;_<a;_++){var J=$*e.N$+ab.oO(h,q+8+2*_),S=-1,N=0,Y=0,U=0;
if(E==2||E==5){S=ab.n(h,J);J+=4}if(E==2||E==10||E==13){N=ab.lh(h,J);J+=N.NX}if(E==5||E==13){Y=ab.lh(h,J);
J+=Y.NX}if(E==5){ab.CU(h,e,S,Z,c);continue}var g=e.N$-($==0?100:0),M=N.o8,C=E==13?g-35:Math.floor((g-12)*64/255)-23,y=Math.floor((g-12)*32/255)-23,i=y+(M-y)%(g-4);
if(M<=C){ab.i7(h,J,Z,0,M)}else{var Q=i<=C?i:y,m=0;ab.i7(h,J,Z,0,Q);m+=Q;U=ab.n(h,J+Q);while(U!=0){var n=(U-1)*e.N$;
U=ab.n(h,n);var u=Math.min(e.N$-4,M-m);ab.i7(h,n+4,Z,m,u);m+=u}}c.push(ab.ab7(Z,M))}},ab7:function(h,e){var $=0,Z=ab.lh(h,$);
$+=Z.NX;var c=[],q=[];while($<Z.o8){var E=ab.lh(h,$);$+=E.NX;c.push(E.o8)}if($!=Z.o8)throw"e";for(var G=0;
G<c.length;G++){var E=c[G];if(!1){}else if(E==0)q.push(null);else if(E==1){q.push(ab.a2B(h,$));$+=1}else if(E==2){q.push(ab.nP(h,$));
$+=2}else if(E==3){q.push(ab.a5g(h,$));$+=3}else if(E==4){q.push(ab.hY(h,$));$+=4}else if(E==7){q.push(ab.a4e(h,$));
$+=16}else if(E==8)q.push(0);else if(E==9)q.push(1);else if(E>=12&&(E&1)==0){var P=E-13>>1,a=new Uint8Array(P);
ab.i7(h,$,a,0,P);q.push(a);$+=P}else if(E>=13&&(E&1)==1){var P=E-12>>1;q.push(ab.rM(h,$,P));$+=P}else throw"unknonw type "+E}return q},xd:function(h){if(!(h[18]==1&&h[19]==1&&h[20]==0&&h[21]==64&&h[22]==32&&h[23]==32))throw"unexpected SQL3 header";
var e={wd:ab.dd(h,0,15),N$:ab.oO(h,16),aja:ab.n(h,24),size:ab.n(h,28),ad0:ab.n(h,32),a1m:ab.n(h,36),a6u:ab.n(h,40),ace:ab.n(h,44),ai5:ab.n(h,48),a05:ab.n(h,52),a6t:ab.n(h,56),a6M:ab.n(h,60),abH:ab.n(h,64)!=0,ae0:ab.n(h,68),aof:ab.n(h,92),a9f:ab.n(h,96)};
if(e.N$==1)e.N$=65536;if(e.a6t!=1)throw"unsupported text encoding "+e.a6t;return e},acI:function(h,e){return h[e]<<16|h[e+1]<<8|h[e+2]},a5g:function(h,e){var $=ab.acI(h,e),Z=$&8388608;
return Z?-(16777215-$+1):$},a2B:function(h,e){ab.lW[0]=h[e];return ab.a4g[0]},hY:function(h,e){var $=ab.lW;
for(var G=0;G<4;G++)$[G]=h[e+3-G];return ab.a4O[0]},nP:function(h,e){var $=ab.lW;$[0]=h[e+1];$[1]=h[e];
return ab.al9[0]},oO:function(h,e){return h[e]<<8|h[e+1]},n:function(h,e){return h[e]<<24|h[e+1]<<16|h[e+2]<<8|h[e+3]},a4e:function(h,e){var $=ab.lW;
for(var G=0;G<8;G++)$[G]=h[e+7-G];return ab.afj[0]},lh:function(h,e){var $=e,t=0;while(!0){var Z=h[e];
e++;t=t*128+(Z&127);if(Z<128)break}return{o8:t,NX:e-$}},dd:function(h,e,$){var Z="";for(var G=0;G<$;
G++)Z+=String.fromCharCode(h[e+G]);return Z},rM:function(h,e,$){var Z="";for(var G=0;G<$;G++)Z+="%"+ab.alq(h[e+G].toString(16));
return decodeURIComponent(Z)},i7:function(h,e,$,Z,c){if(h[e+c-1]==null||$[Z+c-1]==null){console.log(e,Z,c);
throw"e"}for(var G=0;G<c;G++)$[Z+G]=h[e+G]},alq:function(t){return t.length<2?"0"+t:t}};ab.lW=new Uint8Array(8);
ab.a4g=new Int8Array(ab.lW.buffer);ab.al9=new Int16Array(ab.lW.buffer);ab.a4O=new Int32Array(ab.lW.buffer);
ab.afj=new Float64Array(ab.lW.buffer);function gY(h,e,$){this.im=h;this.vC=e;this.aho=$;this.gp=new eu(0,0);
this.sy=-1;this.kT=0;this.rI=0;this.uD=new O;this.SH=[];this.Tl=null;this.a54=null;this.nQ=null;this.h9=null;
this.w9=null;this.ah5=null}gY.prototype.StartPage=function(h,e,$,Z,c){var q=this.vC,E=q.rD(),P=1,a=($-h)*(Z-e);
if(c!=null)a=c;while(a*E*E/(P*P)>2*8192*8192)P++;q.scale(1/P,1/P);this.a54=[h,e,$,Z];var P=q.rD();h=Math.round(h*P);
e=Math.round(e*P);$=Math.round($*P);Z=Math.round(Z*P);var j=this.im,L=this.nQ;if(L==null){q.zq=-h}else{var H=L[2]-L[0]+30,_=Math.round($-h)+30;
if(this.gp.x+H+_>8192){q.zq=-h;this.gp.x=0;this.gp.y+=this.rI+120;this.rI=0}else{q.zq+=H;this.gp.x+=H}}q.nL=this.gp.y+(this.aho?Z:-e);
this.rI=Math.max(this.rI,Math.round(Z-e));this.nQ=[h,e,$,Z];j.t.push(j.d_())};gY.prototype.n4=function(){var h=this.im,e=h.t[h.t.length-1];
return e};gY.prototype.DQ=function(){var h=JSON.parse(JSON.stringify(c3.oF.default));h.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter";
h.strokeEnabled.v=!1;h.fillEnabled.v=!1;return h};gY.prototype.be=function(){var h=this.im,e=h.by();
e.aq("Path "+h.t.length);this.im.t.push(e);e.GO|=16;e.add.SoCo={classID:"null",Clr:{t:"Objc",v:s.Y.lp({h:0,l:0,O:0})}};
e.add.vmsk=new o.MM;e.add.vstk=this.DQ();return e};gY.prototype.pN=function(h){var e={H:h.crds,Z:h.cmds},$=s.a.b0(e,!1);
s.W.wD($,this.vC);return $};gY.a6l=function(h,e){for(var G=0;G<h.length;G++)if(h[G].aN!=null)h[G].aN=e};
gY.agX=function(h){return Math.sqrt(Math.abs(h[0]*h[3]-h[1]*h[2]))};gY.xV=function(h){return s.Y.lp({h:h[0]*255,l:h[1]*255,O:h[2]*255})};
gY.iW=function(h){return new i7(h[0],h[1],h[2],h[3],h[4],h[5])};gY.prototype.Stroke=function(h){if(this.sy!=-1&&this.sy!=this.kT)return;
if(h.pth.cmds.length<=1)return;var e=this.pN(h.pth);if(e.length<=2)return;this.to(h);gY.a6l(e,-1);e[2].aN=1;
var $=gY.xV(h.COLR),Z=this.n4(),c=this.DQ();gY.ank(c,h,this.vC.rD(),$);var q=Z!=null&&Z.add.vmsk!=null&&!Z.vG(),E=q&&!Z.add.vstk.strokeEnabled.v&&o.MM.a8v(Z.add.vmsk.b,e,!0),P=q&&!Z.add.vstk.fillEnabled.v&&JSON.stringify(c)==JSON.stringify(Z.add.vstk);
if(P){Z.add.vmsk.b=Z.add.vmsk.b.concat(e.slice(2))}else if(E){Z.add.vstk=c;c.fillEnabled.v=!0}else{Z=this.be();
Z.add.vmsk.b=e;Z.add.vstk=c}};gY.ank=function(h,e,$,Z){h.strokeEnabled.v=!0;h.strokeStyleMiterLimit.v=e.mlimit;
h.strokeStyleLineDashSet.v=hn.bw(e.dash,1/e.lwidth);h.strokeStyleLineDashOffset.v.val=e.doff;h.strokeStyleLineJoinType.v.strokeStyleLineJoinType=c3.oF.join[e.ljoin];
h.strokeStyleLineCapType.v.strokeStyleLineCapType=c3.oF.kS[e.lcap];h.strokeStyleLineWidth.v.val=Math.max(.4,e.lwidth*gY.agX(e.ctm)*$);
h.strokeStyleContent.v.Clr.v=Z};gY.prototype.Fill=function(h,e){if(this.sy!=-1&&this.sy!=this.kT)return;
if(h.ca==0)return;var $=h.pth.cmds;if($.length==0)return;if($.length==2&&JSON.stringify($)=="[\"M\",\"L\"]")return;
var Z=s.a.Be(h.cpth.crds),c=s.a.Be(h.pth.crds);if(c.jx(Z).nK())return;var q=h.pth;if(this.h9==null&&UDOC.G.isBox(q,[c.x,c.y,c.x+c.d,c.y+c.v])&&c.x1(Z)){q=h.cpth}else this.to(h);
var E=this.pN(q),P=s.a.Kf(c);s.a.J(P.H,this.vC,P.H);c=s.a.Be(P.H);var a=gY._V(h.colr,this.vC,c),j=this.n4(),L=j!=null&&j.opacity==Math.round(255*h.ca)&&j.add.vstk!=null&&!j.add.vstk.strokeEnabled.v&&j.add.SoCo&&a.type=="SoFi"&&JSON.stringify(j.add.SoCo.Clr.v)==JSON.stringify(a.G.v.Clr.v);
if(L){var H=!1;for(var G=0;G<E.length;G++){if(E[G].aN==0||E[G].aN==2)H=!0}if(H){var _=s.a.Be(s.W.qs(j.add.vmsk.b)),J=s.a.Be(s.W.qs(E));
L=_.jx(J).nK()}}if(L){var S=j.add.vmsk.b;for(var G=2;G<E.length;G++)S.push(E[G])}else{j=this.be();delete j.add.SoCo;
j.add.vmsk.b=o.MM.rP(E);gY.Tn(h.colr,j,this.vC,c);gY.bp(h,j)}};gY.Tn=function(h,e,$,Z){var c=gY._V(h,$,Z),q=null,E=null;
e.add.vstk.fillEnabled.v=!0;if(c.type=="SoFi"){q="SoCo";E=c3.O7}if(c.type=="GrFl"){q="GdFl";E=c3.bv}if(c.type=="patternFill"){q="PtFl";
E=c3.Tk}if(q!=null){e.add[q]={classID:"null"};for(var G=0;G<E.length;G++){var P=E[G];e.add[q][P]=c.G.v[P]}}};
gY.prototype.to=function(h){var e=this.im,$=h.cpth,Z=$.cmds.join(""),c=$.crds,q=Z+" "+c.join(","),E=UDOC.G.isBox($,this.a54);
if(E&&this.h9==null)return;if(q==this.h9)return;this.$A();if(!E){this.h9=q;e.t.push(e.d_());var P=e.by();
P.aq("Mask");P.add.lsct=hJ.Y7;P.oG="pass";P.GO=24;var a=P.add.vmsk=new o.MM;a.b=this.pN(h.cpth);if(UDOC.G.isBox($)){this.w9=s.W.v4(a.b);
this.w9.P5(3,3)}else this.w9=null;this.ah5=P}};gY.prototype.$A=function(){var h=this.im;if(this.h9!=null){var e=h.t.length-1,G=e,$=!1;
while(G>=0&&h.t[G].add.lsct!=hJ.RS)G--;var Z=this.w9;if(Z){var c=new O,q=e;while(q>G){c=h.t[q].TX(this.im,!1,!0);
q--}$=Z.x1(c)}if($){this.SH.splice(G,1);h.t.splice(G,1)}else{h.t.push(this.ah5)}this.h9=null}};gY._V=function(h,e,$){var Z,c;
if(h.length!=null){Z="SoFi";var q=JSON.parse(c3.kD[c3.order.indexOf("SoFi")]);c={t:"Objc",v:q};c.v.Clr.v=gY.xV(h)}else{var E=gY.adM(h,e,$);
Z="GrFl";c={t:"Objc",v:E}}return{type:Z,G:c}};gY.adM=function(h,e,$){var Z=JSON.parse(c3.kD[c3.order.indexOf("GrFl")]),c=Z.Grad.v;
c.Intr.v=0;var q=gY.iW(h.mat);q.concat(e);var E=new eu(0,0),P=new eu($.d,0),a=h.crds;if(h.typ=="rad"){Z.Type.v.GrdT="Rdl";
var j=.7;E.x=(1-j)*a[0]+j*a[3];E.y=(1-j)*a[1]+j*a[4];P.x=E.x;P.y=E.y;P.x+=Math.max(a[2],a[5])}else{Z.Type.v.GrdT="Lnr";
E.x=a[0];E.y=a[1];P.x=a[2];P.y=a[3];E.x=P.x+.5*(E.x-P.x);E.y=P.y+.5*(E.y-P.y)}E=q.tf(E);P=q.tf(P);s.Y.N9(E,P,$,Z);
var L=h.grad;s.Y.GI(L,c);return Z};gY.prototype.PutText=function(h,e,$,Z){var c=e.charCodeAt(0),_=null;
if(this.sy!=-1&&this.sy!=this.kT)return;if(e.length==0||e.length==1&&(c==0||c==8203))return;this.to(h);
var q=this.im,E=h.font,P=gY.iW(h.ctm);P.concat(this.vC);var a=gY.iW(E.Tm);a.concat(P);var j=f.o.rD(a),L=new i7(1/j,0,0,-1/j,0,0);
L.concat(a);var H=E.Tfs*j;if(E.Th!=100||E.Trise!=0){console.log(E)}var J=q.t.length-1;while(J>=0&&q.t[J].add.TySh==null)J--;
if(L.O*L.O+L.Ma*L.Ma<.001&&Z==null&&J>=0&&q.t[J].add.TySh&&q.t[J].opacity==Math.round(255*h.ca)){var S=q.t[J],N=this.SH[J],Y=S.add.TySh.J,U=(Y.zq+N.W9-L.zq)/H,g=Math.abs(U),M=e.indexOf(" ")==-1,C=Y.R==L.R&&Y.O==L.O&&Y.Ma==L.Ma&&Y.rU==L.rU,y=C&&Math.abs(N.Yw-L.nL)<1e-5&&g<.6,i=L.nL-N.Yw;
if(y){_=S;N.W9=L.zq-Y.zq;if(U>.2&&M&&[".",",","?",":","!"].indexOf(e)==-1)e=" "+e}else if(C&&Math.abs(L.zq-Y.zq)<1e-5&&0<i&&i<H*1.7&&N.agy==H){_=S;
this.lz(N);N.Yw=L.nL;e="\n"+e}}if(_==null){J=q.t.length;this.SH[J]={ti:[],W9:0,Yw:L.nL,DN:"",agy:H};
_=q.by();q.t.push(_);_.add.lnsr="rend";_.add.TySh=gK.Zh(0,0);_.add.TySh.J=L}var N=this.SH[J];N.W9+=$*H;
N.DN+=e;var Q=_.add.TySh.Kx,m=gK.N8(Q);if(Z){gK.gq(Q,1);var n=[0,0,Math.ceil(Z[0]*j),Math.ceil(Z[1]*j)];
gK.IE(Q,n)}var u=m.length-1,K=u+e.length;gK.Ja(Q,u,e);if(this.Tl==null)this.Tl=gK.hT(Q,u,u);var F=this.Tl;
F.By.FontSize=Math.round(H);F.By.Tracking=Math.round(E.Tc*100);F.By.Underline=E.Tun==1;F.By.FillColor={Type:1,Values:[1,h.colr[0],h.colr[1],h.colr[2]]};
if(E.Tal!=null)F.Bp.Justification=E.Tal;if(N.ti.length!=0){F.By.AutoLeading=!1;F.By.Leading=N.Yw-N.ti[N.ti.length-1].y}var b=E.Tf;
b=b.replace(/#2B/g,"+");b=b.replace(/#2C/g,"-");b=b.split("+").pop();var d={"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(d[b])b=d[b];gK.P0(F,b);gK.sq(Q,u,K-1,F);_.SY();_.opacity=Math.round(255*h.ca)};gY.prototype.lz=function(h){h.ti.push({EN:h.W9,A2:h.DN.slice(h.ti.length==0?0:1)+"\n",y:h.Yw,Zp:h.agy});
h.W9=0;h.DN=""};gY.prototype.PutImage=function(h,e,$,Z,c,q,E){if(this.sy!=-1&&this.sy!=this.kT)return;
var P=this.im,a=h.font.Tmode;if(a==7&&P.t[P.t.length-1].add.TySh){return}this.to(h);var j=gY.iW(h.ctm);
j.concat(this.vC);var L=new i7(1/$,0,0,-1/Z,0,1);L.concat(j);j=L;e=gY.re(e,$,Z);if(c)c=gY.re(c,$,Z);
if(c==null){if(e.length==$*Z*4)e=new Uint8Array(cE.fy("PNG").pT([[e.buffer,0]],$,Z))}else{e=this.Vg(e,$,Z,q,!1);
c=this.Vg(c,$,Z,E,!0);var H=s.m($*Z);s.z0(c,H,0);s.Jk(H,e,3);e=new Uint8Array(cE.fy("PNG").pT([[e.buffer,0]],$,Z))}var _=P.L4(e,"Bitmap",0,0),J=_.rect.clone();
J.x=J.y=0;var S=s.a.Kf(J).H;s.a.J(S,j,S);_.add.SoLd.Trnf=f.o.h8(S);_.add.SoLd.nonAffineTransform=f.o.h8(S);
_.l3(P,!1);gY.bp(h,_);P.t.push(_)};gY.bp=function(h,e){e.opacity=Math.round(255*h.ca);var $=gY.MA[h.bmode];
if($==null)console.log("Unknown blend mode",$);else e.oG=$};gY.MA={"/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 "};
gY.I$=function(h){for(var e in gY.MA)if(gY.MA[e]==h)return e};gY.re=function(h,e,$){var Z=cE.B3(h.buffer);
if(Z=="jpg"){try{h=new Uint8Array(cE.fy("JPG").ahQ(h.buffer))}catch(e_){h=new Uint8Array(e*$*4)}}else if(h.length!=e*$*4){var c=new Uint8Array(e*$*4),q=new Uint8Array(Math.ceil(e*$/8));
UTIF.decode._decodeG4(h,0,h.length,q,0,e,1);for(var G=0;G<e*$;G++){var E=G*4,P=(q[G>>3]>>7-(G&7)&1)*255;
c[E]=P;c[E+1]=P;c[E+2]=P;c[E+3]=255}h=c}return h};gY.prototype.Vg=function(h,e,$,Z,c){if(h.length!=e*$*4){var q=cE.B3(h.buffer),E=cE.fy(q);
if(E==null||q=="tga")E=cE.fy("jpg");h=new Uint8Array(E.Cj(h,Z,c)[0].data)}return h};gY.prototype.ShowPage=function(){var h=this.im;
this.kT++;var e=this.nQ;this.$A();var $=h.by();h.t.push($);var Z=new O(Math.round(this.gp.x),Math.round(this.gp.y),Math.round(e[2]-e[0]),Math.round(e[3]-e[1]));
this.uD=this.uD.iJ(Z);$.$O(Z);$.add.artb.artboardBackgroundType.v=3;$.aq("Page "+this.kT);$.add.lsct=hJ.Y7;
$.oG="pass";$.GO=24};gY.prototype.Print=function(h){console.log("Print:",h)};gY.prototype.Done=function(){var h=this.im;
if(this.kT==1)h.t[h.t.length-1].add.lsct=hJ.sE;h.CK(this.kT);for(var G=0;G<h.t.length;G++){var e=h.t[G],$=e.add.vmsk,Z=e.add.TySh,c=this.SH[G];
e.__();if($){var q=!1;for(var E=0;E<$.b.length;E++){var P=$.b[E];if((P.type==0||P.type==3)&&P.length>32767)q=!0}if(q){h.t.splice(G,1);
G--;continue}}e.ZB(h);if(Z&&c.ti.length!=0){this.lz(c);var a=Z.Kx,j=c.ti.length,L=c.ti[0],H=0,_=0;for(var E=0;
E<j;E++)H=Math.max(H,c.ti[E].EN);gK.gq(a,1);Z.J.nL-=L.Zp*.7;gK.IE(a,[0,0,Math.ceil(H*1.1),Math.ceil(c.ti[j-1].y-L.y+L.Zp*2)])}if(Z){var a=Z.Kx;
gK.adx(a);var J=gK.N8(a).split("\n");for(var E=0;E<J.length-1;E++){var S=J[E],N=0;for(var Y=0;Y<S.length;
Y++){var U=S.charCodeAt(Y);if(1473<=U&&U<=1524)N++}if(N>S.length/2){J[E]=S.split("").reverse().join("");
var g=a.EngineDict.ParagraphRun.RunArray[E].ParagraphSheet.Properties;g._Direction=1;g.Justification=gK.Ge(g)}}gK.Ba(a,J.join("\n"))}}h.ms=!0;
h.d=this.uD.d;h.v=this.uD.v;h.buffer=s.m(this.uD.X()*4)};var h7={};h7.A7=function(h,e,$,Z){var c=!1,q=[h.root],E=h.root.children;
if(h.add.artd){c=!0;for(var G=0;G<E.length;G++)if(E[G].$.add.artb==null)c=!1;if(c)q=E}var P=new O(0,0,h.d,h.v),a=e[0];
a=a.replace(/,/g," ").replace(/\-/g," - ").replace(/  +/g," ").trim();a=a.split(" ");var j=[];for(var G=0;
G<a.length;G++){var L=a[G];if(L=="-"){var H=j.pop(),_=parseInt(a[G+1]);while(H<_){j.push(H);H++}}else j.push(parseInt(L))}a=j;
for(var G=0;G<a.length;G++)if(isNaN(a[G])||a[G]<1||a[G]>q.length){a.splice(G,1);G--}var J=72/h.Ay;for(var G=0;
G<q.length;G++){if(a.length!=0&&a.indexOf(G+1)==-1)continue;var S=q[G],N=c?S.$.B2():P,Y=Math.round(N.d*J),U=Math.round(N.v*J);
$.StartPage(0,0,Y,U);var g=UDOC.getState([[0,0,Y,U]]),M=new i7;M.translate(-N.x,-N.y-N.v);M.scale(J,-J);
if(e[2]){var C=h.v2();if(!P.dz(N)){C=s.m(N.X()*4);s.hX(h.v2(),P,C,N)}if(e[1]!=100){var y=cE.fy("JPG").pT([[C.buffer]],N.d,N.v,[e[1]]);
C=new Uint8Array(y)}var i=new i7;i.translate(N.x,N.y);h7._p(g,$,C,N,i,M)}else h7.lF(h,S,g,$,M,e,Z);$.ShowPage()}$.Done()};
h7.Sg=function(h){h=s.Y.LX(h);return[h.h/255,h.l/255,h.O/255]};h7.lF=function(h,e,$,Z,c,q,E){var P=e.$,a=P.add.lsct,j=P.add.lmfx,L=P.add.vmsk,H=P.add.vstk,_=P.add.TySh,Y,U;
if(!P.o6())return;var J=P.opacity/255,S=P.add.iOpa?P.add.iOpa/255:1;$.bmode=gY.I$(P.oG);$.ca=$.CA=J*S;
var N=j;if(N)N=N.solidFillMulti.v[0];if(N)N=N.v;if(N&&!N.enab.v)N=null;if(P.xJ()&&!P.vG()){Y=s.m(P.rect.X());
s.z0(P.buffer,Y,3);U=hn.RU(j,null,Y,P.rect,h,P.rect).type}if(U)h7.Qs(P,Y,U,$,Z,c,q,!0);if(P.vG()){for(var G=0;
G<e.children.length;G++)h7.lF(h,e.children[G],$,Z,c,q,E)}else if(L){var g=L.b,M=s.W.v4(g),C=s.a.$o(g),y=!1,i=!1,Q=!1;
s.a.J(C.H,c,C.H);$.pth={cmds:C.Z,crds:C.H};if(H.fillEnabled.v){var m=hn.Ef(j,P.add),n=m[0],u=m[1];if(n){$.colr=h7.Sg(n.Clr.v)}else if(u){var K=u,F=[],b,d=K.Type.v.GrdT=="Rdl"?"rad":"lin",W=s.Y.po(K,M),A=c.tf(W[0]),z=c.tf(W[1]);
if(d=="rad")b=[A.x,A.y,0,A.x,A.y,eu.nj(A,z)];else{A.su(z.x+(A.x-z.x)*2,z.y+(A.y-z.y)*2);b=[A.x,A.y,z.x,z.y]}var T=K.Grad.v.Clrs.v;
for(var G=0;G<T.length;G++){var R=T[G].v;F.push([R.Lctn.v/4096,h7.Sg(R.Clr.v)])}$.colr={typ:d,mat:[1,0,0,1,0,0],grad:F,crds:b}}y=!0}var I=hn.tX(j);
if(!H.strokeEnabled.v&&I)H=I;if(H.strokeEnabled.v){var r=H.strokeStyleContent.v,x=H.strokeStyleLineDashSet.v,X=c3.oF.ws.indexOf(H.strokeStyleLineAlignment.v.strokeStyleLineAlignment);
if(r.Clr==null)return;var l=s.Y.LX(r.Clr.v);$.COLR=[l.h/255,l.l/255,l.O/255];$.lwidth=H.strokeStyleLineWidth.v.val*(X==2?2:1)*c.rD();
$.mlimit=H.strokeStyleMiterLimit.v;$.doff=H.strokeStyleLineDashOffset.v.val;$.ljoin=c3.oF.join.indexOf(H.strokeStyleLineJoinType.v.strokeStyleLineJoinType);
$.lcap=c3.oF.kS.indexOf(H.strokeStyleLineCapType.v.strokeStyleLineCapType);$.dash=[];for(var G=0;G<x.length;
G++)$.dash.push(x[G].v.val*$.lwidth);if($.dash.length==1&&$.dash[0]==0)$.dash=[];i=!0;if(X==2)Q=!0}if(y&&!Q)Z.Fill($);
if(i)Z.Stroke($);if(y&&Q)Z.Fill($)}else if(_&&q[4]){var hH=_.Kx,hZ=new br(hH,E),C=cg.VL(hZ,_),gj=s.a.G9(C);
for(var l in gj){var hO=parseInt(l.slice(1),16);$.colr=N?h7.Sg(N.Clr.v):[(hO>>>16&255)/255,(hO>>>8&255)/255,(hO&255)/255];
var d3=gj[l];s.a.J(d3.H,c,d3.H);d3=s.a.a3d(d3);$.pth={cmds:d3.Z,crds:d3.H};Z.Fill($)}}else if(_&&q[3]==!1){var hH=_.Kx,v=_.J.clone(),hl=new i7(1,0,0,-1,0,0);
hl.concat(v);hl.concat(c);var ht=gK.N8(hH),hZ=new br(hH,E);for(var G=0;G<hZ.Bp.length;G++){var ga=hZ.Bp[G];
if(ga.dt.length==1&&ga.dt[0]._b)continue;for(var eB=0;eB<ga.KF.length;eB++){var bP=ga.KF[eB],ek=ga.t6.y+bP.t6.y,b_=ga.dt[bP.start].start,fz=ga.dt[bP.end-1].end,ca=gK.aiZ(hH,b_,fz);
for(var gf=0;gf<ca.length;gf++){var bb=hZ.e_(b_),b2=ca[gf],dV=gK.hT(hH,b_,b_),ch=dV.Kr[dV.By.Font].Name;
$.font.Tf=ch;var l=gK.LX(dV.By);$.colr=N?h7.Sg(N.Clr.v):[l.h/255,l.l/255,l.O/255];$.font.Tfs=Math.round(dV.By.FontSize);
var hE=ht.slice(b_,b_+b2);if(dV.By.FontCaps==2)hE=hE.toUpperCase();var dS=new i7;dS.translate(bb._.x,-ek);
dS.concat(hl);$.ctm=[dS.R,dS.O,dS.Ma,dS.rU,dS.zq,dS.nL];Z.PutText($,hE,0);$.ctm=[1,0,0,1,0,0];b_+=b2}}}}else if(!P.rect.nK()){var e1,eG,dq=!1,f2=new i7;
if(P.add.SoLd){var a3=P.add.SoLd,bm=a3.Idnt.v,h2=h.Cv(bm,a3.Crop?a3.Crop.v:null),iz="";if(h2==null)return;
var ag=h2.bH,eU=cE.B3(h2.raw.buffer);if(q[5].indexOf(eU)!=-1){e1=h2.raw;dq=!0}else e1=ag[0];eG=ag[1];
f2=s.I.co(a3)}else{e1=P.buffer;eG=P.rect;f2.translate(eG.x,eG.y)}if(N&&!dq)e1=hn.Qo(e1,N,eG);h7._p($,Z,e1,eG,f2,c);
if(N&&dq){var b=[0,0,eG.d,0,eG.d,eG.v,0,eG.v];s.a.J(b,f2,b);s.a.J(b,c,b);var d2=JSON.parse(JSON.stringify($));
d2.ca=N.Opct.v.val/100;d2.pth={cmds:["M","L","L","L","Z"],crds:b};d2.colr=h7.Sg(N.Clr.v);Z.Fill(d2)}}if(U)h7.Qs(P,Y,U,$,Z,c,q,!1)};
h7.Qs=function(h,e,$,Z,c,q,E,P){var a=h.rect.clone(),j=e;if(h.add.TySh&&!E[3]&&!E[4])return;console.log(E);
var L=Z.ca,H=Z.bmode;for(var G=c3.order.length-1;G>=0;G--){var _=c3.order[G];if(_=="GrFl"||_=="SoFi")continue;
if(h.add.vmsk&&_=="FrFX")continue;var J=$[_],S=G>7||_=="FrFX";if(S!=P)continue;for(var N=0;N<J.length;
N++){var Y=J[N];console.log(S,_,Y);var U=Y.XR.clone();U.offset(h.rect.x,h.rect.y);if(!S){if(!a.x1(U)){var g=a.iJ(U),M=s.m(g.X());
s.T7(j,a,M,g);j=M;a=g}s.w2(j,a,Y.Hl,U)}if(S&&_=="FrFX"&&Y.QD)s.w2(Y.QD,U,Y.Hl,U);var C=new i7;C.translate(U.x,U.y);
Z.ca=Y.H6;Z.bmode=gY.I$(Y.Uz);h7._p(Z,c,Y.Hl,U,C,q)}}Z.ca=L;Z.bmode=H};h7._p=function(h,e,$,Z,c,q){var E=new i7;
E.scale(Z.d,-Z.v);E.translate(0,Z.v);E.concat(c);E.concat(q);h.ctm=[E.R,E.O,E.Ma,E.rU,E.zq,E.nL];e.PutImage(h,$,Z.d,Z.v);
h.ctm=[1,0,0,1,0,0]};var gi={};gi.Hm=function(h){var e=new Uint8Array(h);return gi.Ur(e,0)};gi.Ur=function(h,e){var $=k.n,Z=k.dd,c={af:Z(h,e,4),i:e+8,size:$(h,e+4)},q=c.af=="FORM"||c.af=="LIST"||c.af=="CAT ";
if(q)c.$v=Z(h,e+8,4);if(c.size<0||c.i+c.size>h.length)throw"e";if(q){c.sub=[];e+=12;var E=c.i+c.size;
while(e<E){var P=gi.Ur(h,e);c.sub.push(P);e+=8+P.size+(P.size&1)}}return c};var d_={};d_.Hm=function(h,e){var $=new Uint8Array(h);
return d_.Ur($,0,e)};d_.Ur=function(h,e,$){var Z=k.bt,c=k.dd,q={af:c(h,e,4),i:e+8,size:Z(h,e+4)};if($&&$[q.size]!=null)q.size=$[q.size];
if(q.af=="RIFF"||q.af=="LIST"){q.$v=c(h,e+8,4)}if(q.size<0||q.i+q.size>h.length)throw"e";if(q.af=="RIFF"||q.af=="LIST"&&(q.$v!="cmpr"&&q.$v!="stlt")){q.sub=[];
e+=12;var E=q.i+q.size;while(e<E){var P=d_.Ur(h,e,$);q.sub.push(P);e+=8+P.size+(P.size&1)}}return q};
var gi={};gi.Hm=function(h){var e=new Uint8Array(h);return gi.Ur(e,0)};gi.Ur=function(h,e){var $=k.n,Z=k.dd,c={af:Z(h,e,4),i:e+8,size:$(h,e+4)},q=c.af=="FORM"||c.af=="LIST"||c.af=="CAT ";
if(q)c.$v=Z(h,e+8,4);if(c.size<0||c.i+c.size>h.length)throw"e";if(q){c.sub=[];e+=12;var E=c.i+c.size;
while(e<E){var P=gi.Ur(h,e);c.sub.push(P);e+=8+P.size+(P.size&1)}}return c};function dp(){}dp.Hm=function(h,e){var $=new Uint8Array(h);
e.ms=!0;var Z=k.dd($,0,2);if(Z=="WL"){alert("Unsupported CDR version")}else{var c=dp.j1,q=d_.Hm($.buffer),E={data:$,i:0,eE:dp.an8($[11])},_=300;
E.lS=E.eE<600?16:32;dp.cF(E,q.sub,e,0);var P=c(q,"cmpr").sub,a=P[0],j=P.slice(1),L=c(a,"mcfg").G,H=L.afG;
_/=cj.d6(new O(0,0,Math.round(H.x*_),Math.round(H.y*_)),8192*8192);var J=Math.round(H.x*_),S=Math.round(H.y*_);
e.d=J;e.v=S;e.buffer=s.m(e.d*e.v*4);var N=c(a,"filt").sub,Y=c(a,"otlt").sub;a.Oo={};for(var G=0;G<N.length;
G++)a.Oo[N[G].sub[0].G.id]=N[G].sub[0].G;a.R5={};for(var G=0;G<Y.length;G++)a.R5[Y[G].G.id]=Y[G].G;var U=new i7(_,0,0,-_,H.x*_/2,H.y*_/2),g=j[1];
dp.wN(g,a,e,U);e.CK(1);e.t[e.t.length-1].$O(new O(0,0,J,S))}};dp.j1=function(h,e){var $=null;for(var G=0;
G<h.sub.length;G++){var Z=h.sub[G];if(Z.af==e||Z.$v==e)$=Z}return $};dp.wN=function(h,e,$,Z){var c=dp.j1,q=h.$v?h.$v:h.af,E=c(h,"lgob"),P=c(h,"txsm"),a,j;
if(E){a=c(E,"trfl");j=c(E,"loda")}var L=a?a.sub[0].FC.clone():new i7;L.concat(Z);var H=$.by();if(q=="page"||q=="layr"||q=="grp "){H.aq((q=="page"?"Page":"Group")+" "+$.t.length);
H.add.lsct=hJ.sE;H.oG="pass";H.GO=24;var _=[];if(q=="page")_=c(h,"gobj").sub;if(q=="layr")_=h.sub.slice(2);
if(q=="grp ")_=h.sub.slice(4);if(_.length==0)return;$.t.push($.d_());for(var G=_.length-1;G>=0;G--)dp.wN(_[G],e,$,Z)}else if(q=="obj "&&j.G&&j.G.path){H.aq("Object "+$.t.length);
var J=e.Oo[j.G.adv],S=e.R5[j.G.aog],N=H.getName(),Y=J&&J.type!=0,U=Y&&J.G!=null?J.G:[0,0,0];H.GO|=16;
H.add.vstk=JSON.parse(JSON.stringify(c3.oF.default));var g=H.add.vstk;g.strokeEnabled.v=!1;H.add.vmsk=new o.MM;
if(S&&S.a33!=1){g.strokeEnabled.v=!0;g.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter";
g.strokeStyleLineWidth.v.val=S.lineWidth*Z.rD();var M=S.color;g.strokeStyleContent.v.Clr.v=s.Y.lp({h:M[0]*255,l:M[1]*255,O:M[2]*255})}var C=j.G.path;
H.add.vmsk.b=s.a.b0(C,!1);s.W.wD(H.add.vmsk.b,L);gY.Tn(U,H,L,s.W.v4(H.add.vmsk.b));g.fillEnabled.v=Y;
H.__();H.ZB($)}else if(q=="obj "&&P){var y=j.G.a9T,i=j.G.afe,n="";H.add.TySh=gK.Zh(0,0);var Q=L.rD();
H.add.TySh.J.translate(L.zq,L.nL);var m=H.add.TySh.Kx,u=P.G.aeK;for(var G=0;G<u.length;G++){var K=u[G],F=n.length;
n+=K.text+"\n";gK.Ja(m,F,K.text+"\n");var b=dp.a4z(K.aff,e),d=gK.hT(m,F,n.length);if(b.align==3)d.Bp.Justification=1;
else d.Bp.Justification=0;var W=b.fill.G;d.By.FillColor={Type:1,Values:[1,W[0],W[1],W[2]]};d.By.FontSize=Math.round(b.a4X.fontSize*L.rD());
gK.sq(m,F,n.length-1,d)}if(i){gK.gq(m,0)}else{gK.gq(m,1);gK.IE(m,[0,0,Math.round(y.x*L.R),Math.round(-y.y*L.rU)])}H.aq(n.slice(0,10))}else{H=null}if(H)$.t.push(H)};
dp.a4z=function(h,e){var $=dp.j1(e,"stlt").G,Z=JSON.parse(JSON.stringify($.IP[h]));if(Z.zT!=0){var c=$.IP[Z.zT];
for(var q in c)if(Z[q]==null||Z[q]==0)Z[q]=c[q];delete Z.zT}Z.align=$.anL[Z.agO];Z.fill=e.Oo[$.amN[Z.anz]];
Z.a67=e.R5[$.akG[Z.a6c]];Z.a4X=$.alW[Z.ah9];return Z};dp.acy=function(G){var t=G.data[G.i];G.i+=1;return t};
dp.Nj=function(G){var t=k.EW(G.data,G.i);G.i+=2;return t};dp.my=function(G){var t=k.bt(G.data,G.i);G.i+=4;
return t};dp.alE=function(G){var t=k.bt(G.data,G.i);G.i+=8;return t};dp.TF=function(G){var t=k.av(G.data,G.i);
G.i+=2;return t};dp.oQ=function(G){var t=k.Mn(G.data,G.i);G.i+=4;return t};dp.bq=function(G){var t=k.a0W(G.data,G.i);
G.i+=8;return t};dp.aD=function(G){if(G.i>=G.data.length)throw"e";var h=0;while(G.data[G.i+h]!=0)h++;
var e=k.dd(G.data,G.i,h);G.i+=h+1;return e};dp.a5l=function(h){if(h.eE<600)return Math.PI*dp.TF(h)/1800;
return Math.PI*dp.oQ(h)/18e7};dp.aev=function(h){if(h.eE<1500)return dp.y9(h);else return dp.bq(h)/254e3};
dp.y9=function(h){if(h.eE<600)return dp.TF(h)/1e3;else return dp.oQ(h)/254e3};dp.adK=function(h){if(h.eE<600)return CRDParser.Nj(h);
else return dp.my(h)};dp.an6=function(h){if(h.eE<600)return CRDParser.TF(h);else return dp.oQ(h)};dp.cF=function(h,e,$,Z){var c=dp,q=c.acy,E=c.Nj,P=c.my,a=c.alE,j=c.TF,L=c.oQ,H=c.bq,_=c.y9,J=c.aev,S=c.a5l,N=c.adK,Y=c.an6;
for(var U=0;U<e.length;U++){var g=h.eE,M=e[U];h.i=M.i+(M.af=="LIST"?4:0);if(M.af=="vrsn"){var C=E(h);
h.eE=C;console.log("Version",C);h.lS=C<600?16:32}else if(M.af=="DISP"){}else if(M.af=="LIST"&&M.$v=="cmpr"){var y=P(h),i=P(h),Q=P(h),m=P(h),n=new Uint8Array(h.data.buffer,h.i+8+2,y-6-8),u=pako.inflateRaw(n),d=0;
h.i+=y;n=new Uint8Array(h.data.buffer,h.i+8+2);var K=pako.inflateRaw(n),F=[];for(var b=0;b<K.length;
b+=4)F.push(k.bt(K,b));M.sub=[];while(d<u.length){var W=d_.Ur(u,d,F);d=W.i+W.size;M.sub.push(W)}var A={data:u,i:0,eE:g,lS:h.lS};
dp.cF(A,M.sub,$,Z+1)}else if(M.af=="LIST"&&M.$v=="stlt"){var z=h.i,ht=32;M.G={};var T=P(h);if(T==0)return;
M.G.amN=dp.kK(h,g>=1300);M.G.akG=dp.kK(h);M.G.alW={};var R=P(h);for(var G=0;G<R;G++){var I=P(h);h.i+=g<1e3?12:20;
var r=E(h),x=E(h);h.i+=8;var X=_(h);h.i+=g<1e3?12:20;M.G.alW[I]={a5m:r,aeV:x,fontSize:X}}M.G.anL=dp.kK(h);
var l=P(h);h.i+=52*l;var hH=P(h);h.i+=152*hH;var hZ=P(h);h.i+=784*hZ;var gj=P(h);for(var G=0;G<gj;G++){h.i+=40;
if(g>1300)h.i+=4;if(g>=1300){if(P(h))h.i+=68;else h.i+=12}else{h.i+=20;if(g>=1e3)h.i+=8;if(P(h))h.i+=8;
h.i+=8}}var hO=P(h);M.G.a5C={};for(var G=0;G<hO;G++){var d3=P(h),v={};h.i+=12;v.right=_(h);v.ai2=_(h);
v.left=_(h);M.G.a5C[d3]=v}var hl=P(h);if(g>=1300)ht+=4;h.i+=ht*hl;var ga=P(h);h.i+=28*ga;if(g>800){var eB=P(h);
h.i+=12*eB}M.G.IP={};for(var G=0;G<T;G++){var bP=P(h),ek=P(h),b_={};b_.zT=P(h);h.i+=8;var fz=P(h);if(g>=1200)fz*=2;
h.i+=fz;b_.anz=P(h);b_.a6c=P(h);if(bP>1){b_.ah9=P(h);b_.agO=P(h);b_.a5G=P(h);b_.aj6=P(h);if(g>800)b_.a5A=P(h)}if(bP>2){b_.a1L=P(h);
b_.ae_=P(h);b_.ags=P(h);b_.a8w=P(h);b_.a2F=P(h)}M.G.IP[ek]=b_}}else if(M.af=="LIST")dp.cF(h,M.sub,$,Z+1);
else if(M.af=="txsm"){M.G={};if(g<600)throw"e";if(g<700)throw"e";if(g>=1600)throw"e";if(g>=1500)h.i+=37;
else h.i+=36;if(P(h)){if(g<800)h.i+=32}if(g<800)h.i+=4;M.G.a13=P(h);M.G.aeK=[];h.i+=48;if(g>=800){if(P(h)){h.i+=32;
if(g>=1300)h.i+=8}}if(g>=1500)h.i+=12;var bP=P(h),ca=1,gf=!1;if(!bP){if(g>=800)h.i+=4;if(g>800)h.i+=2;
if(g>=1400)h.i+=2;h.i+=24;if(g<800)h.i+=8;ca=P(h)}for(var b=0;b<ca;b++){var bb=P(h),G=0;if(g>=1300&&bP)h.i++;
h.i++;var T=P(h),b2=[];for(G=0;G<T;G++){var dV=q(h),hE=0;q(h);var ch=q(h);if(g>=800)hE=q(h);var b_={};
if(ch&1){b_.a5m=E(h);var dS=E(h);if(dS)b_.ag6=dS}if(ch&2)h.i+=4;if(ch&4)b_.a7k=_(h);if(ch&8)h.i+=4;if(ch&16)h.i+=4;
if(ch&32)h.i+=4;if(ch&64){b_.anz=P(h);if(g>=1500)h.i+=48}if(ch&128){b_.a6c=P(h)}if(hE&8){if(g>=1300){var e1=P(h);
if(h.i+e1*2>=h.data.length){gf=!0;break}h.i+=e1*2}else h.i+=4}if(hE&32){var eG=q(h);if(eG)h.i+=52}if(dV==2)if(g>=1300)h.i+=48;
b2.push(b_)}if(gf){break}var dq=P(h);if(h.i+dq*4>h.data.length)break;var f2=[];for(G=0;G<dq;G++){var a3=0;
if(g>=1200)a3=a(h)&4294967295;else a3=P(h);f2[G]=a3>>16|a3&1}var bm=dq;if(g>=1200)bm=P(h);var h2=dp.aD(h);
M.G.aeK.push({aff:bb,text:h2,IP:b2})}}else if(M.af=="font"){var ag=E(h),eU=E(h);h.i+=14;var iz=dp.aD(h);
M.G={id:ag,acz:eU,name:iz}}else if(["IKEY","ICMT","pfrd","bcfg"].indexOf(M.af)!=-1){}else if(M.af=="flgs")M.G=P(h);
else if(M.af=="bbox"){var d2=_(h),gP=_(h),fa=_(h),eI=_(h);M.G=new O(d2,gP,fa-d2,eI-gP)}else if(M.af=="fild"){var it=P(h),ic=0,fA;
if(g>=1300){h.i+=4;ic=E(h);h.i+=2}var iK=E(h);if(iK==0){}else if(iK==1){h.i+=g>=1300?13:2;fA=dp._w(h)}else if(iK==2){h.i+=g>=1300?8:2;
var iB=q(h),hG=0;if(g>=1300){h.i+=17;hG=j(h)}else if(g>=600){h.i+=19;hG=L(h)}else{h.i+=11;hG=j(h)}var dt=S(h),gO=.5+Y(h),cX=.5+Y(h)-.5;
if(g>=600)h.i+=2;var bh=N(h)&255,bi=q(h)/100;h.i++;var dM=N(h)&65535;if(g>=1300)h.i+=3;var ik=[];for(var G=0;
G<dM;G++){var iW=dp._w(h);if(g>=1300){if(ic==158||g>=1600&&ic==150)h.i+=26;else h.i+=5}var et=N(h)/100;
if(g>=1300)h.i+=3;ik.push([et,iW])}fA={typ:iB==1?"lin":"rad",crds:[gO-Math.cos(dt)/2,cX-Math.sin(dt)/2,gO,cX],grad:ik,mat:[1,0,0,1,0,0]}}else console.log("Unknown fill type",iK);
M.G={id:it,type:iK,G:fA}}else if(M.af=="outl"){var iy=P(h);if(g>=1300){var er=0,h$=0;while(er!=1){h.i+=h$;
er=P(h);h$=P(h)}}var dN=E(h),dQ=E(h),cL=E(h);if(g<1300&&g>=600)h.i+=2;var ge=_(h),ds=E(h)/100;if(g>=600)h.i+=2;
var dH=S(h);if(g>=1300)h.i+=46;else if(g>=600)h.i+=52;var fA=dp._w(h,iy==270963208||iy==276198e3,iy);
M.G={id:iy,a33:dN,a9F:dQ,abp:cL,lineWidth:ge,color:fA}}else if(M.af=="mcfg"){if(1300<=g)h.i+=12;else if(900<=g)h.i+=4;
else if(600<=g&&g<700)h.i+=28;var hs=0,cb=0;if(g<400)throw"e";else{hs=_(h);cb=_(h)}M.G={afG:new eu(hs,cb)}}else if(M.af=="loda"){var z=h.i,fe=N(h),ej=N(h),gd=N(h),cs=N(h),hc=N(h),c5=[],eO=[];
h.i=z+gd;for(var G=0;G<ej;G++)c5[G]=N(h);h.i=z+cs;for(var G=ej-1;G>=0;G--)eO[G]=N(h);M.G={};for(var G=0;
G<ej;G++){h.i=z+c5[G];var hF=eO[G];if(hF==10)M.G.aog=P(h);else if(hF==20)M.G.adv=P(h);else if(hF==200)M.G.alH=N(h);
else if(hF==30){if(g<400)hc--;if(hc==1){var d2=J(h),gP=J(h),i4=0,dO=0,g0=0,a6=0;if(g<1500){a6=J(h);g0=g<900?a6:J(h);
dO=g<900?a6:J(h);i4=g<900?a6:J(h)}else throw"e";M.G.path=s.a.$o(s.W.d5.Rect(0,0,d2,gP,i4))}else if(hc==2){var ao=_(h),dv=_(h),en=S(h),eg=S(h),hm=Math.abs(ao),iD=Math.abs(dv);
M.G.path=s.a.$o(s.W.d5.eX(0,0,hm,-iD))}else if(hc==3){M.G.path=dp.ab4(h)}else if(hc==4){M.G.afe=dp.a4x(h)}else if(hc==6){M.G.a9T=dp.a6w(h)}else if(hc==37){M.G.path=dp.iU(h)}else console.log(hc)}}}else if(M.af=="trfd"){var z=h.i,fe=N(h),ej=N(h),gd=N(h);
h.i=z+gd;var c5=[];for(var G=0;G<ej;G++)c5[G]=N(h);for(var G=0;G<ej;G++){h.i=z+c5[G];if(g>=1300)h.i+=8;
var hQ=E(h);if(hQ==8){var dy,a$,d2,hY,b3,gP;if(g>=600)h.i+=6;if(g>=500){dy=H(h);a$=H(h);d2=H(h)/(g<600?1e3:254e3);
hY=H(h);b3=H(h);gP=H(h)/(g<600?1e3:254e3)}else throw"e";M.FC=new i7(dy,hY,a$,b3,d2,gP)}else console.log(hQ)}}else if(!1){console.log(M);
var bK=Math.min(M.size,32);console.log(k.PH(data,M.i,bK));console.log(k.a9M(data,M.i,bK))}}};dp.kK=function(h,e){var $=dp.my,Z={},c=$(h);
for(var G=0;G<c;G++){var q=$(h);h.i+=4;var E=$(h);Z[q]=E;if(e)h.i+=48}return Z};dp.a4x=function(h){var e=dp,$=e.y9,Z=$(h),c=$(h);
return new eu(Z,c)};dp.a6w=function(h){var e=dp,$=e.y9;h.i+=4;var Z=$(h),c=$(h);return new eu(Z,c)};
dp.iU=function(h){var e=dp,$=e.my,Z=e.Nj,c=e.y9;h.i+=4;var q=Z(h)+Z(h);h.i+=16;var E=dp.y4(h,q);return E};
dp.ab4=function(h){var e=dp.Nj(h);h.i+=2;return dp.y4(h,e)};dp.y4=function(h,e){var $=dp,Z=$.y9,c=h.eE<600?2:4,q=h.i,E={H:[],Z:[]},P=0,a=0,j=0;
for(var G=0;G<e;G++){var P=Z(h),a=Z(h),L=h.data[q+e*c*2+G];if(!(L&64)&&!(L&128)){E.H.push(P,a);E.Z.push("M");
j+=2}else if(L&64&&!(L&128)){E.H.push(P,a);E.Z.push("L");j+=2}else if(!(L&64)&&L&128){E.H.push(P,a);
E.Z.push("C");j+=6}else if(L&64&&L&128){E.H.push(P,a)}}if(j!=E.H.length)throw"e";return E};dp.aib=function(h,e){var $=k.bt;
e+=8;var Z=$(h,e);e+=4;var c=$(h,e);e+=4;e+=4*7;var q=e,E=s.m(Z*c*4);e+=1024;for(var P=0;P<c;P++)for(var a=0;
a<Z;a++){var G=P*Z+a,j=(c-P-1)*Z+a,L=h[e+G]<<2,H=j<<2;E[H+0]=h[q+L+2];E[H+1]=h[q+L+1];E[H+2]=h[q+L+0];
E[H+3]=255}return{Hl:E,rect:new O(0,0,Z,c)}};dp.an8=function(h){if(h==32)return 300;else if(h<49)return 0;
else if(h<58)return 100*(h-48);else if(h<65)return 0;return 100*(h-55)};dp._w=function(h,e,$){var Z=dp.Nj,c=dp.my,q=h.eE,E=0,P=0;
if(q>=500){E=Z(h);if(E==1&&q>=1300)E=25;if(E==25||E==30){var a=0;if(E==30){E=25;a=30}else{a=Z(h);h.i+=4}var j=Z(h),L=Z(h)}else if(E==14)throw"e";
else{h.i+=6;P=c(h)}}else throw"e";var H=[];if(E==2||E==9||E==17){var _=[P>>>0&255,P>>>8&255,P>>>16&255,P>>>24&255];
if(E==2)for(var G=0;G<4;G++)_[G]=Math.round(255*_[G]/100);for(var G=0;G<4;G++)_[G]/=255;H=UDOC.C.cmykToRgb(_)}else if(E==1||E==5){H=[P>>>0&255,P>>>8&255,P>>>16&255];
for(var G=0;G<3;G++)H[G]=H[G]/255}else console.log("Unknown color model "+E,P,P.toString(16));return H};
var bD=function(){var h,e,$=new ArrayBuffer(4),Z=new Uint8Array($),c=new Uint32Array($),q=new Float32Array($);
function E(_,J){for(var S=0;S<_.length;S++)if(_[S][0]==J)return _[S]}function P(){var _=0,J=0,S=0;do{S=h[e++];
_|=(S&127)<<J;J+=7}while(S&128&&J<35);return _>>>0}function a(_,J,S,N,Y){h=_;e=J;var U=N[0]=="mesg",g=N[2],M={},C=1,y=U?1e9:g.length;
while(C<=y){var i=C;if(U){i=P();if(i==0)break}var Q=E(g,i),m=Q[2],n=Q[1]==1,u=n?P():1,K=new Array(u);
if(m==3){if(!n)throw"e";K=h.slice(e,e+u);e+=u}else for(var G=0;G<u;G++){var F;if((m&1)==1){if(m==1)F=h[e++]==1;
else if(m==3)F=h[e++];else if(m==5){var b=P();F=b&1?~(b>>>1):b>>>1}else if(m==7)F=P();else if(m==9){if(h[e]==0){F=0;
e++}else{Z[0]=h[e];Z[1]=h[e+1];Z[2]=h[e+2];Z[3]=h[e+3];var d=c[0];c[0]=d<<23|d>>>9;F=q[0];e+=4}}else if(m==11){var W=j(h,e);
F=W[0];e+=W[1]+1}else throw m}else{var A=S[m>>>1];if(A[0]=="enum"){var z=h[e++];if(z>127)throw"e";F=A[2][z]}else{var T=a(h,e,S,A,Y+1);
F=T[0];e=T[1]}}K[G]=F}M[Q[3]]=n?K:K[0];C++}return[M,e]}function j(_,J){var S=J;while(_[S]!=0)S++;return[k.rM(_,J,S-J),S-J]}function L(_,J){var S=J;
while(_[S]!=0)S++;for(var G=J;G<S;G++)if(_[G]>127)throw"e";return k.dd(_,J,S-J)}function H(_){h=_;e=1;
var J=[];while(e<_.length){var S=e,N=J.length,Y=L(_,e);e+=Y.length+1;var U=P();if(U>2)throw"e";var g=P(),M=[];
for(var G=0;G<g;G++){var C=L(_,e);e+=C.length+1;var y=P(),i=P(),Q=P();M.push(U==0?C:[Q,i,y,C])}J.push([["enum","strc","mesg"][U],Y,M])}return J}return{ajJ:H,a7y:a}}();
function b0(){}b0.Hm=function(h,e){var $=new Uint8Array(h),Z=8,c=k.bt($,Z),j=0,A=0;Z+=4;var q=[];while(Z<$.length){var E=k.bt($,Z);
Z+=4;var P=$.slice(Z,Z+E);if($[Z]==137&&$[Z+1]==80){}else P=UZIP.inflateRaw(P);q.push(P);Z+=E}var a=bD.ajJ(q[0]);
for(var G=0;G<a.length;G++)if(a[G][1]=="Message")j=G;var L=bD.a7y(q[1],0,a,a[j],0)[0],H={s3:{},_I:{},alu:{}},_=L.nodeChanges;
for(var J=0;J<_.length;J++){var S=_[J],N=S.guid;H._I[N.sessionID+","+N.localID]=S}for(var J=0;J<_.length;
J++){var S=_[J],N=S.parentIndex;if(N){var Y=b0.FU(H._I,N.guid);if(Y.children==null)Y.children=[];Y.children.push(S)}}var U=_[0],g=U.children,M=new O,C=[],y=[];
for(var N=0;N<g.length;N++){var i=g[N],Q=i.children;if(i.name=="Internal Only Canvas"||Q==null)continue;
var m=new O;for(var G=0;G<Q.length;G++){var n=Q[G],u=n.transform,K=n.size;if(u.m00==1&&u.m10==0&&u.m01==0&&u.m11==1){var F=new O(u.m02,u.m12,K.x,K.y);
m=m.iJ(F)}}var b=M.v==0?0:M.v+100,d=m.clone();d.x=0;d.y=b;M=M.iJ(d);C[N]=m;y[N]=b}var W=cj.d6(new O(0,0,M.d,M.v),8192*8192);
e.d=Math.round(M.d/W);e.v=Math.round(M.v/W);e.buffer=s.m(e.d*e.v*4);for(var N=0;N<g.length;N++){var i=g[N],Q=i.children;
if(i.name=="Internal Only Canvas"||Q==null)continue;Q.sort(b0.qi);var z=new i7(1,0,0,1,-C[N].x,y[N]-C[N].y);
z.scale(1/W,1/W);for(var G=0;G<Q.length;G++){var n=Q[G];b0.wN(n,[],z,L.blobs,e,0,H);A++}}e.CK(A);e.ms=!0;
if(W!=1)alert("File scaled down "+W+"x")};b0.wN=function(h,e,$,Z,c,q,E){var P=b0,n=!1,u,K,b,d,W;for(var G=0;
G<e.length;G++){var a=e[G],j=a.guidPath.guids[0];if(P.alJ(j,h.guid)){var L={};for(var H in h)L[H]=a[H]!=null?a[H]:h[H];
h=L}}var _=h.type,J=h.children,S=h.size,N=h.effects,Y=c.by();Y.aq(h.name);Y.QL(h.visible);Y.opacity=Math.round(h.opacity*255);
var U=P.eb(h.transform),g=U.clone();g.concat($);var M=new O(Math.round(g.zq),Math.round(g.nL),Math.round(S.x*g.rD()),Math.round(S.y*g.rD())),C=h.fillPaints,y=h.inheritFillStyleID;
if(y){var L=P.FU(E._I,y);if(L)C=L.fillPaints}if(C==null)C=[];var C=P.JF(C),i=C[0],Q=h.strokePaints,y=h.inheritFillStyleIDForStroke;
if(y){var L=P.FU(E._I,y);if(L)Q=L.fillPaints}if(Q==null)Q=[];var Q=P.JF(Q),m="BOOLEAN_OPERATION LINE RECTANGLE ROUNDED_RECTANGLE ELLIPSE VECTOR REGULAR_POLYGON".split(" ").indexOf(_)!=-1;
if(m||_=="FRAME"){u=new o.MM;K=[];P.qA(h,Z,u,K);n=s.W.hv(u.b);s.W.wD(u.b,g);M=s.a.Lu(s.W.v4(u.b));if(E.s3.Qw&&i){var F=o.MM.rP(E.s3.Qw.b);
for(var G=2;G<F.length;G++)if(F[G].aN!=null)F[G].aN=3;u.b=u.b.concat(F.slice(2));K=K.concat(JSON.parse(JSON.stringify(E.s3.as)))}}if(i&&i.type=="IMAGE"){W=i.imageScaleMode;
b=P.v2(Z,i.image.dataBlob);var A=b.Au.d/b.Au.v,z=S.x/S.y;d=Math.abs(A-z)}if(_=="FRAME"){}else if(m&&n&&b&&(W=="FIT"||W=="FILL"&&d<=.05)){var T=Z[i.image.dataBlob].bytes,R=c.L4(T,Y.getName(),0,0);
R.GO=Y.GO;R.opacity=Y.opacity;Y=R;var I=new O(0,0,S.x,S.y);if(W=="FIT"){var r=b.Au.d,x=b.Au.v,X=Math.min(S.x/r,S.y/x),l=r*X,hH=x*X;
I=new O(I.x+(I.d-l)/2,I.y+(I.v-hH)/2,l,hH)}var hZ=s.a.Kf(I).H;s.a.J(hZ,g,hZ);Y.add.SoLd.Trnf=f.o.h8(hZ);
Y.add.SoLd.nonAffineTransform=f.o.h8(hZ);var gj=[],N=h.effects,hO=i.paintFilter;if(N)for(var G=0;G<N.length;
G++)if(N[G].type=="FOREGROUND_BLUR"){var d3=N[G],v=dA.fq("GsnB",{});gj.push(v);v.v.enab.v=d3.visible;
v.v.Fltr.v.Rds.v.val=d3.radius/2.4}if(hO&&hO.exposure!=0){var v=dA.fq("brit",{});gj.push(v);v.v.Fltr.v.Brgh.v=Math.round(hO.exposure*160);
v.v.Fltr.v.useLegacy.v=!0}if(gj.length!=0){Y.add.SoLd.filterFX=dA.WW();c.Ts({id:Y.add.SoLd.placed.v,rect:new O,buffer:s.m(1),r:new o.kq});
Y.add.SoLd.filterFX.v.filterFXList.v=gj}Y.l3(c,!1);P.zj(E,Y,c)}else if(m){P.nx(Y,K,u,h,i,g,M,Z,c,E);
var hl=P.bf(h,Q[0],g,M,Z,c,E);if(hl[0]!="None"){var ht=Y.add.vstk;ht.strokeEnabled.v=!0;ht.strokeStyleLineWidth.v.val=h.strokeWeight*g.rD();
ht.strokeStyleLineAlignment.v.strokeStyleLineAlignment=c3.oF.ws[["INSIDE","CENTER","OUTSIDE"].indexOf(h.strokeAlign)];
var ga={SoCo:"SoFi",GdFl:"GrFl"}[hl[0]],eB=["SoFi","GrFl","patternFill"].indexOf(ga),bP=[c3.O7,c3.bv,c3.Tk][eB];
ht.strokeStyleContent.v={classID:c3.oF.$v[0]};ht.strokeStyleLineDashSet.v=hn.bw(h.dashPattern,1/h.strokeWeight);
var ek=ht.strokeStyleContent.v={classID:c3.oF.$v[eB]};for(var G=0;G<bP.length;G++)ek[bP[G]]=hl[1][bP[G]]}if(N)for(var G=0;
G<N.length;G++){var d3=N[G];if(d3.type!="FOREGROUND_BLUR")continue;u.gE=d3.radius/2.4}Y.ZB(c)}else if(_=="TEXT"){var b_=h.textData,fz=b_.layoutSize,ca=["LEFT","RIGHT","CENTER"].indexOf(h.textAlignHorizontal);
Y.add.lnsr="rend";Y.add.TySh=gK.Zh(0,0);Y.add.TySh._P=new O(0,0,100,100);var gf=g.clone();Y.add.TySh.J=gf;
var bb=Y.add.TySh.Kx,b2=b_.characters;if(h.textCase=="TITLE"){for(var G=0;G<b2.length;G++)if(G==0||b2[G-1]==" "){var dV=b2.slice(0,G),ch=b2.slice(G+1);
b2=dV+b2[G].toUpperCase()+ch}}b2=b2.replace(/\u2028/g,"\n");b2=b2.replace(/\u2029/g,"\n");b2=b2.replace(/\r/g,"\n");
gK.Ja(bb,0,b2);var hE=h.textAutoResize,dS=b_.baselines;if(hE=="WIDTH_AND_HEIGHT"){var e1=ca==0?0:ca==1?fz.x:fz.x/2,eG=dS?dS[0].position.y:0;
gf.translate(e1*g.rD(),eG*g.rD());gK.gq(bb,0)}else if(hE=="HEIGHT"||hE=="NONE"||hE==null){var eG=dS?dS[0].position.y-h.fontSize*.7:0;
gf.translate(0,eG*g.rD());gK.gq(bb,1);gK.IE(bb,[0,0,Math.round(fz.x),Math.round(1.2*fz.y)])}else throw hE;
if(b2!=""){var dq=gK.hT(bb,0,1);P.G2(h,g,S,dq,Y,Z,c,E);gK.sq(bb,0,b2.length,dq);var f2=b_.characterStyleIDs,a3=b_.styleOverrideTable;
if(f2){f2=f2.slice(0);for(var G=0;G<f2.length;G++)if(b2[G]=="\n")f2[G]=-G-1;var bm=[0],h2=0,ag=0;for(var G=0;
G<f2.length;G++){ag++;var eU=f2[G];if(G==0||eU==f2[G-1]){}else{bm.push(ag-1,G);ag=1}}bm.push(ag);for(var G=0;
G<bm.length;G+=2){var iz=bm[G],d2=bm[G+1];if(b2[iz]=="\n")continue;var eU=f2[iz];if(eU!=0){var gP;for(var fa=0;
fa<a3.length;fa++)if(a3[fa].styleID==eU)gP=a3[fa];var dq=gK.hT(bb,iz,iz+1);P.G2(gP,g,S,dq,Y,Z,c,E);gK.sq(bb,iz,iz+d2,dq)}}}}}else if(_=="SYMBOL"){}else if(_=="INSTANCE"){var eI=h.symbolData,it=eI.symbolOverrides,L=P.FU(E._I,eI.symbolID);
if(L)J=L.children;else console.log(h.name,"symbol not found",eI.symbolID);e=e.slice(0);for(var G=0;G<it.length;
G++)e.push(it[G])}else console.log(_);if(!1){}else if(J&&!m){c.t.push(c.d_());var ic=!1;if(q==0&&_!="SYMBOL"&&_!="INSTANCE"){Y.$O(M);
var iK=C?C[0]:null;if(iK&&iK.type=="SOLID"){var fA=iK.color;Y.add.artb.artboardBackgroundType.v=4;Y.add.artb.Clr=P._w(fA)}}else if(i&&u){var iB=c.by();
iB.aq("Background");P.nx(iB,K,u,h,i,g,M,Z,c,E);iB.ZB(c);c.t.push(iB);ic=!0}J.sort(P.qi);var hG=E.s3;
E.s3={};for(var dt=0;dt<J.length;dt++)P.wN(J[dt],e,g,Z,c,q+1,E);E.s3=hG;Y.add.lsct=!1?hJ.sE:hJ.Y7;Y.oG="pass";
var gO=Y.o6();Y.GO=24;Y.QL(gO);var cX=q!=0&&C.length!=0&&!h.frameMaskDisabled&&h.containerSupportsFillStrokeAndCorners;
if(!ic&&cX&&u){Y.add.vmsk=u;Y.add.vogk=K;Y.ZB(c)}else P.zj(E,Y,c);c.t.push(Y)}else if(h.mask){if(u){E.s3.Qw=u;
E.s3.as=K}}else{var bh=[],er=1;if(N)for(var bi=0;bi<N.length;bi++){var d3=N[bi],dM=d3.color,ik=d3.type,iW=["DROP_SHADOW","INNER_SHADOW"].indexOf(ik);
if(iW!=-1){var et=["DrSh","IrSh"][iW],iy=JSON.parse(c3.kD[c3.order.indexOf(et)]);bh.push([et,iy]);iy.enab.v=d3.visible;
iy.Md.v.BlnM=eN.ve(P.alh(d3.blendMode));iy.Opct.v.val=Math.round(100*dM.a);iy.blur.v.val=Math.round(d3.radius*g.rD());
iy.Clr=P._w(dM);var e1=d3.offset.x,eG=d3.offset.y;iy.uglg.v=!1;iy.lagl.v.val=Math.round(180/Math.PI*Math.atan2(eG,-e1));
iy.Dstn.v.val=Math.round(Math.sqrt(e1*e1+eG*eG)*g.rD())}}if(_=="TEXT"&&C[0]&&C[0].type!="SOLID")er=0;
for(var G=er;G<C.length;G++){var h$=C[G],dN=P.bf(h,h$,g,M,Z,c,E);if(dN[0]=="GdFl")bh.push(["GrFl",dN[1]]);
else if(dN[0]=="SoCo")bh.push(["SoFi",dN[1]]);else if(dN[0]=="PtFl")bh.push(["patternFill",dN[1]]);else throw dN}if(bh.length!=0){var dQ=JSON.parse(c3.default);
for(var G=0;G<c3.order.length;G++)dQ[c3.qV[G]]={t:"VlLs",v:[]};for(var G=0;G<bh.length;G++){var cL=bh[G],et=c3.qV[c3.order.indexOf(cL[0])];
dQ[et].v.unshift({t:"Objc",v:cL[1]})}if(J==null)Y.add.lmfx=dQ}c.t.push(Y)}};b0.nx=function(h,e,$,Z,c,q,E,P,a,j){var L=b0;
h.GO|=16;h.add.vogk=e;h.add.vmsk=$;var H=h.add.vstk=JSON.parse(JSON.stringify(c3.oF.default)),_=L.bf(Z,c,q,E,P,a,j);
if(_[0]=="None"){H.fillEnabled.v=!1;h.add.SoCo=_[1]}else{var J=_[1].Opct.v.val;if(J!=100)h.opacity=Math.round(h.opacity/255*(J/100)*255);
h.add[_[0]]=_[1]}};b0.qi=function(h,e){var $=h.parentIndex.position,Z=e.parentIndex.position;return $>Z?1:-1};
b0.JF=function(h){for(var G=1;G<h.length;G++){var e=h[G];if(e.type=="IMAGE"&&e.opacity==1){h=h.slice(G);
break}}for(var G=0;G<h.length;G++){var e=h[G],$=e.imageThumbnail;if(e.type=="IMAGE"&&e.image.dataBlob==null&&$&&$.dataBlob)e.image=$;
if(!e.visible||e.type=="IMAGE"&&e.image.dataBlob==null){h.splice(G,1);G--}}return h};b0.zj=function(h,e,$){if(h.s3.Qw){e.add.vmsk=h.s3.Qw.clone();
e.add.vogk=JSON.parse(JSON.stringify(h.s3.as));e.ZB($)}};b0.G2=function(h,e,$,Z,c,q,E,P){var a=h.fontSize,j=h.lineHeight,L=h.fontName,H=h.textAlignHorizontal,_=h.textTracking,J=h.textCase;
if(a==null)a=Z.By.FontSize;if(L)gK.P0(Z,L.postscript);if(a!=null)Z.By.FontSize=Math.round(a);if(_)Z.By.Tracking=Math.round(_*1e3);
if(J)Z.By.FontCaps=J=="UPPER"?2:0;if(j&&(j.units!="PERCENT"||j.value!=100)){if(a==null)a=15;var S=j.value;
if(j.units=="PERCENT")S=1*a*S/100;if(j.units=="RAW")S=1*a*S;Z.By.AutoLeading=!1;Z.By.Leading=Math.round(S)}if(H)Z.Bp.Justification=["LEFT","RIGHT","CENTER"].indexOf(H);
var N=h.fillPaints,Y=h.inheritFillStyleID;if(Y){var U=b0.FU(P._I,Y);if(U)N=U.fillPaints}if(N&&N[0]){var g=b0.bf(h,N[0],e,$,q,E,P);
if(g[0]=="SoCo"){var M=s.Y.LX(g[1].Clr.v);Z.By.FillColor={Type:1,Values:[1,M.h/255,M.l/255,M.O/255]};
c.opacity=Math.round(c.opacity/255*(g[1].Opct.v.val/100)*255)}}};b0.bf=function(h,e,$,Z,c,q,E){var P=b0,a,j,L=h.size;
if(e){var H=e.type,_=["GRADIENT_LINEAR","GRADIENT_RADIAL","GRADIENT_DIAMOND","GRADIENT_ANGULAR"].indexOf(H);
if(H=="SOLID"){a="SoCo";var J=e.color;j=JSON.parse(c3.kD[c3.order.indexOf("SoFi")]);j.Clr=P._w(J)}else if(_!=-1){var S=JSON.parse(c3.kD[c3.order.indexOf("GrFl")]),N=S.Grad.v;
N.Intr.v=0;S.Type.v.GrdT=["Lnr","Rdl","Dmnd","Angl"][_];var Y=[],U=e.stops;for(var G=0;G<U.length;G++){var g=U[G],M=g.color;
Y.push([g.position,[M.r,M.g,M.b],M.a])}s.Y.GI(Y,N);var C=P.eb(e.transform);C.vy();var y=C.clone();if(L)y.scale(L.x,L.y);
y.concat($);var i=new eu(0,.5),Q=new eu(1,.5);i=y.tf(i);Q=y.tf(Q);if(!0){i.x=Q.x+.5*(i.x-Q.x);i.y=Q.y+.5*(i.y-Q.y)}s.Y.N9(i,Q,Z,S);
if(_==3){if(y.R*y.rU-y.O*y.Ma<0)S.Rvrs.v=!S.Rvrs.v}a="GdFl";j=S}else if(H=="IMAGE"){var S=JSON.parse(c3.kD[c3.order.indexOf("patternFill")]),m=S.phase.v,n=e.image.dataBlob,u=E.alu[n],R=1;
if(u==null){var K=P.v2(c,n);u=E.alu[n]={};u.id=c9.YV()+"-d71c-11e5-b1ae-a548a96e5f9f";u.Rv=[new Uint8Array(K.data),K.Au];
u.name="someImage";q.x0(u)}S.Algn.v=!0;S.Ptrn.v.Idnt.v=u.id;var F=$.zq,b=$.nL,d=e.imageScaleMode,C=P.eb(e.transform);
C.vy();var W=Z.d,A=Z.v,z=u.Rv[1].d,T=u.Rv[1].v;if(d=="FILL"){R=Math.max(W/z,A/T);R=Math.round(R*100)/100}else if(d=="FIT"){R=Math.min(W/z,A/T);
R=Math.round(R*100)/100}else if(d=="STRETCH"){var I=W*C.R,r=A*C.rU;R=.5*(I/z+r/T);R=Math.round(R*100)/100;
F+=(I-W)/2+C.zq*W;b+=(r-A)/2+C.nL*A}else if(d=="TILE"){R=e.scale;R=Math.round(R*100)/100;F+=(I-W)/2;
b+=(r-A)/2}var x=R*z,X=R*T;F+=-(x-W)/2;b+=-(X-A)/2;S.Scl.v.val=Math.round(100*R);m.Hrzn.v=Math.round(F);
m.Vrtc.v=Math.round(b);a="PtFl";j=S}else throw H;if(j)j.Opct={t:"UntF",v:{type:"#Prc",val:Math.round(e.opacity*100)}}}else{a="None";
j={classID:"null",Clr:{t:"Objc",v:s.Y.lp({h:0,l:0,O:0})}}}return[a,j]};b0.v2=function(h,e){var $=h[e];
if($.rslt)return $.rslt;var Z=$.bytes.buffer,c=cE.B3(Z),q=cE.fy(c);try{$.rslt=q.Cj(Z)[0]}catch(e_){$.rslt={data:s.m(4),Au:new O(0,0,1,1)}}return $.rslt};
b0.qA=function(h,e,$,Z){var c=h.type,q=h.size,E=h.cornerRadius,H;if(E==null)E=0;var P=s.as.qm(),a=q.x,j=q.y,L=[E,E,E,E],_=["rectangleTopLeftCornerRadius","rectangleTopRightCornerRadius","rectangleBottomRightCornerRadius","rectangleBottomLeftCornerRadius"];
for(var G=0;G<4;G++)if(h[_[G]]!=null)L[G]=h[_[G]];if(c=="RECTANGLE"||c=="ROUNDED_RECTANGLE"||c=="FRAME"){H=s.W.d5.Rect(0,0,a,j,L)}else if(c=="ELLIPSE"){var J=h.arcData,S=J?J.startingAngle:0,N=J?J.endingAngle:2*Math.PI,Y=J?J.innerRadius:0;
if(S==0&&N>1.999*Math.PI)H=s.W.d5.eX(0,0,a,j,0);else H=s.W.d5.ajj(a/2,j/2,j/2,S,N);if(Y!=0&&Y!=1){var U=o.MM.rP(H).slice(3);
U.reverse();for(var G=0;G<U.length;G++){var g=U[G],M=g.LD;g.LD=g.EH;g.EH=M}var C=new i7;C.translate(-a/2,-j/2);
C.scale(Y,Y);C.translate(a/2,j/2);s.W.wD(U,C);H=H.concat(U);H[2].length*=2}}else if(c=="LINE"){H=s.W.d5.Rect(0,0,a,j,0);
H.pop();H.pop();H[2].length=2}else if(c=="REGULAR_POLYGON"){H=s.W.d5.$X(.5,.5,.5,Math.PI/2,h.count,0);
var y=new i7;y.scale(a,j);s.W.wD(H,y)}else if(c=="BOOLEAN_OPERATION"){H=[{type:6},{type:8,all:0}];var i=h.children,Q=["XOR","UNION","SUBTRACT","INTERSECT"].indexOf(h.booleanOperation);
if(Q==-1)throw h;if(i==null)i=[];for(var G=0;G<i.length;G++){var m=i[G],n=new o.MM,u=[],K=b0.qA(m,e,n,u);
if(n.b==null)continue;s.W.wD(n.b,b0.eb(m.transform));H=H.concat(n.b.slice(2));for(var F=0;F<u.length;
F++)Z.push(u[F])}for(var G=3;G<H.length;G++)if(H[G].aN!=null)H[G].aN=Q;P=null}else if(c=="VECTOR"){var b,d;
if(!0){var W=h.vectorData;b=W.normalizedSize;d=W.vectorNetworkBlob}else{b=q;d=hc[0].commandsBlob;console.log(hc)}var A=e[d].bytes,z=new Uint32Array(A.buffer),T=new Float32Array(A.buffer),R=z[0],I=z[1],x=[];
for(var G=0;G<R;G++){var X=3+G*3,l=new eu(T[X+1],T[X+2]);x.push(l)}var hH=[],hZ=3+R*3;for(var G=0;G<I;
G++){var gj=hZ+G*7,hO=z[gj+1],d3=z[gj+4];hH.push([hO,d3,T[gj+2],T[gj+3],T[gj+5],T[gj+6]])}var v=-1;for(var G=0;
G<I;G++){if(v==-1){}else{var hl=-1;for(var F=G;F<I;F++)if(hH[F][1]==v)hl=F;for(var F=G;F<I;F++)if(hH[F][0]==v)hl=F;
if(hl!=-1){var ht=0,M=hH[hl];hH[hl]=hH[G];hH[G]=M;if(M[0]!=v){ht=M[0];M[0]=M[1];M[1]=ht;ht=M[2];M[2]=M[4];
M[4]=ht;ht=M[3];M[3]=M[5];M[5]=ht}}}v=hH[G][1]}var ga=[],eB=[],bP=-1;v=-1;for(var G=0;G<I;G++){var ek=hH[G],hO=ek[0],d3=ek[1],b_=x[hO],fz=x[d3];
if(v!=hO){eB.push("M");ga.push(b_.x,b_.y);bP=hO}ga.push(b_.x+ek[2],b_.y+ek[3]);ga.push(fz.x+ek[4],fz.y+ek[5]);
eB.push("C");ga.push(fz.x,fz.y);v=d3;if(bP==d3){eB.push("Z");bP=v=-1}}H=s.a.b0({H:ga,Z:eB},!0);if(E!=0){var L=[],ca=H[2].length;
for(var G=0;G<ca;G++)L.push(E);if(s.W.jN(H))s.W.JN(H,2,L)}var gf=new i7;gf.scale(b.x==0?1:q.x/b.x,b.y==0?1:q.y/b.y);
s.W.wD(H,gf)}$.b=H;if(P)Z.push(P)};b0.FU=function(h,e){return h[e.sessionID+","+e.localID]};b0.alJ=function(h,e){return h.sessionID==e.sessionID&&h.localID==e.localID};
b0.alh=function(h){var e={NORMAL:"norm",MULTIPLY:"mul ",SCREEN:"scrn"}[h];if(e==null)throw h;return e};
b0._w=function(h){return{t:"Objc",v:s.Y.lp({h:h.r*255,l:h.g*255,O:h.b*255})}};b0.eb=function(h){var e=[h.m00,h.m10,h.m01,h.m11,h.m02,h.m12];
for(var G=0;G<6;G++)if(Math.abs(e[G])<1e-20)e[G]=0;return new i7(e[0],e[1],e[2],e[3],e[4],e[5])};function b4(){}b4.Hm=function(){var h=k.dd;
function e(_,J,S,N){var Y=N?[]:{};while(J<_.length-1&&_[J]!=125){var U=h(_,J,3),g=h(_,J+3,1),M;J+=4;
J++;if(g=="v"){var C=e(_,J,S+1,U=="ELM"||U=="TIL");M=C.G;J=C.i}else if(g=="i"||g=="f"){var y=J;while(_[y]!=125)y++;
var i=h(_,J,y-J);M=g=="i"?parseInt(i,16):parseFloat(i);J=y+1}else if(g=="s"){var Q=k.oO(_,J),i="";J+=2;
for(var G=0;G<Q;G++)i+=String.fromCharCode(_[J+2*G+1]);M=i;J=J+2*Q+1}else if(g=="b"){M=_[J]==49;J=J+2}else throw"e";
if(N)Y.push([U,M]);else if(Y[U]==null)Y[U]=M;else{if(!(Y[U]instanceof Array))Y[U]=[Y[U]];Y[U].push(M)}}J++;
return{G:Y,i:J}}function $(_,J){var S=Z(_).slice(1),_=J.Clr.v;_.Rd.v=S[0]*255;_.Grn.v=S[1]*255;_.Bl.v=S[2]*255}function Z(_){return[(_>>>24&255)/255,(_>>>16&255)/255,(_>>>8&255)/255,(_>>>0&255)/255]}function c(_,J){var S=J&4278190080|(J&255)<<16|(J>>>8&255)<<8|J>>>16&255;
new Uint32Array(_.buffer).fill(S)}function q(_,J){var S=_.TSZ,N=_.WPX,Y=_.HPX,U=_.TIL,g=new O(0,0,N,Y),M=s.m(N*Y*4),C=0;
for(var y=0;y<Y;y+=S)for(var i=0;i<N;i+=S){var Q=new O(i,y,S,S),m,n=U[C];if(n[0]=="TMC"){m=s.m(Q.X()*4);
c(m,n[1])}else if(n[0]=="TID"){m=J[n[1]]}s.hX(m,Q,M,g);C++}return[M,g]}function E(_,J){_=new Uint8Array(_);
var S=8,N,Y={};while(S<_.length){var U=k.n(_,S);S+=4;var g=h(_,S,4);S+=4;if(g=="mkTS"){var M=pako.inflate(_.slice(S,S+U)),C=e(M,0,0);
N=C.G}else if(g=="mkBT"){var y=k.n(_,S+4),i=k.n(_,S+8),M=pako.inflate(_.slice(S+76,S+U));if(i==0)for(var G=0;
G<M.length;G+=4){var Q=M[G],m=M[G+1],n=M[G+2],u=M[G+3];M[G+3]=Q;M[G+2]=u;M[G+1]=n;M[G]=m}else{var K=s.m(M.length*4);
K.fill(255);s.Kh(M,K);M=K}Y[y]=M}S+=U+4}var F=N.PDC?N.PDC:N.MKB,b=F.WID,d=F.HIT,W=F.BGC;J.d=b;J.v=d;
if(W>>>24!=0){var A=J.by();A.aq("Background");J.t.push(A);A.rect=new O(0,0,b,d);A.buffer=s.m(A.rect.X()*4);
c(A.buffer,W)}var z=(F.LYL?F:N).LYL.LAY;for(var G=0;G<z.length;G++)a(z[G],J,null,Y)}function P(_,J,S){var N=_[J];
return N instanceof Array?N[S]:N}function a(_,J,S,N){var Y=J.by();if(_.VIS!=null)Y.QL(_.VIS);if(_.VIF!=null)Y.QL(_.VIF.VIS);
if(_.OPA!=null)Y.opacity=Math.round(255*_.OPA/1e3);Y.oG=_.CLL||S=="GRP"?"pass":"norm";if(_.BLD!=null){var U=_.BLD,g={"0":"norm","2":"mul ","5":"scrn","7":"diss","9":"dark","10":"lite","37":"idiv","30":"norm","39":"lbrn","41":"vLit"}[U+""];
if(g==null)console.log(_.OBN,U);else Y.oG=g;if(U==30)Y.opacity>>>=1}if(_.CLL){Y.aq(_.LNM);J.t.push(J.d_());
var M=_.CLL.CEL.ELM;for(var G=M.length-1;G>=0;G--)a(M[G][1],J,M[G][0],N);Y.add.lsct=_.DIS?hJ.sE:hJ.Y7;
Y.GO|=24}else if(S=="GRP"){var C=Y.add.lmfx=j(_.EFL),y;J.t.push(J.d_());var M=_.ELM;if(_.MNA&&_.MRX){y=M[0][1];
M=M.slice(1)}Y.aq("Group: "+M.length+" objects");for(var G=M.length-1;G>=0;G--)a(M[G][1],J,M[G][0],N);
if(y){var i=q(y,N),Q=Y.r=new o.kq;Q.rect=i[1].clone();Q.rect.x=y.XLC;Q.rect.y=y.YLC;Q.channel=s.m(Q.rect.X());
s.z0(i[0],Q.channel,0);s.vy(Q.channel)}Y.add.lsct=hJ.Y7;Y.GO|=24}else if(S=="IMG"){Y.aq(_.OBN?_.OBN:"Bitmap");
var i=q(_,N);Y.rect=i[1].clone();Y.rect.x=_.XLC;Y.rect.y=_.YLC;Y.buffer=i[0]}else if(S=="TXT"){var m=_.TFS,n=m.TRN instanceof Array?m.TRN.length:1,b="";
Y.add.lnsr="rend";Y.add.TySh=gK.Zh(0,0);Y.add.TySh._P=new O(0,0,100,100);var u=new i7(1,0,0,1,_.LFT,_.TOP);
if(_.MTX){var K=_.MTX,Q=new i7(K.M00,K.M01,K.M10,K.M11,K.M20,K.M21);u.concat(Q)}Y.add.TySh.J=u;var F=Y.add.TySh.Kx;
for(var G=0;G<n;G++){var d=P(m,"TRN",G);gK.Ja(F,b.length,d);var W=gK.hT(F,0,1);gK.P0(W,P(m,"FON",G));
W.By.FontSize=Math.round(P(m,"PTS",G));var A=P(m,"FCL",G);W.By.FillColor={Type:1,Values:Z(A)};gK.sq(F,b.length,b.length+d.length,W);
b+=d}Y.aq(b.slice(0,255));var z=_.RIT-_.LFT,T=_.BOT-_.TOP;if(_.IMG){a(_.IMG,J,"IMG",N);var R=J.t.pop();
Y.buffer=R.buffer;Y.rect=R.rect}gK.gq(F,1);gK.IE(F,[0,0,z,T])}else if(S=="PTH"){Y.aq(_.OBN?_.OBN:"Path");
Y.GO|=16;var I=!1,r=Y.add.vmsk=new o.MM,x=Y.add.vstk=JSON.parse(JSON.stringify(c3.oF.default)),C=Y.add.lmfx=j(_.EFL,r),X=_.PBL.PBP;
if(!(X instanceof Array))X=[X];for(var hH=0;hH<X.length;hH++){var hZ=X[hH].PBT,gj=X[hH].ISC?0:3;r.b.push({type:gj,length:hZ.length,aN:0,pg:2,Bs:0,W7:0});
for(var G=0;G<hZ.length;G++){var hO=hZ[G],d3=hO.XLC,v=hO.YLC,hl=[d3,v,d3,v,d3,v],ht="XPC YPC XLC YLC XSC YSC".split(" ");
for(var ga=0;ga<6;ga++){var eB=ht[ga],bP=hO[eB];if(bP!=null)hl[ga]=bP}r.b.push({type:gj+2,D:new eu(d3,v),LD:new eu(hl[0],hl[1]),EH:new eu(hl[4],hl[5])})}}Y.__();
var ek=s.W.v4(r.b),b_=_.PAT,fz=b_.BPL,ca=b_.FPL,gf=b_.TXF;if(ca&&ca.FEF)r.gE+=ca.FEF/2.4;if(fz){var bb=fz.CAT;
x.strokeEnabled.v=!0;x.strokeStyleLineWidth.v.val=fz.BDI;if(fz.BDI==1)x.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignInside";
$(b_.BCL,x.strokeStyleContent.v);if(bb!="bc_Basic"&&bb!="bc_Pencil")I=!0}if(ca==null){x.fillEnabled.v=!1;
Y.add.SoCo=JSON.parse(c3.kD[c3.order.indexOf("SoFi")]);$(0,Y.add.SoCo)}else if(ca.CAT=="fc_Solid"){Y.add.SoCo=JSON.parse(c3.kD[c3.order.indexOf("SoFi")]);
$(_.PAT.FCL,Y.add.SoCo)}else if(ca.CAT=="fc_Linear"||ca.CAT=="fc_Circular"||ca.CAT=="fc_Elliptical"){var b2=ca.CAT=="fc_Linear",dV=Y.add.GdFl=JSON.parse(c3.kD[c3.order.indexOf("GrFl")]),ch=dV.Grad.v,hE=[],dS=ca.FGL.FGY,ht=dS.FG0.FGI,e1=dS.FG1.FGI;
for(var G=0;G<ht.length;G++){var eG=ht[G],dq=Z(eG.FGC),f2=1;if(e1.length==ht.length)f2=Z(e1[G].FGC)[0];
hE.push([eG.FGP,dq.slice(1),f2])}dV.Type.v.GrdT=b2?"Lnr":"Rdl";s.Y.GI(hE,ch);ch.Intr.v=0;var a3=_.PRI?_.PRI:_,bm=new eu(a3.PSX,a3.PSY),h2=new eu(a3.PEX,a3.PEY);
if(ca.CAT=="fc_Elliptical"&&a3.PFX!=null){var ag=new eu(a3.PFX,a3.PFY),eU=eu.nj(bm,h2),iz=eu.nj(bm,ag);
if(iz<eU){var d2=eU;eU=iz;iz=d2}h2=new eu(bm.x+(eU+iz)/2,bm.y);if(eU/iz<.5)I=!0}if(b2){bm.x=(bm.x+h2.x)/2;
bm.y=(bm.y+h2.y)/2}s.Y.N9(bm,h2,ek,dV)}else console.log(ca.CAT);if(ca&&ca.FTB!=0){var i=q(gf.MSK,N),gP={};
gP.id=c9.YV()+"-d71c-11e5-b1ae-a548a96e5f9f";gP.name="someImage";gP.Rv=i;J.x0(gP);var fa=i[0];for(var G=0;
G<fa.length;G+=4){fa[G+3]=255-fa[G];fa[G]=fa[G+1]=fa[G+2]=255}var dV=JSON.parse(c3.kD[c3.order.indexOf("patternFill")]);
dV.Opct.v.val=Math.round(ca.FTB/10);dV.Algn.v=!0;dV.Ptrn.v.Idnt.v=gP.id;C.patternFillMulti.v.unshift({t:"Objc",v:dV})}if(I&&_.IMG){a(_.IMG,J,"IMG",N);
var eI=J.t[J.t.length-1];eI.opacity=Y.opacity;return}Y.ZB(J)}else console.log("unknown layer type",S,_);
J.t.push(Y)}function j(_,J){var S=JSON.parse(c3.default);for(var G=0;G<c3.order.length;G++)S[c3.qV[G]]={t:"VlLs",v:[]};
if(_==null)return S;var N=_.EPS;if(!(N instanceof Array))N=[N];for(var G=0;G<N.length;G++){var Y=N[G].DCE,U={};
for(var g=0;g<Y.length;g++)U[Y[g].DCK]=Y[g].DCV;if(U.EffectIsVisible=="false")continue;var M=U.mkbFile_WriteOnly_TemporaryEffectUiName;
if(M=="Gaussian Blur..."&&J){J.gE+=parseFloat(U.gaussian_blur_radius);continue}var C=["Drop Shadow","Inner Bevel","Inner Glow"].indexOf(M);
if(C==-1){continue}var y=["DrSh","ebbl","IrGl"][C],i=c3.qV[c3.order.indexOf(y)],Q=JSON.parse(c3.kD[c3.order.indexOf(y)]);
S[i].v.unshift({t:"Objc",v:Q});if(y=="DrSh"){Q.uglg.v=!1;L(U,"ShadowDistance",Q,"Dstn");L(U,"ShadowBlur",Q,"blur");
L(U,"ShadowAngle",Q,"lagl",180);Q.Opct.v.val=100;H(U,"ShadowColor",Q,"Clr")}if(y=="IrGl"){Q.Md.v.BlnM="Nrml";
var m=U.MaskSoftness,n=U.GlowWidth;if(m&&n){m=parseInt(m);n=parseInt(n);Q.blur.v.val=n+m;Q.Ckmt.v.val=Math.round(100*n/(n+m))}L(U,"BevelContrast",Q,"Opct");
H(U,"OuterBevelColor",Q,"Clr")}if(y=="ebbl"){Q.uglg.v=!1;L(U,"BevelWidth",Q,"blur");L(U,"AngleSoftness",Q,"Sftn");
L(U,"BevelContrast",Q,"srgR");L(U,"LightAngle",Q,"lagl")}}return S}function L(_,J,S,N,Y){var U=_[J];
if(Y==null)Y=0;if(U)S[N].v.val=parseInt(U)+Y}function H(_,J,S,N){var Y=_[J];if(Y){Y=Y.slice(1);if(Y.length==6)Y=Y+"ff";
if(Y.length!=8)throw"e";var U=Z(parseInt(Y,16)),g=S[N].v;g.Rd.v=U[0]*255;g.Grn.v=U[1]*255;g.Bl.v=U[2]*255;
S.Opct.v.val=Math.round(S.Opct.v.val/100*U[3]*100)}}return E}();function cE(){}cE.Hg={adF:["PNG","JPG","SVG","GIF","PDF"],alV:"WEBP BMP TIFF ICO DDS TGA PPM RAW EMF DXF".split(" ")};
cE.bO={ac5:function(h,e){fetch(h).then(function($){return $.arrayBuffer()}).then(function($){var Z=new Uint8Array($),c=0,a="";
if(e){c=Z.length;var q={level:9},E=pako.deflateRaw(Z,q),P=UZIP.deflateRaw(Z,q);console.log(c,E.length,P.length);
Z=E.length<P.length?E:P}for(var G=0;G<Z.length;G++)a+=String.fromCharCode(Z[G]);var j=btoa(a);console.log(JSON.stringify([c,j]))})},get:function(h,e){var $=BINDB[h],Z=Date.now(),c=atob($[1]),q=c.length,E=new Uint8Array(q);
for(var G=0;G<q;G++)E[G]=c.charCodeAt(G);if($[0]!=0){var P=new Uint8Array($[0]);UZIP.inflateRaw(E,P);
E=P}if(e){var a=cE.B3(E.buffer);E=cE.fy(a).Cj(E.buffer)}return E}};cE.B3=function(h){if(!(h instanceof ArrayBuffer)){console.log("Input is not ArrayBuffer")}var e=new Uint8Array(h),$=cE.$E,Z,c=0,q=e.length-1;
if($(e,[239,187,191]))c=3;while(c<e.length&&(e[c]==9||e[c]==10||e[c]==13||e[c]==32))c++;while(q!=0&&(e[q]==9||e[q]==10||e[q]==13||e[q]==32))q--;
if($(e,[56,66,80,83]))Z="psd";if($(e,[120]))Z="pxd";if($(e,[103,105,109,112,32,120,99,102,32]))Z="xcf";
if($(e,[102,105,103,45,107,105,119,105]))Z="fig";if($(e,[137,80,78,71,13,10,26,10])){Z="png";var E=8;
while(E<e.length){var P=k.n(e,E);E+=4;var a=k.dd(e,E,4);E+=4;if(a=="mkTS")Z="fpng";E+=P+4}}if($(e,[87,76]))Z="cdr";
if($(e,[82,73,70,70])){var j=d_.Hm(e),L=j.$v;if(L=="WEBP")Z="webp";else if(L.slice(0,3)=="CDR")Z="cdr";
else Z=L}if($(e,[70,79,82,77])||$(e,[76,73,83,84])||$(e,[67,65,84,32])){var j=gi.Hm(e),L=j.$v;if(L=="ILBM")Z="ilbm";
else Z=L}if($(e,[255,216,255]))Z="jpg";if($(e,[0,0,0,12,106,80,32,32]))Z="jpg";if($(e,[48,0,1,0],4))Z="jpg";
if($(e,[71,73,70,56]))Z="gif";if($(e,[0,0,0,2,121,102,113,76]))Z="msh";if($(e,[0,0,0,3,121,102,113,76]))Z="msh";
if($(e,[0,0,0,16]))Z="atn";if($(e,[0,1]))Z="aco";if($(e,[0,2]))Z="aco";if([0,1].indexOf(e[1])!=-1&&[1,2,3,9,10,11].indexOf(e[2])!=-1&&[0,16,24,32].indexOf(e[7])!=-1)Z="tga";
if($(e,[0,2,56,66,83,76]))Z="asl";if($(e,[0,1,0,-1,0,2,0]))Z="abr";if($(e,[0,2,0,-1,0,2,0]))Z="abr";
if($(e,[0,6,0,1]))Z="abr";if($(e,[0,6,0,2]))Z="abr";if($(e,[0,7,0,2]))Z="abr";if($(e,[0,9,0,2]))Z="abr";
if($(e,[0,10,0,2]))Z="abr";if($(e,[56,66,70,83]))Z="shc";if($(e,[56,66,80,84]))Z="pat";if($(e,[56,66,71,82]))Z="grd";
if($(e,[56,66,84,80]))Z="tpl";if($(e,[0,4,0,5]))Z="acv";if($(e,[99,117,115,104]))Z="csh";if($(e,[0,1,0,0,0]))Z="otf";
if($(e,[79,84,84,79]))Z="otf";if($(e,[116,116,99,102]))Z="otf";if($(e,[68,68,83,32]))Z="dds";if($(e,[80,86,82,3]))Z="pvr";
if($(e,[86,84,70,0]))Z="vtf";if($(e,[83,73,77,80]))Z="fits";if($(e,[0,0,1,0]))Z="ico";if($(e,[66,77]))Z="bmp";
if($(e,[40,0,0,0]))Z="bmp";if($(e,[80,49]))Z="ppm";if($(e,[80,50]))Z="ppm";if($(e,[80,51]))Z="ppm";if($(e,[80,52]))Z="ppm";
if($(e,[80,53]))Z="ppm";if($(e,[80,54]))Z="ppm";if($(e,[73,73,42,0]))Z="tiff";if($(e,[77,77,0,42]))Z="tiff";
if($(e,[70,85,74,73,70,73,76,77]))Z="raf";if($(e,[112]))Z="lif";if($(e,[73,73,26,0]))Z="ciff";if($(e,[83,81,76,105]))Z="sketch";
if($(e,[80,75])){var H=UZIP.parse(h,!0);if(H["document.json"])Z="sketch";else if(H.manifest)Z="xd";else Z="zip"}if($(e,[123]))Z="json";
if(k.n(e,0)==e.length)Z="icc";if($(e,[35]))Z="icc";if($(e,[84,73,84,76]))Z="icc";if($(e,[76,85,84,95]))Z="icc";
if($(e,[60,63,120,109],c)){if(k.O8(e,"<look>")!=-1)Z="icc";else Z="svg"}if($(e,[60,115,118,103],c))Z="svg";
if($(e,[60,33,100,111],c)||$(e,[60,33,68,79],c)){if(k.O8(e,"<svg")!=-1)Z="svg";else Z="html"}if($(e,[37,33])||$(e,[197,208,211,198])){Z="eps"}if($(e,[37,80,68,70],c)){Z="pdf"}else if($(e,[10,69,79,70],q-3))Z="dxf";
if($(e,[215,205,198,154]))Z="wmf";if($(e,[1,0,0,0]))Z="emf";if($(e,[118,47,49,1]))Z="exr";if($(e,[10,10,10,10]))Z="jsx";
if($(e,[77,90]))Z="exe";if(Z==null&&s.raw.Bk(e.length)!=null)return"tiff";return Z};cE.$E=function(h,e,$){if($==null)$=0;
for(var G=0;G<e.length;G++)if(e[G]!=-1&&h[$+G]!=e[G])return!1;return!0};cE.fy=function(h){var e={BMP:cE.a0D,CDR:cE.Wf,DDS:cE.Nz,EMF:cE.ed,DXF:cE.aB,EPS:cE.ID,FIG:cE.Cp,FPNG:cE.ol,GIF:cE._h,ICO:cE.p1,ILBM:cE.mb,FITS:cE.N7,EXR:cE.Qq,JPG:cE.Rj,LIF:cE.rN,PDF:cE.x_,PNG:cE.MD,PPM:cE.Mb,PSD:cE.LW,PXD:cE.Rg,RAF:cE.AR,RAW:cE.EK,SKETCH:cE.wK,SVG:cE.wl,TGA:cE.At,TIFF:cE.LQ,VTF:cE.tn,WEBP:cE.ei,WMF:cE.Tu,XCF:cE.Ac,XD:cE.Dr,EXE:cE.JA,AI:cE.a58};
return e[h.toUpperCase()]};cE.Lf=function(G){var h=cE.Hg.adF,e=cE.Hg.alV,$,Z=[];if(G==null)$=h.concat(e);
else $=G==0?h:e;for(var G=0;G<$.length;G++)if(cE.fy($[G]).pT)Z.push($[G]);return Z};cE.XB=function(h,e,$,Z,c){var q=cE.Me(h,e,$,Z,c),E=cE.Fq(q);
return E.buffer};cE.Fq=function(h){var e=atob(h.split(",").pop()),$=new Uint8Array(e.length);for(var G=0;
G<e.length;G++)$[G]=e.charCodeAt(G);return $};cE.Me=function(h,e,$,Z,c,q){if(!(h instanceof ArrayBuffer))throw"e";
if(Z==null)Z="png";if(Z=="png"&&q==!0){var E=cE.fy("PNG").pT([[h,0]],e,$);return"data:image/png;base64,"+cE.oq(E)}var P=cE.fA;
if(P==null)P=cE.fA=D.w("canvas");if(P.width!=e||P.height!=$){P.width=e;P.height=$}var a=P.getContext("2d"),j=new ImageData(new Uint8ClampedArray(h,0,e*$*4),e,$);
a.putImageData(j,0,0);return P.toDataURL("image/"+Z,c)};cE.a8_=function(h,e,$,Z,c){if(c==null)c=0;var q="<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>",E="<svg  xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"  width=\"128\"  height=\"128\"> "+q+"<g transform=\"translate(64 64) scale("+.25*Math.round(D.M())+")\">";
if(h==1)E+="<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>";
E+="<g filter=\"url(#sofGlow)\"><image transform=\"rotate("+c+")\" xlink:href=\""+e+"\" x=\""+80*$+"\" y=\""+80*Z+"\" height=\"80\" width=\"80\"/></g>"+"</g>"+"</svg>";
var P=new Uint8Array(E.length);k.Gn(E,P,0);var a="data:image/svg+xml;base64,"+cE.oq(P.buffer);return{bj:a,_:new O(0,0,128,128),yE:new eu(64,64)}};
cE.oq=function(h){var e=new Uint8Array(h),$="";for(var G=0;G<e.length;G++)$+=String.fromCharCode(e[G]);
return btoa($)};cE.ajU=function(h){var e=atob(h),$=e.length,Z=new Uint8Array($);for(var G=0;G<$;G++)Z[G]=e.charCodeAt(G);
return Z.buffer};cE.i0=function(h){var e=[],$=[];for(var G=0;G<h.t.length;G++){var Z=h.t[G];if(Z.getName().slice(0,3)=="_a_"){e.push(G);
$.push(Z.o6())}}return[e,$]};cE.JS=function(h,e,$,Z,c,q){if($==null)$=h.d;if(Z==null)Z=h.v;var E=new O(0,0,h.d,h.v),P=new i7($/(h.d+.001),0,0,Z/(h.v+.001),0,0),j;
e=e.toUpperCase();var a=cE.fy(e);if(a._Q){h.v2();j=a.pT(h,$,Z,c,q)}else{var L=cE.i0(h),H=L[0],_=L[1],J;
if(h.Qe.length!=0){J=[];for(var G=0;G<h.Qe.length;G++)J.push(h.Qe[G].tM(E))}if(H.length<2){var S;if($==h.d&&Z==h.v)S=h.v2().buffer;
else{var N=f.o.D8([h.v2(),E],P);S=N.buffer.buffer}j=a.pT([[S,0,h.Ay,h.ZG,J]],$,Z,c)}else{var Y=[];for(var G=0;
G<H.length;G++){var U=H[G],S;for(var g=0;g<H.length;g++)h.t[H[g]].QL(H[g]==U);h.Nq();h.s();h.cm();if($==h.d&&Z==h.v)S=h.v2().buffer.slice(0);
else{var N=f.o.D8([h.v2(),E],P);S=N.buffer.buffer}var M=h.t[U].getName().split(",");Y.push([S,M[1]?parseInt(M[1]):100,h.Ay,h.ZG,J])}for(var G=0;
G<H.length;G++)h.t[H[G]].QL(_[G]);h.s();h.cm();if(c){var C=c.length,y=c[C-2],i=c[C-1],Q=c[C-4]/100;if(Q!=1)for(var G=0;
G<Y.length;G++)Y[G][1]=Math.round((Y[G][1]==0?16:Y[G][1])/Q);if(y)Y.reverse();if(i){var m=Y.slice(1,Y.length-1);
m.reverse();Y=Y.concat(m)}}j=a.pT(Y,$,Z,c)}}return j};cE._E=function(h,e){var $=e[0].c5&&e[0].c5.startsWith("_a_"),Z,c=new c9(h+".psd"),q=new O(0,0,1,1);
if($){Z=c.by();Z.add.lsct=hJ.sE;Z.aq(h);Z.oG="pass";Z.GO=24;Z.QL(!0);c.t.push(c.d_())}for(var G=0;G<e.length;
G++){var E=e[G];q=q.iJ(E.Au);var P=c.by();P.QL(G==0);P.aq(e.length==1?"Background":"Layer "+G);if(G==0&&E.Ay)c.Ay=E.Ay;
if(G==0&&E.ZG)c.ZG=E.ZG;if(E.c5)P.aq(E.c5);if(E.Mw)for(var G=0;G<E.Mw.length;G++){var a=E.Mw[G],j=c9.Bd(a[0]);
j.add.vmsk.b=a[1];s.W.wD(a[1],new i7(q.d,0,0,q.v,0,0));c.DZ.push(j)}P.rect=E.Au.clone();P.buffer=new Uint8Array(E.data);
s.Wm(P);c.t.push(P)}if($)c.t.push(Z);if(e[0].Qe){for(var G=0;G<e[0].Qe.length;G++){var L=new o.kq;c.Qe.push(L);
L.rect=e[0].Au.clone();L.channel=e[0].Qe[G]}}c.C=[$?c.t.length-1:0];c.d=q.d;c.v=q.v;c.buffer=s.m(q.X()*4);
c.s();return c};cE.MD={};cE.MD.pT=function(h,e,$,Z){if(Z==null)Z=[100,!1,0,0,0];var c={sRGB:1,loop:Z[3]};
if(h[0][2]!=null){var q=Math.round(h[0][2]*(1e4/254));c.pHYs=[q,q,1]}var E=Z[0],P=E==100?0:Math.max(2,Math.floor(E*5));
if(P==5)P=4;var a=[],j=[];for(var G=0;G<h.length;G++){a.push(h[G][0]);j.push(h[G][1])}var L=UPNG.encode(a,e,$,P,j,c,Z[1]);
return L};cE.MD.a9v=function(h,e,$){return UPNG.encodeLL([h],e,$,3,1,8)};cE.MD.Cj=function(h){var e=Date.now(),$=UPNG.decode(h),Z=UPNG.toRGBA8($),c=$.width,q=$.height,E=0;
if($.tabs.pHYs)E=Math.round($.tabs.pHYs[0]*254/1e4);if(Z.length==1)return[{Au:new O(0,0,c,q),data:Z[0],Ay:E}];
var P=[];for(var G=0;G<Z.length;G++){P.push({c5:"_a_frm"+G+","+$.frames[G].delay,Au:new O(0,0,c,q),data:Z[G],Ay:E})}return P};
cE.Mb={};cE.Mb.pT=function(h,e,$,Z){var c=new Uint8Array(h[0][0]),q=e*$,E=q*3,P="P6\n"+e+" "+$+"\n255\n",a=P.length,j=s.m(a+E,!0);
for(var G=0;G<a;G++)j[G]=P.charCodeAt(G);for(var G=0;G<q;G++){var L=G*4,H=G*3+a;j[H]=c[L];j[H+1]=c[L+1];
j[H+2]=c[L+2]}return j.buffer};cE.Mb.Cj=function(h){h=new Uint8Array(h);var e=[" ".charCodeAt(0),"\n".charCodeAt(0),"\t".charCodeAt(0),"\r".charCodeAt(0)],$=0,Z=String.fromCharCode(h[0])+String.fromCharCode(h[1]),c=[],q=0,E=Z=="P1"||Z=="P4"?2:3;
for($=2;$<h.length;$++){var P=h[$],a=String.fromCharCode(P);if(P=="#".charCodeAt(0)){while(h[$]!="\n".charCodeAt(0))$++;
continue}var j=e.indexOf(P)!=-1;if(q==0&&!j){c.push(a);q=1;continue}if(q==1&&!j){c[c.length-1]+=a;continue}if(q==1&&j){q=0;
if(c.length==E)break;continue}}var L=parseInt(c[0]),H=parseInt(c[1]),_=L*H*4,J=Z=="P1"||Z=="P4"?1:255/parseInt(c[2]),S=s.m(_);
if(Z=="P1"||Z=="P2"||Z=="P3"){var N="",Y=0,q=0,U="#".charCodeAt(0);for(var G=$;G<h.length;G++){var P=h[G],a=String.fromCharCode(P),j=e.indexOf(P)!=-1;
if(P==U){while(h[G]!="\n".charCodeAt(0))G++}else if(q==0&&!j){N=a;q=1}else if(q==1){if(j){q=0;var g=parseInt(N);
N="";if(Z=="P1"){S[Y]=S[Y+1]=S[Y+2]=(1-g)*255;S[Y+3]=255;Y+=4}if(Z=="P2"){S[Y]=S[Y+1]=S[Y+2]=Math.round(g*J);
S[Y+3]=255;Y+=4}if(Z=="P3"){S[Y]=Math.round(g*J);Y++;if((Y&3)==3){S[Y]=255;Y++}}}else N+=a}}}var M=L*H;
if(Z=="P4")for(var C=0;C<H;C++){var y=C*8*Math.ceil(L/8);for(var i=0;i<L;i++){var G=y+i,Q=h[$+1+(G>>3)];
Q=Q>>7-(G&7)&1;var m=C*L+i<<2;S[m]=S[m+1]=S[m+2]=(1-Q)*255;S[m+3]=255}}if(Z=="P5")for(var G=0;G<M;G++){var m=4*G;
S[m]=S[m+1]=S[m+2]=Math.round(h[$+1+G]*J);S[m+3]=255}if(Z=="P6")for(var G=0;G<M;G++){var m=4*G,n=$+1+3*G;
S[m]=Math.round(h[n]*J);S[m+1]=Math.round(h[n+1]*J);S[m+2]=Math.round(h[n+2]*J);S[m+3]=255}return[{Au:new O(0,0,L,H),data:S.buffer}]};
cE.Nz={};cE.Nz.pT=function(h,e,$,Z){var c=new Uint8Array(h[0][0]);if((e&3)!=0||($&3)!=0){var q=e+(4-(e&3)),E=$+(4-($&3)),P=new Uint8Array(q*E*4);
s.Ut(P,4278190080);s.hX(c,new O(0,0,e,$),P,new O(0,0,q,E));c=P;e=q;$=E}return UTEX.DDS.encode(c.buffer,e,$)};
cE.Nz.Cj=function(h){var e=UTEX.DDS.decode(h)[0];return[{Au:new O(0,0,e.width,e.height),data:e.image}]};
cE.tn={};cE.tn.Cj=function(h){var e=UTEX.VTF.decode(h).pop();return[{Au:new O(0,0,e.width,e.height),data:e.image}]};
cE.Rj={};cE.Rj.Sd=null;cE.Rj.a0a=function(h,e){var $=cE.Rj.Sd,Z=h.byteLength,c=e.width,q=e.height,E=c*q,P=5e6+2*Z+E*(e.progressive?Math.max(2,e.numComponents)*4+1:8),a=$.instance.exports,j=a.memory.buffer.byteLength;
if(j<P)a.memory.grow(P-j>>>16);var L=new Uint8Array(a.memory.buffer),H=a.malloc(Z);L.set(new Uint8Array(h),H);
var _=a.malloc(4),J=a.malloc(4),t=a.malloc(4),S=a.stbi_load_from_memory(H,Z,_,J,t,4);a.free(H);a.free(_,J,t);
a.free(S);var N=L.slice(S,S+E*4);return N};(function(){var h=cE.bO.get("wasm/jpg").buffer;if(window.WebAssembly==null)window.alert("Your browser is too old. Please, update it.");
WebAssembly.instantiate(h).then(function(e){cE.Rj.Sd=e})}());cE.Rj.pT=function(h,e,$,Z){if(Z==null)Z=[70];
var c=h[0],q=new Uint8Array(c[0]);if(s.AC(q)){var E=new Uint8Array(q.length),P=new O(0,0,e,$);s.Ut(E,4294967295);
s.p.Jn("norm",q,P,E,P,P,1);q=E}var a=new Uint8Array(cE.XB(q.buffer,e,$,"jpeg",Z[0]/100));if(c[2]!=null){var j=cE.Rj.om(a)[224][0]+2;
j+=9;a[j]=1;k.OF(a,j+1,c[2]);k.OF(a,j+3,c[2])}if(c[3]!=null&&Z[1]==!0&&Object.keys(c[3]).length!=0){var L=0,H=0,_=0,J=dn.RM(c[3]),S=new Uint8Array(UTIF.encode([J])),N="http://ns.adobe.com/xap/1.0/",M=0,i=0,K=20;
L=4+6+S.length;var Y=dn.Za(c[3]),U=k.Ft(Y);H=4+N.length+1+U.length;var g=dn.ahe(c[3]);for(var G=0;G<g.length;
G++)M+=5+g[G][1].length;var C=M+(M&1),y=s.m(14+4+2+4+C);k.KP(y,i,"Photoshop 3.0");i+=14;k.KP(y,i,"8BIM");
i+=4;y[i++]=4;y[i++]=4;i+=2;k.K_(y,i,M);i+=4;for(var G=0;G<g.length;G++){var Q=g[G],m=Q[1];y[i++]=28;
y[i++]=2;y[i++]=Q[0];k.OF(y,i,m.length);i+=2;k.KP(y,i,m);i+=m.length}_=4+y.length;var n=L+H+_,u=new Uint8Array(a.length+n);
for(var G=0;G<20;G++)u[G]=a[G];for(var G=20;G<a.length;G++)u[G+n]=a[G];u[K]=255;u[K+1]=225;k.OF(u,K+2,L-2);
k.KP(u,K+4,"Exif");for(var G=0;G<S.length;G++)u[K+10+G]=S[G];K+=L;u[K]=255;u[K+1]=225;k.OF(u,K+2,H-2);
k.KP(u,K+4,N);for(var G=0;G<U.length;G++)u[K+4+N.length+1+G]=U[G];K+=H;u[K]=255;u[K+1]=237;k.OF(u,K+2,_-2);
for(var G=0;G<y.length;G++)u[K+4+G]=y[G];K+=_;a=u}return a.buffer};cE.Rj.om=function(h){var e=0,$=[],Z=h.length;
while(e<Z){while(h[e]==255)e++;var c=h[e];e++;if($[c]==null)$[c]=[];$[c].push(e-2);if(c==216)continue;
if(c==217)break;if(224<=c&&c<=239||c==218||c==219||c==192||c==193||c==194||c==196||c==221||c==254){var q=k.oO(h,e);
e+=q;if(c==218)while(e<Z&&(h[e]!=255||(h[e+1]==0||208<=h[e+1]&&h[e+1]<=215)))e++;continue}console.log("unknown marker ",c.toString(16),e);
break}if($[217]==null){console.log("EOI marker missing");var E=h.length-2;h[E]=255;h[E+1]=217;$[217]=[E]}return $};
cE.Rj.ahQ=function(h){h=new Uint8Array(h);if(h[0]!=255)return h.buffer;var e=cE.Rj.om(h),$=cE.Rj.NR(h,e);
if($.numComponents!=4)return h.buffer;var Z=$.width,c=$.height,q=cE.Rj.MU(h,e,!0);return cE.Rj.pT([[q[0].data]],Z,c,[85])};
cE.Rj.NR=function(h,e){var $=(e[192]?e[192]:e[193]?e[193]:e[194])[0]+4,Z={};Z.progressive=e[194]!=null;
Z.precision=h[$];$++;Z.height=k.oO(h,$);$+=2;Z.width=k.oO(h,$);$+=2;Z.numComponents=h[$];$++;if(e[224]){var c=Z.jfif={};
$=e[224][0]+2+2+5+2;c.densityUnits=h[$];$++;c.xDensity=k.oO(h,$);$+=2;c.yDensity=k.oO(h,$);$+=2}if(e[238]){var c=Z.adobe={};
$=e[238][0]+2+2+6;c.version=h[$];$++;c.flags0=k.oO(h,$);$+=2;c.flags1=k.oO(h,$);$+=2;c.transform=h[$];
$++}return Z};cE.Rj.adB=function(h,e,$){var Z=e,c=k.oO(h,Z);Z+=2;var q=k.dd(h,Z,4);if(q=="Exif"){Z+=6;
var E=h.slice(Z,Z+c-8),P;try{P=UTIF.decode(E.buffer,{parseMN:!1,debug:!1})}catch(e_){}if(P)$.exif=P}else if(q=="http"){var a=0;
while(h[Z+a]!=0)a++;var j=k.dd(h,Z,a);Z+=a+1;if(j=="http://ns.adobe.com/xmp/extension/"){var L=k.dd(h,Z,32);
Z+=32;Z+=8;var H=e+c-Z;while(h[Z+H-1]==0)H--;if($.xmp_extn==null)$.xmp_extn="";try{$.xmp_extn+=k.rM(h,Z,H)}catch(e_){}}else if(j=="http://ns.adobe.com/xap/1.0/"){var _=k.rM(h.slice(Z,Z+c-a-3));
if(_[0]=="?")_="<"+_;$.xmp=_}}else console.log(q)};cE.Rj.MU=function(h,e,$){var Z=cE.Rj.NR(h,e),c=Z.width,q=Z.height,E=c*q,P,a=-1,N=72,Y;
if(Z.adobe)a=Z.adobe.transform;if($||c*q>15e7||a==0||a==2){var j=new PDFJS.JpegImage;j.parse(h);var L=j.getData({width:c,height:q,forceRGB:!0,isSourcePDF:$}),P=s.m(E*4);
for(var G=0;G<E;G++){var H=G<<2,_=H-G;P[H]=L[_];P[H+1]=L[_+1];P[H+2]=L[_+2];P[H+3]=255}}else{P=cE.Rj.a0a(h.buffer,Z)}var J=e[225];
if(J)for(var G=0;G<J.length;G++)cE.Rj.adB(h,J[G]+2,Z);var S=e[217][0]+2;if(S!=h.length)Z.suffix=h.slice(S);
var U=[c,q,1,0,0,0,1,0];if(Z.jfif&&Z.jfif.densityUnits!=0){N=Math.round([72,1,2.54][Z.jfif.densityUnits]*Z.jfif.xDensity)}else if(Z.exif&&Z.exif[0].t282!=null){var g=Z.exif[0].t282[0];
N=g[0]/g[1]}if(Z.exif){var M=Z.exif;Y=dn.Vm(M[0]);var C=M[0].t274;if(C)C=C[0];if(C!=null&&C>1&&C<20)U=s.raw.C4(C,c,q)}if(Z.xmp){Y=dn.Vi(Z.xmp,Y)}var y=e[237],i=[],Q=[];
if(y){var m=new Uint8Array(65536),n=0,u=0;for(var G=0;G<y.length;G++){u=y[G]+2;var K=u+k.oO(h,u);u+=2;
var F=u;while(h[u]!=0)u++;u++;var b=k.dd(h,F,u-F-1),d=K-u;while(n+d>m.length){var W=new Uint8Array(m.length*2);
W.set(m);m=W}var A=new Uint8Array(h.buffer,u,d);m.set(A,n);n+=d}u=0;h=m;while(u<n){var z=k.dd(h,u,4);
u+=4;if(z!="8BIM"&&z!="AgHg"&&z!="PHUT"&&z!="DCSR")throw z;var T=k.oO(h,u);u+=2;var R=h[u++],I=k.dd(h,u,R);
u+=R;if((R&1)==0)u++;var r=k.n(h,u);u+=4;var S=u+r+(r&1);if(T==1028){while(u+4<S){var x=h[u++],X=h[u++],l=h[u++],hH=k.oO(h,u);
u+=2;if(x==28&&X==2)i.push([l,k.dd(h,u,hH)]);u+=hH}}else if((T&2e3)==2e3){var hZ=bS.KJ(h,u,r);Q.push([I,hZ])}else{}u=S}if(i.length!=0)Y=dn.aoJ(i,Y)}var gj=[{Au:new O(0,0,c,q),data:P.buffer,Ay:N,ZG:Y,Mw:Q.length==0?null:Q}],Y=Z.xmp_extn;
if(Y){var hO=new DOMParser,d3=hO.parseFromString(Y,"image/svg+xml"),d3=d3.children[0].children[0].children[0],v=[d3.getAttribute("GImage:Data"),d3.getAttribute("GDepth:Data")];
for(var G=0;G<v.length;G++)if(v[G]){var hl=atob(v[G]),ht=new Uint8Array(hl.length);k.KP(ht,0,hl);ht=ht.buffer;
var ga=cE.B3(ht),eB=cE.fy(ga).Cj(ht);gj.push(eB[0])}}if(Z.suffix){var bP=Z.suffix,ek=k.dd(bP,4,4),b_=k.O8(bP,String.fromCharCode(255)+String.fromCharCode(216)+String.fromCharCode(255));
if(cE.$E(bP,[0,0,1,10,14,0,0,0])){var u=0;while(u!=bP.length){var fz=k.EW(bP,u+2);u+=4;var ca={2272:12,2320:21,2561:13,2625:21,2721:3,2608:0}[fz];
if(ca!=null){var gf=k.bt(bP,u);u+=4;var bb=k.dd(bP,u,gf);u+=gf;var b2=k.dd(bP,u,ca);u+=ca;if(fz==2608){var dV=k.n(bP,u+24);
u+=dV+24;var ch=k.n(bP,u);u+=ch;alert("Photopea found a "+eE.vp(dV)+" MP4 video inside your image.",4e3)}}else if(fz==18502){while(k.dd(bP,u,4)!="SEFT")u+=4;
u+=4}else{break;console.log(k.PH(bP,u,128));console.log(bP.slice(u));throw fz.toString(16)}}}else if(ek=="ftyp"){alert("Photopea found a "+eE.vp(bP.length)+" MP4 video inside your image.",4e3)}else if(k.dd(bP,0,4)=="fixe"){alert("Unknown data - "+bP.length+" B - at the end of the file",3e3);
var u=4,r=k.bt(bP,u);u+=4;var hE=k.bt(bP,u);u+=4;var dS=k.bt(bP,u);u+=4;console.log(r,hE,dS,bP.slice(u,u+84));
u+=84;var e1=k.dd(bP,u,32);u+=32;u+=8;var e1=k.dd(bP,u,32);u+=32}else if(k.dd(bP,8,13)=="FocusShot_Map"){var eG=k.n(bP,0),hH=k.bt(bP,4),ht=s.m(E*4),dq=s.m(E*4);
for(var f2=0;f2<q;f2++)for(var a3=0;a3<c;a3++){var G=f2*c+a3,H=G<<2,bm=8+13+((f2>>>1)*c+a3>>>1),h2=bP[bm],ag=bP[bm+(E>>>2)];
ht[H]=ht[H+1]=ht[H+2]=h2;ht[H+3]=255;dq[H]=dq[H+1]=dq[H+2]=ag;dq[H+3]=255}gj.push({Au:new O(0,0,c,q),data:ht.buffer},{Au:new O(0,0,c,q),data:dq.buffer})}else if(ek=="edof"){var C=bP[8+7];
console.log(C.toString(16));var u=8+16,eU=k.EW(bP,u),iz=k.EW(bP,u+2),E=eU*iz;u+=4;u+=32+16;var d2=s.m(E*4);
for(var G=0;G<E;G++){var H=G<<2;d2[H]=d2[H+1]=d2[H+2]=bP[u+G];d2[H+3]=255}if(C==16){}else if(C==19){var gP=d2.slice(0);
s.I.JR(d2,gP,eU,iz);var fa=eU;eU=iz;iz=fa;s.I.a8F(gP,d2,eU,iz)}else throw"Unknown orientation of a depth map";
gj.push({Au:new O(0,0,eU,iz),data:d2.buffer})}else if(b_!=-1&&!(bP[0]==255&&bP[1]==129)){try{if(b_!=0)bP=bP.slice(b_);
var eB=cE.fy("jpg").Cj(bP.buffer);for(var G=0;G<eB.length;G++)gj.push(eB[G])}catch(e_){}}}if(gj.length>1){var eI=gj[0].Au;
gj[0].c5="Main";for(var G=1;G<gj.length;G++){gj[G].c5=cE.Rj.a3V(new Uint8Array(gj[G].data))?"Depth Map":null;
var it=gj[G].Au;if(!it.dz(eI)){var ic=eI.d/it.d,iK=eI.v/it.v,fA=new i7;fA.scale(ic,iK);var iB=f.o.Pf([new Uint8Array(gj[G].data),it],1,s.I.dW(fA));
gj[G].Au=iB.rect;gj[G].data=iB.buffer}}}if(cE.Rj.n0==1)if(U[2]!=1||U[6]!=1)for(var G=0;G<gj.length;G++){var hG=gj[G],dt=new Uint8Array(hG.data),c=hG.Au.d,q=hG.Au.v,eU=U[0],iz=U[1],P=s.m(eU*iz*4);
s.I.rK(dt,c,q,P,U);hG.Au=new O(0,0,eU,iz);hG.data=P.buffer}return gj};cE.Rj.a3V=function(h){var e=!0;
for(var G=0;G<h.length;G+=4){e=e&&h[G]==h[G+1]&&h[G+1]==h[G+2]}return e};cE.Rj.n0=0;cE.Rj.Cj=function(h,e,$){h=new Uint8Array(h);
if(h[0]==255){var Z=cE.Rj.om(h);if(Z[195]==null){cE.Rj.n0++;var c=cE.Rj.MU(h,Z,!1);cE.Rj.n0--;return c}var q=k.oO(h,Z[195][0]+5),E=k.oO(h,Z[195][0]+7),P=UTIF.LosslessJpegDecode(h),a=E*q,j=s.m(a*4);
for(var G=0;G<a;G++){var L=G<<2,H=L-G;j[L]=P[H];j[L+1]=P[H+1];j[L+2]=P[H+2];j[L+3]=255}return[{Au:new O(0,0,E,q),data:j.buffer}]}else if(h[0]==0&&h[4]==48&&h[6]==1){var _=h,J=new PDFJS.Jbig2Image,S=[];
if(e)S.push({data:e,start:0,end:e.length});S.push({data:_,start:0,end:_.length});var P=J.parseChunks(S);
if(!$)for(var G=0;G<P.length;G++)P[G]=~P[G];var E=k.n(h,11),q=k.n(h,15),N=Math.ceil(E/8),Y=s.m(E*q*4);
for(var U=0;U<q;U++){var g=U*N;for(var M=0;M<E;M++){var L=(U*E+M)*4,C=P[g+(M>>>3)]>>>7-(M&7)&1,y=C*255;
Y[L]=y;Y[L+1]=y;Y[L+2]=y;Y[L+3]=255}}return[{Au:new O(0,0,E,q),data:Y.buffer}]}else{var J=new PDFJS.JpxImage;
J.parse(h);var E=J.width,q=J.height,i=J.tiles,Q=J.componentsCount,m=new Uint8Array(E*q*4),n=new O(0,0,E,q);
for(var J=0;J<i.length;J++){var u=i[J],K=u.width,F=u.height,b=K*F,hi=u.items,d=new O(u.left,u.top,K,F),W=new Uint8Array(b*4);
if(Q==1)for(var G=0;G<b;G++){var A=hi[G],L=G*4;W[L]=A;W[L+1]=A;W[L+2]=A;W[L+3]=255}else if(Q==3)for(var G=0;
G<b;G++){var H=G*3,L=G*4;W[L]=hi[H];W[L+1]=hi[H+1];W[L+2]=hi[H+2];W[L+3]=255}else console.log("Unknown number of components: "+Q);
s.hX(W,d,m,n)}return[{Au:n,data:m.buffer}]}};cE.ei={};cE.ei.pT=function(h,e,$,Z){if(Z==null)Z=[70,0,0,0];
var c=Z[0]/100,a=0;if(h.length==1)return cE.XB(h[0][0],e,$,"webp",c);var q=k.Ed,E=k.t2,P=new e4;q(P,a,"RIFF    WEBPVP8X");
a+=16;E(P,a,10);a+=4;E(P,a,18);a+=4;E(P,a,e-1);a+=3;E(P,a,$-1);a+=3;q(P,a,"ANIM");a+=4;E(P,a,6);a+=4;
P.sN(a,4);P.data[a+3]=255;k.lc(P,a+4,Z[2]);a+=6;var j=[];for(var G=0;G<h.length;G++){j.push(h[G][0])}var L=UPNG.encode.compress(j,e,$,c==1?0:Math.max(2,Math.floor(c*500)),[!1,!0,!0,0,!0]).frames;
for(var G=0;G<h.length;G++){q(P,a,"ANMF");a+=4;var H=a;a+=4;var _=L[G],J=_.rect,S=[J.x>>>1,J.y>>>1,J.width-1,J.height-1,h[G][1]];
for(var N=0;N<5;N++)E(P,a+3*N,S[N]);a+=15;P.sN(a,1);P.data[a]=1-_.blend<<1|_.dispose;a++;var Y=new Uint8Array(cE.XB(_.img.buffer,J.width,J.height,"webp",1)),U=d_.Hm(Y.buffer).sub,g=k.dd(Y,12,4);
if(g!="VP8L"&&g!="VP8 "&&g!="VP8X")throw"e";var M=g=="VP8 "?0:g=="VP8L"?12:30,C=Y.length-M;P.sN(a,C);
for(var N=0;N<C;N++)P.data[a+N]=Y[M+N];a+=C;var y=a-H-4;E(P,H,y);if((y&1)==1){P.sN(a,1);a++}}E(P,4,a-8);
return P.data.slice(0,a).buffer};(function(){var h=cE.bO.get("wasm/webp").buffer;WebAssembly.instantiate(h).then(function(e){var $=e.instance.exports;
cE.ei.exp=$})}());cE.ei.Cj=function(h){var e=new Uint8Array(h),$=cE.ei.aj$,Z=null,c=d_.Hm(h).sub,q={};
for(var G=0;G<c.length;G++)q[c[G].af]=c[G];var E=q.ANIM,P=q.VP8L,a=q["VP8 "],j=q.VP8X;if(E==null){var L,H;
if(a){L=k.EW(e,a.i+6);H=k.EW(e,a.i+8)}else if(P){var _=k.bt(e,P.i+1);L=(_&(1<<14)-1)+1;H=(_>>>14&(1<<14)-1)+1}else throw"e";
var J=[$(Z,h,{i:0,size:e.length},L,H)];return J}var S=j.i,L=1+(k.bt(e,S+4)&16777215),H=1+(k.bt(e,S+7)&16777215),N=[],Y=new O(0,0,L,H),U=s.m(L*H*4);
for(var G=0;G<c.length;G++){var g=c[G];if(g.af!="ANMF")continue;var M=[];for(var C=0;C<5;C++)M.push(k.bt(e,g.i+C*3)&16777215);
var y=new O(M[0]*2,M[1]*2,M[2]+1,M[3]+1),i=M[4],Q=$(Z,h,{i:g.i+16,size:g.size-16},L,H),m=new Uint8Array(Q.data),n=e[g.i+15];
if(n>>>1==0)s.p.Jn("norm",m,y,U,Y,y,1);else s.hX(m,y,U,Y);N.push({c5:"_a_"+N.length+","+i,Au:Y.clone(),data:U.buffer.slice(0)});
if((n&1)==1){s.Ut(m,0);s.hX(m,y,U,Y)}}return N};cE.ei.aj$=function(h,e,$,Z,c){var q=cE.ei.exp,E=5e6+2*$.size+Z*c*10,P=q.memory,a=P.buffer.byteLength;
if(a<E){q.memory.grow((E-a>>>16)+1)}var j=new Uint8Array(P.buffer),L=q.malloc($.size);j.set(new Uint8Array(e,$.i,$.size),L);
var H=q.malloc(8),_=q.WebPDecodeARGB(L,$.size,H,H+4),J=k.bt(j,H),S=k.bt(j,H+4),N=J*S*4,Y=s.m(N);for(var G=0;
G<N;G+=4){Y[G]=j[_+G+1];Y[G+1]=j[_+G+2];Y[G+2]=j[_+G+3];Y[G+3]=j[_+G]}q.WebPFree(_);q.free(H);q.free(L);
return{Au:new O(0,0,J,S),data:Y.buffer}};cE.a0D=function(){function h(P,a,j,L){var H=new Uint8Array(P[0][0]),_=new Uint32Array(H.buffer),J=[],S={},Y=24,U=0,i=0;
for(var G=0;G<_.length;G++){var N=_[G]&16777215;if(S[N]==null){S[N]=J.length;J.push(N);if(J.length>256){J=null;
break}}}if(J){Y=1;while(1<<Y<J.length)Y*=2;if(Y==2)Y=4}var g={EN:a,CD:j,fK:1,C2:Y,WV:0,a48:U},M=4*Math.floor((g.C2*g.EN+31)/32);
g.size=M*g.CD+2;var C=new e4,y=J?(1<<Y)*4:0;k.Ed(C,i,"BM");i+=2;k.t2(C,i,M*j+16+40+y);i+=4;k.t2(C,i,0);
i+=4;k.t2(C,i,54+y);i+=4;C.sN(i,40);k.t2(C,i,40);i+=4;E(C.data,i,g,M);i+=36;if(J){C.sN(i,y);var Q=C.data;
for(var G=0;G<J.length;G++){var m=i+G*4,n=J[G]>>>16,u=J[G]>>>8&255,K=J[G]&255;Q[m]=n;Q[m+1]=u;Q[m+2]=K}i+=y}C.sN(i,M*j);
if(Y==24)for(var F=0;F<j;F++){var b=i+(j-1-F)*M;for(var d=0;d<a;d++){var W=(F*a+d)*4;C.data[b+d*3+2]=H[W];
C.data[b+d*3+1]=H[W+1];C.data[b+d*3+0]=H[W+2]}}else if(Y==8)for(var F=0;F<j;F++){var b=i+(j-1-F)*M;for(var d=0;
d<a;d++){var W=F*a+d,A=S[_[W]&16777215];C.data[b+d]|=A}}else if(Y==4)for(var F=0;F<j;F++){var b=i+(j-1-F)*M;
for(var d=0;d<a;d++){var W=F*a+d,A=S[_[W]&16777215];C.data[b+(d>>>1)]|=A<<4-(d&1)*4}}else if(Y==1)for(var F=0;
F<j;F++){var b=i+(j-1-F)*M;for(var d=0;d<a;d++){var W=F*a+d,A=S[_[W]&16777215];C.data[b+(d>>>3)]|=A<<7-(d&7)}}i+=M*j+2;
return C.data.slice(0,i).buffer}function e(P){P=new Uint8Array(P);if(k.bt(P,0)==40)return[$(P.buffer,0)];
var a=0,j=k.dd(P,a,2);a+=2;if(j!="BM"){alert("Unsupported BMP format: "+j);return}var L=k.bt(P,a);a+=4;
a+=4;var H=k.bt(P,a);a+=4;return[$(P.buffer,a,H)]}function $(P,a,j){P=new Uint8Array(P);var L=k.bt(P,a),H=q(P,a+4);
if(H.fK!=1)alert("unsupported number of color planes: "+H.fK);if(H.WV!=0&&H.WV!=1&&H.WV!=2&&H.WV!=3){alert("Unsupported BMP compression: "+H.WV);
return}a+=L;var _=a,J=P;if(j==null)j=a;if(H.WV==1||H.WV==2){var S=c(P,j,H);H.C2=8;P=S;j=0}var N=4*Math.floor((H.C2*H.EN+31)/32),Y=H.EN,U=Math.abs(H.CD),g=new Uint8Array(Y*U*4);
g.fill(255);if(H.C2==32)for(var M=0;M<U;M++){var C=j+(U-1-M)*N;for(var y=0;y<Y;y++){var i=(M*Y+y)*4;
g[i]=P[C+y*4+2];g[i+1]=P[C+y*4+1];g[i+2]=P[C+y*4+0];g[i+3]=P[C+y*4+3]}}else if(H.C2==24)for(var M=0;
M<U;M++){var C=j+(U-1-M)*N;for(var y=0;y<Y;y++){var i=(M*Y+y)*4;g[i]=P[C+y*3+2];g[i+1]=P[C+y*3+1];g[i+2]=P[C+y*3+0]}}else if(H.C2==16)for(var M=0;
M<U;M++){var C=j+(U-1-M)*N;for(var y=0;y<Y;y++){var i=(M*Y+y)*4,Q=P[C+y*2+1]<<8|P[C+y*2];g[i]=(Q>>>11)*(255/31);
g[i+1]=(Q>>>5&63)*(255/63);g[i+2]=(Q&31)*(255/31)}}else if(H.C2==8)for(var M=0;M<U;M++){var C=j+(U-1-M)*N;
for(var y=0;y<Y;y++){var i=(M*Y+y)*4,m=P[C+y];g[i]=J[_+4*m+2];g[i+1]=J[_+4*m+1];g[i+2]=J[_+4*m+0]}}else if(H.C2==4)for(var M=0;
M<U;M++){var C=j+(U-1-M)*N;for(var y=0;y<Y;y++){var i=(M*Y+y)*4,m=P[C+(y>>1)];m=m>>4-4*(y&1);m=m&15;
g[i]=J[_+4*m+2];g[i+1]=J[_+4*m+1];g[i+2]=J[_+4*m+0]}}else if(H.C2==1)for(var M=0;M<U;M++){var C=j+(U-1-M)*N;
for(var y=0;y<Y;y++){var i=(M*Y+y)*4,n=P[C+(y>>3)];n=n>>7-(y&7);n=n&1;g[i]=J[_+4*n+2];g[i+1]=J[_+4*n+1];
g[i+2]=J[_+4*n+0]}}else throw"Unknown bit depth "+H.C2;if(H.CD<0){var u=new Uint32Array(g.buffer),K=U>>>1;
for(var M=0;M<K;M++){var F=M*Y,b=(U-M-1)*Y;for(var y=0;y<Y;y++){var d=u[F+y];u[F+y]=u[b+y];u[b+y]=d}}}return{Au:new O(0,0,Y,U),data:g.buffer}}function Z(P,G){return P>>>4-((G&1)<<2)&15}function c(P,a,j){var L=j.EN,H=Math.abs(j.CD),_=new Uint8Array(L*H),J=0,S=0,G=0;
while(S<H){var N=P[a++],Y=P[a++],U=S*L+J;if(N>0){if(j.C2==4)for(G=0;G<N;G++){_[U+G]=Z(Y,G)}else for(G=0;
G<N;G++){_[U+G]=Y}J+=N}else if(N==0&&Y==0){S++;J=0}else if(N==0&&Y==1){break}else if(N==0&&Y==2){J+=P[a++];
S+=P[a++]}else{var g=Y;if(j.C2==4){for(G=0;G<Y;G++){_[U+G]=Z(P[a+(G>>>1)],G)}g=Math.ceil(Y/2)}else{for(G=0;
G<Y;G++){_[U+G]=P[a+G]}}if((g&1)!=0)g++;a+=g;J+=Y}}return _}function q(P,a){var j=k.Mn,L=k.bt,H=k.EW,_={};
_.EN=j(P,a);a+=4;_.CD=j(P,a);a+=4;_.fK=H(P,a);a+=2;_.C2=H(P,a);a+=2;_.WV=L(P,a);a+=4;_.size=L(P,a);a+=4;
var J=j(P,a);a+=4;var S=j(P,a);a+=4;_.a48=L(P,a);a+=4;a+=4;return _}function E(P,a,j,L){k.E5(P,a,j.EN);
a+=4;k.E5(P,a,j.CD);a+=4;k.wB(P,a,j.fK);a+=2;k.wB(P,a,j.C2);a+=2;k.E5(P,a,j.WV);a+=4;k.E5(P,a,j.size);
a+=4;k.E5(P,a,2834);a+=4;k.E5(P,a,2834);a+=4;k.E5(P,a,j.a48);a+=4;a+=4}return{Cj:e,pT:h,af3:$}}();cE._h={};
cE._h.pT=function(h,e,$,Z){if(Z==null)Z=[100,0,0,0,0];var c=[],q=[],E=e*$*4,N=null;for(var P=0;P<h.length;
P++){var a=new Uint8Array(h[P][0].slice(0));for(var G=0;G<E;G+=4){var j=a[G+3]=a[G+3]>127?255:0;if(j==0)a[G]=a[G+1]=a[G+2]=0}c.push(a.buffer);
q.push(h[P][1])}var L=Math.round(2+254*Z[0]/100),H=UPNG.encode.compress(c,e,$,L,[!0,!1,!1,8,!1]),_=H.plte,J=new Uint8Array(4),S=new Uint32Array(J.buffer);
for(var G=0;G<_.length;G++){S[0]=_[G];var Y=J[0];J[0]=J[2];J[2]=Y;_[G]=S[0];if(S[0]==0)N=G}while(_.length<256)_.push(0);
var U=new Uint8Array(2e3+e*$*h.length),g=Z[2],M={palette:_};if(g!=1)M.loop=g==0?0:g-1;var C=new GifWriter(U,e,$,M);
for(var G=0;G<h.length;G++){var y=H.frames[G],i=y.rect,Q=y.blend,m=y.dispose;C.addFrame(i.x,i.y,i.width,i.height,y.img,{transparent:N,disposal:m+1,delay:Math.round(q[G]/10)})}return U.slice(0,C.end()).buffer};
cE._h.Cj=function(h){var e=Date.now(),$=[],Z=UGIF.decode(h),c=UGIF.toRGBA8(Z),q=new O(0,0,Z.width,Z.height);
for(var G=0;G<c.length;G++){var E=Z.frames[G];$.push({Au:q.clone(),c5:"_a_frm"+G+","+E.delay*10,data:c[G]})}return $};
cE.p1={};cE.p1.pT=function(h,e,$,Z){console.log(h);if(e>256||$>256){alert("Maximum ICO size is 256x256 px. Will be cropped.",4e3);
var c=Math.min(e,256),q=Math.min($,256),E=new O(0,0,c,q),P=s.m(E.X()*4),a=new O(0,0,e,$),j=new Uint8Array(h[0][0]);
s.hX(j,a,P,E);h[0][0]=P.buffer;e=c;$=q}var L=new e4,H=0,_=Z&&Z[0]==!0;k.lc(L,H,0);H+=2;k.lc(L,H,_?2:1);
H+=2;k.lc(L,H,1);H+=2;var J=new Uint8Array(cE.fy("png").pT(h,e,$));L.sN(H,16);L.data[H]=e==256?0:e;H++;
L.data[H]=$==256?0:$;H++;H+=2;k.lc(L,H,_?Math.round(e/2):1);H+=2;k.lc(L,H,_?Math.round($/2):32);H+=2;
k.t2(L,H,J.length);H+=4;k.t2(L,H,6+16);H+=4;L.sN(H,J.length);for(var G=0;G<J.length;G++)L.data[H+G]=J[G];
H+=J.length;var S=new Uint8Array(H);for(var G=0;G<H;G++)S[G]=L.data[G];return S.buffer};cE.p1.Cj=function(h){h=new Uint8Array(h);
var e=4,$=k.EW(h,e);e+=2;var Z=[];for(var G=0;G<$;G++){var c=cE.p1.a2L(h,e+G*16),q=h.buffer.slice(c.offset,c.offset+c.size),E=cE.B3(q);
E=E?E:"bmp";if(E=="png"){var P=cE.fy(E),a=P.Cj(q);c.He=a[0]}else{var j=cE.fy("BMP").af3(q,0),q=s.m(c.EN*c.CD*4);
s.hX(new Uint8Array(j.data),new O(0,0,j.Au.d,j.Au.v),q,new O(0,c.CD,c.EN,c.CD));j.data=q.buffer;j.Au.v=c.CD;
c.He=j}Z.push(c)}Z.sort(function(L,H){if(L.EN!=H.EN)return L.EN-H.EN;return L.ahA-H.ahA});return[Z.pop().He]};
cE.p1.a2L=function(h,e){var $={};$.EN=h[e];e++;if($.EN==0)$.EN=256;$.CD=h[e];e++;if($.CD==0)$.CD=256;
$.a3z=h[e];e++;e++;$.af8=k.EW(h,e);e+=2;$.ahA=k.EW(h,e);e+=2;$.size=k.bt(h,e);e+=4;$.offset=k.bt(h,e);
e+=4;return $};cE.LQ={};cE.LQ.Cj=function(h){var e=Date.now(),Z,H=!0;if(s.raw.Bk(h.byteLength))return[s.raw.a7z(h)];
var $=UTIF.decode(h);if($[0].t33421)Z=$[0];else if($[0].subIFD&&$[0].t271&&$[0].t271[0]=="Hasselblad"){Z=$[0].subIFD[0];
Z.t33421=[2,2]}else if($[0].subIFD&&$[0].subIFD[0].t33421){Z=$[0].subIFD[0];if(Z.t50706==null){if(Z.t258[0]==8)Z.t258[0]=12}}else if($[0].subIFD&&$[0].subIFD[0]&&$[0].subIFD[0].t262&&$[0].subIFD[0].t262[0]==34892)Z=$[0].subIFD[0];
else if($[0].subIFD&&$[0].subIFD[1]&&$[0].subIFD[1].t33421)Z=$[0].subIFD[1];else if($[0].subIFD&&$[0].subIFD[2]&&$[0].subIFD[2].t33421)Z=$[0].subIFD[2];
else if($[3]&&$[3].t50648){var c=$[0].exifIFD,q=c.makerNote;Z=$[3];var E=q.t224[1],P=q.t224[2];Z.t256=[E];
Z.t257=[P];Z.t258=[16];Z.t259=[7];Z.t262=[32803];Z.t277=[1];Z.t33421=[2,2];var a=Z.t50656[0],j=s.raw.d0[a];
if(j==null)throw"e";Z.t33422=j}if(Z){UTIF.decodeImage(h,Z,$);for(var L in $[0])if((L[0]=="t"||L[0]=="e"||L[0]=="d")&&Z[L]==null)Z[L]=$[0][L];
Z.X$=$[0].t274?$[0].t274[0]:1;return[Z]}var _=1/256;for(var G=0;G<$.length;G++)if($[G].t258&&$[G].t258[0]==16&&$[G].t277&&$[G].t277[0]==1){}else H=!1;
if(H){var J=0,S=0,N=0;for(var G=0;G<$.length;G++){UTIF.decodeImage(h,$[G],$);var Y=$[G].data;for(var U=0;
U<Y.length;U+=2){var g=Y[U+1]<<8|Y[U];if(g>J)J=g;S+=g;N++}}_=1/256*65535/(.5*J+.5*(2*S/N))}var M=[];
for(var G=0;G<$.length;G++){var C=$[G],y=72;UTIF.decodeImage(h,C,$);var i=C.t282,Q=C.t296;if(i!=null&&Q!=null){y=i[0][0]/i[0][1];
if(Q[0]==3)y=Math.round(y/2.54)}if(C.width==null)continue;var m=UTIF.toRGBA8(C,_).buffer,n=dn.Vm(C);
M.push({Au:new O(0,0,C.width,C.height),data:m,Ay:y,ZG:n})}return M};cE.LQ.pT=function(h,e,$,Z){if(Z==null)Z=[!1];
var c={},q=h[0];if(q[3]!=null&&Z[0])c=dn.RM(q[3]);if(q[2]!=null){c.t282=c.t283=[[Math.round(q[2]),1]];
c.t296=[2]}return UTIF.encodeImage(q[0],e,$,c)};cE.LW={};cE.LW._Q=!0;cE.LW.Cj=function(h,e){ip.Hm(h,e)};
cE.LW.a8j=function(h,e,$,Z){if(Z==null)Z=[!1,!1,!1];if(!Z[0])h.v2();var c=new e4,q=ip.XE(h,c,Z);return[c.data.buffer,q]};
cE.LW.pT=function(h,e,$,Z){var c=cE.LW.a8j(h,e,$,Z),q=c[0],E=c[1];return q.byteLength==E?q:q.slice(0,E)};
cE.Rg={};cE.Rg._Q=!0;cE.Rg.Cj=function(h,e){var $=pako.inflate(new Uint8Array(h)),Z=k.oO($,0),c=k.oO($,2),q=4;
e.d=k.n($,q);q+=4;e.v=k.n($,q);q+=4;e.buffer=s.m(e.d*e.v*4);var E=k.oO($,q);q+=2;q+=4;for(var P=0;P<E;
P++){var a=e.by(),m=1,n=2,u=3,K=0;e.t.push(a);var j=k.n($,q);q+=4;var L=q,H=k.oO($,L);L+=2;var _=k.rM($,L,H);
L+=H;a.aq(_);L++;a.rect.x=k.hY($,L);L+=4;a.rect.y=k.hY($,L);L+=4;a.rect.d=k.n($,L);L+=4;a.rect.v=k.n($,L);
L+=4;if(Z>3)L+=4;a.opacity=Math.round(255*$[L]/100);L++;a.QL($[L]!=0);L++;a.oG="norm,lddg,norm,dark,diff,norm,hLit,norm,norm,lite,mul ,over,scrn,fsub".split(",")[$[L]];
L++;L++;if(Z>3){var J=k.oO($,L);L+=2;if(J!=0){var S=JSON.parse(k.rM($,L,J));L+=J;var N=S.text,Y=S.textSettings,U=Y.font,g=Y.size,M=Y.padding,C=parseInt(Y.color.slice(1),16);
a.add.lnsr="rend";a.add.TySh=gK.Zh(0,0);a.add.TySh._P=new O(0,0,100,100);a.add.TySh.J=new i7(1,0,0,1,a.rect.x+M,a.rect.y+M);
var y=a.add.TySh.Kx;gK.gq(y,1);gK.IE(y,[0,0,a.rect.d-M*2,a.rect.v]);gK.Ja(y,0,N);var i=gK.hT(y,0,1);
i.By.FontSize=g;i.By.FillColor={Type:1,Values:[1,(C>>>16&255)/255,(C>>>8&255)/255,(C>>>0&255)/255]};
if(Y.bold)U+="-Bold";gK.P0(i,U);i.Bp.Justification=["left","right","center"].indexOf(Y.align);gK.sq(y,0,N.length,i)}}var Q=k.n($,L);
L+=4;if(Q!=a.rect.X()*4)throw"e";a.buffer=s.m(Q);if(Z>3){m=0;n=1;u=2;K=3}for(var G=0;G<Q;G+=4){a.buffer[G]=$[L+G+m];
a.buffer[G+1]=$[L+G+n];a.buffer[G+2]=$[L+G+u];a.buffer[G+3]=$[L+G+K]}L+=Q;var F=k.n($,L);L+=4;if(F==0&&Z>3){q+=j;
continue}var b=$[L];L++;var d=k.oO($,L);L+=2;if(F!=0){a.r=new o.kq;a.r.rect=a.rect.clone();a.r.channel=s.m(a.rect.X());
for(var G=0;G<F;G+=4)a.r.channel[G>>>2]=$[L+G+1];L+=F}if(b!=0){var W=JSON.parse(c3.default);a.add.lmfx=W;
for(var G=0;G<c3.order.length;G++)W[c3.qV[G]]={t:"VlLs",v:[]};var A={"102":9,"101":2,"103":0,"104":3,"105":8};
for(var G=0;G<b;G++){var z=k.oO($,L),T=L+z+4,R=$.slice(L,T),I=$[L+2];L+=3;var r=A[I+""],x=JSON.parse(c3.kD[r]);
W[c3.qV[r]].v.push({t:"Objc",v:x});if(r!=0){x.Md.v.BlnM=eN.ve("norm");x.Opct.v.val=$[L];L++;if(r==9||r==2){x.Dstn.v.val=$[L+1];
L+=2}else L+=2;x.blur.v.val=Math.round($[L]*1.2);L++;if(r==9||r==2){x.uglg.v=!1;x.lagl.v.val=180-k.oO($,L);
L+=2}x.Clr.v=s.Y.lp({h:$[L+1],l:$[L+2],O:$[L+3]})}else{x.hglM.v.BlnM=x.sdwM.v.BlnM=eN.ve("norm");L+=2;
var X=$[L++],hH=$[L++];x.blur.v.val=Math.round(Math.sqrt(hH*X)*1.3);x.srgR.v.val=Math.round(100*X/hH);
x.uglg.v=!1;x.lagl.v.val=180-k.oO($,L);L+=2;x.hglO.v.val=$[L++];x.hglC.v=s.Y.lp({h:$[L+1],l:$[L+2],O:$[L+3]});
L+=4;x.sdwO.v.val=$[L++];x.sdwC.v=s.Y.lp({h:$[L+1],l:$[L+2],O:$[L+3]});L+=4}L=T}}if(L-q!=j){var hZ=k.n($,L),d3=0;
L+=4;L++;var H=k.oO($,L);L+=2;var N=k.rM($,L,H);L+=H;N=N.replace(/\r/g,"\n");var H=k.oO($,L);L+=2;var U=k.rM($,L,H);
L+=H;var g=k.oO($,L);L+=2;var gj=a.rect.x,hO=a.rect.d;if(hZ&4)d3=1;if(hZ&2)d3=2;var v=Math.round(g*.4);
if(d3==0||d3==2)hO+=v;if(d3==1||d3==2){hO+=v;gj-=v}a.add.lnsr="rend";a.add.TySh=gK.Zh(0,0);a.add.TySh._P=new O(0,0,100,100);
a.add.TySh.J=new i7(1,0,0,1,gj,a.rect.y+g*.25);var y=a.add.TySh.Kx;gK.gq(y,1);gK.IE(y,[0,0,hO,a.rect.v]);
gK.Ja(y,0,N);var i=gK.hT(y,0,1);i.By.FontSize=g;i.By.FillColor={Type:1,Values:[1,$[L+1]/255,$[L+2]/255,$[L+3]/255]};
L+=4;if($[L+5])U+="-Bold";if($[L+6])U+="-Italic";gK.P0(i,U);i.Bp.Justification=d3;L+=8;gK.sq(y,0,N.length,i)}q+=j}};
cE.wK={};cE.wK._Q=!0;cE.wK.Cj=function(h,e){cj.Hm(h,e)};cE.Dr={};cE.Dr._Q=!0;cE.Dr.Cj=function(h,e){fQ.Hm(h,e)};
cE.Cp={};cE.Cp._Q=!0;cE.Cp.Cj=function(h,e){b0.Hm(h,e)};cE.Ac={};cE.Ac._Q=!0;cE.Ac.Cj=function(h,e){eZ.Hm(h,e)};
cE.ol={};cE.ol._Q=!0;cE.ol.Cj=function(h,e){b4.Hm(h,e)};cE.wl={};cE.wl._Q=!0;cE.wl.pT=function(h,e,$,Z,c){if(Z==null)Z=[!0,!1,!1,!1,!0,!0];
var q=a0.A7(h,{Dy:Z[0],hidden:Z[1],a6Q:Z[2],anc:Z[3],names:Z[4],a4s:Z[5],afn:e,a42:$},c.R0);return q};
cE.wl.Cj=function(h,e,$){a0.Hm(h,e,$)};cE.ID={};cE.ID._Q=!0;cE.ID.Cj=function(h,e){var $=150,Z=new i7(1,0,0,-1,0,0);
Z.scale($/72,$/72);e.Ay=$;var c=new gY(e,Z,!0);FromPS.Parse(h,c)};cE.x_={};cE.x_._Q=!0;cE.x_.pT=function(h,e,$,Z,c){if(Z==null)Z=["",100,!1,!1,!1];
Z[5]=["jpg"];var q=new ToPDF;h7.A7(h,Z,q,c.R0);return q.buffer};cE.x_.Cj=function(h,e,$){var Z=2;while(!0){var c=Z*72,q=new i7(1,0,0,-1,0,0);
q.scale(c/72,c/72);e.Ay=c;var E=new gY(e,q,!0);FromPDF.Parse(h,E);var P=Math.max(e.d,e.v);if($&&P<Math.max($[0],$[1])){e.t=[];
var a=Z;while(P*(Z/a)<Math.max($[0],$[1]))Z++}else break}};cE.Tu={};cE.Tu._Q=!0;cE.Tu.Cj=function(h,e){var $=72,Z=new i7(1,0,0,1,0,0);
Z.scale($/72,$/72);e.Ay=$;var c=new gY(e,Z,!1);FromWMF.Parse(h,c)};cE.ed={};cE.ed.zr=!0;cE.ed._Q=!0;
cE.ed.pT=function(h,e,$,Z,c){if(Z==null)Z=["",!1,!1,!1];Z[4]=[];var q=new ToEMF;h7.A7(h,Z,q,c.R0);return q.buffer};
cE.ed.Cj=function(h,e){var $=72,Z=new i7(1,0,0,1,0,0);Z.scale($/72,$/72);e.Ay=$;var c=new gY(e,Z,!1);
FromEMF.Parse(h,c)};cE.Wf={};cE.Wf._Q=!0;cE.Wf.Cj=function(h,e){return dp.Hm(h,e)};cE.mb={};cE.mb.Cj=function(h,e){var $=gi.Hm(h),Z=new Uint8Array(h),c=0,q,E,P,a,j,L,H,_,J=0,S=0,N=0,Y=0,U=0;
for(var g=0;g<$.sub.length;g++){var M=$.sub[g],c=M.i;if(M.af=="BMHD"){var C=[];for(var G=0;G<4;G++)C[G]=k.oO(Z,c+2*G);
c+=8;a=C[2];j=C[3];E=C[0];P=C[1];q=s.m(E*P*4);L=Z[c++];H=Z[c++];_=Z[c++]}else if(M.af=="CMAP")J=c;else if(M.af=="CAMG"){var y=k.n(Z,c);
S=y&32768,N=y&4,Y=y&2048;U=y&128}else if(M.af=="BODY"){var i=E+15>>>4<<1,Q=L+H,m=s.m(i*P*Q),F,b,d;f6.qj(Z,c,M.size,m,0,m.length);
var n=L-2,u=(1<<n)-1,K=Math.round(255/u);for(var j=0;j<P;j++)for(var a=0;a<E;a++){var W=0;for(var A=0;
A<Q;A++){var z=(j*Q+A)*i*8+a,T=m[z>>>3]>>>7-(z&7)&1;W|=T<<A}var R=W>>>L,W=W&(1<<L)-1,G=j*E+a,I=G<<2;
if(J!=0){if(Y!=0&&W>>>n!=0){var r=W>>>n,x=(W&u)*K;if(r==1)d=x;else if(r==2)F=x;else if(r==3)b=x}else{var x=J+W*3;
F=Z[x+0];b=Z[x+1];d=Z[x+2]}}else{F=W>>>0&255;b=W>>>8&255;d=W>>>16&255}q[I+0]=F;q[I+1]=b;q[I+2]=d;q[I+3]=255}}}return[{Au:new O(0,0,E,P),data:q.buffer}]};
cE.At={};cE.At._Q=!1;cE.At.pT=function(h,e,$,Z){var c=h[0][4],q=new Uint8Array(h[0][0]),E=2,P=c?!0:!1,a=P?4:3,j=new Uint8Array(e*$*a);
for(var L=0;L<$;L++)for(var H=0;H<e;H++){var _=L*e+H<<2,J=(($-L-1)*e+H)*a;j[J]=q[_+2];j[J+1]=q[_+1];
j[J+2]=q[_+0];if(P)j[J+3]=c[0][L*e+H]}if(!0){var S=j.length,N=0,Y=new Uint8Array(S*2),U=0,g=0,M=e*a;
while(g<S){var C=g,y=0,i=M*(Math.floor(g/M)+1);while(C<i&&y<128){var Q=!0;for(var G=0;G<a;G++)Q=Q&j[g+G]==j[C+G];
if(!Q)break;C+=a;y++}if(y==1){var m=1;while(m<128&&g+(m+1)*a<i){var Q=!0,n=g+m*a;for(var G=0;G<a;G++)Q=Q&j[n+G]==j[n+a+G];
if(Q)break;m++}Y[U++]=m-1;for(var u=0;u<m;u++)for(var G=0;G<a;G++)Y[U++]=j[g++]}else{Y[U++]=127+y;for(var G=0;
G<a;G++)Y[U+G]=j[g+G];U+=a;g+=a*y;N+=y}}j=Y.slice(0,U);E+=8}var K=new Uint8Array(18+j.length+26);K[2]=E;
k.wB(K,12,e);k.wB(K,14,$);K[16]=a*8;K[17]=a==4?8:0;K.set(j,18);k.KP(K,18+j.length+8,"TRUEVISION-XFILE.");
return K.buffer};cE.At.Cj=function(h){var e=new Uint8Array(h),$=0,Z=e[0],c=e[1],q=e[2],E=e[4]*256+e[3],P=e[6]*256+e[5],a=e[7],j=e[9]*256+e[8],L=e[11]*256+e[10],H=e[13]*256+e[12],_=e[15]*256+e[14],J=e[16],S=e[17],N=S>>>4,Y=k.dd(e,18,Z),U=s.m(H*_*4),$=18+Z+(P*a>>>3),g=new Uint8Array(e.buffer,$);
if(q>3){var M=0,C=e,y=new Uint8Array(H*_*J>>>3),i=$,Q=0,m=e.length,n=J>>>3;while(Q<y.length){var t=C[i];
i++;if(t<128)for(var G=0;G<t+1;G++){for(var u=0;u<n;u++){y[Q]=C[i];Q++;i++}}else{for(var G=0;G<t-127;
G++){for(var u=0;u<n;u++){y[Q]=C[i+u];Q++}}i+=n}}q-=8;g=y;$=i}else $+=H*_*J>>>3;var K=new Uint8Array(4),F=cE.At.acL;
for(var b=0;b<_;b++)for(var d=0;d<H;d++){var W=(N&2)==0?(_-b-1)*H+d:b*H+d,A=b*H+d,z,T,R,I=255,r=W*J>>>3;
if(q==1){var x=0;if(J==8)x=g[r];else throw"e";F(e,18+Z+E+(x*a>>>3),a,K);z=K[0];T=K[1];R=K[2];I=K[3]}else if(q==2){F(g,r,J,K);
z=K[0];T=K[1];R=K[2];I=K[3]}else if(q==3){if(J==8)z=T=R=g[r];else throw"e"}var X=A*4;U[X]=z;U[X+1]=T;
U[X+2]=R;U[X+3]=I}var K={Au:new O(0,0,H,_),data:U.buffer,c5:Y};if(s.AC(U)){var l=s.m(H*_);s.z0(U,l,3);
s.Ut(U,4278190080,16777215);K.Qe=[l]}return[K]};cE.At.acL=function(h,e,$,Z){var c,q,E,P=255;if($==24||$==32){E=h[e];
q=h[e+1];c=h[e+2];if($==32)P=h[e+3]}else if($==16){var a=h[e+1]<<8|h[e+0];c=a>>>10&31;q=a>>>5&31;E=a>>>0&31;
c=Math.round(c*(255/31));q=Math.round(q*(255/31));E=Math.round(E*(255/31))}else throw"e";Z[0]=c;Z[1]=q;
Z[2]=E;Z[3]=P};cE.rN={};cE.rN.Cj=function(h){var e=new Uint8Array(h),$=0,Z=112,c=42,q=k.bt,L;$+=8;var E=e[$];
$++;if(E!=c)throw"e";var P=q(e,$);$+=4;var a=k.Os(e,$,P);$+=P*2;var j=[];while($<e.length){L=q(e,$);
$+=4;if(L!=Z)throw L;$+=4;L=e[$];$++;if(L!=c)throw L;var H=q(e,$);$+=4;var _=e[$];$++;if(_!=c){$-=5;
H=q(e,$);$+=8;L=e[$];$++;if(L!=c)throw L}var J=q(e,$)*2;$+=4;if(H>0)j.push($+J);$+=J+H}var S=new DOMParser,N=S.parseFromString(a,"image/svg+xml").firstChild.firstChild,Y=[];
cE.rN.jl(N,e,j,Y);return Y};cE.rN.jl=function(h,e,$,Z){var c=h.firstChild.firstChild;if(c.tagName=="Image"){var q=c.getElementsByTagName("ImageDescription")[0],E=q.children[0].children,P=q.children[1].children,a=$.shift(),j=[];
for(var G=0;G<P.length;G++)j.push(parseInt(P[G].getAttribute("NumberOfElements")));while(j.length>3)j[2]*=j.pop();
var L=E.length,H=j[0],_=j[1],J=j[2],S=parseInt(P[0].getAttribute("BytesInc"));for(var N=0;N<J;N++){var Y=s.m(H*_*4);
s.Ut(Y,4278190080);for(var U=0;U<L;U++){var g=s.m(H*_);if(S==1)for(var M=0;M<g.length;M++)g[M]=e[a+M];
else if(S==2)for(var M=0;M<g.length;M++)g[M]=Math.min(255,(e[a+M*2+1]<<8|e[a+M*2])>>>2);else throw S;
if(U!=3)s.Jk(g,Y,U);if(L==1){s.Jk(g,Y,1);s.Jk(g,Y,2)}a+=H*_*S}Z.push({Au:new O(0,0,H,_),data:Y.buffer})}}else{var C=h.children,y=0;
while(y<C.length&&C[y].tagName!="Children")y++;if(y==C.length)throw"e";C=C[y].children;for(var i=0;i<C.length;
i++)cE.rN.jl(C[i],e,$,Z)}};cE.N7={};cE.N7.Cj=function(h){var e=new Uint8Array(h),$=0,Z={},L=1e9;for(var G=0;
G<306;G++){var c=k.dd(e,$,8).trim(),q=k.dd(e,$+9,71).split("/")[0].trim();Z[c]=q;$+=80;if(c=="END"){$=Math.ceil($/2880)*2880;
break}}var E=parseInt(Z.NAXIS1),P=parseInt(Z.NAXIS2),a=E*P,j=parseInt(Z.BITPIX),H=-1e9,_=new Float32Array(a),J=new Float32Array(h,$,h.byteLength-$>>>2);
for(var G=0;G<a;G++){var S=G<<2,N=G<<1;if(j==-32){var Y=e[$+S+0];e[$+S+0]=e[$+S+3];e[$+S+3]=Y;var Y=e[$+S+1];
e[$+S+1]=e[$+S+2];e[$+S+2]=Y;_[G]=J[G]}else if(j==16){_[G]=k.EW(e,$+N)}else throw j;var U=_[G];if(U<L)L=U;
if(U>H)H=U}var g=s.m(a*4),M=1/H;for(var C=0;C<P;C++)for(var y=0;y<E;y++){var G=C*E+y,i=(P-C-1)*E+y,S=i<<2,U=_[G]*M;
g[S]=g[S+1]=g[S+2]=255*U;g[S+3]=255}return[{Au:new O(0,0,E,P),data:g,c5:Z.OBJECT}]};cE.AR={};cE.AR.Cj=function(h){var e=new Uint8Array(h),$=16,Z=k.dd(e,$,4),q=32,U=0,g=0,M=!1,T;
$+=4;var c=k.dd(e,$,8);$+=8;while(e[$+q-1]==0)q--;var E=k.dd(e,$,q);$+=32;var P=k.dd(e,$,4);$+=4;$+=20;
var a=k.n(e,$);$+=4;var j=k.n(e,$);$+=4;var L=k.n(e,$);$+=4;var H=k.n(e,$);$+=4;var _=k.n(e,$);$+=4;
var J=k.n(e,$);$+=4;var S="FujiFilm "+E,N=[0,1,1,2];if(S=="FujiFilm X10"){S="FujiFilm FinePix X10";N=[2,1,1,0]}var Y={t271:["FujiFilm"],t272:[S],t277:[1],t33421:[2,2],t33422:N,X$:1};
$=L;var C=[],y=k.oO,i=k.n(e,$);$+=4;for(var G=0;G<i;G++){var Q=y(e,$);$+=2;var m=y(e,$);$+=2;if(Q==256){g=y(e,$);
U=y(e,$+2)}else if(Q==272){C=[y(e,$),y(e,$+2)]}else if(Q==273){C.push(y(e,$),y(e,$+2))}else if(Q==304){M=!(e[$]>>>7)}else if(Q==305){var n=Math.round(Math.sqrt(m)),u=[];
for(var K=0;K<m;K++)u.push(e[$+K]);u.reverse();Y.t33421=[n,n];Y.t33422=u}else if(Q==12272){var F=y(e,$),b=y(e,$+2),d=y(e,$+6);
Y.t50728=[F/b,1,F/d]}$+=m}var W=U<g,A=e.slice(_,_+J),z=Math.round(J*8/(U*g));if(A[0]==73&&A[1]==73&&A[2]==42){T=UTIF.decode(A.buffer)[0].fujiIFD;
z=T.t61443[0];var R=T.t61454;Y.t50728=[R[0]/R[1],1,R[0]/R[2]];var I=T.t61447[0];A=A.slice(I,I+T.t61448[0])}var J=A.length,r=J*8<U*g*z;
if(r)alert("Compressed RAF is not supported yet :(");function x(gj,hO,d3){d3=d3<<8-(hO&7);var v=hO>>>3;
gj[v]|=d3>>>16;gj[v+1]|=d3>>>8;gj[v+2]|=d3}var X=J*8/(U*g);if(X==16)for(var G=0;G<J;G+=2){var l=A[G];
A[G]=A[G+1];A[G+1]=l}else if(X==14){for(var G=0;G<J;G+=4){var l=A[G];A[G]=A[G+3];A[G+3]=l;l=A[G+1];A[G+1]=A[G+2];
A[G+2]=l}}else if(X==12)for(var G=0;G<J;G+=3){var hH=A[G+2]<<16|A[G+1]<<8|A[G+0];hH=hH>>>12|(hH&4095)<<12;
A[G]=hH>>>16&255;A[G+1]=hH>>>8&255;A[G+2]=hH&255}if(W)A=cE.AR.aeM(A,U,g);var hZ=W?2:1;U*=hZ;Y.t256=[U];
Y.t257=[g];Y.t258=[z];Y.t50719=[C[1],C[0]*hZ];Y.t50720=[C[3],C[2]*hZ];Y.width=U;Y.height=g;Y.data=new Uint8Array(A.buffer);
return[Y]};cE.AR.aeM=function(h,e,$){h=new Uint16Array(h.buffer);var Z=new Uint16Array(e*$*2);for(var c=0;
c<$;c+=2)for(var q=0;q<e;q++){var E=c*e+q,P=E*2,a=h[E],j=h[E+e];Z[P+1]=Z[P+2*e]=j;if(((c>>>1)+q&1)==0){Z[P]=a;
Z[P+2*e+1]=h[E+1]}else{Z[P]=h[E-1];Z[P+2*e+1]=a}}return Z};cE.EK={};cE.EK.zr=!0;cE.EK.pT=function(h,e,$,Z){var c=new Uint8Array(h[0][0]),q=e*$,E=[1,3,4][Z[0]],P=8+8*Z[1],a=Z[2];
if(E==1){var j=new Uint8Array(e*$);s.z0(c,j,0);c=j}if(E==3){var j=new Uint8Array(e*$*3);for(var G=0;
G<q;G++){var L=G*4,H=G*3;j[H]=c[L];j[H+1]=c[L+1];j[H+2]=c[L+2]}c=j}if(P==16){var _=c.length,j=new Uint8Array(_*2);
for(var G=0;G<_;G++){var J=Math.round(c[G]*(65535/255));j[G*2+a]=J>>>8;j[G*2+1-a]=J&255}c=j}return c.buffer};
cE.Qq={};cE.Qq.Cj=function(h,e){function $(a){return~~(.5+s.QN(Math.max(0,Math.min(1,a)))*255)}var Z=EXRLoader.parse(h),c=Z.width,q=Z.height,E=s.m(c*q*4);
for(var P=0;P<q;P++)for(var a=0;a<c;a++){var G=(P*c+a)*4,j=((q-P-1)*c+a)*4;E[G]=$(Z.data[j+0]);E[G+1]=$(Z.data[j+1]);
E[G+2]=$(Z.data[j+2]);E[G+3]=$(Z.data[j+3])}return[{Au:new O(0,0,c,q),data:E.buffer}]};cE.aB={};cE.aB.zr=!0;
cE.aB._Q=!0;cE.aB.pT=function(h,e,$,Z,c){Z=["",100,!1,!1,!1];Z[5]=["jpg"];var q=new ToDXF;h7.A7(h,Z,q,c.R0);
return q.buffer};cE.aB.Cj=function(h,e){var $=72,Z=new i7(1,0,0,1,0,0);Z.scale($/72,$/72);e.Ay=$;var c=new gY(e,Z,!1);
FromDXF.Parse(h,c)};cE.JA={};cE.JA.Cj=function(){var h=k.EW,e=k.bt,$=k.dd,Z;function c(E,P,a,j,L){var H=e(E,a),_=e(E,a+4),J=e(E,a+8),S=h(E,a+12),N=h(E,a+14);
a+=16;var Y={};for(var G=0;G<S+N;G++){var U=e(E,a),g=e(E,a+4),M,C;if(U>>>31==1){U=U&16777215}if(G<S)M=k.Os(E,P+U+2,h(E,P+U));
else M="id"+U;var y=j.slice(0);y.push(M);if(g>>>31==1){g=g&268435455;C=c(E,P,P+g,y,L)}else{var i=e(E,P+g),Q=e(E,P+g+4),m=e(E,P+g+8),n=e(E,P+g+12);
if(n!=0)throw"e";if(i<L[0]||i>L[0]+L[1])throw"e";var u=L[2]+i-L[0];C=E.slice(u,u+Q);var K=cE.B3(C.buffer);
if(K&&["bmp","png","ico"].indexOf(K)!=-1){var F=cE.fy(K);if(!F._Q){var b=null;try{b=F.Cj(C.buffer)}catch(e_){}if(b){b[0].c5=y[1];
Z.push(b[0])}}}else if(K)console.log(K)}Y[M]=C;a+=8}return Y}function q(E){Z=[];var P=new Uint8Array(E),a=0,j=h(P,a);
a+=2;a+=58;var L=e(P,a);a+=4;a=L;var H=$(P,a,4);a+=4;var _=h(P,a);a+=2;var J=h(P,a);a+=2;var S=e(P,a);
a+=4;var N=e(P,a);a+=4;var Y=e(P,a);a+=4;var U=h(P,a);a+=2;var g=h(P,a);a+=2;a+=U;var M={};for(var G=0;
G<J;G++){var C=a;while(P[C]!=0)C++;var y=$(P,a,C-a),i=e(P,a+8),Q=e(P,a+12),m=e(P,a+16),n=e(P,a+20),u=e(P,a+24),K=e(P,a+28),F=h(P,a+32),b=h(P,a+34),g=e(P,a+36);
M[y]=[Q,i,n,m,g];if(u+K!=0)throw"e";a+=40}for(var d in M){var W=M[d];a=W[2];if(d==".rsrc"){var A=c(P,a,a,[],W),z="id134"}}return Z}return q}();
function s(){}s.rE={};s.BA=document.createElement("canvas");s.qM=s.BA.getContext("2d");s.Om=function(h,e,$,Z,c,q){if(c==null)c=q=0;
Z=Math.log(Z)/Math.log(2);Z=Math.round(Z);for(var G=0;G<$;G++)for(var E=0;E<e;E++){var P=G*e+E<<2,a=s.Ip(G+q,E+c,Z);
h[P]=h[P+1]=h[P+2]=a;h[P+3]=255}};s.Ip=function(G,h,e){return 255-((G>>>e)+(h>>>e)&1)*51};s.jT=function(h){var e=h.toString(16);
while(e.length<6)e="0"+e;return e};s.St=function(h){return parseInt(h,16)};s.GE=function(h){return.3*h.h+.59*h.l+.11*h.O};
s.vD=function(h){return Math.max(h.h,h.l,h.O)-Math.min(h.h,h.l,h.O)};s.jv=function(h,e,$){return.3*h+.59*e+.11*$};
s.ac3=function(h,e,$){return Math.max(h,e,$)-Math.min(h,e,$)};s.$K=function(h,e){var $=e-h,Z=Math.abs($),c=$-1,q=$+1;
if(Math.abs(c)<Z)$=c;else if(Math.abs(q)<Z)$=q;return $};s.QN=function(h){return h<.0031308?12.92*h:1.055*Math.pow(h,1/2.4)-.055};
s.a1X=function(h){return h<.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)};s.a5Z=function(h,e){var $=Math.min(h.length,e.length);
for(var G=0;G<$;G+=4){var Z=h[G],c=h[G+1],q=h[G+2];e[G]=16+Math.floor(65.481/255*Z+128.553/255*c+24.966/255*q+.5);
e[G+1]=128-Math.floor(37.797/255*Z-74.203/255*c+112/255*q+.5);e[G+2]=128+Math.floor(112/255*Z-93.786/255*c-18.214/255*q+.5);
e[G+3]=h[G+3]}};s.fe=function(h,e,$){var Z=Math.max(h,e,$),c=Math.min(h,e,$),q=0,E=0,P=(Z+c)*.5;if(Z!=c){var a=Z-c;
E=P>.5?a/(2-(Z+c)):a/(Z+c);switch(Z){case h:q=(e-$)/a+(e<$?6:0);break;case e:q=($-h)/a+2;break;case $:q=(h-e)/a+4;
break}q*=1/6}return{CD:q,Zp:E,a9:P}};s.lR=function(h,e,$){var Z,c,q;if(e==0)Z=c=q=$;else{var E=$<.5?$*(1+e):$+e-$*e,P=2*$-E;
Z=s.EA(P,E,h+1/3);c=s.EA(P,E,h);q=s.EA(P,E,h-1/3)}return{h:Z,l:c,O:q}};s.EA=function(h,e,$){if($<0)$+=1;
if($>1)$-=1;if($<1/6)return h+(e-h)*6*$;if($<1/2)return e;if($<2/3)return h+(e-h)*(2/3-$)*6;return h};
s.TC=function(h,e,$){var Z=Math.max(h,e,$),c=Math.min(h,e,$),q,E,P=Z,a=Z-c;E=Z==0?0:a/Z;if(Z==c)q=0;
else{switch(Z){case h:q=(e-$)/a+(e<$?6:0);break;case e:q=($-h)/a+2;break;case $:q=(h-e)/a+4;break}q*=1/6}return{CD:q,Zp:E,o8:P}};
s.g7=function(h,e,$){var Z,c,q,G,E,P,a,j;G=Math.floor(h*6);E=h*6-G;P=$*(1-e);a=$*(1-E*e);j=$*(1-(1-E)*e);
switch(G%6){case 0:Z=$,c=j,q=P;break;case 1:Z=a,c=$,q=P;break;case 2:Z=P,c=$,q=j;break;case 3:Z=P,c=a,q=$;
break;case 4:Z=j,c=P,q=$;break;case 5:Z=$,c=P,q=a;break}return{h:Z,l:c,O:q}};s.sv=function(){var h=[],e=[];
for(var G=0;G<2e3;G++){var $=G/1e3;h[G]=s.a1X($);e[G]=$>.008856?Math.pow($,1/3):(903.3*$+16)*(1/116)}return[h,e]}();
s.Z1=function(h,e,$){var Z=s.sv[0],c=s.sv[1];h=Z[~~(h*(1e3/255))];e=Z[~~(e*(1e3/255))];$=Z[~~($*(1e3/255))];
var q=s.l2.a44,E=q[0]*h+q[1]*e+q[2]*$,P=q[4]*h+q[5]*e+q[6]*$,a=q[8]*h+q[9]*e+q[10]*$;E=E*(100/96.72);
P=P*(100/100);a=a*(100/81.427);return s.Ok(E,P,a)};s.Ok=function(h,e,$){var Z=s.sv[1],c=Z[~~(h*1e3)],q=Z[~~(e*1e3)],E=Z[~~($*1e3)];
return{Hs:116*q-16,R:500*(c-q),O:200*(q-E)}};s.Dl=function(h,e,$){var Z=903.3,c=.008856,q=(h+16)/116,E=q*q*q,P=q-$/200,a=P*P*P,j=e/500+q,L=j*j*j,H=a>c?a:(116*P-16)/Z,_=E>c?E:(116*q-16)/Z,J=L>c?L:(116*j-16)/Z,S=J*96.72,N=_*100,Y=H*81.427,U=s.l2.Cf(s.l2.EJ,[S/100,N/100,Y/100,0]);
for(var G=0;G<4;G++)U[G]=Math.max(0,Math.min(255,s.QN(U[G])*255));return{h:U[0],l:U[1],O:U[2]}};s.Ku=function(h,e,$,Z,c){var q=h.Hs,E=h.R,P=h.O,a=(q<e.Hs?e.Hs-q:$.Hs<q?$.Hs-q:0)*(1/100),j=(E<e.R?e.R-E:$.R<E?$.R-E:0)*(1/116),L=(P<e.O?e.O-P:$.O<P?$.O-P:0)*(1/116),H=Math.sqrt(a*a+j*j+L*L)*1.35;
return H<=Z?Math.min(1,1.17*(1-H*c)):0};s.yh=function(h,e,$){var Z=h.length,c=.3,q=.59,E=.11;if($){c=$[0];
q=$[1];E=$[2]}for(var G=0;G<Z;G+=4)e[G>>2]=~~(h[G+0]*c+h[G+1]*q+h[G+2]*E+.5)};s.Kh=function(h,e){var $=e.length;
for(var G=0;G<$;G+=4){var Z=h[G>>>2];e[G]=Z;e[G+1]=Z;e[G+2]=Z}};s.cl=function(h,e){var $=h.R,Z=h.h,c=h.l,q=h.O,E=Math.min(h.R.length,e.buffer.byteLength>>>2),P=4*Math.floor(E/4),a=new Uint32Array(e.buffer),j=new Uint32Array($.buffer),L=new Uint32Array(Z.buffer),H=new Uint32Array(c.buffer),_=new Uint32Array(q.buffer);
for(var G=0;G<P;G+=4){var J=j[G>>2],S=_[G>>2],N=H[G>>2],Y=L[G>>2];a[G]=J<<24|(S&255)<<16|(N&255)<<8|Y&255;
a[G+1]=(J&65280)<<16|(S&65280)<<8|N&65280|(Y&65280)>>>8;a[G+2]=(J&16711680)<<8|S&16711680|(N&16711680)>>>8|(Y&16711680)>>>16;
a[G+3]=J&4278190080|(S&4278190080)>>>8|(N&4278190080)>>>16|(Y&4278190080)>>>24}for(var G=P;G<E;G++)a[G]=$[G]<<24|q[G]<<16|c[G]<<8|Z[G]};
s.DC=function(h,e){var $=e.R,Z=e.h,c=e.l,q=e.O,E=Math.min(e.R.length,h.buffer.byteLength>>>2),P=4*Math.floor(E/4),a=new Uint32Array(h.buffer),j=new Uint32Array($.buffer),L=new Uint32Array(Z.buffer),H=new Uint32Array(c.buffer),_=new Uint32Array(q.buffer);
for(var G=0;G<P;G+=4){var J=a[G],S=a[G+1],N=a[G+2],Y=a[G+3];L[G>>2]=J&255|(S&255)<<8|(N&255)<<16|Y<<24;
H[G>>2]=(J&65280)>>8|S&65280|(N&65280)<<8|(Y&65280)<<16;_[G>>2]=(J&16711680)>>16|(S&16711680)>>8|N&16711680|(Y&16711680)<<8;
j[G>>2]=J>>>24|S>>>24<<8|N>>>24<<16|Y&4278190080}for(var G=P;G<E;G++){var U=a[G];Z[G]=U>>0&255;c[G]=U>>8&255;
q[G]=U>>16&255;$[G]=U>>24&255}};s.z0=function(h,e,$){var Z=new Uint8Array(h.buffer),c=Math.min(Z.length/4,e.length);
for(var G=0;G<c;G++){e[G]=Z[(G<<2)+$]}};s.Jk=function(h,e,$){var Z=new Uint8Array(e.buffer),c=new Uint32Array(h.buffer),q=Math.min(Z.length/4,h.length),G=0;
while(G+4<q){var E=c[G>>>2];Z[(G<<2)+$]=E&255;Z[(G<<2)+$+4]=E>>>8&255;Z[(G<<2)+$+8]=E>>>16&255;Z[(G<<2)+$+12]=E>>>24;
G+=4}while(G<q){Z[(G<<2)+$]=h[G];G++}};s.Ut=function(h,e,$){if($==null)$=0;var Z=new Uint32Array(h.buffer),c=Z.length;
for(var G=0;G<c;G++)Z[G]=Z[G]&$|e};s.a6r=function(h,e,$,Z,c){if(c==null)c=0;var q=new Uint32Array(h.buffer);
$=$.jx(e);var E=$.x-e.x,P=$.y-e.y,a=$.d,j=$.v,L=e.d;for(var H=0;H<j;H++){var G=(P+H)*L+E;for(var _=0;
_<a;_++){q[G]=q[G]&c|Z;G++}}};s.i7=function(h,e){var $=Math.min(h.buffer.byteLength,e.buffer.byteLength),Z=$>>>2,h=new Uint32Array(h.buffer,0,Z),e=new Uint32Array(e.buffer,0,Z);
e.set(h)};s.dz=function(h,e){var $=h.buffer.byteLength,Z=e.buffer.byteLength,c=new Uint32Array(h.buffer,0,$>>2),q=new Uint32Array(e.buffer,0,Z>>2);
if($!=Z)return!1;var E=c.length;for(var G=0;G<E;G++)if(q[G]!=c[G])return!1;return!0};s.vy=function(h){var e=new Uint32Array(h.buffer),$=e.length;
for(var G=0;G<$;G++)e[G]=~e[G]};s.adm=function(h){var e=h.length;for(var G=0;G<e;G+=4){h[G]=~h[G];h[G+1]=~h[G+1];
h[G+2]=~h[G+2]}};s.anN=function(h){var e=h.length;for(var G=3;G<e;G+=4)h[G]=~h[G]};s.a6F=function(h){return h+(h%4==0?0:4-h%4)};
s.m=function(h,e){if(e==null)e=!1;if(!e)h=s.a6F(h);try{var $=new Uint8Array(h)}catch(e_){alert("Not enough RAM! (need "+Math.round(h/(1<<20))+" MB)",7e3);
throw"low_ram"}return $};s.gt=function(h){var e=h.length,$=h[e-2],Z=h[e-1];while(Z.d>=2&&Z.v>=2){var c=s.$I($,Z);
h.push(c.Hl,c.rect);$=c.Hl;Z=c.rect}};s.oN=function(h){var e=h.length,$=h[e-2],Z=h[e-1];while(Z.d>=2&&Z.v>=2){var c=s.dM($,Z);
h.push(c.Hl,c.rect);$=c.Hl;Z=c.rect}};s.$I=function(h,e,$){var Z=e.d,c=e.v,q=Z>>1,E=c>>1,P=new O(e.x,e.y,q,E),a=$&&$.length==q*E*4?$:s.m(q*E*4),j=new Uint32Array(h.buffer),L=new Uint32Array(a.buffer);
for(var H=0;H<E;H++)for(var _=0;_<q;_++){var J=H*q+_,S=(H<<1)*Z+(_<<1),N=j[S],Y=j[S+1],U=j[S+Z],g=j[S+Z+1],M=N>>>24,C=Y>>>24,y=U>>>24,i=g>>>24,Q=M+C+y+i;
if(Q==1020){var m=(N>>>0&255)+(Y>>>0&255)+(U>>>0&255)+(g>>>0&255)+2>>>2,n=(N>>>8&255)+(Y>>>8&255)+(U>>>8&255)+(g>>>8&255)+2>>>2,u=(N>>>16&255)+(Y>>>16&255)+(U>>>16&255)+(g>>>16&255)+2>>>2;
L[J]=255<<24|u<<16|n<<8|m}else if(Q==0)L[J]=0;else{var m=(N>>>0&255)*M+(Y>>>0&255)*C+(U>>>0&255)*y+(g>>>0&255)*i,n=(N>>>8&255)*M+(Y>>>8&255)*C+(U>>>8&255)*y+(g>>>8&255)*i,u=(N>>>16&255)*M+(Y>>>16&255)*C+(U>>>16&255)*y+(g>>>16&255)*i,K=1/Q;
m=~~(m*K+.5);n=~~(n*K+.5);u=~~(u*K+.5);L[J]=Q+2>>>2<<24|u<<16|n<<8|m}}return{rect:P,Hl:a}};s.hg=function(h,e,$){var Z=e.d,c=e.v,q=Z>>1,E=c>>1,P=new O(e.x,e.y,q,E),a=$&&$.length==q*E*4?$:s.m(q*E*4),j=new Uint32Array(h.buffer),L=new Uint32Array(a.buffer);
for(var H=0;H<E;H++)for(var _=0;_<q;_++){var J=H*q+_,S=(H<<1)*Z+(_<<1),N=j[S],Y=j[S+1],U=j[S+Z],g=j[S+Z+1],M=2+(N>>>0&255)+(Y>>>0&255)+(U>>>0&255)+(g>>>0&255)>>>2,C=2+(N>>>8&255)+(Y>>>8&255)+(U>>>8&255)+(g>>>8&255)>>>2,y=2+(N>>>16&255)+(Y>>>16&255)+(U>>>16&255)+(g>>>16&255)>>>2,i=2+(N>>>24&255)+(Y>>>24&255)+(U>>>24&255)+(g>>>24&255)>>>2;
L[J]=i<<24|y<<16|C<<8|M}return{rect:P,Hl:a}};s.a0N=function(h,e,$){var Z=e.d,c=e.v,q=2*Math.floor(Z/3),E=2*Math.floor(c/3),P=new O(e.x,e.y,q,E),a=$&&$.length==q*E*4?$:s.m(q*E*4),j=new Uint32Array(h.buffer),L=new Uint32Array(a.buffer);
for(var H=0;H<E;H+=2)for(var _=0;_<q;_+=2){var J=H*q+_,S=(H*3>>>1)*Z+(_*3>>>1),N=j[S],Y=j[S+1],U=j[S+2],g=j[S+Z],M=j[S+1+Z],C=j[S+2+Z],y=j[S+Z+Z],i=j[S+1+Z+Z],Q=j[S+2+Z+Z],m=N>>>24<<2,n=(N>>>16&255)*m,u=(N>>>8&255)*m,K=(N&255)*m,F=Y>>>24<<1,b=(Y>>>16&255)*F,d=(Y>>>8&255)*F,W=(Y&255)*F,A=U>>>24<<2,z=(U>>>16&255)*A,T=(U>>>8&255)*A,R=(U&255)*A,I=g>>>24<<1,r=(g>>>16&255)*I,x=(g>>>8&255)*I,X=(g&255)*I,l=M>>>24,hH=(M>>>16&255)*l,hZ=(M>>>8&255)*l,gj=(M&255)*l,hO=C>>>24<<1,d3=(C>>>16&255)*hO,v=(C>>>8&255)*hO,hl=(C&255)*hO,ht=y>>>24<<2,ga=(y>>>16&255)*ht,eB=(y>>>8&255)*ht,bP=(y&255)*ht,ek=i>>>24<<1,b_=(i>>>16&255)*ek,fz=(i>>>8&255)*ek,ca=(i&255)*ek,gf=Q>>>24<<2,bb=(Q>>>16&255)*gf,b2=(Q>>>8&255)*gf,dV=(Q&255)*gf,ch=m+F+I+l,hE=A+F+hO+l,dS=ht+ek+I+l,e1=gf+ek+hO+l,eG=ch==0?0:1/ch,dq=hE==0?0:1/hE,f2=dS==0?0:1/dS,a3=e1==0?0:1/e1,bm=0,h2=0,ag=0,eU=0;
bm=~~(.5+(K+W+X+gj)*eG);h2=~~(.5+(u+d+x+hZ)*eG);ag=~~(.5+(n+b+r+hH)*eG);eU=~~(.5+ch*(1/9));L[J]=eU<<24|ag<<16|h2<<8|bm;
bm=~~(.5+(R+W+hl+gj)*dq);h2=~~(.5+(T+d+v+hZ)*dq);ag=~~(.5+(z+b+d3+hH)*dq);eU=~~(.5+hE*(1/9));L[J+1]=eU<<24|ag<<16|h2<<8|bm;
bm=~~(.5+(bP+ca+X+gj)*f2);h2=~~(.5+(eB+fz+x+hZ)*f2);ag=~~(.5+(ga+b_+r+hH)*f2);eU=~~(.5+dS*(1/9));L[J+q]=eU<<24|ag<<16|h2<<8|bm;
bm=~~(.5+(dV+ca+hl+gj)*a3);h2=~~(.5+(b2+fz+v+hZ)*a3);ag=~~(.5+(bb+b_+d3+hH)*a3);eU=~~(.5+e1*(1/9));L[J+q+1]=eU<<24|ag<<16|h2<<8|bm}return{rect:P,Hl:a}};
s.ahU=function(h,e,$){var Z=e.d,c=e.v,q=2*Math.floor(Z/3),E=2*Math.floor(c/3),P=new O(e.x,e.y,q,E),a=$&&$.length==q*E*4?$:s.m(q*E*4),j=new Uint32Array(h.buffer),L=new Uint32Array(a.buffer);
for(var H=0;H<E;H+=2)for(var _=0;_<q;_+=2){var J=H*q+_,S=(H*3>>>1)*Z+(_*3>>>1),N=j[S],Y=j[S+1],U=j[S+2],g=j[S+Z],M=j[S+1+Z],C=j[S+2+Z],y=j[S+Z+Z],i=j[S+1+Z+Z],Q=j[S+2+Z+Z],m=(N>>>16&255)<<2,n=(N>>>8&255)<<2,u=(N&255)<<2,K=(Y>>>16&255)<<1,F=(Y>>>8&255)<<1,b=(Y&255)<<1,d=(U>>>16&255)<<2,W=(U>>>8&255)<<2,A=(U&255)<<2,z=(g>>>16&255)<<1,T=(g>>>8&255)<<1,R=(g&255)<<1,I=M>>>16&255,r=M>>>8&255,x=M&255,X=(C>>>16&255)<<1,l=(C>>>8&255)<<1,hH=(C&255)<<1,hZ=(y>>>16&255)<<2,gj=(y>>>8&255)<<2,hO=(y&255)<<2,d3=(i>>>16&255)<<1,v=(i>>>8&255)<<1,hl=(i&255)<<1,ht=(Q>>>16&255)<<2,ga=(Q>>>8&255)<<2,eB=(Q&255)<<2,bP=0,ek=0,b_=0;
bP=~~(.5+(u+b+R+x)*(1/9));ek=~~(.5+(n+F+T+r)*(1/9));b_=~~(.5+(m+K+z+I)*(1/9));L[J]=255<<24|b_<<16|ek<<8|bP;
bP=~~(.5+(A+b+hH+x)*(1/9));ek=~~(.5+(W+F+l+r)*(1/9));b_=~~(.5+(d+K+X+I)*(1/9));L[J+1]=255<<24|b_<<16|ek<<8|bP;
bP=~~(.5+(hO+hl+R+x)*(1/9));ek=~~(.5+(gj+v+T+r)*(1/9));b_=~~(.5+(hZ+d3+z+I)*(1/9));L[J+q]=255<<24|b_<<16|ek<<8|bP;
bP=~~(.5+(eB+hl+hH+x)*(1/9));ek=~~(.5+(ga+v+l+r)*(1/9));b_=~~(.5+(ht+d3+X+I)*(1/9));L[J+q+1]=255<<24|b_<<16|ek<<8|bP}return{rect:P,Hl:a}};
s.AC=function(h){var e=255,$=h.length;$-=$&31;for(var G=3;G<$;G+=32)e=e&h[G]&h[G+4]&h[G+8]&h[G+12]&h[G+16]&h[G+20]&h[G+24]&h[G+28];
return e!=255};s.a3K=function(h,e,$,Z){var c=s.$I,q=s.a0N,P=0;if(!s.AC(h)){c=s.hg;q=s.ahU}var E={Hl:h,rect:e},a=$;
while(a<.499){P++;a*=2}for(var G=0;G<P;G++)E=c(E.Hl,E.rect,Z);if(a<.5001)E=c(E.Hl,E.rect,Z);else E=q(E.Hl,E.rect,Z);
return E};s.a1t=function(h,e,$,Z){var c=s.dM,q=s.gK,E={Hl:h,rect:e},P=0,a=$;while(a<.499){P++;a*=2}for(var G=0;
G<P;G++)E=c(E.Hl,E.rect,Z);if(a<.5001)E=c(E.Hl,E.rect,Z);else E=q(E.Hl,E.rect,Z);return E};s.dM=function(h,e,$){var Z=e.d,c=e.v,q=Z>>1,E=c>>1,P=new O(e.x,e.y,q,E);
if(h==null)return{rect:P};var a=$&&$.length>=q*E?$:s.m(q*E);for(var j=0;j<E;j++){var L=j*q;for(var H=0;
H<q;H++){var _=(j<<1)*Z+(H<<1);a[L+H]=2+h[_]+h[_+1]+h[_+Z]+h[_+Z+1]>>>2}}return{rect:P,Hl:a}};s.gK=function(h,e,$){var Z=e.d,c=e.v,q=2*Math.floor(Z/3),E=2*Math.floor(c/3),P=new O(e.x,e.y,q,E);
if(h==null)return{rect:P};var a=$&&$.length>=q*E?$:s.m(q*E);for(var j=0;j<E;j+=2)for(var L=0;L<q;L+=2){var H=j*q+L,_=(j*3>>>1)*Z+(L*3>>>1),J=h[_]<<2,S=h[_+1]<<1,N=h[_+2]<<2,Y=h[_+Z]<<1,U=h[_+1+Z],g=h[_+2+Z]<<1,M=h[_+Z+Z]<<2,C=h[_+1+Z+Z]<<1,y=h[_+2+Z+Z]<<2;
a[H]=~~(.5+(J+S+Y+U)*(1/9));a[H+1]=~~(.5+(N+S+g+U)*(1/9));a[H+q]=~~(.5+(M+C+Y+U)*(1/9));a[H+q+1]=~~(.5+(y+C+g+U)*(1/9))}return{rect:P,Hl:a}};
s.T7=function(h,e,$,Z,c){var q=e.jx(Z);if(c)q=q.jx(c);var E=Math.max(0,q.x-e.x),P=Math.max(0,q.x-Z.x),a=Math.max(0,q.y-e.y),j=Math.max(0,q.y-Z.y),L=q.d,H=q.v;
for(var G=0;G<H;G++){var _=(a+G)*e.d+E,J=(j+G)*Z.d+P;for(var S=0;S<L;S++){$[J+S]=h[_+S]}}};s.tv=function(h,e,$,Z){if(e.dz(Z)){s.Jk(h,$,3);
return}var c=e.jx(Z),q=Math.max(0,c.x-e.x),E=Math.max(0,c.x-Z.x),P=Math.max(0,c.y-e.y),a=Math.max(0,c.y-Z.y),j=c.d,L=c.v;
for(var G=0;G<L;G++){var H=(P+G)*e.d+q,_=(a+G)*Z.d+E;for(var J=0;J<j;J++)$[(_+J<<2)+3]=h[H+J]}};s.H_=function(h,e,$,Z){var c=e.jx(Z),q=Math.max(0,c.x-e.x),E=Math.max(0,c.x-Z.x),P=Math.max(0,c.y-e.y),a=Math.max(0,c.y-Z.y),j=c.d,L=c.v;
for(var G=0;G<L;G++){var H=(P+G)*e.d+q,_=(a+G)*Z.d+E;for(var J=0;J<j;J++)$[_+J]=h[(H+J<<2)+3]}};s.hX=function(h,e,$,Z,c){if(e.dz(Z)&&(c==null||c.dz(Z))){s.i7(h,$);
return}h=new Uint32Array(h.buffer),$=new Uint32Array($.buffer);var q=e.jx(Z);if(c)q=q.jx(c);var E=Math.max(0,q.x-e.x),P=Math.max(0,q.x-Z.x),a=Math.max(0,q.y-e.y),j=Math.max(0,q.y-Z.y),L=q.d,H=q.v,_=L&3,J=_==0?L:L-_;
for(var G=0;G<H;G++){var S=(a+G)*e.d+E,N=(j+G)*Z.d+P;$.set(new Uint32Array(h.buffer,S*4,L),N)}};s.wU=function(h,e,$,Z){var c=e.jx(Z),q=Math.max(0,c.x-e.x),E=Math.max(0,c.x-Z.x),P=Math.max(0,c.y-e.y),a=Math.max(0,c.y-Z.y),j=c.d,L=c.v,H=h.R,_=h.h,J=h.l,S=h.O,N=$.R,Y=$.h,U=$.l,g=$.O;
for(var G=0;G<L;G++){var M=(P+G)*e.d+q,C=(a+G)*Z.d+E;for(var y=0;y<j;y++){N[C+y]=H[M+y];Y[C+y]=_[M+y];
U[C+y]=J[M+y];g[C+y]=S[M+y]}}};s.o$=function(h){var e=h.length;for(var G=0;G<e;G+=4){var $=h[G+3];h[G]=~~(h[G]*$*(1/255)+.5);
h[G+1]=~~(h[G+1]*$*(1/255)+.5);h[G+2]=~~(h[G+2]*$*(1/255)+.5)}};s.sS=function(h){var e=h.length;for(var G=0;
G<e;G+=4){var $=h[G+3];if($==0||$==255)continue;var Z=255/$;h[G]=~~(h[G]*Z+.5);h[G+1]=~~(h[G+1]*Z+.5);
h[G+2]=~~(h[G+2]*Z+.5)}};s.w_=function(h,e){for(var G=0;G<h.length;G++)if(h[G]!=e)return!1;return!0};
s.uW=function(h){return h+1+(h>>>8)>>>8};s.round=function(h,e){if(e==null)e=128;var $=h.length;for(var G=0;
G<$;G++)h[G]=h[G]<e?0:255};s.vI=function(h,e){var $=h.length;for(var G=0;G<$;G++)h[G]=Math.round(h[G]*e)};
s.J9=function(h,e){var $=new Uint32Array(h.buffer),Z=new Uint32Array(e.buffer),c=$.length;for(var G=0;
G<c;G++){var q=$[G],E=Z[G];Z[G]=s.uW((q>>>24)*(E>>>24))<<24|s.uW((q>>>16&255)*(E>>>16&255))<<16|s.uW((q>>>8&255)*(E>>>8&255))<<8|s.uW((q&255)*(E&255))}};
s.FE=function(h,e){var $=h.length;for(var G=0;G<$;G++)e[(G<<2)+3]=s.uW(e[(G<<2)+3]*h[G])};s.a3U=function(h,e,$,Z){var c=Math.max(0,Z.x-e.x),q=Math.max(0,e.x-Z.x),E=Math.max(0,Z.y-e.y),P=Math.max(0,e.y-Z.y),a=Math.min(e.x+e.d,Z.x+Z.d)-Math.max(e.x,Z.x),j=Math.min(e.y+e.v,Z.y+Z.v)-Math.max(e.y,Z.y);
for(var G=0;G<j;G++){var L=(E+G)*e.d+c,H=(P+G)*Z.d+q;for(var _=0;_<a;_++){$[H]=s.uW($[H]*h[L]);L++;H++}}};
s.w2=function(h,e,$,Z){var c=Math.max(0,Z.x-e.x),q=Math.max(0,e.x-Z.x),E=Math.max(0,Z.y-e.y),P=Math.max(0,e.y-Z.y),a=Math.min(e.x+e.d,Z.x+Z.d)-Math.max(e.x,Z.x),j=Math.min(e.y+e.v,Z.y+Z.v)-Math.max(e.y,Z.y);
for(var G=0;G<j;G++){var L=(E+G)*e.d+c,H=((P+G)*Z.d+q<<2)+3;for(var _=0;_<a;_++){$[H]=s.uW($[H]*h[L]);
L++;H+=4}}};s.k2=function(h,e,$,Z){var c=Math.max(0,Z.x-e.x),q=Math.max(0,e.x-Z.x),E=Math.max(0,Z.y-e.y),P=Math.max(0,e.y-Z.y),a=Math.min(e.x+e.d,Z.x+Z.d)-Math.max(e.x,Z.x),j=Math.min(e.y+e.v,Z.y+Z.v)-Math.max(e.y,Z.y);
for(var G=0;G<j;G++){var L=((E+G)*e.d+c<<2)+3,H=((P+G)*Z.d+q<<2)+3;for(var _=0;_<a;_++){$[H]=s.uW($[H]*h[L]);
L+=4;H+=4}}};s.CN=function(h){var e=new Float64Array(256),$=new Float64Array(256),Z=new Float64Array(256),c=new Float64Array(256),q=h.length,E=0;
for(var G=0;G<q;G+=4){var P=h[G+3],a=P*(1/255);$[h[G+0]]+=a;Z[h[G+1]]+=a;c[h[G+2]]+=a;E+=P}for(var G=0;
G<256;G++)e[G]=$[G]+Z[G]+c[G];return[e,$,Z,c,q>>>2,E/255]};s.FS=function(h,e){var $=new Uint32Array(h.buffer),Z=$.length;
for(var G=0;G<Z;G++){var c=$[G],q=c&255,E=c>>8&255,P=c>>16&255,a=c>>24&255;$[G]=e[q]|e[E]<<8|e[P]<<16|e[a]<<24}};
s.al_=function(h,e,$,Z,c,q,E){var P=new Uint32Array(h.buffer),a=new Uint32Array(e.buffer),j=P.length,L=0;
while(256<<L<$.length)L++;if(!E&&!q){for(var G=0;G!=j;G++){var H=P[G],_=(H&255)<<L,J=(H>>>8&255)<<L,S=(H>>>16&255)<<L,N=$[_],Y=Z[J],U=c[S];
a[G]=N|Y<<8|U<<16|H&4278190080}return}for(var G=0;G<j;G++){var H=P[G],_=(H&255)<<L,J=(H>>>8&255)<<L,S=(H>>>16&255)<<L;
if(q)_=J=S=Math.round(_*.3+J*.59+S*.11);var N=$[_],Y=Z[J],U=c[S];if(E){var g=s.jv(_,J,S),M=s.jv(N,Y,U);
if(g>M){var C=(g-M)/(255-M);N+=C*(255-N);Y+=C*(255-Y);U+=C*(255-U)}else if(M==0)N=Y=U=0;else{var C=g/M;
N=C*N;Y=C*Y;U=C*U}}a[G]=N|Y<<8|U<<16|H&4278190080}};s.Hd=function(h,e){var $=e.d,Z=e.v,top=0,c=0,q=0,E=0,P=0;
P=0;for(var a=0;a<Z;a++){var j=a*$;for(var G=0;G<$;G++)P|=h[j+G];if(P!=0)break;top++}if(top==Z)return new O(0,0,0,0);
P=0;for(var a=Z-1;a>=0;a--){var j=a*$;for(var G=0;G<$;G++)P|=h[j+G];if(P!=0)break;q++}var L=Z-q;P=0;
for(var G=0;G<$;G++){for(var a=top;a<L;a++)P|=h[a*$+G];if(P!=0)break;c++}P=0;for(var G=$-1;G>=0;G--){for(var a=top;
a<L;a++)P|=h[a*$+G];if(P!=0)break;E++}var H=new O(e.x+c,e.y+top,$-c-E,Z-top-q);return H};s.ZC=function(h,e,$,Z){if(Z==null)Z=[!0,!0,!0,!0];
if($==null)$=0;var c=new Uint32Array(h.buffer),q=e.d,E=e.v,top=0,P=0,a=0,j=0,L=!1,H=[c[0],c[c.length-1],0][$];
L=!1;if(Z[0])for(var _=0;_<E;_++){var J=_*q;for(var G=0;G<q;G++)if(c[J+G]!=H)L=!0;if(L)break;top++}L=!1;
if(Z[2])for(var _=E-1;_>=0;_--){var J=_*q;for(var G=0;G<q;G++)if(c[J+G]!=H)L=!0;if(L)break;a++}L=!1;
if(Z[1])for(var G=0;G<q;G++){for(var _=0;_<E;_++)if(c[_*q+G]!=H)L=!0;if(L)break;P++}L=!1;if(Z[3])for(var G=q-1;
G>=0;G--){for(var _=0;_<E;_++)if(c[_*q+G]!=H)L=!0;if(L)break;j++}var S=new O(e.x+P,e.y+top,q-P-j,E-top-a);
return S.nK()?new O(0,0,0,0):S};s.V9=function(h){var e=s.Hd(h.channel,h.rect);if(e.dz(h.rect))return;
var $=s.m(e.X());s.T7(h.channel,h.rect,$,e);h.channel=$;h.rect=e};s.Wm=function(h){var e=s.m(h.buffer.length>>2);
s.z0(h.buffer,e,3);var $=s.Hd(e,h.rect);if($.dz(h.rect))return;var Z=new s.m($.X()*4);s.hX(h.buffer,h.rect,Z,$);
h.buffer=Z;h.rect=$};s.extend=function(h,e,$){if(h.rect.x1(e))return;var Z=h.rect.iJ(e),c=s.m(Z.X());
if($!=null)c.fill($);s.T7(h.channel,h.rect,c,Z);h.rect=Z;h.channel=c};s.a0p=function(h,e){if(e.nK()||h.rect.x1(e))return;
var $=h.rect.iJ(e),Z=s.m($.X()*4);s.hX(h.buffer,h.rect,Z,$);h.rect=$;h.buffer=Z};s.mI=function(h,e,$){if(!$.B4(h))return!1;
var Z=Math.floor(h.x)-$.x,c=Math.floor(h.y)-$.y,G=c*$.d+Z;return e[G]>128};s.a7h=function(h,e,$){if(!$.B4(h))return!1;
var Z=Math.floor(h.x)-$.x,c=Math.floor(h.y)-$.y,G=c*$.d+Z;return e[4*G+3]>128};s.Bh=function(h){if(s.HB.length<h){s.HB=s.m(h);
s.HB.fill(255)}return s.HB};s.HB=s.m(0);s.qm=function(h){if(s.dZ.length<h)s.dZ=s.m(h);return s.dZ};s.dZ=s.m(0);
s.EI=function(h){this.R=s.m(h);this.h=s.m(h);this.l=s.m(h);this.O=s.m(h)};s.EI.prototype.clone=function(){var h=this.R.length,e=new s.EI(1);
e.R=this.R.slice(0);e.h=this.h.slice(0);e.l=this.l.slice(0);e.O=this.O.slice(0);return e};s.rE.yq=function(){function h(g,M){return g[M]+g[M+1]+g[M+2]+g[M+3]}function e(g,M){return g[M]+g[M+1]+g[M+2]+2*g[M+3]}function $(g,M,C,y){g[M]=C[y];
g[M+1]=C[y+1];g[M+2]=C[y+2];g[M+3]=C[y+3]}function Z(g,M,C){g[M]=g[C];g[M+1]=g[C+1];g[M+2]=g[C+2];g[M+3]=g[C+3]}function c(g,M,C){g[C]=M[C];
g[C+1]=M[C+1];g[C+2]=M[C+2];g[C+3]=255-M[C+3]}function q(g){for(var G=0,M=g.length;G<M;G+=4){g[G+3]=255-g[G+3]}}function E(){var g=Math.random();
if(g>.5)return 0;if(g>.25)return 1;if(g>.1)return 2;if(g>.02143)return 3;if(g>.00445)return 4;if(g>65e-5)return 5;
if(g>415e-6)return 6;if(g>55e-6)return 7;return 8}function P(g,M,C,y,i,Q){g[M]=C[y]+(i[Q]-C[y]>>1);g[M+1]=C[y+1]+(i[Q+1]-C[y+1]>>1);
g[M+2]=C[y+2]+(i[Q+2]-C[y+2]>>1);g[M+3]=C[y+3]+(i[Q+3]-C[y+3]>>1)}function a(g,M,C,y,i,Q){g[M]=i[Q]+C[y]>>1;
g[M+1]=i[Q+1]+C[y+1]>>1;g[M+2]=i[Q+2]+C[y+2]>>1;g[M+3]=i[Q+3]+C[y+3]>>1}function j(g,M,C,y,i,Q,m,n,u){var K=0,F=0,b=0,G,d=i[Q],W;
P(n,0,g,M,g,C);for(G=0;G<d;G++){P(n,(G+1)*4,n,G*4,g,C)}F=(d+1)*4;b+=d;Q--;$(g,M,n,F-4);y[Q]=h(g,M);M-=u;
while(Q>0&&y[Q-1]<y[Q]){W=n;n=m;m=W;K=F;a(n,0,g,M-u,m,0);for(G=4;G<K;G+=4){a(n,G,n,G-4,m,G)}d=i[Q];for(G=b;
G<d;G++){P(n,F,n,F-4,m,K-4);F+=4;b++}Q--;$(g,M,n,F-4);y[Q]=h(g,M);M-=u}}function L(g,M,C,y,i){var Q=M*4,m=0,n,u,K=new Uint8Array(M+1),F=new Uint8Array(10*4),b=new Uint8Array(10*4);
for(var G=0;G<C;G++){c(y,g,m);i[0]=h(y,m);K[0]=E();n=m;m+=4;for(var d=1;d<M;d++){c(y,g,m);i[d]=h(y,m);
u=E();K[d]=u;if(i[d-1]<i[d]&&u>0){j(y,m-4,m,i,K,d,F,b,4)}m+=4}i[M]=i[0];K[M]=K[0];if(i[M-1]<i[M]&&u>0){j(y,m,n,i,K,M,F,b,4)}}q(y)}function H(){var g=Math.random();
if(g>.659755)return 0;if(g>.1625)return 10;if(g>.06)return 20;if(g>.01)return 30;if(g>.0035)return 40;
if(g>65e-5)return 50;if(g>415e-6)return 60;if(g>55e-6)return 70;return 80}function _(g,M,C,y,i,Q){var m=H()+1,n=y[i];
for(var G=1;G<m;G++){if(0>i)break;if(y[i-G]<n){Z(g,M,C)}else{break}M+=Q}}function J(g,M,C,y,i){var Q=M*4,m=0;
for(var G=0;G<C;G++){c(y,g,m);i[0]=h(y,m);m+=4;for(var n=1;n<M;n++){c(y,g,m);i[n]=h(g,m);if(i[n-1]<i[n]){_(y,m-4,m,i,n,-4)}m+=4}i[M]=i[0];
if(i[n-1]<i[n]){_(y,m-4,m-Q,i,n,-4)}}q(y)}function S(g,M,C,y,i,Q){var m=1,n,u,K=new Uint8Array(4),F,b=M;
while(Math.random()<1/m){b=M;if(y<=1)break;n=C[y];u=C[y-1];if(n<=u)break;$(K,0,g,b-Q);F=!0;for(var G=y;
G<i;G++){if(u>C[G]){$(g,b-Q,K,0);C[G-1]=u;F=!1;break}$(g,b-Q,g,b);C[G-1]=C[G];b+=Q}if(F){$(g,b-Q,K,0);
C[i-1]=u}m++;y--;M-=Q}}function N(g,M,C,y,i){var Q=0,m=0,n=M*4;for(var G=0;G<C;G++){m=Q;for(var u=0;
u<M;u++){c(y,g,Q);i[u]=e(y,Q);Q+=4}Q=m;for(var u=1;u<M;u++){if(i[u-1]<i[u]&&Math.random()<.66){S(y,Q+4,i,u,M,4)}Q+=4}Q+=4}q(y)}function Y(g,M,C,y,i){var Q=i[0],m=i[1],n=new Uint16Array(M+1),u=g,K=y,F;
if(m){F=y.slice(0);U(g,y,M,C);u=y;K=F}if(Q==0)L(u,M,C,K,n);else if(Q==1)J(u,M,C,K,n);else if(Q==2)N(u,M,C,K,n);
if(m){U(F,y,M,C)}}function U(g,M,C,y){for(var i=0;i<y;i++)for(var Q=0;Q<C;Q++){var m=i*C+Q<<2,n=i*C+(C-1-Q)<<2;
M[n]=g[m];M[n+1]=g[m+1];M[n+2]=g[m+2];M[n+3]=g[m+3]}}return Y}();s.rE.ao3=function(){function h(e,$,Z,c){var q=new Uint8Array(e.length),E=new Uint8Array(e.length>>>2),P=new Uint8Array(e.length>>>2);
s.V4.mz(e,q,$,Z,s.V4.aY[2],0,!0);for(var G=0;G<e.length;G+=4){var a=q[G+0]*.3+q[G+1]*.59+q[G+2]*.11;
E[G>>>2]=a;c[G+0]=e[G+0];c[G+1]=e[G+1];c[G+2]=e[G+2];c[G+3]=e[G+3]}s.V4.pn(E,P,$,Z);for(var G=0;G<e.length;
G+=4){q[G+3]=~~(Math.max(0,255-P[G>>>2]-50)*(255/205))}for(var G=0,j=e.length;G<j;G+=4){var L=q[G+3]/255;
c[G]=q[G]*L+c[G]*(1-L);c[G+1]=q[G+1]*L+c[G+1]*(1-L);c[G+2]=q[G+2]*L+c[G+2]*(1-L)}}return h}();s.rE.a4G=function(){function h(e,$,Z,c){var q=new Uint8Array(e.length>>>2),E=new Uint8Array(e.length>>>2),P=new Uint8Array(e.length);
for(var G=0;G<e.length;G+=4){var a=e[G+0]*.3+e[G+1]*.59+e[G+2]*.11;E[G>>>2]=a;P[G]=e[G];P[G+1]=e[G+1];
P[G+2]=e[G+2]}s.V4.pn(E,q,$,Z);s.V4.mz(e,c,$,Z,s.V4.aY[1],0,!0);for(var G=0;G<e.length;G+=4){P[G+3]=255-q[G>>>2]}for(var G=0,j=e.length;
G<j;G+=4){var L=P[G+3]/255;c[G]=P[G]*L+c[G]*(1-L);c[G+1]=P[G+1]*L+c[G+1]*(1-L);c[G+2]=P[G+2]*L+c[G+2]*(1-L)}}return h}();
s.rE.a2v=function(){function h(q,E,P,a,j){var L=new Uint32Array(q.buffer),H=0;for(var G=0;G<P;G++){for(var _=0;
_<E;_++,H+=4){var J=L[G*E+_],S=J&255,N=J>>>8&255,Y=J>>>16&255,U=J>>>24&255,g=~~(Math.random()*8),M=g%3,C=0,y=0;
if(g<3){y--}else if(g>4){y++}if(M==0){C--}else if(M==2){C++}var i=_+C,Q=G+y;if(i<0)i=0;else if(i>E-1)i=E-1;
if(Q<0)Q=0;else if(Q>P-1)Q=P-1;var J=L[Q*E+i],m=J&255,n=J>>>8&255,u=J>>>16&255,K=J>>>24&255;a[H]=j(S,m);
a[H+1]=j(N,n);a[H+2]=j(Y,u);a[H+3]=j(U,K)}}}function e(q,E){return E}function $(q,E){return q>E?E:q}function Z(q,E){return q<E?E:q}function c(q,E,P,a,j){var L=j[0];
if(L==0)h(q,E,P,a,e);else if(L==1)h(q,E,P,a,$);else if(L==2)h(q,E,P,a,Z);else if(L==3){console.error("Not implemented")}else console.error("Mew mew")}return c}();
s.rE.ah8=function(){var h=[],e=new Uint8Array(512),$=new Float32Array(512),Z=new Float32Array(512),c=[1,-1,1,-1,1,-1,0,0],q=[1,1,-1,-1,0,0,1,-1],E=0,P,S=0;
for(;E<256;E++)h[E]=E;while(E!=0){E--;P=Math.floor(Math.random()*E);h[P]^=h[E]^(h[E]=h[P])}function a(a){a=Math.floor(a*65536);
if(a<256){a|=a<<8}for(var G=0;G<256;G++){var U=G+256,g=h[G]^(G&1?a:a>>8)&255;e[G]=e[U]=g;g=g%8;$[G]=$[U]=c[g];
Z[G]=Z[U]=q[g]}}function j(U){return U*U*U*(U*(U*6-15)+10)}function L(U,g,M){return(1-M)*U+M*g}function H(U,g){return U&g}function _(U,g){return U%g}function J(U,g,M,C,y){var i=Math.floor(U),Q=Math.floor(g),E,m,n,u,K,F;
U=U-i;g=g-Q;i=i&255;Q=Q&255;E=i+e[Q];u=$[E]*U+Z[E]*g;E=i+e[y(Q+1,C)];n=$[E]*U+Z[E]*(g-1);E=y(i+1,M)+e[Q];
K=$[E]*(U-1)+Z[E]*g;E=y(i+1,M)+e[y(Q+1,C)];F=$[E]*(U-1)+Z[E]*(g-1);m=j(U);return L(L(u,K,m),L(n,F,m),j(g))}function N(U,E,g){U[E]=g}function Y(U,g,M,C,y){var i=Math.min(Math.min(g,256),Math.min(256,M)),Q=i==256||i<8,m=8,n=new Uint32Array(m),u=new Uint32Array(m),K=new Float32Array(m),F=new Float32Array(m),b=1,d=1,W=Q?H:_,A=N,z;
for(var G=0;G<m;G++){z=d*1/i;if(Q){u[G]=(1<<Math.ceil(Math.log2(M*z)))-1;n[G]=(1<<Math.ceil(Math.log2(g*z)))-1}else{u[G]=z*M;
n[G]=z*g}K[G]=b;F[G]=z;b*=.5;d=d<<1}a(Math.random());for(var T=0,E=0;T<M;T++){for(var R=0;R<g;R++){var I=0;
for(var r=0;r<m;r++){z=F[r];I+=J(R*z,T*z,n[r],u[r],W)*K[r]}A(C,E++,Math.round(Math.max(0,255*Math.min(1,.5+I*.5))))}}}return Y}();
s.rE.a0o=function(){function h(e,$,Z,c,q){var E=q&&q[0]?q[0]:4,P,a,j,L,H,_,J;for(var G=0;G<Z;G++){var S=Math.max(G-E,0),N=Math.min(G+E,Z-1);
for(var Y=0;Y<$;Y++){var U=Math.max(Y-E,0),g=Math.min(Y+E,$-1);P=S*$+U<<2;L=e[P];H=e[P+1];_=e[P+2];J=e[P+3];
P=S*$+g<<2;L+=e[P];H+=e[P+1];_+=e[P+2];J+=e[P+3];P=N*$+U<<2;L+=e[P];H+=e[P+1];_+=e[P+2];J+=e[P+3];P=N*$+g<<2;
L+=e[P];H+=e[P+1];_+=e[P+2];J+=e[P+3];P=G*$+Y<<2;c[P]=L+2>>>2;c[P+1]=H+2>>>2;c[P+2]=_+2>>>2;c[P+3]=J+2>>>2}}}return h}();
s.rE.abM=function(){var h=[-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 e($,Z,c,q,E){var P=E[0],a=E[1],j=a<=50?h[a]/255:1+(255-h[101-a])/255,L=E[2],H=$.length,_=new Float32Array(H),J=0,S,N=1+1/10*P,Y=(1-1/N)/2,U=16/256,g=Z-1,G,M,C,y,i=0,Q=1,m=255;
for(G=0;G<q.length;G++){_[G]=$[G]/255;q[G]=P==1?Math.random()<1/255?m:Q:Q}function n(u,K){var F=u*Z+K;
if(q[F]!=Q||u>=c||K>=Z){return}var C=_[F],b=j-C,d=Math.random(),W=d/N+Y;if(J==0||Math.abs(y-C)>U){S=W<=b?i:m;
J=~~(Math.random()*P)}else if(.1<d){J--}else{J=0}q[F]=S;y=C}if(L==0){for(G=0;G<Z;G++){for(M=0;M<Z;M++){C=G+M;
if(C>=Z)break;n(M,g-C)}J=0}for(G=1;G<c;G++){for(M=0;M<c;M++){C=G+M;if(C>=c||M>=Z)break;n(C,g-M)}J=0}}else if(L==1){for(G=0;
G<c;G++){for(M=0;M<Z;M++){n(G,M)}J=0}}else if(L==2){for(G=0;G<Z;G++){for(M=0;M<Z;M++){C=G+M;if(C>=Z)break;
n(M,C)}J=0}for(G=1;G<c;G++){for(M=0;M<c;M++){C=G+M;if(C>=c||M>=Z)break;n(C,M)}J=0}}else{for(G=0;G<Z;
G++){for(M=0;M<c;M++){n(M,G)}J=0}}}return e}();s.rE.ad4=function(){function h(P){var a=new Uint8Array(256),j=new Uint8Array(256),L=255,G;
if(P<2)L=P;else if(P<12)L=5*P-5;else if(P<47)L=2*P+28;else if(P<50){G=P-47;L=125+12.5*G+12.5*G*G}for(var G=0;
G<256;G++){j[G]=L<G?0:255}for(var G=0;G<256;G++){var H=G<<3;a[G]=j[H>255?255:H]}return j}function e(){var P=new Uint8Array(256),G,a;
for(G=75,a=15;a<256;G++,a+=24)P[G]=a;for(;G<256;G++)P[G]=255;return P}function $(P,a,j,L){c(P,a,j,11,L)}function Z(P,a,j,L){c(P,a,j,5,L);
for(var G=0;G<L.length;G++)L[G]=L[G]<51?0:255}function c(P,a,j,L,H){s.Nw.cW(P,H,new O(0,0,a,j),L>>>1)}function q(P,a){var j=P.length,L;
for(var G=0;G<j;G++){L=P[G]-a[G];a[G]=L<0?0:L}}function E(P,a,j,L,H){var _=H[0],J=H[1],S=h(_),N=e(),Y=P.length,U=new Uint8Array(Y),g=L;
$(P,a,j,U);$(U,a,j,g);q(g,P);for(var G=0;G<Y;G++){var M=P[G]*8;P[G]=M>255?255:M}q(g,P);for(var G=0;G<Y;
G++){P[G]=S[P[G]]}var C=J,y=J;if((C&1)==0){C++;y--}Z(P,a,j,U);c(U,a,j,C,g);c(g,a,j,y,U);for(var G=0;
G<Y;G++)L[G]=N[255-U[G]]}return E}();s.rE.anD=function(){var h,c,q,E,P,a;function e(U){var g=0,M=U.length,C=new Uint8Array(M>>2);
for(var G=0;G<M;G+=4){C[g++]=~~((U[G]+U[G+1]+U[G+2])/3)}h=C;return C}function $(U,g,M,C,y){var i=y,Q=y>>1,m=Q-1,n=i*i,u=0;
for(var G=0;G<C;G++){var K=0;for(var F=0;F<i;F++){for(var b=0;b<i;b++){var d=0-Q+b,W=G-Q+F;if(d<0)d=0;
else if(d>=M)d=M-1;if(W<0)W=0;else if(W>=C)W=C-1;K+=U[W*M+d]}}g[u++]=~~(K/n);for(var A=1;A<M;A++){for(var F=0;
F<i;F++){var z=A-Q-1,T=z+i,W=G-Q+F;if(z<0)z=0;if(T>=M)T=M-1;if(W<0)W=0;else if(W>=C)W=C-1;K+=U[W*M+T]-U[W*M+z]}g[u++]=~~(K/n)}}h=g}function Z(U,g){var M=U.length;
for(var G=0;G<M;G++){g[G]=Math.max(U[G]-g[G],0)}h=g}var j=new Uint8Array(256),L=new Uint8Array(256);
function H(U){q=U[0];P=U[1];a=U[2];c=2*q+1;var g=5+10*P;g+=P>3?(P-3)*10:0;var M=~~(a*.73)+50,C=Math.min(M+g,128),y=C-M,i=-255*M;
E=q+4;for(var G=0;G<256;G++){var Q=G*65;j[G]=Q>=256?255:Q;L[G]=Math.max(Math.min(~~(i/y),255),0);i+=255}}function _(U,g,M,C,y,i,Q,m,n,u){var K=y+i-1,F=y>>1,b=K>>1,d=0,W=new Int32Array(y),A=new Int32Array(256),z=new Int32Array(16);
if(!Q){b}for(var G=0;G<C;G++){A.fill(0);z.fill(0);for(var T=0;T<y;T++){var R=Q?K-T-i:T;for(var I=R,r=i+R;
I<r;I++){var x=0-b+I,X=G-F+T;if(I==R){W[T]=x}if(x<0)x=0;else if(x>=M)x=M-1;if(X<0)X=0;else if(X>=C)X=C-1;
var l=U[X*M+x];A[l]++;z[l>>>4]++}}var hH=0,hZ;for(hZ=0;hZ<256;hZ++){hH+=A[hZ];if(hH>=u)break}g[d++]=hZ;
for(var gj=1;gj<M;gj++){for(var T=0;T<y;T++){var X=G-F+T,R=W[T]+1;W[T]=R;var hO=R-1,d3=R+i-1;if(X<0)X=0;
else if(X>=C)X=C-1;if(hO<0)hO=0;else if(hO>=M)hO=M-1;if(d3<0)d3=0;else if(d3>=M)d3=M-1;var v=U[X*M+hO],hl=U[X*M+d3];
A[v]--;z[v>>>4]--;A[hl]++;z[hl>>>4]++}hH=0;hZ=0;while(hH+z[hZ>>>4]<u){hH+=z[hZ>>>4];hZ+=16}for(;hZ<256;
hZ++){hH+=A[hZ];if(hH>=u)break}g[d++]=hZ}}h=g}function J(U){var g=U.length,M=new Uint8Array(g),G=0;for(;
G<g;G++){M[G]=U[G]}h=M;return M}function S(U,g){for(var G=0,M=U.length;G<M;G++){U[G]=g[U[G]]}h=U}function N(U,g,M,C){var y=0;
for(var G=0;G<M;G++){var i=G*C,Q=(G-1)*C,m=(G+1)*C;if(Q<0)Q=i;if(m>=M)m=i;for(var n=0;n<C;n++){var u=n-1,K=n+1;
if(u<0)u=n;if(K>=C)K=n;var F=U[i+u],b=U[i+K],d=U[Q+n],W=U[m+n],A=U[i+n];g[y++]=Math.min(Math.max(A+2*(4*A-(F+b+d+W)),0),255)}}h=g}function Y(U,g,M,C,y){H(y);
var i=U.length,Q=new Uint8Array(i),m=J(U);$(U,Q,g,M,c);for(var G=0;G<i;G++){U[G]=Math.min(Math.max(Q[G]-U[G],0)*65,255)}_(U,Q,g,M,9,3,!0,0,65,20);
for(var G=0;G<i;G++){var n=m[G],u=Q[G];if(u>0)U[G]=~~((u*n+(255-u)*128)/255);else U[G]=128}h=U;$(U,Q,g,M,3);
_(Q,U,g,M,15,2,!0,0,1,16);_(Q,m,g,M,15,2,!1,0,1,15);for(var G=0;G<i;G++){m[G]=U[G]+m[G]>>1}h=m;N(m,Q,M,g);
S(Q,L);$(Q,U,g,M,2);C.set(h)}return Y}();s.C6={a7g:function(h,e){var G=h.length;h.push(e);var $=G>>>1;
while($!=0&&h[G][0]<h[$][0]){var Z=h[G];h[G]=h[$];h[$]=Z;G=$;$=G>>>1}},ai1:function(h){if(h.length==2)return h.pop();
var top=h[1],G=1;h[1]=h.pop();var e=h.length;while(!0){var $=G<<1,Z=$+1,c=G;if($<e&&h[$][0]<h[c][0])c=$;
if(Z<e&&h[Z][0]<h[c][0])c=Z;if(c==G)break;var q=h[G];h[G]=h[c];h[c]=q;G=c}return top},a24:function(h){for(var G=1;
G<h.length;G++){var e=G,$=1e9;while(e!=0){var Z=h[e][0];if(Z>$){console.log(G);throw"e"}$=Z;e=e>>>1}}}};
s.p={};s.p.i4=new Float64Array(256);s.p.i$=new Uint8Array(256*256);s.p.fz=new Uint8Array(256*256);(function(){for(var G=0;
G<256;G++)s.p.i4[G]=255/G;for(var G=0;G<256;G++)for(var h=0;h<256;h++)s.p.i$[G*256+h]=G==0?0:Math.round(h*255/G);
for(var G=0;G<256;G++)for(var h=0;h<256;h++)s.p.fz[G*256+h]=Math.round(G*(255-h)/255)}());s.p.Jn=function(h,e,$,Z,c,q,E,P){if(P==null)P=hn.Wn();
if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(h)==-1){E=E*P.fill;P.fill=1;P.style=!1}var a="norm,dark,mul ,idiv,lbrn,lite,scrn,div ,lddg,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv".split(","),j="dkCl,lgCl,hue ,sat ,colr,lum ".split(","),L=s.p[h+"F"];
if(P.Zo==null&&h=="norm")s.p.and(e,$,Z,c,q,E,L,P.Eq?1:0);else if(h=="diss")s.p.agL(e,$,Z,c,q,E,L,P.Eq?1:0);
else if(a.indexOf(h)!=-1)s.p.amm(e,$,Z,c,q,E,L,P);else if(j.indexOf(h)!=-1)s.p.an3(e,$,Z,c,q,E,L,P)};
s.p.aa$=function(h,e,$){var Z=h*$+1-$;return Z<.001?0:1-Math.min(1,(1-e)/Z)};s.p.alg=function(h,e,$){return h*$==1?1:Math.min(1,e/(1-h*$))};
s.p.ob=function(h){return h<=.25?((16*h-12)*h+4)*h:Math.sqrt(h)};s.p.normF=function(h,e,$){return h};
s.p.darkF=function(h,e,$){return Math.min(h,e)};s.p["mul F"]=function(h,e,$){return h*e};s.p.idivF=function(h,e,$){var Z=h*$+1-$;
return e==1?1:1-e>=Z?0:1-(1-e)/Z};s.p.lbrnF=function(h,e,$){return Math.max(0,h*$+e-$)};s.p.dkClF=function(h,e,$){var Z=s.GE(h)<s.GE(e)?h:e;
$.h=Z.h;$.l=Z.l;$.O=Z.O;return $};s.p.liteF=function(h,e,$){return Math.max(h,e)};s.p.scrnF=function(h,e,$){return e+h-e*h};
s.p["div F"]=function(h,e,$){h*=$;return e==0?0:e>=1-h?1:e/(1-h)};s.p.lddgF=function(h,e,$){h*=$;return Math.min(1,h+e)};
s.p.lgClF=function(h,e,$){var Z=s.GE(h)>s.GE(e)?h:e;$.h=Z.h;$.l=Z.l;$.O=Z.O;return $};s.p.overF=function(h,e,$){return s.p.hLitF(e,h,$)};
s.p.sLitF=function(h,e,$){return h<=.5?e-(1-2*h)*e*(1-e):e+(2*h-1)*(s.p.ob(e)-e)};s.p.hLitF=function(h,e,$){return h<=.5?s.p["mul F"](2*h,e,$):s.p.scrnF(2*h-1,e,$)};
s.p.vLitF=function(h,e,$){return h<=.5?s.p.aa$(2*h,e,$):s.p.alg(2*h-1,e,$)};s.p.lLitF=function(h,e,$){return h<=.5?s.p.lbrnF(2*h,e,$):s.p.lddgF(2*h-1,e,$)};
s.p.pLitF=function(h,e,$){return h<=.5?s.p.darkF(2*h,e,$):s.p.liteF(2*h-1,e,$)};s.p.hMixF=function(h,e,$){if($>.99)return h+e<1?0:1;
return Math.min(1,Math.max(0,(e+h*$-$)/(1-$+1e-6)))};s.p.diffF=function(h,e,$){h*=$;return Math.abs(h-e)};
s.p.smudF=function(h,e,$){return h+e-2*h*e};s.p.fsubF=function(h,e,$){return Math.max(e-h,0)};s.p.fdivF=function(h,e,$){return Math.min(e/h,1)};
s.p["hue F"]=function(h,e,$){s.p.RX(h,s.vD(e),$);s.p.up($,s.GE(e),$)};s.p["sat F"]=function(h,e,$){s.p.RX(e,s.vD(h),$);
s.p.up($,s.GE(e),$)};s.p.colrF=function(h,e,$){s.p.up(h,s.GE(e),$)};s.p["lum F"]=function(h,e,$){s.p.up(e,s.GE(h),$)};
s.p.up=function(h,e,$){var Z=e-s.GE(h);$.h=h.h+Z;$.l=h.l+Z;$.O=h.O+Z;s.p.a9b($)};s.p.a9b=function(h){var e=h.h,$=h.l,Z=h.O,c=s.jv(e,$,Z),t=Math.min(e,$,Z),q=Math.max(e,$,Z);
if(t<0){var E=c/(c-t);e=c+(e-c)*E;$=c+($-c)*E;Z=c+(Z-c)*E}if(q>1){var E=(1-c)/(q-c);e=c+(e-c)*E;$=c+($-c)*E;
Z=c+(Z-c)*E}h.h=e;h.l=$;h.O=Z};s.p.RX=function(h,e,$){var Z=s.p.a0K,c=h.h,q=h.l,E=h.O;if(c==q&&q==E){$.h=$.l=$.O=0}else if(c>q){if(c>E){if(q>E){$.h=e;
$.l=Z(c,q,E,e);$.O=0}else{$.h=e;$.O=Z(c,E,q,e);$.l=0}}else{$.O=e;$.h=Z(E,c,q,e);$.l=0}}else{if(c<E){if(q>E){$.l=e;
$.O=Z(q,E,c,e);$.h=0}else{$.O=e;$.l=Z(E,q,c,e);$.h=0}}else{$.l=e;$.h=Z(q,c,E,e);$.O=0}}};s.p.a0K=function(h,e,$,Z){return(e-$)*Z/(h-$)};
s.p.and=function(h,e,$,Z,c,q,E,P){var a=e.jx(Z).jx(c),j=Math.max(0,a.x-e.x),L=Math.max(0,a.x-Z.x),H=Math.max(0,a.y-e.y),_=Math.max(0,a.y-Z.y),J=a.d,S=a.v,N=e.d,Y=Z.d,U=s.p.i$,g=s.p.fz,M=new Uint32Array(h.buffer),C=new Uint32Array($.buffer);
for(var G=0;G<S;G++){var y=(H+G)*N+j,i=(_+G)*Y+L;for(var Q=0;Q<J;Q++){var m=M[y+Q],K=255;if(m>>>24==0)continue;
if(m>>>24==255&&q==1&&P==0){C[i+Q]=M[y+Q];continue}var n=C[i+Q],u=255*q&255;if(P==0){u=(m>>>24)*q&255;
K=n>>>24}var F=g[K<<8|u],b=u+F,d=m&255,W=m>>>8&255,A=m>>>16&255,z=n&255,T=n>>>8&255,R=n>>>16&255;C[i+Q]=P*(n>>>24)+(1-P)*b<<24|U[b<<8|s.uW(A*u+R*F)]<<16|U[b<<8|s.uW(W*u+T*F)]<<8|U[b<<8|s.uW(d*u+z*F)]}}};
s.p.aa6=function(h,e,$,Z,c,q){var E=e.jx(Z).jx(c),P=Math.max(0,E.x-e.x),a=Math.max(0,E.x-Z.x),j=Math.max(0,E.y-e.y),L=Math.max(0,E.y-Z.y),H=E.d,_=E.v,J=e.d,S=Z.d,N=s.p.i$,Y=s.p.fz,U=new Uint32Array(h.buffer),g=new Uint32Array($.buffer),M=Math.floor(Math.random()*16777215),C=0;
for(var G=0;G<_;G++){var y=(j+G)*J+P,i=(L+G)*S+a;for(var Q=0;Q<H;Q++){var m=U[y+Q];if(m>>>24==0)continue;
if(m>>24==255&&q==1){g[i+Q]=m;continue}var n=g[i+Q],u=(m>>>24)*q*(1/255),K=(n>>>24)*(1/255),F=K*(1-u),b=u+F,d=m&255,W=m>>>8&255,A=m>>>16&255,z=n&255,T=n>>>8&255,R=n>>>16&255;
C>>>=8;if((Q&3)==0)C=s.p.Ms(i+Q+M);var I=b==0?0:1/b,r=Math.floor(b*(256*255))+(C&255)>>>8,x=Math.floor((A*u+R*F)*I+.5),X=Math.floor((W*u+T*F)*I+.5),l=Math.floor((d*u+z*F)*I+.5);
g[i+Q]=r<<24|x<<16|X<<8|l}}};s.p.Z4=function(h,e,$,Z,c,q,E,P){var a=s.jv(h,e,$),j=s.jv(Z,c,q),L=Math.min,H=s.p.abV,_=H(a,P,0);
_=L(_,H(h,P,8));_=L(_,H(e,P,16));_=L(_,H($,P,24));var J=H(j,P,4);J=L(J,H(Z,P,12));J=L(J,H(c,P,20));J=L(J,H(q,P,28));
J=Math.max(J,1-E);var S=Math.min(_,J);return S<0?0:S>1?1:S};s.p.abV=function(h,e,G){return Math.min((h-e[G])*e[G+1],(h-e[G+3])*e[G+2])};
s.p.amm=function(h,e,$,Z,c,q,E,P){var a=1/255,j=a*q,L=P.Eq?1:0,H=P.fill,_=P.style,J=e.jx(Z).jx(c),S=Math.max(0,J.x-e.x),N=Math.max(0,J.x-Z.x),Y=Math.max(0,J.y-e.y),U=Math.max(0,J.y-Z.y),g=J.d,M=J.v,C=e.d,y=Z.d,i=new Uint32Array(h.buffer),Q=new Uint32Array($.buffer);
for(var G=0;G<M;G++){var m=(Y+G)*C+S,n=(U+G)*y+N;for(var u=0;u<g;u++,m++,n++){var K=i[m],I=1;if(K>>>24==0)continue;
var F=Q[n],b=(K&255)*a,d=(K>>>8&255)*a,W=(K>>>16&255)*a,A=(F&255)*a,z=(F>>>8&255)*a,T=(F>>>16&255)*a,R=q;
if(L==0){R=(K>>>24)*j;I=(F>>>24)*a}if(P.Zo)R*=s.p.Z4(b,d,W,A,z,T,I,P.Zo);var r=I*(1-R),x=R+r,X=x==0?0:255/x,l=_?1:R,hH=((1-I)*R*b+(1-l)*I*A+l*I*E(b,A,(1+R-l)*H))*X,hZ=((1-I)*R*d+(1-l)*I*z+l*I*E(d,z,(1+R-l)*H))*X,gj=((1-I)*R*W+(1-l)*I*T+l*I*E(W,T,(1+R-l)*H))*X;
x=R*H+I*(1-R*H);var hO=~~(x*255+.5);Q[n]=L*(F>>>24)+(1-L)*hO<<24|gj<<16|hZ<<8|hH}}};s.p.an3=function(h,e,$,Z,c,q,E,P){var a=1/255,j=a*q,L=P.Eq?1:0,H=e.jx(Z).jx(c),_=Math.max(0,H.x-e.x),J=Math.max(0,H.x-Z.x),S=Math.max(0,H.y-e.y),N=Math.max(0,H.y-Z.y),Y=H.d,U=H.v,g=new Uint32Array(h.buffer),M=new Uint32Array($.buffer),C={h:0,l:0,O:0},y={h:0,l:0,O:0},i={h:0,l:0,O:0};
for(var G=0;G<U;G++){var Q=(S+G)*e.d+_,m=(N+G)*Z.d+J;for(var n=0;n<Y;n++,Q++,m++){var u=g[Q],K=M[m],F=(u&255)*a,b=(u>>>8&255)*a,d=(u>>>16&255)*a,W=(K&255)*a,A=(K>>>8&255)*a,z=(K>>>16&255)*a,T=q,R=1;
if(L==0){T=(u>>>24)*j;R=(K>>>24)*a}if(P.Zo)T*=s.p.Z4(F,b,d,W,A,z,R,P.Zo);var I=R*(1-T),r=T+I,x=255/r;
C.h=F;C.l=b;C.O=d;y.h=W;y.l=A;y.O=z;E(C,y,i);var X=(((1-R)*F+R*i.h)*T+W*I)*x,l=(((1-R)*b+R*i.l)*T+A*I)*x,hH=(((1-R)*d+R*i.O)*T+z*I)*x,hZ=L*(K>>>24)+(1-L)*Math.round(r*255);
M[m]=hZ<<24|hH<<16|l<<8|X}}};s.p.f$=function(h){h=h^61^h>>>16;h=h+(h<<3);h=h^h>>>4;h=h*668265261;h=h^h>>15;
return(h&16777215)*(1/16777215)};s.p.Ms=function(h){h=h^61^h>>>16;h=h+(h<<3);h=h^h>>>4;h=h*668265261;
h=h^h>>>15;return h};s.p.nD=function(h){this.ZW=h};s.p.nD.prototype.get=function(){var h=this.ZW=s.p.Ms(this.ZW);
return(h&16777215)*(1/16777215)};s.p.agL=function(h,e,$,Z,c,q,E,P){var a=1/255,j=a*q,L=Math.round(q*(256*256*256/255)),H=e.jx(Z).jx(c),_=Math.max(0,H.x-e.x),J=Math.max(0,H.x-Z.x),S=Math.max(0,H.y-e.y),N=Math.max(0,H.y-Z.y),Y=H.d,U=H.v,g=new Uint32Array(h.buffer),M=new Uint32Array($.buffer);
for(var G=0;G<U;G++){var C=(S+G)*e.d+_,y=(N+G)*Z.d+J;for(var i=0;i<Y;i++,C++,y++){var Q=g[C],m=M[y],n=P*255+(1-P)*(Q>>>24);
if((s.p.Ms(C)&16777215)>=n*L)continue;M[y]=Q&16777215|P*(m>>>24)+(1-P)*255<<24}}};s.p.a5T=function(h,e,$){for(var G=0;
G<h.length;G+=4){var Z=$[G>>>2];if(Z==0)continue;var c=Z*(1/255),q=1/c,E=e[G],P=e[G+1],a=e[G+2],j=h[G],L=h[G+1],H=h[G+2];
e[G]=Math.min(255,Math.max(0,Math.round((E-(1-c)*j)*q)));e[G+1]=Math.min(255,Math.max(0,Math.round((P-(1-c)*L)*q)));
e[G+2]=Math.min(255,Math.max(0,Math.round((a-(1-c)*H)*q)));e[G+3]=255}};s.p.cZ=function(h,e,$,Z,c,q,E,P,a,j,L){if(j==null)j=!1;
if(L==null)L=[1,1,1];var H=255<<24|L[2]*16711680|L[1]*65280|L[0]*255,_=~H;if(c&&!e.dz(q)){var J=s.m(e.X()*4);
J.fill(E);s.T7(c,q,J,e);c=J;q=e}if(j){if(c==null)s.p.a41(h,e,$,Z,c,P,a,H,_);else s.p.ali(h,e,$,Z,c,P,a)}else{if(c==null)s.p.adt(h,e,$,Z,c,P,a,H,_);
else s.p.anu(h,e,$,Z,c,P,a)}};s.p.adt=function(h,e,$,Z,c,q,E,P,a){var j=1/255,L=e.jx(Z).jx(q),H=Math.max(0,L.x-e.x),_=Math.max(0,L.x-Z.x),J=Math.max(0,L.y-e.y),S=Math.max(0,L.y-Z.y),N=L.d,Y=L.v,U=new Uint32Array(h.buffer),g=new Uint32Array($.buffer),M=s.p.i$,C=E*255&255;
for(var G=0;G<Y;G++){var y=(J+G)*e.d+H,i=(S+G)*Z.d+_;for(var Q=0;Q<N;Q++,y++,i++){var m=U[y],n=g[i],u=m>>>24,K=n>>>24,F=s.uW(C*u+(255-C)*K),b=s.uW(u*C),d=s.uW(K*(255-C)),W=m&255,A=m>>>8&255,z=m>>>16&255,T=n&255,R=n>>>8&255,I=n>>>16&255,r=b*W+T*d,x=b*A+R*d,X=b*z+I*d;
r=M[F<<8|s.uW(r)];x=M[F<<8|s.uW(x)];X=M[F<<8|s.uW(X)];var l=F<<24|X<<16|x<<8|r;g[i]=a&n|P&l}}};s.p.a41=function(h,e,$,Z,c,q,E,P,a){var j=1/255,L=e.jx(Z).jx(q),H=Math.max(0,L.x-e.x),_=Math.max(0,L.x-Z.x),J=Math.max(0,L.y-e.y),S=Math.max(0,L.y-Z.y),N=L.d,Y=L.v,U=new Uint32Array(h.buffer),g=new Uint32Array($.buffer),M=s.p.i$,C=E*16777215&16777215;
for(var G=0;G<Y;G++){var y=(J+G)*e.d+H,i=(S+G)*Z.d+_;for(var Q=0;Q<N;Q++,y++,i++){if((s.p.Ms(y)&16777215)<C){g[i]=a&g[i]|P&U[y]}}}};
s.p.anu=function(h,e,$,Z,c,q,E){var P=1/255,a=e.jx(Z).jx(q),j=Math.max(0,a.x-e.x),L=Math.max(0,a.x-Z.x),H=Math.max(0,a.y-e.y),_=Math.max(0,a.y-Z.y),J=a.d,S=a.v,N=new Uint32Array(h.buffer),Y=new Uint32Array($.buffer),U=s.p.i$;
for(var G=0;G<S;G++){var g=(H+G)*e.d+j,M=(_+G)*Z.d+L;for(var C=0;C<J;C++,g++,M++){var y=c[g]*E&255;if(y==0)continue;
if(y==255){Y[M]=N[g];continue}var i=N[g],Q=Y[M],m=i>>>24,n=Q>>>24,u=s.uW(y*m+(255-y)*n),K=s.uW(m*y),F=s.uW(n*(255-y)),b=i&255,d=i>>>8&255,W=i>>>16&255,A=Q&255,z=Q>>>8&255,T=Q>>>16&255,R=U[u<<8|s.uW(K*b+A*F)],I=U[u<<8|s.uW(K*d+z*F)],r=U[u<<8|s.uW(K*W+T*F)];
Y[M]=u<<24|r<<16|I<<8|R}}};s.p.ali=function(h,e,$,Z,c,q,E){var P=1/255,a=e.jx(Z).jx(q),j=Math.max(0,a.x-e.x),L=Math.max(0,a.x-Z.x),H=Math.max(0,a.y-e.y),_=Math.max(0,a.y-Z.y),J=a.d,S=a.v,N=new Uint32Array(h.buffer),Y=new Uint32Array($.buffer),U=s.p.i$,g=Math.round(E*257);
for(var G=0;G<S;G++){var M=(H+G)*e.d+j,C=(_+G)*Z.d+L;for(var y=0;y<J;y++,M++,C++){var i=c[M]*g;if((s.p.Ms(M)&65535)<i)Y[C]=N[M]}}};
s.p.QO=function(h,e,$,Z,c,q,E){var P=1/255,a=e.jx(Z).jx(q),j=Math.max(0,a.x-e.x),L=Math.max(0,a.x-Z.x),H=Math.max(0,a.y-e.y),_=Math.max(0,a.y-Z.y),J=a.d,S=a.v,N=new Uint32Array(h.buffer),Y=new Uint32Array($.buffer),U=Math.floor(Math.random()*Z.X()),g=s.p.acT;
for(var G=0;G<S;G++){var M=(H+G)*e.d+j,C=(_+G)*Z.d+L;for(var y=0;y<J;y++){var i=c[M+y]*E;if(i==0)continue;
if(i==255){Y[C+y]=N[M+y];continue}var Q=N[M+y],m=Y[C+y],n=Q>>>24,u=m>>>24,K=n*i*(1/255),F=u*(255-i)*(1/255),b=Q&255,d=Q>>>8&255,W=Q>>>16&255,A=m&255,z=m>>>8&255,T=m>>>16&255,R=s.p.Ms(C+y+U),I=Math.floor((K+F)*256+.5)+(R>>>0&255)>>>8,r=I==0?0:256/(K+F),x=b*K+A*F,X=d*K+z*F,l=W*K+T*F,hH=Math.floor(x*r+.5)+(R>>>8&255)>>>8,hZ=Math.floor(X*r+.5)+(R>>>16&255)>>>8,gj=Math.floor(l*r+.5)+(R>>>21&248)>>>8;
Y[C+y]=I<<24|gj<<16|hZ<<8|hH}}};s.p.acT=function(h){return Math.floor(h+Math.random())};s.p.Y6=function(h,e,$,Z,c,q,E){var P=1/255,a=e.jx(Z).jx(q),j=Math.max(0,a.x-e.x),L=Math.max(0,a.x-Z.x),H=Math.max(0,a.y-e.y),_=Math.max(0,a.y-Z.y),J=a.d,S=a.v;
for(var G=0;G<S;G++){var N=(H+G)*e.d+j,Y=(_+G)*Z.d+L;for(var U=0;U<J;U++,N++,Y++){var g=E*c[N]*P;if(g==0)continue;
if(g==1){$[Y]=h[N];continue}$[Y]=h[N]*g+$[Y]*(1-g)}}};s.Fn={};s.Fn.anJ=function(h,e,$,Z,c,q){s.Fn.tU(h,e,$,Z,c,q,null,0)};
s.Fn.ajY=function(h,e,$,Z,c){s.Fn.tU(h,e,$,Z,c,null,null,0)};s.Fn.alA=function(h,e,$,Z,c,q,E){s.Fn.tU(h,e,$,Z,c,null,q,E*.5)};
s.Fn.tU=function(h,e,$,Z,c,q,E,P){var a=0,F=0,b=1e9,d=0,W=1e9,A=0,z=1e9,T=0,R=0,I=0,r=0;if(q){a=c*.5;
c=3+Math.round((c-3)*.75)}if(E){c=Math.round(c*2.2)}var j=1/c,L=Math.floor(e*j)+1,H=Math.floor($*j)+1,_=[],J=new Uint8Array(L*H*4),S=E?.5:1,N=q?64:0;
for(var Y=0;Y<H;Y++){var U=E?.5*(Y&1):0;for(var g=0;g<L;g++){var M=(g+Math.random()*S+U)*c,C=(Y+Math.random()*S)*c;
_.push(M,C);var y=Math.min(e-1,Math.floor(M)),i=Math.min($-1,Math.floor(C)),Q=(i*e+y)*4,m=(Y*L+g)*4;
for(var G=0;G<4;G++)J[m+G]=Math.max(0,Math.min(255,Math.floor(h[Q+G]+(Math.random()-.5)*N)))}}var n=q?q:E?E:[0,0,0],u=L*H*2,K=[-L-1,-L,-L+1,-1,0,1,L-1,L,L+1];
for(var Y=0;Y<$;Y++){I=0;for(var g=0;g<e;g++){var x=g+.5,X=Y+.5,l=Math.floor(X*j),hH=Math.floor(x*j),hZ=l*L+hH,d3=0,v=0;
if(I>1+P){b=s.Fn.nh(_,F,x,X);T=Math.sqrt(b);I--;r++}else{b=W=z=1e9;for(var G=0;G<K.length;G++){var gj=(hZ+K[G])*2;
if(gj<0||gj>=u)continue;var hO=s.Fn.nh(_,gj,x,X);if(hO<z){if(hO<W){if(hO<b){A=d;z=W;d=F;W=b;F=gj;b=hO}else{A=d;
z=W;d=gj;W=hO}}else{A=gj;z=hO}}}T=Math.sqrt(b);R=Math.sqrt(W);I=R-(T+R)*.5}if(E==null){var hl=(T+R)*.5,ht=q?Math.max(0,hl-a):0;
d3=Math.max(0,Math.min(1,.5+hl-T-ht));v=Math.max(0,Math.min(1,1-(.5+hl-T)-ht))}else{var ga=Math.min(s.Fn.DA(_,F,d,x,X),s.Fn.DA(_,F,A,x,X));
d3=Math.max(0,Math.min(1,ga-P*.5));if(x<P||e-P<x||X<P||$-P<X)d3=0;v=0}var eB=1-v-d3,m=Y*e+g<<2,bP=F<<1,ek=d<<1;
Z[m+0]=Math.floor(.5+d3*J[bP+0]+v*J[ek+0]+eB*n[0]);Z[m+1]=Math.floor(.5+d3*J[bP+1]+v*J[ek+1]+eB*n[1]);
Z[m+2]=Math.floor(.5+d3*J[bP+2]+v*J[ek+2]+eB*n[2]);Z[m+3]=h[m+3]}}};s.Fn.nh=function(h,e,$,Z){var c=$-h[e],q=Z-h[e+1];
return c*c+q*q};s.Fn.DA=function(h,e,$,Z,c){var q=h[e],E=h[e+1],P=h[$],a=h[$+1],j=(q+P)*.5,L=(E+a)*.5,H=j+(a-E),_=L-(P-q),J=_-L,S=H-j;
return Math.abs(J*Z-S*c+H*L-_*j)/Math.sqrt(S*S+J*J)};s.Nw={};s.Nw.kM=function(h){if(s.Nw.$H.length<h)s.Nw.$H=s.m(h);
return s.Nw.$H};s.Nw.$H=s.m(0);s.Nw._n=function(h){if(s.Nw.Ei.length<h)s.Nw.Ei=new Float32Array(h);return s.Nw.Ei};
s.Nw.Ei=new Float32Array(0);s.Nw.ec=function(h,e,$,Z){var c=$.d,q=$.v;s.Nw.an7(h,e,c,q,Z)};s.Nw.E_=function(h,e,$,Z){var c=$.d,q=$.v;
s.Nw.afx(h,e,c,q,Z)};s.Nw.aaV=function(h,e,$){var Z=e.d,c=e.v;s.Nw.aem(h,Z,c,$)};s.Nw.Yl=function(h,e,$,Z,c){var q=$.d,E=$.v;
s.Nw.a9g(h,e,q,E,Z,c)};s.Nw.cW=function(h,e,$,Z){var c=$.d,q=$.v;Z=Math.round(Z);var E=s.Nw.kM(c*q);
s.i7(h,e);s.Nw.Tr(e,E,c,q,Z)};s.Nw.aH=function(h,e,$){var Z=e.d,c=e.v;$=Math.round($);var q=s.Nw.kM(Z*c*4);
s.Nw.HN(h,q,Z,c,$)};s.Nw.nd=function(h,e,$,Z){var c=$.d,q=$.v;Z=Math.round(Z);var E=s.Nw._n(c*q);s.i7(h,e);
s.Nw.L3(e,E,c,q,Z)};s.Nw.wg=function(h,e,$){var Z=e.d,c=e.v;$=Math.round($);var q=s.Nw.kM(Z*c*4);s.Nw.e0(h,q,Z,c,$);
s.i7(q,h)};s.Nw.dx=function(h,t){var e=Math.sqrt(12*h*h/t+1),$=Math.floor(e);if($%2==0)$--;var Z=$+2,c=(12*h*h-t*$*$-4*t*$-3*t)/(-4*$-4),q=Math.round(c),E=[];
for(var G=0;G<t;G++)E.push(G<q?$:Z);return E};s.Nw.an7=function(h,e,$,Z,c){var q=s.Nw.dx(c,3),E=s.Nw.kM($*Z);
s.i7(h,e);s.Nw.Tr(e,E,$,Z,q[0]-1>>1);s.Nw.Tr(e,E,$,Z,q[1]-1>>1);s.Nw.Tr(e,E,$,Z,q[2]-1>>1)};s.Nw.afx=function(h,e,$,Z,c){var q=s.Nw.dx(c,2),E=s.Nw.kM($*Z);
s.i7(h,e);s.Nw.Tr(e,E,$,Z,q[0]-1>>1);s.Nw.Tr(e,E,$,Z,q[1]-1>>1)};s.Nw.aem=function(h,e,$,Z){var c=s.Nw.dx(Z,3),q=s.Nw.kM(e*$*4);
s.Nw.HN(h,q,e,$,c[0]-1>>1);s.Nw.HN(h,q,e,$,c[1]-1>>1);s.Nw.HN(h,q,e,$,c[2]-1>>1)};s.Nw.a9g=function(h,e,$,Z,c,q){if(q==null)q=3;
var E=s.Nw.dx(c,q),P=s.Nw._n($*Z);s.i7(h,e);for(var G=0;G<q;G++)s.Nw.L3(e,P,$,Z,(E[G]-1)/2)};s.Nw.Tr=function(h,e,$,Z,c){s.Nw.ae1(h,e,$,Z,c);
s.Nw.a7s(e,h,$,Z,c)};s.Nw.HN=function(h,e,$,Z,c){s.Nw.e0(h,e,$,Z,c);s.Nw.anV(e,h,$,Z,c)};s.Nw.L3=function(h,e,$,Z,c){s.Nw.aeL(h,e,$,Z,c);
s.Nw.akx(e,h,$,Z,c)};s.Nw.np=[];s.Nw._q=function(h){if(s.Nw.np[h])return s.Nw.np[h];var e=1/(h+h+1),$=(h+h+1)*256,Z=s.m($);
for(var G=0;G<$;G++)Z[G]=Math.round(G*e);s.Nw.np[h]=Z;return Z};s.Nw.ae1=function(h,e,$,Z,c){var q=1/(c+c+1),E=$-c-c-1,P=s.Nw._q(c);
for(var G=0;G<Z;G++){var a=G*$,j=a,L=a+c,H=h[a],_=h[a+$-1],J=(c+1)*H;for(var S=0;S<c;S++)J+=h[a+S];for(var S=0;
S<=c;S++){J+=h[L+S]-H;e[a+S]=P[J]}L+=c+1;a+=c+1;for(var S=0;S<E;S++){J+=h[L+S]-h[j+S];e[a+S]=P[J]}L+=E;
j+=E;a+=E;for(var S=$-c;S<$;S++){J+=_-h[j++];e[a++]=P[J]}}};s.Nw.e0=function(h,e,$,Z,c){var q=$<<2,E=c<<2,P=1/(c+c+1),a=$-c-c-1,j=a<<2,L=s.Nw._q(c);
for(var G=0;G<Z;G++){var H=G*q,_=H,J=H+E,S=H+q,N=h[H],Y=h[H+1],U=h[H+2],g=h[H+3],M=(c+1)*N,C=(c+1)*Y,y=(c+1)*U,i=(c+1)*g;
for(var Q=0;Q<E;Q+=4){M+=h[H+Q];C+=h[H+Q+1];y+=h[H+Q+2];i+=h[H+Q+3]}for(var Q=0;Q<=E;Q+=4){M+=h[J]-N;
e[H]=L[M];C+=h[J+1]-Y;e[H+1]=L[C];y+=h[J+2]-U;e[H+2]=L[y];i+=h[J+3]-g;e[H+3]=L[i];J+=4;H+=4}for(var Q=0;
Q<j;Q+=4){M+=h[J+Q]-h[_+Q];e[H+Q]=L[M];C+=h[J+Q+1]-h[_+Q+1];e[H+Q+1]=L[C];y+=h[J+Q+2]-h[_+Q+2];e[H+Q+2]=L[y];
i+=h[J+Q+3]-h[_+Q+3];e[H+Q+3]=L[i]}J+=j;_+=j;H+=j;N=h[S-4];Y=h[S-3];U=h[S-2];g=h[S-1];for(var Q=$-c;
Q<$;Q++){M+=N-h[_];e[H]=L[M];C+=Y-h[_+1];e[H+1]=L[C];y+=U-h[_+2];e[H+2]=L[y];i+=g-h[_+3];e[H+3]=L[i];
_+=4;H+=4}}};s.Nw.aeL=function(h,e,$,Z,c){var q=1/(c+c+1),E=$-c-c-1;for(var G=0;G<Z;G++){var P=G*$,a=P,j=P+c,L=h[P],H=h[P+$-1],_=(c+1)*L;
for(var J=0;J<c;J++)_+=h[P+J];for(var J=0;J<=c;J++){_+=h[j+J]-L;e[P+J]=_*q}j+=c+1;P+=c+1;for(var J=0;
J<E;J++){_+=h[j+J]-h[a+J];e[P+J]=_*q}j+=E;a+=E;P+=E;for(var J=$-c;J<$;J++){_+=H-h[a++];e[P++]=_*q}}};
s.Nw.a7s=function(h,e,$,Z,c){var q=1/(c+c+1),E=Z-c-c-1,P=s.Nw._q(c);for(var G=0;G<$;G++){var a=G,j=a,L=a+c*$,H=h[a],_=h[a+$*(Z-1)],J=(c+1)*H;
for(var S=0;S<c;S++)J+=h[a+S*$];for(var S=0;S<=c;S++){J+=h[L]-H;e[a]=P[J];L+=$;a+=$}for(var S=0;S<E;
S++){var N=S*$;J+=h[L+N]-h[j+N];e[a+N]=P[J]}j+=E*$;L+=E*$;a+=E*$;for(var S=Z-c;S<Z;S++){J+=_-h[j];e[a]=P[J];
j+=$;a+=$}}};s.Nw.anV=function(h,e,$,Z,c){var q=$<<2,E=c<<2,P=1/(c+c+1),a=Z-c-c-1,j=a<<2,L=s.Nw._q(c);
for(var G=0;G<$;G++){var H=G<<2,_=H,J=H+c*q,S=H+q*(Z-1),N=h[H],Y=h[H+1],U=h[H+2],g=h[H+3],M=(c+1)*N,C=(c+1)*Y,y=(c+1)*U,i=(c+1)*g;
for(var Q=0;Q<c;Q++){var m=H+Q*q;M+=h[m];C+=h[m+1];y+=h[m+2];i+=h[m+3]}for(var Q=0;Q<=c;Q++){M+=h[J]-N;
e[H]=L[M];C+=h[J+1]-Y;e[H+1]=L[C];y+=h[J+2]-U;e[H+2]=L[y];i+=h[J+3]-g;e[H+3]=L[i];J+=q;H+=q}for(var Q=0;
Q<a;Q++){var n=Q*q;M+=h[J+n]-h[_+n];e[H+n]=L[M];C+=h[J+n+1]-h[_+n+1];e[H+n+1]=L[C];y+=h[J+n+2]-h[_+n+2];
e[H+n+2]=L[y];i+=h[J+n+3]-h[_+n+3];e[H+n+3]=L[i]}_+=a*q;J+=a*q;H+=a*q;N=h[S];Y=h[S+1];U=h[S+2];g=h[S+3];
for(var Q=Z-c;Q<Z;Q++){M+=N-h[_];e[H]=L[M];C+=Y-h[_+1];e[H+1]=L[C];y+=U-h[_+2];e[H+2]=L[y];i+=g-h[_+3];
e[H+3]=L[i];_+=q;H+=q}}};s.Nw.akx=function(h,e,$,Z,c){var q=1/(c+c+1),E=Z-c-c-1;for(var G=0;G<$;G++){var P=G,a=P,j=P+c*$,L=h[P],H=h[P+$*(Z-1)],_=(c+1)*L;
for(var J=0;J<c;J++)_+=h[P+J*$];for(var J=0;J<=c;J++){_+=h[j]-L;e[P]=_*q;j+=$;P+=$}for(var J=0;J<E;J++){var S=J*$;
_+=h[j+S]-h[a+S];e[P+S]=_*q}a+=E*$;j+=E*$;P+=E*$;for(var J=Z-c;J<Z;J++){_+=H-h[a];e[P]=_*q;a+=$;P+=$}}};
s.nS={};s.nS.m=function(h,e,$,Z){var c=[];for(var q=0;q<4;q++)for(var E=0;E<4;E++)c.push(h+$*E/3,e+Z*q/3);
return c};s.nS.t3=function(h,e){var $=h.slice(0);for(var G=0;G<4;G++)for(var Z=0;Z<4;Z++){var c=2*(G*4+Z),q=2*(Z*4+(3-G));
if(e){var E=c;c=q;q=E}$[q]=h[c];$[q+1]=h[c+1]}return $};s.nS.a0L=new Float64Array(16);s.nS.drawImage=function(h,e,$,Z,c,q,E){if(E==null)E=!1;
var P=q.d,a=q.v,_=2;c=new Uint32Array(c.buffer);e=new Uint32Array(e.buffer);var j=s.nS.V.XN(h,0,1,0,1,$,Z),L=j.rL,H=j.Xa,J=1/_,S=s.nS.ib,N=new Float64Array(2),Y=new Uint32Array(30);
for(var U=0;U<a;U++)for(var g=0;g<P;g++){var M=g+q.x+.5,C=U+q.y+.5,y=s.nS.V.ahs(L,H,M,C,Y),F=0,b=0,d=0,W=0;
if(y==0)continue;var i=U*P+g,Q=s.nS.mI(h,M,C,L,Y,y,!0),m=S[0]*$,n=S[1]*Z;if(E){if(Q!=-1&&0<m&&m<$&&0<n&&n<Z){var u=Math.floor(n)*$+Math.floor(m);
c[i]=e[u]}continue}var K=Q!=-1&&(1<m&&m<$-1)&&(1<n&&n<Z-1);if(L[Q+8]<.95){s.I._4(m,n,e,$,Z,c,i,0);continue}for(var G=0;
G<_;G++)for(var A=0;A<_;A++){var M=g+q.x+(G+.5)*J,C=U+q.y+(A+.5)*J,Q=0;Q=s.nS.mI(h,M,C,L,Y,y,!0);if(Q!=-1){var m=S[0],n=S[1],m=Math.floor(m*$);
n=Math.floor(n*Z);var z=e[n*$+m],T=z>>>24;F+=(z&255)*T;b+=(z>>>8&255)*T;d+=(z>>>16&255)*T;W+=T}}if(W!=0){var R=1/W;
F=~~(F*R+.5);b=~~(b*R+.5);d=~~(d*R+.5);W=~~(W*J*J+.5);c[i]=W<<24|d<<16|b<<8|F}}};s.nS.ib=new Float64Array(5*20);
s.nS.a1l=new Uint32Array(5*5*20);s.nS.mI=function(h,e,$,Z,c,q,E){var P=s.nS.ib,a=s.nS.a1l,j=0,L=0;for(var G=0;
G<q;G++){var H=c[G],_=j;j=s.nS.Ar(h,e,$,Z,H+4,E,P,j);if(j!=_){a[L]=H;L+=5}}if(j==0)return-1;else if(j==5)return a[0];
else{var J=0;for(var G=0;G<j;G+=5)if(P[G+4]<P[J+4])J=G;P[0]=P[J];P[1]=P[J+1];P[2]=P[J+2];P[3]=P[J+3];
return a[J]}};s.nS.TO=new Array(10);s.nS.Ar=function(h,e,$,Z,c,q,E,P){var a=s.nS.TO,j=0,L=0,H=0,_=0,J=0,S=0,N=0,Y=Z[c],U=Z[c+1],g=Z[c+2],M=Z[c+3],C=(g-e)*(g-e)+(M-$)*(M-$);
for(var G=0;G<5&&C>.05;G++){s.nS.lq(a,0,U);s.nS.Y9(a,4,Y);s.nS.n2(h,a);j=a[8];L=a[9];s.nS.Y9(a,0,U);
s.nS.lq(a,4,Y);s.nS.n2(h,a);H=a[8];_=a[9];J=1/(j*_-L*H);S=(g-e)*J;N=(M-$)*J;Y+=-_*S+H*N;U+=+L*S-j*N;
s.nS.rg(h,Y,U,a);g=a[8];M=a[9];C=(g-e)*(g-e)+(M-$)*(M-$)}if(q&&(Y<0||Y>1||U<0||U>1||C>.25))return P;
E[P]=Y;E[P+1]=U;E[P+2]=g;E[P+3]=M;E[P+4]=j*_-L*H;return P+5};s.nS.apply=function(h,e,$){var Z=$.x,c=$.y,q=1/$.d,E=1/$.v,P=s.nS.TO;
for(var a=0;a<e.length;a+=2){var j=(e[a]-Z)*q,L=(e[a+1]-c)*E;s.nS.rg(h,j,L,P);e[a]=P[8];e[a+1]=P[9]}};
s.nS.rg=function(h,e,$,Z){s.nS.lq(Z,0,$);s.nS.lq(Z,4,e);s.nS.n2(h,Z)};s.nS.Y9=function(h,G,e){var $=1-e;
h[G]=-3*($*$);h[G+1]=3*($*$)-6*(e*$);h[G+2]=6*(e*$)-3*(e*e);h[G+3]=3*(e*e)};s.nS.lq=function(h,G,e){var $=1-e;
h[G]=$*($*$);h[G+1]=3*e*($*$);h[G+2]=3*(e*e)*$;h[G+3]=e*e*e};s.nS.n2=function(h,e){var $=0,Z=0,c=0;c=e[0]*e[4];
$+=h[0]*c;Z+=h[1]*c;c=e[0]*e[5];$+=h[2]*c;Z+=h[3]*c;c=e[0]*e[6];$+=h[4]*c;Z+=h[5]*c;c=e[0]*e[7];$+=h[6]*c;
Z+=h[7]*c;c=e[1]*e[4];$+=h[8]*c;Z+=h[9]*c;c=e[1]*e[5];$+=h[10]*c;Z+=h[11]*c;c=e[1]*e[6];$+=h[12]*c;Z+=h[13]*c;
c=e[1]*e[7];$+=h[14]*c;Z+=h[15]*c;c=e[2]*e[4];$+=h[16]*c;Z+=h[17]*c;c=e[2]*e[5];$+=h[18]*c;Z+=h[19]*c;
c=e[2]*e[6];$+=h[20]*c;Z+=h[21]*c;c=e[2]*e[7];$+=h[22]*c;Z+=h[23]*c;c=e[3]*e[4];$+=h[24]*c;Z+=h[25]*c;
c=e[3]*e[5];$+=h[26]*c;Z+=h[27]*c;c=e[3]*e[6];$+=h[28]*c;Z+=h[29]*c;c=e[3]*e[7];$+=h[30]*c;Z+=h[31]*c;
e[8]=$;e[9]=Z};s.nS.V={};s.nS.V.ob=12;s.nS.V.gG=new Uint32Array(50);s.nS.V.ahs=function(h,e,$,Z,c){var q=0,E=s.nS.V.gG,P=1;
E[0]=0;while(P!=0){var a=E[--P];if(h[a+0]<=$&&h[a+1]<=Z&&$<h[a+2]&&Z<h[a+3]){if(e[a+a+18]==0){c[q]=a;
q++}else{E[P]=e[a+a+18];E[P+1]=e[a+a+19];P+=2}}}return q};s.nS.V.a7v=function(h,e,$,Z,c){var q=0,E=s.nS.V.cU,P=s.nS.V.gG,a=1,j=0,L=999999999999;
P[0]=0;while(a!=0){var H=P[--a],_=E($,Z,h[H+0],h[H+1]),J=E($,Z,h[H+0],h[H+3]),S=E($,Z,h[H+2],h[H+1]),N=E($,Z,h[H+2],h[H+3]),Y=Math.min(_,Math.min(J,Math.min(S,N))),U=Math.max(_,Math.max(J,Math.max(S,N)));
if(Y>L)continue;if(e[H+H+18]==0){if(U<L){L=U;j=H}}else{P[a]=e[H+H+18];P[a+1]=e[H+H+19];a+=2}}c[q]=j;
q++;return q};s.nS.V.cU=function(h,e,$,Z){return($-h)*($-h)+(Z-e)*(Z-e)};s.nS.V.pX=null;s.nS.V.Sp=null;
s.nS.V.XN=function(h,e,$,Z,c,q,E){if(q==null){q=1;E=1}s.nS.V.Sp=h;if(s.nS.V.pX==null){s.nS.V.pX={rL:new Float64Array(15e3*8),Xa:null};
s.nS.V.pX.Xa=new Uint32Array(s.nS.V.pX.rL.buffer)}var P=s.nS.V.pX;s.nS.V.Ct(h,e,$,Z,c,0,P.rL,P.Xa,0,q,E);
return P};s.nS.V.Ct=function(h,e,$,Z,c,q,E,P,a,j,L){var H=s.a.Be(h),_=a,J=s.nS.V.Sp,S=(e+$)/2,N=(Z+c)/2,Y=s.nS.TO,U=s.nS.ib,g=s.nS.a0L,hZ,gj,hO;
s.nS.rg(J,S,N,Y);var M=Y[8],C=Y[9];g[0]=S;g[1]=N;g[2]=M;g[3]=C;s.nS.Ar(J,M+1,C,g,0,!1,U,0);var y=(S-U[0])*j,i=(N-U[1])*L,Q=Math.sqrt(y*y+i*i);
s.nS.Ar(J,M,C+1,g,0,!1,U,0);var m=(S-U[0])*j,n=(N-U[1])*L,u=Math.sqrt(m*m+n*n);E[_]=H.x;E[_+1]=H.y;E[_+2]=H.x+H.d;
E[_+3]=H.y+H.v;E[_+4]=S;E[_+5]=N;E[_+6]=M;E[_+7]=C;E[_+8]=.5*(Q+u);P[_+_+18]=0;P[_+_+19]=0;a+=10;s.nS.lq(Y,0,.1);
s.nS.Y9(Y,4,.1);s.nS.n2(h,Y);var K=Y[8],F=Y[9];s.nS.Y9(Y,0,.1);s.nS.lq(Y,4,.7);s.nS.n2(h,Y);var b=Y[8],d=Y[9];
s.nS.lq(Y,0,.8);s.nS.Y9(Y,4,.8);s.nS.n2(h,Y);var W=Y[8],A=Y[9];s.nS.Y9(Y,0,.9);s.nS.lq(Y,4,.2);s.nS.n2(h,Y);
var z=Y[8],T=Y[9],R=(W-K)*(W-K)+(z-b)*(z-b)+(A-F)*(A-F)+(T-d)*(T-d);if(a>=E.length){console.log("Buffer not long enough");
throw"e"}if(q==s.nS.V.ob||R<2)return a;var I=s.nS.V.Va(h,!0),r=s.a.Be(I[0]),x=s.a.Be(I[1]),X=s.nS.V.Va(h,!1),l=s.a.Be(X[0]),hH=s.a.Be(X[1]);
if(r.d+r.v+x.d+x.v<l.d+l.v+hH.d+hH.v){hO=!0;hZ=I[0];gj=I[1]}else{hO=!1;hZ=X[0];gj=X[1]}var d3=(e+$)/2,v=(Z+c)/2,hl=e,ht=Z,ga=$,eB=c,bP=e,ek=Z,b_=$,fz=c;
if(hO){ga=bP=d3}else{eB=ek=v}P[_+_+18]=a;a=s.nS.V.Ct(hZ,hl,ga,ht,eB,q+1,E,P,a,j,L);P[_+_+19]=a;a=s.nS.V.Ct(gj,bP,b_,ek,fz,q+1,E,P,a,j,L);
var ca=P[_+_+18],gf=P[_+_+19];E[_]=Math.min(E[ca],E[gf]);E[_+1]=Math.min(E[ca+1],E[gf+1]);E[_+2]=Math.max(E[ca+2],E[gf+2]);
E[_+3]=Math.max(E[ca+3],E[gf+3]);return a};s.nS.V.Va=function(h,e){var $=0,Z=0,c=0,q=0,E=0,P=0,a=0,j=0,L=h.slice(0),H=h.slice(0);
for(var G=0;G<4;G++){$=e?h[G*8+2*0]:h[0*8+2*G];Z=e?h[G*8+2*0+1]:h[0*8+2*G+1];c=e?h[G*8+2*1]:h[1*8+2*G];
q=e?h[G*8+2*1+1]:h[1*8+2*G+1];E=e?h[G*8+2*2]:h[2*8+2*G];P=e?h[G*8+2*2+1]:h[2*8+2*G+1];a=e?h[G*8+2*3]:h[3*8+2*G];
j=e?h[G*8+2*3+1]:h[3*8+2*G+1];var _=($+c)/2,J=(Z+q)/2,S=(c+E)/2,N=(q+P)/2,Y=(E+a)/2,U=(P+j)/2,g=(_+S)/2,M=(J+N)/2,C=(S+Y)/2,y=(N+U)/2,i=(g+C)/2,Q=(M+y)/2;
if(e){L[G*8+2*0]=$;L[G*8+2*0+1]=Z;L[G*8+2*1]=_;L[G*8+2*1+1]=J;L[G*8+2*2]=g;L[G*8+2*2+1]=M;L[G*8+2*3]=i;
L[G*8+2*3+1]=Q;H[G*8+2*0]=i;H[G*8+2*0+1]=Q;H[G*8+2*1]=C;H[G*8+2*1+1]=y;H[G*8+2*2]=Y;H[G*8+2*2+1]=U;H[G*8+2*3]=a;
H[G*8+2*3+1]=j}else{L[0*8+2*G]=$;L[0*8+2*G+1]=Z;L[1*8+2*G]=_;L[1*8+2*G+1]=J;L[2*8+2*G]=g;L[2*8+2*G+1]=M;
L[3*8+2*G]=i;L[3*8+2*G+1]=Q;H[0*8+2*G]=i;H[0*8+2*G+1]=Q;H[1*8+2*G]=C;H[1*8+2*G+1]=y;H[2*8+2*G]=Y;H[2*8+2*G+1]=U;
H[3*8+2*G]=a;H[3*8+2*G+1]=j}}return[L,H]};s.h_={};s.h_.a5R=function(h,e,$){var Z=Date.now(),c=new ArrayBuffer(e*$*16),q=s.h_.adH(h,e,$,c),E=s.h_.abv(e,$,c);
return{sf:E,a9:q}};s.h_.ahI=function(h,e,$){var Z=Math.round(h.length/8),c=new Uint32Array(Z),q=new Uint8Array(Z),E=new Uint32Array(Z);
s.Ut(c,4294967295,0);c[$]=0;var P=new bG(Z);P.push($,c[$]);var a={sf:h,a9:e,iH:c,ZH:q,P9:E,Hs:P,ah$:$};
return a};s.h_.$W=function(h,e){var $=h.sf,Z=h.a9,c=h.iH,q=h.ZH,E=h.P9,P=h.Hs;while(!P.nK()&&(e==null||q[e]==0)){var a=P.pop();
q[a]=1;for(var G=0;G<8;G++){var j=$[8*a+G],L=a+j;if(j==0||q[L])continue;var H=c[a]+Z[8*a+G];if(P.contains(L)&&H<c[L])P.remove(L,c[L]);
if(!P.contains(L)){c[L]=H;E[L]=a;P.push(L,c[L])}}}};function bG(h){this.Dx=new Uint32Array(h);this.list=[];
this.cQ=0;this.jq=4294967295}bG.prototype.nK=function(){return this.cQ==0};bG.prototype.push=function(h,e){var $=this.list;
if($[e]==null)$[e]=[];$[e].push(h);this.cQ++;this.Dx[h]=$[e].length-1+1;this.jq=Math.min(this.jq,e)};
bG.prototype.pop=function(){this.cQ--;var h=this.list,e=this.jq,$=h[e].pop();if(h[e].length==0)h[e]=null;
this.dS();this.Dx[$]=0;return $};bG.prototype.contains=function(h){return this.Dx[h]!=0};bG.prototype.remove=function(h,e){this.cQ--;
var $=this.list,G=this.Dx[h]-1;if(G==$[e].length-1)$[e].pop();else{var Z=$[e].pop();$[e][G]=Z;this.Dx[Z]=G+1}if($[e].length==0)$[e]=null;
this.Dx[h]=0;this.dS()};bG.prototype.dS=function(){if(this.cQ==0){this.jq=4294967295;return}var h=this.jq,e=this.list;
while(e[h]==null)h++;this.jq=h};s.h_.amO=function(h,e,$,Z){var c=new Int16Array(Z);for(var q=0;q<$;q++)for(var E=0;
E<e;E++){var G=q*e+E,P=0;if(1<E&&E<e-2&&1<q&&q<$-2){P+=h[G-e-e];P+=h[G-e-1]+2*h[G-e]+h[G-e+1];P+=h[G-2]+2*h[G-1]-16*h[G]+2*h[G+1]+h[G+2];
P+=h[G+e-1]+2*h[G+e]+h[G+e+1];P+=h[G+e+e]}else P=-16*h[G];c[G]=P}return c};s.h_.a1U=function(h,e,$,Z){if(Z==null)Z=128;
var c=new Uint8Array(e*$);for(var q=1;q<$-1;q++)for(var E=1;E<e-1;E++){var G=q*e+E;c[G]=s.h_.am2(h[G],h[G-1],h[G+1],h[G-e],h[G+e],Z)}return c};
s.h_.am2=function(h,e,$,Z,c,q){var E=Math.abs(h);return h*e<0&&E<Math.abs(e)&&Math.abs(e-h)>q||h*$<0&&E<Math.abs($)&&Math.abs($-h)>q||h*Z<0&&E<Math.abs(Z)&&Math.abs(Z-h)>q||h*c<0&&E<Math.abs(c)&&Math.abs(c-h)>q?1:0};
s.h_.a4K=function(h,e,$,Z){var c=new Float32Array(Z),q=0;new Uint32Array(Z).fill(0);for(var E=0;E<$;
E++)for(var P=0;P<e;P++){var a=0,j=0,G=E*e+P,L=G*3;if(0<P&&P<e-1)a=h[G+1]-h[G-1];if(0<E&&E<$-1)j=h[G+e]-h[G-e];
var H=c[L+2]=Math.sqrt(a*a+j*j);if(H!=0){var _=1/H;c[L]=a*_;c[L+1]=j*_}if(H>q)q=H}var J=e*$,S=q==0?0:1/q;
for(var G=0;G<J;G++)c[G*3+2]=1-c[G*3+2]*S;return c};s.h_.ahx=function(h,e,$){return $[~~((.5+.5*h)*255)]+$[~~((.5+.5*e)*255)]};
s.h_.adH=function(h,e,$,Z){var c=Date.now(),q=s.h_.amO(h,e,$,Z),E=s.h_.a1U(q,e,$),P=s.h_.a4K(h,e,$,Z),a=new Float32Array(256);
for(var G=0;G<256;G++)a[G]=Math.acos(-1+2*G/255)*(.95/Math.PI);var j=[-1,0,1,1,1,0,-1,-1],L=[-1,-1,-1,0,1,1,1,0];
for(var G=0;G<8;G++){var H=1/Math.sqrt(j[G]*j[G]+L[G]*L[G]);j[G]*=H;L[G]*=H}var _=[j[0],L[0],j[1],L[1],j[2],L[2],j[3],L[3]],J=[-e-1,-e,-e+1,1],S=new Uint8Array(e*$*8);
new Uint32Array(S.buffer).fill(4294967295);var N=e*$;for(var Y=1;Y<$-1;Y++)for(var U=1;U<e-1;U++){var g=Y*e+U,M=1-E[g],C=P[g*3+2],y=P[3*g+1],i=-P[3*g];
for(var Q=0;Q<4;Q++){var m=g+J[Q];s.h_.afm(g,m,Q,S,E,P,M,C,y,i,_,a)}}return S};s.h_.afm=function(h,e,$,Z,c,q,E,P,a,j,L,H){var _=1-c[e],J=($&1)==0?1:Math.SQRT1_2,S=q[e*3+2]*J,N=q[3*e+1],Y=-q[3*e],U=P*J,g=L[$+$],M=L[$+$+1],C=a*g+j*M,y=N*g+Y*M;
if(C+y<0){C=-C;y=-y}var i=s.h_.ahx(C,y,H);Z[(h<<3)+$]=s.h_.XG(_,i,S);Z[(e<<3)+$+4]=s.h_.XG(E,i,U)};s.h_.XG=function(h,e,$){return 1+~~(.5+20*(.43*h+.43*e+.14*$))};
s.h_.abv=function(h,e,$){var Z=new Int16Array($),c=Z,G=0,q=0;new Uint32Array($).fill(0);for(var E=0;
E<e;E++)for(var P=0;P<h;P++){if(E>0&&P>0)c[q+0]=-h-1;if(E>0)c[q+1]=-h;if(E>0&&P<h-1)c[q+2]=-h+1;if(P<h-1)c[q+3]=1;
if(E<e-1&&P<h-1)c[q+4]=h+1;if(E<e-1)c[q+5]=h;if(E<e-1&&P>0)c[q+6]=h-1;if(P>0)c[q+7]=-1;G++;q+=8}return Z};
s.V4={};s.V4.er=function(h){var e=h.slice(0),$=0;for(var G=0;G<h.length;G++)$+=h[G];for(var G=0;G<h.length;
G++)e[G]/=$;return e};s.V4.aY=[s.V4.er([1,2,1,2,16,2,1,2,1]),s.V4.er([1,2,1,2,4,2,1,2,1]),s.V4.er([0,-1,0,-1,8,-1,0,-1,0]),s.V4.er([-.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]];
s.V4.mz=function(h,e,$,Z,c,q,E,P){if(E==null)E=!1;if(P==null)P=!1;var a=Math.floor(Math.sqrt(c.length)),j=a-1>>>1,L=new Uint32Array(h.buffer),e=new Uint8ClampedArray(e.buffer);
for(var G=0;G<Z;G++)for(var H=0;H<$;H++){var _=0,J=0,S=0,N=0;for(var Y=0;Y<a;Y++)for(var U=0;U<a;U++){var g=c[Y*a+U];
if(g==0)continue;var M=H-j+U,C=G-j+Y;if(M<0)M=0;else if(M>$-1)M=$-1;if(C<0)C=0;else if(C>Z-1)C=Z-1;if(P&&L[C*$+M]>>>24==0){C=G;
M=H}var y=L[C*$+M];_+=(y&255)*g;J+=(y>>>8&255)*g;S+=(y>>>16&255)*g;N+=(y>>>24&255)*g}if(E){if(_<0)_=-_;
if(J<0)J=-J;if(S<0)S=-S;if(N<0)N=-N}if(P){_=Math.max(0,Math.min(255,_));J=Math.max(0,Math.min(255,J));
S=Math.max(0,Math.min(255,S));N=Math.max(0,Math.min(255,N))}var i=G*$+H<<2;e[i]=~~(.5+_);e[i+1]=~~(.5+J);
e[i+2]=~~(.5+S);e[i+3]=255-q&e[i+3]|q&~~(.5+N)}};s.V4.AP=function(h,e,$,Z){var c=h.length,q=new Uint8Array(c);
s.V4.mz(h,e,$,Z,s.V4.aY[4],0,!0);s.V4.mz(h,q,$,Z,s.V4.aY[5],0,!0);for(var G=0;G<c;G+=4){var E=e[G],P=e[G+1],a=e[G+2],j=e[G+3],L=q[G],H=q[G+1],_=q[G+2],J=q[G+3];
e[G]=255-Math.max(0,Math.min(255,Math.sqrt(E*E+L*L)));e[G+1]=255-Math.max(0,Math.min(255,Math.sqrt(P*P+H*H)));
e[G+2]=255-Math.max(0,Math.min(255,Math.sqrt(a*a+_*_)))}};s.V4.pn=function(h,e,$,Z){var c=h.length,q=new Uint8Array(c);
s.V4.ud(h,e,$,Z,s.V4.aY[4],!0);s.V4.ud(h,q,$,Z,s.V4.aY[5],!0);for(var G=0;G<c;G++){var E=e[G],P=q[G];
e[G]=255-Math.max(0,Math.min(255,Math.sqrt(E*E+P*P)))}};s.V4.ud=function(h,e,$,Z,c,q){e=new Uint8ClampedArray(e.buffer);
var E=[-$-1,-$,-$+1,-1,0,1,$-1,$,$+1],P=Z-1,a=$-1;for(var G=1;G<P;G++)for(var j=1;j<a;j++){var L=G*$+j,H=s.V4.GX(h,L,$,c);
if(q){if(H<0)H=-H}e[L]=~~(H+.5)}};s.V4.GX=function(h,e,$,Z){return h[e-$-1]*Z[0]+h[e-$]*Z[1]+h[e-$+1]*Z[2]+h[e-1]*Z[3]+h[e]*Z[4]+h[e+1]*Z[5]+h[e+$-1]*Z[6]+h[e+$]*Z[7]+h[e+$+1]*Z[8]};
s.V4.qy=function(h,e,$,Z,c){var q=[-$-1,-$,-$+1,-1,0,1,$-1,$,$+1],E=Z-1,P=$-1;for(var G=1;G<E;G++)for(var a=1;
a<P;a++){var j=G*$+a;e[j]=s.V4.adp(h,j,$,c)}};s.V4.adp=function(h,e,$,Z){return h[e-$-1]*Z[0]+h[e-$]*Z[1]+h[e-$+1]*Z[2]+h[e-1]*Z[3]+h[e]*Z[4]+h[e+1]*Z[5]+h[e+$-1]*Z[6]+h[e+$]*Z[7]+h[e+$+1]*Z[8]};
s.zP={};s.zP.a6b=function(){function h(E,P,a,j,L,H,_){if(L==0){P.set(E);return}var J=s.m(a*j),S=s.m(a*j);
if(s.AC(E)){e(E,P,a,j,L,H,_);var N=[s.zP.XA,s.zP.eQ],Y=N.indexOf(H),U=Y!=-1?N[1-Y]:H;s.z0(E,J,3);s.zP.Ib(J,S,a,j,L,U,_);
s.Jk(S,P,3)}else{for(var G=0;G<3;G++){s.z0(E,J,G);s.zP.Ib(J,S,a,j,L,H,_);s.Jk(S,P,G)}}}function e(E,P,a,j,L,H,_){var J=0,S=new ArrayBuffer(512*4*3),N=[new Int32Array(S,0),new Int32Array(S,2048),new Int32Array(S,2*2048)],Y=1+2*Math.round(Math.sqrt(L)),U=Y>>>1,g=new Array(Y),M=new Array(Y);
for(var G=0;G<Y;G++){var S=new ArrayBuffer(512*4*3);g[G]=[new Int32Array(S,0),new Int32Array(S,2048),new Int32Array(S,2*2048)];
M[G]=g[G][0]}var C=H[0],y=H[1],i=N[0];for(var Q=0;Q<a;Q++)if(Q<L||Q>a-L-Y-1){i.fill(0);var m=Math.max(Q-L,0),n=Math.min(a,Q+L+1),u=n-m;
for(var K=0;K<L;K++)Z(i,E,K*a+m,K*a+n,1);for(var K=0;K<j;K++){var F=K-L-1,b=K+L;if(b<j)Z(i,E,b*a+m,b*a+n,1);
if(F>=0)Z(i,E,F*a+m,F*a+n,-1);var d=K*a+Q<<2;J=i[300];if(J!=0)for(var G=0;G<3;G++)P[d+G]=C(N[G],E[d+G],J,_)}}else{for(var G=0;
G<Y;G++)M[G].fill(0);var m=Q-L+U,n=Q+L+1+U;for(var K=0;K<L;K++)$(M,E,K*a+m,K*a+n,1,U);for(var K=0;K<j;
K++){var F=K-L-1,b=K+L;if(F>=0)$(M,E,F*a+m,F*a+n,-1,U);if(b<j)$(M,E,b*a+m,b*a+n,1,U);var W=g[U];J=W[0][300];
for(var G=0;G<U;G++){var A=U-1-G,z=U+1+G,T=g[A],R=g[z],I=J+T[0][300],r=J+R[0][300],x=K*a+Q+A<<2,X=K*a+Q+z<<2;
if(I!=0)for(var l=0;l<3;l++)P[x+l]=y(W[l],T[l],E[x+l],I,_);if(r!=0)for(var l=0;l<3;l++)P[X+l]=y(W[l],R[l],E[X+l],r,_)}var d=K*a+Q+U<<2;
if(J!=0)for(var l=0;l<3;l++)P[d+l]=C(W[l],E[d+l],J,_)}Q+=Y-1}}function $(E,P,a,j,L,H){var _=c,J=a<<2,S=j<<2;
_(E[H-1],P,a-1<<2,L);_(E[H-1],P,j-1<<2,-L);_(E[H+1],P,j<<2,L);_(E[H+1],P,a<<2,-L);for(var G=1;G<H;G++){var N=E[H-G-1],Y=E[H+G+1];
for(var U=0;U<=G;U++){var g=U<<2;_(N,P,a-1-U<<2,L);_(N,P,j-1-U<<2,-L);_(Y,P,j+U<<2,L);_(Y,P,a+U<<2,-L)}}Z(E[H],P,a,j,L)}function Z(E,P,G,a,j){var L=G<<2,H=a<<2;
while(L<H){c(E,P,L,j);L+=4}}function c(E,P,a,j){var L=j*P[a+3];E[300]+=L;q(E,P[a],0,L);q(E,P[a+1],512,L);
q(E,P[a+2],1024,L)}function q(E,P,a,j){E[a|P]+=j;E[a|256|P>>>4]+=j}return h}();s.zP.Ib=function(){function h(H,_,J,S,N,Y,U){if(N==0){_.set(H);
return}if(N<=80)e(H,_,J,S,N,Y,U);else q(H,_,J,S,N,Y,U)}function e(H,_,J,S,N,Y,U){var g=0,M=new Int32Array(512),C=1+2*Math.round(Math.sqrt(N)),y=C>>>1,i=new Array(C);
for(var G=0;G<C;G++)i[G]=new Int32Array(512);var Q=Y[0],m=Y[1];for(var n=0;n<J;n++)if(n<N||n>J-N-C-1){M.fill(0);
g=0;var u=Math.max(n-N,0),K=Math.min(J,n+N+1),F=K-u;for(var b=0;b<N;b++){g+=F;Z(M,H,b*J+u,b*J+K,1)}for(var b=0;
b<S;b++){var d=b-N-1,W=b+N;if(d>=0){g-=F;Z(M,H,d*J+u,d*J+K,-1)}if(W<S){g+=F;Z(M,H,W*J+u,W*J+K,1)}var A=Q(M,H[b*J+n],g,U);
_[b*J+n]=A}}else{for(var G=0;G<C;G++)i[G].fill(0);g=0;var u=n-N+y,K=n+N+1+y,F=K-u;for(var b=0;b<N;b++){g+=F;
$(i,H,b*J+u,b*J+K,1,y)}for(var b=0;b<S;b++){var d=b-N-1,W=b+N;if(d>=0){g-=F;$(i,H,d*J+u,d*J+K,-1,y)}if(W<S){g+=F;
$(i,H,W*J+u,W*J+K,1,y)}for(var G=0;G<y;G++){var z=y-1-G,T=y+1+G;_[b*J+n+z]=m(i[y],i[z],H[b*J+n+z],g,U);
_[b*J+n+T]=m(i[y],i[T],H[b*J+n+T],g,U)}_[b*J+n+y]=Q(i[y],H[b*J+n+y],g,U)}n+=C-1}}function $(H,_,J,S,N,Y){var U=c;
U(H[Y-1],_[J-1],0,N);U(H[Y-1],_[S-1],0,-N);U(H[Y+1],_[S],0,N);U(H[Y+1],_[J],0,-N);for(var G=1;G<Y;G++){var g=H[Y-G-1],M=H[Y+G+1];
for(var C=0;C<=G;C++){U(g,_[J-1-C],0,N);U(g,_[S-1-C],0,-N);U(M,_[S+C],0,N);U(M,_[J+C],0,-N)}}Z(H[Y],_,J,S,N)}function Z(H,_,G,J,S){while(G<J)c(H,_[G++],0,S)}function c(H,_,J,S){H[J|_]+=S;
H[J|256|_>>>4]+=S}function q(H,_,J,S,N,Y,U){var g=0,M=new Int32Array(512),C=new Int32Array(1*J),y=new Int32Array(512*J),i=Math.min(N,J),Q=Math.min(N,S),m=Y[0];
for(var n=0;n<Q;n++)E(y,C,H,J,n,1);for(var n=0;n<S;n++){if(n+N<S)E(y,C,H,J,n+N,1);if(n-N-1>=0)E(y,C,H,J,n-N-1,-1);
M.fill(0);g=0;for(var u=0;u<i;u++){g+=C[u];P(M,y,u)}for(var u=0;u<J;u++){var K=u-N-1,F=u+N;if(K>=0&&C[K]!=0){g-=C[K];
a(M,y,K)}if(F<J&&C[F]!=0){g+=C[F];P(M,y,F)}var b=g==0?0:m(M,H[n*J+u],g,U);_[n*J+u]=b}}}function E(H,_,J,S,N,Y){var G=N*S;
for(var U=0;U<S;U++){c(H,J[G+U],U<<9,Y);_[U]+=Y}}function P(H,_,J){for(var G=0;G<16;G++){var S=_[J<<9|256|G];
if(S==0)continue;H[256|G]+=S;var N=G<<4,Y=J<<9|N;j(H,_,N,Y);j(H,_,N+4,Y+4);j(H,_,N+8,Y+8);j(H,_,N+12,Y+12)}}function a(H,_,J){for(var G=0;
G<16;G++){var S=_[J<<9|256|G];if(S==0)continue;H[256|G]-=S;var N=G<<4,Y=J<<9|N;L(H,_,N,Y);L(H,_,N+4,Y+4);
L(H,_,N+8,Y+8);L(H,_,N+12,Y+12)}}function j(H,_,J,S){H[J]+=_[S];H[J+1]+=_[S+1];H[J+2]+=_[S+2];H[J+3]+=_[S+3]}function L(H,_,J,S){H[J]-=_[S];
H[J+1]-=_[S+1];H[J+2]-=_[S+2];H[J+3]-=_[S+3]}return h}();s.zP.eQ=[function(h,e,$,Z){var G=15;while(h[256|G]==0&&G>0)G--;
G=(G<<4)+15;while(h[G]==0&&G>0)G--;return G},function(h,e,$,Z,c){var G=15;while(h[256|G]+e[256|G]==0&&G>0)G--;
G=(G<<4)+15;while(h[G]+e[G]==0&&G>0)G--;return G}];s.zP.XA=[function(h,e,$,Z){var G=0;while(h[256|G]==0&&G<15)G++;
G=G<<4;while(h[G]==0&&G<255)G++;return G},function(h,e,$,Z,c){var G=0;while(h[256|G]+e[256|G]==0&&G<15)G++;
G=G<<4;while(h[G]+e[G]==0&&G<255)G++;return G}];s.zP.Wl=.5;s.zP.E0=[function(h,e,$,Z){var c=~~(.5+s.zP.Wl*$),q=0,G=256;
while(q+h[G]<=c)q+=h[G++];G=G-256<<4;while(q<=c)q+=h[G++];return G-1},function(h,e,$,Z,c){var q=~~(.5+s.zP.Wl*Z),E=0,G=256;
while(E+h[G]+e[G]<=q){E+=h[G]+e[G];G++}G=G-256<<4;while(E<=q){E+=h[G]+e[G];G++}return G-1}];s.zP.MJ=[function(h,e,$,Z){var c=Z[0],q=0,E=0,G=Math.max(0,e-c),P=Math.min(256,e+c+1);
while(G<P){var a=h[G];q+=G*a;E+=a;G++}return E==0?0:q/E},function(h,e,$,Z,c){var q=c[0],E=0,P=0,G=Math.max(0,$-q),a=Math.min(256,$+q+1);
while(G<a){var j=h[G]+e[G];E+=G*j;P+=j;G++}return P==0?0:E/P}];s.I={};s.I.co=function(h){var e=f.o.Pu(h.Trnf),$=h.Sz.v,Z=s.I.w1(e,new O(0,0,$.Wdth.v,$.Hght.v));
return s.I.hQ(Z)};s.I.w1=function(h,e){var $=h[0],Z=h[1],c=h[2],q=h[3],E=h[6],P=h[7],a=h[4],j=h[5],L=0,H=0,_=1,J=0,S=0,N=1,Y=1,U=1;
if(e){L=e.x;H=e.y;_=e.x+e.d;J=e.y;S=e.x;N=e.y+e.v;Y=e.x+e.d;U=e.y+e.v}return s.I.SZ(h,[L,H,_,J,Y,U,S,N])};
s.I.SZ=function(h,e){var $=h[0],Z=h[1],c=h[2],q=h[3],E=h[6],P=h[7],a=h[4],j=h[5],L=e[0],H=e[1],_=e[2],J=e[3],S=e[6],N=e[7],Y=e[4],U=e[5],g=[[L,H,1,0,0,0,-L*$,-H*$,$],[0,0,0,L,H,1,-L*Z,-H*Z,Z],[_,J,1,0,0,0,-_*c,-J*c,c],[0,0,0,_,J,1,-_*q,-J*q,q],[S,N,1,0,0,0,-S*E,-N*E,E],[0,0,0,S,N,1,-S*P,-N*P,P],[Y,U,1,0,0,0,-Y*a,-U*a,a],[0,0,0,Y,U,1,-Y*j,-U*j,j]],M=[0,0,0,0,0,0,0,0],C=s.FC.lJ(g,M);
if(C!=0)M=[0,0,0,0,0,0,0,0];return M};s.I.t0=function(h){return Math.abs(h[6])<1e-10&&Math.abs(h[7])<1e-10};
s.I.hQ=function(h){return new i7(h[0],h[3],h[1],h[4],h[2],h[5])};s.I.dW=function(h){return[h.R,h.Ma,h.zq,h.O,h.rU,h.nL,0,0]};
s.I.apply=function(h,e){var $=new Float64Array(2);for(var Z=0;Z<e.length;Z+=2){var c=e[Z],q=e[Z+1];s.I.YG(c,q,h,$);
e[Z]=$[0];e[Z+1]=$[1]}};s.I.YG=function(h,e,$,Z){var c=1/($[6]*h+$[7]*e+1);Z[0]=($[0]*h+$[1]*e+$[2])*c;
Z[1]=($[3]*h+$[4]*e+$[5])*c};s.I.nN=function(h,e){var $=new Float64Array(2);s.I.YG(e.x,e.y,h,$);return new eu($[0],$[1])};
s.I.JR=function(h,e,$,Z){h=new Uint32Array(h.buffer);e=new Uint32Array(e.buffer);for(var c=0;c<Z;c++){for(var q=0;
q<$;q++){e[q*Z+c]=h[c*$+q]}}};s.I.a8F=function(h,e,$,Z){h=new Uint32Array(h.buffer);e=new Uint32Array(e.buffer);
for(var c=0;c<Z;c++){for(var q=0;q<$;q++){e[c*$+q]=h[c*$+$-1-q]}}};s.I.l5=function(h){return Math.abs(h[6])<1e-9&&Math.abs(h[7])<1e-9};
s.I.Lc=function(h){return Math.abs(h[0])<1e-9&&Math.abs(h[4])<1e-9||Math.abs(h[1])<1e-9&&Math.abs(h[3])<1e-9};
s.I.drawImage=function(h,e,$,Z,c,q,E,P,a){if(E==null)E=!1;if(P==null)P=!1;var j=s.I.vy(h),L=!0,H=0,_=1/Math.sqrt(Math.abs(h[0]/$*h[4]/Z-h[1]/$*h[3]/Z));
for(var G=0;G<8;G++){var J=Math.round(h[G]);if(G!=2&&G!=5)H+=Math.abs(J);if(Math.abs(J-h[G])>1e-9)L=!1}var S=s.I.l5(h),N=s.I.Lc(h)&&S,Y=N?1:0;
if(E||L&&H==$+Z&&S){s.I.ac0(j,e,$,Z,c,q,P,S,a);return}var U=q.d,g=q.v,M=new Float64Array(2);c=new Uint32Array(c.buffer);
e=new Uint32Array(e.buffer);for(var C=0;C<g;C++)for(var y=0;y<U;y++){var i=C*U+y,Q,m,n,u,hH=0,hZ=0,gj=0,hO=0;
c[i]=0;var K=y+q.x+.5,F=C+q.y+.5;Q=K;m=F;n=j;u=1/(n[6]*Q+n[7]*m+1);var b=(n[0]*Q+n[1]*m+n[2])*u,d=(n[3]*Q+n[4]*m+n[5])*u,W=b*$,A=d*Z,z=W<-1||W>$+1||A<-1||A>Z+1;
if(P){W=Math.max(.001,Math.min($-1,W));A=Math.max(.001,Math.min(Z-1,A))}else if(z)continue;var T=_;if(!S){var R=0,I=0;
n=h;Q=b+1/$;m=d;u=1/(n[6]*Q+n[7]*m+1);R=(n[0]*Q+n[1]*m+n[2])*u-K;I=(n[3]*Q+n[4]*m+n[5])*u-F;var r=R*R+I*I;
Q=b;m=d+1/Z;u=1/(n[6]*Q+n[7]*m+1);R=(n[0]*Q+n[1]*m+n[2])*u-K;I=(n[3]*Q+n[4]*m+n[5])*u-F;var x=R*R+I*I;
T=1/Math.sqrt(Math.max(r,x))}if(T<1.1){s.I._4(W,A,e,$,Z,c,i,Y);continue}var X=Math.round(T*2.3);if(!P&&(W<.6||W>$-.6||A<.6||A>Z-.6)){X=Math.max(X,5)}if(P&&z)X=1;
var l=1/X,d3=q.x+y,v=q.y+C;n=j;for(var G=0;G<X;G++)for(var hl=0;hl<X;hl++){Q=d3+(G+.5)*l;m=v+(hl+.5)*l;
u=1/(n[6]*Q+n[7]*m+1);var W=(n[0]*Q+n[1]*m+n[2])*u,A=(n[3]*Q+n[4]*m+n[5])*u;if(P){W=Math.max(.001,Math.min(.999,W));
A=Math.max(.001,Math.min(.999,A))}else if(W<0||W>=1||A<0||A>=1)continue;W=Math.floor(W*$);A=Math.floor(A*Z);
var ht=A*$+W,ga=e[ht],eB=ga>>>24;hH+=(ga&255)*eB;hZ+=(ga>>>8&255)*eB;gj+=(ga>>>16&255)*eB;hO+=eB}if(hO!=0){var bP=1/hO;
hH=~~(hH*bP+.5);hZ=~~(hZ*bP+.5);gj=~~(gj*bP+.5);hO=~~(hO*l*l+.5);c[i]=hO<<24|gj<<16|hZ<<8|hH}}};s.I.ac0=function(h,e,$,Z,c,q,E,P,a){if(P&&!E&&q.X()>4e6&&a){s.I.ai$(h,e,$,Z,c,q,E,P,a);
return}var j=q.x+q.d,L=q.y+q.v,H=0,_=new Uint32Array(c.buffer),J=new Uint32Array(e.buffer),S=h[0]*$,N=h[1]*$,Y=h[2]*$,U=h[3]*Z,g=h[4]*Z,M=h[5]*Z,C=h[6],y=h[7];
if(P&&!E)for(var i=q.y+.5;i<L;i++)for(var Q=q.x+.5;Q<j;Q++){var m=S*Q+N*i+Y,n=U*Q+g*i+M;if(0<m&&m<$&&0<n&&n<Z){var u=~~n*$+~~m;
_[H]=J[u]}else _[H]=0;H++}else for(var i=q.y+.5;i<L;i++)for(var Q=q.x+.5;Q<j;Q++){var K=1/(C*Q+y*i+1),m=(S*Q+N*i+Y)*K,n=(U*Q+g*i+M)*K;
if(E){m=Math.max(.001,Math.min($-1,m));n=Math.max(.001,Math.min(Z-1,n))}if(0<m&&m<$&&0<n&&n<Z){var u=Math.floor(n)*$+Math.floor(m);
_[H]=J[u]}else _[H]=0;H++}};s.I.ai$=function(h,e,$,Z,c,q,E,P,a){var j=new Uint32Array(c.buffer),L=new Uint32Array(e.buffer),y=0;
if(a&&(q.d&3)!=0)throw"e";var H=h[0]*$,_=h[1]*$,J=h[2]*$,S=h[3]*Z,N=h[4]*Z,Y=h[5]*Z,U=h[6],g=h[7],M=q.d,C=q.v,i=q.x+.5,Q=q.y+.5,m=(M>>>2<<2)-1e-9,n=-.1+(C>>>1<<1)-1e-9,u=~~$,K=H==0?0:1/H,F=S==0?0:1/S;
for(var b=0;b<C;b++){var d=i*H+_*(b+Q)+J,W=i*S+N*(b+Q)+Y,A=0,z=M;if(H==0){}else if(K>0){A=Math.max(A,-d*K);
z=Math.min(z,($-d)*K)}else{z=Math.min(z,-d*K);A=Math.max(A,($-d)*K)}if(S==0){}else if(F>0){A=Math.max(A,-W*F);
z=Math.min(z,(Z-W)*F)}else{z=Math.min(z,-W*F);A=Math.max(A,(Z-W)*F)}if(z<0)z=0;if(A>z)A=z;A=Math.ceil(A);
z=~~z;y=~~(b*M);for(var T=0;T<A;T++)j[y++]=0;for(var T=A;T<z;T+=4){var R=H*T+d,I=S*T+W,r=~~I*u+~~R;j[y++]=j[y++]=j[y++]=j[y++]=L[r]}for(var T=z;
T<M;T++)j[y++]=0}};s.I.vy=function(h){var e=h[4]-h[5]*h[7],$=h[2]*h[7]-h[1],Z=h[1]*h[5]-h[2]*h[4],c=h[5]*h[6]-h[3],q=h[0]-h[2]*h[6],E=h[3]*h[2]-h[0]*h[5],P=h[3]*h[7]-h[4]*h[6],a=h[1]*h[6]-h[0]*h[7],j=1/(h[0]*h[4]-h[1]*h[3]);
return[e*j,$*j,Z*j,c*j,q*j,E*j,P*j,a*j]};s.I.n_=function(h,e){var $=h[0],Z=h[1],c=h[2],q=h[3],E=h[4],P=h[5],a=h[6],j=h[7],L=e[0],H=e[1],_=e[2],J=e[3],S=e[4],N=e[5],Y=e[6],U=e[7],g=[$*L+Z*J+c*Y,$*H+Z*S+c*U,$*_+Z*N+c,q*L+E*J+P*Y,q*H+E*S+P*U,q*_+E*N+P,a*L+j*J+Y,a*H+j*S+U],M=1/(a*_+j*N+1);
for(var G=0;G<8;G++)g[G]*=M;return g};s.I._4=function(h,e,$,Z,c,q,E,P){var a=h,j=e,_=0,J=0,S=0,N=0;h-=.499999;
e-=.499999;var L=Math.floor(h),H=Math.floor(e);if(P==0){var G=H*Z+L,Y=L>=0&&L<Z,U=L+1>=0&&L+1<Z,g=H>=0&&H<c,M=H+1>=0&&H+1<c;
if(Y&&g)_=$[G];if(U&&g)J=$[G+1];if(Y&&M)S=$[G+Z];if(U&&M)N=$[G+Z+1]}else if(P==1){var C=L<0?0:L>Z-1?Z-1:L,y=L<-1?0:L>Z-2?Z-1:L+1,i=H<0?0:H>c-1?c-1:H,Q=H<-1?0:H>c-2?c-1:H+1;
_=$[i*Z+C];J=$[i*Z+y];S=$[Q*Z+C];N=$[Q*Z+y]}else{var C=(L+50*Z)%Z,y=(L+50*Z)%Z,i=(H+50*c)%c,Q=(H+50*c)%c;
_=$[i*Z+C];J=$[i*Z+y];S=$[Q*Z+C];N=$[Q*Z+y]}var m=h-L,n=e-H,u=(1-n)*(1-m)*(_>>>24),K=(1-n)*m*(J>>>24),F=n*(1-m)*(S>>>24),b=n*m*(N>>>24),d=u+K+F+b,W=u*(_&255)+K*(J&255)+F*(S&255)+b*(N&255),A=u*(_>>>8&255)+K*(J>>>8&255)+F*(S>>>8&255)+b*(N>>>8&255),z=u*(_>>>16&255)+K*(J>>>16&255)+F*(S>>>16&255)+b*(N>>>16&255);
if(d==0)q[E]=0;else{var T=1/d;W=~~(W*T+.5);A=~~(A*T+.5);z=~~(z*T+.5);d=~~(d+.5);q[E]=d<<24|z<<16|A<<8|W}};
s.I.LB=function(h,e,$,Z,c,q){var E=h-.499999,P=e-.499999,a=~~E,j=~~P,L=E-a,H=P-j,_=(1-H)*(1-L),J=(1-H)*L,S=H*(1-L),N=H*L,Y=j*Z+a<<2,U=(j+1)*Z+a<<2,g=_*$[Y]+J*$[Y+4]+S*$[U]+N*$[U+4],M=_*$[Y+1]+J*$[Y+5]+S*$[U+1]+N*$[U+5],C=_*$[Y+2]+J*$[Y+6]+S*$[U+2]+N*$[U+6],y=_*$[Y+3]+J*$[Y+7]+S*$[U+3]+N*$[U+7];
q[0]=g;q[1]=M;q[2]=C;q[3]=y};s.I.Cq=function(h,e,$,Z,c){h-=.499999;e-=.499999;var q=Math.floor(h),E=Math.floor(e),P=h-q,a=e-E,j=(1-a)*(1-P),L=(1-a)*P,H=a*(1-P),_=a*P,J=(q+50*Z)%Z,S=(q+1+50*Z)%Z,N=(E+50*c)%c,Y=(E+1+50*c)%c,U=$[N*Z+J],g=$[N*Z+S],M=$[Y*Z+J],C=$[Y*Z+S];
if(U==null||C==null)throw"e";return j*U+L*g+H*M+_*C};s.I.Lq=function(h,e,$,Z,c,q,E,P,a,j,L,H){var _=new Uint32Array(h.buffer),J=new Uint32Array(Z.buffer),S=(1+2*j)/c,N=[],Y=[];
for(var U=0;U<c;U++){var g=-.25+j-U*S;N.push(Math.cos(2*Math.PI*g)*H/L);N.push(Math.sin(2*Math.PI*g)/L)}E*=e;
P*=$;for(var M=0;M<q;M++){var C=Math.pow(M/q,a)*q;for(var U=0;U<c;U++){var y=E+N[U<<1]*C,i=P+N[(U<<1)+1]*C,Q=~~(.5+(y<0?0:y>e-1?e-1:y)),m=~~(.5+(i<0?0:i>$-1?$-1:i));
J[M*c+U]=_[m*e+Q]}}};s.I.nv=function(h,e,$,Z,c,q,E,P,a,j,L,H){var _=new Uint32Array(h.buffer),J=new Uint32Array(Z.buffer),S=1/H,N=[],Y=$*4,U=1/Y;
for(var g=0;g<Y;g++)N.push(Math.pow(g*U,1/a)*$*L);E*=c;P*=q;for(var g=0;g<q;g++)for(var M=0;M<c;M++){var C=S*(M-E),y=g-P,i=1.75-Math.atan2(y,C)*(1/(2*Math.PI));
i=i-~~i;i=(i+j)*(1/(1+2*j));var Q=Math.sqrt(C*C+y*y);Q=N[~~(Q*4)];s.I._4(i*e+.5,Q+.5,_,e,$,J,g*c+M,1)}};
s.I.rK=function(h,e,$,Z,c){var q=c[0],E=c[1];for(var P=0;P<E;P++)for(var a=0;a<q;a++){var j=c[2]*a+c[3]*P+c[4],L=c[5]*a+c[6]*P+c[7],H=P*q+a<<2,_=L*e+j<<2;
Z[H]=h[_+0];Z[H+1]=h[_+1];Z[H+2]=h[_+2];Z[H+3]=h[_+3]}};s.Y={Wk:function(h,e){var $=~~(.499+h*e);return $<0?0:$>e?e:$},anv:function(h,e,$,Z,c,q,E,P){var a=$[0],j=$[1],L=$[2],H=$[3],_=Z.d,J=Z.v,S=new Float64Array(_*4+8),N=new Float64Array(_*4+8);
for(var Y=0,G=0;Y<J;Y++){var U=S;S=N;N=U;N.fill(0);for(var g=0;g<_;g++,G++){var M=g+c,C=Y+q,y=a*M+j*C,i=L*M+H*C,Q=0,u=0;
if(P==0)Q=y+.5;else if(P==1)Q=2*Math.sqrt(y*y+i*i);else if(P==2)Q=(Math.PI+Math.atan2(-i,-y))/(2*Math.PI);
else if(P==3)Q=Math.abs(y*2);else if(P==4)Q=2*(Math.abs(y)+Math.abs(i));var m=s.Y.Wk(Q,E)*4,n=g*4;for(var K=0;
K<4;K++){var F=Math.max(0,Math.min(254.999,e[m+K]+S[n+4+K])),b=Math.floor(F);if(Math.random()<F-b)b++;
var d=F-b;S[n+8+K]=d*(7/16);N[n+0+K]=d*(3/16);N[n+4+K]=d*(5/16);N[n+8+K]=d*(1/16);u|=b<<K*8}h[G]=u}}},V:[function(h,e,$,Z,c,q,E){var P=$[0],a=$[1],j=$[2],L=$[3],H=Z.d,_=Z.v;
for(var J=0,G=0;J<_;J++)for(var S=0;S<H;S++,G++){var N=S+c,Y=J+q,U=P*N+a*Y,g=j*N+L*Y,M=U+.5;h[G]=e[s.Y.Wk(M,E)]}},function(h,e,$,Z,c,q,E){var P=$[0],a=$[1],j=$[2],L=$[3],H=Z.d,_=Z.v;
for(var J=0,G=0;J<_;J++)for(var S=0;S<H;S++,G++){var N=S+c,Y=J+q,U=P*N+a*Y,g=j*N+L*Y,M=2*Math.sqrt(U*U+g*g);
h[G]=e[s.Y.Wk(M,E)]}},function(h,e,$,Z,c,q,E){var P=$[0],a=$[1],j=$[2],L=$[3],H=Z.d,_=Z.v;for(var J=0,G=0;
J<_;J++)for(var S=0;S<H;S++,G++){var N=S+c,Y=J+q,U=P*N+a*Y,g=j*N+L*Y,M=(Math.PI+Math.atan2(-g,-U))/(2*Math.PI);
h[G]=e[s.Y.Wk(M,E)]}},function(h,e,$,Z,c,q,E){var P=$[0],a=$[1],j=$[2],L=$[3],H=Z.d,_=Z.v;for(var J=0,G=0;
J<_;J++)for(var S=0;S<H;S++,G++){var N=S+c,Y=J+q,U=P*N+a*Y,g=j*N+L*Y,M=Math.abs(U*2);h[G]=e[s.Y.Wk(M,E)]}},function(h,e,$,Z,c,q,E){var P=$[0],a=$[1],j=$[2],L=$[3],H=Z.d,_=Z.v;
for(var J=0,G=0;J<_;J++)for(var S=0;S<H;S++,G++){var N=S+c,Y=J+q,U=P*N+a*Y,g=j*N+L*Y,M=2*(Math.abs(U)+Math.abs(g));
h[G]=e[s.Y.Wk(M,E)]}}]};s.Y.a9p=function(h,e){return h+.5};s.Y.a5O=function(h,e){return 2*Math.sqrt(h*h+e*e)};
s.Y.ahE=function(h,e){return(Math.PI+Math.atan2(-e,-h))/(2*Math.PI)};s.Y.ajn=function(h,e){return Math.abs(h*2)};
s.Y.abP=function(h,e){return 2*(Math.abs(h)+Math.abs(e))};s.Y.Ne=function(h,e,$,Z,c,q,E,P,a,j,L,H){if(h.Clrs==null)return;
var _=new Uint32Array(e.buffer),J=1023,S=s.Y.Fz(h.Clrs.v,a,j);if(H){var N=s.Y.ai3(h,S,J+1,E);s.Y.anv(_,N,Z,$,$.x-c,$.y-q,J,P);
return}var Y=s.Y.YL(h,S,J+1,E);if(P<5){s.Y.V[P](_,Y,Z,$,$.x-c,$.y-q,J)}else{var U=new Uint8Array(Y.buffer),g=$.d,M=$.v,C=L.kB-L.Cy,y=1/C,i=L.OT.d-$.d>>1,Q=L.OT.v-$.v>>1,m=L.OT.d,n=-.6*y,u=(-.6+.4)*y,K=(-.6+2*.4)*y,F=(-.6+3*.4)*y;
for(var b=0,G=0;b<M;b++)for(var d=0;d<g;d++,G+=4){var W=0,A=0,z=0,T=0,R=(b+Q)*m+d+i,I=(L.pY[R]-L.Cy)*y,r=0;
if(I<=0||I>=1){r=(I<=0?0:J)<<2;e[G]=U[r];e[G+1]=U[r+1];e[G+2]=U[r+2];e[G+3]=U[r+3];continue}r=Math.max(0,Math.min(J-1,Math.round((I+n)*J)))<<2;
A+=U[r];z+=U[r+1];T+=U[r+2];W+=U[r+3];r=Math.max(0,Math.min(J-1,Math.round((I+u)*J)))<<2;A+=U[r];z+=U[r+1];
T+=U[r+2];W+=U[r+3];r=Math.max(0,Math.min(J-1,Math.round((I+K)*J)))<<2;A+=U[r];z+=U[r+1];T+=U[r+2];W+=U[r+3];
r=Math.max(0,Math.min(J-1,Math.round((I+F)*J)))<<2;A+=U[r];z+=U[r+1];T+=U[r+2];W+=U[r+3];e[G]=A>>>2;
e[G+1]=z>>>2;e[G+2]=T>>>2;e[G+3]=W>>>2}}};s.Y.Fz=function(h,e,$){var Z=[];for(var G=0;G<h.length;G++){var c;
if(h[G].v.Type.v.Clry=="FrgC")c={h:e>>16&255,l:e>>8&255,O:e&255};else if(h[G].v.Type.v.Clry=="BckC")c={h:$>>16&255,l:$>>8&255,O:$&255};
else c=s.Y.LX(h[G].v.Clr.v);Z.push(c)}return Z};s.Y.LX=function(h){var e,$=h.classID;if($=="RGBC"){if(h.Rd)e={h:h.Rd.v,l:h.Grn.v,O:h.Bl.v};
else e={h:h.redFloat.v*255,l:h.greenFloat.v*255,O:h.blueFloat.v*255}}else if($=="HSBC"){e=s.g7(h.H.v.val/360,h.Strt.v/100,h.Brgh.v/100);
e.h*=255;e.l*=255;e.O*=255}else if($=="CMYC"){var Z=100-h.Cyn.v,c=100-h.Mgnt.v,q=100-h.Ylw.v,E=100-h.Blck.v,P=255*Z*E*1e-4,a=255*(.2*Z+.8*c)*E*1e-4,j=255*(.2*c+.8*q)*E*1e-4;
e={h:P,l:a,O:j}}else if($=="Grsc")e={h:255-h.Gry.v,l:255-h.Gry.v,O:255-h.Gry.v};else if($=="LbCl"){e=s.Dl(h.Lmnc.v,h.A.v,h.B.v)}else console.log(h);
if(isNaN(e.h))e.h=e.l=e.O=0;return e};s.Y.lp=function(h){return{classID:"RGBC",Rd:{t:"doub",v:h.h},Grn:{t:"doub",v:h.l},Bl:{t:"doub",v:h.O}}};
s.Y.ai3=function(h,e,$,Z){var c=[],q=1/($-0);for(var G=0;G<$;G++){var E=G*4,P=s.Y.Jj(h,e,(Z?$-1-G:G)*q);
c[E]=P[0];c[E+1]=P[1];c[E+2]=P[2];c[E+3]=P[3]}return c};s.Y.YL=function(h,e,$,Z){var c=new Uint32Array($),q=1/($-0);
for(var G=0;G<$;G++)c[G]=s.Y.uc(h,e,(Z?$-1-G:G)*q);return c};s.Y.Jj=function(h,e,$){var Z=4096,c=1/4096,q=h.Intr.v*c,E=h.Clrs.v,P=h.Trns.v,a=E.length-1,j=P.length-1,G=-1,L=0,H=0,_=0,J=0;
while(G<j&&P[G+1].v.Lctn.v<=$*Z)G++;if(G==-1){L=P[0].v.Opct.v.val*(255/100)}else if(G==j){L=P[G].v.Opct.v.val*(255/100)}else{var S=s.Y.oZ(P,c,G,$,q);
L=(S*P[G].v.Opct.v.val+(1-S)*P[G+1].v.Opct.v.val)*(255/100)}G=-1;while(G<a&&E[G+1].v.Lctn.v<=$*Z)G++;
if(G==-1){var N=e[0];H=N.h;_=N.l;J=N.O}else if(G==a){var N=e[G];H=N.h;_=N.l;J=N.O}else{var Y=e[G],U=e[G+1],g=s.Y.oZ(E,c,G,$,q);
H=g*Y.h+(1-g)*U.h;_=g*Y.l+(1-g)*U.l;J=g*Y.O+(1-g)*U.O}return[H,_,J,L]};s.Y.uc=function(h,e,$){var Z=s.Y.Jj(h,e,$),c=~~(.5+Z[0]),q=~~(.5+Z[1]),E=~~(.5+Z[2]),P=~~(.5+Z[3]);
return P<<24|E<<16|q<<8|c};s.Y.oZ=function(h,e,G,$,Z){if(h.length==2)Z*=.5;var c=h[G].v.Lctn.v*e,q=h[G+1].v.Lctn.v*e,E=c+h[G+1].v.Mdpn.v*.01*(q-c),P;
if($<E)P=.5*($-c)/(E-c);else P=.5+.5*($-E)/(q-E);P=.5+.5*(Z*Math.cos(Math.PI*P)+(1-Z)*(1-2*P));return P};
s.Y.po=function(h,e){var $=Math.PI*h.Angl.v.val/180,Z=h.Scl.v.val/100,c=h.Ofst.v,q=c.Hrzn.v.val/100,E=c.Vrtc.v.val/100,P=Math.cos($),a=-Math.sin($),j=.5*e.v,L=j*(P/a),H=Math.sqrt(j*j+L*L),_=.5*e.d,J=_*(a/P),S=Math.sqrt(_*_+J*J),N=Math.min(H,S)*Z,Y=e.x+e.d/2+q*e.d,U=e.y+e.v/2+E*e.v;
return[new eu(Y,U),new eu(Y+P*N,U+a*N)]};s.Y.N9=function(h,e,$,Z){var c=e.x-h.x,q=-(e.y-h.y),E=Math.sqrt(c*c+q*q),P=Math.atan2(q,c),a=Math.cos(P),j=-Math.sin(P),L=.5*$.v,H=L*(a/j),_=Math.sqrt(L*L+H*H),J=.5*$.d,S=J*(j/a),N=Math.sqrt(J*J+S*S),Y=E/Math.min(_,N),U=(h.x-$.x-$.d/2)/$.d,g=(h.y-$.y-$.v/2)/$.v;
Z.Angl.v.val=180*P/Math.PI;Z.Scl.v.val=Y*100;var M=Z.Ofst.v;M.Hrzn.v.val=U*100;M.Vrtc.v.val=g*100};s.Y.GI=function(h,e){for(var G=0;
G<h.length;G++){var $=h[G],Z=Math.round($[0]*4096),c=$[1],q=$[2],E=$[3];if(q==null)q=1;if(E==null)E=.5;
var P=s.Y.lp({h:c[0]*255,l:c[1]*255,O:c[2]*255});e.Clrs.v[G]={t:"Objc",v:{classID:"Clrt",Lctn:{t:"long",v:Z},Mdpn:{t:"long",v:Math.round(E*100)},Clr:{t:"Objc",v:P},Type:{t:"enum",v:{Clry:"UsrS"}}}};
e.Trns.v[G]={t:"Objc",v:{classID:"TrnS",Lctn:{t:"long",v:Z},Mdpn:{t:"long",v:Math.round(E*100)},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(q*100)}}}}}};
s.HI={};s.HI.a65=function(h,e,$,Z,c,q,E,P,a,j,L,H){var _,J,S,N=Date.now(),Y=!1,U=E,g=j,M,C,y,i,Q=q*255,m=255-a*255,n=1+c*6,u=1+P*6,K=1+H*4,F=(K-1)/7,b=0,d=255-0,W,A,z,T,R,I,r,x,X,l,hH,hZ,gj,hO=0,d3=1,v,hl,ht,ga,eB,bP,ek,b_,fz,ca,gf=1+L,bb,b2=s.m($*Z),dV=s.m($*Z),ch=s.m($*Z),hE=s.m($*Z),dS=255/Q,e1=255/(255-m);
for(J=0;J<Z;J++){for(_=0;_<$;_++){var G=J*$+_,eG=G<<2;v=s.jv(h[eG],h[eG+1],h[eG+2]);hE[G]=v;if(v<Q)b2[G]=255-v*dS;
if(v>m)dV[G]=255-(255-v)*e1}}if(Y)console.log("init",Date.now()-N);N=Date.now();if(c*U>0){ch.set(b2);
s.Nw.E_(ch,b2,new O(0,0,$,Z),U)}if(P*g>0){ch.set(dV);s.Nw.E_(ch,dV,new O(0,0,$,Z),g)}if(Y)console.log("blur",Date.now()-N);
N=Date.now();var dq=s.m(256),f2=s.m(256);for(var G=0;G<256;G++){var a3=G*(1/255),bm=0;bm=(1-Math.pow(1-a3,n))*255;
dq[G]=Math.max(0,Math.min(255,~~(bm+.5)));bm=Math.pow(a3,u)*255;f2[G]=Math.max(0,Math.min(255,~~(bm+.5)))}var h2=new Uint8ClampedArray(e.buffer),ag=new Float32Array(32768);
for(var G=0;G<32768;G++){bb=Math.sqrt(G)*(1/128);if(gf>1)bb=(1-bb)*(gf-1)+1;else bb=bb*(gf-1)+1;ag[G]=bb}for(J=0;
J<Z;J++){for(_=0;_<$;_++){var G=J*$+_,eG=G<<2,bm=hE[G],eU=b2[G]*(1/255),iz=dV[G]*(1/255);bm=(1-eU)*bm+eU*dq[~~bm];
bm=(1-iz)*bm+iz*f2[~~bm];v=bm;var d2=h[eG],gP=h[eG+1],fa=h[eG+2];hl=-d2*.168736-gP*.331264+fa*.5;ht=d2*.5-gP*.418688-fa*.081312;
bb=ag[~~(.5+hl*hl+ht*ht)];ga=hl*bb;bP=ht*bb;d3=1-Math.min(2-(eU+iz),1);hl=d3*hl+(1-d3)*ga;ht=d3*ht+(1-d3)*bP;
b_=v+1.402*ht;fz=v-.34414*hl-.71414*ht;ca=v+1.772*hl;h2[eG]=~~(.5+b_);h2[eG+1]=~~(.5+fz);h2[eG+2]=~~(.5+ca)}}if(Y)console.log("apply masks",Date.now()-N);
N=Date.now()};s.U_={};s.U_.xS=function(h,e,$,Z,c){var q=!1,S=1,d=0,W=0,X=0,fz=0;if(!e.x1(c)){var E=e.iJ(c),P=s.m(E.X()*4);
s.hX(h,e,P,E);h=P;e=E}var a=s.m(e.X());s.T7($,c,a,e);s.round(a);c=c.jx(e);var j=c.d,L=c.v,H=j*3<L?2:1,_=L*3<j?2:1;
if(c.X()*(H*2+1)*(_*2+1)<e.X()){var E=new O(c.x-j*H,c.y-L*H,j*(H*2+1),L*(_*2+1)).jx(e),P=s.m(E.X()*4);
s.hX(h,e,P,E);var J=s.m(E.X());s.T7(a,e,J,E);e=E;h=P;a=J}while((e.d+e.v)/2/S>400)S++;var N=h,Y=e,U=a,g=Math.floor(Y.d/S),M=Math.floor(Y.v/S);
h=s.m(g*M*4);s.scale.hF(N,Y.d,Y.v,h,g,M,1/S);a=s.m(g*M);s.scale.rK(U,Y.d,Y.v,a,g,M,1/S);s.round(a,1);
var C=s.Hd(a,new O(0,0,g,M));if(C.nK())return 1;var y=Math.round((C.d+C.v)/2/15),i=Date.now(),Q=s.m(g*M*4);
s.a5Z(h,Q);var m=Int16Array,n=new m(g*M*24),u=new m(64),K=new m(64),F=new m(64),b=new m(64);for(var A=3;
A<M-4;A++)for(var z=3;z<g-4;z++){var T=A*g+z;if(a[T]==255)continue;if(s.U_.aeB(Q,a,z,A,g,M,u,K,F)!=0)continue;
s.U_.Da(u,b);n[d]=z;n[d+1]=A;s.U_.i7(u,n,d+4,12);d+=16;s.U_.Da(K,b);s.U_.i7(K,n,d,4);d+=4;s.U_.Da(F,b);
s.U_.i7(F,n,d,4);d+=4;var R=n[d-24+5],I=n[d-24+6];n[d-24+5]=n[d-24+20];n[d-24+6]=n[d-24+16];n[d-24+16]=R;
n[d-24+20]=I;W++}if(W==0)return 2;if(q)console.log(Date.now()-i,"FWHT computed");i=Date.now();var r=[];
s.U_.Ew(0,W-1,r,n,new m(2*24));if(q)console.log(Date.now()-i,"KD tree computed");i=Date.now();var x=new Float32Array(g*M*4);
for(var G=0;G<W;G++){var l=G,hH=s.U_.a3H(l,n,r,y);if(hH==-1)continue;var hZ=l*24,gj=hH*24,hO=n[hZ],d3=n[hZ+1],v=n[gj],hl=n[gj+1];
X+=s.U_.getError(gj,hZ,n,1e99);var ht=v-hO,ga=hl-d3;x[(M+ga)*2*g+(g+ht)]+=1}if(q)console.log(Date.now()-i,"NN found");
i=Date.now();var eB=[],bP=1/(2*g);for(var G=0;G<x.length;G++){if(x[G]>0){var A=Math.floor(G*bP),z=G-A*2*g;
eB.push({x:z-g,y:A-M,G:x[G],JI:-1})}}eB.sort(function(iz,d2){return d2.G-iz.G});var ek=new Int32Array(g*M),b_=[];
for(var G=0;G<g*M;G++){if(a[G]==255){ek[G]=fz;b_.push(G%g,Math.floor(G/g));fz++}else if(h[(G<<2)+3]<200){ek[G]=-2}else{ek[G]=-1}}var ca=s.U_.a7P(g,M,eB,ek,b_,fz);
if(ca==null){return 3}var gf=ca.WA,top=ca.top;gf=s.U_.a3u(gf,h,g,M,top,ek,b_,fz);if(q)console.log(Date.now()-i,"optimal labeling found");
i=Date.now();var E=c.clone();E.P5(1,1);E=E.jx(Y);var bb=s.m(E.X()*4),b2=s.m(E.X());s.hX(N,Y,bb,E);var dV=Y.d,dS=Y.v;
for(var A=0;A<dS;A++)for(var z=0;z<dV;z++){if(U[A*dV+z]==0)continue;var e1=Math.min(Math.floor(z/S),g-1),eG=Math.min(Math.floor(A/S),M-1),dq=ek[eG*g+e1],f2=gf[dq],a3=top[f2],bm=z+a3.x*S,h2=A+a3.y*S,ag=h2*dV+bm<<2,eU=(A-E.y+Y.y)*E.d+(z-E.x+Y.x)<<2;
bb[eU]=N[ag];bb[eU+1]=N[ag+1];bb[eU+2]=N[ag+2];bb[eU+3]=N[ag+3];bb[eU+3]=N[ag+3];b2[eU>>2]=f2+1}if(q)console.log(Date.now()-i,"copied back");
i=Date.now();s.WO.xS(bb,b2,E,null,1e3);if(q)console.log(Date.now()-i,"poisson smooth");i=Date.now();
s.hX(bb,E,Z,c);return 0};s.U_.oP=function(h,e,$,Z,c,q){return s.U_.Ul(h+c.x,e+c.y,$,Z)&&q[(e+c.y)*$+(h+c.x)]==-1?0:1e9};
s.U_.a3u=function(h,e,$,Z,top,c,q,E){var P=Date.now(),a=[-1,0,0,-1,1,0,0,1],j=1e99,L=[],H=[],_=2*(E*2*3+E*2),J=null,S=0,N=0,Y=0,U=1e99;
while(!0&&Date.now()<P+12e3){Y++;var g=null,M=j;for(var C=0;C<top.length;C++){var y=top[C],i=0,Q=E+2,m=0;
for(var G=0;G<E;G++){var n=q[G*2],u=q[G*2+1],K=top[h[G]],F=s.U_.oP(n,u,$,Z,y,c),b=h[G]==C?1e9:s.U_.oP(n,u,$,Z,K,c);
for(var t=0;t<4;t++){if(t==0&&n==0||t==1&&u==0||t==2&&n==$-1||t==3&&u==Z-1)continue;var d=a[2*t],W=a[2*t+1],A=n+d,z=u+W,T=c[z*$+A];
if(T==-2){}else if(T==-1){F+=3*s.U_.KU(A+y.x,z+y.y,A,z,$,Z,e,c);F+=2*s.U_.KU(A+y.x+d,z+y.y+W,A+d,z+W,$,Z,e,c);
b+=3*s.U_.KU(A+K.x,z+K.y,A,z,$,Z,e,c);b+=2*s.U_.KU(A+K.x+d,z+K.y+W,A+d,z+W,$,Z,e,c)}else if(t>1){if(h[G]==h[T]){var R=0;
R+=s.U_.KU(n+K.x,u+K.y,n+y.x,u+y.y,$,Z,e,c);R+=s.U_.KU(A+K.x,z+K.y,A+y.x,z+y.y,$,Z,e,c);L[i]=G;L[i+1]=T;
H[i]=R;H[i+1]=R;i+=2}else{var I=top[h[T]],r=Q,x=0,X=0,l=0;Q++;x+=s.U_.KU(n+K.x,u+K.y,n+y.x,u+y.y,$,Z,e,c);
x+=s.U_.KU(A+K.x,z+K.y,A+y.x,z+y.y,$,Z,e,c);X+=s.U_.KU(n+I.x,u+I.y,n+y.x,u+y.y,$,Z,e,c);X+=s.U_.KU(A+I.x,z+I.y,A+y.x,z+y.y,$,Z,e,c);
l+=s.U_.KU(n+I.x,u+I.y,n+K.x,u+K.y,$,Z,e,c);l+=s.U_.KU(A+I.x,z+I.y,A+K.x,z+K.y,$,Z,e,c);L[i]=G;L[i+1]=r;
H[i]=x;H[i+1]=x;i+=2;L[i]=T;L[i+1]=r;H[i]=X;H[i+1]=X;i+=2;L[i]=r;L[i+1]=E+1;H[i]=l;H[i+1]=0;i+=2}}}L[i]=E;
L[i+1]=G;H[i]=F;H[i+1]=0;i+=2;L[i]=G;L[i+1]=E+1;H[i]=b;H[i+1]=0;i+=2;m+=Math.min(F,b)}if(m>M)continue;
var hH=s.c6.lJ(Q,i,E,E+1,L,H,M);if(hH.iH<M){M=hH.iH;var hZ=h.slice(0);s.U_.a3f(hZ,i,L,hH.oL,C,E);g=hZ}}if(M*1>=j){break}j=M;
h=g;if((Y&3)==0){if(M*1.03>=U)break;U=M}if((Y&3)==0){var gj=0*top.length;for(var G=0;G<top.length&&top.length>gj;
G++){if(h.indexOf(G)!=-1)continue;top.splice(G,1);for(var T=0;T<h.length;T++)if(h[T]>G)h[T]--;G--}}}return h};
s.U_.a3f=function(h,e,$,Z,c,q){for(var G=0;G<Z.length;G++){var E=Z[G]<<1,P=0,a=0;if(E<e){P=$[E];a=$[E+1]}else{a=$[E];
P=$[E+1]}if(P==q&&h[a]!=c)h[a]=c}};s.U_.kt=function(top,h,e,$,Z,c,q,E,P){for(var G=0;G<e.length;G++){var a=e[G],j=!0;
if(E!=null&&!(s.U_.Ul(E+a.x,P+a.y,c,q)&&$[c*(P+a.y)+E+a.x]==-1))continue;if(a.JI==-1)a.JI=s.U_.a87(a,$,Z,c,q);
if(a.JI<=0)continue;for(var L=0;L<top.length;L++){var H=top[L],_=a.x-H.x,J=a.y-H.y;if(_*_+J*J<h){j=!1;
break}}if(j)return a}return null};s.U_.a87=function(h,e,$,Z,c){var q=0;for(var G=0;G<$.length;G+=2){var E=$[G]+h.x,P=$[G+1]+h.y;
if(s.U_.Ul(E,P,Z,c)&&e[Z*P+E]==-1)q++}return q/($.length>>1)};s.U_.a7P=function(h,e,$,Z,c,q){var top=[];
for(var G=0;G<60;G++){var E=s.U_.kt(top,25,$,Z,c,h,e);if(E==null)break;else top.push(E)}if(top.length==0)return null;
var P=[];for(var G=0;G<q;G++){var a=c[G*2],j=c[G*2+1],L=-1,H=0;while(!0){H++;var _=Math.random();L=Math.floor(_*.99999*top.length);
var J=top[L],S=a+J.x,N=j+J.y;if(s.U_.Ul(S,N,h,e)&&Z[N*h+S]==-1)break;if(H>100){var E;E=s.U_.kt(top,0,$,Z,c,h,e,a,j);
if(E==null)return null;top.push(E);H=0}}P.push(L)}return{top:top,WA:P}};s.U_.KU=function(h,e,$,Z,c,q,E,P){if(h==$&&e==Z)return 0;
if(h<0||e<0||h>=c||e>=q||$<0||Z<0||$>=c||Z>=q||P[e*c+h]!=-1||P[Z*c+$]!=-1)return 1e7;var a=e*c+h<<2,j=Z*c+$<<2,L=E[a]-E[j],H=E[a+1]-E[j+1],_=E[a+2]-E[j+2];
return 1+(L*L+H*H+_*_)};s.U_.Ul=function(h,e,$,Z){return h>=0&&h<$&&e>=0&&e<Z};s.U_.a3H=function(h,e,$,Z){var c=24*h,q=e[c],E=e[c+1],P=Z*Z,a=0,_=1e9;
while($[a]!=99)if(e[c+$[a]]<$[a+1])a=$[a+2];else a=$[a+3];var j=$[a+1],L=$[a+2],H=-1;for(var G=j;G<=L;
G++){var a=G,J=a*24,S=e[J],N=e[J+1];if((S-q)*(S-q)+(N-E)*(N-E)<P)continue;var Y=s.U_.getError(J,c,e,_);
if(Y<_){_=Y;H=a}}return H};s.U_.getError=function(h,e,$,Z){var c=0;for(var q=4;q<24;q+=4){var E=$[e+q]-$[h+q],P=$[e+q+1]-$[h+q+1],a=$[e+q+2]-$[h+q+2],j=$[e+q+3]-$[h+q+3];
c+=E*E+P*P+a*a+j*j;if(c>=Z)return c+1}return c};s.U_.Ew=function(h,e,$,Z,c){var q=16,_=0;if(e-h<=q){$.push(99,h,e);
return}s.U_.Be(h,e,Z,c);var E=-1,P=-1;for(var G=4;G<24;G++){var a=c[2*G+1]-c[2*G];if(a>P){P=a;E=G}}var j=h+e>>1,L=s.U_.ag_(j,h,e,Z,E),H=-1;
for(var G=h;G<=e;G++)if(Z[24*G+E]==L){if(H==-1)H=G;_=G}if(h+8<H&&H-h>e-_)j=H;else if(_+1<e-8)j=_+1;else if(e-h<64){$.push(99,h,e);
return}else j=j;var J=$.length;$.push(E,L,0,0);$[J+2]=J+4;s.U_.Ew(h,j-1,$,Z,c);$[J+3]=$.length;s.U_.Ew(j,e,$,Z,c)};
s.U_.Be=function(h,e,$,Z){for(var G=0;G<48;G+=4){Z[G]=3e4;Z[G+1]=-3e4;Z[G+2]=3e4;Z[G+3]=-3e4}for(var G=h;
G<=e;G++){var c=G*24;for(var q=0;q<24;q++){var E=$[c+q],P=Z[q<<1],a=Z[(q<<1)+1];if(E<P)Z[q<<1]=E;if(E>a)Z[(q<<1)+1]=E}}};
s.U_.p_=function(h,e,$){var Z=0,G=0;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;
G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;
G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;
G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;
G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;
G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;
G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;
G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;
G++;Z=$[h+G];$[h+G]=$[e+G];$[e+G]=Z;G++};s.U_.zH=function(h,e,$,Z){var c=$+Z>>>1,q=h[24*c+e];while($<=Z){while(h[24*$+e]<q)$++;
while(h[24*Z+e]>q)Z--;if($<=Z){if(h[24*$+e]!=h[24*Z+e])s.U_.p_($*24,Z*24,h);$++;Z--}}return $};s.U_.ag_=function(h,e,$,Z,c){var q=0;
while(e!=$){q=s.U_.zH(Z,c,e,$);if(h<q)$=q-1;else e=q}return Z[h*24+c]};s.U_.i7=function(h,e,$,Z){for(var G=0;
G<Z;G++)e[$+G]=h[G]};s.U_.aeB=function(h,e,$,Z,c,q,E,P,a){var j=(Z-3)*c+($-3),L=j<<2;for(var H=0;H<8;
H++){if(e[j]+e[j+1]+e[j+2]+e[j+3]+e[j+4]+e[j+5]+e[j+6]+e[j+7]!=0||h[L+3]<200||h[L+7]<200||h[L+11]<200||h[L+15]<200||h[L+19]<200||h[L+23]<200||h[L+27]<200||h[L+31]<200)return 1;
var G=H<<3;E[G+0]=h[L+0];P[G+0]=h[L+1];a[G+0]=h[L+2];E[G+1]=h[L+4];P[G+1]=h[L+5];a[G+1]=h[L+6];E[G+2]=h[L+8];
P[G+2]=h[L+9];a[G+2]=h[L+10];E[G+3]=h[L+12];P[G+3]=h[L+13];a[G+3]=h[L+14];E[G+4]=h[L+16];P[G+4]=h[L+17];
a[G+4]=h[L+18];E[G+5]=h[L+20];P[G+5]=h[L+21];a[G+5]=h[L+22];E[G+6]=h[L+24];P[G+6]=h[L+25];a[G+6]=h[L+26];
E[G+7]=h[L+28];P[G+7]=h[L+29];a[G+7]=h[L+30];L+=c<<2;j+=c}return 0};s.U_.Da=function(h,e){e[0]=h[32]+h[0];
e[1]=h[33]+h[1];e[2]=h[34]+h[2];e[3]=h[35]+h[3];e[4]=h[36]+h[4];e[5]=h[37]+h[5];e[6]=h[38]+h[6];e[7]=h[39]+h[7];
e[8]=h[40]+h[8];e[9]=h[41]+h[9];e[10]=h[42]+h[10];e[11]=h[43]+h[11];e[12]=h[44]+h[12];e[13]=h[45]+h[13];
e[14]=h[46]+h[14];e[15]=h[47]+h[15];e[16]=h[48]+h[16];e[17]=h[49]+h[17];e[18]=h[50]+h[18];e[19]=h[51]+h[19];
e[20]=h[52]+h[20];e[21]=h[53]+h[21];e[22]=h[54]+h[22];e[23]=h[55]+h[23];e[24]=h[56]+h[24];e[25]=h[57]+h[25];
e[26]=h[58]+h[26];e[27]=h[59]+h[27];e[28]=h[60]+h[28];e[29]=h[61]+h[29];e[30]=h[62]+h[30];e[31]=h[63]+h[31];
e[32]=h[0]-h[32];e[33]=h[1]-h[33];e[34]=h[2]-h[34];e[35]=h[3]-h[35];e[36]=h[4]-h[36];e[37]=h[5]-h[37];
e[38]=h[6]-h[38];e[39]=h[7]-h[39];e[40]=h[8]-h[40];e[41]=h[9]-h[41];e[42]=h[10]-h[42];e[43]=h[11]-h[43];
e[44]=h[12]-h[44];e[45]=h[13]-h[45];e[46]=h[14]-h[46];e[47]=h[15]-h[47];e[48]=h[16]-h[48];e[49]=h[17]-h[49];
e[50]=h[18]-h[50];e[51]=h[19]-h[51];e[52]=h[20]-h[52];e[53]=h[21]-h[53];e[54]=h[22]-h[54];e[55]=h[23]-h[55];
e[56]=h[24]-h[56];e[57]=h[25]-h[57];e[58]=h[26]-h[58];e[59]=h[27]-h[59];e[60]=h[28]-h[60];e[61]=h[29]-h[61];
e[62]=h[30]-h[62];e[63]=h[31]-h[63];h[0]=e[16]+e[0];h[1]=e[17]+e[1];h[2]=e[18]+e[2];h[3]=e[19]+e[3];
h[4]=e[20]+e[4];h[5]=e[21]+e[5];h[6]=e[22]+e[6];h[7]=e[23]+e[7];h[8]=e[24]+e[8];h[9]=e[25]+e[9];h[10]=e[26]+e[10];
h[11]=e[27]+e[11];h[12]=e[28]+e[12];h[13]=e[29]+e[13];h[14]=e[30]+e[14];h[15]=e[31]+e[15];h[16]=e[0]-e[16];
h[17]=e[1]-e[17];h[18]=e[2]-e[18];h[19]=e[3]-e[19];h[20]=e[4]-e[20];h[21]=e[5]-e[21];h[22]=e[6]-e[22];
h[23]=e[7]-e[23];h[24]=e[8]-e[24];h[25]=e[9]-e[25];h[26]=e[10]-e[26];h[27]=e[11]-e[27];h[28]=e[12]-e[28];
h[29]=e[13]-e[29];h[30]=e[14]-e[30];h[31]=e[15]-e[31];e[0]=h[8]+h[0];e[1]=h[9]+h[1];e[2]=h[10]+h[2];
e[3]=h[11]+h[3];e[4]=h[12]+h[4];e[5]=h[13]+h[5];e[6]=h[14]+h[6];e[7]=h[15]+h[7];e[8]=h[0]-h[8];e[9]=h[1]-h[9];
e[10]=h[2]-h[10];e[11]=h[3]-h[11];e[12]=h[4]-h[12];e[13]=h[5]-h[13];e[14]=h[6]-h[14];e[15]=h[7]-h[15];
h[0]=e[4]+e[0];h[1]=e[5]+e[1];h[2]=e[6]+e[2];h[3]=e[7]+e[3];h[4]=e[0]-e[4];h[5]=e[1]-e[5];h[6]=e[2]-e[6];
h[7]=e[3]-e[7];h[8]=e[12]+e[8];h[9]=e[13]+e[9];h[10]=e[14]+e[10];h[11]=e[15]+e[11];h[12]=e[8]-e[12];
h[13]=e[9]-e[13];h[14]=e[10]-e[14];h[15]=e[11]-e[15];e[0]=h[2]+h[0];e[1]=h[3]+h[1];e[2]=h[0]-h[2];e[3]=h[1]-h[3];
e[4]=h[6]+h[4];e[5]=h[7]+h[5];e[6]=h[4]-h[6];e[7]=h[5]-h[7];e[8]=h[10]+h[8];e[9]=h[11]+h[9];e[10]=h[8]-h[10];
e[11]=h[9]-h[11];e[12]=h[14]+h[12];e[13]=h[15]+h[13];e[14]=h[12]-h[14];e[15]=h[13]-h[15];h[0]=e[1]+e[0];
h[1]=e[0]-e[1];h[2]=e[3]+e[2];h[3]=e[2]-e[3];h[4]=e[5]+e[4];h[5]=e[4]-e[5];h[6]=e[7]+e[6];h[7]=e[6]-e[7];
h[8]=e[9]+e[8];h[9]=e[8]-e[9];h[10]=e[11]+e[10];h[11]=e[10]-e[11];h[12]=e[13]+e[12];h[13]=e[12]-e[13];
h[14]=e[15]+e[14];h[15]=e[14]-e[15]};s.U_.abx=function(){var h="",t=64,e="v",$="t",Z="a",c=5,G,q,E;for(G=t>>1;
G>0;G>>=1,c--){for(q=0;q<t;q++){E=(q>>c&1)!=0;if(E){h+=$+"["+q+"] = "+e+"["+(-G+q)+"] - "+e+"["+q+"];  "}else{h+=$+"["+q+"] = "+e+"["+(G+q)+"] + "+e+"["+q+"];  "}}Z=e;
e=$;$=Z;h+="\n"}console.log(h)};s.U_.ajE=function(t,h,e){var $=h,Z=e,c=$,q=0,G,P,a;while(t>>q!=2)q++;
var E=q;for(G=t>>1;G>0;G>>=1,q--){for(P=0;P<t;P++){a=(P>>q&1)!=0;if(a)Z[P]=$[-G+P]-$[P];else Z[P]=$[G+P]+$[P]}c=$;
$=Z;Z=c}if((E&1)==1)for(G=0;G<t;G++)e[G]=$[G]};s.FT={};s.FT.Km=function(h,e,$,Z,c,q,E,P,a){var j=Date.now(),L=new Uint32Array(h.buffer),H=new Uint32Array(e.buffer),_=E/$,J=P/Z,S=1/_,N=1/J,Y=new Float64Array(2),U=3,g=1/U,M=1/(U*U),C=0,y=0,i=$,Q=Z;
if(c){C=c.x;y=c.y;i=c.d;Q=c.v}for(var m=0;m<Q;m++)for(var n=0;n<i;n++){var u=C+n,K=y+m,G=K*$+u,F=G<<1,b=G<<2;
s.FT.ah0(q,E,P,(u+.5)*_,(K+.5)*J,Y);var d=Y[0]*S,W=Y[1]*N;if(d==0&&W==0)H[G]=L[G];else{s.I._4(u+d+.5,K+W+.5,L,$,Z,H,G,a)}}};
s.FT.ah0=function(h,e,$,Z,c,q){Z-=.499999;c-=.499999;var E=~~Z,P=~~c,a=Z-E,j=c-P,L=(1-j)*(1-a),H=(1-j)*a,_=j*(1-a),J=j*a,S=E<e-1?E+1:E,N=P<$-1?P+1:P,Y=P*e+E<<1,U=P*e+S<<1,g=N*e+E<<1,M=N*e+S<<1;
q[0]=L*h[Y]+H*h[U]+_*h[g]+J*h[M];q[1]=L*h[Y+1]+H*h[U+1]+_*h[g+1]+J*h[M+1]};s.FT.a8R=function(h,e,$,Z,c){var q=1/h,E=[-1,1,-h,h],P=Z.length;
for(var a=0;a<P;a++){var G=Z[a],j=G<<1,L=a<<1,H=~~(G*q),_=G-h*H,J=$[j],S=$[j+1],N=0,Y=0;if(_!=0&&_!=h-1){var U=G-1<<1,g=G+1<<1,M=$[U],C=$[g],y=$[U+1],i=$[g+1],Q=J-(M+C)*.5,m=S-(y+i)*.5;
N-=Q*c;Y-=m*c}if(H!=0&&H!=e-1){var U=G-h<<1,g=G+h<<1,M=$[U],C=$[g],y=$[U+1],i=$[g+1],Q=J-(M+C)*.5,m=S-(y+i)*.5;
N-=Q*c;Y-=m*c}$[j]=J+N;$[j+1]=S+Y}};s.FT.a4T=function(h,e){var $=h+","+e;if(s.FT.vg==$)return s.FT.TL;
var Z=s.FT.TL=[];s.FT.vg=$;for(var G=0;G<=1e3;G++){var c=G*.001,q=Math.sqrt(c),E=Math.exp(-4*q),P=.96*(1-q*q),a=e*((1-h)*E+h*P);
Z[G]=a}return Z};s.FT.vg="";s.FT.TL=[];s.FT.a3O=function(h,e,$,Z,c,q,E,P,a,j,L,H,_){var J=Math.max(0,Math.floor(c-E-1)),S=Math.min(e,Math.ceil(c+E+1)),N=Math.max(0,Math.floor(q-E-1)),Y=Math.min($,Math.ceil(q+E+1)),U=2*e,g=E*E,M=1/E,C=0;
if(_&&(Z==3||Z==6))a=-a;var y=s.FT.a4T(P,a);for(var i=N;i<Y;i++)for(var Q=J;Q<S;Q++){var G=i*e+Q,m=G<<1,n=(c-Q)*M,u=(q-i)*M,K=n*n+u*u;
if(K<1){H[C]=G;var F=y[~~(K*1e3)];if(Z==1){h[m]=h[m]*(1-F*.05);h[m+1]=h[m+1]*(1-F*.05)}else{var b=0,d=0,z,T,R,I;
if(Z==0){b=j*F;d=L*F}else if(Z==2){}else if(Z==3){b=F*u;d=-F*n}else if(Z==4){b=F*n;d=F*u}else if(Z==5){b=-F*n;
d=-F*u}else if(Z==6){b=L*F;d=-j*F}var W=h[m],A=h[m+1];if(Q==0||Q!=e-1&&b<0){z=1+h[m+2]-W;R=h[m+3]-A}else{z=W-h[m-2]+1;
R=A-h[m-1]}if(i==0||i!=$-1&&d<0){T=h[m+U]-W;I=1+h[m+U+1]-A}else{T=W-h[m-U];I=A-h[m-U+1]+1}h[m]=-(z*b+T*d-W);
h[m+1]=-(R*b+I*d-A)}C++}}};s.FT.a0Z=function(h){var e=h[0],$=h[0],Z=h[1],c=h[1];for(var G=0;G<h.length;
G+=2){var q=h[G],E=h[G+1];if(q<e)e=q;else if(q>$)$=q;if(E<Z)Z=E;else if(E>c)c=E}return[e,Z,$,c]};s.a85=function(h,e,$,Z,c){function q(v,hl,ht,ga){return Math.sqrt((v-ht)*(v-ht)+(hl-ga)*(hl-ga))}function E(v,hl){return v>=0&&v<e&&hl>=0&&hl<$}function P(v){if(v<0)return 0;
if(v>=e)return e-1;return v}function a(v){if(v<0)return 0;if(v>=$)return $-1;return v}function j(G,v){var hl=v[3]*(1/255),ht=Z[G]+v[0]*hl;
if(ht>255)ht=255;Z[G]=ht;ht=Z[G+1]+v[1]*hl;if(ht>255)ht=255;Z[G+1]=ht;ht=Z[G+2]+v[2]*hl;if(ht>255)ht=255;
Z[G+2]=ht}function L(v,hl,ht){if(!r(v,hl))return;if(ht[3]<0)ht[3]=0;j((hl*e+v)*4,ht)}function H(v){var hl=v.slice(0,3);
hl[3]=0;return hl}var _=e/800;function J(v){return Math.round(v*_)}function S(){for(var G=0;G<=300;G++){X[G]=N(G)}}function N($){var v=.8,hl=.2,ht=v*hl,ga=$/60%2-1,eB=ht*(1-ga*ga),bP=hl-ht,ek;
if($<60){ek=[ht+bP,eB,0]}else if($<120){ek=[eB,ht,0]}else if($<180){ek=[0,ht,eB]}else if($<240){ek=[0,eB,ht]}else if($<300){ek=[eB,0,ht]}else{ek=[ht,0,eB]}return[(ek[0]+bP)*255,(ek[1]+bP)*255,(ek[2]+bP)*255]}function Y($){return X[~~$]}function U(v){return 1-g(v)}function g(v){return v-~~v}function M(v,hl,ht,ga){R(v,hl,ht,0,hl+1,1,ga)}function C(v,hl,ht,ga,eB,bP){R(v,hl,ht,0,ga,1,eB,bP)}function y(v){for(var G=0;
G<Z.length;G+=4){j(G,v)}}function i(v,hl,ht,ga,eB,bP,ek,b_){Q(v,hl,ht,ga,eB,1,bP,ek,b_)}function Q(v,hl,ht,ga,eB,bP,ek,b_,fz){if(bP==null)bP=.5;
if(ek==null)ek=0;if(b_==null)b_=0;if(fz==null)fz=!1;var ca=v.x,gf=v.y,bb=ht.slice(0),b2=~~(ht[3]*hH);
ga=ga*hH;if(!fz){hl=I(hl);eB=I(eB);ek=I(ek);b_=I(b_)}var dV=P(ca-hl),ch=P(ca+hl);for(var hE=dV;hE<=ch;
hE++){var dS=hE-ca,e1=Math.floor(Math.sqrt(hl*hl-dS*dS)),eG=a(gf-e1),dq=a(gf);for(var f2=eG;f2<=dq;f2++){var a3=q(hE,f2,ca,gf);
if(a3>hl||a3<=hl-eB)break;var bm=(a3-hl+eB)/eB;bb[3]=b2-ga*(bP==1?bm:Math.pow(bm,bP));j((f2*e+hE)*4,bb)}eG=a(gf+e1);
for(var f2=eG;f2>dq;f2--){var a3=q(hE,f2,ca,gf);if(a3>hl||a3<=hl-eB)break;var bm=(a3-hl+eB)/eB;bb[3]=b2-ga*(bP==1?bm:Math.pow(bm,bP));
j((f2*e+hE)*4,bb)}}if(ek>0){R(v,hl+ek,bb,bb[3],ek,1,0,0,!0)}if(b_>0){R(v,hl-eB,x(ht),-ht[3],b_,1,0,0,!0)}}function m(v,hl,ht,ga,eB,bP){R(v,hl,ht,ht[3],hl+1,1,ga,eB,bP)}function n(v,hl,ht,ga,eB){if(eB==null)eB=!1;
var bP=v.x,ek=v.y;ga*=hH;if(!eB){hl=I(hl);ht=I(ht)}var b_=P(bP-hl),fz=P(bP+hl);for(var ca=b_;ca<fz;ca++){var gf=ca-bP,bb=~~Math.sqrt(hl*hl-gf*gf),b2=a(ek-bb),dV=a(ek);
for(var ch=b2;ch<=dV;ch++){var hE=q(ca,ch,bP,ek);if(hE>hl||hE<=hl-ht)break;var dS=(hl-hE)/ht,e1=Y(300*dS);
e1[3]=ga;j((ch*e+ca)*4,e1)}b2=a(ek+bb);for(var ch=b2;ch>dV;ch--){var hE=q(ca,ch,bP,ek);if(hE>hl||hE<=hl-ht)break;
var dS=(hl-hE)/ht,e1=Y(300*dS);e1[3]=ga;j((ch*e+ca)*4,e1)}}}function u(l,v){var hl=l.rO,ht=l.x5,ga=v.slice(0),eB=v[3]*hH,bP=Math.abs(ht.y-hl.y)>Math.abs(ht.x-hl.x);
if(bP){var ek=hl.x;hl.x=hl.y;hl.y=ek;ek=ht.x;ht.x=ht.y;ht.y=ek}if(hl.x>ht.x){var ek=hl;hl=ht;ht=ek}var b_=ht.x-hl.x,fz=ht.y-hl.y,ca=b_==0?1:fz/b_,gf=Math.round(hl.x),bb=hl.y+ca*(gf-hl.x),b2=U(hl.x+.5),dV=gf,ch=~~bb;
if(bP){ga[3]=eB*U(bb)*b2;L(ch,dV,ga);ga[3]=eB*g(bb)*b2;L(ch+1,dV,ga)}else{ga[3]=eB*U(bb)*b2;L(dV,ch,ga);
ga[3]=eB*g(bb)*b2;L(dV,ch+1,ga)}var hE=bb-ca;gf=Math.round(ht.x);bb=ht.y+ca*(gf-ht.x);b2=g(ht.x+.5);
var dS=gf,e1=~~bb;if(bP){ga[3]=eB*U(bb)*b2;L(e1,dS,ga);ga[3]=eB*g(bb)*b2;L(e1+1,dS,ga)}else{ga[3]=eB*U(bb)*b2;
L(dS,e1,ga);ga[3]=eB*g(bb)*b2;L(dS,e1+1,ga)}if(bP){for(var eG=dV+1;eG<=dS-1;eG++){ga[3]=eB*U(hE);L(~~hE,eG,ga);
ga[3]=eB*g(hE);L(~~hE+1,eG,ga);hE+=ca}}else{for(var eG=dV+1;eG<=dS-1;eG++){ga[3]=eB*U(hE);L(eG,~~hE,ga);
ga[3]=eB*g(hE);L(eG,~~hE+1,ga);hE+=ca}}}function K(v,hl,ht,ga){for(var G=0;G<4;G++){var eB=v.SR(hl+1.3*G,ht);
u(eB,ga,1)}}function eu(v,hl){this.x=Math.round(v);this.y=Math.round(hl)}var F=Math.PI/180;eu.prototype.SR=function(v,hl){v=v*F;
var ht=this.x+hl*Math.cos(v),ga=this.y+hl*Math.sin(v);return new b(this.x,this.y,ht,ga)};eu.prototype.a0J=function(v,hl){v=v*F;
var ht=this.Af+hl*Math.cos(v),ga=this.aft+hl*Math.sin(v);return new eu(ht,ga)};function b(v,hl,ht,ga){this.rO=new eu(v,hl);
this.x5=new eu(ht,ga)}b.prototype.cL=function(v){var hl=v*this.rO.x+(1-v)*this.x5.x,ht=v*this.rO.y+(1-v)*this.x5.y;
return new eu(hl,ht)};var d=i,W=m,A=M,z=C,T=n,R=Q,I=J,r=E,x=H,X=[];S();for(var G=0;G<h.length;G++){Z[G]=h[G]}var l=new b(e*c[2],$*c[3],e/2,$/2),hH=c[1],hZ=[];
hZ[0]=function gj(){var v=[80,40,15,60],ht=0,ga=0;A(l.cL(1.4),260,v,10);A(l.cL(1),100,[240,50,50,30],30);
W(l.cL(1),60,[255,40,0,40]);var hl=[255,255,255,255];R(l.cL(1),70,hl,hl[3],58,.5);A(l.cL(1),12,hl);hl[3]=40;
d(l.cL(1),150,hl,hl[3],150);for(var G=0;G<40;G++){ht+=Math.random()*25;ga=Math.random()*I(300)+I(100);
var eB=l.cL(1).SR(ht,ga);u(l.cL(1).SR(ht,ga),[110,110,110,30])}W(l.cL(1),130,[255,255,255,8]);var bP=[170,30,23,70];
z(l.cL(1),70,bP,1,3,3);var ek=[60,60,130,40];A(l.cL(.47),44,ek,5);A(l.cL(.43),22,ek,3);ek[3]=16;A(l.cL(.53),15,ek,2);
var b_=[138,94,42,100];A(l.cL(.2),16,b_,2);var fz=[130,255,170,180];W(l.cL(0),4,fz);W(l.cL(-.25),5,fz);
b_=[150,90,0,50];d(l.cL(-.45),55,x(b_),-b_[3],40,2);A(l.cL(-.42),35,b_,2);A(l.cL(-.5),15,b_,2);T(l.cL(-1.28),145,11,70);
var ca=Y(0);ca[3]=50;d(l.cL(-1.28),149,ca,ca[3],4);ca=Y(300);ca[3]=50;d(l.cL(-1.28),155-1,x(ca),-ca[3],3);
var gf=[130,130,10,50];z(l.cL(-1),73,gf,3,2);var bb=[40,130,70,40];d(l.cL(-1),70,x(bb),-bb[3],35);bb=[40,170,60,50];
A(l.cL(-.7),25,bb,4);var bb=[70,110,50,60];d(l.cL(1.3),30,x(bb),-bb[3],11,3);ek=[0,50,210,80];W(l.cL(-.72),20,ek)};
hZ[1]=function hO(){W(l.cL(1),150,[240,70,70,60]);A(l.cL(1),100,[200,60,60,40],30);var v=[255,255,255,255],hl=0,ht=0;
R(l.cL(1),75,v,v[3],63);A(l.cL(1),12,v);W(l.cL(1),270,[200,200,200,20],10);for(var G=0;G<10;G++){hl+=10+Math.random()*40;
ht=Math.random()*I(250)+I(80);var ga=l.cL(1).SR(hl,ht);u(ga,[110,110,110,35])}hl=5;ht=100;for(var G=0;
G<12;G++){hl+=30;K(l.cL(1),hl,ht,[90,90,90,40])}var eB=[150,40,23,100];z(l.cL(1),70,eB,1,3,3);var bP=[30,100,60,40];
W(l.cL(-.9),180,[255,255,255,20]);A(l.cL(-.9),140,bP,15);var ek=[170,80,25,15];z(l.cL(-.9),120,ek,1,4,4);
var b_=[110,240,190,200];W(l.cL(-.6),3,b_);b_[3]=100;W(l.cL(-.6),7,b_);var fz=[230,120,40,85];W(l.cL(-.73),9,fz);
var ca=[60,60,190,50];A(l.cL(.3),28,ca,6);ca[3]=25;A(l.cL(.34),20,ca,3)};hZ[2]=function d3(){var v=[255,255,255,255],ht=0,ga=0;
A(l.cL(1),13,v);R(l.cL(1),150,v,v[3],137);var hl=[120,80,35,20];A(l.cL(1.4),260,hl,10);for(var G=0;G<40;
G++){ht+=5+Math.random()*30;ga=Math.random()*I(300);u(l.cL(1).SR(ht,ga),[110,110,110,20])}var eB=[10,30,255,30];
A(l.cL(1),70,eB,50);var bP=[15,90,170,15];A(l.cL(1.5),60,bP);var ek=[220,220,20,50];A(l.cL(-1.15),8,ek,2);
var v=[255,255,255,40];W(l.cL(-1.18),6,v);W(l.cL(-1.18),4,v);ek=[110,110,10,8];d(l.cL(-1.2),32,x(ek),-ek[3],20,3);
var b_=[5,0,16,255];for(var G=0;G<4;G++){A(l.cL(-1.36),10,b_,3)}var fz=[90,200,150,20],ca=fz.slice(0);
ca[3]*=2;A(l.cL(-1.32),7,ca,3);A(l.cL(-1.36),7,ca,3);A(l.cL(-1.4),7,ca,3);var v=[230,230,230,100];W(l.cL(-1.36),2,v);
v[3]=3;A(l.cL(-.55),10,v);ek=[120,100,10,18];A(l.cL(-.55),160,ek,8);A(l.cL(-.55),80,ek,4);fz[3]=3;ca[3]=6;
d(l.cL(-.49),13,x(ca),-ca[3],13,2);d(l.cL(-.55),13,x(ca),-ca[3],13,2);fz[3]=20;A(l.cL(.15),25,fz,3);
ek[3]=100;W(l.cL(-.52),3,ek);ek=[200,200,50,40];A(l.cL(.27),1,ek,4);var gf=[150,40,23,30];d(l.cL(1),80,x(gf),-gf[3],2,1)};
return hZ[c[0]]()};s.FC={};s.FC.JR=function(h){var e=h.length,t=h[0].length,$=new Array(t);for(var G=0;
G<t;G++)$[G]=new Array(e);for(var G=0;G<t;G++)for(var Z=0;Z<e;Z++)$[G][Z]=h[Z][G];return $};s.FC.MR=function(h,e){var $=h.length,t=h[0].length,Z=new Array($);
for(var G=0;G<$;G++)Z[G]=new Array(t);for(var G=0;G<$;G++)for(var c=0;c<t;c++)Z[G][c]=h[G][c]-e[G][c];
return Z};s.FC.add=function(h,e){var $=h.length,t=h[0].length,Z=new Array($);for(var G=0;G<$;G++)Z[G]=new Array(t);
for(var G=0;G<$;G++)for(var c=0;c<t;c++)Z[G][c]=h[G][c]+e[G][c];return Z};s.FC.multiply=function(h,e){var $=h.length,Z=h[0].length,t=e[0].length;
if(Z!=e.length)throw"e";var c=new Array($);for(var G=0;G<$;G++)c[G]=new Array(t);if((Z&1)!=0)for(var G=0;
G<$;G++){var q=h[G],E=c[G];for(var P=0;P<t;P++){var a=0;for(var j=0;j<Z;j++)a+=q[j]*e[j][P];E[P]=a}}else for(var G=0;
G<$;G++){var q=h[G],E=c[G];for(var P=0;P<t;P++){var a=0;for(var j=0;j<Z;j+=2)a+=q[j]*e[j][P]+q[j+1]*e[j+1][P];
E[P]=a}}return c};s.FC.P3=function(h,e){var $=h.length,t=h[0].length,Z=new Array($);for(var G=0;G<$;
G++){var c=0;for(var q=0;q<t;q++)c+=h[G][q]*e[q];Z[G]=c}return Z};s.FC.yU=function(h,e){var $=[];for(var G=0;
G<h;G++){$.push([]);for(var Z=0;Z<e;Z++)$[G].push(0)}return $};s.FC.a8N=function(h){for(var G=0;G<h.length;
G++)console.log(JSON.stringify(h[G]))};s.FC.a84=function(h){var e=[];for(var G=0;G<h.length;G++)e.push(h[G].join(","));
return"["+e.join(";")+"]"};s.FC.lJ=function(h,e){var $=h.length;for(var Z=0;Z<$;Z++){var c=0,q=Number.NEGATIVE_INFINITY;
for(var G=Z;G<$;G++)if(Math.abs(h[G][Z])>q){c=G;q=Math.abs(h[G][Z])}s.FC.ad2(h,Z,c);for(var G=Z+1;G<$;
G++){if(h[Z][Z]==0)return 1;var E=h[G][Z]/h[Z][Z];for(var P=Z;P<$+1;P++)h[G][P]-=h[Z][P]*E}}for(var G=$-1;
G>=0;G--){if(h[G][G]==0)return 1;var a=h[G][$]/h[G][G];e[G]=a;for(var P=G-1;P>=0;P--){h[P][$]-=h[P][G]*a;
h[P][G]=0}}return 0};s.FC.ad2=function(h,e,$){var Z=h[e];h[e]=h[$];h[$]=Z};s.FC.ake=function(h){var e=h.length,$=s.FC.yU(e,e);
for(var G=0;G<e;G++)$[G][G]=h[G];return $};s.FC.a3Z=function(h){var e=h.length,$=h[0].length,Z=new Array(e);
for(var G=0;G<e;G++){Z[G]=0;for(var c=0;c<$;c++)Z[G]+=h[G][c];Z[G]/=$}return Z};s.FC.Em=function(h){var e=0;
for(var G=0;G<h.length;G++)e+=h[G]*h[G];return Math.sqrt(e)};s.l2={};s.l2.UU=function(h){var e=~~(h+.5);
return e<0?0:e>255?255:e};s.l2.transform=function(h,e,$){var Z=s.l2.UU,c=h.h.length;for(var G=0;G<c;
G++){var q=h.h[G],E=h.l[G],P=h.O[G];e.h[G]=Z($[0]*q+$[1]*E+$[2]*P+$[3]*255);e.l[G]=Z($[4]*q+$[5]*E+$[6]*P+$[7]*255);
e.O[G]=Z($[8]*q+$[9]*E+$[10]*P+$[11]*255)}};s.l2.i6=function(h,e,$){var Z=s.l2.UU,c=h.length;for(var G=0;
G<c;G+=4){var q=h[G],E=h[G+1],P=h[G+2];e[G]=Z($[0]*q+$[1]*E+$[2]*P+$[3]*255);e[G+1]=Z($[4]*q+$[5]*E+$[6]*P+$[7]*255);
e[G+2]=Z($[8]*q+$[9]*E+$[10]*P+$[11]*255)}};s.l2.ad=function(h){var e=h[0]+h[1]+h[2],$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1];
if(e==1){var Z=h.indexOf(1);$[Z]=$[Z+4]=$[Z+8]=1}else{$[0]=h[0];$[5]=h[1];$[10]=h[2]}return $};s.l2.jI=function(h,e,$){return[1,0,0,h,0,1,0,e,0,0,1,$,0,0,0,1]};
s.l2.vs=function(h,e,$){return[h,0,0,0,0,e,0,0,0,0,$,0,0,0,0,1]};s.l2.acx=function(h){return[h[0],h[1],h[2],h[4],h[5],h[6],h[8],h[9],h[10]]};
s.l2.KS=function(h){return[h[0],h[1],h[2],0,h[3],h[4],h[5],0,h[6],h[7],h[8],0,0,0,0,1]};s.l2.Cf=function(h,e){return[h[0]*e[0]+h[1]*e[1]+h[2]*e[2]+h[3]*e[3],h[4]*e[0]+h[5]*e[1]+h[6]*e[2]+h[7]*e[3],h[8]*e[0]+h[9]*e[1]+h[10]*e[2]+h[11]*e[3],h[12]*e[0]+h[13]*e[1]+h[14]*e[2]+h[15]*e[3]]};
s.l2.JR=function(h){var e=[];e[0]=h[0];e[1]=h[4];e[2]=h[8];e[3]=h[12];e[4]=h[1];e[5]=h[5];e[6]=h[9];
e[7]=h[13];e[8]=h[2];e[9]=h[6];e[10]=h[10];e[11]=h[14];e[12]=h[3];e[13]=h[7];e[14]=h[11];e[15]=h[15];
return e};s.l2.multiply=function(h,e){var $=[];$[0]=h[0]*e[0]+h[1]*e[4]+h[2]*e[8]+h[3]*e[12];$[1]=h[0]*e[1]+h[1]*e[5]+h[2]*e[9]+h[3]*e[13];
$[2]=h[0]*e[2]+h[1]*e[6]+h[2]*e[10]+h[3]*e[14];$[3]=h[0]*e[3]+h[1]*e[7]+h[2]*e[11]+h[3]*e[15];$[4]=h[4]*e[0]+h[5]*e[4]+h[6]*e[8]+h[7]*e[12];
$[5]=h[4]*e[1]+h[5]*e[5]+h[6]*e[9]+h[7]*e[13];$[6]=h[4]*e[2]+h[5]*e[6]+h[6]*e[10]+h[7]*e[14];$[7]=h[4]*e[3]+h[5]*e[7]+h[6]*e[11]+h[7]*e[15];
$[8]=h[8]*e[0]+h[9]*e[4]+h[10]*e[8]+h[11]*e[12];$[9]=h[8]*e[1]+h[9]*e[5]+h[10]*e[9]+h[11]*e[13];$[10]=h[8]*e[2]+h[9]*e[6]+h[10]*e[10]+h[11]*e[14];
$[11]=h[8]*e[3]+h[9]*e[7]+h[10]*e[11]+h[11]*e[15];$[12]=h[12]*e[0]+h[13]*e[4]+h[14]*e[8]+h[15]*e[12];
$[13]=h[12]*e[1]+h[13]*e[5]+h[14]*e[9]+h[15]*e[13];$[14]=h[12]*e[2]+h[13]*e[6]+h[14]*e[10]+h[15]*e[14];
$[15]=h[12]*e[3]+h[13]*e[7]+h[14]*e[11]+h[15]*e[15];return $};s.l2.vy=function(h){var e=[];e[0]=h[5]*h[10]*h[15]-h[5]*h[14]*h[11]-h[6]*h[9]*h[15]+h[6]*h[13]*h[11]+h[7]*h[9]*h[14]-h[7]*h[13]*h[10];
e[1]=-h[1]*h[10]*h[15]+h[1]*h[14]*h[11]+h[2]*h[9]*h[15]-h[2]*h[13]*h[11]-h[3]*h[9]*h[14]+h[3]*h[13]*h[10];
e[2]=h[1]*h[6]*h[15]-h[1]*h[14]*h[7]-h[2]*h[5]*h[15]+h[2]*h[13]*h[7]+h[3]*h[5]*h[14]-h[3]*h[13]*h[6];
e[3]=-h[1]*h[6]*h[11]+h[1]*h[10]*h[7]+h[2]*h[5]*h[11]-h[2]*h[9]*h[7]-h[3]*h[5]*h[10]+h[3]*h[9]*h[6];
e[4]=-h[4]*h[10]*h[15]+h[4]*h[14]*h[11]+h[6]*h[8]*h[15]-h[6]*h[12]*h[11]-h[7]*h[8]*h[14]+h[7]*h[12]*h[10];
e[5]=h[0]*h[10]*h[15]-h[0]*h[14]*h[11]-h[2]*h[8]*h[15]+h[2]*h[12]*h[11]+h[3]*h[8]*h[14]-h[3]*h[12]*h[10];
e[6]=-h[0]*h[6]*h[15]+h[0]*h[14]*h[7]+h[2]*h[4]*h[15]-h[2]*h[12]*h[7]-h[3]*h[4]*h[14]+h[3]*h[12]*h[6];
e[7]=h[0]*h[6]*h[11]-h[0]*h[10]*h[7]-h[2]*h[4]*h[11]+h[2]*h[8]*h[7]+h[3]*h[4]*h[10]-h[3]*h[8]*h[6];e[8]=h[4]*h[9]*h[15]-h[4]*h[13]*h[11]-h[5]*h[8]*h[15]+h[5]*h[12]*h[11]+h[7]*h[8]*h[13]-h[7]*h[12]*h[9];
e[9]=-h[0]*h[9]*h[15]+h[0]*h[13]*h[11]+h[1]*h[8]*h[15]-h[1]*h[12]*h[11]-h[3]*h[8]*h[13]+h[3]*h[12]*h[9];
e[10]=h[0]*h[5]*h[15]-h[0]*h[13]*h[7]-h[1]*h[4]*h[15]+h[1]*h[12]*h[7]+h[3]*h[4]*h[13]-h[3]*h[12]*h[5];
e[11]=-h[0]*h[5]*h[11]+h[0]*h[9]*h[7]+h[1]*h[4]*h[11]-h[1]*h[8]*h[7]-h[3]*h[4]*h[9]+h[3]*h[8]*h[5];e[12]=-h[4]*h[9]*h[14]+h[4]*h[13]*h[10]+h[5]*h[8]*h[14]-h[5]*h[12]*h[10]-h[6]*h[8]*h[13]+h[6]*h[12]*h[9];
e[13]=h[0]*h[9]*h[14]-h[0]*h[13]*h[10]-h[1]*h[8]*h[14]+h[1]*h[12]*h[10]+h[2]*h[8]*h[13]-h[2]*h[12]*h[9];
e[14]=-h[0]*h[5]*h[14]+h[0]*h[13]*h[6]+h[1]*h[4]*h[14]-h[1]*h[12]*h[6]-h[2]*h[4]*h[13]+h[2]*h[12]*h[5];
e[15]=h[0]*h[5]*h[10]-h[0]*h[9]*h[6]-h[1]*h[4]*h[10]+h[1]*h[8]*h[6]+h[2]*h[4]*h[9]-h[2]*h[8]*h[5];var $=h[0]*e[0]+h[1]*e[4]+h[2]*e[8]+h[3]*e[12];
for(var G=0;G<16;G++)e[G]/=$;return e};s.l2.ao6=function(h){var e=[],$=h[5]*h[10]*h[15]-h[5]*h[14]*h[11]-h[6]*h[9]*h[15]+h[6]*h[13]*h[11]+h[7]*h[9]*h[14]-h[7]*h[13]*h[10],Z=-h[4]*h[10]*h[15]+h[4]*h[14]*h[11]+h[6]*h[8]*h[15]-h[6]*h[12]*h[11]-h[7]*h[8]*h[14]+h[7]*h[12]*h[10],c=h[4]*h[9]*h[15]-h[4]*h[13]*h[11]-h[5]*h[8]*h[15]+h[5]*h[12]*h[11]+h[7]*h[8]*h[13]-h[7]*h[12]*h[9],q=-h[4]*h[9]*h[14]+h[4]*h[13]*h[10]+h[5]*h[8]*h[14]-h[5]*h[12]*h[10]-h[6]*h[8]*h[13]+h[6]*h[12]*h[9];
return h[0]*$+h[1]*Z+h[2]*c+h[3]*q};s.l2.EJ=s.l2.KS([3.1338561,-1.6168667,-.4906146,-.9787684,1.9161415,.033454,.0719453,-.2289914,1.4052427]);
s.l2.afa=s.l2.KS([1.9624274,-.6105343,-.3413404,-.9787684,1.9161415,.033454,.0286869,-.1406752,1.3487655]);
s.l2.a44=s.l2.vy(s.l2.EJ);s.c6={};s.c6.jc=new Uint32Array(1);s.c6.nU=function(h,e,$,Z,c,q){var E=new Uint32Array(h),P=0,a=s.c6.jc;
if(a.length<e*4)s.c6.jc=a=new Uint32Array(e*4);var j=new Float64Array(a.buffer);for(var G=0;G<e;G+=2){var L=c[G],H=c[G+1],_=q[G],J=q[G+1];
a[P]=H;j[P+2>>1]=_;a[P+1]=E[L];E[L]=P+1;P+=4;a[P]=L;j[P+2>>1]=J;a[P+1]=E[H];E[H]=P+1;P+=4}return{ZH:a,ami:j,a2K:E}};
s.c6.lJ=function(h,e,$,Z,c,q,E){var P=1,a=s.c6.nU(h,e,$,Z,c,q),j=a.ZH,L=a.ami,H=a.a2K,_=new Uint32Array(h),J=new s.c6.cS(h),N=1,C=0;
J.push($);J.push(Z);var S=new s.c6.cS(h),Y=new Uint8Array(h),U=new Uint32Array(h);Y[$]=1;Y[Z]=2;var g=new Uint32Array(h),M=new Uint32Array(h);
M[$]=M[Z]=0;g[$]=g[Z]=1;while(!0){var y=-1,F=0,A=1e30;while(!J.mr()&&y==-1){var i=J.top(),Q=Y[i],m=H[i]-1;
while(m!=-1){var n=j[m],u=Y[n],K=m^Q-1<<2;if(L[K+2>>1]!=0){if(u==0){s.c6.cC(i,m,n,Y,U,M,g);J.push(n)}else if(u==Q&&g[n]<=g[i]&&M[n]>M[i])s.c6.cC(i,m,n,Y,U,M,g);
else if(u!=Q){y=K}}m=j[m+1]-1}if(y!=-1)break;J.pop()}if(y==-1){break}N++;var b=y;while(b!=-1){_[F]=b;
F++;b=U[j[b^4]]-1}var d=F>>1;for(var G=0;G<d;G++){var W=_[G];_[G]=_[F-G-1];_[F-G-1]=W}b=U[j[y]]-1;while(b!=-1){_[F]=b^4;
F++;b=U[j[b^4]]-1}for(var G=0;G<F;G++)A=Math.min(A,L[_[G]+2>>1]);C+=A;if(C>=E)return{oL:null,iH:C};for(var G=0;
G<F;G++){var z=_[G],T=z^4,i=j[T],n=j[z];L[z+2>>1]-=A;L[T+2>>1]+=A;if(L[z+2>>1]==0&&Y[i]==Y[n]){if(Y[i]==1){U[n]=0;
S.push(n)}if(Y[i]==2){U[i]=0;S.push(i)}}}while(!S.mr()){var i=S.pop(),Q=Y[i],m=H[i]-1,R=Q==1?4:0,I=0,r=0,x=1e9;
while(m!=-1){var n=j[m],X=m^4,K=m^R;if(Y[n]==Q&&L[K+2>>1]>0&&s.c6.a1_(n,$,Z,U,j,N,g,M)+1<x){I=n;r=X;
x=M[n]+1}m=j[m+1]-1}if(r!=0){s.c6.cC(I,r,i,Y,U,M,g);continue}m=H[i]-1;while(m!=-1){var n=j[m],K=m^R;
if(Y[n]==Q){if(L[K+2>>1]>0){J.push(n)}if(U[n]==m+1){U[n]=0;S.push(n)}}m=j[m+1]-1}Y[i]=0;J.remove(i)}}var l=[];
for(var G=0;G<e;G+=2){var i=c[G],n=c[G+1];if(Y[i]==1&&Y[n]!=1){l.push(G>>1)}if(Y[n]==1&&Y[i]!=1){l.push(e+G>>1)}}return{oL:l,iH:C}};
s.c6.cC=function(h,e,$,Z,c,q,E){Z[$]=Z[h];c[$]=e+1;q[$]=q[h]+1;E[$]=E[h]};s.c6.a1_=function(h,e,$,Z,c,q,E,P){var a=h,j=Z[h]-1,L=0;
while(j!=-1&&E[h]!=q){h=c[j^4];j=Z[h]-1;L++}if(j==-1&&h!=e&&h!=$)return 1e9;var H=P[h]+L;L=0;j=Z[a]-1;
while(a!=h){P[a]=H-L;L++;E[a]=q;a=c[j^4];j=Z[a]-1}return H};s.c6.ag8=function(h,e,$,Z,c,q){var E=s.c6.nU(h,e,$,Z,c,q),P=E.ZH,a=E.ami,j=E.a2K,L=0,H=0,_=new Uint32Array(h*2),J=new s.c6.M9(h),S=0;
while(!0){J.reset();J.push($);for(var G=0;G<h;G++)_[G<<1]=0;while(!J.mr()){var N=J.pop(),Y=j[N]-1;while(Y!=-1){S=P[Y];
if(_[S<<1]==0&&a[Y+2>>1]>0&&S!=$){_[S<<1]=N+1;_[(S<<1)+1]=Y;J.push(S)}Y=P[Y+1]-1}if(_[Z<<1]!=0){break}}if(_[Z<<1]==0){break}var U=1e30;
S=Z;while(!0){var g=_[S<<1]-1;if(g==-1)break;var M=_[(S<<1)+1];U=Math.min(U,a[M+2>>1]);S=g}S=Z;while(!0){var g=_[S<<1]-1;
if(g==-1)break;var M=_[(S<<1)+1],C=M^4;a[M+2>>1]-=U;a[C+2>>1]+=U;S=g}L+=U}var y=[];for(var G=0;G<e;G+=2){var g=c[G],S=c[G+1];
if((_[g<<1]!=0||g==$)&&_[S<<1]==0&&S!=$){y.push(G>>1)}if((_[S<<1]!=0||S==$)&&_[g<<1]==0&&g!=$){y.push(e+G>>1)}}return{oL:y,iH:L}};
s.c6.M9=function(h){h|=h>>1;h|=h>>2;h|=h>>4;h|=h>>8;h|=h>>16;this.xF=new Uint32Array(h+1);this.kG=h;
this.KL=0;this.YN=0};s.c6.M9.prototype={push:function(h){var e=this.YN;this.xF[e]=h;this.YN=e+1&this.kG},pop:function(){var h=this.KL,e=this.xF[h];
this.KL=h+1&this.kG;return e},mr:function(){return this.KL==this.YN},reset:function(){this.KL=0;this.YN=0}};
s.c6.cS=function(h){h|=h>>1;h|=h>>2;h|=h>>4;h|=h>>8;h|=h>>16;this.xF=new Uint32Array(h+1);this.Qp=new Uint32Array(h+1);
this.kG=h;this.KL=0;this.YN=0};s.c6.cS.prototype={top:function(){return this.xF[this.KL]},alk:function(){return this.xF[this.YN]},push:function(h){if(this.Qp[h]!=0)return;
this.Qp[h]=this.YN+1;var e=this.YN;this.xF[e]=h;this.YN=e+1&this.kG},pop:function(){var h=this.KL,e=this.xF[h];
this.Qp[e]=0;this.KL=h+1&this.kG;return e},mr:function(){return this.KL==this.YN},remove:function(h){var e=this.Qp[h]-1;
if(e==-1)return;this.Qp[h]=0;if(e==this.KL){this.pop();return}var $=this.pop();this.xF[e]=$;this.Qp[$]=e+1},Hk:function(G){return G+this.kG+1&this.kG}};
s.c6._Y=function(h,e,$){var Z=s.c6.zH(h,e,$);if(e<Z-1)s.c6._Y(h,e,Z-1);if(Z<$)s.c6._Y(h,Z,$)};s.c6.zH=function(h,e,$){var Z=h[e+$>>>1];
while(e<=$){while(h[e]<Z)e++;while(h[$]>Z)$--;if(e<=$){s.c6.p_(h,e,$);e++;$--}}return e};s.c6.p_=function(h,e,$){var Z=h[e];
h[e]=h[$];h[$]=Z};s.as={};s.as.afV=function(h){for(var G=0;G<h.length;G++)s.as.Kp(h,G)};s.as.Kp=function(h,G){h[G].v.keyShapeInvalidated={t:"bool",v:!0}};
s.as.ahq=function(h){for(var G=0;G<h.length;G++)h[G].v.keyOriginIndex.v=G};s.as.qm=function(){return{t:"Objc",v:{classID:"null",keyOriginIndex:{t:"long",v:0},keyShapeInvalidated:{t:"bool",v:!0}}}};
s.as.oy=function(h){h=h.v;var e={Rctn:2,Ln:4,Elps:5},$=e[h.classID],Z=h.topLeft?s.as.tt(h):null,c=null,q=0;
if($==4){var E=h.Strt.v,P=h.End.v;c=[E.Hrzn.v.val,E.Vrtc.v.val,P.Hrzn.v.val,P.Vrtc.v.val];q=h.Wdth.v.val}if($==null)return null;
return s.as.Or($,$==4?null:s.as.yb(h),Z,c,q)};s.as.Ho=function(h,e,$,Z,c,q){var E={classID:h,unitValueQuadVersion:{t:"long",v:1}};
if(e)s.as.s8(E,["Left","Top","Rght","Btom"],e);if($)s.as.s8(E,["topLeft","topRight","bottomRight","bottomLeft"],$);
if(h=="Ln"){E.Strt={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:Z[0]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:Z[1]}}}},E.End={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:Z[2]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:Z[3]}}}},E.Wdth={t:"UntF",v:{type:"#Pxl",val:c}}}if(q)E.Nm={t:"TEXT",v:q};
return{t:"Objc",v:E}};s.as.Or=function(h,e,$,Z,c){var q=s.as.qm(),E=q.v;delete E.keyShapeInvalidated;
E.keyOriginType={t:"long",v:h};E.keyOriginResolution={t:"doub",v:75};if(h==4){E.keyOriginLineStart={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:Z[0]},Vrtc:{t:"doub",v:Z[1]}}};
E.keyOriginLineEnd={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:Z[2]},Vrtc:{t:"doub",v:Z[3]}}};e=[Math.min(Z[0],Z[2]),Math.min(Z[1],Z[3]),Math.max(Z[0],Z[2]),Math.max(Z[1],Z[3])];
E.keyOriginLineWeight={t:"doub",v:c},E.keyOriginLineArrowSt={t:"bool",v:!1};E.keyOriginLineArrowEnd={t:"bool",v:!1};
E.keyOriginLineArrWdth={t:"doub",v:0};E.keyOriginLineArrLngth={t:"doub",v:0};E.keyOriginLineArrConc={t:"long",v:0}}var P={classID:"unitRect",unitValueQuadVersion:{t:"long",v:1}};
E.keyOriginShapeBBox={t:"Objc",v:P};s.as.m3(E,e);if($!=null){var a={classID:"radii",unitValueQuadVersion:{t:"long",v:1}};
E.keyOriginRRectRadii={t:"Objc",v:a};s.as.Xj(E,$)}return q};s.as.J=function(h,e,$,Z){var c=s.I.Lc(e),q=s.I.l5(e),E=Math.max(Math.abs(e[0]),Math.abs(e[1])),P=Math.max(Math.abs(e[3]),Math.abs(e[4]));
for(var G=0;G<h.length;G++){var a=h[G].v,j=a.keyShapeInvalidated;if(j&&j.v||a.keyOriginType==null)continue;
if($.length!=0&&$.indexOf(G)==-1)continue;var L=a.keyOriginType.v;if(!c||!q||Z&&L==2&&Math.abs(1-E/P)>.01){s.as.Kp(h,G);
continue}var H=s.as.ym(a);s.I.apply(e,H);s.as.m3(a,[Math.min(H[0],H[2]),Math.min(H[1],H[3]),Math.max(H[0],H[2]),Math.max(H[1],H[3])]);
if(L==2){var _=s.as.op(a),J=new i7(e[0],e[1],e[3],e[4],0,0);J.Ux();if(J.R==0){_.push(_.shift());J.rotate(Math.PI/2);
J.Ux()}if(J.R<0){var S=_[0];_[0]=_[1];_[1]=S;S=_[2];_[2]=_[3];_[3]=S}if(J.rU<0){var S=_[0];_[0]=_[3];
_[3]=S;S=_[1];_[1]=_[2];_[2]=S}if(Z)for(var N=0;N<4;N++)_[N]=_[N]*E;s.as.Xj(a,_)}if(L==4){a.keyOriginLineWeight.v*=E;
var Y=s.as.qa(a);s.I.apply(e,Y);s.as.a61(a,Y)}}};s.as.qh=function(h,e){var $=e.b;for(var G=0;G<h.length;
G++){var Z=h[G].v,c=Z.keyShapeInvalidated,H;if(c&&c.v||Z.keyOriginType==null)continue;var q=Z.keyOriginType.v,E=s.as.ym(Z),P=E[0],a=E[1],j=E[2],L=E[3];
if(q==1)H=s.W.d5.Rect(P,a,j-P,L-a,0);else if(q==2){var _=s.as.op(Z);H=s.W.d5.Rect(P,a,j-P,L-a,_)}else if(q==4){var J=s.as.qa(Z);
H=s.W.d5.K8(J[0],J[1],J[2],J[3],Z.keyOriginLineWeight.v)}else if(q==5)H=s.W.d5.eX(P,a,j-P,L-a);var S=s.W.jb($,G),N=s.W.kv($,G);
H[2].aN=$[S].aN;var Y=$;$=$.slice(0,S);for(var U=2;U<H.length;U++)$.push(H[U]);for(var U=S+N;U<Y.length;
U++)$.push(Y[U])}e.b=$;e.w4=!0};s.as.w1=function(h){var e=1e9,$=-e,Z=1e9,c=-Z,q=null,E=h.U9(),P=E[0],a=E[1];
for(var j=0;j<a.length;j++){var L=P[a[j]],H=L.add.vogk;if(H==null)continue;var _=L.add.vmsk.C;for(var J=0;
J<H.length;J++){var S=H[J].v,N=S.keyShapeInvalidated;if(N&&N.v||S.keyOriginType==null)continue;if(a.length==1&&_.length!=0&&_.indexOf(J)==-1)continue;
var Y=S.keyOriginType.v;if(Y!=4){var U=s.as.ym(S);e=Math.min(e,U[0]);Z=Math.min(Z,U[1]);$=Math.max($,U[2]);
c=Math.max(c,U[3])}if(Y==2&&q==null){q=s.as.op(S)}}}return[e<$?[e,Z,$,c]:null,q]};s.as.amh=function(h,e,$){var Z=s.as.w1(h)[0],c;
if(Z){var q=new i7;q.translate(-Z[0],-Z[1]);q.scale(1/(Z[2]-Z[0]),1/(Z[3]-Z[1]));q.scale(e[2]-e[0],e[3]-e[1]);
q.translate(e[0],e[1]);c=s.I.dW(q)}var E=h.U9(),P=E[0],a=E[1];for(var j=0;j<a.length;j++){var L=P[a[j]],H=L.add.vogk;
if(H==null)continue;var _=L.add.vmsk.C;for(var J=0;J<H.length;J++){var S=H[J].v,N=S.keyShapeInvalidated;
if(N&&N.v||S.keyOriginType==null)continue;if(a.length==1&&_.length!=0&&_.indexOf(J)==-1)continue;var Y=S.keyOriginType.v;
if(Y!=4&&e[0]!=null){var e=s.as.ym(S);s.I.apply(c,e);s.as.m3(S,e)}if(Y==2&&$!=null){s.as.Xj(S,$)}}}};
s.as.ym=function(h){return s.as.yb(h.keyOriginShapeBBox.v)};s.as.yb=function(h){var e=h.Left.v.val,$=h.Rght.v.val,Z=h.Top.v.val,c=h.Btom.v.val;
return[e,Z,$,c]};s.as.m3=function(h,e){s.as.s8(h.keyOriginShapeBBox.v,["Left","Top","Rght","Btom"],e)};
s.as.op=function(h){return s.as.tt(h.keyOriginRRectRadii.v)};s.as.tt=function(h){var e=[],$=["topLeft","topRight","bottomRight","bottomLeft"];
for(var Z=0;Z<4;Z++)e.push(h[$[Z]].v.val);return e};s.as.Xj=function(h,e){s.as.s8(h.keyOriginRRectRadii.v,["topLeft","topRight","bottomRight","bottomLeft"],e)};
s.as.s8=function(h,e,$){for(var G=0;G<4;G++)if($[G]!=null)h[e[G]]={t:"UntF",v:{type:"#Pxl",val:$[G]}}};
s.as.qa=function(h){var e=h.keyOriginLineStart.v,$=h.keyOriginLineEnd.v;return[e.Hrzn.v,e.Vrtc.v,$.Hrzn.v,$.Vrtc.v]};
s.as.a61=function(h,e){var $=h.keyOriginLineStart.v,Z=h.keyOriginLineEnd.v;$.Hrzn.v=e[0];$.Vrtc.v=e[1];
Z.Hrzn.v=e[2];Z.Vrtc.v=e[3]};s.a={};s.a.clone=function(h){return{Z:h.Z.slice(0),H:h.H.slice(0)}};s.a.iy=function(h){if(h.length<6)return!0;
var e=h.length-4;for(var G=0;G<e;G+=2)if(!s.a.hf(h[G],h[G+1],h[G+2],h[G+3],h[G+4],h[G+5]))return!1;if(!s.a.hf(h[e],h[e+1],h[e+2],h[e+3],h[0],h[1]))return!1;
if(!s.a.hf(h[e+2],h[e+3],h[0],h[1],h[2],h[3]))return!1;return!0};s.a.hf=function(h,e,$,Z,c,q){return(e-Z)*(c-$)+($-h)*(q-Z)>=0};
s.a.G9=function(h){var e={},$=null,Z=0,c={M:2,L:2,Q:4,C:6};for(var G=0;G<h.Z.length;G++){var q=h.Z[G];
if(q.charAt(0)=="#"){if(e[q]==null)e[q]={H:[],Z:[]};$=e[q]}else if(q!="X"){$.Z.push(q);var E=c[q];if(E==null)E=0;
for(var P=0;P<E;P++)$.H.push(h.H[Z+P]);Z+=E}}return e};s.a.b0=function(h,e){h=s.a.sz(h);var $=h.H,Z=h.Z,c=0,q=[],E=null;
for(var G=0;G<Z.length;G++){var P=Z[G];if(P=="M"){E={a5t:c,NX:0,hy:!1};q.push(E);c+=2}if(P=="C"){E.NX++;
c+=6}if(P=="Z"){E.hy=!0}}var a=[];for(var G=0;G<q.length;G++)if(q[G].NX!=0)a.push(q[G]);q=a;for(var G=0;
G<q.length;G++){var j=q[G],L=j.a5t,H=L+2+j.NX*6,J=0;j.Ny=s.a.Be($,L,H);var _=$[L]==$[H-2]&&$[L+1]==$[H-1];
for(var S=0;S<j.NX;S++){var N=L+S*6,Y=N+6;J+=($[Y]-$[N])*($[Y+1]+$[N+1])}if(j.NX==2){var U=function(l,hH,hZ){var gj=1-hZ;
return gj*gj*gj*l[hH]+3*gj*gj*hZ*l[hH+2]+3*gj*hZ*hZ*l[hH+4]+hZ*hZ*hZ*l[hH+6]},g=$[L],M=$[L+1],C=$[L+6],y=$[L+7],i=$[L+6],Q=$[L+7],m=U($,L,.5),n=U($,L+1,.5),u=U($,L+6,.5),K=U($,L+7,.5);
J=(m-g)*(n-M)+(C-m)*(y-n)+(u-C)*(K-y)+(i-u)*(Q-K)}if(!_)J+=($[L]-$[H-2])*($[L+1]+$[H-1]);j._G=J<=0}for(var G=0;
G<q.length-1;G++)for(var N=G+1;N<q.length;N++){var F=q[G],b=q[N];if(b.Ny.x1(F.Ny)){q[G]=b;q[N]=F}}var d=q.length==0?!0:q[0]._G,W=[{type:6},{type:8,all:0}];
for(var G=0;G<q.length;G++){var j=q[G],L=j.a5t,H=L+2+j.NX*6,_=$[L]==$[H-2]&&$[L+1]==$[H-1],A=j.hy||_?0:3,z=j._G==d&&!e?1:0;
if(!e&&G!=0){if(q[G-1].Ny.x1(j.Ny)&&q[G-1]._G!=j._G)z=0;for(var N=0;N<q.length;N++)if(N!=G&&q[N].Ny.x1(j.Ny))z=0}W.push({type:A,length:j.NX+(_?0:1),aN:z,pg:2});
for(var N=0;N<j.NX;N++){var c=L+N*6,T=new eu($[c],$[c+1]),R=new eu($[c+2],$[c+3]),I;if(N==0){if(_)I=new eu($[H-4],$[H-3]);
else I=T.clone()}else I=new eu($[c-2],$[c-1]);W.push({type:A+2,LD:I,D:T,EH:R})}if(!_){var r=new eu($[H-2],$[H-1]);
W.push({type:A+2,LD:new eu($[H-4],$[H-3]),D:r,EH:r.clone()})}}for(var N=0;N<W.length;N++){var x=W[N];
if(x.type>5||x.type==0||x.type==3)continue;var X=x.LD.dz(x.D)||x.EH.dz(x.EH);if(!X){var F=x.LD.x*(x.D.y-x.EH.y)+x.D.x*(x.EH.y-x.LD.y)+x.EH.x*(x.LD.y-x.D.y);
if(Math.abs(F)<1e-6)X=!0}if(X)x.type--}return W};s.a.$o=function(){function h(Z,c,q,E){if(!E&&Z.EH.dz(Z.D)&&c.LD.dz(c.D)){q.H.push(c.D.x,c.D.y);
q.Z.push("L")}else{q.H.push(Z.EH.x,Z.EH.y,c.LD.x,c.LD.y,c.D.x,c.D.y);q.Z.push("C")}}function e(Z,c,G,q,E,P){var a=c[G];
Z.H.push(a.D.x,a.D.y);Z.Z.push("M");for(var j=G;j<G+q-1;j++)h(c[j],c[j+1],Z,P);if(!E)h(c[j],c[G],Z,P)}function $(Z,c){if(c==null)c=!1;
var q={H:[],Z:[]};for(var G=0;G<Z.length;G++){if(Z[G].type>5)continue;var E=Z[G].length;if(E==0)continue;
if(G==Z.length-1)break;var P=Z[G].type==3;e(q,Z,G+1,E,P,c);if(!P)q.Z.push("Z");G+=E}return q}return $}();
s.a.afR=function(h){var e=h.H,$=[],Z,c=0;for(var G=0;G<h.Z.length;G++){var q=h.Z[G];if(q=="C"){Z.push(e[c++],e[c++],e[c++],e[c++],e[c++],e[c++])}else if(q=="Z"){}else{Z=[];
if(q!="M"){Z.push(q);G++}Z.push(e[c++],e[c++]);$.push(Z)}}return $};s.a.Xi=function(h,e,$,Z){if(Z==null)Z=1e9;
var c=1e9,q=0;for(var G=0;G<h.length;G+=2){var E=e-h[G],P=$-h[G+1],a=E*E+P*P;if(a<c){c=a;q=G>>>1}}return c<Z*Z?q:-1};
s.a.R6=function(h,e,$,Z){for(var G=0;G<h.length;G+=2){var c=h[G],q=h[G+1],E=e[G],P=e[G+1];$[G]=c+(E-c)*Z;
$[G+1]=q+(P-q)*Z}};s.a.J=function(h,e,$){for(var G=0;G<h.length;G+=2){var Z=h[G],c=h[G+1];$[G]=Z*e.R+c*e.Ma+e.zq;
$[G+1]=Z*e.O+c*e.rU+e.nL}};s.a.Be=function(h,e,$){if(e==null)e=0;if($==null)$=h.length;var Z=99999999999,c=-Z,q=99999999999,E=-q;
for(var G=e;G<$;G+=2){var P=h[G],a=h[G+1];Z=Math.min(Z,P);q=Math.min(q,a);c=Math.max(c,P);E=Math.max(E,a)}return new O(Z,q,c-Z,E-q)};
s.a.DH=function(h,e){var $=Math.max(e.x,Math.min(e.x+e.d,h.x)),Z=Math.max(e.y,Math.min(e.y+e.v,h.y)),c=h.x-$,q=h.y-Z;
return Math.sqrt(c*c+q*q)};s.a.Lu=function(h){if(h.nK())return new O(Math.floor(h.x),Math.floor(h.y),Math.ceil(h.d),Math.ceil(h.v));
var e=Math.floor(h.x),$=Math.ceil(h.x+h.d),Z=Math.floor(h.y),c=Math.ceil(h.y+h.v);return new O(e,Z,$-e,c-Z)};
s.a.pl=function(h){return s.a.Lu(s.a.Be(h))};s.a.Kf=function(h){var e=h.x,$=h.y,Z=h.x+h.d,c=h.y+h.v;
return{Z:["M","L","L","L","Z"],H:[e,$,Z,$,Z,c,e,c]}};s.a.concat=function(h,e,$){if($==null)$=new i7;
for(var G=0;G<e.H.length;G+=2){var Z=e.H[G],c=e.H[G+1];h.H.push(Z*$.R+c*$.Ma+$.zq);h.H.push(Z*$.O+c*$.rU+$.nL)}for(var G=0;
G<e.Z.length;G++)h.Z.push(e.Z[G])};s.a.sz=function(h){var e=h.H,$=[],Z=[],c=0,q=0,E=0,P=0,a=0,j=0,L=0,H=0,_=0;
for(var G=0;G<h.Z.length;G++){var J=h.Z[G];if(J=="M"){q=e[c];E=e[c+1];c+=2;Z.push(J);$.push(q,E)}else if(J=="C"){P=e[c];
a=e[c+1];j=e[c+2];L=e[c+3];H=e[c+4];_=e[c+5];c+=6;Z.push(J);$.push(P,a,j,L,H,_);q=H;E=_}else if(J=="Q"){P=e[c];
a=e[c+1];j=e[c+2];L=e[c+3];c+=4;var S=P-q,N=a-E,Y=j-P,U=L-a;Z.push("C");$.push(q+2/3*S,E+2/3*N,P+1/3*Y,a+1/3*U,j,L);
q=j;E=L}else if(J=="L"){P=e[c];a=e[c+1];c+=2;var g=P-q,M=a-E;Z.push("C");$.push(q,E,P,a,P,a);q=P;E=a}else Z.push(J)}return{Z:Z,H:$}};
s.a.a3d=function(h){var e=h.H,$=[],Z=[],c=0;for(var G=0;G<h.Z.length;G++){var q=h.Z[G];if(q=="Q"){var E=e[c-2],P=e[c-1],a=e[c],j=e[c+1],L=e[c+2],H=e[c+3];
c+=4;var _=a-E,J=j-P,S=L-a,N=H-j;Z.push("C");$.push(E+2/3*_,P+2/3*J,a+1/3*S,j+1/3*N,L,H)}else{var Y=0;
if(q=="M"||q=="L")Y=2;else if(q=="C")Y=6;for(var U=0;U<Y;U++)$.push(e[c+U]);c+=Y;Z.push(q)}}return{Z:Z,H:$}};
s.a.zb=function(h,e){var $=h.H,Z=[],c=[],q=0,E=0,P=0,a=0,j=0,L=0,H=0,_=0,J=0;for(var G=0;G<h.Z.length;
G++){var S=h.Z[G];if(S=="M"){E=$[q];P=$[q+1];q+=2;c.push(S);Z.push(E,P)}else if(S=="C"){a=$[q];j=$[q+1];
L=$[q+2];H=$[q+3];_=$[q+4];J=$[q+5];q+=6;s.a.Bc(E,P,a,j,L,H,_,J,e,c,Z,0);E=_;P=J}else c.push(S)}return{Z:c,H:Z}};
s.a.Bc=function(h,e,$,Z,c,q,E,P,a,j,L,H){var _=Math.sqrt((E-h)*(E-h)+(P-e)*(P-e)),J=Math.sqrt((E-c)*(E-c)+(P-q)*(P-q))+Math.sqrt((c-$)*(c-$)+(q-Z)*(q-Z))+Math.sqrt(($-h)*($-h)+(Z-e)*(Z-e)),S=(_+J)/2;
if(S<=a){j.push("C");L.push($,Z,c,q,E,P)}else{var N=0,Y=0,U=0,g=0,M=0,C=0,y=0,i=0,Q=0,m=0,n=0,u=0,K=0;
Y=(h+$)/2;U=(e+Z)/2;g=($+c)/2;M=(Z+q)/2;C=(c+E)/2;y=(q+P)/2;i=(Y+g)/2;Q=(U+M)/2;m=(g+C)/2;n=(M+y)/2;
u=(i+m)/2;K=(Q+n)/2;s.a.Bc(h,e,Y,U,i,Q,u,K,a,j,L,H+1);s.a.Bc(u,K,m,n,C,y,E,P,a,j,L,H+1)}};s.a.ij=function(h,e){var $=h.length-2,Z=h[0],c=h[1],q=h[$],E=h[$+1],P=q-Z,a=E-c,j=1/Math.sqrt(P*P+a*a),L=q*c-E*Z,H=-1,_=-1;
for(var G=2;G<$;G+=2){var J=h[G],S=h[G+1],N=Math.abs(a*J-P*S+L)*j;if(N>_){_=N;H=G}}if(_<e)return[Z,c,q,E];
var Y=s.a.ij(h.slice(0,H+2),e),U=s.a.ij(h.slice(H),e);for(var G=2;G<U.length;G++)Y.push(U[G]);return Y};
s.a.amt=function(){var h=function(Z,c,q,E,P,a){return(c-E)*(P-q)+(q-Z)*(a-E)>=0},e=function(Z,c,q,E,P,a,j,L){var H=j-q,_=L-E,J=P-q,S=a-E,N=Z-q,Y=c-E,U=H*H+_*_,g=H*J+_*S,M=H*N+_*Y,C=J*J+S*S,y=J*N+S*Y,i=1/(U*C-g*g),Q=(C*M-g*y)*i,m=(U*y-g*M)*i;
return Q>=0&&m>=0&&Q+m<1},$=function(Z){var t=Z.length>>>1,G=0;if(t<3)return[];var c=[],q=[];for(var G=0;
G<t;G++)q.push(G);var E=t;while(E>3){var P=q[(G+0)%E],a=q[(G+1)%E],j=q[(G+2)%E],L=Z[2*P],H=Z[2*P+1],_=Z[2*a],J=Z[2*a+1],S=Z[2*j],N=Z[2*j+1],Y=!1;
if(h(L,H,_,J,S,N)){Y=!0;for(var U=0;U<E;U++){var g=q[U];if(g==P||g==a||g==j)continue;if(e(Z[2*g],Z[2*g+1],L,H,_,J,S,N)){Y=!1;
break}}}if(Y){c.push(P,a,j);q.splice((G+1)%E,1);E--;G=0}else if(G++>3*E)break}c.push(q[0],q[1],q[2]);
return c};return $}();s.a.am3=function(h,e){var $={},Z={Z:[],H:[]};for(var G=0;G<e.length;G+=3){var c=e[G]*2,q=e[G+1]*2,E=e[G+2]*2;
s.a.AO(h,c,q,Z,$);s.a.AO(h,c,E,Z,$);s.a.AO(h,q,E,Z,$)}return Z};s.a.AO=function(h,e,$,Z,c){if(e>$){var q=$;
$=e;e=q}if(c[e+","+$])return;c[e+","+$]=!0;Z.Z.push("M","L");Z.H.push(h[e],h[e+1],h[$],h[$+1])};s.a.XZ=function(h,e){var $=[],Z=h.length;
for(var G=0;G<Z;G+=2){var c=h[G],q=h[G+1],E=h[(G+2)%Z],P=h[(G+3)%Z];if(P<q){var a=q;q=P;P=a}if(q<e&&e<P){var j=(e-q)/(P-q);
$.push(c+j*(E-c))}}$.sort(function(L,H){return L-H});return $};s.a.amL=function(h,e){var $=e.slice(0),t=h.length/2,Z=[],c=[];
for(var G=0;G<t;G++){var q=(G+1)%t,E=h[2*G]-h[2*q],P=h[2*G+1]-h[2*q+1];c[G]=Math.sqrt(E*E+P*P)}for(var G=0;
G<t;G++){var a=(G-1+t)%t,q=(G+1)%t,j=e[G],L=j+e[a],H=j+e[q];if(L!=0)$[G]=Math.min($[G],c[a]*j/L);if(H!=0)$[G]=Math.min($[G],c[G]*j/H)}for(var G=0;
G<t;G++){var q=(G+1)%t,_=(G+2)%t,J=$[G],S=$[q],N=h[2*G],Y=h[2*G+1],U=h[2*q],g=h[2*q+1],M=h[2*_],C=h[2*_+1],y=c[G],i=c[q],Q=s.a.ah6(N,Y,U,g,M,C,J,S,y,i);
Z.push(Q[0],Q[1],Q[0],Q[1],Q[2],Q[3]);Z.push(Q[2],Q[3],Q[4],Q[5],Q[6],Q[7])}return Z};s.a.ah6=function(h,e,$,Z,c,q,E,P,a,j){if(a==null)a=Math.sqrt(($-h)*($-h)+(Z-e)*(Z-e));
if(j==null)j=Math.sqrt((c-$)*(c-$)+(q-Z)*(q-Z));var L=.553,H=0,_=0,J=0,S=0;if(a!=0){H=($-h)/a;_=(Z-e)/a}if(j!=0){J=(c-$)/j;
S=(q-Z)/j}var N=h+E*H,Y=e+E*_,U=$-P*H,g=Z-P*_;return[N,Y,U,g,$-P*H*(1-L),Z-P*_*(1-L),$+P*J*(1-L),Z+P*S*(1-L),$+P*J,Z+P*S]};
s.a.Y2=function(h,e,$,Z,c,q,E){var P=h-$,a=e-Z,j=c-$,L=q-Z,H=1/Math.sqrt(P*P+a*a),_=1/Math.sqrt(j*j+L*L),J=P*H,S=a*H,N=j*_,Y=L*_,U=S*E,g=-J*E,M=-Y*E,C=N*E,y=s.a.I1(U,g,J,S,M,C,N,Y),i=U+J*y,Q=g+S*y,y=s.a.I1(0,0,J,S,i,Q,-S,J),m=J*y,n=S*y;
return[Math.sqrt(m*m+n*n),J,S,N,Y]};s.a.Z_=function(h,e,$,Z,c,q,E){var P=s.a.Y2(h,e,$,Z,c,q,E),a=P[0],j=P[1],L=P[2],H=P[3],_=P[4],J=Math.atan2(j*_-L*H,j*H+L*_);
if(J<0){J=J*-1}var S=Math.PI-J,N=4/3*Math.tan(S/4),Y=$+a*j,U=Z+a*L,g=$+a*H,M=Z+a*_,C=Y+N*E*-j,y=U+N*E*-L,i=g+N*E*-H,Q=M+N*E*-_;
return[0,0,Y,U,C,y,i,Q,g,M]};s.a.I1=function(h,e,$,Z,c,q,E,P){var a=E*(e-q)-P*(h-c),j=P*$-E*Z;if(j==0)return 0;
return a/j};s.a.Z_(0,50,0,0,30,30,10);s.WO=function(){};s.WO.xS=function(h,e,$,Z,c){var q=$.d,E=$.v,P=q*E,a=new Int32Array(P),t=0;
for(var G=0;G<P;G++)if(e[G]!=0){a[G]=t;t++}else if(h[(G<<2)+3]<200){a[G]=-2}else a[G]=-1;if(t==0)return;
var j=new s.l_(t,t),L=new Array(3*t),H=new Array(3*t);for(var G=0;G<H.length;G++)H[G]=L[G]=0;var _=1/255,J=[-q,-1,1,q],S=[],N=[];
for(var Y=0;Y<E;Y++)for(var U=0;U<q;U++){var g=Y*q+U,M=g<<2,G=a[g],C=G*3,y=0,i=0,Q=0;if(G==-1||G==-2)continue;
for(var m=0;m<4;m++){if(m==2){i=Q;S[Q]=0;N[Q]=G;Q++}var n=g+J[m],u=n<<2,K=a[n];if(m==0&&Y==0||m==1&&U==0||m==2&&U==q-1||m==3&&Y==E-1||K==-2)continue;
y++;if(K==-1){L[C+0]+=h[u+0];L[C+1]+=h[u+1];L[C+2]+=h[u+2]}else{S[Q]=-1;N[Q]=K;Q++;if(e[g]==e[n]){L[C+0]+=h[M+0]-h[u+0];
L[C+1]+=h[M+1]-h[u+1];L[C+2]+=h[M+2]-h[u+2]}}}S[i]=y;j.yH(S,N,Q)}for(var G=0;G<P;G++)if(a[G]!=-1){var F=G<<2,b=a[G],d=b*3;
H[d]=h[F+0];H[d+1]=h[F+1];H[d+2]=h[F+2]}var W=Date.now();j.a1n(H,L,Z,c);console.log(Date.now()-W);for(var G=0;
G<P;G++){var b=a[G],A=b*3,F=G<<2;if(b==-1||h[F+3]!=255)continue;h[F+0]=~~(.5+Math.max(0,Math.min(255,H[A+0])));
h[F+1]=~~(.5+Math.max(0,Math.min(255,H[A+1])));h[F+2]=~~(.5+Math.max(0,Math.min(255,H[A+2])))}};s.rect={};
s.rect.KR=function(h,e){var $=[h],Z=[];for(var G=0;G<e.length;G++){var c=e[G],q=!1;for(var E=G+1;E<e.length;
E++){var P=e[E];if(P[0]<=c[0]&&P[1]<=c[1]&&c[2]<=P[2]&&c[3]<=P[3]){q=!0;break}}if(!q)Z.push(c)}e=Z;for(var G=0;
G<e.length;G++){var c=e[G];for(var E=0;E<$.length;E++){var P=$[E],a=Math.max(c[0],P[0]),j=Math.min(c[2],P[2]),L=Math.max(c[1],P[1]),H=Math.min(c[3],P[3]);
if(a<j&&L<H){var _=[];if(P[1]<c[1]){var J=P.slice(0);J[3]=c[1];_.push(J)}if(P[0]<c[0]){var S=P.slice(0);
S[1]=L;S[2]=c[0];_.push(S)}if(c[2]<P[2]){var N=P.slice(0);N[1]=L;N[0]=c[2];_.push(N)}if(c[3]<P[3]){var Y=[a,H,j,P[3]];
_.push(Y)}if(_.length!=0){$[E]=_[0];for(var U=1;U<_.length;U++)$.push(_[U])}}}$.push(c);$=s.rect.ae$($)}$.sort(function(c,P){return c[1]!=P[1]?c[1]-P[1]:c[0]-P[0]});
return $};s.rect.ae$=function(h){h=h.slice(0);for(var G=0;G<h.length;G++){var e=h[G],$=null;if(e[4]!=null)continue;
for(var Z=0;Z<h.length;Z++){var c=h[Z];if(G==Z||c[4]!=null)continue;var q=e[0]==c[0],E=e[1]==c[1],P=e[2]==c[2],a=e[3]==c[3];
if(E&&a&&(e[2]==c[0]||e[0]==c[2])){$=[Math.min(e[0],c[0]),e[1],Math.max(e[2],c[2]),e[3]]}if(q&&P&&(e[3]==c[1]||e[1]==c[3])){$=[e[0],Math.min(e[1],c[1]),e[2],Math.max(e[3],c[3])]}if($){h[G]=$;
h.splice(Z,1);break}}if($){G--}}return h};s.rect.RF=function(h){var e=new O;for(var G=0;G<h.length;G++)e=e.iJ(h[G]);
return e};s.rect.a7c=function(h,e){var $=s.rect.RF,Z=new UnionFind(h.length),i=1e3,Q=1e3;for(var G=0;
G<h.length;G++)for(var c=G+1;c<h.length;c++){if(!e)continue;var q=h[G],E=h[c],H=1e9,_=1e9;if(q.k3(E)){Z.link(G,c);
continue}var P=q.x+q.d,a=q.y+q.v,j=E.x+E.d,L=E.y+E.v;if((P<E.x||j<q.x)&&(a<E.y||L<q.y))continue;if(!(a<E.y||L<q.y))H=Math.min(Math.abs(P-E.x),Math.abs(q.x-j));
if(!(P<E.x||j<q.x))_=Math.min(Math.abs(a-E.y),Math.abs(q.y-L));var J=Math.min(H,_),S=Math.min(q.d,q.v,E.d,E.v);
if(J<.3*S)Z.link(G,c)}var N=[],Y={};for(var G=0;G<h.length;G++){var U=Z.find(G),g=h[G];if(Y[U]==null){Y[U]=N.length;
N.push([])}N[Y[U]].push(g)}var M=[],C=[];for(var G=0;G<N.length;G++){M.push($(N[G]));var y=$(N[G]);y.Hk=G;
C.push(y)}C.sort(function(z,T){return Math.max(T.v,T.d)-Math.max(z.v,z.d)});var m=new NETXUS.RectanglePacker(i,Q);
while(!0){var n=!1;m.reset(i,Q);for(var G=0;G<C.length;G++){var u=m.findCoords(C[G].d,C[G].v);if(u){C[G].x=u.x;
C[G].y=u.y}else{i=Math.floor(i*1.1);Q=Math.floor(Q*1.1);n=!0;break}}if(n)continue;break}for(var G=0;
G<N.length;G++){var K=C[G],F=K.Hk,b=M[F],d=N[F],W=K.x-b.x,A=K.y-b.y;for(var c=0;c<d.length;c++)d[c].offset(W,A)}};
s.IQ=function(){};s.IQ.uE=Math.floor(16*window.devicePixelRatio);s.IQ.Ll={};s.IQ.Zm=0;s.IQ.Xp=[[12,76,2],[12,76,3],[12,76,4],[12,76,5],[12,76,6]];
s.IQ.a3W=["px","in","cm","mm","%"];s.IQ.Gj=function(h,e,$){var Z=e.Ay,c=[1,Z,Z/2.54,Z/25.4,e.d/100][$];
return h*c};s.IQ.MB=function(h,e,$,Z,c){var q=$.cz.k1,E=[1,e,e/2.54,e/25.4,Z/100][q],P=[2,3,2,1,2][q];
h=h/E;var a=Math.round(h),j=q==0&&Math.abs(h-a)<1e-6?a+"":h.toFixed(P);if(c)j+=" "+s.IQ.a3W[q];return j};
s.IQ.acC=function(h,e,$,Z){var c=$.cz.k1,q=[1,e,e/2.54,e/25.4,Z/100][c];h=parseFloat(h)*q;return h};
s.IQ.anM=function(h,e){var $=h+","+e;if(s.IQ.Ll.clr==$)return;var Z=Math.round(s.IQ.uE*.5);s.IQ.Zm=Z;
var c=document.createElement("canvas");c.width=c.height=Z;var q=c.getContext("2d");q.font=Z*1.5+"px monospace";
var E="0 1 2 3 4 5 6 7 8 9 -".split(" ");for(var G=0;G<E.length;G++){q.fillStyle="#"+s.jT(e);q.fillRect(0,0,Z,Z);
q.fillStyle="#"+s.jT(h);q.fillText(E[G],0,Z);s.IQ.Ll[E[G]]=q.getImageData(0,0,Z,Z).data}s.IQ.Ll.clr=$};
s.IQ.abj=function(h,e,$){var Z=0,c=0,q=4*s.IQ.uE;for(var G=9;G>=0;G--){var E=Math.pow(10,G);if(5*E*h<=q){Z=5*E;
c=10;break}if(2*E*h<=q){Z=2*E;c=4;break}if(1*E*h<=q){Z=1*E;c=10;break}}if(Z==0){Z=1;c=10}var P=Math.ceil(Z*h),a=s.m(P*s.IQ.uE*4);
s.Ut(a,4278190080|$);for(var G=0;G<s.IQ.uE;G++)s.IQ.$C(a,4*G*P,e);for(var G=0;G<P;G++)s.IQ.$C(a,4*((s.IQ.uE-1)*P+G),e);
if(Z==2)c=2;if(Z==5)c=5;if(Z>1||Z==1&&P>20)for(var G=1;G<c;G++)s.IQ.aih(a,G*(P/c),P,(G&1)==1?.8:.7,e);
return{bj:a,step:Z}};s.IQ.aih=function(h,e,$,Z,c){var e=Math.round(e);for(var q=Math.round(s.IQ.uE*Z);
q<s.IQ.uE-1;q++)s.IQ.$C(h,4*(q*$+e),c)};s.IQ.$C=function(h,e,$){h[e+0]=$>>16&255;h[e+1]=$>>8&255;h[e+2]=$&255};
s.IQ.af4=function(h,e,$,Z,c){var q=h.qM.d,E=h.qM.v,P=s.IQ.uE,a=e&255,j=e>>8&255,L=e>>16&255,i,Q,m,n;
e=Math.round(a*.6)<<16|Math.round(j*.6)<<8|Math.round(L*.6);s.IQ.anM(Math.round(a*.8)<<16|Math.round(j*.8)<<8|Math.round(L*.8),$);
var H=this.abj(h.S,e,$),_=h.QX(0,0),J=h.QX(q,E),S=Math.floor(_.x/H.step)*H.step,N=Math.ceil(J.x/H.step)*H.step,Y=Math.floor(_.y/H.step)*H.step,U=Math.ceil(J.y/H.step)*H.step,g=h.ab(S,Y),M=h.ab(N,Y),C=H.step*h.S,y=Math.ceil(C);
i=h.h4.data;Q=new O(0,0,q,P);m=new O(0,0,y,P);n=new O(0,Math.round(P*.08),s.IQ.Zm,s.IQ.Zm);for(var G=0;
G<(N-S)/H.step;G++){m.x=Math.round(g.x+G*C);s.hX(H.bj,m,i,Q,m);var u=(S+G*H.step).toString(10);for(var K=0;
K<u.length;K++){n.x=m.x+3+K*Math.round(s.IQ.Zm*.8);var F=s.IQ.Ll[u[K]];s.hX(F,n,i,Q,n)}}var b=new Uint32Array(H.bj.buffer),d=new Uint32Array(H.bj.length);
for(var W=0;W<y;W++)for(var A=0;A<P;A++){d[W*P+A]=b[A*y+W]}H.bj=new Uint8Array(d.buffer);i=h.Xw.data;
Q=new O(0,0,P,E);m=new O(0,0,P,y);n=new O(Math.round(P*.2),0,s.IQ.Zm,s.IQ.Zm);for(var G=0;G<(U-Y)/H.step;
G++){m.y=Math.round(g.y+G*C);s.hX(H.bj,m,i,Q,m);var u=Math.abs(Y+G*H.step).toString(10);for(var K=0;
K<u.length;K++){n.y=m.y+3+K*Math.round(s.IQ.Zm*1.15);var F=s.IQ.Ll[u[K]];s.hX(F,n,i,Q,n)}}var z=Math.floor(P*.6),T=new Uint32Array(h.h4.data.buffer),R=new Uint32Array(h.Xw.data.buffer),I=a<128?4278190080:4294967295;
if(0<Z&&Z<q)for(var G=0;G<z;G++)T[G*q+Z]=I;if(0<c&&c<E)for(var G=0;G<z;G++)R[c*P+G]=I};s.scale={};s.scale.p$=document.createElement("canvas");
s.scale.s0=s.scale.p$.getContext("2d");s.scale.abA=document.createElement("canvas");s.scale.a2S=s.scale.abA.getContext("2d");
s.scale.lm=function(h,e,$){var Z=s.scale.p$,c=s.scale.s0;Z.width=e;Z.height=$;var q=new ImageData(new Uint8ClampedArray(h.buffer),e,$);
c.putImageData(q,0,0);return c.createPattern(Z,"repeat")};s.scale.a2z=function(h,e,$,Z,c,q,E,P){var a=s.scale.Zx(h,$,Z,c,q,E,P);
s.DC(a.data,e)};s.scale.a2q=function(h,e,$,Z,c,q,E,P){var a=s.scale.Zx(h,$,Z,c,q,E,P);s.i7(a.data,e)};
s.scale.Zx=function(h,e,$,Z,c,q,E){var P=s.scale.p$,a=s.scale.s0;P.width=e;P.height=$;a.rect(0,0,e,$);
a.translate(q,E);a.scale(Z,c);a.fillStyle=h;a.fill();return a.getImageData(0,0,e,$)};s.scale.J=function(h,e,$,Z,c){var q=$.clone();
q.vy();var E=c.d,P=c.v,a=s.a.Kf(e).H;s.a.J(a,q,a);var j=s.a.pl(a).jx(c),L=j.x,H=j.y,_=L+j.d,J=H+j.v,S=~~e.x,N=~~e.y,Y=~~e.d,U=~~e.v;
for(var g=H;g<J;g++)for(var M=L;M<_;M++){var C=M+.5,y=g+.5,i=$.R*C+$.Ma*y+$.zq-S,Q=$.O*C+$.rU*y+$.nL-N;
if(0<=i&&0<=Q&&i<Y&&Q<U)Z[g*E+M]=h[~~Q*Y+~~i]}};s.scale.a3r=function(h,e,$,Z,c){var q=new Uint32Array(h.buffer),E=new Uint32Array(Z.buffer),P=$.clone();
P.vy();var a=c.d,j=c.v,L=s.a.Kf(e).H;s.a.J(L,P,L);var H=s.a.pl(L).jx(c),_=H.x,J=H.y,S=_+H.d,N=J+H.v,Y=~~e.x,U=~~e.y,g=~~e.d,M=~~e.v;
for(var C=J;C<N;C++)for(var y=_;y<S;y++){var i=y+.5,Q=C+.5,m=$.R*i+$.Ma*Q+$.zq-Y,n=$.O*i+$.rU*Q+$.nL-U;
if(0<=m&&0<=n&&m<g&&n<M)E[C*a+y]=q[~~n*g+~~m]}};s.scale.rK=function(h,e,$,Z,c,q,E){if(E<1)s.scale.aaq(h,e,$,Z,c,q,Math.round(1/E));
else s.scale.a3o(h,e,$,Z,c,q,E)};s.scale.hF=function(h,e,$,Z,c,q,E,P){if(P)P=P.jx(new O(0,0,e,$));h=new Uint32Array(h.buffer);
Z=new Uint32Array(Z.buffer);if(E<1)s.scale.adG(h,e,$,Z,c,q,Math.round(1/E),P);else s.scale.an9(h,e,$,Z,c,q,E)};
s.scale.a3o=function(h,e,$,Z,c,q,E){for(var P=0;P<$;P++)for(var a=0;a<e;a++){var j=h[P*e+a],L=Math.min(E,c-a*E),H=Math.min(E,q-P*E);
for(var G=0;G<H;G++)for(var _=0;_<L;_++)Z[(E*P+G)*c+E*a+_]=j}};s.scale.aaq=function(h,e,$,Z,c,q,E){for(var P=0;
P<q;P++)for(var a=0;a<c;a++){var j=0,L=Math.min(E,e-a*E),H=Math.min(E,$-P*E);for(var G=0;G<H;G++)for(var _=0;
_<L;_++)j+=h[(E*P+G)*e+(E*a+_)];Z[P*c+a]=Math.round(j/(L*H))}};s.scale.an9=function(h,e,$,Z,c,q,E){for(var P=0;
P<$;P++)for(var a=0;a<e;a++){var j=h[P*e+a],L=Math.min(E,c-a*E),H=Math.min(E,q-P*E);for(var G=0;G<H;
G++)for(var _=0;_<L;_++)Z[(E*P+G)*c+E*a+_]=j}};s.scale.adG=function(h,e,$,Z,c,q,E,P){var a=0,j=c,L=0,H=q;
if(P){a=Math.floor(P.x/E);j=Math.ceil((P.x+P.d)/E);L=Math.floor(P.y/E);H=Math.ceil((P.y+P.v)/E)}for(var _=L;
_<H;_++)for(var J=a;J<j;J++){var S=0,N=0,Y=0,U=0,g=Math.min(E,e-J*E),M=Math.min(E,$-_*E);for(var G=0;
G<M;G++)for(var C=0;C<g;C++){var y=h[(E*_+G)*e+E*J+C],i=y>>>24;S+=i;N+=i*(y>>>16&255);Y+=i*(y>>>8&255);
U+=i*(y&255)}if(S!=0){var Q=1/S;Z[_*c+J]=S/(g*M)<<24|N*Q<<16|Y*Q<<8|U*Q}else Z[_*c+J]=0}};s.N={};s.N.an_=function(h,e,$){var Z=128,G=0,c=$.d,q=$.v;
for(var E=0;E<q;E++)for(var P=0;P<c;P++){if(h[G]>=Z&&(P==0||h[G-1]<Z||(P==c-1||h[G+1]<Z)||(E==0||h[G-c]<Z)||(E==q-1||h[G+c]<Z)))e[G]=255;
G++}};s.N.abO=function(h,e,$,Z){var c=new Uint32Array([4278190080,4294967295]),q=$.d,E=$.v,P=0,a=0,j=q,L=E;
if(Z){P=Z.x-$.x;a=Z.y-$.y;j=P+Z.d;L=a+Z.v}var H=new Uint8Array(e.buffer),_=new Uint32Array(e.buffer);
for(var J=a;J<L;J++)for(var S=P;S<j;S++){var G=J*q+S;if((h[G]&128)!=0&&(J==0||(h[G-q]&128)==0||S==0||(h[G-1]&128)==0||S==q-1||(h[G+1]&128)==0||J==E-1||(h[G+q]&128)==0)){_[G]=c[(S+J&4)>>>2]}}};
s.N.a2V=function(h,e,$,Z,c,q){var E=$.d,P=$.v,a=0,j=0,L=E,H=P;if(Z){a=Z.x-$.x;j=Z.y-$.y;L=a+Z.d;H=j+Z.v}var _=new Uint8Array(e.buffer),J=new Uint32Array(e.buffer);
for(var S=j;S<H;S++)for(var N=a;N<L;N++){var G=S*E+N,Y=h[G];if(c==1)J[G]=255-Y>>>1<<24|255;else J[G]=255<<24|(Y<<16|Y<<8|Y)}};
s.gV={};s.gV.yg=function(h,e,$){var Z,c;if($=="front"){Z=h.rect.clone();c=s.gV.a7O}if($=="union"){Z=h.rect.iJ(e.rect);
c=s.gV.iJ}if($=="difference"){Z=e.rect.clone();c=s.gV.afg}if($=="intersection"){Z=h.rect.jx(e.rect);
c=s.gV.jx}if($=="xor"){Z=h.rect.iJ(e.rect);c=s.gV.anr}if(Z.nK())return null;var q=s.m(Z.X());s.T7(e.channel,e.rect,q,Z);
var E=s.m(Z.X());s.T7(h.channel,h.rect,E,Z);c(E,q,q);var P=s.Hd(q,Z);if(P.nK())return null;if(!P.dz(Z)){var a=s.m(P.X());
s.T7(q,Z,a,P);q=a;Z=P}return{channel:q,rect:Z}};s.gV.a7O=function(h,e,$){for(var G=0;G<h.length;G++)$[G]=h[G]};
s.gV.iJ=function(h,e,$){for(var G=0;G<h.length;G++)$[G]=Math.min(h[G]+e[G],255)};s.gV.afg=function(h,e,$){for(var G=0;
G<h.length;G++)$[G]=Math.max(e[G]-h[G],0)};s.gV.jx=function(h,e,$){var Z=1/255;for(var G=0;G<h.length;
G++)$[G]=h[G]*e[G]*Z};s.gV.anr=function(h,e,$){var Z=1/255;for(var G=0;G<h.length;G++)$[G]=Math.min(h[G]+e[G],255)-h[G]*e[G]*Z};
s.l_=function(h,e){this.U=[];this.rc=[0];this.Wp=[];this.OH=[];this.W4=[0];this.iv=[];this._v=[];this.rows=h;
this.cols=e};s.l_.prototype.clone=function(){var h=this,e=h.rows,$=h.cols,Z=new s.l_(e,$);Z.U=h.U.slice(0);
Z.rc=h.rc.slice(0);Z.Wp=h.Wp.slice(0);Z.OH=h.OH.slice(0);Z.W4=h.W4.slice(0);Z.iv=h.iv.slice(0);Z._v=h._v.slice(0);
return Z};s.l_.prototype.yH=function(h,e,$){var Z=this.rc.length-1;for(var G=0;G<$;G++){var c=h[G],q=e[G];
this.U.push(c);this.Wp.push(q);if(q==Z){this._v.push(c==0?0:1/c)}else{this.OH.push(c);this.iv.push(q)}}this.rc.push(this.U.length);
this.W4.push(this.OH.length)};s.l_.prototype.P3=function(h,e){var $=this,Z=$.rows,c=$.U,q=$.Wp;if(e==null)e=new Array(Z);
for(var G=0;G<Z;G++){var E=$.rc[G],P=$.rc[G+1],a=0;while((P-E&3)!=0){a+=c[E]*h[q[E]];E++}for(var j=E;
j<P;j+=4)a+=c[j]*h[q[j]]+c[j+1]*h[q[j+1]]+c[j+2]*h[q[j+2]]+c[j+3]*h[q[j+3]];e[G]=a}return e};s.l_.prototype.multiply=function(h){return this.Zr(h.JR())};
s.l_.prototype.Zr=function(h){var e=this,$=e.rows,Z=e.cols,c=h.rows,q=new s.l_($,c),E=e.Wp,P=h.Wp;for(var G=0;
G<$;G++){var a=[],j=[],L=e.rc[G],H=e.rc[G+1];for(var _=0;_<c;_++){var J=h.rc[_],S=h.rc[_+1],N=0,Y=L,U=J;
while(Y<H&&U<S){var g=Math.max(E[Y],P[U]);while(Y<H&&E[Y]<g)Y++;while(U<S&&P[U]<g)U++;if(Y<H&&U<S&&E[Y]==P[U])N+=e.U[Y++]*h.U[U++]}if(N!=0){a.push(N);
j.push(_)}}q.yH(a,j,a.length)}return q};s.l_.prototype.JR=function(){var h=this.rows,e=this.cols,$=[];
for(var G=0;G<e;G++)$.push([[],[]]);var Z=this.U,c=this.rc,q=this.Wp;for(var G=0;G<h;G++){var E=c[G],P=c[G+1];
for(var a=E;a<P;a++){var j=$[q[a]];j[0].push(Z[a]);j[1].push(G)}}var L=new s.l_(e,h);for(var G=0;G<e;
G++)L.yH($[G][0],$[G][1],$[G][1].length);return L};s.l_.prototype.Bh=function(){var h=this.rows,e=this.cols,$=new Array(h),Z=this.U,c=this.rc,q=this.Wp;
for(var G=0;G<h;G++){var E=$[G]=new Array(e);for(var P=0;P<e;P++)E[P]=0;var a=c[G],j=c[G+1];for(var L=a;
L<j;L++)E[q[L]]=Z[L]}return $};s.l_.prototype.ND=function(h,e,$,Z,c){function q(Q,e,m,n){var u=Q.length;
for(var G=0;G<u;G++)n[G]=Q[G]-e[G]*m}function E(Q,e,m,n){var u=Q.length,K=0;while((u-K&3)!=0){n[K]=Q[K]+e[K]*m;
K++}for(var G=K;G<u;G+=4){n[G]=Q[G]+e[G]*m;n[G+1]=Q[G+1]+e[G+1]*m;n[G+2]=Q[G+2]+e[G+2]*m;n[G+3]=Q[G+3]+e[G+3]*m}}function P(Q,e,m){var n=Q.length;
for(var G=0;G<n;G++)m[G]=Q[G]*e[G]}function a(Q,e){var m=Q.length,n=0,u=0;while((m-n&3)!=0){u+=Q[n]*e[n];
n++}for(var G=n;G<m;G+=4)u+=Q[G]*e[G]+Q[G+1]*e[G+1]+Q[G+2]*e[G+2]+Q[G+3]*e[G+3];return u}var j=Z!=null?2:1,L=Date.now(),H=0,_=this,J=h.slice(0),S=h.slice(0);
_.P3(h,S);q(e,S,1,J);var N=this._v;if(j==0){N=J.slice(0);N.fill(1)}var Y=J.slice(0);P(N,J,Y);var U=Y.slice(0),g=a(J,Y);
while(!0){_.P3(U,S);var M=g/a(U,S);E(h,U,M,h);q(J,S,M,J);if((H&7)==0&&Math.sqrt(a(J,J))<$)break;if(j<=1)P(N,J,Y);
else{var C=J.slice(0);Z.agt(C,J);c.amF(Y,C)}var y=a(J,Y),i=y/g;E(Y,U,i,U);g=y;H++}};s.l_.prototype.a1f=function(h,e,$,Z){var c=Date.now(),q=1.96,P=0;
if($==null)$=5e-6;if(Z==null)Z=1e9;var E=1-q,t=this.rows,a=this.OH,j=this.W4,L=this.iv,H=this._v;while(!0){var _=0;
for(var G=0;G<t;G++){var J=e[G],S=j[G],N=j[G+1];if(N-S==4)J-=a[S]*h[L[S]]+a[S+1]*h[L[S+1]]+a[S+2]*h[L[S+2]]+a[S+3]*h[L[S+3]];
else for(var Y=S;Y<N;Y++)J-=a[Y]*h[L[Y]];var U=h[G]*E+H[G]*J*q,g=U-h[G];_+=g*g;h[G]=U}if(_/t<$||Date.now()>c+Z)break}};
s.l_.prototype.a1n=function(h,e,$,Z){var c=Date.now(),q=1.96,P=0;if($==null)$=5e-5;if(Z==null)Z=1e9;
var E=1-q,t=this.rows,a=this.OH,j=this.W4,L=this.iv,H=this._v;while(!0){var _=0;for(var G=0;G<t;G++){var J=G*3,S=e[J],N=e[J+1],Y=e[J+2],U=j[G],g=j[G+1];
for(var M=U;M<g;M++){var C=a[M],y=L[M]*3;S-=C*h[y+0];N-=C*h[y+1];Y-=C*h[y+2]}var i=H[G]*q,Q=h[J+0]*E+S*i,m=h[J+1]*E+N*i,n=h[J+2]*E+Y*i,u=Q-h[J+0],F=m-h[J+1],b=n-h[J+2];
_+=.4*u*u+.5*F*F+.1*b*b;h[J+0]=Q;h[J+1]=m;h[J+2]=n}if(_/t<$||Date.now()>c+Z)break}};s.$e={};s.$e.cc=function(h,e,$){return{t:"Objc",v:{classID:"CrPt",Hrzn:{t:"doub",v:h},Vrtc:{t:"doub",v:e},Cnty:{t:"bool",v:$}}}};
s.$e.J=function(h,e){for(var G=0;G<h.length;G++){var $=h[G].v,Z=e.tf(new eu($.Hrzn.v,$.Vrtc.v));$.Hrzn.v=Math.round(Z.x);
$.Vrtc.v=Math.round(Z.y)}};s.$e.k0=function(h,e,$){var t=h.length-1,Z=s.FC.yU(t+1,t+2);for(var G=1;G<t;
G++){Z[G][G-1]=1/(h[G]-h[G-1]);Z[G][G]=2*(1/(h[G]-h[G-1])+1/(h[G+1]-h[G]));Z[G][G+1]=1/(h[G+1]-h[G]);
Z[G][t+1]=3*((e[G]-e[G-1])/((h[G]-h[G-1])*(h[G]-h[G-1]))+(e[G+1]-e[G])/((h[G+1]-h[G])*(h[G+1]-h[G])))}Z[0][0]=2/(h[1]-h[0]);
Z[0][1]=1/(h[1]-h[0]);Z[0][t+1]=3*(e[1]-e[0])/((h[1]-h[0])*(h[1]-h[0]));Z[t][t-1]=1/(h[t]-h[t-1]);Z[t][t]=2/(h[t]-h[t-1]);
Z[t][t+1]=3*(e[t]-e[t-1])/((h[t]-h[t-1])*(h[t]-h[t-1]));s.FC.lJ(Z,$)};s.$e.an5=function(h,e,$,Z){if(h<=e[0])return $[0];
if(h>=e[e.length-1])return $[e.length-1];var G=1;while(e[G]<h)G++;var c=e[G],q=e[G-1],E=$[G],P=$[G-1],a=(h-q)/(c-q),j=Z[G-1]*(c-q)-(E-P),L=-Z[G]*(c-q)+(E-P),H=(1-a)*P+a*E+a*(1-a)*(j*(1-a)+L*a);
return H};s.$e.wa=function(h,e,$,Z){var c={UJ:[h[0]],P4:[e[0]],$B:[]};Z[0]=c;for(var G=1;G<h.length-1;
G++){c.UJ.push(h[G]);c.P4.push(e[G]);if($[G]==!1){s.$e.k0(c.UJ,c.P4,c.$B);c={UJ:[h[G]],P4:[e[G]],$B:[]}}Z[G]=c}c.UJ.push(h[G]);
c.P4.push(e[G]);s.$e.k0(c.UJ,c.P4,c.$B);Z[G]=c};s.$e.OR=function(h,e,$,Z){if(h<=e[0])return $[0];if(h>=e[e.length-1])return $[e.length-1];
var G=1;while(e[G]<h)G++;var c=Z[G-1];return s.$e.an5(h,c.UJ,c.P4,c.$B)};s.$e.CZ=function(h){var e={UJ:[],P4:[],A$:[]};
for(var G=0;G<h.length;G++){e.UJ[G]=h[G].v.Hrzn.v;e.P4[G]=h[G].v.Vrtc.v;e.A$[G]=h[G].v.Cnty?h[G].v.Cnty.v:!0}return e};
s.$e.HL=function(h,t,e){var $=0,Z=255;if(e){$=-1e9;Z=1e9}var c=s.$e.CZ(h),q=[];s.$e.wa(c.UJ,c.P4,c.A$,q);
var E=[];for(var G=0;G<t;G++)E[G]=1/255*Math.max($,Math.min(Z,s.$e.OR(G*(255/(t-1)),c.UJ,c.P4,q)));return E};
s.$e.ajX=function(h,t,e){var $=Math.round(h.length/20),Z=t-h.length,c=e?(h[$]-h[0])/$:0,q=e?h[0]-Z*c:h[h.length-1],E=[];
for(var G=0;G<Z;G++)E.push(q+G*c);return e?E.concat(h):h.concat(E)};s.$e.s_=function(h,t,e){var $=s.$e.CZ(h),Z=[];
s.$e.wa($.UJ,$.P4,$.A$,Z);var c=new Uint8Array(t),q=t/256;for(var G=0;G<t;G++)c[G]=Math.max(0,Math.min(t-1,s.$e.OR(G*q,$.UJ,$.P4,Z)));
if(e){c[0]=0;if(c[1]>100)c[1]=.4*c[1];if(c[2]>150)c[1]=.7*c[2]}return c};s.$e.bl=function(h,e){var $=new Uint8Array(h.length);
for(var G=0;G<h.length;G++)$[G]=e[h[G]];return $};s.$e.TD=function(h,e,$){var Z=D.w("canvas","");Z.width=e;
Z.height=$;var c=Z.getContext("2d"),q=s.$e.s_(h,256);c.scale(e/255,$/255);c.fillStyle="#fff";c.fillRect(0,0,255,255);
c.fillStyle="#333";c.beginPath();c.moveTo(0,255);for(var G=0;G<q.length;G++)c.lineTo(G,255-q[G]);c.lineTo(255,255);
c.closePath();c.fill();return Z.toDataURL()};s.style={};s.style.stroke=function(h,e,$,Z){var c=$.d,q=$.v,E=new Float64Array(c*q);
s.style.S7(h,E,c,q);s.style.bB(e,$,E,$,Z)};s.style.bB=function(h,e,$,Z,c){var q=e.jx(Z),E=q.d,P=q.v;
c+=.5;var a=q.x-e.x,j=q.y-e.y,L=e.d,H=q.x-Z.x,_=q.y-Z.y,J=Z.d;for(var S=0;S<P;S++){var N=(S+_)*J+H,Y=(S+j)*L+a;
for(var U=0;U<E;U++){var g=Math.max(0,Math.min(1,c-$[N+U]));h[Y+U]=Math.round(g*255)}}};s.style.a8p=function(h,e,$,Z){for(var c=0;
c<$;c++)for(var q=0;q<e;q++){var E=c*e+q,P=0,a=0,j=h[E];if(q==0||c==0){P=h[E+1]-j;a=h[E+e]-j}else if(q==$-1||c==e-1){P=j-h[E-1];
a=j-h[E-e]}else{P=h[E+1]-h[E-1];a=h[E+e]-h[E-e]}if(P!=0||a!=0){var L=1/Math.sqrt(P*P+a*a);P*=L;a*=L}Z[E+E]=P;
Z[E+E+1]=a}};s.style.S7=function(h,e,$,Z){var c=0,q=$*Z;for(var G=0;G<q;G++)c|=h[G];if(c==0){e.fill(1e9);
return}var E=s.style.IC(h,$,Z);for(var P=0;P<Z;P++)for(var a=0;a<$;a++){var G=P*$+a,j=E[G*2],L=E[G*2+1],H=(P+L)*$+a+j;
if(j==0&&L==0){e[G]=0;continue}var _=Math.sqrt(j*j+L*L),J=h[H]*(1/255),S=1/_,N=Math.abs(j)*S,Y=Math.abs(L)*S;
if(Y>N){var U=Y;Y=N;N=U}e[G]=_+s.style.a3q(N,Y,J)}};s.style.a3q=function(h,e,$){return(.5-$)*h};s.style.IC=function(h,e,$,Z){if(Z==null){Z=!0;
for(var G=0;G<h.length;G++)Z=Z&&(h[G]==0||h[G]==255)}var c=new Int16Array(e*$*2);if(Z)s.style.a45(h,c,e,$);
else s.style.agD(h,c,e,$);return c};s.style.agD=function(h,e,$,Z){var c=$*Z;for(var G=0;G<c;G++)if(h[G]==0){e[G*2]=16383;
e[G*2+1]=16383}for(var q=1;q<=Z-1;q++){var G=q*$;for(var E=0;E<=$-1;E++)s.style.qu(e,h,$,G+E<<1,-1);
for(var E=1;E<=$-1;E++)s.style.Ox(e,h,$,G+E<<1,-1);for(var E=$-2;E>=0;E--)s.style.Ox(e,h,$,G+E<<1,1)}for(var q=Z-2;
q>=0;q--){var G=q*$;for(var E=0;E<=$-1;E++)s.style.qu(e,h,$,G+E<<1,1);for(var E=1;E<=$-1;E++)s.style.Ox(e,h,$,G+E<<1,-1);
for(var E=$-2;E>=0;E--)s.style.Ox(e,h,$,G+E<<1,1)}};s.style.Ox=function(h,e,$,Z,c){var q=(Z>>>1)+c<<1,E=h[Z],P=h[Z+1],a=h[q]+c,j=h[q+1],L=a*a+j*j,H=E*E+P*P;
if(j!=16383&&(E==16383||Math.sqrt(L)+(.5-e[(Z>>>1)+j*$+a]*(1/255))<Math.sqrt(H)+(.5-e[(Z>>>1)+P*$+E]*(1/255)))){h[Z]=a;
h[Z+1]=j}};s.style.qu=function(h,e,$,Z,c){var q=(Z>>>1)+c*$<<1,E=h[Z],P=h[Z+1],a=h[q],j=h[q+1]+c,L=a*a+j*j,H=E*E+P*P;
if(a!=16383&&(E==16383||Math.sqrt(L)+(.5-e[(Z>>>1)+j*$+a]*(1/255))<Math.sqrt(H)+(.5-e[(Z>>>1)+P*$+E]*(1/255)))){h[Z]=a;
h[Z+1]=j}};s.style.a45=function(h,e,$,Z){var c=$*Z;for(var G=0;G<c;G++)if(h[G]==0){e[G*2]=16383;e[G*2+1]=16383}for(var q=1;
q<=Z-1;q++){var G=q*$;for(var E=0;E<=$-1;E++)s.style.Y5(e,h,$,G+E<<1,-1);for(var E=1;E<=$-1;E++)s.style.NV(e,h,$,G+E<<1,-1);
for(var E=$-2;E>=0;E--)s.style.NV(e,h,$,G+E<<1,1)}for(var q=Z-2;q>=0;q--){var G=q*$;for(var E=0;E<=$-1;
E++)s.style.Y5(e,h,$,G+E<<1,1);for(var E=1;E<=$-1;E++)s.style.NV(e,h,$,G+E<<1,-1);for(var E=$-2;E>=0;
E--)s.style.NV(e,h,$,G+E<<1,1)}};s.style.NV=function(h,e,$,Z,c){var q=(Z>>>1)+c<<1,E=h[Z],P=h[Z+1],a=h[q]+c,j=h[q+1],L=a*a+j*j,H=E*E+P*P;
if(j!=16383&&(E==16383||L<H)){h[Z]=a;h[Z+1]=j}};s.style.Y5=function(h,e,$,Z,c){var q=(Z>>>1)+c*$<<1,E=h[Z],P=h[Z+1],a=h[q],j=h[q+1]+c,L=a*a+j*j,H=E*E+P*P;
if(a!=16383&&(E==16383||L<H)){h[Z]=a;h[Z+1]=j}};s.style.amb=function(h,e,$,Z,c){var q=$*Z,E=($+Z+1)*1.01;
for(var G=0;G<q;G++)if(h[G]<=c)e[G]=E;for(var P=1;P<$;P++)e[P]=Math.min(e[P],e[P-1]);for(var a=1;a<Z;
a++){var G=a*$;e[G]=Math.min(e[G],Math.min(e[G-$]+1,e[G-$+1]+Math.SQRT2));for(var P=1;P<$-1;P++){var j=e[++G],L=Math.min(e[G-1]+1,Math.min(e[G-$-1]+Math.SQRT2,Math.min(e[G-$]+1,e[G-$+1]+Math.SQRT2)));
if(L<j)e[G]=L}G++;e[G]=Math.min(e[G],Math.min(e[G-1]+1,Math.min(e[G-$-1]+Math.SQRT2,e[G-$]+1)))}for(var P=$-2;
P>=0;P--)e[P+q-$]=Math.min(e[P+q-$],e[P+q-$+1]);for(var a=Z-2;a>=0;a--){var G=a*$+$-1;e[G]=Math.min(e[G],Math.min(e[G+$]+1,e[G+$-1]+Math.SQRT2));
for(var P=$-2;P>=1;P--){var j=e[--G],L=Math.min(e[G+1]+1,Math.min(e[G+$-1]+Math.SQRT2,Math.min(e[G+$]+1,e[G+$+1]+Math.SQRT2)));
if(L<j)e[G]=L}G--;e[G]=Math.min(e[G],Math.min(e[G+1]+1,Math.min(e[G+$]+1,e[G+$+1]+Math.SQRT2)))}};s.style.a12=function(h,e,$,Z,c){var q=new Int32Array($*Z);
s.style.a7f(h,q,$,Z,c);s.style.aav(q,e,$,Z)};s.style.a7f=function(h,e,$,Z,c){var q=new Int32Array(Z);
for(var E=0;E<$;E++){var P=$+Z;for(var a=Z-1;a>=0;a--){if(h[a*$+E]>c)P=0;else P++;q[a]=P}P=$+Z;for(var a=0;
a<Z;a++){if(h[a*$+E]>c)P=0;else P++;e[a*$+E]=P<q[a]?-P:q[a]}}};s.style.aav=function(h,e,$,Z){var c=($+Z)*($+Z),q=new Float64Array($),E=new Uint16Array($);
for(var P=0;P<Z;P++){var a=P*$,j=0;E[0]=0;q[0]=-c;q[1]=+c;for(var L=1;L<$;L++){var H=h[L+a]*h[L+a]+L*L,_=(H-(h[E[j]+a]*h[E[j]+a]+E[j]*E[j]))/(2*L-2*E[j]);
while(_<=q[j]){j--;_=(H-(h[E[j]+a]*h[E[j]+a]+E[j]*E[j]))/(2*L-2*E[j])}j++;E[j]=L;q[j]=_;q[j+1]=c}j=0;
for(var L=0;L<$;L++){while(q[j+1]<L)j++;var J=E[j]-L,S=h[E[j]+a],G=P*$+L<<1;e[G]=J;e[G+1]=S}}};s.style.ul=function(h,e,$){if($)for(var G=0;
G<h.length;G++){var Z=h[G];if(Z>0)h[G]=Math.max(0,Math.min(255,Z+e*2*(s.style.f$(G)-128)))}else for(var G=0;
G<h.length;G++){var Z=h[G];if(Z>0)h[G]=Math.max(0,Math.min(255,Z+Math.min(Z*3,e*2*(s.style.f$(G)-128))))}};
s.style.f$=function(h){h=h^61^h>>16;h=h+(h<<3);h=h^h>>4;h=h*668265261;h=h^h>>15;return h&255};s.kA={};
s.kA.Ps=function(h,e,$){var Z=h.canvas,c=D.M(),q=Math.floor;if(Z.width!=q(e*c)||Z.height!=q($*c))D.VR(Z,e,$,h)};
s.kA.AB=function(h,e,$,Z,c,q){s.kA.Ps(h,e,$);if(q==null)q=!1;var E=c.channel,P=c.rect,a=!c.isEnabled;
e=Math.floor(e*D.M());$=Math.floor($*D.M());if(e*$==0)return;var j=h.createImageData(e,$),L=j.data,H=1/e,_=1/$;
for(var G=0;G<$;G++)for(var J=0;J<e;J++){var S=G*e+J,N=S*4,Y=Math.round(Z.x+J*H*Z.d),U=Math.round(Z.y+G*_*Z.v),g=0;
if(Y<P.x||Y>=P.x+P.d||U<P.y||U>=P.y+P.v)g=c.color;else g=E[(U-P.y)*P.d+(Y-P.x)];g=255*(255-c.Ks)+g*c.Ks>>>8;
if(q)g=170+Math.round(.4*(g-170));L[N]=g;L[N+1]=g;L[N+2]=g;L[N+3]=255}h.putImageData(j,0,0);if(a)s.kA.Q3(h,e,$)};
s.kA.ZY=[];s.kA.amQ=function(h,e,$,Z){var c,q,E,P=D.M();e=Math.floor(P*e);$=Math.floor(P*$);c=Math.ceil(Math.max(e,$)*.35);
q=e-c;E=$-c;var a=s.kA.ZY[c];if(a==null){var j=D.w("canvas"),L=j.getContext("2d");j.width=j.height=c;
L.fillStyle="#eeeeee";L.fillRect(0,0,c,c);var H=Math.round(c*.27),_=L.lineWidth=Math.max(1,Math.round(c*.12)),J=_/2;
L.strokeRect(1+J,1+J,c-_-2,c-_-2);L.strokeRect(H+J,H+J,c-H-H-_,c-H-H-_);a=s.kA.ZY[c]=L.getImageData(0,0,c,c)}h.putImageData(a,q,E)};
s.kA.Zz=[];s.kA.adz=function(h,e,$){var Z,c,q,E=D.M();e=Math.floor(E*e);$=Math.floor(E*$);Z=Math.ceil(Math.max(e,$)*.35);
c=e-Z;q=$-Z;var P=s.kA.Zz[Z];if(P==null){var a=D.w("canvas"),j=a.getContext("2d");a.width=a.height=Z;
j.fillStyle="#eeeeee";j.fillRect(0,0,Z,Z);j.lineWidth=1;j.strokeRect(2.5,2.5,Z-5,Z-5);var L=j.createImageData(3,3);
s.Ut(L.data,4278190080);L.data[4*4]=L.data[4*4+1]=L.data[4*4+2]=238;j.putImageData(L,1,1);j.putImageData(L,Z-4,1);
j.putImageData(L,1,Z-4);j.putImageData(L,Z-4,Z-4);P=s.kA.Zz[Z]=j.getImageData(0,0,Z,Z)}h.putImageData(P,c,q)};
s.kA.a3S=function(h,e,$,Z,c){s.kA.Ps(h,e,$);e=Math.floor(e*D.M());$=Math.floor($*D.M());var q=e/Z.d;
if(e*$==0)return;h.fillStyle="#999999";h.setTransform(1,0,0,1,0,0);h.clearRect(0,0,e,$);var E=s.kA.kw;
if(E==null){E=s.kA.kw=JSON.parse(JSON.stringify(c3.oF.default));E.strokeEnabled.v=!0}E.strokeStyleLineWidth.v.val=1*D.M()/q;
h.fillStyle="#ffffff";h.scale(q,q);s.W.td(c.b,h,0,0);s.W.td(c.b,h,0,0,E)};s.kA.Du=null;s.kA.Pv=function(h,e,$,Z,c,q,E,P){s.kA.Ps(h,e,$);
e=Math.floor(e*D.M());$=Math.floor($*D.M());if(e*$==0)return;var a=Math.max(e,$),j=s.kA.Du;if(j==null||j.width<a||j.height<a){s.kA.Du=j=h.createImageData(a,a)}a=j.width;
var L=j.data,H=Z.d/e,_=Z.v/$,J=q.x,S=q.x+q.d,N=q.y,Y=q.y+q.v;for(var G=0;G<$;G++)for(var U=0;U<e;U++){var g=G*a+U,M=g*4,C=~~(Z.x+U*H),y=~~(Z.y+G*_),i=s.Ip(G,U,2);
if(C<J||C>=S||y<N||y>=Y){L[M]=i;L[M+1]=i;L[M+2]=i;L[M+3]=255}else{var Q=(y-q.y)*q.d+(C-q.x)<<2,m=c[Q+3]*(1/255);
L[M]=c[Q+0]*m+i*(1-m);L[M+1]=c[Q+1]*m+i*(1-m);L[M+2]=c[Q+2]*m+i*(1-m);L[M+3]=255}}if(P!=null)for(var G=0;
G<L.length;G+=4)L[G]=L[G+1]=L[G+2]=L[G+P];h.putImageData(j,0,0);if(E)s.kA.Q3(h,e,$)};s.kA.aiq=function(h,e,$,Z){s.kA.Ps(h,e,$);
h.fillStyle=s.kA.LX(Z.Clr.v);h.fillRect(0,0,e,$);s.kA.Xk(h,e,$)};s.kA.s6=null;s.kA.alo=function(h,e,$,Z){s.kA.Ps(h,e,$);
var c=h.canvas.width,q=h.canvas.height,E=s.kA.s6;if(E==null||E.width!=c||E.height!=q){h.fillStyle="#ffffff";
h.fillRect(0,0,e,$);h.fillStyle="#000000";h.font=""+$*.7+"px serif";h.fillText("T",(e-$*.43)/2,$*.75);
h.fillText("T",(e-$*.43)/2,$*.75);s.kA.s6=h.getImageData(0,0,c,q)}else h.putImageData(E,0,0)};s.kA.ae7=function(h,e,$){s.kA.Ps(h,e,$);
h.clearRect(0,0,e,$);h.font=$*.7+"px serif";h.fillText(":(",(e-$*.43)/2,$*.7)};s.kA.a9C=function(h,e,$,Z){s.kA.Ps(h,e,$);
var c=es.get(Z),q=e_.get(es.names[c]).substring(0,3);h.fillStyle="#ffffff";h.fillRect(0,0,e,$);h.fillStyle="#000000";
h.font=$*.55+"px sans-serif";var E=h.measureText(q);h.fillText(q,(e-E.width)/2,$*.67);h.fillRect(0,0,e,$*.1);
h.fillRect(0,$*.9,e,$*.1)};s.kA.aov=function(h,e,$,Z){s.kA.Ps(h,e,$);var c=h.canvas.width,q=h.canvas.height,E=h.getImageData(0,0,c,q);
s.Y.Ne(Z.Grad.v,new Uint8Array(E.data.buffer),new O(0,0,c,q),[1/c,0,0,1/q],c/2,q/2,!1,0,16711680,65280);
h.putImageData(E,0,0);s.kA.Xk(h,e,$)};s.kA.al3=function(h,e,$,Z,c){s.kA.Ps(h,e,$);var q=h,E=hn.lg(Z.Ptrn.v,c.add.Patt);
if(E==null)return;var P=E.Rv[1];s.kA.Pv(h,e,$,P,E.Rv[0],P,!1);s.kA.Xk(q,e,$)};s.kA.Q3=function(h,e,$){h.strokeStyle="#bb0000";
h.lineWidth=3;h.beginPath();h.moveTo(e*.15,$*.15);h.lineTo(e*.85,$*.85);h.moveTo(e*.85,$*.15);h.lineTo(e*.15,$*.85);
h.closePath();h.stroke()};s.kA.Q3=function(h,e,$){h.strokeStyle="#bb0000";h.lineWidth=3;h.beginPath();
h.moveTo(e*.15,$*.15);h.lineTo(e*.85,$*.85);h.moveTo(e*.85,$*.15);h.lineTo(e*.15,$*.85);h.closePath();
h.stroke()};s.kA.Xk=function(h,e,$){h.fillStyle="#eeeeee";h.fillRect(0,$*.75,e,$*.25);h.beginPath();
h.moveTo(0,$*.75);h.lineTo(e,$*.75);h.moveTo(e*.1,$*.875);h.lineTo(e*.9,$*.875);h.moveTo(e*.65,$*.825);
h.lineTo(e*.65,$*.95);h.closePath();h.stroke()};s.kA.LX=function(h){var e=s.Y.LX(h),$=Math.round(e.h)<<16|Math.round(e.l)<<8|Math.round(e.O);
return"#"+s.jT($)};s.W={};s.W.qs=function(h,e,$){var Z=[],c=-1;for(var G=0;G<h.length;G++){var q=h[G];
if((q.type==0||q.type==3)&&q.aN!=-1)c++;if(q.type>5||q.type==0||q.type==3)continue;if(e!=null&&e.indexOf(c)==-1)continue;
if($!=null&&$.indexOf(G)==-1)continue;Z.push(q.LD.x);Z.push(q.LD.y);Z.push(q.D.x);Z.push(q.D.y);Z.push(q.EH.x);
Z.push(q.EH.y)}return Z};s.W.ip=function(h,e,$,Z){var c=0,q=-1;for(var G=0;G<e.length;G++){var E=e[G];
if((E.type==0||E.type==3)&&E.aN!=-1)q++;if(E.type>5||E.type==0||E.type==3)continue;if($!=null&&$.indexOf(q)==-1)continue;
if(Z!=null&&Z.indexOf(G)==-1)continue;E.LD.su(h[c],h[c+1]);E.D.su(h[c+2],h[c+3]);E.EH.su(h[c+4],h[c+5]);
c+=6}};s.W.wD=function(h,e,$,Z){var c=s.W.qs(h,$,Z);s.a.J(c,e,c);s.W.ip(c,h,$,Z)};s.W.a6C=function(h,e,$,Z){var c=s.W.qs(h,$,Z);
s.I.apply(e,c);s.W.ip(c,h,$,Z)};s.W.aaW=function(h,e,$,Z){if($==null&&Z==null){var c=s.W.adl(h,40);for(var G=0;
G<c.length;G++)h[G]=c[G]}var q=s.W.qs(h,$,Z);s.nS.apply(e,q,s.a.Be(q));s.W.ip(q,h,$,Z)};s.W.adl=function(h,e){var $=[];
for(var G=0;G<h.length;G++){var Z=h[G];if(Z.type>5){$.push(JSON.parse(JSON.stringify(Z)));continue}var c=s.W.afP(h,G+1,Z.length);
c=s.a.zb(c,e);var q=s.W.a5x(c);G+=Z.length;Z=JSON.parse(JSON.stringify(Z));Z.length=q.length;$.push(Z);
for(var E=0;E<q.length;E++)$.push(q[E])}return $};s.W.afP=function(h,e,$){var Z={Z:["M"],H:[]},c=h[e],q=h[e+$-1];
Z.H.push(c.D.x,c.D.y);for(var G=1;G<$;G++){var E=h[e+G-1],P=h[e+G];Z.Z.push("C");Z.H.push(E.EH.x,E.EH.y,P.LD.x,P.LD.y,P.D.x,P.D.y)}Z.Z.push("C");
Z.H.push(q.EH.x,q.EH.y,c.LD.x,c.LD.y,c.D.x,c.D.y);return Z};s.W.a5x=function(h){var e=[],$=h.Z,Z=h.H,c=0,t=Z.length;
e.push({type:2,LD:new eu(Z[t-4],Z[t-3]),D:new eu(Z[0],Z[1]),EH:new eu(Z[2],Z[3])});for(var G=0;G<$.length-2;
G++){var q=G*6+4;e.push({type:2,LD:new eu(Z[q],Z[q+1]),D:new eu(Z[q+2],Z[q+3]),EH:new eu(Z[q+4],Z[q+5])})}return e};
s.W.acE=function(h){for(var G=0;G<h.length;G++){if(h[G].type>5)continue;var e=h[G].length;if(!(e==4||e==6||e==8)){G+=e;
continue}for(var $=0;$<e;$++){var Z=h[G+1+$],c=h[G+1+($+1)%e],q=Math.min(Z.D.x,c.D.x),E=Math.min(Z.D.y,c.D.y),P=0,a=0;
if(Z.D.x<c.D.x){P=Z.D.y-E;a=P-(c.D.x-q)}else{P=c.D.y-E;a=P-(Z.D.x-q)}if(Math.abs(a)<.2*P)return P}}return-1};
s.W.v4=function(h,e){var $=null,Z=-1,c=!s.W.tL(h);for(var G=0;G<h.length;G++){var q=h[G];if(q.type>5)continue;
if((q.type==0||q.type==3)&&q.aN!=-1)Z++;if(e!=null&&e.indexOf(Z)==-1)continue;if(G==h.length-1)break;
var E=q.type==3,P=q.length,a=q.aN,j=s.W.adL(h,G+1,P,E);if($==null)$=j;else if(c){if(e!=null||a==0||a==-1||a==2)$=$.iJ(j);
else if(a==1)$=$;else if(a==3){$=j;c=!1}}else{if(e!=null||a==0||a==-1||a==1)$=$.iJ(j);else if(a==2)$=$;
else if(a==3)$=$.jx(j)}G+=P}if($==null||$.d<0||$.v<0)$=new O(0,0,0,0);return $};s.W.a47=new Float64Array(4);
s.W.adL=function(h,G,e,$){var Z=s.W.a47;Z[0]=1e30;Z[1]=1e30;Z[2]=-1e30;Z[3]=-1e30;var c=h[G+e-1];if(!$)s.W.jK(c.D.x,c.D.y,c.EH.x,c.EH.y,h[G].LD.x,h[G].LD.y,h[G].D.x,h[G].D.y,Z);
for(var q=G;q<G+e-1;q++){var E=h[q],P=h[q+1];s.W.jK(E.D.x,E.D.y,E.EH.x,E.EH.y,P.LD.x,P.LD.y,P.D.x,P.D.y,Z)}return new O(Z[0],Z[1],Z[2]-Z[0],Z[3]-Z[1])};
s.W.jK=function(h,e,$,Z,c,q,E,P,a){if(h==$&&e==Z&&c==E&&q==P){a[0]=Math.min(a[0],Math.min(h,E));a[1]=Math.min(a[1],Math.min(e,P));
a[2]=Math.max(a[2],Math.max(h,E));a[3]=Math.max(a[3],Math.max(e,P));return}var j=h,L=e,H=h,_=e,J=40,S=1/(J-1);
for(var N=0;N<J;N++){var Y=N*S,U=1-Y,g=U*U*U,M=3*U*U*Y,C=3*U*Y*Y,y=Y*Y*Y,i=g*h+M*$+C*c+y*E,Q=g*e+M*Z+C*q+y*P;
if(i<j)j=i;else if(i>H)H=i;if(Q<L)L=Q;else if(Q>_)_=Q}if(j<a[0])a[0]=j;if(L<a[1])a[1]=L;if(H>a[2])a[2]=H;
if(_>a[3])a[3]=_};s.W.v3=function(h,e){var $=h.length-3,Z=e%$,c=Math.floor(Z);if(e<0||c>=$)return null;
var q=h[3+c],E=h[3+(c+1)%$],P=q.D,a=q.EH,j=E.LD,L=E.D,H=Z-c,_=1-H,J=_*_*_*P.x+3*_*_*H*a.x+3*_*H*H*j.x+H*H*H*L.x,S=_*_*_*P.y+3*_*_*H*a.y+3*_*H*H*j.y+H*H*H*L.y;
return new eu(J,S)};s.W.dG=function(h){var e=2,$=s.W.H4(h),Z=!1;for(var G=2;G<h.length;G++){var c=h[G].aN;
if(c!=null){if(c==2||c==0||c==3)Z=!0}}if(Z&&h.length<15e3&&$>1)h=s.W.BL(h);var q=s.a.$o(h);return{ahD:Typr.U.pathToSVG({crds:q.H,cmds:q.Z},e),lD:Z?1:0}};
s.W.BL=function(h){s.W.mU();var e,$=s.W.mK(h),Z=[];for(var G=0;G<$.length;G++){var c=$[G][0],q=$[G][1];
if(Math.abs(c.area)<1e-5)Z.push(c);else if(e==null)e=c;else{e=e[q](c);e.remove()}}if(e==null)e=new paper.CompoundPath(Z);
else{if(e.segments)e=new paper.CompoundPath(e);for(var G=0;G<Z.length;G++){e.addChild(Z[G])}}var E=h.slice(0,2);
E=E.concat(s.W.VD(e));if(E[2])E[2].aN=1;for(var G=3;G<E.length;G++)if(E[G].aN!=null)E[G].aN=-1;return E};
s.W.mU=function(){if(s.W.aea==null){var h=D.w("canvas");paper.setup(h);s.W.aea=!0}};s.W.a0E=function(h,e){s.W.mU();
var $=[],Z=s.W.mK(h),c=new paper.Path.Rectangle(new paper.Rectangle(e.x,e.y,e.d,e.v));c.remove();c.fillColor=new paper.Color(1,0,0);
for(var G=0;G<Z.length;G++){if(c.intersects(Z[G][0])||c.contains(Z[G][0].children[0].segments[0].point))$.push(G)}return $};
s.W.mI=function(h,e,$,Z){s.W.mU();var c=$?{curves:!0,tolerance:Z}:null,q=new paper.Point(e.x,e.y),E=s.W.mK(h);
for(var G=E.length-1;G>=0;G--){var P=E[G][0],a=P.hitTest(q,c);if(a!=null)return{NS:G,s3:$?a.location.index:null}}return{NS:-1}};
s.W.b6=function(h,e,$){var Z=[[],[],[]];for(var G=0;G<h.length;G++){var c=h[G];if(c.type>5||c.type==0||c.type==3)continue;
var q=$==null?!0:$.indexOf(G)!=-1;if(e.B4(c.D))Z[0].push(G);if(e.B4(c.LD)&&q)Z[1].push(G);if(e.B4(c.EH)&&q)Z[2].push(G)}return Z};
s.W.a0P=function(h,e,$){var Z=$.slice(0),c=[null,null],q=-1,P=null;for(var G=2;G<h.length;G++){if((h[G].type==0||h[G].type==3)&&h[G].aN!=-1)q++;
c[G]=$[q]}$=c;var E=h.slice(0,2);c=$.slice(0,2);for(var G=2;G<h.length;G++){if(h[G].type==0||h[G].type==3){P=h[G];
E.push(P);c.push($[G])}else{if(e.indexOf(G)==-1){E.push(h[G]);c.push($[G])}else{P.length--;s.as.Kp($,G)}}}for(var G=2;
G<E.length;G++){var a=E[G];if(a.type!=0&&a.type!=3)continue;if(a.length==0){if(E[G+1]&&E[G+1].aN==-1){E[G+1].aN=a.aN}c.splice(G,1);
E.splice(G,1);G--}}for(var G=0;G<Z.length;G++)if(c.indexOf(Z[G])==-1){Z.splice(G,1);G--}return E};s.W.a0F=function(h,e){var $=h.slice(0,2),Z=-1;
for(var G=2;G<h.length;G++){if((h[G].type==0||h[G].type==3)&&h[G].aN!=-1)Z++;if(e.indexOf(Z)==-1)$.push(h[G])}return $};
s.W.ad$=function(h,e){var $=h.slice(0,2),Z=-1;for(var G=2;G<h.length;G++){if((h[G].type==0||h[G].type==3)&&h[G].aN!=-1)Z++;
if(e.indexOf(Z)!=-1)$.push(h[G])}return $};s.W.a83=function(h){var e=0;for(var G=0;G<h.length;G++)if(h[G].type==0||h[G].type==3)e=G;
return h[e]};s.W.H4=function(h){var e=-1;for(var G=0;G<h.length;G++)if((h[G].type==0||h[G].type==3)&&h[G].aN!=-1)e++;
return e+1};s.W.jb=function(h,e,$){var Z=-1;for(var G=0;G<h.length;G++)if((h[G].type==0||h[G].type==3)&&($||h[G].aN!=-1)){Z++;
if(Z==e)return G}return-1};s.W.LC=function(h,e,$){var Z=-1;for(var G=0;G<h.length;G++)if((h[G].type==0||h[G].type==3)&&($||h[G].aN!=-1)){if(G>=e)return Z;
Z++}return Z};s.W.kv=function(h,e){var $=-1,Z=0;for(var G=0;G<h.length;G++){if((h[G].type==0||h[G].type==3)&&h[G].aN!=-1)$++;
if($==e)Z++}return Z};s.W.a0T=function(h){var e=180;for(var G=0;G<h.length;G++){if(h[G].type!=0&&h[G].type!=3)continue;
var $=h[G].length;if($<3)continue;for(var Z=0;Z<$;Z++){var c=h[G+1+(Z-1+$)%$],q=h[G+1+Z],E=h[G+1+(Z+1)%$],P=q.D,a=q.LD.dz(P)?c.EH:q.LD,j=q.EH.dz(P)?E.LD:q.EH;
if(P.dz(a)||P.dz(j))continue;var L=a.x-P.x,H=a.y-P.y,_=j.x-P.x,J=j.y-P.y,a=Math.atan2(a.y-P.y,a.x-P.x)*180/Math.PI,j=Math.atan2(j.y-P.y,j.x-P.x)*180/Math.PI,S=Math.abs(j-a)%360,N=S>180?360-S:S;
if(N<e)e=N}}return e*Math.PI/180};s.W.VD=function(h){var e=h.segments?[h]:h.children,$=[];for(var G=0;
G<e.length;G++){var Z=e[G],c=Z.segments,q=Z.closed?0:3,E=$.length,P=null;if(c.length<=1)continue;$.push({type:q,length:c.length,aN:0,pg:2});
for(var a=0;a<c.length;a++){var j=c[a],L=new eu(j.handleIn.x,j.handleIn.y),H=new eu(j.handleOut.x,j.handleOut.y),_=new eu(j.point.x,j.point.y),J={type:q+1,LD:_.add(L),D:_,EH:_.add(H)};
if(P==null)P=J;$.push(J);if(a+1==c.length&&eu.nj(P.D,J.D)<1e-5){$.pop();$[E].length--;P.LD=J.LD;if(q==3)for(var S=E;
S<$.length;S++)$[S].type-=3}}}return $};s.W.mK=function(h){s.W.mU();var e=[],$,Z=new paper.Color(1,0,0);
function c(J,P){J.remove();J.closed=!P;J.fillRule="evenodd"}for(var G=0;G<h.length;G++){if(h[G].type>5)continue;
var q=h[G].length,E;if(G==h.length-1)break;var P=h[G].type==3;if(G==2){if(!s.W.Sm(h))E="subtract";else E="unite"}else{if(h[G].aN==0)E="exclude";
if(h[G].aN==1)E="unite";if(h[G].aN==2)E="subtract";if(h[G].aN==3)E="intersect"}if(h[G].aN!=-1){$=new paper.CompoundPath;
e.push([$,E]);$.fillRule="evenodd";$.fillColor=Z}var a=[];for(var j=0;j<q;j++){var L=h[G+1+j],H=L.LD.MR(L.D),_=L.EH.MR(L.D);
a.push([[L.D.x,L.D.y],[H.x,H.y],[_.x,_.y]])}var J=new paper.Path(a);c(J,P);$.addChild(J);G+=q}return e};
s.W.jN=function(h){for(var G=0;G<h.length;G++){var e=h[G];if(e.D==null)continue;if(!e.D.dz(e.LD)||!e.D.dz(e.EH))return!1}return!0};
s.W.aiP=function(h){if(h.length<=5)return 0;var e=0,$=h.length-3-1;for(var G=0;G<$;G++){var Z=h[3+G],c=h[3+G+1];
if(Z.type==0||c.type==0)return 0;e+=(c.D.x-Z.D.x)*(Z.D.y+c.D.y)}e+=(h[3].D.x-h[3+$].D.x)*(h[3+$].D.y+h[3+1].D.y);
return-e*.5};s.W.tL=function(h){var e=h[2],$=!1;if(h.length==2)$=h[1].all==0;else if(h[1].all==1){if(e.aN==1||e.aN==3)$=!0;
else $=!1}else{if(e.aN==1||e.aN==3||e.aN==0)$=!0;else $=!1}return $};s.W.Sm=function(h){var e=s.W.tL(h);
for(var G=3;G<h.length;G++)if(h[G].aN==3)e=!0;return e};s.W.ani=0;s.W.zE=0;s.W.aaQ=0;s.W.acn=function(h,e,$,Z){if($.nK())return;
var c=$.X(),M=16384;s.W.ani+=c;if(c>s.W.zE){s.W.zE=c}var q=$.d,E=$.v;if(Z==null&&s.W.jN(h)){var P=!0;
for(var G=2;G<h.length;)if(h[G].length==2)G+=3;else{P=!1;break}if(P){return}if(s.W.hv(h)){e.fill(255);
var a=s.W.v4(h);if(a.X()!=c){var j=1-(a.x-$.x),L=1-(a.y-$.y),H=1-($.x+$.d-(a.x+a.d)),_=1-($.x+$.v-(a.x+a.v)),J=~~(j*255),S=~~(H*255),N=~~(L*255),Y=~~(_*255);
e.fill(N,0,q);e[0]=~~(j*L*255);e[q-1]=~~(H*L*255);for(var G=q;G<c;G+=q){e[G]=J;e[G+q-1]=S}e.fill(Y,(E-1)*q,E*q);
e[c-q]=~~(j*_*255);e[c-1]=~~(H*_*255)}return}}var U=s.BA,g=s.qM,C=Math.ceil(q/M),y=Math.ceil(E/M),i=Math.ceil(q/C),Q=Math.ceil(E/y),m=Date.now();
for(var n=0;n<y;n++)for(var u=0;u<C;u++){var K=u*i,F=n*Q,b=i,d=Q;U.width=b;U.height=d;if(!s.W.tL(h))g.fillRect(0,0,b,d);
s.W.td(h,g,-$.x-K,-$.y-F,Z);var W=new Uint8Array(g.getImageData(0,0,b,d).data.buffer);if(b==q&&d==E)s.z0(W,e,3);
else s.H_(W,new O(K,F,b,d),e,new O(0,0,q,E))}};s.W.td=function(h,e,$,Z,c){if(c!=null&&c.fillEnabled.v){var q=!1,E=!1,P=0;
for(var G=0;G<h.length;G++){var a=h[G].aN;if(a!=null)P++;if(a==-1)q=!0;if(a>0)E=!0}if(!q&&P<20)h=s.W.BL(h)}for(var G=0;
G<h.length;G++){if(h[G].type>5)continue;var j=h[G].length;if(j==0)continue;if(G==h.length-1)break;var L=h[G].type==3,a=h[G].aN;
if(a!=-1&&c==null){var H=["xor","source-over","destination-out","source-in"][a];e.globalCompositeOperation=H}if(h[G].aN!=-1){e.beginPath();
if(c){var _=c.strokeStyleLineWidth.v.val,J=c.strokeStyleLineAlignment.v.strokeStyleLineAlignment,S=c.strokeStyleLineCapType.v.strokeStyleLineCapType,N=c.strokeStyleLineJoinType.v.strokeStyleLineJoinType,Y=c.strokeStyleMiterLimit.v,U=[],g=c.strokeStyleLineDashSet.v;
for(var M=0;M<g.length;M++)U.push(g[M].v.val*_);e.setLineDash(U);e.lineCap=["butt","round","square"][c3.oF.kS.indexOf(S)];
e.lineJoin=["miter","round","bevel"][c3.oF.join.indexOf(N)];e.lineWidth=c3.oF.ws.indexOf(J)==1?_:_*=2;
e.miterLimit=Y}}s.W.amr(e,h,G+1,j,$,Z,L);if(L){}else e.closePath();if(h[G+1+j]==null||h[G+1+j].aN!=-1){if(c)e.stroke();
else e.fill("evenodd")}G+=j}};s.W.amr=function(h,e,G,$,Z,c,q){var E=e[G],P=null;h.moveTo(E.D.x+Z,E.D.y+c);
for(var a=G;a<G+$-1;a++){E=e[a];P=e[a+1];h.bezierCurveTo(E.EH.x+Z,E.EH.y+c,P.LD.x+Z,P.LD.y+c,P.D.x+Z,P.D.y+c)}if(!q){E=e[a];
P=e[G];h.bezierCurveTo(E.EH.x+Z,E.EH.y+c,P.LD.x+Z,P.LD.y+c,P.D.x+Z,P.D.y+c)}};s.W.PW=function(h,e,$){var Z=[],c=$?4:1,q=!1;
if(e!=null)for(var G=0;G<e.length;G++)if(e[G]!=0){q=!0;break}if(e!=null&&q){var E=s.a.amL(h,e),P=E.length/6;
for(var G=0;G<P;G++){var a=G*6,j=(G-1+P)%P*6,L=E[a],H=E[a+1],_=E[a+2],J=E[a+3],S=E[j+4],N=E[j+5];Z.push({type:c,LD:new eu(S,N),D:new eu(L,H),EH:new eu(_,J)})}}else{for(var G=0;
G<h.length;G+=2){var Y=new eu(h[G],h[G+1]);Z.push({type:c,LD:Y.clone(),D:Y.clone(),EH:Y.clone()})}}return Z};
s.W.SX=function(h,e){s.W.mU();var $=new paper.Path;$.remove();var Z=h.length-1,c=Math.sqrt((h[Z-1]-h[0])*(h[Z-1]-h[0])+(h[Z]-h[1])*(h[Z]-h[1]))<3;
$.closed=c;for(var G=0;G<h.length;G+=2)$.add(new paper.Point(h[G],h[G+1]));$.simplify(e);var q=[{type:6},{type:8,all:0}];
q=q.concat(s.W.VD($));return q};s.W.JN=function(h,e,$){var Z=h[e].length,c=h[e].type,q=0,E=h.slice(e+1,e+1+Z);
for(var G=0;G<Z;G++){var P=$[(G-1+Z)%Z],a=$[(G+1+Z)%Z],j=$[G];if(j!=0){var L=E[(G-1+Z)%Z].D,H=E[(G+0+Z)%Z].D,_=E[(G+1+Z)%Z].D,J=eu.nj(H,L),S=eu.nj(H,_),N=s.a.Y2(L.x,L.y,H.x,H.y,_.x,_.y,j)[0],Y=Math.min(N,P==0?J:J/2,a==0?S:S/2);
j*=Y/N;var U=s.a.Z_(L.x,L.y,H.x,H.y,_.x,_.y,j),g={type:c+1,LD:new eu(U[2],U[3]),D:new eu(U[2],U[3]),EH:new eu(U[4],U[5])},M={type:c+1,LD:new eu(U[6],U[7]),D:new eu(U[8],U[9]),EH:new eu(U[8],U[9])};
h.splice(e+q+1,1,g,M);q++;h[e].length++}q++}};s.W.jN=function(h){for(var G=0;G<h.length;G++){var e=h[G],$=e.type;
if($==1||$==2||$==4||$==5)if(!e.D.dz(e.LD)||!e.D.dz(e.EH))return!1}return!0};s.W.hv=function(h){if(h.length!=7||!s.W.jN(h))return!1;
for(var G=0;G<4;G++){var e=!0;for(var $=0;$<4;$++){var Z=h[3+(G+$&3)],c=h[3+(G+$+1&3)];if(Z.D.x!=c.D.x&&Z.D.y!=c.D.y)e=!1}if(e)return!0}return!1};
s.W.d5={};s.W.d5.k8=function(h,e,$){var Z=[{type:6},{type:8,all:0}],c=null;Z.push({type:$?3:0,aN:1,length:0,Bs:0,W7:0,pg:1});
if(e==0)c==null;else if(e instanceof Array)c=e;else{c=[];for(var G=0;G<h.length;G+=2)c.push(e)}Z=Z.concat(s.W.PW(h,c,$));
Z[2].length=Z.length-3;return Z};s.W.d5.anW=function(h,e,$,Z,c){var q=[],E=[],P=.553,a=1,j=-1;q.push({type:1,LD:new eu(0,P),D:new eu(0,0),EH:new eu(0,-P)});
c+=2;for(var G=0;G<c;G++){var L={type:1};if(G==0){L.D=new eu(1,-1);L.LD=new eu(1-P,-1);L.EH=new eu(1+P,-1)}else{var H=-(G+2)*Math.PI/2,_=1+((G&1)==1?G-1:G),J=Math.sin(H),S=Math.cos(H);
a+=_*(J-S);j+=_*(S+J);L.D=new eu(a,j);L.LD=new eu(a+_*S*P,j-_*J*P);if((G&1)==1)_+=2;L.EH=new eu(a-_*S*P,j+_*J*P)}var N={type:1,LD:new eu(-L.EH.x,-L.EH.y),D:new eu(-L.D.x,-L.D.y),EH:new eu(-L.LD.x,-L.LD.y)};
q.push(L);if(G<c-2)E.push(N)}E.reverse();q=q.concat(E);var Y=[{type:6},{type:8,all:0}];Y.push({type:0,aN:1,length:q.length,Bs:0,W7:0,pg:1});
Y=Y.concat(q);var U=new i7($/c,0,0,$/c,0,0);U.rotate(Z);U.translate(h,e);s.W.wD(Y,U);return Y};s.W.d5.Rect=function(h,e,$,Z,c){var q=[h,e,h+$,e,h+$,e+Z,h,e+Z];
return s.W.d5.k8(q,c)};s.W.d5.$X=function(h,e,$,Z,c,q){var E=[],P=2*Math.PI/c;for(var G=0;G<c;G++)E.push(Math.cos(G*P),Math.sin(G*P));
var a=new i7($,0,0,$,0,0);a.rotate(Z);a.translate(h,e);s.a.J(E,a,E);return s.W.d5.k8(E,q)};s.W.d5.aj8=function(h,e,$,Z,c,q,E){var P=[],a=Math.PI/c;
for(var G=0;G<c*2;G++){var j=(G&1)==0?1:E;P.push(j*Math.cos(G*a),j*Math.sin(G*a))}var L=new i7($,0,0,$,0,0);
L.rotate(Z);L.translate(h,e);s.a.J(P,L,P);return s.W.d5.k8(P,q)};s.W.d5.K8=function(h,e,$,Z,c){return s.W.d5.z7(0,h,e,$,Z,c)};
s.W.d5.a4r=function(h,e,$,Z,c,q){return s.W.d5.z7(1,h,e,$,Z,c,q)};s.W.d5.z7=function(h,e,$,Z,c,q,E){var P=Math.sqrt((Z-e)*(Z-e)+(c-$)*(c-$)),a;
q/=2;if(h==0)a=[-q,0,q,0,q,P,-q,P];else{var j=q*2*E*1.3/1.5,L=q*E;a=[-q,0,q,0,q,P-j,L,P-j,0,P,-L,P-j,-q,P-j]}var H=new i7(1,0,0,1,0,0);
H.rotate(Math.atan2(-c+$,Z-e)+Math.PI/2);H.translate(e,$);s.a.J(a,H,a);return s.W.d5.k8(a,0)};s.W.d5.eX=function(h,e,$,Z){var c=[{type:6},{type:8,all:0}],H=.553;
c.push({type:0,aN:1,length:4,Bs:0,W7:0,pg:1});var q=h,E=e,P=h+$,a=e+Z,h=(q+P)/2,e=(E+a)/2,j=(q-P)/2,L=(E-a)/2;
c.push({type:1,LD:new eu(h-H*j,e-L),D:new eu(h,e-L),EH:new eu(h+H*j,e-L)});c.push({type:1,LD:new eu(h+j,e-H*L),D:new eu(h+j,e),EH:new eu(h+j,e+H*L)});
c.push({type:1,LD:new eu(h+H*j,e+L),D:new eu(h,e+L),EH:new eu(h-H*j,e+L)});c.push({type:1,LD:new eu(h-j,e+H*L),D:new eu(h-j,e),EH:new eu(h-j,e-H*L)});
return c};s.W.d5.ajj=function(h,e,$,Z,c){var q=[{type:6},{type:8,all:0}];q.push({type:3,aN:1,length:5,Bs:0,W7:0,pg:1});
var E=(c-Z)/4;for(var G=0;G<5;G++){var P=G*E,a=Math.cos(P),j=Math.sin(P),L=.553*(E/(Math.PI/2)),H=j*L,_=-a*L,J=new eu(a,j);
q.push({type:4,LD:G==0?J.clone():new eu(a+H,j+_),D:J,EH:G==4?J.clone():new eu(a-H,j-_)})}var S=new i7;
S.rotate(-Z);S.scale($,$);S.translate(h,e);s.W.wD(q,S);return q};s.FO={};s.FO.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]};
s.FO.en=function(h){var e=h.warpStyle.v.warpStyle;if(e=="warpNone")return!0;else if(e=="warpCustom"){var $=!1,Z=h.customEnvelopeWarp.v.meshPoints.v.arr,c=Z[0].arr,q=Z[1].arr;
for(var G=0;G<4;G++)for(var E=0;E<4;E++){if(Math.abs(c[G]-c[E*4+G])>1||Math.abs(q[G*4]-q[G*4+E])>1)$=!0}return!$}else return h.warpValue.v==0&&h.warpPerspective.v==0&&h.warpPerspectiveOther.v==0};
s.FO.m=function(h){var e={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(h){e.bounds={t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:h.y}},Left:{t:"UntF",v:{type:"#Pxl",val:h.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:h.y+h.v}},Rght:{t:"UntF",v:{type:"#Pxl",val:h.x+h.d}}}};
e.uOrder={t:"long",v:4};e.vOrder={t:"long",v:4}}return e};s.FO.ao1=function(h,e,$,Z){for(var G=0;G<h.length;
G+=2){var c=h[G],q=h[G+1],E=(c-e.x)/e.d,P=(q-e.y)/e.v,a=(1-$)/2,j=1-a,L=a+E*(j-a);P=.5+(P-.5)*L*2;var H=(1-Z)/2,_=1-H,J=H+P*(_-H);
E=.5+(E-.5)*J*2;c=e.x+E*e.d;q=e.y+P*e.v;h[G]=c;h[G+1]=q}};s.FO.WX=function(h,e){var $=[],Z=[];for(var G=0;
G<h.length;G+=2){$.push(h[G]);Z.push(h[G+1])}var c=[];c.push({id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:$});
c.push({id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:Z});e.warpStyle.v.warpStyle="warpCustom";e.customEnvelopeWarp={t:"Objc",v:{classID:"customEnvelopeWarp",meshPoints:{t:"ObAr",v:{classID:"rationalPoint",arr:c}}}}};
s.FO.a8=function(h,e){if(e==null){var $=h.bounds.v,Z=$.Left.v.val,c=$.Rght.v.val,q=$.Top.v.val,E=$.Btom.v.val;
e=new O(Z,q,c-Z,E-q)}if(e.nK())e.d=e.v=1;var P=[],a=h.warpStyle.v.warpStyle;if(a=="warpCustom"){var j=h.customEnvelopeWarp.v.meshPoints.v.arr,L=j[0].arr,H=j[1].arr;
for(var G=0;G<16;G++)P.push(L[G],H[G])}else P=s.FO.FO(e,a,h.warpRotate.v.Ornt=="Hrzn",h.warpValue.v/100,h.warpPerspective.v/100,h.warpPerspectiveOther.v/100);
return P};s.FO.FO=function(h,e,$,Z,c,q){var E=s.nS.m(h.x,h.y,h.d,h.v);if(e=="warpNone")return E;var P=JSON.parse(JSON.stringify(h)),a=new i7;
if(!$){a.translate(-h.x,-h.y);a.rotate(-Math.PI/2);a.translate(h.v,0);s.a.J(E,a,E);h=new O(0,0,h.v,h.d);
E=s.nS.t3(E,!1)}s.FO.a5h(E,h,e,Z,c,q);if(!$){E=s.nS.t3(E,!0);h=P;a.vy();s.a.J(E,a,E)}if(Z==0)s.FO.ao1(E,h,c,q);
else{var a=new i7(1/h.d,0,0,1/h.v,-h.x,-h.y);a.translate(-.5,-.5);s.a.J(E,a,E);s.FO.a7C(E,q,c);a.vy();
s.a.J(E,a,E)}return E};s.FO.a5h=function(h,e,$,Z,c,q){for(var G=0;G<4;G++){for(var E=0;E<4;E++){var P=2*(4*G+E),a=h[P]-e.x,j=h[P+1]-e.y,L=a,H=j;
if(Z!=0){var _=e.d/2,J=e.v/2;L-=_;H-=J;var S=L,N=L,Y=-J,U=J,g=Math.abs(Z),M=Math.tan((1-g)*Math.PI/2),C=Math.sqrt(M*M+1),y=Math.atan2(1,M),i=L/_*y,Q=_*C,m=_*C+e.v,n=Math.cos(y),u=Math.sin(y),K=s.FO.ag5(n,u),F=s.FO.a1V(n,u),b=-M*_+K*Q;
if($=="warpArc"){S=Math.sin(i)*m;Y=M*_-Math.cos(y)*m+J;N=Math.sin(i)*Q;U=M*_-Math.cos(y)*Q+J;if(E==1||E==2){S=E==1?-F*m:F*m;
N=E==1?-F*Q:F*Q;Y=M*_+J-K*m;U=M*_+J-K*Q}if(Z<0){var d=S;S=N;N=d;d=Y;Y=-U;U=-d}}if($=="warpArcLower"){if(E==1||E==2){N=E==1?-F*Q:F*Q;
U=Z<0?J-b:J+b}}if($=="warpArcUpper"||$=="warpArch"||$=="warpBulge"){if(E==1||E==2){S=E==1?-F*Q:F*Q;Y=Z<0?-J+b:-J-b}if($=="warpArch"){N=S;
U=Y+2*J}if($=="warpBulge"){N=S;U=-Y}}if($=="warpFish"||$=="warpFlag"||$=="warpWave"){if(E==1){Y-=Z*4*J;
U+=Z*4*J}if(E==2){Y+=Z*4*J;U-=Z*4*J}if($=="warpFlag"||$=="warpWave")Y=U-2*J}if($=="warpRise"){if(E<2)Y=-J+Z*J*4;
U=Y+2*J}var W=(H+J)/e.v;L=S+W*(N-S);H=Y+W*(U-Y);if($=="warpWave"){if(G==0)H=-J;if(G==3)H=J;if(G==1||G==2)H=2*J*(G/3-.5)*(1/3)+H*(2/3)}if($=="warpFisheye"){if((G==1||G==2)&&(E==1||E==2)){L=L+4*L*Z;
H=H+4*H*Z}}if($=="warpInflate"){var A=2/3;if((G==1||G==2)&&(E==1||E==2)){L=L+.5*L*Z;H=H+.5*H*Z}else if(G==1||G==2)L=L+A*L*Z;
else if(E==1||E==2)H=H+A*H*Z}if($=="warpSqueeze"){var A=2/3;if((G==1||G==2)&&(E==1||E==2)){if(Z>0)L=L-A*L*Z;
else H=H+A*H*Z}else if(G==1||G==2)L=L-A*L*Z;else if(E==1||E==2)H=H+A*H*Z}if($=="warpTwist"){if((G==1||G==2)&&(E==1||E==2)){var z=Z*Math.PI/2,C=1+Math.abs(Z)*2,T=L*Math.cos(z)-H*Math.sin(z),R=L*Math.sin(z)+H*Math.cos(z);
L=T*C;H=R*C}}if($=="warpShellLower"||$=="warpShellUpper"){if($=="warpShellUpper"){G=3-G;H=-H}if(G>2||G==2&&(E==0||E==3)){if(Z>0){var I=Q+G/3*2*J;
L=Math.sin(i)*I;H=-M*_-J+Math.cos(i)*I;if(E==1||E==2){L=E==1?-F*I:F*I;H=-M*_-J+K*I}}else{if((E==1||E==2)&&G==3){L=E==1?-F*Q:F*Q;
H=M*_-K*Q+J}else if(G==2){H=J-J*(2/3)*Math.cos(i);L=L+J*(2/3)*Math.sin(i)}}}if($=="warpShellUpper"){G=3-G;
H=-H}}L+=_;H+=J}a=L,j=H;h[P]=a+e.x;h[P+1]=j+e.y}}};s.FO.a7C=function(h,e,$){var Z=[];for(var c=0;c<4;
c++)Z.push(1-$+c/3*2*$);var q=[];for(var c=0;c<4;c++)q.push(1-e+c/3*2*e);var E=[0,0,0,0],P=[0,0,0,0];
for(var G=0;G<4;G++)for(var c=0;c<4;c++){var a=2*(4*G+c),j=h[a],L=h[a+1];E[c]+=j/4;P[c]+=L/4}for(var G=0;
G<4;G++)for(var c=0;c<4;c++){var H=Z[c],a=2*(4*G+c),j=h[a],L=h[a+1],_=E[c],J=P[c];h[a]=_+H*(j-_);h[a+1]=J+H*(L-J)}var S=h.slice(0);
for(var G=0;G<4;G++)for(var c=1;c<3;c++){var a=2*(4*G+c),j=h[a],L=h[a+1],N=a+(c==1?-2:2),Y=h[N],U=h[N+1];
h[a]=j-Y;h[a+1]=L-U}var g=h[0],M=h[1],C=h[8],y=h[9],i=h[16],Q=h[17],m=h[24],n=h[25],u=h[6],K=h[7],F=h[14],b=h[15],d=h[22],W=h[23],A=h[30],z=h[31],T=u-g,R=K-M,I=F-C,r=b-y,x=d-i,X=W-Q,l=A-m,hH=z-n;
for(var G=0;G<4;G++){var hZ=2*G*4,gj=0,hO=0,d3=G==1?.33:.66,v=1-d3;if(G==0){gj=T;hO=R}if(G==1){gj=v*T+d3*-l;
hO=v*R+d3*-hH}if(G==2){gj=v*T+d3*-l;hO=v*R+d3*-hH}if(G==3){gj=-l;hO=-hH}h[hZ]=h[hZ]+gj/2;h[hZ+1]=h[hZ+1]+hO/2;
h[hZ+6]=h[hZ+6]-gj/2;h[hZ+7]=h[hZ+7]-hO/2}for(var G=0;G<4;G++)for(var c=1;c<3;c++){var a=2*(4*G+c),j=h[a],L=h[a+1],N=a+(c==1?-2:2),Y=h[N],U=h[N+1],H=2*G/3;
h[a]=Y+H*j;h[a+1]=U+H*L}for(var G=1;G<3;G++)for(var c=1;c<3;c++){var a=2*(4*G+c),j=h[a],L=h[a+1],hl=G==1?-8:-16,ht=G==1?16:8,ga=h[a+hl],eB=h[a+hl+1],bP=h[a+ht],ek=h[a+ht+1],H=G/3;
j=(1-H)*ga+H*bP;L=(1-H)*eB+H*ek;h[a]=j;h[a+1]=L}s.a.R6(S,h,h,e)};s.FO.ag5=function(h,e){return(4-h)*(1/3)};
s.FO.a1V=function(h,e){return(1-h)*(3-h)/(3*e)};s.Bj={};s.Bj.amd=function(h,e,$,Z,c,q,E,P,a,j){for(var L=0;
L<P;L++)for(var H=0;H<E;H++){var _=3*(L*E+H),J=L+q,S=H+c,N=h[J*e+S];Z[_]=N;Z[_+1]=N;Z[_+2]=N}};s.Bj.rK=function(h,e,$,Z,c,q,E,P,a,j){var L=[0,1,1/2,1/3,1/4,1/5,1/6,1/7,1/8,1/9],H=1/a,_=[-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1],J=new Uint32Array(6);
for(var S=0;S<P;S++){for(var N=0;N<E;N++){var Y=3*(S*E+N),U=S+q,g=N+c;J[0]=0;J[1]=0;J[2]=0;J[3]=0;J[4]=0;
J[5]=0;for(var G=0;G<16;G+=2){var M=g+_[G],C=U+_[G+1],y=M-a*~~(M*H),i=C-a*~~(C*H),Q=j[i*a+y];J[Q]+=h[C*e+M];
J[Q+3]++}var M=g,C=U,y=M-a*~~(M*H),i=C-a*~~(C*H),Q=j[i*a+y];J[Q]=h[U*e+g];J[Q+3]=1;Z[Y]=J[0]*L[J[3]];
Z[Y+1]=J[1]*L[J[4]];Z[Y+2]=J[2]*L[J[5]]}}};s.Bj.NL=function(h,e,$){for(var G=0;G<$;G+=2)h[e+G]=h[e+G+1];
e=e+$;for(var G=0;G<$;G+=2)h[e+G+1]=h[e+G]};s.Bj.HH=function(h,e,$,Z){for(var G=0;G<Z;G+=2){var c=e+G*$;
h[c]=h[c+$];h[c+$+1]=h[c+1]}};s.Bj.hm=function(h,e,$,Z,c,q){var E=Z[c],P=Z[c+1],a=Z[q],j=Z[q+1],L=P+a>>>1;
h[e]=h[e+3]=h[$]=h[$+3]=E;h[e+1]=L;h[e+4]=P;h[$+1]=a;h[$+4]=L;h[e+2]=h[e+5]=h[$+2]=h[$+5]=j};s.Bj.afI=function(h,e,$,Z,c,q){var E=q*3;
for(var G=0;G<q;G+=2){var P=e+G,a=c+G*3;s.Bj.hm(Z,a,a+E,h,P,P+$)}};s.Bj.afl=function(h,e,$,Z,c,q,E){var P=q*3;
for(var G=0;G<E;G+=2){var a=e+G*$,j=c+G*q*3;s.Bj.hm(Z,j,j+P,h,a,a+$)}};s.Bj.nE=function(h,G,e){var $=h[G-e-e],Z=h[G-e],c=h[G-2],q=h[G-1],E=h[G],P=h[G+1],a=h[G+2],j=h[G+e],L=h[G+e+e],H=Math.abs(Z-j),_=Math.abs(q-P),J=Math.abs(E-$)*2+H,S=Math.abs(E-a)*2+_,N=Math.abs(E-c)*2+_,Y=Math.abs(E-L)*2+H,g=Math.min(J,Math.min(S,Math.min(N,Y)));
if(g==J)return Z*3+j+E-$>>2;if(g==S)return P*3+q+E-a>>2;if(g==N)return q*3+P+E-c>>2;return j*3+Z+E-L>>2};
s.Bj.oM=function(h,e,$,Z,c){if(h<e&&e<$||h>e&&e>$)return~~(.5+Z+(c-Z)*(e-h)/($-h));else return(Z+c>>1)+(e+e-h-$>>2)};
s.Bj.ZK=function(h,e,G,$){var Z=e[G-$-1],c=e[G-$+1],q=e[G],E=e[G+$-1],P=e[G+$+1],a=h[G-$-1],j=h[G-$+1],L=h[G],H=h[G+$-1],_=h[G+$+1],J=Math.abs(j-H)+Math.abs(h[G-$-$+2]-L)+Math.abs(L-h[G+$+$-2])+Math.abs(c-q)+Math.abs(q-E),S=Math.abs(a-_)+Math.abs(h[G-$-$-2]-L)+Math.abs(L-h[G+$+$+2])+Math.abs(Z-q)+Math.abs(q-P);
if(J<S)return s.Bj.oM(c,q,E,j,H);else return s.Bj.oM(Z,q,P,a,_)};s.Bj.D4=function(h,e,$,Z,c,q){h[e+0]=$[c];
h[e+1]=Z[c];h[e+2]=s.Bj.ZK($,Z,c,q)};s.Bj.V3=function(h,e,$,Z,c,q){var E=Z[c];h[e+0]=s.Bj.oM(Z[c-1],E,Z[c+1],$[c-1],$[c+1]);
h[e+1]=E;h[e+2]=s.Bj.oM(Z[c-q],E,Z[c+q],$[c-q],$[c+q])};s.Bj.FV=function(h,e,$,Z,c,q){var E=Z[c];h[e+0]=s.Bj.oM(Z[c-q],E,Z[c+q],$[c-q],$[c+q]);
h[e+1]=E;h[e+2]=s.Bj.oM(Z[c-1],E,Z[c+1],$[c-1],$[c+1])};s.Bj.IT=function(h,e,$,Z,c,q){h[e+0]=s.Bj.ZK($,Z,c,q);
h[e+1]=Z[c];h[e+2]=$[c]};s.Bj.a3h=function(h,e,$,Z,c,q,E,P,a){var j=Date.now(),L=2,H=e-2,_=2;if((c&1)==1){L++;
H--}var J=$-2;if((q&1)==1){_++;J--}if(a==1||a==3){L++;H--}var S=h.slice(0);s.Bj.NL(S,0,e);s.Bj.HH(S,0,e,$);
s.Bj.HH(S,e-2,e,$);s.Bj.NL(S,($-2)*e,e);for(var N=_;N<J;N+=2)for(var Y=L;Y<H;Y+=2){var G=N*e+Y,U=s.Bj.nE(S,G,e),g=s.Bj.nE(S,G+e+1,e);
S[G]=Math.max(0,U);S[G+e+1]=Math.max(0,g)}var M=E,C=P;if(q+P==$){C-=2;s.Bj.afI(h,($-2)*e+c,e,Z,(P-2)*E*3,E)}if(c+E==e){M-=2;
s.Bj.afl(h,q*e+c+E-2,e,Z,(E-2)*3,E,P)}if(a==0)for(var N=0;N<C;N+=2)for(var Y=0;Y<M;Y+=2){var y=(N+q)*e+Y+c,i=(N*E+Y)*3;
s.Bj.D4(Z,i,h,S,y,e);s.Bj.V3(Z,i+3,h,S,y+1,e);y+=e;i+=3*E;s.Bj.FV(Z,i,h,S,y,e);s.Bj.IT(Z,i+3,h,S,y+1,e)}else if(a==1)for(var N=0;
N<C;N+=2)for(var Y=0;Y<M;Y+=2){var y=(N+q)*e+Y+c,i=(N*E+Y)*3;s.Bj.V3(Z,i,h,S,y,e);s.Bj.D4(Z,i+3,h,S,y+1,e);
y+=e;i+=3*E;s.Bj.IT(Z,i,h,S,y,e);s.Bj.FV(Z,i+3,h,S,y+1,e)}else if(a==2)for(var N=0;N<C;N+=2)for(var Y=0;
Y<M;Y+=2){var y=(N+q)*e+Y+c,i=(N*E+Y)*3;s.Bj.IT(Z,i,h,S,y,e);s.Bj.FV(Z,i+3,h,S,y+1,e);y+=e;i+=3*E;s.Bj.V3(Z,i,h,S,y,e);
s.Bj.D4(Z,i+3,h,S,y+1,e)}else if(a==3)for(var N=0;N<C;N+=2)for(var Y=0;Y<M;Y+=2){var y=(N+q)*e+Y+c,i=(N*E+Y)*3;
s.Bj.FV(Z,i,h,S,y,e);s.Bj.IT(Z,i+3,h,S,y+1,e);y+=e;i+=3*E;s.Bj.D4(Z,i,h,S,y,e);s.Bj.V3(Z,i+3,h,S,y+1,e)}};
s.raw={};s.raw.a11=function(h){var e=h.width,$=h.height,Z=Date.now(),c=s.raw.a5f(h),q=0,E=0;s.raw.Xy(2,h,c,e,$);
var P=e,a=$;if(h.t50829){var j=h.t50829;q=j[1];E=j[0];P=j[3];a=j[2]}if(h.t50719){var L=h.t50719;q+=L[0]>>1<<1;
E+=L[1]>>1<<1}if(h.t50720){var H=h.t50720;P=q+H[0];a=E+H[1]}var _=P-q,J=a-E,S=new Float32Array(_*J*3);
if(h.t277[0]==1){var N=h.t33421;if(N==null){s.Bj.amd(c,e,$,S,q,E,_,J)}else if(N.length!=2||N[0]!=2||N[1]!=2){console.log("Unknown CFA pattern size",N);
s.Bj.rK(c,e,$,S,q,E,_,J,N[0],h.t33422)}else{var Y=h.t33422.join(","),U=0;if(Y=="0,1,1,2")U=0;else if(Y=="1,0,2,1")U=1;
else if(Y=="2,1,1,0")U=2;else if(Y=="1,2,0,1")U=3;else throw"Unknown CFA pattern "+Y;if((_&1)!=0||(J&1)!=0)throw"e";
s.Bj.a3h(c,e,$,S,q,E,_,J,U)}}else{for(var g=0;g<J;g++)for(var M=0;M<_;M++){var C=((g+E)*e+M+q)*3,y=(g*_+M)*3;
S[y+0]=c[C+0];S[y+1]=c[C+1];S[y+2]=c[C+2]}}var i=S,Q=S.length,m=s.raw.acH(h),n=1/m;for(var G=0;G<Q;G+=3){S[G]=Math.min(1,i[G]*n);
S[G+1]=Math.min(1,i[G+1]*n);S[G+2]=Math.min(1,i[G+2]*n)}s.raw.Xy(3,h,S,_,J);var u=h.X$,K=_,F=J;if(u==1||u==9){}else{var b=s.raw.C4(u,_,J),y=0;
K=b[0];F=b[1];var d=S.slice(0);for(var g=0;g<F;g++)for(var M=0;M<K;M++){var W=b[2]*M+b[3]*g+b[4],A=b[5]*M+b[6]*g+b[7],C=(A*_+W)*3;
S[y]=d[C];S[y+1]=d[C+1];S[y+2]=d[C+2];y+=3}}return{Hl:S,_i:K,bF:F}};s.raw.C4=function(h,e,$){var Z=e,c=$;
if(!1){}else if(h==2)return[e,$,-1,0,e-1,0,1,0];else if(h==3)return[e,$,-1,0,e-1,0,-1,$-1];else if(h==4)return[e,$,1,0,0,0,-1,$-1];
else if(h==5)return[$,e,0,1,0,1,0,0];else if(h==6)return[$,e,0,1,0,-1,0,$-1];else if(h==8)return[$,e,0,-1,e-1,1,0,0];
else throw"unknown orientation "+h};s.raw.r6=function(h,e,$,Z){var c=h.Hl,q=Math.round(c.length/3),E=iH.am_(Z[0],Z[1]),P=s.raw.ahB($,E),a=s.l2.multiply(s.l2.EJ,P),j=Math.pow(2,Z[2]+($.t50730?$.t50730[0]:0));
a=s.l2.multiply(a,s.l2.vs(j,j,j));var L=$.t50728?$.t50728:[1,1,1],H=[L[1]/L[0],L[2]/L[0],L[0]/L[1],L[2]/L[1],L[0]/L[2],L[1]/L[2]],_=new Float64Array(1e3);
for(var G=0;G<1e3;G++){var J=G*(1/999);J=G==999?1:s.QN(G*(1/999));J=s.raw.nC.a4F(J,Z[3]/100);_[G]=J}var S=Date.now();
for(var G=0;G<q;G++){var N=G<<2,Y=N-G,U=c[Y],g=c[Y+1],M=c[Y+2];if(g>=.92){var C=Math.min(U,M);if(C==U){g=Math.max(g,H[0]*U);
M=Math.max(M,H[1]*U)}else{U=Math.max(U,H[4]*M);g=Math.max(g,H[5]*M)}}var y=a[0]*U+a[1]*g+a[2]*M,i=a[4]*U+a[5]*g+a[6]*M,Q=a[8]*U+a[9]*g+a[10]*M;
if(y<0)y=0;else if(y>1)y=1;if(i<0)i=0;else if(i>1)i=1;if(Q<0)Q=0;else if(Q>1)Q=1;y=_[~~(y*999)];i=_[~~(i*999)];
Q=_[~~(Q*999)];e[N]=~~(.5+y*255);e[N+1]=~~(.5+i*255);e[N+2]=~~(.5+Q*255)}};s.raw.nC={a4F:function(h,e){var $=.5-.5*Math.cos(h*3.2),Z=0;
if(e>0){var c=h*.2;Z=c*h+(1-c)*$}else{var q=Math.pow(h,.33);Z=(1-q)*q+q*(h+(h-$)*.63)}var E=Math.abs(e);
return E*Z+(1-E)*h},adu:function(h,e){var $=0;if(e>0){var Z=h*1.47,c=Math.pow(h,2.4);$=Math.min(1,c*h+(1-c)*Z)}else{var Z=h*.68,c=Math.pow(h,3);
$=c*h*.5+(1-c)*Z}var q=Math.abs(e);return q*$+(1-q)*h},afY:function(h,e){var $=0;if(e>0){var Z=Math.pow(h,.3),c=h;
$=(1-h)*Z+h*c}else{var Z=Math.pow(h,2.5),q=h,c=h;$=Math.min(1,(1-q)*Z+q*c)}var E=Math.abs(e);return E*$+(1-E)*h}};
s.raw.a5f=function(h){var e=h.width,$=h.height,Z=e*$*h.t277,c=new Uint16Array(Z),q=null,E=0;s.raw.ajO(h,c);
s.raw.Xy(1,h,c,e,$);if(h.t50712){q=h.t50712;E=q.length-1;if(q[E]>65535)throw"too big values"}var P=s.raw.PX(h),a=s.raw.Pw(h);
if(q==null)for(var G=0;G<Z;G++)c[G]=Math.max(0,c[G]-P);else for(var G=0;G<Z;G++){var j=c[G];if(j>E)j=E;
j=q[j];c[G]=Math.max(0,j-P)}return c};s.raw.PX=function(h){var e=h.t50714,$=e?e[0]:0,Z=h.t50715,c=h.t50716;
if(Z)$+=Z[0][0]/Z[0][1];if(c)$+=c[0][0]/c[0][1];return Math.round($)};s.raw.Pw=function(h){var e=null,$=0;
if(h.t50712){e=h.t50712;$=e.length-1}var Z=h.t50717?h.t50717[0]:(1<<h.t258[0])-1;if(e)Z=Math.min(Z,e[$]);
return Z};s.raw.acH=function(h){var e=s.raw.PX(h),$=s.raw.Pw(h);return $-e};s.raw.ajO=function(h,e){var $=e.length,Z=h.data,c=h.t258[0];
if(c!=16&&c!=14&&c!=12&&c!=10&&c!=8)throw"Unsupported Bits Per Sample:"+c;c=Math.round(Z.length*8/$);
if(c==16&&h.isLE){s.i7(Z,e);return}for(var G=0;G<$;G+=2){var q=0,E=0,P=0;if(c==16){q=G<<1;E=Z[q]<<8|Z[q+1];
P=Z[q+2]<<8|Z[q+3]}else if(c==14){var a=G*14,j=a>>>3,L=Z[j]<<24|Z[j+1]<<16|Z[j+2]<<8|Z[j+3];if((a&7)==0){E=L>>>18;
P=L>>>4&16383}else{E=L>>>14&16383;P=L&16383}}else if(c==12){q=G+(G>>>1);E=Z[q]<<4|Z[q+1]>>4;P=(Z[q+1]&15)<<8|Z[q+2]}else if(c==10){var a=G*10,j=a>>>3;
if((a&7)==0){E=(Z[j]<<2|Z[j+1]>>6)&1023;P=(Z[j+1]<<4|Z[j+2]>>4)&1023}else{E=(Z[j]<<6|Z[j+1]>>2)&1023;
P=(Z[j+1]<<8|Z[j+2]>>0)&1023}}else if(c==8){q=G;E=Z[q];P=Z[q+1]}e[G]=E;e[G+1]=P}};s.raw.Xy=function(h,e,$,Z,c){var q=e["t"+[51008,51009,51022][h-1]],L=0;
if(q==null)return;var E=Z*c,P=k.n,a=k.bq,j=new Uint8Array(q),aw=k.n(j,L);L+=4;for(var H=0;H<aw;H++){var _=P(j,L);
L+=4;var J=P(j,L);L+=4;var S=P(j,L);L+=4;var N=P(j,L);L+=4;if(!1){}else if(_==1&&h==3){var Y=L,U=P(j,Y);
Y+=4;var g=a(j,Y);Y+=8;var M=a(j,Y);Y+=8;var C=a(j,Y);Y+=8;var y=a(j,Y);Y+=8;var i=a(j,Y);Y+=8;var Q=a(j,Y);
Y+=8;Y+=(U-1)*8*6;var m=a(j,Y);Y+=8;var n=a(j,Y);Y+=8;var u=m*Z,K=n*c,F=Math.max(u,Z-u),b=Math.max(K,c-K),d=Math.sqrt(F*F+b*b),W=1/d,A=$.slice(0);
for(var z=0;z<c;z++)for(var T=0;T<Z;T++){var R=(T+.5-u)*W,I=(z+.5-K)*W,r=R*R+I*I,x=g+M*r+C*(r*r)+y*(r*r)*r,X=i*(2*R*I)+Q*(r+2*R*R),l=Q*(2*R*I)+i*(r+2*I*I),hH=~~(u+d*(x*R+X)),hZ=~~(K+d*(x*I+l)),gj=(hZ*Z+hH)*3,hO=(z*Z+T)*3;
$[hO]=A[gj];$[hO+1]=A[gj+1];$[hO+2]=A[gj+2]}}else if(_==3&&h==3){var Y=L,d3=a(j,Y);Y+=8;var v=a(j,Y);
Y+=8;var hl=a(j,Y);Y+=8;var ht=a(j,Y);Y+=8;var ga=a(j,Y);Y+=8;var m=a(j,Y);Y+=8;var n=a(j,Y);Y+=8;var u=m*Z,K=n*c,F=Math.max(u,Z-u),b=Math.max(K,c-K),d=Math.sqrt(F*F+b*b),W=1/d;
for(var z=0;z<c;z++)for(var T=0;T<Z;T++){var R=(T+.5-u)*W,I=(z+.5-K)*W,r=R*R+I*I,eB=1+(d3+(v+(hl+(ht+ga*r)*r)*r)*r)*r,hO=(z*Z+T)*3;
$[hO]=eB*$[hO];$[hO+1]=eB*$[hO+1];$[hO+2]=eB*$[hO+2]}}else if(_==4&&h==1){var Y=L,bP=P(j,Y);Y+=4;var ek=P(j,Y);
Y+=4;for(var G=0;G<E;G++)if($[G]==bP)$[G]=$[G-2]+$[G+2]>>1}else if(_==5&&h==1){var Y=L,b_=P(j,Y);Y+=4;
var fz=P(j,Y);Y+=4;var ca=P(j,Y);Y+=4;for(var G=0;G<fz;G++){var gf=P(j,Y);Y+=4;var bb=P(j,Y);Y+=4;var G=gf*Z+bb;
$[G]=$[G-2]+$[G+2]>>1}}else if(_==7&&h==1){var Y=L,b2=k.RQ(j,Y);Y+=16;var dV=P(j,Y);Y+=4;var ch=P(j,Y);
Y+=4;var hE=P(j,Y),dS=P(j,Y+4);Y+=8;var e1=P(j,Y);Y+=4;var eG=new Uint16Array(e1);for(var G=0;G<e1;G++)eG[G]=k.oO(j,Y+2*G);
var dq=b2.d,f2=b2.v;for(var z=0;z<f2;z+=hE)for(var T=0;T<dq;T+=dS){var G=(b2.y+z)*Z+(b2.x+T);$[G]=eG[$[G]]}}else if(_==9&&h==2){var Y=L,b2=k.RQ(j,Y),it=!0;
Y+=16;var dV=P(j,Y);Y+=4;var ch=P(j,Y);Y+=4;var hE=P(j,Y),dS=P(j,Y+4);Y+=8;var a3=P(j,Y),bm=P(j,Y+4);
Y+=8;var h2=a(j,Y),ag=a(j,Y+8);Y+=16;var eU=a(j,Y),iz=a(j,Y+8);Y+=16;var d2=P(j,Y);Y+=4;if(d2!=1)throw"more than one map plane";
var gP=a3*bm,fa=new Float32Array(gP);for(var eI=0;eI<gP;eI++)fa[eI]=k.tk(j,Y+eI*4);for(var eI=0;eI<gP;
eI++)if(fa[eI]!=1)it=!1;if(!it){var dq=b2.d,f2=b2.v,ic=.9999*(bm-1)/dq,iK=.9999*(a3-1)/f2;for(var z=0;
z<f2;z+=hE)for(var T=0;T<dq;T+=dS){var G=(b2.y+z)*Z+(b2.x+T),fA=T*ic,iB=z*iK,hG=Math.floor(fA),dt=Math.floor(iB),gO=fA-hG,cX=iB-dt,hO=dt*bm+hG,bh=fa[hO]*(1-gO)+fa[hO+1]*gO,bi=fa[hO+bm]*(1-gO)+fa[hO+1+bm]*gO,dM=bh*(1-cX)+bi*cX;
$[G]=~~($[G]*dM+.5)}}}else console.log("Unknown opcode "+_+" in OpcodeList"+h+". Length: "+N);L+=N}};
s.raw.ahB=function(h,e){var $=iH.pk(e),Z=s.raw.m$(h,e),c=s.l2.vy(Z),q=iH.abf($,iH.pk(iH.a80)),E=s.l2.multiply(q,c);
return E};s.raw.a7p=function(h){var e=(h.t50728?h.t50728:[1,1,1]).slice(0),Z=1;e.push(0);var $={x:.34567,y:.3585};
do{var c=s.l2.vy(s.raw.m$(h,$)),q=s.l2.Cf(c,e),E=iH.a7b(q);Z=Math.abs($.x-E.x)+Math.abs($.y-E.y);$=E}while(Z>1e-7);
return $};s.raw.m$=function(h,e){var $=iH.e$(e),Z=s.raw.a36,c=h.t50778?h.t50778[0]:0,q=h.t50779?h.t50779[0]:0,E=Z(h.t50721,h.t50722,c,q,$.L7),P=Z(h.t50723,h.t50724,c,q,$.L7);
E=E||[1,0,0,0,1,0,0,0,1];P=P||[1,0,0,0,1,0,0,0,1];var a=h.t50727?[h.t50727[0],0,0,0,h.t50727[1],0,0,0,h.t50727[2]]:[1,0,0,0,1,0,0,0,1];
return s.l2.multiply(s.l2.KS(a),s.l2.multiply(s.l2.KS(P),s.l2.KS(E)))};s.raw.a36=function(h,e,$,Z,c){if(!h&&!e){return null}else if(h&&!e){return h}else if(c<$){return h}else if(c>Z){return e}else{var q=(1/c-1/Z)/(1/$-1/Z),E=1-q,P=[];
for(var G=0;G<9;G++)P[G]=h[G]*q+e[G]*E;return P}};var iH={};iH.a80={x:.34567,y:.3585};iH.uM=[{h:0,R8:.18006,o8:.26352,A2:-.24341},{h:10,R8:.18066,o8:.26589,A2:-.25479},{h:20,R8:.18133,o8:.26846,A2:-.26876},{h:30,R8:.18208,o8:.27119,A2:-.28539},{h:40,R8:.18293,o8:.27407,A2:-.3047},{h:50,R8:.18388,o8:.27709,A2:-.32675},{h:60,R8:.18494,o8:.28021,A2:-.35156},{h:70,R8:.18611,o8:.28342,A2:-.37915},{h:80,R8:.1874,o8:.28668,A2:-.40955},{h:90,R8:.1888,o8:.28997,A2:-.44278},{h:100,R8:.19032,o8:.29326,A2:-.47888},{h:125,R8:.19462,o8:.30141,A2:-.58204},{h:150,R8:.19962,o8:.30921,A2:-.70471},{h:175,R8:.20525,o8:.31647,A2:-.84901},{h:200,R8:.21142,o8:.32312,A2:-1.0182},{h:225,R8:.21807,o8:.32909,A2:-1.2168},{h:250,R8:.22511,o8:.33439,A2:-1.4512},{h:275,R8:.23247,o8:.33904,A2:-1.7298},{h:300,R8:.2401,o8:.34308,A2:-2.0637},{h:325,R8:.24792,o8:.34655,A2:-2.4681},{h:350,R8:.25591,o8:.34951,A2:-2.9641},{h:375,R8:.264,o8:.352,A2:-3.5814},{h:400,R8:.27218,o8:.35407,A2:-4.3633},{h:425,R8:.28039,o8:.35577,A2:-5.3762},{h:450,R8:.28863,o8:.35714,A2:-6.7262},{h:475,R8:.29685,o8:.35823,A2:-8.5955},{h:500,R8:.30505,o8:.35907,A2:-11.324},{h:525,R8:.3132,o8:.35968,A2:-15.628},{h:550,R8:.32129,o8:.36011,A2:-23.325},{h:575,R8:.32931,o8:.36038,A2:-40.77},{h:600,R8:.33724,o8:.36051,A2:-116.45}];
iH.e$=function(h){var e=iH.uM,$=2*h.x/(1.5-h.x+6*h.y),Z=3*h.y/(1.5-h.x+6*h.y),c=0,q=0,E=0;for(;E<31;
E++){c=Z-e[E].o8-e[E].A2*($-e[E].R8);if(E>0&&c<0){break}q=c}while(E>=e.length)E--;c/=Math.sqrt(1+e[E].A2*e[E].A2);
q/=Math.sqrt(1+e[E-1].A2*e[E-1].A2);var P=q/(q-c),a=1e6/((e[E].h-e[E-1].h)*P+e[E-1].h),j=$-((e[E].R8-e[E-1].R8)*P+e[E-1].R8),L=Z-((e[E].o8-e[E-1].o8)*P+e[E-1].o8),H=Math.sqrt(1+e[E].A2*e[E].A2),_=1/H,J=e[E].A2/H,S=Math.sqrt(1+e[E-1].A2*e[E-1].A2),N=1/S,Y=e[E-1].A2/S,U=(_-N)*P+N,g=(J-Y)*P+Y,M=Math.sqrt(U*U+g*g);
U/=M;g/=M;var C=(j*U+L*g)*-3e3;return{L7:a,zx:C}};iH.am_=function(h,e){var $=iH.uM,Z=1e6/h,c=1;for(;
c<31;c++){if(Z<$[c].h){break}}var q=($[c].h-Z)/($[c].h-$[c-1].h),E=($[c-1].R8-$[c].R8)*q+$[c].R8,P=($[c-1].o8-$[c].o8)*q+$[c].o8,a=Math.sqrt(1+$[c].A2*$[c].A2),j=1/a,L=$[c].A2/a,H=Math.sqrt(1+$[c-1].A2*$[c-1].A2),_=1/H,J=$[c-1].A2/H,S=(_-j)*q+j,N=(J-L)*q+L,Y=Math.sqrt(S*S+N*N);
S/=Y;N/=Y;E+=S*e/-3e3;P+=N*e/-3e3;return{x:1.5*E/(E-4*P+2),y:P/(E-4*P+2)}};iH.a7b=function(h){var e=h[0]+h[1]+h[2];
return{x:h[0]/e,y:h[1]/e}};iH.pk=function(h){return{x:h.x/h.y,y:1,Qc:(1-h.x-h.y)/h.y}};iH.abf=function(h,e){var $=s.l2.KS([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),Z=[h.x,h.y,h.Qc,0],c=[e.x,e.y,e.Qc,0];
Z=s.l2.Cf($,Z);c=s.l2.Cf($,c);var q=c[0]/Z[0],E=c[1]/Z[1],P=c[2]/Z[2],a=s.l2.KS([q,0,0,0,E,0,0,0,P]),j=s.l2.vy($);
return s.l2.multiply(s.l2.multiply(j,a),$)};s.raw.Em={};s.raw.Bk=function(h){h*=8;var e=[8,10,12,14,16];
for(var $ in s.raw.ix){var Z=s.raw.ix[$];if(Z.length==4)continue;var c=Z[4],q=Z[5];for(var G=0;G<e.length;
G++)if(c*q*e[G]==h)return[$,e[G]]}var E=[[4e3,3e3]];for(var G=0;G<E.length;G++){var Z=E[G],c=Z[0],q=Z[1];
for(var G=0;G<e.length;G++)if(c*q*e[G]==h)return[Z,e[G]]}return null};s.raw.a7z=function(h){var h=new Uint8Array(h);
for(var G=0;G<h.length;G+=2){var e=h[G];h[G]=h[G+1];h[G+1]=e}var $=s.raw.Bk(h.length),Z=s.raw.ix[$[0]];
if(Z==null)Z=[[8489,-2583,-1036,-8051,15583,2643,-1307,1407,7354],0,1e3,64383,$[0][0],$[0][1]];var c=Z[4],q=Z[5],E=Math.max(Z[2],116),P={data:h,X$:1,width:c,height:q,t256:[c],t257:[q],t258:[$[1]],t277:[1],t33421:[2,2],t33422:s.raw.d0[Z[1]],t50706:[1,2,0,0],t50714:[E,E,E,E],t50717:[Z[3]],t50721:Z[0].slice(0),t50723:[1,0,0,0,1,0,0,0,1],t50728:[.64,1,.46],t50778:[17]};
for(var G=0;G<9;G++)P.t50721[G]/=1e4;return P};s.raw.VM=function(h){if(h==null||h.length==0||typeof h[0]=="number")return h;
var e=[];for(var G=0;G<h.length;G++)e[G]=h[G][1]==0?0:h[G][0]/h[G][1];return e};s.raw.d0=[[2,1,1,0],[0,1,1,2],[1,0,2,1],[1,2,0,1]];
s.raw.normalize=function(h,e){if(h.t50706!=null||h.t271[0].startsWith("Hasselblad")){var $=[50714,50718,50719,50720,50721,50722,50723,50724,50727,50728,50730,50731,50732,50734,50736,50738,50739,50780,50964,50965];
for(var G=0;G<$.length;G++)if(h["t"+$[G]]!=null)h["t"+$[G]]=s.raw.VM(h["t"+$[G]]);if(h.t271&&h.t271[0].startsWith("Hasselblad")){h.t50706=[1,2,0,0];
h.t33422=s.raw.d0[1];h.t50723=[1,0,0,0,1,0,0,0,1];h.t50778=[17];if(!h.isLE)for(var G=0;G<h.data.length;
G+=2){var Z=h.data[G];h.data[G]=h.data[G+1];h.data[G+1]=Z}}return}var c=h.t258[0],q=h.exifIFD,e=new Uint8Array(e);
h.t50706=[1,2,0,0];var E=h.t272[0].trim();if(E.indexOf(" ")==-1)E=h.t271[0].trim()+" "+E;if(h.t50708==null)h.t50708=[E];
var P=s.raw.ix,a=P[E.toLowerCase()];if(a==null)for(var j in P)if(E.toLowerCase().startsWith(j))a=P[j];
if(a==null)throw E;var L=a[2];h.t50714=[L,L,L,L];h.t50717=[a[3]];h.t50721=a[0].slice(0);for(var G=0;
G<9;G++)h.t50721[G]=h.t50721[G]*(1/1e4);h.t50723=[1,0,0,0,1,0,0,0,1];if(h.t50728==null)h.t50728=[.35,1,.6];
h.t50778=[17];if(h.t271[0].startsWith("SONY")){var H=UTIF["_bin"+(h.isLE?"LE":"BE")],_=h.t28688,M;if(JSON.stringify(_)!="[8000,10400,12900,14100]")console.log(_);
if(_){var J=[0,0,0,0,0,4095],S=new Uint16Array(16385);for(var G=0;G<4;G++){var N=_[G]>>>2;J[G+1]=N;if(N>4095)throw"e"}for(var G=0;
G<16385;G++)S[G]=G;for(var G=0;G<5;G++)for(var Y=J[G]+1;Y<=J[G+1];Y++)S[Y]=S[Y-1]+(1<<G);var U=e.length*8<h.width*h.height*c;
if(U)h.t50712=S}else console.log("no curve");var g=h.dngPrvt;if(g){var C=g.t29184[0],y=g.t29185[0],i=(h.isLE?k.bt:k.n)(g.t29217,0),Q=new Uint32Array(e.slice(C,C+(y&4294967292)).buffer),m=new Uint32Array(y>>>2);
s.raw.ack(Q,m,y>>>2,i);var n=new Uint8Array(C+y);n.set(new Uint8Array(m.buffer),C);var u=[];UTIF._readIFD(H,n,C,u,0,!1);
var K=u.pop(),F=K.t29458;h.t50728=[F[1]/F[0],1,F[1]/F[3]];h.t50730=[.5];var b=K.t29891;h.t50829=[b[1],b[0],b[3],b[2]]}else if(q.makerNote&&q.makerNote.t8208){var M=q.makerNote,d=M.t8208,W=d.length,A=0,z=new Uint8Array(256);
for(var G=249;G<256;G++)z[G]=G;for(var G=0;G<249;G++)z[G*G*G%249]=G;for(var G=0;G<W;G++)d[G]=z[d[G]];
if(W==6604)A=612;else throw"e";var F=[];for(var G=0;G<3;G++)F.push(k.av(d,A+G*2));console.log(F);h.t50728=[F[1]/F[0],1,F[1]/F[2]]}else console.log("no white balance");
if(h.width*h.height*1.5==h.t279[0]){L=L>>>2;h.t50714=[L,L,L,L];h.t50717=[a[3]>>>2]}}else if(h.t271[0].startsWith("Canon")){var e=h.data,T=e.slice(0),R=h.t50752,I=[],x=0;
if(R==null||R[0]==0&&R[1]==0)I.push(h.width);else{for(var G=0;G<R[0];G++)I.push(R[1]);I.push(R[2])}var r=h.width*2;
for(var X=0;X<I.length;X++){var l=I[X],hH=2*x,hZ=2*l;for(var gj=0;gj<h.height;gj+=2){var hO=gj*r+hH,d3=h.height*hH+(gj>>1)*hZ*2;
for(var G=0;G<hZ;G++){e[hO+G]=T[d3+G];e[hO+G+r]=T[d3+G+hZ]}}x+=l}var M=q.makerNote;if(M.t16385){var v=M.t224,ga=0;
if(v){h.t50719=[v[5],v[6]];h.t50720=[v[7]+1-v[5],v[8]+1-v[6]]}var hl=M.t16385,ht=hl.length;if(ht==582)ga=1;
else if(ht==653)ga=2;else if(ht==796)ga=3;else if([692,674,702,1227,1250,1251,1337,1338,1346].indexOf(ht)!=-1)ga=4;
else if(ht==5120){ga=5;hl=new Int16Array(hl.slice(0).buffer)}else if(ht==1273||ht==1275)ga=6;else if([1312,1313,1316,1506].indexOf(ht)!=-1)ga=7;
else if([1560,1592,1353,1602].indexOf(ht)!=-1)ga=8;else throw"e"+ht;var eB=hl[0],bP=[null,[25,166],[34,286],[63,196],[63],[71,eB==-4?333:264],[63,251],[63,eB==10?504:728],[63,326]],A=bP[ga][0],ek=bP[ga][1];
if(ga==4){if(hl[0]==2)ek=231;else if(hl[0]==3)ek=231;else if(hl[0]==4)ek=231;else if(hl[0]==5)ek=231;
else if(hl[0]==6)ek=231;else if(hl[0]==7)ek=231;else if(hl[0]==9)ek=231;else throw"e"}h.t50728=[hl[A+1]/hl[A],1,hl[A+1]/hl[A+3]];
var L=ek==null?1024:hl[ek];h.t50714=[L,L,L,L]}else{h.t50728=[.4,1,.6]}}else if(h.t271[0].startsWith("NIKON")){var M=q.makerNote,b_=h.isLE?k.av:k.nP,dV=0,ch=0,eG,eU=0;
if(M.t61){var fz=M.t61,ca=[];for(var G=0;G<4;G++)ca[G]=fz[G]/Math.pow(2,14-c);h.t50714=ca}if(M.t3585){var gf=M.t3585,G=0,C=22;
while(C<gf.length&&G!=-4){var bb=k.bt(gf,C);C+=4;C+=14;G=k.bt(gf,C)-4;C+=4;if(bb==1990472198){if(gf[C]!=0)throw"Flip"}if(bb==1990472199){var b2=k.av(gf,C);
if(b2==0)h.X$=1;else if(b2==270)h.X$=8;else throw"e "+b2}C+=G}}if(M.t183){var hE=M.t183,dS=[];for(var G=0;
G<6;G++)dS.push(b_(hE,16+G*2));dV=dS[0];ch=dS[1]}if(M.t3614){var e1=M.t3614;dV=k.bt(e1,8);ch=k.bt(e1,12)}if(dV!=0){if(dV<ch){var Z=dV;
dV=ch;ch=Z}var x=h.width-dV>>>1,gj=h.height-ch>>>1;h.t50829=[gj,x,gj+ch,x+dV]}if(M.t12){var dq=s.raw.VM(M.t12);
eG=[1/dq[0],1,1/dq[1]]}else if(M.t151){var f2=s.raw.amA(M,151),a3=f2[0],d6=f2[1],bm=f2[2];if(a3=="0100"&&d6>=80)throw"e";
else if(a3=="0102"){var h2=[];for(var G=0;G<4;G++)h2.push(b_(bm,6+G*2));eG=[h2[1]/h2[0],1,h2[1]/h2[3]]}else if(a3=="0103"&&d6>=26){var h2=[];
for(var G=0;G<4;G++)h2.push(b_(bm,16+G*2));eG=[h2[1]/h2[0],1,h2[3]/h2[2]]}else if(a3=="0204"&&d6>=564||a3=="0205"&&d6>=284){var C=a3=="0204"?6:14,h2=[];
for(var G=0;G<4;G++)h2.push(b_(bm,C+G*2));eG=[h2[1]/h2[0],1,h2[1]/h2[3]]}else throw"e"}else console.log("no white balance info");
if(E=="NIKON D1")eG=[1,1,1];if(eG)h.t50728=eG;var ag=M.t150?M.t150:M.t140;if(ag){var iz=ag[eU++],d2=ag[eU++],eI;
if(iz==73||d2==88)eU+=2110;eU+=8;var gP=1<<c&32767,fa=b_(ag,eU);eU+=2;var S=[];if(fa>1)eI=Math.floor(gP/(fa-1));
if(iz==68&&d2==32&&eI>0){for(G=0;G<fa;G++){S[G*eI]=b_(ag,eU);eU+=2}for(G=0;G<gP;G++)S[G]=Math.floor((S[G-G%eI]*(eI-G%eI)+S[G-G%eI+eI]*(G%eI))/eI)}else if(iz!=70&&fa<=16385){gP=fa;
for(var G=0;G<fa;G++)S[G]=b_(ag,eU+2*G);eU+=2*fa}if(S.length!=0)h.t50712=new Uint16Array(S);else if(h.t272[0]=="NIKON D750")h.t50717[0]*=4}}else if(E.startsWith("FujiFilm")){}else alert("Unknown camera "+E)};
s.raw.ack=function(h,e,$,Z){if(0==$)return;var c=new Uint32Array(128),q=new Uint8Array(c.buffer),E=127,P=0,a=0;
for(var E=0;E<4;E++)c[E]=Z=(Z*15625>>>0)*3125+1>>>0;c[3]=c[3]<<1|(c[0]^c[2])>>>31;for(var E=4;E<127;
E++)c[E]=(c[E-4]^c[E-2])<<1|(c[E-3]^c[E-1])>>>31;for(var E=0;E<127;E++)c[E]=k.n(q,E*4);for(;$>0;$--){c[E&127]=c[E+1&127]^c[E+1+64&127];
var j=c[E&127],L=h[P];L^=j;e[a]=L;P++;a++;E++}};s.raw.ak_=function(h,e){var $=k.dd(e,0,4),Z=s.raw.akF;
for(var G=0;G<Z.length;G++)if(Z[G][0]==h&&$.startsWith(Z[G][1])&&(Z[G][2]==0||Z[G][2]==e.length))return Z[G];
throw"e"};s.raw.a7Y=function(h){if(h.t29==null)return[];var e=s.raw.a7T,$=s.raw.a9w,Z=h.t29[0],c=0,E=0;
for(var G=0;G<Z.length;G++){var q=Z.charCodeAt(G);c=c*10+(48<=q&&q<=57?q-48:q%10)}var d6=h.t167[0];for(var G=0;
G<4;G++)E^=d6>>>(G<<3)&255;var P=e[c&255],a=$[E&255];return[P,a,96]};s.raw.amA=function(h,e){var $=h["t"+e],d6=$.length,Z=s.raw.ak_(e,$),c=k.dd($,0,4),q,E=Z[4];
if(E==null)q=$.slice(4);else{q=new Uint8Array(d6-E);var P=s.raw.a7Y(h),a=P[0],j=P[1],L=P[2];for(var G=0;
G<q.length;G++){j=j+a*L++&255;q[G]=$[E++]^j}}return[c,d6,q]};s.raw.akF=[[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]];
s.raw.a7T=[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];
s.raw.a9w=[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];
s.raw.ix={"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]};
s.dy={};s.dy.dy=function(h,e,$,Z,c){if(Z==null)Z=3;if(c==null)c=!0;var q=h.d,E=h.v,P=1/q,a=q*E,j=Date.now(),L=!1,H=s.dy.hr($,q,E,255,128),_=s.dy.hr($,q,E,0,128),hi=0;
if(L)console.log("extract contours",Date.now()-j);j=Date.now();var J=function(gP,fa){var eI=gP<<2,it=fa<<2;
return e[eI]+e[eI+1]+e[eI+2]-(e[it]+e[it+1]+e[it+2])};H.sort(J);_.sort(J);var S=s.m(a),N=s.m(a),Y=[],U=new Uint32Array(q*E);
U.fill(4294967295);for(var G=0;G<a;G++)if($[G]==0)N[G]=255;else if($[G]==255)S[G]=255;else{U[G]=Y.length;
Y.push(G)}var g=H.length,M=_.length,C=Y.length;function y(gP,fa,eI,it){var ic=gP.length,iK=new Array(ic*2);
for(var G=0;G<ic;G++){var z=gP[G],T=~~(z*it),R=z-T*eI,eU=z<<2;iK[G*2]=R<<16|T;iK[G*2+1]=fa[eU]<<16|fa[eU+1]<<8|fa[eU+2]}return iK}var i=y(H,e,q,P),Q=y(_,e,q,P),m=y(Y,e,q,P);
if(L)console.log("Itemize",Date.now()-j,"Unknown:",C,g,M);j=Date.now();var n=s.style.IC(S,q,E,!0),u=s.style.IC(N,q,E,!0),K=new Array(C),F=new Array(C),b=new Array(C),d=new Array(C),W=new Array(C);
if(L)console.log("Dist transform",Date.now()-j);j=Date.now();var A=s.dy.iH;for(var G=0;G<C;G++){var z=Y[G],T=~~(z*P),R=z-T*q,I=n[z<<1],r=n[(z<<1)+1],x=Math.sqrt(I*I+r*r),X=u[z<<1],l=u[(z<<1)+1],hH=Math.sqrt(X*X+l*l);
K[G]=1/x;F[G]=1/hH;var hZ=Math.floor(s.p.f$(z*17)*g),gj=Math.floor(s.p.f$(z*19)*M);b[G]=hZ;d[G]=gj;W[G]=A(m[G*2],m[G*2+1],i[hZ*2],i[hZ*2+1],Q[gj*2],Q[gj*2+1],K[G],F[G],1e9)}var hO=[-q-1,-q,-q+1,-1,1,q-1,q,q+1];
while(Math.floor(Math.max(g,M)*Math.pow(.5,hi))>1)hi++;for(var d3=0;d3<Z;d3++){var v=0;for(var G=0;G<C;
G++){var z=Y[G],T=~~(z*P),R=z-T*q,hl=K[G],ht=F[G],ga=m[G*2],eB=m[G*2+1],bP=W[G],hZ=b[G],gj=d[G],bb=1;
if(T!=0&&R!=0&&R!=q-1&&T!=E-1)for(var ek=0;ek<8;ek++){var b_=U[z+hO[ek]];if(b_==4294967295)continue;
var fz=b[b_],ca=d[b_];if(fz==hZ&&ca==gj)continue;var gf=A(ga,eB,i[fz*2],i[fz*2+1],Q[ca*2],Q[ca*2+1],hl,ht,bP);
if(gf<bP){bP=gf;hZ=fz;gj=ca}}for(var b2=0;b2<hi;b2++){var dV=~~(g*bb),ch=~~(M*bb);bb*=.5;var hE=s.p.f$(z+d3*17+b2*31),dS=s.p.f$(z+d3*29+b2*63),e1=Math.max(0,hZ-dV),eG=Math.min(hZ+dV,g-1),dq=Math.max(0,gj-ch),f2=Math.min(gj+ch,M-1),fz=e1+~~(hE*(eG-e1)),ca=dq+~~(dS*(f2-dq)),gf=A(ga,eB,i[fz*2],i[fz*2+1],Q[ca*2],Q[ca*2+1],hl,ht,bP);
if(gf<bP){bP=gf;hZ=fz;gj=ca}}W[G]=bP;b[G]=hZ;d[G]=gj;v+=bP}}if(L)console.log(v);if(L)console.log("iterations",Date.now()-j);
j=Date.now();var a3=$.slice(0);for(var G=0;G<C;G++){var bm=s.dy.alpha(m[G*2+1],i[b[G]*2+1],Q[d[G]*2+1]);
a3[Y[G]]=~~(.5+255*bm)}a3=s.gy.ahw(a3,e,new O(0,0,q,E),16,.01*.01);if(L)console.log("guided filter",Date.now()-j);
j=Date.now();if(c)for(var G=0;G<a;G++)if($[G]==255||$[G]==0)a3[G]=$[G];var h2=e.slice(0);for(var G=0;
G<C;G++){var ag=Y[G],hZ=H[b[G]],bP=W[G],eU=ag<<2,iz=a3[ag],d2=(iz>=250?ag:hZ)<<2;h2[eU]=e[d2];h2[eU+1]=e[d2+1];
h2[eU+2]=e[d2+2]}s.Jk(a3,h2,3);if(L)console.log(Date.now()-j);j=Date.now();return h2};s.dy.iH=function(h,e,$,Z,c,q,E,P,a){var j=h>>>16,L=h&65535,H=j-($>>>16),_=L-($&65535),J=j-(c>>>16),S=L-(c&65535),N=Math.sqrt(H*H+_*_)*E,Y=Math.sqrt(J*J+S*S)*P;
if(N+Y>=a)return 1e9;var U=s.dy.aiQ(e,Z,q);return U+N+Y};s.dy.aiQ=function(h,e,$){var Z=h>>>16,c=h>>>8&255,q=h&255,E=e>>>16,P=e>>>8&255,a=e&255,j=$>>>16,L=$>>>8&255,H=$&255,_=s.dy.alpha(h,e,$),J=Z-(_*E+(1-_)*j),S=c-(_*P+(1-_)*L),N=q-(_*a+(1-_)*H);
return Math.sqrt(J*J+S*S+N*N)};s.dy.alpha=function(h,e,$){var Z=h>>>16,c=h>>>8&255,q=h&255,E=e>>>16,P=e>>>8&255,a=e&255,j=$>>>16,L=$>>>8&255,H=$&255,_=E-j,J=P-L,S=a-H,N=Z-j,Y=c-L,U=q-H,g=_*_+J*J+S*S,M=g==0?.5:(N*_+Y*J+U*S)/g;
return Math.max(0,Math.min(1,M))};s.dy.ak2=function(h){};s.dy.hr=function(h,e,$,Z,c){var q=[],E=e-1,P=$-1;
for(var a=1;a<P;a++)for(var j=1;j<E;j++){var G=a*e+j;if(h[G]==Z&&(h[G-e-1]==c||h[G-e]==c||h[G-e+1]==c||(h[G-1]==c||h[G+1]==c)||(h[G+e-1]==c||h[G+e]==c||h[G+e+1]==c)))q.push(G)}return q};
s.gy={};s.gy.ach=function(h,e,$,Z,c){var q=$.d,E=$.v,P=q*E,a=s.gy.L8,j=s.m(P*4),L;s.Ut(j,4294967295);
var H=$,_=h,J=e,S=Z;s.Jk(h,j,0);L=s.$I(j,$);L=s.$I(L.Hl,L.rect);H=L.rect;S=Z>>>2;console.log(H,S);_=s.m(H.X());
s.z0(L.Hl,_,0);s.Jk(e,j,0);L=s.$I(j,$);L=s.$I(L.Hl,L.rect);J=s.m(H.X());s.z0(L.Hl,J,0);var N=s.gy.ak6(_,J,H,S,c),Y=N[0],U=N[1],g=new O(0,0,H.d*2,H.v*2);
Y=a(Y,H,g,!0);Y=a(Y,g,$,!0);U=a(U,H,g,!0);U=a(U,g,$,!0);var M=s.m(P);for(var G=0;G<P;G++)M[G]=Math.max(0,Math.min(255,Math.floor(.5+(Y[G]*e[G]+255*U[G]))));
return M};s.gy.L8=function(h,e,$,Z){var c=$.d,q=$.v,E=e.d,P=e.v,a=s.gy._4,j=new Float32Array(c*q);for(var L=0;
L<P;L++){var H=(L+L)*c;for(var _=0;_<E;_++){if(!0||_==0||L==0||_==E-1||L==P-1)j[H]=j[H+1]=j[H+c]=j[H+c+1]=h[L*E+_];
else{j[H]=a(_+.25,L+.25,h,E,P);j[H+1]=a(_+.75,L+.25,h,E,P);j[H+c]=a(_+.25,L+.75,h,E,P);j[H+c+1]=a(_+.75,L+.75,h,E,P)}H+=2}}return j};
s.gy._4=function(h,e,$,Z,c){h-=.499999;e-=.499999;var q=Math.floor(h),E=Math.floor(e),P=E*Z+q,a=h-q,j=e-E,L=(1-j)*(1-a),H=(1-j)*a,_=j*(1-a),J=j*a;
if($[P]==null||$[P+Z+1]==null){console.log(h,e,Z,c);throw"e"}return L*$[P+0]+H*$[P+1]+_*$[P+Z+0]+J*$[P+Z+1]};
s.gy.ak6=function(h,e,$,Z,c){var q=$.d,E=$.v,P=q*E,a=s.gy.ZN,j=s.gy.m,L=s.Nw.nd,H=s.gy.c8,e=a(e),h=a(h),_=j(P);
L(e,_,$,Z);var J=j(P);L(h,J,$,Z);var S=j(P);H(e,e,S);L(S,S,$,Z);var N=j(P);H(e,h,N);L(N,N,$,Z);var Y=j(P),U=j(P);
for(var G=0;G<P;G++){var g=_[G],M=J[G],C=S[G]-g*g,y=N[G]-g*M,i=y/(C+c),Q=M-i*g;Y[G]=i;U[G]=Q}var m=j(P);
L(Y,m,$,Z);var n=j(P);L(U,n,$,Z);return[m,n]};s.gy.ahw=function(h,e,$,Z,c){var q=$.d,E=$.v,P=q*E,a=s.gy.L8,j=Date.now(),L=!1,H=$,_=h,J=e,S=Z;
H=new O(0,0,q>>>2,E>>>2);S=Z>>>2;_=s.gy.a9V(h,q,E);J=s.gy.a6v(e,q,E);if(L)console.log(Date.now()-j);
j=Date.now();var N=s.gy.a4q(_,J,H,S,c),Y=N[0],U=N[1],g=N[2],M=N[3];if(L)console.log(Date.now()-j);j=Date.now();
var C=s.m(P);for(var y=0;y<E;y++)for(var i=0;i<q;i++){var G=y*q+i,Q=(y>>>2)*(q>>>2)+(i>>>2),m=G<<2,n=Y[Q]*e[m]+U[Q]*e[m+1]+g[Q]*e[m+2]+M[Q]*255;
C[G]=Math.max(0,Math.min(255,~~(.5+n)))}if(L)console.log(Date.now()-j);j=Date.now();return C};s.gy.a9V=function(h,e,$){var Z=e>>>2,c=$>>>2,q=s.m(e*$);
for(var E=0;E<c;E++)for(var P=0;P<Z;P++)q[E*Z+P]=h[E*e+P<<2];return q};s.gy.a6v=function(h,e,$){var Z=e>>>2,c=$>>>2,q=s.m(e*$*4);
for(var E=0;E<c;E++)for(var P=0;P<Z;P++){var a=E*Z+P<<2,j=E*e+P<<4;q[a]=h[j];q[a+1]=h[j+1];q[a+2]=h[j+2];
q[a+3]=h[j+3]}return q};s.gy.a4q=function(h,e,$,Z,c){var q=$.d,E=$.v,P=q*E,a=s.gy.ZN,j=s.gy.m,L=s.Nw.nd,H=s.gy.c8,h=a(h),_=new s.EI(q*E);
s.DC(e,_);var e=[a(_.h),a(_.l),a(_.O)],J=s.gy.agv(h,e,$,Z,c),S=j(P);L(h,S,$,Z);var N=j(P);H(e[0],h,N);
L(N,N,$,Z);var Y=j(P);H(e[1],h,Y);L(Y,Y,$,Z);var U=j(P);H(e[2],h,U);L(U,U,$,Z);var g=j(P),M=j(P),C=j(P),y=j(P);
for(var G=0;G<P;G++){var i=S[G],Q=J.nI[G],m=J.c2[G],n=J._t[G],u=N[G]-Q*i,K=Y[G]-m*i,F=U[G]-n*i;g[G]=J.a2w[G]*u+J.jJ[G]*K+J.qZ[G]*F;
M[G]=J.jJ[G]*u+J.a6_[G]*K+J.mS[G]*F;C[G]=J.qZ[G]*u+J.mS[G]*K+J.aiR[G]*F;y[G]=i-g[G]*Q-M[G]*m-C[G]*n}L(g,g,$,Z);
L(M,M,$,Z);L(C,C,$,Z);L(y,y,$,Z);return[g,M,C,y]};s.gy.agv=function(h,e,$,Z,c){var q=$.d,E=$.v,P=q*E,a=s.gy.m,j=s.Nw.nd,L=s.gy.c8,H={};
H.nI=a(P);j(e[0],H.nI,$,Z);H.c2=a(P);j(e[1],H.c2,$,Z);H._t=a(P);j(e[2],H._t,$,Z);var _=a(P);L(e[0],e[0],_);
j(_,_,$,Z);var J=a(P);L(e[0],e[1],J);j(J,J,$,Z);var S=a(P);L(e[0],e[2],S);j(S,S,$,Z);var N=a(P);L(e[1],e[1],N);
j(N,N,$,Z);var Y=a(P);L(e[1],e[2],Y);j(Y,Y,$,Z);var U=a(P);L(e[2],e[2],U);j(U,U,$,Z);H.a2w=_;H.jJ=J;
H.qZ=S;H.a6_=N;H.mS=Y;H.aiR=U;for(var G=0;G<P;G++){var g=H.nI[G],M=H.c2[G],C=H._t[G],y=_[G]-g*g+c,i=J[G]-g*M,Q=S[G]-g*C,m=N[G]-M*M+c,n=Y[G]-M*C,u=U[G]-C*C+c,K=m*u-n*n,F=n*Q-i*u,b=i*n-m*Q,d=y*u-Q*Q,W=Q*i-y*n,A=y*m-i*i,z=K*y+F*i+b*Q,T=1/z;
H.a2w[G]=K*T;H.jJ[G]=F*T;H.qZ[G]=b*T;H.a6_[G]=d*T;H.mS[G]=W*T;H.aiR[G]=A*T}return H};s.gy.m=function(h){return new Float32Array(h)};
s.gy.ZN=function(h){var e=h.length,$=new Float32Array(e);for(var G=0;G<e;G++)$[G]=h[G]*(1/255);return $};
s.gy.c8=function(h,e,$){for(var G=0;G<h.length;G++)$[G]=h[G]*e[G]};s.Sj={};s.Sj.YW=function(h,e,$,Z){var c=h[e]-$[Z],q=h[e+1]-$[Z+1],E=h[e+2]-$[Z+2];
return Math.sqrt(c*c+q*q+E*E)*(1/441.7)};s.Sj.getSelection=function(h,e,$){var Z=e*$,c=s.m(Z),q=!1,E=Math.round($*.7),P=1,a=new Uint32Array(12),j=s.m(12);
for(var L=0;L<E;L++)for(var H=0;H<e;H++){if(H<P||L<P||H>e-P-1||L>$-P-1){var G=L*e+H,_=G<<2,J=0;if(L<P)J=4;
else if(H>e-P-1)J=8;a[J]+=h[_];a[J+1]+=h[_+1];a[J+2]+=h[_+2];a[J+3]++;c[G]=255}}for(var G=0;G<12;G+=4)for(var S=0;
S<3;S++)j[G+S]=a[G+S]/a[G+3];var N=new Float32Array(Z);for(var G=0;G<Z;G++){var _=G*4,Y=s.Sj.YW(h,_,j,0),U=s.Sj.YW(h,_,j,4),g=s.Sj.YW(h,_,j,8),M=Math.max(Y,Math.max(U,g));
N[G]=Y+U+g-M}s.Sj.o3(N);var C=Date.now(),y=new Float32Array(Z),i=[],Q=s.m(Z);for(var G=0;G<3;G++){s.z0(h,Q,G);
var m=new Uint16Array(Z);i.push(m);s.Sj.alB(Q,c,e,$,m)}if(q)console.log("MBD",Date.now()-C);C=Date.now();
for(var G=0;G<Z;G++)y[G]=i[0][G]+i[1][G]+i[2][G];s.Sj.o3(y);for(var G=0;G<Z;G++)y[G]+=.4*N[G];var n=e>>>1,E=$>>>1,u=1/Math.sqrt(n*n+E*E);
for(var L=0;L<$;L++)for(var H=0;H<e;H++){var K=H-n,F=L-E,b=1-Math.sqrt(K*K+F*F)*u;y[L*e+H]*=b}if(q)console.log("Centeredness",Date.now()-C);
C=Date.now();for(var G=0;G<Z;G++)c[G]=y[G]*255;var d=Math.round(e/120),W=Math.round(d*.8);if(q)console.log(d,W);
s.zP.Ib(c,Q,e,$,d,s.zP.XA,[]);c.set(Q);if(q)console.log("erosion",Date.now()-C);C=Date.now();for(var G=0;
G<Z;G++)y[G]=c[G];s.Sj.o3(y);var A=s.m(256);for(var G=0;G<256;G++)A[G]=256/(1+Math.exp(-20*(G/255-.5)));
for(var G=0;G<Z;G++){var z=~~(y[G]*255+.5);c[G]=A[z]}if(q)console.log("Simoid",Date.now()-C);C=Date.now();
return c};s.Sj.o3=function(h){var e=h.length,$=0;for(var G=0;G<e;G++)$=Math.max($,h[G]);var Z=1/$;for(var G=0;
G<e;G++)h[G]=h[G]*Z};s.Sj.alB=function(h,e,$,Z,c){var q=$*Z,E=h.slice(0),P=h.slice(0);for(var G=0;G<q;
G++)c[G]=e[G]==255?0:65535;s.Sj.rk(h,P,E,c,$,Z);s.Sj.nG(h,P,E,c,$,Z);s.Sj.rk(h,P,E,c,$,Z);s.Sj.nG(h,P,E,c,$,Z);
return c};s.Sj.rk=function(h,e,$,Z,c,q){for(var E=1;E<c;E++)s.Sj.JT(E,-1,h,e,$,Z);for(var P=1;P<q;P++){s.Sj.JT(P*c,-c,h,e,$,Z);
for(var E=1;E<c;E++){var G=P*c+E;s.Sj.JT(G,-1,h,e,$,Z);s.Sj.JT(G,-c,h,e,$,Z)}}};s.Sj.nG=function(h,e,$,Z,c,q){for(var E=c-2;
E>=0;E--)s.Sj.JT(c*q-c+E,1,h,e,$,Z);for(var P=q-2;P>=0;P--){s.Sj.JT(P*c+c-1,c,h,e,$,Z);for(var E=c-2;
E>=0;E--){var G=P*c+E;s.Sj.JT(G,1,h,e,$,Z);s.Sj.JT(G,c,h,e,$,Z)}}};s.Sj.JT=function(G,h,e,$,Z,c){var q=G+h,E=e[G],P=$[q],a=Z[q];
if(P<E)P=E;else if(E<a)a=E;var j=P-a;if(c[q]!=65535&&j<c[G]){c[G]=j;$[G]=P;Z[G]=a}};s.AV={};s.AV.filter=function(h,e,$,Z){var c=e.d,q=e.v,E=c*q,P=Z[0],a=Z[1],j=Z[2],L=Z[3],H=Z[4],_=Z[5],J=Z[6],S=Date.now(),N=new Float32Array(c*q*4);
s.AV.a6e(h,c,q,N);var Y=Math.ceil(P*Math.sqrt(-2*Math.log(.1))),U=new ArrayBuffer(E*4),g=new Float32Array(U),M=new Float32Array(E),C=new Float32Array(E);
for(var G=0;G<E;G++){var y=G*4;g[G]=N[y];M[G]=N[y+1];C[G]=N[y+2]}s.Nw.Yl(g,g,e,Y*1/2.4,2);s.Nw.Yl(M,M,e,Y*1/2.4,2);
s.Nw.Yl(C,C,e,Y*1/2.4,2);for(var G=0;G<E;G++){var y=G*4;N[y]=g[G];N[y+1]=M[G];N[y+2]=C[G]}var i=new Uint8Array(U);
for(var G=0;G<E;G++){var y=G*4,Q=G*4,g=N[y],M=N[y+1],C=N[y+2],m=Math.sqrt((g-C)*(g-C)+4*M*M),n=(g+C+m)*.5,u=(g+C-m)*.5,K=u-C,F=M,b=K*K+F*F;
if(b!=0){var d=Math.sqrt(b),W=1/d;K*=W;F*=W}i[Q]=128+127*K;i[Q+1]=128+127*F}var A=1.3*a+2,z=L*(2/10),T=h.slice();
if(V.Yv){var R=new Float32Array([1/c,1/q]),I=V.p5(0,c,q);I.set(T);var r=V.p5(1,c,q);r.set(i);V.wo(I,e);
if(H){I.D1(e);V.filter.BO({type:V.filter.S0,KO:R,agC:1/j,aiE:z},I.Jw)}I.D1(e);V.filter.BO({type:V.filter.H8,R9:r.jg,KO:R,ajy:A,a5v:2},I.Jw);
if(H){I.D1(e);V.filter.BO({type:V.filter.WR,KO:R,af5:new Float32Array(J),ak9:_},I.Jw)}I.get($)}else{if(H)s.AV.ul(1/j,z,T,c,q);
s.AV.H8(T,$,i,c,q,A);if(H)s.AV.agR(c,q,$,J,_)}var x=E*4;for(var G=3;G<x;G+=4)$[G]=h[G]};s.AV.H8=function(h,e,$,Z,c,q){var E=Math.ceil(2*q),P=-1/(2*q*q),a=[],j=1;
for(var G=0;G<E+20;G++)a[G]=Math.exp(G*G*P);var L=[0,0,0,0];for(var H=0;H<c;H++){for(var _=0;_<Z;_++){var J=H*Z+_,S=J*4,N=1,Y=h[S],U=h[S+1],g=h[S+2],M=h[S+3],C=($[S]-128)*(1/127),y=($[S+1]-128)*(1/127),i=C,Q=y,m=_==0?.51:.49,n=H==0?.51:.49;
for(var G=0;G<2;G++){var u=_+m,K=H+n,F=0;while(F<E){if(u<.5||Z-.5<u||K<.5||c-.5<K)break;var b=~~u,d=~~K,W=d*Z+b,A=W*4,z=($[A]-128)*(1/127),T=($[A+1]-128)*(1/127);
if(z*i+T*Q<0){z=-z;T=-T}i=z;Q=T;u+=j*z;K+=j*T;if(u<.5||Z-.5<u||K<.5||c-.5<K)break;var R=~~u,I=~~K,r=I*Z+R<<2;
F+=j;var x=a[~~F];s.I.LB(u,K,h,Z,c,L);Y+=L[0]*x;U+=L[1]*x;g+=L[2]*x;M+=L[3]*x;N+=x}i=-C;Q=-y}var X=1/N;
e[S]=~~(.5+Y*X);e[S+1]=~~(.5+U*X);e[S+2]=~~(.5+g*X);e[S+3]=~~(.5+M*X)}}};s.AV.agR=function(h,e,$,Z,c){for(var q=0;
q<e;q++)for(var E=0;E<h;E++){var P=q*h+E<<2,a=1+s.AV.ab$(E,q,$,h,e,Z)*c;$[P]=Math.max(0,Math.min(255,$[P]*a));
$[P+1]=Math.max(0,Math.min(255,$[P+1]*a));$[P+2]=Math.max(0,Math.min(255,$[P+2]*a))}};s.AV.ab$=function(h,e,$,Z,c,q){var E=$[(e*Z+Math.max(0,h-1))*4+3],P=$[(e*Z+Math.min(Z-1,h+1))*4+3],a=$[(Math.max(0,e-1)*Z+h)*4+3],j=$[(Math.min(c-1,e+1)*Z+h)*4+3],L=.7,H=(P-E)*(1/255),_=.7,J=(j-a)*(1/255),S=-H*_,N=-L*J,Y=L*_,U=Math.sqrt(S*S+N*N+Y*Y),g=1/U,M=S*g,C=N*g,y=Y*g,i=q[0]*M+q[1]*C+q[2]*y;
return i};s.AV.ul=function(h,e,$,Z,c){function q(P,j,L){return Math.max(j,Math.min(L,P))}for(var E=0;
E<c;E++)for(var P=0;P<Z;P++){var a=s.AV.afL(P+.5,E+.5,h,e);$[(E*Z+P)*4+3]=Math.max(0,Math.min(255,a*255))}};
s.AV.afL=function(h,e,$,Z){function c(Q,m,n){return(1-n)*Q+n*m}var q=(h+613)*$,E=(e+117)*$,P=~~q,a=~~E,j=q-P,L=E-a,H=Math.sin(11),_=Math.cos(P)*H,J=Math.cos(P+1)*H,S=Math.cos(a)*H,N=Math.cos(a+1)*H,t=s.AV.hash(_,S),Y=s.AV.hash(J,S),U=s.AV.hash(_,N),g=s.AV.hash(J,N),M=c(t,Y,j),C=c(U,g,j),y=c(M,C,L);
y=y<.5?0:1;var i=y+Z*s.AV.hash(Math.cos(q)*H,Math.cos(E)*H);return i*(1/3)};s.AV.hash=function(h,e){var $=Math.sin(h*11.697096+e*73.32456)*12157.47691;
return $-Math.floor($)};s.AV.a6e=function(h,e,$,Z){var c=[-1,0,1,-2,0,2,-1,0,1],q=[-1,-2,-1,0,0,0,1,2,1],E=e-1,P=$-1,a=e*4;
for(var j=1;j<P;j++)for(var L=1;L<E;L++){var G=j*e+L,H=G*4,_=s.AV.GX(h,H,a,c),J=s.AV.GX(h,H,a,q),S=s.AV.GX(h,H+1,a,c),N=s.AV.GX(h,H+1,a,q),Y=s.AV.GX(h,H+2,a,c),U=s.AV.GX(h,H+2,a,q);
Z[H]=_*_+S*S+Y*Y;Z[H+1]=_*J+S*N+Y*U;Z[H+2]=J*J+N*N+U*U}s.AV.abt(Z,e,$)};s.AV.GX=function(h,e,$,Z){return h[e-$-4]*Z[0]+h[e-$]*Z[1]+h[e-$+4]*Z[2]+h[e-4]*Z[3]+h[e]*Z[4]+h[e+4]*Z[5]+h[e+$-4]*Z[6]+h[e+$]*Z[7]+h[e+$+4]*Z[8]};
s.AV.abt=function(h,e,$){function Z(a,G,j){var L=G*4,H=j*4;a[H]=a[L];a[H+1]=a[L+1];a[H+2]=a[L+2]}var c=e-1,q=$-1;
Z(h,e+1,0);Z(h,2*e-2,e-1);for(var E=1;E<c;E++)Z(h,e+E,E);for(var P=1;P<q;P++){Z(h,P*e+1,P*e);Z(h,P*e+e-2,P*e+e-1)}for(var E=1;
E<c;E++)Z(h,($-2)*e+E,($-1)*e+E);Z(h,(P-2)*e+1,(P-1)*e);Z(h,(P-1)*e-2,P*e-1)};s.$q={};s.$q.qn=function(h,e,$,Z){var c=h[e*2],q=h[e*2+1],E=h[$*2],P=h[$*2+1],a=h[Z*2],j=h[Z*2+1];
return c*P+E*j+a*q-a*P-E*q-c*j};s.$q.Wy=function(h,e){var $=[],Z=[],c=[],q={};for(var G=0;G<e.length;
G+=3){var E=~~(G*(1/3)),P=e[G+0],a=e[G+1],j=e[G+2],L=s.$q.qn(h,P,a,j);if(L>0){var H=a;a=j;j=H}var _=q[j+"-"+a],J=q[a+"-"+P],S=q[P+"-"+j],N=[j,_,E,null],Y=[a,J,E,N],U=[P,S,E,Y];
N[3]=U;if(_)_[1]=N;if(J)J[1]=Y;if(S)S[1]=U;q[j+"-"+P]=U;q[P+"-"+a]=Y;q[a+"-"+j]=N;$[P]=Y;c[G]=Y;$[a]=N;
c[G+1]=N;$[j]=U;c[G+2]=U;Z[E]=Y}return{L2:$,wJ:Z,r2:c}};s.$q.aoq=function(h){var e=[],$=h.wJ;for(var G=0;
G<$.length;G++){var Z=$[G];e.push(Z[0]);Z=Z[3];e.push(Z[0]);Z=Z[3];e.push(Z[0])}return e};s.$q.a3w=function(h,e,$,Z){var c=h[e*2],q=h[e*2+1],E=h[$*2],P=h[$*2+1],a=h[Z*2],j=h[Z*2+1],L=E-c,H=P-q,_=a-c,J=j-q,S=L*(c+E)+H*(q+P),N=_*(c+a)+J*(q+j),Y=2*(L*(j-P)-H*(a-E));
if(Math.abs(Y)<1e-5){var U=Math.min(c,E,a),g=Math.min(q,P,j),M=(Math.max(c,E,a)-U)*.5,C=(Math.max(q,P,j)-g)*.5;
return[U+M,g+C,M*M+C*C,1]}var y=(J*S-H*N)/Y,i=(L*N-_*S)/Y,M=y-c,C=i-q;return[y,i,M*M+C*C,0]};s.$q.aaR=function(h,e,$){var Z=$[1],c=$[3],q=c[3],E=Z[3],P=E[3],a=$[2],j=Z[2],L=$[0],H=Z[0],_=c[0],J=E[0],S=s.$q.a3w(h,H,J,_),N=h[L*2]-S[0],Y=h[L*2+1]-S[1],U=N*N+Y*Y>S[2]&&S[3]==0&&s.$q.qn(h,J,L,_)<0&&s.$q.qn(h,_,H,J)<0;
if(U){$[0]=_;Z[0]=J;$[3]=q;q[3]=E;E[3]=$;Z[3]=P;P[3]=c;c[3]=Z;c[2]=j;E[2]=a;e.wJ[j]=P;e.wJ[a]=q;e.L2[H]=E;
e.L2[L]=c}return U};s.$q.cU=function(h,e,$){var Z=h[e*2]-h[$*2],c=h[e*2+1]-h[$*2+1];return Math.sqrt(Z*Z+c*c)};
s.$q.ag0=function(h,e,$){var Z=$[1],c=$[3],q=c[3],E,P,a=$[2],j,L=$[0],H=q[0],_=c[0],J;if(Z){E=Z[3];P=E[3];
j=Z[2];J=E[0]}var S=h.length>>>1;h[2*S]=(h[2*H]+h[2*L])*.5;h[2*S+1]=(h[2*H+1]+h[2*L+1])*.5;if(!0){var N=a,Y=$,U=e.wJ.length,g=[S,null,N,Y],M=[_,g,U,q];
g[1]=M;var C=[S,null,U,M];c[3]=g;q[3]=C;q[2]=U;e.wJ[N]=c;e.wJ[U]=C;e.L2[L]=c;e.L2[_]=q;e.r2.push(g,M,C)}if(Z){var y=j,i=Z,Q=U+1;
C[1]=i,i[1]=C;var m=[S,null,y,i],n=[J,m,Q,P];m[1]=n;var u=[S,Y,Q,n];Y[1]=u;E[3]=m;P[3]=u;P[2]=Q;e.wJ[y]=E;
e.wJ[Q]=P;e.L2[H]=E;e.L2[J]=P;e.r2.push(m,n,u)}e.L2[S]=Y};s.$q.lG=function(h,e){var $=0;while(!0){var Z=$;
for(var G=0;G<e.r2.length;G++){var c=e.r2[G];if(c[1]==null)continue;var q=s.$q.aaR(h,e,c);if(q){$++;
break}}if(Z==$)break}return $!=0};s.$q.a5o=function(h,e,$,Z){var c=0;for(var G=0;G<Z;G++){var q=null,E=0;
for(var P=0;P<e.r2.length;P++){var a=e.r2[P],j=s.$q.cU(h,a[0],a[3][3][0])*(a[1]?1:2);if(j>E){q=a;E=j}}if(E>$){s.$q.ag0(h,e,q);
c++}}return c!=0};s.$q.akp=function(h,e){var $=[],_=0;for(var G=0;G<h.length;G++)$.push(0);for(var G=0;
G<e.r2.length;G++){var Z=e.r2[G],c=Z[0],q=Z[3][3][0],E=h[c*2],P=h[c*2+1],a=h[q*2],j=h[q*2+1],L=E-a,H=P-j;
$[c*2]+=-L;$[c*2+1]+=-H;$[q*2]+=L;$[q*2+1]+=H}for(var G=0;G<h.length;G+=2){var J=G>>>1,S=e.L2[J],Z=S,N=!0;
do{if(Z[1]==null){N=!1;break}Z=Z[1][3]}while(Z!=S);if(N){var Y=.02;h[G]+=Y*$[G];h[G+1]+=Y*$[G+1];_+=Y*($[G]*$[G]+$[G+1]*$[G+1])}}return _};
s.$q.a0i=function(h,e,$){var Z=s.a.Be(h),c=s.$q.Wy(h,e);s.$q.lG(h,c);for(var q=0;q<300;q++){var E=!1,P=!1;
E=s.$q.a5o(h,c,$,5);if(E)P=s.$q.lG(h,c);var a=s.$q.akp(h,c);if(!E&&!P&&a<1e-4){break}}return s.$q.aoq(c)};
s.M0={};s.M0.Qz=function(h){var e=h.T1,$=h.N6,Z=h.MW,c=h.mt,q=h.Iv,E=h.WF,P=h.dN,a=s.FC.P3,g,M,C=0;function j(t){var ga=new Array(t);
for(var G=0;G<t;G++)ga[G]=0;return ga}var L=$.length>>>1,H=j(e.f1*2),_=j(e.f1),J=j(e.f1),S=Date.now();
for(var G=0;G<h.Ot.length;G++){var N=e.a17+G,Y=e.EN*(E[G*2]+P[G*2]),U=e.EN*(E[G*2+1]+P[G*2+1]);H[N*2]=Y;
H[N*2+1]=U;_[N]=Y;J[N]=U}e.a6W.ND(c,e.alz.P3(H),.01,g,M);for(var G=0;G<e.a6p.r2.length;G++){var y=e.a6p.r2[G],i=y[3][3][0],Q=y[0],m=y[3][0],n=y[1]?y[1][3][0]:m;
if(y[1]&&i>Q)continue;var u=$[i*2],K=$[i*2+1],F=$[Q*2],b=$[Q*2+1],d=c[i*2],W=c[i*2+1],A=c[Q*2],z=c[Q*2+1],T=c[m*2],R=c[m*2+1],I=c[n*2],r=c[n*2+1],x=[d,W,A,z,T,R];
if(y[1])x.push(I,r);var X=a(e.a2E[C],x),hH=X[0],hZ=X[1],gj=1/Math.sqrt(hH*hH+hZ*hZ);hH*=gj;hZ*=gj;var hO=F-u,v=b-K;
_[C]=hH*hO+hZ*v;J[C]=-hZ*hO+hH*v;C++}var hl=new Array(L),ht=new Array(L);for(var G=0;G<L;G++){hl[G]=q[G*2];
ht[G]=q[G*2+1]}e.a6N.ND(hl,e.a8a.P3(_),.5);e.a6N.ND(ht,e.a8a.P3(J),.5);for(var G=0;G<L;G++){q[G*2]=hl[G];
q[G*2+1]=ht[G]}};s.M0.$$=function(h){var e=h.N6,$=h.MW,Z=h.Ot,c=s.FC.multiply,q=Date.now(),E=s.$q.Wy(e,$),P=e.length>>>1,a=0,S=0,hZ=1e3;
for(var G=0;G<E.r2.length;G++)a+=E.r2[G][1]?.5:1;var j=a+Z.length,L=[],H=new s.l_(j*2,P*2),_=new s.l_(j,P),J=[[[-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]]],N=[],Y=[];
for(var G=0;G<E.r2.length;G++){var U=E.r2[G],g=U[3][3][0],M=U[0],C=U[3][0],y=U[1]?U[1][3][0]:C;if(U[1]&&g>M)continue;
var i=e[g*2],Q=e[g*2+1],m=e[M*2],n=e[M*2+1],u=e[C*2],K=e[C*2+1],F=e[y*2],b=e[y*2+1],d=[[i,Q,1,0],[Q,-i,0,1],[m,n,1,0],[n,-m,0,1],[u,K,1,0],[K,-u,0,1]];
if(U[1])d.push([F,b,1,0],[b,-F,0,1]);var W=s.FC.JR(d),A=c(linear.invert(c(W,d)),W);A.pop();A.pop();L.push(A);
var z=m-i,T=n-Q,R=J[U[1]?1:0];R=s.FC.MR(R,c([[z,T],[T,-z]],A));var I=[g*2,g*2+1,M*2,M*2+1,C*2,C*2+1,y*2,y*2+1],r=U[1]?8:6,x=[];
for(var X=0;X<r;X++)x.push([I[X],R[0][X],R[1][X]]);x.sort(function(ga,eB){return ga[0]-eB[0]});for(var hH=0;
hH<2;hH++){for(var X=0;X<r;X++){N[X]=x[X][0];Y[X]=x[X][1+hH]}H.yH(Y,N,r)}if(g<M)_.yH([-1,1],[g,M],2);
else _.yH([1,-1],[M,g],2);S++}for(var G=0;G<Z.length;G++){var gj=Z[G];H.yH([hZ],[gj*2],1);H.yH([hZ],[gj*2+1],1);
_.yH([hZ],[gj],1)}var hO=H.JR(),v=hO.Zr(hO),hl=_.JR(),ht=hl.Zr(hl);return{a17:a,f1:j,alz:hO,a6W:v,a8a:hl,a6N:ht,a6p:E,a2E:L,EN:hZ}};
s.M0.aoK=function(h,e,$,Z,c){var q=new O(0,0,e,$),E=s.m(q.X());s.z0(h,E,3);s.round(E,70);var P=s.Hd(E,q),a=[.1,.065,.035][Z]*Math.max(P.d,P.v),j=c+1,L=e+j*2,H=$+j*2,_=new O(-j,-j,L,H),J=s.m(_.X());
s.T7(E,q,J,_);var S=J.slice(0);for(var N=0;N<c;N++){for(var Y=1;Y<H-1;Y++){for(var U=1;U<L-1;U++){var G=Y*L+U;
S[G]=J[G-L]|J[G-1]|J[G]|J[G+1]|J[G+L]}}var g=S;S=J;J=g}var M=gx.YD(J,L,H,Math.round(P.X()*5e-4)),C=gx.U9(M),y=new i7(1,0,0,1,-j,-j);
for(var G=0;G<C.length;G++){var i=C[G];s.a.J(i.path.H,y,i.path.H);i.N6=s.M0.amw(i.path);i.MW=s.a.amt(i.N6);
i.MW=s.$q.a0i(i.N6,i.MW,a)}return C};s.M0.amw=function(h){var e=[],$=h.H,Z=h.Z.length-1,c=0,q=0;for(var E=0;
E<Z;E++){var G=E*6,P=$[G+6]-$[G+0],a=$[G+7]-$[G+1],j=Math.ceil(Math.sqrt(P*P+a*a));for(var L=0;L<j;L++){var H=L/j,_=1-H,J=_*_*_*$[G+0]+3*_*_*H*$[G+2]+3*_*H*H*$[G+4]+H*H*H*$[G+6],S=_*_*_*$[G+1]+3*_*_*H*$[G+3]+3*_*H*H*$[G+5]+H*H*H*$[G+7];
e.push(J,S);c=J;q=S}}e=s.a.ij(e,1);var N=[],Y=e.length;for(var G=0;G<Y;G+=2){var S=e.pop(),J=e.pop();
N.push(J,S)}return N};s.M0.a9z=function(h,e,$,Z){function c(m,n,u,K,F){var b=F[m*2]-F[n*2],d=F[m*2+1]-F[n*2+1],W=Math.sqrt(b*b+d*d);
if(u[m].indexOf(n)==-1){u[m].push(n);K[m].push(W)}if(u[n].indexOf(m)==-1){u[n].push(m);K[n].push(W)}}var q=h.length>>>1,E=new Array(q);
if($.length==0){E.fill(0);return E}var P=new Array(q),a=new Array(q);for(var G=0;G<q;G++){P[G]=[];a[G]=[]}for(var G=0;
G<e.length;G+=3){c(e[G],e[G+1],P,a,h);c(e[G],e[G+2],P,a,h);c(e[G+1],e[G+2],P,a,h)}var j=new Float64Array(q*2),L=new Uint32Array(q*2);
j.fill(1e9);var H=new Uint8Array(q);for(var _=0;_<$.length;_++){H.fill(0);var J=["---",[0,$[_]]];while(J.length!=1){var S=s.C6.ai1(J),N=S[0],Y=S[1];
if(H[Y]==1)continue;var U=Y<<1;if(N<j[U]){j[U+1]=j[U];L[U+1]=L[U];j[U]=N;L[U]=_}else if(N<j[U+1]){j[U+1]=N;
L[U+1]=_}H[Y]=1;var g=P[Y],M=a[Y];for(var G=0;G<g.length;G++){var C=g[G];if(H[C]!=1){s.C6.a7g(J,[N+M[G],C])}}}}for(var G=0;
G<q;G++){var U=G<<1,y=j[U],i=j[U+1],Q=1/(y+i);E[G]=(1-y*Q)*Z[L[U]]+(1-i*Q)*Z[L[U+1]]}return E};s.M0.amy=function(h){var e={Z:[],H:[]},$=[h];
while($.length!=0){var Z=$.pop(),c=Z.Ny;if(Z.ahJ instanceof Array||Z.a8e instanceof Array){e.Z.push("M","L","L","L","Z");
e.H.push(c[0],c[1],c[2],c[1],c[2],c[3],c[0],c[3])}else $.push(Z.ahJ,Z.a8e)}return e};s.M0.Fx=function(h,e,$,Z,c,q,E){var P=$.d,a=$.v,j=Math.round(E.length/3),L=new Array(j);
for(var G=0;G<j;G++)L[G]=G;L.sort(function(_,J){return q[E[_*3]]-q[E[J*3]]});for(var G=0;G<j;G++){var H=L[G]*3;
s.M0.a7a(E[H]*2,E[H+1]*2,E[H+2]*2,Z,c,h,e,P,a)}};s.M0.a7a=function(h,e,$,Z,c,q,E,P,a){var j=s.M0.jY,L=[h,e,$,1.2,1.2,1.2,0],H=[0,0,0,0],_=c[h],J=c[h+1],S=c[e],N=c[e+1],Y=c[$],U=c[$+1],g=Math.max(0,Math.min(P-1,Z[h])),M=Math.max(0,Math.min(P-1,Z[e])),C=Math.max(0,Math.min(P-1,Z[$])),y=Math.max(0,Math.min(a-1,Z[h+1])),i=Math.max(0,Math.min(a-1,Z[e+1])),Q=Math.max(0,Math.min(a-1,Z[$+1])),m=S-_,n=N-J,u=Y-_,K=U-J,F=1/(m*K-u*n+1e-9),b=Math.max(0,Math.floor(Math.min(_,S,Y))),d=Math.min(P,Math.ceil(Math.max(_,S,Y))),W=Math.max(0,Math.floor(Math.min(J,N,U))),A=Math.min(a,Math.ceil(Math.max(J,N,U)));
for(var z=W;z<A;z++)for(var T=b;T<d;T++){var R=T+.5-_,I=z+.5-J,r=(R*K-u*I)*F,x=(m*I-R*n)*F;if(r>=0&&x>=0&&r+x<=1){var X=1-r-x,l=g*X+M*r+C*x,hH=y*X+i*r+Q*x;
s.I.LB(l,hH,q,P,a,H);s.M0.anR(H,E,z*P+T<<2)}}};s.M0.anR=function(h,e,$){var Z=e[$],c=e[$+1],q=e[$+2],E=e[$+3],P=1-h[3]*(1/255);
e[$]=~~(.5+h[0]+Z*P);e[$+1]=~~(.5+h[1]+c*P);e[$+2]=~~(.5+h[2]+q*P);e[$+3]=~~(.5+h[3]+E*P)};s.M0.jY=function(){var h=function($,Z,c,q){var E=q[0],P=q[1],a=q[2],j=$[E+0],L=$[E+1],H=$[P+0],_=$[P+1],J=$[a+0],S=$[a+1],N=H-j,Y=_-L,U=J-j,g=S-L,M=Z-j,C=c-L,y=N*g-U*Y,i=1/(y+1e-9),Q=(M*g-U*C)*i,m=(N*C-M*Y)*i;
if(Q>=0&&m>=0&&Q+m<=1){q[3]=1-Q-m;q[4]=Q;q[5]=m;return 1}return 0},e=function($,Z,c,q){var E=[0,0,0,0,0,0];
for(var G=0;G<Z.length;G+=3){E[0]=Z[G]*2;E[1]=Z[G+1]*2;E[2]=Z[G+2]*2;if(h($,c,q,E)==1)return!0}return!1};
return{ab5:h,air:e}}();s.$p={};s.$p.a4b=function(h,e,$){var Z=s.m(e*$*4),c=!1;s.I.rK(h,e,$,Z,[$,e,0,1,0,1,0,0]);
return[s.$p.c7(h,e,$,c),s.$p.c7(Z,$,e,c)]};s.$p.J=function(h,e){var $=!1,Z=h[0],c=h[1],q=Z[1],E=Z[2],P=Z[3],a=e.d,j=e.v;
if(E==a&&P==j)q=q.slice(0);else if(P!=j){var L=s.m(E*j*4);s.$p.bz(c,j,L,$);q=s.m(E*j*4);s.I.rK(L,j,E,q,[E,j,0,1,0,1,0,0]);
if(E!=a){Z=s.$p.c7(q,E,j,$);q=s.m(a*j*4);s.$p.bz(Z,a,q,$)}}else if(E!=a){q=s.m(a*P*4);s.$p.bz(Z,a,q,$)}return q};
s.$p.c7=function(h,e,$,Z){var c=Date.now(),q=new Uint16Array(e*$),E=1;s.$p.aim(h,e,$,q);var P=Math.ceil(e/E),a=new Uint32Array(E),j=new Uint32Array(E),P=Math.floor(e/E);
for(var L=0;L<E;L++)j[L]=L<E-1?P:e-(E-1)*P;for(var H=0;H<$;H++){var G=H*e;for(var L=0;L<E;L++){var P=j[L];
for(var _=0;_<P;_++)a[L]+=q[G+_];G+=P}}if(Z){console.log(Date.now()-c,"cost");c=Date.now()}var J=new Uint32Array(e),S=new Uint32Array(e),N=new Uint32Array(e*$);
for(var _=0;_<e;_++){N[($-1)*e+_]=q[($-1)*e+_]}for(var H=$-2;H>=0;H--){var Y=H*e;for(var L=0;L<E;L++){var P=j[L];
N[Y]=q[Y]+Math.min(N[Y+e],N[Y+e+1]);for(var _=1;_<P-1;_++){var G=Y+_;N[G]=q[G]+Math.min(N[G+e-1],Math.min(N[G+e],N[G+e+1]))}Y+=P-1;
N[Y]=q[Y]+Math.min(N[Y+e-1],N[Y+e]);Y++}}if(Z){console.log(Date.now()-c,"Building M");c=Date.now()}function U(K,F){return K<F?K:F}function g(G,K){var F=S[G],b=N[K],d=~~(F*b*1e-4);
return d}var M=new Uint8Array(e*$),C=new Uint32Array(e);for(var G=0;G<e;G++){J[G]=G;S[G]=q[G]}for(var H=1;
H<$;H++){var y=0,Y=H*e;for(var L=0;L<E;L++){var P=j[L],G=Y;C[y]=g(y,G);var i=C[y]+g(y+1,G+1),Q=g(y,G+1)+g(y+1,G);
C[y+1]=U(i,Q);for(var _=2;_<P;_++){var G=Y+_,m=C[y+_-1]+g(y+_-1,G-1),n=C[y+_-2]+g(y+_-1,G-2)+g(y+_-2,G-1);
C[y+_]=U(m,n)}var _=P-1;while(_>=2){var G=Y+_,m=C[y+_-1]+g(y+_-1,G-1),n=C[y+_-2]+g(y+_-1,G-2)+g(y+_-2,G-1);
if(C[y+_]==m){M[G-e]=1;_-=1}else{M[G-e]=0;M[G-e-1]=2;_-=2}}var G=Y;if(_==0){M[G-e]=1}else{if(C[y+1]==i){M[G+1-e]=1;
M[G-e]=1}else{M[G+1-e]=0;M[G-e]=2}}Y+=P;y+=P}s.$p.agc(H,e,M,q,J,S,!0,c)}if(Z){console.log(Date.now()-c,"Matching");
c=Date.now()}var u=q;return[UZIP.adler(h,0,h.length),h,e,$,E,j,a,J,S,M,u]};s.$p.bz=function(h,e,$,Z){var c=h.slice(0),q=c.shift(),E=c.shift(),P=c.shift(),a=c.shift(),j=c.shift(),L=c.shift(),H=c.shift(),_=c.shift(),J=c.shift().slice(0),S=c.shift(),N=c.shift(),Y=Date.now(),U=Math.abs(P-e),g=Math.floor(U/j),M=new Uint32Array(j),y=0,i=1e9,m=0,n=0,u=0;
for(var C=0;C<j;C++)M[C]=C<j-1?g:U-(j-1)*g;N.fill(0);for(var Q=0;Q<P;Q++){y=Math.max(y,J[Q]);i=Math.min(i,J[Q])}for(var C=0;
C<j;C++){var K=L[C],g=M[C];for(var F=0;F<g;F++){var b=0,d=1e9;for(var Q=0;Q<K;Q++)if(J[n+Q]<d){d=J[n+Q];
b=n+Q}if(e<P)J[b]=1e9;else J[b]*=1.2;if(u<P/3)m+=d;var W=_[b],A=N[W],z=A<65280?65280:A+1;if(z<65280)throw"e";
for(var T=0;T<a;T++){var G=T*P+W;N[G]=z;W+=S[G]-1}u++}n+=K}if(Z){console.log(Date.now()-Y,"Removing best seams");
Y=Date.now()}function R(G,r){var x=G<<2,X=r<<2;$[x]=E[X];$[x+1]=E[X+1];$[x+2]=E[X+2];$[x+3]=E[X+3]}for(var T=0;
T<a;T++){var I=0,G=T*P;for(var Q=0;Q<e;Q++,I++){if(e<P){while(N[G+I]==65280)I++;R(T*e+Q,T*P+I)}else{R(T*e+Q,T*P+I);
while(N[G+I]>=65280){N[G+I]--;Q++;R(T*e+Q,T*P+I)}}}}if(Z){console.log(Date.now()-Y,"Shifting image pixels");
Y=Date.now()}};s.$p.agc=function(h,e,$,Z,c,q){var E=0,G=h*e;while(E<e){if($[G-e]==1){q[E]=q[E]+Z[G];
E++;G++}else{var P=c[E];c[E]=c[E+1];c[E+1]=P;var a=q[E];q[E]=q[E+1]+Z[G];q[E+1]=a+Z[G+1];E+=2;G+=2}}};
s.$p.aim=function(h,e,$,Z){function c(h,G,a){var H=G<<2,_=a<<2,J=h[H]-h[_],S=h[H+1]-h[_+1],N=h[H+2]-h[_+2];
return Math.abs(J)+Math.abs(S)+Math.abs(N)}for(var q=1;q<e;q++){var E=c(h,q,q-1);Z[q-1]+=E;Z[q]+=E}for(var P=1;
P<$;P++){var a=P*e,E=c(h,a,a-e);Z[a]+=E;Z[a-e]+=E;for(var q=1;q<e;q++){var G=P*e+q,j=c(h,G,G-1),L=c(h,G,G-e);
Z[G-e]+=L;Z[G-1]+=j;Z[G]+=L+j}}for(var P=0;P<$;P++){Z[P*e]*=2;Z[P*e+e-1]*=2}for(var G=0;G<Z.length;G++)if(Z[G]==0)Z[G]=1};
s.UP=function(){var h=0,e=0,Z=15,q=256;function $(L,H,_,J,S,N){var Y=(S-1)*H,U=N*H;return L[U+J]-L[U+_-1]-L[Y+J]+L[Y+_-1]}var c=Math.round(Z/8),E=[];
function P(L,H){for(var _=0;_<H.length;_++){var J=H[_],S=0,N=0,Y=L[J.Bf],U=Y.mF,g=Y.EN,M=Y.CD;for(var C=-Z;
C<=Z;C++)for(var y=-Z;y<=Z;y++){var i=y+J.alM,Q=C+J.abn;if(y*y+C*C>Z*Z||i<0||Q<0||i>=g||Q>=g)continue;
var m=U[Q*g+i];S+=y*m;N+=C*m}J.w0=Math.atan2(N,S)}}function a(L,H,_,J,S){var N=~~(L+.5),Y=~~(H+.5);return $(_,J,N-c,N+c,Y-c,Y+c)}function j(L,H,_,J,S){h=J;
e=S;if(E.length==0){var N=new s.p.nD(16200817),M=8,C=0;function Y(hl){var u=hl[0]-hl[2],K=hl[1]-hl[3];
return u*u+K*K}function U(){var hl=0,ht=0;while(hl===0)hl=N.get();while(ht===0)ht=N.get();return Math.sqrt(-2*Math.log(hl))*Math.cos(2*Math.PI*ht)}var g=U,y=[];
while(C!=q){var i=Math.max(-Z,Math.min(Z,g()*M)),Q=Math.max(-Z,Math.min(Z,g()*M)),m=Math.max(-Z,Math.min(Z,g()*M)),n=Math.max(-Z,Math.min(Z,g()*M)),u=i-m,K=Q-n,F=Math.sqrt(u*u+K*K);
if(F<3||F>12)continue;E.push(i,Q,m,n);C++}}var b=20;for(var d=0;d<H.length;d++){var W=H[d],A=L[W.Bf],z=A.ug,_=A.mF,J=A.EN,S=A.CD,T=W.alM,R=W.abn,I=W.w0,r=Math.cos(I),x=Math.sin(I),X=new Uint8Array(q>>>3);
W.TJ=X;for(var G=0;G<q;G++){var l=G*4,i=E[l+0],Q=E[l+1],m=E[l+2],n=E[l+3],hH=r*i-x*Q,hZ=x*i+r*Q,gj=r*m-x*n,hO=x*m+r*n,d3=a(T+hH,R+hZ,z,J,S),v=a(T+gj,R+hO,z,J,S);
X[G>>>3]|=(d3<v?0:1)<<(G&7)}}}return{anl:P,a4v:j}}();s.akC=function(){var h=0,e=0;function $(q,E,P,a,j,L){var H=(j-1)*E,_=L*E;
return q[_+a]-q[_+P-1]-q[H+a]+q[H+P-1]}function Z(q,E,P){var a=new Uint32Array(E*P);a[0]=q[0];for(var j=1;
j<E;j++)a[j]=a[j-1]+q[j];for(var L=1;L<P;L++){var G=L*E;a[G]=a[G-E]+q[G];for(var j=1;j<E;j++)a[G+j]=q[G+j]+a[G+j-1]+a[G+j-E]-a[G+j-E-1]}return a}function c(q,E){var P=[[9]],a=Date.now(),j=[];
for(var L=0;L<q.length;L++){var H=q[L],_=H.ug,J=h=H.EN,S=e=H.CD,U=9,Q=1,R=24;if(_==null)continue;var N=new Float32Array(J*S),Y=new Uint8Array(J*S),g=U>>>1,M=g>>>1,C=Math.round(U/3);
if(C!=U/3)throw"e";var y=1/(U*U),i=1.2*(U/9);for(var m=g+1;m<S-g;m+=Q)for(var n=g+1;n<J-g;n+=Q){var u=$(_,J,n-M,n+M,m-g,m+g)-3*$(_,J,n-M,n+M,m-g+C,m+g-C),K=$(_,J,n-g,n+g,m-M,m+M)-3*$(_,J,n-g+C,n+g-C,m-M,m+M),F=n-g+1,b=n+g-1,d=m-g+1,W=m+g-1,A=$(_,J,F,n-1,d,m-1)+$(_,J,n+1,b,m+1,W)-$(_,J,n+1,b,d,m-1)-$(_,J,F,n-1,m+1,W),z=(K*u-.9*A*(.9*A))*(y*y);
N[m*J+n]=Math.abs(z);Y[m*J+n]=z<0?0:1}var T=J*Q;for(var m=R;m<S-R;m+=Q)for(var n=R;n<J-R;n+=Q){var G=m*J+n,I=N[G];
if(I<16)continue;if(N[G-Q]>=I||N[G+Q]>=I)continue;if(N[G-T-Q]>=I||N[G-T]>=I||N[G-T+Q]>=I)continue;if(N[G+T-Q]>=I||N[G+T]>=I||N[G+T+Q]>=I)continue;
j.push({x:~~(n*H.fn+.5),y:~~(m*H.fn+.5),alM:n,abn:m,Bf:L,G:I,ac7:Y[G],Zp:i})}}if(E!=null){j.sort(function(hO,d3){return d3.G-hO.G});
j=j.slice(0,E)}return j;var r=[];for(var G=0;G<j.length;G++){var x=!0,X=j[G];for(var l=0;l<j.length;
l++){var hH=j[l];if(l!=G&&hH.G>X.G&&(hH.Bf==X.Bf+1||hH.Bf==X.Bf-1)){var hZ=X.x-hH.x,gj=X.y-hH.y;if(hZ*hZ+gj*gj<5){x=!1;
break}}}if(x)r.push(X)}console.log(j.length,r.length);return r}return{a2r:c}}();s.X1={};s.X1.akU=function(h){var e=h.length,$=s.X1.eR(h,!1),c=0,q=1;
throw"e";var Z=[];for(var G=0;G<e;G++)Z[G]=s.X1.Of($[G]);var E=h[0][1],P=s.X1.match($[c],$[q],Z[q]);
console.log(P.length);var a=Math.max(Math.min(P.length,40),P.length*.54);a=Math.min(a,200);var j=P.slice(0,a),L=s.G$.a53($[c],$[q],j,E.d,E.v),H=s.G$.aoD(L,[0,0,0],1),_=E.d/2,J=E.v/2,S=1/Math.max(_,J);
for(var G=0;G<1;G++){var N=j[G],Y=$[c][N[0]],U=$[q][N[1]],g=s.G$.aoF(H,S*(Y.x-_),S*(Y.y-J),S*(U.x-_),S*(U.y-J))}var M=s.G$.aaz(L,E),C=[];
for(var G=0;G<2;G++){var y=M[G],i=[y[0][0],y[0][1],y[0][2],y[1][0],y[1][1],y[1][2],y[2][0],y[2][1]],Q=f.o.Pf(h[G],null,i);
C.push([Q.buffer,Q.rect])}return[s.X1.aa1(C[0],C[1],$[c],$[q],j,L,M,E)]};s.X1.Uv=function(h,e){var $=h.length,Z=!1,c=Date.now(),q=s.X1.eR(h,!1,1e4);
if(Z)console.log("Descriptors ready",Date.now()-c);c=Date.now();for(var G=0;G<$;G++){var E=h[G][1];for(var P=0;
P<q[G].length;P++){q[G][P].x+=E.x;q[G][P].y+=E.y}}if(Z)console.log("shifted",Date.now()-c);c=Date.now();
var a=[];for(var G=0;G<$;G++)a[G]=s.X1.Of(q[G]);if(Z)console.log("trees built",Date.now()-c);c=Date.now();
var j=[];for(var G=0;G<$-1;G++)for(var P=G+1;P<$;P++){var L=s.X1.match(q[G],q[P],a[P]);if(Z)console.log("Matches found",G,P,L.length);
L=L.slice(0,L.length>>>1);if(L.length<10)return null;var H=s.X1.amM(q[G],q[P],L,2);j.push([G,P,L,H])}j.sort(function(n,u){return u[2].length-n[2].length});
if(Z)console.log("Matches found",Date.now()-c);c=Date.now();var _=[],J=new UnionFind($);for(var G=0;
G<j.length;G++){var S=j[G],N=J.find(S[0]),Y=J.find(S[1]);if(N!=Y){_.push(S);J.link(N,Y)}}var U=[];for(var G=0;
G<$;G++)U[G]=[1,0,0,0,1,0,0,0];var g=[0],M=new Uint8Array($);M[g[0]]=1;while(g.length!=0){var Y=g.pop(),H=U[Y],C=[];
for(var G=0;G<_.length;G++){var S=_[G],y=S[0],i=S[1];if(y==Y&&M[i]==0){U[i]=s.I.n_(H,S[3]);g.push(i);
M[i]=1}if(i==Y&&M[y]==0){U[y]=s.I.n_(H,s.I.vy(S[3]));g.push(y);M[y]=1}}}if(e==null){var Q=[];for(var G=0;
G<$;G++)Q.push([U[G][2],G]);Q.sort(function(n,u){return n[0]-u[0]});e=Q[Q.length>>>1][1]}var m=s.I.vy(U[e]);
for(var G=0;G<$;G++)U[G]=s.I.n_(U[G],m);if(Z)console.log("Transforms reordered",Date.now()-c);c=Date.now();
return U};s.X1.eR=function(h,e,$){var Z=[],c=!1;for(var G=0;G<h.length;G++){var q=h[G][0],E=h[G][1],P=E.d,a=E.v,j=s.m(E.X());
s.yh(q,j);var L=Date.now(),H=s.X1.agY(j,E,!0);if(c)console.log("Pyramid built ---------------",Date.now()-L);
L=Date.now();var _=s.akC.a2r(H,$);if(c)console.log("SURF Generation",Date.now()-L);L=Date.now();if(!e){s.UP.anl(H,_);
if(c)console.log("ORB Orientations",Date.now()-L);L=Date.now();s.UP.a4v(H,_,j,P,a);if(c)console.log("ORB Descriptors",Date.now()-L);
L=Date.now()}Z.push(_)}return Z};s.X1.agY=function(h,e,$){function Z(j,H,_){var S=new Uint32Array(H*_);
S[0]=j[0];for(var N=1;N<H;N++)S[N]=S[N-1]+j[N];for(var Y=1;Y<_;Y++){var G=Y*H;S[G]=S[G-H]+j[G];for(var N=1;
N<H;N++)S[G+N]=j[G+N]+S[G+N-1]+S[G+N-H]-S[G+N-H-1]}return S}var c=[],q=[h,e];s.oN(q);if($){var E=s.gK(h,e),P=E.rect,a=[E.Hl,P];
s.oN(a)}for(var G=0;G<q.length;G++){var j=q[2*G],L=q[2*G+1],H=L.d,_=L.v,J=Math.min(H,_);if(J<30)break;
if(J<1600)c.push({mF:j,EN:H,CD:_,fn:1<<G,ug:Z(j,H,_)});if(!$)continue;var j=a[2*G],L=a[2*G+1],H=L.d,_=L.v,J=Math.min(H,_);
if(J<30)break;if(J<1600)c.push({mF:j,EN:H,CD:_,fn:(1<<G)*3/2,ug:Z(j,H,_)})}return c};s.X1.amM=function(h,e,$,Z){var c=Date.now(),q,E=0,P=0,a=$.length,j=new Float64Array(2);
for(var L=0;L<3e3;L++){var H=~~(Math.random()*a),_=~~(Math.random()*a),J=~~(Math.random()*a),S=~~(Math.random()*a),d=0,W=0;
if(H==_||H==J||H==S||_==J||_==S||J==S)continue;var N=$[H],Y=$[_],U=$[J],g=$[S],M=h[N[0]],C=e[N[1]],y=h[Y[0]],i=e[Y[1]],Q=h[U[0]],m=e[U[1]],n=h[g[0]],u=e[g[1]],K=[M.x,M.y,y.x,y.y,Q.x,Q.y,n.x,n.y],F=[C.x,C.y,i.x,i.y,m.x,m.y,u.x,u.y],b=s.I.SZ(K,F);
if(b[0]==0&&b[1]==0&&b[3]==0&&b[4]==0)continue;var A=a-E+2;for(var G=0;G<a&&G-d<A;G++){var z=h[$[G][0]],T=e[$[G][1]];
s.I.YG(T.x,T.y,b,j);var R=j[0]-z.x,I=j[1]-z.y,r=R*R+I*I;if(r<Z){d++;W+=r}}if(d>E||d==E&&W<P){q=b;E=d;
P=W}}return q};var aw=new Uint8Array(256);for(var G=0;G<256;G++){var d6=0,t=G;while(t!=0){t=t&t-1;d6++}aw[G]=d6}s.X1.a66=function(h,e,$){var Z=0,c=h.length;
for(var G=0;G<c&&Z<$;G++)Z+=aw[h[G]^e[G]];return Z};s.X1.afZ=function(h,e,$,top,Z){if(Z[$]==1)return;
var c=s.X1.a66(h.TJ,e.TJ,top[0]);if(c<top[0]){if(c<top[2]){top[0]=top[2];top[1]=top[3];top[2]=c;top[3]=$}else{top[0]=c;
top[1]=$}}Z[$]=1};s.X1.Of=function(h){var e=[],$=[],Z=[[],[]],c=4;for(var G=0;G<h.length;G++)(h[G].ac7==0?e:$).push(G);
for(var q=0;q<2;q++){var E=new Array(c),P=[],a=q==0?e:$,j=a.length/256,L=[];for(var H=0;H<32;H++){var _=new Array(256),N=0;
for(var J=0;J<256;J++)_[J]=[];for(var J=0;J<a.length;J++){var S=a[J];_[h[S].TJ[H]].push(S)}for(var J=0;
J<256;J++)N+=Math.abs(_[J].length-j);L.push([N,H,_])}L.sort(function(Y,U){return Y[0]-U[0]});var P=[],E=[];
Z[q]=[P,E];for(var G=0;G<c;G++){P.push(L[G][1]);E.push(L[G][2])}}return Z};s.X1.match=function(h,e,$){var Z=[],c=new Uint16Array(e.length);
c.fill(65535);var q=new Uint8Array(e.length),top=new Uint32Array(4),E=[];for(var P=0;P<h.length;P++){var a=h[P],j=a.TJ;
top.fill(1e6);q.fill(0);var L=$[a.ac7];for(var H=0;H<L[1].length;H++){var _=L[1][H][j[L[0][H]]];for(var J=0;
J<_.length;J++){var S=_[J];s.X1.afZ(a,e[S],S,top,q)}}if(top[2]<50&&top[2]<top[0]*.5){var N=c[top[3]];
if(N==65535){c[top[3]]=Z.length;Z.push([P,top[3],top[2]])}else if(top[2]<Z[N][2]){Z[N]=[P,top[3],top[2]]}}}Z.sort(function(Y,U){return Y[2]-U[2]});
return Z};s.X1.ada=function(h){var e=new O;for(var G=0;G<h.length;G++)e=e.iJ(h[G][1]);var $=s.m(e.X()*4);
for(var G=0;G<h.length;G++)s.p.Jn("norm",h[G][0],h[G][1],$,e,e,1);return[$,e]};s.X1.aa1=function(h,e,$,Z,c,q,E,P){var a=h[1].clone(),j=a.clone();
a.x=a.y=0;var L=e[1].clone(),H=L.clone();L.x=L.y=0;L.x=a.d;var _=a.iJ(L),J=H.y-j.y,S=s.m(_.X()*4);s.hX(h[0],a,S,_);
s.hX(e[0],new O(L.x,L.y+J,L.d,L.v),S,_);var N=document.createElement("canvas");N.width=_.d;N.height=_.v;
var Y=N.getContext("2d");Y.lineWidth=.5;Y.putImageData(new ImageData(new Uint8ClampedArray(S.buffer),_.d,_.v),0,0);
if(q){var U=q[0],g=s.FC.JR(U),M=a.d,C=P.d;for(var G=0;G<c.length;G++){var y=c[G],h=$[y[0]],e=Z[y[1]];
Y.strokeStyle="#"+"ff0000";Y.beginPath();var i=s.G$.a92(g,E[0],e,0,C),Q=s.G$.a92(U,E[1],h,0,C);Y.moveTo(-j.x+i[0],-j.y+i[1]);
Y.lineTo(-j.x+i[2],-j.y+i[3]);Y.moveTo(M-H.x+Q[0],-H.y+J+Q[1]);Y.lineTo(M-H.x+Q[2],-H.y+J+Q[3]);Y.stroke()}}if(c){var m=c.length;
for(var G=0;G<m;G++){var y=c[G],h=$[y[0]],e=Z[y[1]];Y.strokeStyle="#"+"ffff00"}}var n=new Uint8Array(Y.getImageData(0,0,_.d,_.v).data.buffer);
if(!1){for(var u=0;u<2;u++){var b=u==0?$:Z,d=u*a.d;for(var G=0;G<b.length;G++){var W=b[G],A=~~W.x,z=~~W.y,T=(z*_.d+A+d)*4;
n[T+1]=n[T+2]=W.ajV*60;n[T+0]=0;n[T+3]=255}}}return[n,_]};s.stack={};s.stack.stack=function(h,e,$){var Z=h.length,c=e.length;
if(Z==1){e.set(h[0]);return}if($=="avrg"||$=="stdv"||$=="summ"||$=="vari"){var q=1/Z;for(var G=0;G<c;
G++){var E=0;for(var P=0;P<Z;P++)E+=h[P][G];var a=~~(E*q+.5);if($=="avrg"||(G&3)==3)e[G]=a;else if($=="summ")e[G]=255*Math.pow(Math.min(255,E)*(1/255),1/2.4);
else{var j=0;for(var P=0;P<Z;P++){var L=h[P][G]-a;j+=L*L}var H=Math.sqrt(j*q)*(1/255);if($=="stdv")e[G]=255*Math.pow(H,1/2.4);
else e[G]=255*Math.pow(H*H,1/2.4)}}}else if($=="maxx"){for(var G=0;G<c;G++){var _=0;for(var P=0;P<Z;
P++)_=Math.max(_,h[P][G]);e[G]=_}}else if($=="minn"){for(var G=0;G<c;G++){var _=255;for(var P=0;P<Z;
P++)_=Math.min(_,h[P][G]);e[G]=_}}else if($=="medn"||$=="rang"){var J=function(U,g){return U-g},S=new Array(Z),N=0,Y=0;
if(Z%1==0){Y=Z>>>1;N=Y-1}else{N=Y=Z>>>1}for(var G=0;G<c;G++){for(var P=0;P<Z;P++)S[P]=h[P][G];S.sort(J);
if($=="medn")e[G]=S[N]+S[Y]>>>1;else e[G]=(G&3)==3?S[Z-1]:S[Z-1]-S[0]}}else console.log($)};s.G0={};
s.G0.aln=function(h,e,$,Z,c){var q=s.G0.bX(h.buffer,e,$).J3,E=Date.now(),P=new Uint32Array(q.length);
for(var G=0;G<q.length;G++)P[G]=q[G].Ma;var a=UPNG.quantize.getKDtree(new Uint8Array(P.buffer),Z),j=[e,1,-e,-1,e+1,-e+1,-e-1,e-1,e+e,2,-e-e,-2,e+e-1,e+e+1,e+2,-e+2,-e-e+1,-e-e-1,-e-2,e-2,e+e+2,-e-e+2-e-e-2,e+e-2],L=new Uint8Array(e*$),H=h;
for(var _=0;_<$;_++)for(var J=0;J<e;J++){var G=_*e+J<<2,S=H[G]*(1/255),N=H[G+1]*(1/255),Y=H[G+2]*(1/255),U=H[G+3]*(1/255),g=s.G0.bg(a,S,N,Y,U,c);
if(g==null){var M=[],C=0;while(C<20){var y=_*e+J+j[C]<<2,i=H[y]*(1/255),Q=H[y+1]*(1/255),m=H[y+2]*(1/255),n=H[y+3]*(1/255),u=s.G0.bg(a,i,Q,m,n,.005);
if(u!=null){if(M.indexOf(u)==-1){M.push(u);u.m1=1}else u.m1++}C++}M.sort(function(U,Y){return Y.m1-U.m1});
while(M.length!=0&&M[M.length-1].m1<3)M.pop();if(M.length==0)g=s.G0.bg(a,S,N,Y,U,100);else if(M.length==1)g=M[0];
else if(M.length==2){var K=M[0],F=M[1],b=K.est.q,d=F.est.q,W=d[0]-b[0],A=d[1]-b[1],z=d[2]-b[2],T=d[3]-b[3],R=S-b[0],I=N-b[1],r=Y-b[2],x=U-b[3],X=W*W+A*A+z*z+T*T,l=R*R+I*I+r*r+x*x,hH=(R*W+I*A+r*z+x*T)/X,hZ=l-hH*hH*X;
if(hZ<.5)g=hH<.5?K:F;else{g=s.G0.bg(a,S,N,Y,U,100)}}else{var K=M[0],F=M[1],gj=M[2],b=K.est.q,d=F.est.q,hO=gj.est.q,d3=b[0]-hO[0],v=b[1]-hO[1],hl=b[2]-hO[2],ht=b[3]-hO[3],ga=d[0]-hO[0],eB=d[1]-hO[1],bP=d[2]-hO[2],ek=d[3]-hO[3],b_=hO[0]-S,fz=hO[1]-N,ca=hO[2]-Y,gf=hO[3]-U,bb=d3*d3+v*v+hl*hl+ht*ht,b2=d3*ga+v*eB+hl*bP+ht*ek,dV=b_*d3+fz*v+ca*hl+gf*ht,ch=d3*ga+v*eB+hl*bP+ht*ek,hE=ga*ga+eB*eB+bP*bP+ek*ek,dS=b_*ga+fz*eB+ca*bP+gf*ek,e1=1/(b2*ch-bb*hE),hH=(hE*dV-dS*b2)*e1,eG=(dS*bb-dV*ch)*e1,dq=1-hH-eG,f2=Math.max(hH,eG,dq);
if(f2==hH)g=K;else if(f2==eG)g=F;else g=gj}}L[G>>2]=g.ind}return{MW:L,J3:a[1]}};s.G0.bX=function(h,e,$){var Z=[],c={},q=e-1,E=$-1,P=0,a=new Uint32Array(h),j=[-e-1,-e,-e+1,-1,1,e-1,e,e+1,e+e,2,-e-e,-2,e+e-1,e+e+1,e+2,-e+2,-e-e+1,-e-e-1,-e-2,e-2,e+e+2,-e-e+2-e-e-2,e+e-2];
for(var L=1;L<E;L++)for(var H=1;H<q;H++){var _=L*e+H,J=a[_],S=!0;for(var G=0;G<8;G++)S=S&&a[_+j[G]]==J;
if(S){P++;var N=c[J];if(N==null){c[J]=Z.length;Z.push({Ma:J,sf:1})}else Z[N].sf++}}return{J3:Z,ad8:P}};
s.G0.bg=function(h,e,$,Z,c,q){var E=UPNG.quantize.getNearest(h[0],e,$,Z,c);return s.G0.a3a(E,e,$,Z,c)<q?E:null};
s.G0.a3a=function(h,e,$,Z,c){var q=h.est.q,E=e-q[0],P=$-q[1],a=Z-q[2],j=c-q[3];return E*E+P*P+a*a+j*j};
s.G0.acr=function(h,e,$,Z){var c=s.G0.a4U(h,e,$,Z),q=c.MW,E=c.J3,P=c.aac,a=UPNG.quantize.getKDtree(new Uint8Array(P.buffer.slice(0)),200),j=[];
for(var G=0;G<E.length;G++){var L=E[G].y2,H=L[0],_=L[1],J=L[2],S=L[3];if(Math.min(H,_,J,S)<0)throw"e";
var N=UPNG.quantize.getNearest(a[0],H/255,_/255,J/255,S/255);j.push(a[1].indexOf(N))}for(var G=0;G<e*$;
G++)q[G]=j[q[G]];return{MW:q,J3:a[1]}};s.G0.a4U=function(h,e,$,Z){var c=e*$,q=2*c,E=s.G0.alX(h,e,$),P=65535+1,a=new Uint32Array(P),L=0;
for(var G=0;G<q;G++)a[E[G]]++;var j=new Uint32Array(P);for(var G=0;G<P;G++){j[G]=L;L+=a[G]}var H=new Uint32Array(q);
for(var G=0;G<q;G++){var _=E[G];H[j[_]]=G;j[_]++}var J=new UnionFind(c),S=new Uint16Array(c),N=new Uint32Array(c);
for(var G=0;G<c;G++)N[G]=1;var Y=c,U=1e5/(Z*10);for(var g=0;g<q;g++){var M=H[g],C=E[M];if(C==65535)continue;
var G=M>>1,y=G+((M&1)==0?1:e),i=J.find(G),Q=J.find(y),m=Math.min(S[i]+U/Math.sqrt(N[i]),S[Q]+U/Math.sqrt(N[Q]));
if(i!=Q&&C<=m){J.link(G,y);Y--;var n=J.find(G);N[n]=N[i]+N[Q];S[n]=C}}var u=[],K={},F=new Uint16Array(c);
for(var G=0;G<c;G++){var n=J.find(G),b=K[n];if(b==null){K[n]=b=u.length;u.push({sf:0,y2:[0,0,0,0]})}u[b].sf++;
for(var y=0;y<4;y++)u[b].y2[y]+=h[(G<<2)+y];F[G]=b}var d=new Uint32Array(u.length);for(var G=0;G<u.length;
G++){var b=u[G];for(var y=0;y<4;y++)b.y2[y]=Math.round(b.y2[y]/b.sf);d[G]=b.y2[3]<<24|b.y2[2]<<16|b.y2[1]<<8|b.y2[0]}return{MW:F,J3:u,aac:d}};
s.G0.alX=function(h,e,$){var Z=new Uint16Array(e*$*2);for(var c=0;c<$;c++)for(var q=0;q<e;q++){var G=c*e+q;
Z[G+G]=q<e-1?s.G0.tB(h,G,G+1):65535;Z[G+G+1]=c<$-1?s.G0.tB(h,G,G+e):65535}return Z};s.G0.tB=function(h,G,e){var $=G<<2,Z=e<<2,c=h[$],q=h[$+1],E=h[$+2],P=h[$+3],a=h[Z],j=h[Z+1],L=h[Z+2],H=h[Z+3],_=c-a,J=q-j,S=E-L,N=P-H;
return _*_+J*J+S*S+N*N>>2};s.G0.Mk=function(){function h(U,g,M,C,y,i){var Q=[],m=i,n=i,u=i>>>2;for(var K=0;
K<y;K++)for(var F=0;F<C;F++){var b=~~((F+.5)*m),d=~~((K+.5)*n),W=1e9,A=Math.max(0,b-u),z=Math.min(g,b+u+1),T=Math.max(0,d-u),R=Math.min(M,d+u+1);
for(var I=T;I<R;I++)for(var r=A;r<z;r++){var x=e(U,g,r,I);if(x<W){b=r;d=I;W=x}}var X=(d*g+b)*4;Q.push(b,d)}return Q}function e(U,g,M,C){var y=(C*g+M)*4,i=g*4,Q=$(U,y-4,y)+$(U,y,y+4),m=$(U,y-i,y)+$(U,y,y+i);
return Q+m}function $(U,g,M){var C=U[g]-U[M],y=U[g+1]-U[M+1],i=U[g+2]-U[M+2];return C*C+y*y+i*i}var Z=0,c=0;
function q(U,g,M,C){c++;if(C<Z)Z=C;U[C].push(g,M)}function E(U){c--;while(U[Z].length==0)Z++}function P(U,g,M){Z=0;
c=0;var C=g*M,y=Math.round(Math.min(g,M)/50),d=0,W=16;if(y==0)y=1;var i=30/y,Q=Math.floor(g/y),m=Math.floor(M/y),n=new Uint16Array(C);
for(var G=0;G<C;G++)n[G]=65535;var u=h(U,g,M,Q,m,y),K=u.length>>>1;if(K>65535)throw K;var F=[];for(var G=0;
G<1e3+M;G++)F.push([]);var b=[0,1,0,-1,-1,0,1,0],A=Math.min(m,5),z=new Uint32Array(K*6);for(var T=0;
T<m;T+=A){var R=Math.min(T+A+1,m);for(var I=T;I<R;I++)for(var r=0;r<Q;r++){var G=I*Q+r,x=G*2,X=u[x+1]<<16|u[x];
q(F,X,G,u[x+1]>>>W)}var l=Math.min(M,R*y);if(T+A>=m)l=M;while(c!=0){E(F);var hH=F[Z].pop(),hZ=F[Z].pop(),gj=hZ>>>16,hO=hZ&65535,G=gj*g+hO;
if(n[G]==65535){var d3=hH*6,v=G<<2;n[G]=hH;z[d3]+=U[v];z[d3+1]+=U[v+1];z[d3+2]+=U[v+2];z[d3+3]+=hO;z[d3+4]+=gj;
z[d3+5]++;var hl=gj>>>W;if(gj!=l-1&&n[G+g]==65535)q(F,gj+1<<16|hO,hH,a(U,g,i,hO,gj+1,z,d3)+hl);if(gj!=0&&n[G-g]==65535)q(F,gj-1<<16|hO,hH,a(U,g,i,hO,gj-1,z,d3)+hl);
if(hO!=0&&n[G-1]==65535)q(F,gj<<16|hO-1,hH,a(U,g,i,hO-1,gj,z,d3)+hl);if(hO!=g-1&&n[G+1]==65535)q(F,gj<<16|hO+1,hH,a(U,g,i,hO+1,gj,z,d3)+hl)}}if(l!=gj){var ht=(T+A)*Q;
z.fill(0,ht*6,(ht+Q)*6);for(var gj=(T+A-2)*y;gj<l;gj++)for(var hO=0;hO<g;hO++){var G=gj*g+hO;if(n[G]>=ht){n[G]=65535}}}}return{MW:n,el:K,sQ:z}}s.G0.SX=function(U,g,M,C,y){var i=U.el,Q=g*M,m=U.sQ,n=U.MW,u=J(C,n,i,Q),K=new UnionFind(i),z=0;
for(var F=1;F<M;F++)for(var b=1;b<g;b++){var G=F*g+b,d=n[G],W=0;if((W=n[G-1])!=d&&u[W]==u[d]&&j(m,0,d*6,W*6)<y)K.link(d,W);
if((W=n[G-g])!=d&&u[W]==u[d]&&j(m,0,d*6,W*6)<y)K.link(d,W)}var A=new Uint16Array(i);A.fill(65535);var T=new Uint16Array(i);
for(var G=0;G<i;G++){var R=K.find(G);if(A[R]==65535)A[R]=z++;T[G]=A[R]}var I=new Uint16Array(Q);for(var G=0;
G<Q;G++)I[G]=T[n[G]];return{MW:I,el:z}};s.G0.ai6=function(U,g,M,C){var y=s.m(M),i=g.length,Q=0;for(var G=0;
G<i&&Q!=3;G++){var m=C[G];if(m==0||m==255){var n=g[G],u=2-(m>>>7);y[n]=Q=y[n]|u}}return Q!=3};function a(U,g,M,C,y,i,Q){var m=(y*g+C)*4,n=i[Q+5],u=1/n,K=U[m]*n-i[Q],F=U[m+1]*n-i[Q+1],b=U[m+2]*n-i[Q+2],d=C*n-i[Q+3],W=y*n-i[Q+4],A=Math.sqrt(K*K+F*F+b*b),z=Math.sqrt(d*d+W*W);
return~~((A+M*z)*u+.5)}function j(U,g,M,C){var y=1/U[M+5],i=1/U[C+5],Q=U[M]*y-U[C]*i,m=U[M+1]*y-U[C+1]*i,n=U[M+2]*y-U[C+2]*i,u=U[M+3]*y-U[C+3]*i,K=U[M+4]*y-U[C+4]*i,F=Math.sqrt(Q*Q+m*m+n*n),b=Math.sqrt(u*u+K*K);
return~~(F+g*b+.5)}function L(U,g,M){var C=s.hg(U,new O(0,0,g,M)),y=C.rect.d,i=C.rect.v,Q=P(C.Hl,y,i),m=Q.MW,n=Date.now(),u=new Uint16Array(g*M);
u.fill(65535);for(var K=0;K<i;K++){for(var F=0;F<y;F++){var b=K*y+F,G=(K<<1)*g+(F<<1),d=m[b];if(m[b-y]!=d||m[b-1]!=d||m[b+1]!=d||m[b+y]!=d)d=65535;
u[G]=d;u[G+1]=d;u[G+g]=d;u[G+g+1]=d}}Q.MW=u;return Q}function H(U,g){var G=0,M=U.length;while(G!=M&&U[G]!=g)G+=2;
return G==M?-1:G}function _(U,G){if(G==U.length-2){U.pop();U.pop()}else{U[G+1]=U.pop();U[G]=U.pop()}}s.G0.ahC=function(U,g,M,C,y){var i=new Uint32Array(y*4400),e=[];
for(var G=0;G<y;G++)e.push([]);for(var Q=0;Q<M;Q++)for(var m=0;m<g;m++){var G=Q*g+m,n=G<<2,u=C[G],K=0,F=U[n]>>>4,b=U[n+1]>>>4,d=U[n+2]>>>4;
i[u*4400+(F<<8|b<<4|d)]++;i[u*4400+4096]++;i[u*4400+4100+(F<<4|b)]++;i[u*4400+4360+F]++;if(m!=0&&(K=C[G-1])!=u&&H(e[u],K)==-1){e[u].push(K,0);
e[K].push(u,0)}if(Q!=0&&(K=C[G-g])!=u&&H(e[u],K)==-1){e[u].push(K,0);e[K].push(u,0)}}for(var G=0;G<y;
G++){var d=e[G];for(var W=0;W<d.length;W+=2)d[W+1]=Y(i,G,d[W])}return[i,e]};function J(U,g,M,C){var y=s.m(M);
for(var G=0;G<C;G++){var i=U[G];if(i==0||i==255)y[g[G]]=2-(i>>>7)}return y}s.G0.a4V=function(U,g,M,C,y,i,Q){var m=g*M,n=Q[0],e=Q[1],u=new UnionFind(C),K=J(y,U,C,m),F=-1,b=!0,d=0;
for(var G=0;G<C;G++)if(K[G]==1){if(F==-1)F=G;else u.link(G,F)}if(F==-1){for(var G=0;G<m;G++)i[G]=y[G]==255?255:0;
return}while(b){while(b){b=!1;for(var G=0;G<C;G++){if(K[G]==0){var W=S(e[G]);if(K[W]==1){K[G]=K[W];b=!0;
u.link(G,W)}}}}b=!0;d=0;while(b){b=!1;for(var G=0;G<C;G++){if(K[G]==0){var W=S(e[G]);if(K[W]==0){var A=G*4400,z=W*4400;
for(var T=0;T<4400;T+=2){n[A+T]+=n[z+T];n[A+T+1]+=n[z+T+1]}N(e,n,G,W);d++;K[W]=3;b=!0;u.link(G,W)}}}}b=d!=0}var R=u.find(F);
for(var G=0;G<C;G++)K[G]=u.find(G)==R?255:0;for(var G=0;G<m;G++){i[G]=K[U[G]]}for(var G=0;G<m;G++){var W=y[G];
if(W==0||W==255)i[G]=W}};function S(U){var g=0,M=0,C=U.length;for(var y=0;y<C;y+=2){var i=U[y+1];if(i>M){M=i;
g=y}}return U[g]}function N(e,U,g,M){var C=e[g],y=e[M];_(C,H(C,M));_(y,H(y,g));for(var G=0;G<y.length;
G+=2){var i=y[G],Q=e[i];_(Q,H(Q,M));if(H(Q,g)==-1){Q.push(g,0);C.push(i,0)}}for(var G=0;G<C.length;G+=2){var i=C[G],Q=e[i],m=Y(U,g,i);
C[G+1]=m;Q[H(Q,g)+1]=m}}function Y(U,g,M){var C=0,y=4096,i=g*4400,Q=M*4400;for(var m=0;m<16;m++){if(U[i+4360+m]==0||U[Q+4360+m]==0)continue;
for(var n=0;n<16;n++){var u=m<<4|n;if(U[i+4100+u]==0||U[Q+4100+u]==0)continue;var K=i+(u<<4),F=Q+(u<<4);
for(var G=0;G<16;G++)C+=Math.sqrt(U[K+G]*U[F+G])}}var b=C/Math.sqrt(U[i+y]*U[Q+y]);return~~(999.99999*b)}return P}();
var gx=function(){function h(){this.X=0;this.NX=0;this.ay={};this.vF=[];this.zN=1e5;this.Gc=1e5;this.xE=-1;
this.j6=-1;this.color=0}function e(t){this.aJ=t;this.S4=new Array(t);this.Ma=new Array(t*6);this.aiT=0;
this.gQ=new Array(t*2);this.alpha=new Array(t);this.wZ=new Array(t);this.U6=new Array(t)}function $(c,q,E,P){function a(Y,U,c,q){return c[q*U+Y]}function j(G){var Q=c.length;
while(G<Q&&c[G]==0)G++;return G<Q?G:-1}function L(Y,U,Q){for(var G=2;G<5;G++){var m=0;for(var n=-G+1;
n<=G-1;n++){m+=a(Y+n,U+G-1,c,q)==Q?1:-1;m+=a(Y+G-1,U+n-1,c,q)==Q?1:-1;m+=a(Y+n-1,U-G,c,q)==Q?1:-1;m+=a(Y-G,U+n,c,q)==Q?1:-1}if(m>0)return 1;
else if(m<0)return 0}return 0}function H(Q,S){var N=new h,Y=Q,U=S,m=0,n=1,u;N.color=c[S*q+Q];N.sign=a(Q,S,c,q)==N.color?"+":"-";
while(1){N.vF.push(Y,U);if(Y>N.xE)N.xE=Y;if(Y<N.zN)N.zN=Y;if(U>N.j6)N.j6=U;if(U<N.Gc)N.Gc=U;N.NX++;Y+=m;
U+=n;N.X-=Y*n;if(Y==Q&&U==S)break;var K=a(Y+(m+n-1>>1),U+(n-m-1>>1),c,q)==N.color,F=a(Y+(m-n-1>>1),U+(n+m-1>>1),c,q)==N.color;
if(F&&!K){if(P.GR=="right"||P.GR=="black"&&N.sign=="+"||P.GR=="white"&&N.sign=="-"||P.GR=="majority"&&L(Y,U,N.color)||P.GR=="minority"&&!L(Y,U,N.color)){u=m;
m=-n;n=u}else{u=m;m=n;n=-u}}else if(F){u=m;m=-n;n=u}else if(!K){u=m;m=n;n=-u}}return N}var _=0,J=[];
while(!0){var _=j(_);if(_==-1)break;var S=Math.floor(_/q),N=H(_-S*q,S);for(var G=0;G<N.vF.length-2;G+=2){var Y=N.vF[G],U=N.vF[G+1],g=U*q+Y;
if(Y==N.vF[G+2]&&U+1==N.vF[G+3]&&c[g]!=0)gx.fill(g,c,q,0)}if(N.X>P.aag)J.push(N)}for(var G=0;G<J.length;
G++)J[G].parent=-1;var M=Date.now();for(var G=1;G<J.length;G++){var C=J[G];for(var y=G-1;y>=0;y--){var i=J[y];
if(C.zN<i.zN||C.xE>i.xE||C.Gc<i.Gc||C.j6>i.j6)continue;if(!gx.aeS(i.vF,C.vF[0]+.5,C.vF[1]+.5))continue;
C.parent=y;break}}return J}function Z(c,q){function E(m,n,u,K,F){this.x=m;this.y=n;this.Q$=u;this.zc=K;
this.B_=F}function P(m,t){return(t+m)%t}function a(m,n,u,K){return m*K-u*n}function j(m,n,u,K){return m*u+n*K}function L(m,n,u){if(m<=u)return m<=n&&n<u;
else return m<=n||n<u}function H(m,n,u){var K=0;K+=n*m[0]*n;K+=n*m[1]*u;K+=n*m[2];K+=u*m[3]*n;K+=u*m[4]*u;
K+=u*m[5];K+=m[6]*n;K+=m[7]*u;K+=m[8];return K}function _(m,n,u){return n+m*(u-n)}function J(m,n,u,K){var F=Math.sign(u-m),b=-Math.sign(K-n);
return F*(u-m)-b*(K-n)}function S(m,n){return Math.sqrt(m*m+n*n)}function N(m,n,u,K,F){var b=1-m;return b*b*b*n+3*(b*b*m)*u+3*(m*m*b)*K+m*m*m*F}function Y(m,n,u,K,F,b,d,W){var A=a(m,n,d,W),z=a(u,K,d,W),T=a(F,b,d,W),R=A-2*z+T,I=-2*A+2*z,r=A,x=I*I-4*R*r;
if(R==0||x<0)return-1;var X=Math.sqrt(x),l=(-I+X)/(2*R),hH=(-I-X)/(2*R);if(l>=0&&l<=1)return l;else if(hH>=0&&hH<=1)return hH;
else return-1}function U(Q){var G,m,n;Q.oW=Q.vF[0];Q.a86=Q.vF[1];Q.NC=[];var u=Q.NC;u.push(new E(0,0,0,0,0));
for(G=0;G<Q.NX;G++){m=Q.vF[G<<1]-Q.oW;n=Q.vF[(G<<1)+1]-Q.a86;u.push(new E(u[G].x+m,u[G].y+n,u[G].Q$+m*n,u[G].zc+m*m,u[G].B_+n*n))}}function g(Q){var t=Q.NX,m=Q.vF,n,u=new Array(t),K=new Array(t),F=new Array(4),b,d,W,A,z,T,R,I,r,x,X,G,l,hH,hZ,gj,hO,d3,v=0;
Q.M4=new Array(t);for(G=t-1;G>=0;G--){if(m[G<<1]!=m[v<<1]&&m[(G<<1)+1]!=m[(v<<1)+1])v=G+1;K[G]=v}for(G=t-1;
G>=0;G--){var hl=P(G+1,t)<<1;F[0]=F[1]=F[2]=F[3]=0;n=(3+3*(m[hl]-m[G<<1])+(m[hl+1]-m[(G<<1)+1]))/2;F[n]++;
b=0;d=0;W=0;A=0;v=K[G];hH=G;while(1){X=0;n=(3+3*Math.sign(m[v*2]-m[hH*2])+Math.sign(m[v*2+1]-m[hH*2+1]))/2;
F[n]++;if(F[0]&&F[1]&&F[2]&&F[3]){u[G]=hH;X=1;break}r=m[v*2]-m[G*2];x=m[v*2+1]-m[G*2+1];if(a(b,d,r,x)<0||a(W,A,r,x)>0){break}if(Math.abs(r)<=1&&Math.abs(x)<=1){}else{z=r+(x>=0&&(x>0||r<0)?1:-1);
T=x+(r<=0&&(r<0||x<0)?1:-1);if(a(b,d,z,T)>=0){b=z;d=T}z=r+(x<=0&&(x<0||r<0)?1:-1);T=x+(r>=0&&(r>0||x<0)?1:-1);
if(a(W,A,z,T)<=0){W=z;A=T}}hH=v;v=K[hH];if(!L(v,G,hH)){break}}if(X==0){R=Math.sign(m[v*2]-m[hH*2]);I=Math.sign(m[v*2+1]-m[hH*2+1]);
r=m[hH*2]-m[G*2];x=m[hH*2+1]-m[G*2+1];hZ=a(b,d,r,x);gj=a(b,d,R,I);hO=a(W,A,r,x);d3=a(W,A,R,I);l=1e7;
if(gj<0){l=Math.floor(hZ/-gj)}if(d3>0){l=Math.min(l,Math.floor(-hO/d3))}u[G]=P(hH+l,t)}}l=u[t-1];Q.M4[t-1]=l;
for(G=t-2;G>=0;G--){if(L(G+1,u[G],l)){l=u[G]}Q.M4[G]=l}for(G=t-1;L(P(G+1,t),l,Q.M4[G]);G--){Q.M4[G]=l}}function M(Q){function m(Q,G,n){var t=Q.NX,r=Q.vF,x=Q.NC,X,l,hH,hZ,gj,K,hO,d3,I,v,hl,ht,ga,eB,bP=0;
if(n>=t){n-=t;bP=1}if(bP==0){X=x[n+1].x-x[G].x;l=x[n+1].y-x[G].y;hZ=x[n+1].zc-x[G].zc;hH=x[n+1].Q$-x[G].Q$;
gj=x[n+1].B_-x[G].B_;K=n+1-G}else{X=x[n+1].x-x[G].x+x[t].x;l=x[n+1].y-x[G].y+x[t].y;hZ=x[n+1].zc-x[G].zc+x[t].zc;
hH=x[n+1].Q$-x[G].Q$+x[t].Q$;gj=x[n+1].B_-x[G].B_+x[t].B_;K=n+1-G+t}hl=(r[G<<1]+r[n<<1])/2-r[0];ht=(r[(G<<1)+1]+r[(n<<1)+1])/2-r[1];
eB=r[n<<1]-r[G<<1];ga=-(r[(n<<1)+1]-r[(G<<1)+1]);hO=(hZ-2*X*hl)/K+hl*hl;d3=(hH-X*ht-l*hl)/K+hl*ht;I=(gj-2*l*ht)/K+ht*ht;
v=ga*ga*hO+2*ga*eB*d3+eB*eB*I;return Math.sqrt(v)}var G,n,u,K,t=Q.NX,F=new Array(t+1),b=new Array(t+1),d=new Array(t),W=new Array(t+1),A=new Array(t+1),z=new Array(t+1),T,R,I;
for(G=0;G<t;G++){I=P(Q.M4[P(G-1,t)]-1,t);if(I==G){I=P(G+1,t)}if(I<G){d[G]=t}else{d[G]=I}}n=1;for(G=0;
G<t;G++){while(n<=d[G]){W[n]=G;n++}}G=0;for(n=0;G<t;n++){A[n]=G;G=d[G]}A[n]=t;u=n;G=t;for(n=u;n>0;n--){z[n]=G;
G=W[G]}z[0]=0;F[0]=0;for(n=1;n<=u;n++){for(G=z[n];G<=A[n];G++){R=-1;for(K=A[n-1];K>=W[G];K--){T=m(Q,K,G)+F[K];
if(R<0||T<R){b[G]=K;R=T}}F[G]=R}}Q.zC=u;Q.agE=new Array(u);for(G=t,n=u-1;G>0;n--){G=b[G];Q.agE[n]=G}}function C(Q){function m(Q,G,T,d,W,ek){var t=Q.NX,b_=Q.NC,fz=0,I;
while(T>=t){T-=t;fz+=1}while(G>=t){G-=t;fz-=1}while(T<0){T+=t;fz-=1}while(G<0){G+=t;fz+=1}var ca=b_[T+1].x-b_[G].x+fz*b_[t].x,gf=b_[T+1].y-b_[G].y+fz*b_[t].y,bb=b_[T+1].zc-b_[G].zc+fz*b_[t].zc,b2=b_[T+1].Q$-b_[G].Q$+fz*b_[t].Q$,dV=b_[T+1].B_-b_[G].B_+fz*b_[t].B_,R=T+1-G+fz*t;
d[ek]=ca/R;d[ek+1]=gf/R;var ch=(bb-ca*ca/R)/R,hE=(b2-ca*gf/R)/R,dS=(dV-gf*gf/R)/R,e1=(ch+dS+Math.sqrt((ch-dS)*(ch-dS)+4*hE*hE))/2;
ch-=e1;dS-=e1;if(Math.abs(ch)>=Math.abs(dS)){I=Math.sqrt(ch*ch+hE*hE);if(I!=0){W[ek]=-hE/I;W[ek+1]=ch/I}}else{I=Math.sqrt(dS*dS+hE*hE);
if(I!=0){W[ek]=-dS/I;W[ek+1]=hE/I}}if(I==0){W[ek]=W[ek+1]=0}}var n=Q.zC,u=Q.agE,t=Q.NX,K=Q.vF,F=Q.oW,b=Q.a86,d=new Array(n*2),W=new Array(n*2),A=new Array(n),z=new Array(3),G,T,R,I,l,hH,hZ,gj,hO,d3,v;
Q.ay=new e(n);for(G=0;G<n;G++){T=u[P(G+1,n)];T=P(T-u[G],t)+u[G];d[G<<1]=0;d[(G<<1)+1]=0;W[G<<1]=0;W[(G<<1)+1]=0;
m(Q,u[G],T,d,W,G<<1)}for(G=0;G<n;G++){A[G]=[0,0,0,0,0,0,0,0,0];var r=W[G<<1]*W[G<<1]+W[(G<<1)+1]*W[(G<<1)+1],x=1/r;
if(r!=0){z[0]=W[(G<<1)+1];z[1]=-W[G<<1];z[2]=-z[1]*d[(G<<1)+1]-z[0]*d[G<<1];for(I=0;I<3;I++){A[G][I*3+0]=z[I]*z[0]*x;
A[G][I*3+1]=z[I]*z[1]*x;A[G][I*3+2]=z[I]*z[2]*x}}}var X=[0,0,0,0,0,0,0,0,0];for(G=0;G<n;G++){X[0]=X[1]=X[2]=X[3]=X[4]=X[5]=X[6]=X[7]=X[8]=X[9]=0;
var hl=K[u[G]<<1]-F,ht=K[(u[G]<<1)+1]-b,ga=0,eB=0;T=P(G-1,n);for(I=0;I<9;I+=3){X[I+0]=A[T][I+0]+A[G][I+0];
X[I+1]=A[T][I+1]+A[G][I+1];X[I+2]=A[T][I+2]+A[G][I+2]}while(1){var bP=X[0]*X[4]-X[1]*X[3];if(bP!=0){ga=(-X[2]*X[4]+X[5]*X[0])/bP;
eB=(X[2]*X[3]-X[5]*X[0])/bP;break}if(X[0]>X[4]){z[0]=-X[1];z[1]=X[0]}else if(X[4]){z[0]=-X[4];z[1]=X[3]}else{z[0]=1;
z[1]=0}var r=z[0]*z[0]+z[1]*z[1],x=1/r;z[2]=-z[1]*ht-z[0]*hl;for(I=0;I<3;I++){X[I*3+0]+=z[I]*z[0]*x;
X[I*3+1]+=z[I]*z[1]*x;X[I*3+2]+=z[I]*z[2]*x}}l=Math.abs(ga-hl);hH=Math.abs(eB-ht);if(l<=.5&&hH<=.5){Q.ay.gQ[G<<1]=ga+F;
Q.ay.gQ[(G<<1)+1]=eB+b;continue}hZ=H(X,hl,ht);hO=hl;d3=ht;if(X[0]!=0){for(v=0;v<2;v++){eB=ht-.5+v;ga=-(X[1]*eB+X[2])/X[0];
l=Math.abs(ga-hl);gj=H(X,ga,eB);if(l<=.5&&gj<hZ){hZ=gj;hO=ga;d3=eB}}}if(X[4]!=0){for(v=0;v<2;v++){ga=hl-.5+v;
eB=-(X[3]*ga+X[5])/X[4];hH=Math.abs(eB-ht);gj=H(X,ga,eB);if(hH<=.5&&gj<hZ){hZ=gj;hO=ga;d3=eB}}}for(I=0;
I<2;I++){for(R=0;R<2;R++){ga=hl-.5+I;eB=ht-.5+R;gj=H(X,ga,eB);if(gj<hZ){hZ=gj;hO=ga;d3=eB}}}Q.ay.gQ[G<<1]=hO+F;
Q.ay.gQ[(G<<1)+1]=d3+b}}function y(Q){var m=Q.ay.aJ,n=Q.ay,G,u,K,F,b,d,W,A,z;for(G=0;G<m;G++){u=P(G+1,m);
K=P(G+2,m);var T=n.gQ[G<<1],R=n.gQ[(G<<1)+1],I=n.gQ[K<<1],r=n.gQ[(K<<1)+1],x=n.gQ[u<<1],X=n.gQ[(u<<1)+1],l=_(.5,I,x),hH=_(.5,r,X);
b=J(T,R,I,r);if(b!=0){F=a(x-T,X-R,I-T,r-R)/b;F=Math.abs(F);d=F>1?1-1/F:0;d=d*(1/.75)}else{d=4/3}n.wZ[u]=d;
var hZ=3*u<<1;if(d>=q.aas){n.S4[u]=0;n.Ma[hZ+0]=n.Ma[hZ+1]=0;n.Ma[hZ+2]=x;n.Ma[hZ+3]=X;n.Ma[hZ+4]=l;
n.Ma[hZ+5]=hH}else{if(d<.55){d=.55}else if(d>1){d=1}var gj=.5+.5*d;n.S4[u]=1;n.Ma[hZ]=_(gj,T,x);n.Ma[hZ+1]=_(gj,R,X);
n.Ma[hZ+2]=_(gj,I,x);n.Ma[hZ+3]=_(gj,r,X);n.Ma[hZ+4]=l;n.Ma[hZ+5]=hH}n.alpha[u]=d;n.U6[u]=.5}n.ai4=1}function i(Q){function m(){this.vP=0;
this.lN=0;this.RZ=0;this.tV=0;this.GP=0;this.A2=0;this.Zp=0;this.alpha=0}function n(Q,G,T,dq,f2,hO,d3){var K=Q.ay.aJ,a3=Q.ay.Ma,bm=Q.ay.gQ;
if(G==T)return 1;var h2=G,x=P(G+1,K),ag=P(h2+1,K),b2=bm[G<<1],dV=bm[(G<<1)+1],eU=bm[x<<1],iz=bm[(x<<1)+1],d2=hO[ag];
if(d2==0)return 1;var gP=S(b2-eU,dV-iz);for(h2=ag;h2!=T;h2=ag){var ag=P(h2+1,K),fa=P(h2+2,K),eI=bm[ag<<1],it=bm[(ag<<1)+1],ic=bm[fa<<1],iK=bm[(fa<<1)+1];
if(hO[ag]!=d2)return 1;if(Math.sign(a(eU-b2,iz-dV,ic-eI,iK-it))!=d2)return 1;if(j(eU-b2,iz-dV,ic-eI,iK-it)<gP*S(eI-ic,it-iK)*-.999847695156)return 1}var fA=P(G,K)*3+2<<1,iB=P(G+1,K)<<1,hG=P(T,K)<<1,dt=P(T,K)*3+2<<1,ek=a3[fA],b_=a3[fA+1],gO=bm[iB],cX=bm[iB+1],bh=bm[hG],bi=bm[hG+1],dM=a3[dt],ik=a3[dt+1],v=bm[0],hl=bm[1];
fA=T*3+2<<1;var iW=a3[fA],et=a3[fA+1],X=d3[T]-d3[G];X-=a(iW-v,et-hl,iW-v,et-hl)/2;if(G>=T){X+=d3[K]}var iy=gO-ek,er=cX-b_,h$=bh-ek,dN=bi-b_,dQ=dM-ek,cL=ik-b_,ge=a(iy,er,h$,dN),ds=a(iy,er,dQ,cL),dH=a(h$,dN,dQ,cL),hs=ge+dH-ds;
if(ds==ge)return 1;var gj=dH/(dH-hs),hZ=ds/(ds-ge),cb=ds*gj/2;if(cb==0)return 1;var fe=X/cb,l=2-Math.sqrt(4-fe/.3);
dq.lN=_(gj*l,ek,gO);dq.RZ=_(gj*l,b_,cX);dq.tV=_(hZ*l,dM,bh);dq.GP=_(hZ*l,ik,bi);dq.alpha=l;dq.A2=gj;
dq.Zp=hZ;gO=dq.lN;cX=dq.RZ;bh=dq.tV;bi=dq.GP;dq.vP=0;for(h2=P(G+1,K);h2!=T;h2=ag){ag=P(h2+1,K);var ej=bm[h2<<1],gd=bm[(h2<<1)+1],eI=bm[ag<<1],it=bm[(ag<<1)+1];
gj=Y(gO-ek,cX-b_,bh-gO,bi-cX,dM-bh,ik-bi,eI-ej,it-gd);if(gj<-.5)return 1;var cs=N(gj,ek,gO,bh,dM),hc=N(gj,b_,cX,bi,ik),gP=S(eI-ej,it-gd);
if(gP==0)return 1;var c5=a(eI-ej,it-gd,cs-ej,hc-gd)/gP;if(Math.abs(c5)>f2)return 1;if(j(eI-ej,it-gd,cs-ej,hc-gd)<0||j(ej-eI,gd-it,cs-eI,hc-it)<0){return 1}dq.vP+=c5*c5}for(h2=G;
h2!=T;h2=ag){ag=P(h2+1,K);var fA=h2*3+2<<1,iB=ag*3+2<<1,eO=a3[fA],hF=a3[fA+1],i4=a3[iB],dO=a3[iB+1];
gj=Y(gO-ek,cX-b_,bh-gO,bi-cX,dM-bh,ik-bi,i4-eO,dO-hF);if(gj<-.5)return 1;var cs=N(gj,ek,gO,bh,dM),hc=N(gj,b_,cX,bi,ik),gP=S(i4-eO,dO-hF);
if(gP==0)return 1;var c5=a(i4-eO,dO-hF,cs-eO,hc-hF)/gP,g0=a(i4-eO,dO-hF,bm[ag<<1]-eO,bm[(ag<<1)+1]-hF)/gP;
g0*=.75*Q.ay.alpha[ag];if(g0<0){c5=-c5;g0=-g0}if(c5<g0-f2)return 1;if(c5<g0){dq.vP+=(c5-g0)*(c5-g0)}}return 0}var u=Q.ay,K=u.aJ,F=u.gQ,b=new Array(K+1),d=new Array(K+1),W=new Array(K+1),A=new Array(K+1),z,G,T,R,I=new m,r,x,X,l,hH,hZ,gj,hO=new Array(K),d3=new Array(K+1);
for(G=0;G<K;G++){if(u.S4[G]=="CURVE"){var v=F[P(G-1,K)<<1],hl=F[(P(G-1,K)<<1)+1],ht=F[G<<1],ga=F[(G<<1)+1],eB=F[P(G+1,K)<<1],bP=F[(P(G+1,K)<<1)+1];
hO[G]=Math.sign(a(ht-v,ga-hl,eB-ht,bP-ga))}else{hO[G]=0}}X=0;d3[0]=0;var ek=u.gQ[0],b_=u.gQ[1];for(G=0;
G<K;G++){x=P(G+1,K);if(u.S4[x]=="CURVE"){l=u.alpha[x];var fz=G*3+2<<1,ca=x*3+2<<1,gf=u.Ma[fz],bb=u.Ma[fz+1],b2=F[x<<1],dV=F[(x<<1)+1],ch=u.Ma[ca],hE=u.Ma[ca+1];
X+=.3*l*(4-l)*a(b2-gf,dV-bb,ch-gf,hE-bb)/2;X+=a(gf-ek,bb-b_,ch-ek,hE-b_)/2}d3[G+1]=X}b[0]=-1;d[0]=0;
W[0]=0;for(T=1;T<=K;T++){b[T]=T-1;d[T]=d[T-1];W[T]=W[T-1]+1;for(G=T-2;G>=0;G--){R=n(Q,G,P(T,K),I,q.a31,hO,d3);
if(R){break}if(W[T]>W[G]+1||W[T]==W[G]+1&&d[T]>d[G]+I.vP){b[T]=G;d[T]=d[G]+I.vP;W[T]=W[G]+1;A[T]=I;I=new m}}}z=W[K];
hH=new e(z);hZ=new Array(z);gj=new Array(z);T=K;for(G=z-1;G>=0;G--){var dS=P(T,K),e1=G*3+0<<1,eG=dS*3+0<<1;
if(b[T]==T-1){hH.S4[G]=u.S4[dS];hH.Ma[e1]=u.Ma[eG];hH.Ma[e1+1]=u.Ma[eG+1];hH.Ma[e1+2]=u.Ma[eG+2];hH.Ma[e1+3]=u.Ma[eG+3];
hH.Ma[e1+4]=u.Ma[eG+4];hH.Ma[e1+5]=u.Ma[eG+5];hH.gQ[G<<1]=u.gQ[dS<<1];hH.gQ[(G<<1)+1]=u.gQ[(dS<<1)+1];
hH.alpha[G]=u.alpha[dS];hH.wZ[G]=u.wZ[dS];hH.U6[G]=u.U6[dS];hZ[G]=gj[G]=1}else{hH.S4[G]="CURVE";hH.Ma[e1]=A[T].lN;
hH.Ma[e1+1]=A[T].RZ;hH.Ma[e1+2]=A[T].tV;hH.Ma[e1+3]=A[T].GP;hH.Ma[e1+4]=u.Ma[eG+4];hH.Ma[e1+5]=u.Ma[eG+5];
hH.gQ[G<<1]=_(A[T].Zp,u.Ma[eG+4],F[dS<<1]);hH.gQ[(G<<1)+1]=_(A[T].Zp,u.Ma[eG+5],F[(dS<<1)+1]);hH.alpha[G]=A[T].alpha;
hH.wZ[G]=A[T].alpha;hZ[G]=A[T].Zp;gj[G]=A[T].A2}T=b[T]}for(G=0;G<z;G++){x=P(G+1,z);hH.U6[G]=hZ[G]/(hZ[G]+gj[x])}hH.ai4=1;
Q.ay=hH}for(var G=0;G<c.length;G++){var Q=c[G];U(Q);g(Q);M(Q);C(Q);y(Q);if(q.a3s)i(Q)}}return{afo:$,acq:Z}}();
gx.YD=function(h,e,$,Z){var c={GR:"minority",aag:Z,a3s:!0,aas:1,a31:.2},q=gx.afo(h,e,$,c);gx.acq(q,c);
return q};gx.U9=function(h){var e=[];for(var G=0;G<h.length;G++){var $=h[G],Z=$.ay,c=["M"],q=[Z.Ma[(Z.aJ-1)*6+4],Z.Ma[(Z.aJ-1)*6+5]];
for(var E=0;E<Z.aJ;E++){var P=E*6;if(Z.S4[E]==1){c.push("C");for(var a=0;a<6;a++)q.push(Z.Ma[P+a])}else if(Z.S4[E]==0){c.push("L");
for(var a=2;a<4;a++)q.push(Z.Ma[P+a])}}c.push("Z");e.push({parent:$.parent,color:$.color,path:{H:q,Z:c}})}return e};
gx.a7x=function(h,e,$,Z,c){function q(S){function N(G){var J="C "+(S.Ma[G*3+0<<1]*e).toFixed(1)+" "+(S.Ma[(G*3+0<<1)+1]*e).toFixed(1)+",";
J+=(S.Ma[G*3+1<<1]*e).toFixed(1)+" "+(S.Ma[(G*3+1<<1)+1]*e).toFixed(1)+",";J+=(S.Ma[G*3+2<<1]*e).toFixed(1)+" "+(S.Ma[(G*3+2<<1)+1]*e).toFixed(1)+" ";
return J}function Y(G){var g="L "+(S.Ma[G*3+1<<1]*e).toFixed(1)+" "+(S.Ma[(G*3+1<<1)+1]*e).toFixed(1)+" ";
g+=(S.Ma[G*3+2<<1]*e).toFixed(1)+" "+(S.Ma[(G*3+2<<1)+1]*e).toFixed(1)+" ";return g}var t=S.aJ,G,U="M"+(S.Ma[(t-1)*3+2<<1]*e).toFixed(1)+" "+(S.Ma[((t-1)*3+2<<1)+1]*e).toFixed(1)+" ";
for(G=0;G<t;G++){if(S.S4[G]==1){U+=N(G)}else if(S.S4[G]==0){U+=Y(G)}}return U}var $=$*e,Z=Z*e,E=h.length,P=[];
for(var G=0;G<256;G++)P.push("rgb("+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+","+Math.floor(Math.random()*255)+")");
var a="<svg id=\"svg\" version=\"1.1\" width=\""+$+"\" height=\""+Z+"\" xmlns=\"http://www.w3.org/2000/svg\">";
for(var G=0;G<E;G++){var j=c[h[G].color-1].a1s.bx;if((j>>>24&255)==0)continue;a+="<path d=\"";var L=h[G].ay;
a+=q(L);var H=j>>0&255,_=j>>8&255,J=j>>16&255,j="rgb("+H+","+_+","+J+")";a+="\" fill=\""+j+"\" fill-rule=\"evenodd\"/>"}a+="</svg>";
return a};gx.aeS=function(h,e,$){var t=h.length>>1,Z,c=h[2*t-3]-$,q=h[2*t-2]-e,E=h[2*t-1]-$,P=E>c,a=0;
for(var G=0;G<t;G++){Z=q;c=E;q=h[2*G]-e;E=h[2*G+1]-$;if(c==E)continue;P=E>c}for(var G=0;G<t;G++){Z=q;
c=E;q=h[2*G]-e;E=h[2*G+1]-$;if(c<0&&E<0)continue;if(c>0&&E>0)continue;if(Z<0&&q<0)continue;if(c==E&&Math.min(Z,q)<=0)return!0;
if(c==E)continue;var j=Z+(q-Z)*-c/(E-c);if(j==0)return!0;if(j>0)a++;if(c==0&&P&&E>c)a--;if(c==0&&!P&&E<c)a--;
P=E>c}return(a&1)==1};gx.fill=function(h,e,$,Z){var c=e[h],q=[h],E=0;while(E<q.length){var P=q[E];E++;
e[P]=Z;if(e[P-$]==c){q.push(P-$);e[P-$]=254}if(e[P-1]==c){q.push(P-1);e[P-1]=254}if(e[P+1]==c){q.push(P+1);
e[P+1]=254}if(e[P+$]==c){q.push(P+$);e[P+$]=254}}};var V={};V.Yv=!1;V.It=!1;V._R=!1;V.p$=document.createElement("canvas");
V.s0=null;V.OQ=null;V.U2=0;(function(){var h={alpha:!0,antialias:!1,depth:!1,premultipliedAlpha:!1},e;
if(!e)e=V.p$.getContext("webgl",h);if(!e)e=V.p$.getContext("experimental-webgl",h);if(e){V.Yv=!0;V.It=!0;
V.s0=e;V.OQ=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,V.OQ);e.disable(e.BLEND);e.disable(e.DEPTH_TEST);
var $=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,$);e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),e.STATIC_DRAW);
e.enableVertexAttribArray(0);e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0)}}());V.aar=function(h){h=h.replace(/\s\s+/g," ");
h=h.replace(/; /g,";");h=h.replace(/} /g,"}");h=h.replace(/ }/g,"}");h=h.replace(/{ /g,"{");h=h.replace(/ {/g,"{");
h=h.replace(/= /g,"=");h=h.replace(/ =/g,"=");h=h.replace(/\| /g,"|");h=h.replace(/ \|/g,"|");return h};
V.a0U=function(h){var e=V.s0;if(h>e.getParameter(e.MAX_TEXTURE_SIZE)){V.Yv=!1;alert("Disabling WebGL")}};
V.WM=function(h,e){return new Float32Array([(h.x-e.x)/e.d,(h.y-e.y)/e.v,h.d/e.d,h.v/e.v])};V.st=function(){return this.p$};
V.wo=function(h,e){var $=V.s0;$.bindFramebuffer($.FRAMEBUFFER,V.OQ);$.framebufferTexture2D($.FRAMEBUFFER,$.COLOR_ATTACHMENT0,$.TEXTURE_2D,h.jg,0);
$.viewport(0,0,h.d,h.v);if(e){$.enable($.SCISSOR_TEST);$.scissor(e.x,e.y,e.d,e.v)}else $.disable($.SCISSOR_TEST)};
V.iz=function(h,e,$){if($)throw"error";var Z=V.s0;Z.disable(Z.SCISSOR_TEST);Z.bindFramebuffer(Z.FRAMEBUFFER,null);
Z.viewport(0,0,h,e);if($){Z.enable(Z.SCISSOR_TEST);Z.scissor($.x,$.y,Math.round($.d),Math.round($.v))}else Z.disable(Z.SCISSOR_TEST)};
V.clear=function(){var h=V.s0;h.clearColor(0,0,0,0);h.clear(h.COLOR_BUFFER_BIT)};V.ZI=function(h,e){if(e==null)e=0;
var $=(e>>>0&255)==0,Z=(e>>>8&255)==0,c=(e>>>16&255)==0,q=(e>>>24&255)==0,E=(h>>>0&255)*(1/255),P=(h>>>8&255)*(1/255),a=(h>>>16&255)*(1/255),j=(h>>>24&255)*(1/255),L=V.s0;
L.colorMask($,Z,c,q);L.clearColor(E,P,a,j);L.clear(L.COLOR_BUFFER_BIT);L.colorMask(!0,!0,!0,!0)};V.wU=function(h,e,$,Z,c){var q=e.jx(Z);
if(c)q=q.jx(c);if(q.nK())return;var E=V.s0;V.wo(h);E.bindTexture(E.TEXTURE_2D,$.jg);E.copyTexSubImage2D(E.TEXTURE_2D,0,q.x-Z.x,q.y-Z.y,q.x-e.x,q.y-e.y,q.d,q.v)};
V.p5=function(G,h,e){var $=V.tx[G];if($==null||$.d!=h||$.v!=e){if($)$.delete();$=new V.EI(h,e)}V.tx[G]=$;
return $};V.tx=[];V.PG=function(){this.XM=null;this.oK=null};V.PG.N2=null;V.PG.prototype.gC=function(h){if(this.oK)return;
this.oK={};var e=V.s0,$=this.XM,Z=this.oK;for(var G=0;G<h.length;G++){var c=h[G];Z[c]=e.getUniformLocation($,c)}};
V.PG.prototype.m_=function(){};V.PG.prototype.J0=function(h){var e=V.s0;for(var G=0;G<h.length;G+=2){e.uniform1i(h[G],G>>>1);
e.activeTexture(e["TEXTURE"+(G>>>1)]);e.bindTexture(e.TEXTURE_2D,h[G+1])}e.activeTexture(e.TEXTURE0)};
V.PG.prototype.Py=function(h,e){var $=V.s0,Z=$.createShader($.FRAGMENT_SHADER);$.shaderSource(Z,h);$.compileShader(Z);
if(!$.getShaderParameter(Z,$.COMPILE_STATUS))console.log($.getShaderInfoLog(Z));var c=$.createShader($.VERTEX_SHADER);
$.shaderSource(c,e);$.compileShader(c);if(!$.getShaderParameter(c,$.COMPILE_STATUS))console.log($.getShaderInfoLog(c));
var q=$.createProgram();$.attachShader(q,c);$.attachShader(q,Z);$.linkProgram(q);if(!$.getProgramParameter(q,$.LINK_STATUS))console.log("Could not initialise shaders");
this.XM=q};V.PG.prototype.xl=function(){if(V.PG.N2!=this){V.s0.useProgram(this.XM);V.PG.N2=this}};V.ow=function(h,e){V.EX++;
V.U2+=h*e;if(V._R)console.log("GL.Channels instances: "+V.EX+", memory: "+V.U2);var $=V.s0;this.d=h;
this.v=e;this.jg=$.createTexture();this.Jw=null;this.tq(this.jg,h,e)};V.ow.prototype.tq=function(h,e,$){var Z=V.s0;
Z.bindTexture(Z.TEXTURE_2D,h);Z.texParameteri(Z.TEXTURE_2D,Z.TEXTURE_MIN_FILTER,Z.NEAREST);Z.texParameteri(Z.TEXTURE_2D,Z.TEXTURE_MAG_FILTER,Z.NEAREST);
Z.texParameteri(Z.TEXTURE_2D,Z.TEXTURE_WRAP_S,Z.CLAMP_TO_EDGE);Z.texParameteri(Z.TEXTURE_2D,Z.TEXTURE_WRAP_T,Z.CLAMP_TO_EDGE);
Z.texImage2D(Z.TEXTURE_2D,0,Z.ALPHA,e,$,0,Z.ALPHA,Z.UNSIGNED_BYTE,null)};V.ow.prototype.set=function(h){var e=V.s0;
e.bindTexture(e.TEXTURE_2D,this.jg);e.pixelStorei(e.UNPACK_ALIGNMENT,1);e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.d,this.v,0,e.ALPHA,e.UNSIGNED_BYTE,h);
e.pixelStorei(e.UNPACK_ALIGNMENT,4)};V.ow.prototype.delete=function(){var h=V.s0;if(this.jg){h.deleteTexture(this.jg);
V.EX--;V.U2-=this.d*this.v}if(V._R)if(V._R)console.log("GL.Channels instances: "+V.EX+", memory: "+V.U2*4)};
V.EX=0;V.EI=function(h,e,$){if($==null)$=!1;V.EX++;V.U2+=h*e*4;if(V._R)console.log("GL.Channels instances: "+V.EX+", memory: "+V.U2);
var Z=V.s0;this.a6m=$;this.d=h;this.v=e;this.jg=Z.createTexture();this.Jw=null;this.tq(this.jg,h,e)};
V.EI.prototype.set=function(h,e){var $=V.s0;$.disable($.SCISSOR_TEST);$.bindTexture($.TEXTURE_2D,this.jg);
if(h==null||h instanceof Uint8Array){var Z=this.d*this.v;if(e==null||e.X()*10>Z)$.texImage2D($.TEXTURE_2D,0,$.RGBA,this.d,this.v,0,$.RGBA,$.UNSIGNED_BYTE,h);
else{var c=s.m(e.X()*4);s.hX(h,new O(0,0,this.d,this.v),c,e);$.texSubImage2D($.TEXTURE_2D,0,e.x,e.y,e.d,e.v,$.RGBA,$.UNSIGNED_BYTE,c)}}else $.texImage2D($.TEXTURE_2D,0,$.RGBA,$.RGBA,$.UNSIGNED_BYTE,h)};
V.EI.prototype.get=function(h){var e=V.s0;V.wo(this);e.readPixels(0,0,this.d,this.v,e.RGBA,e.UNSIGNED_BYTE,h)};
V.EI.prototype.D1=function(h){if(h.nK())return;var e=V.s0;if(this.Jw==null){this.Jw=e.createTexture();
this.tq(this.Jw,this.d,this.v);V.EX++;V.U2+=this.d*this.v*4}e.bindFramebuffer(e.FRAMEBUFFER,V.OQ);e.bindTexture(e.TEXTURE_2D,this.Jw);
if(h){var $=Math.max(h.x,0),Z=Math.max(h.y,0);e.copyTexSubImage2D(e.TEXTURE_2D,0,$,Z,$,Z,h.d,h.v)}else e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,this.d,this.v,0)};
V.EI.prototype.tq=function(h,e,$){var Z=V.s0;Z.bindTexture(Z.TEXTURE_2D,h);Z.texParameteri(Z.TEXTURE_2D,Z.TEXTURE_MIN_FILTER,this.a6m?Z.LINEAR:Z.NEAREST);
Z.texParameteri(Z.TEXTURE_2D,Z.TEXTURE_MAG_FILTER,Z.NEAREST);Z.texParameteri(Z.TEXTURE_2D,Z.TEXTURE_WRAP_S,Z.CLAMP_TO_EDGE);
Z.texParameteri(Z.TEXTURE_2D,Z.TEXTURE_WRAP_T,Z.CLAMP_TO_EDGE);Z.texImage2D(Z.TEXTURE_2D,0,Z.RGBA,e,$,0,Z.RGBA,Z.UNSIGNED_BYTE,null)};
V.EI.prototype.delete=function(){var h=V.s0;if(this.jg){h.deleteTexture(this.jg);V.EX--;V.U2-=this.d*this.v*4}if(this.Jw){h.deleteTexture(this.Jw);
V.EX--;V.U2-=this.d*this.v*4}if(V._R)if(V._R)console.log("GL.Channels instances: "+V.EX+", memory: "+V.U2)};
V.EI.prototype.clone=function(){var h=V.s0,e=new V.EI(this.d,this.v);V.wo(this);h.bindTexture(h.TEXTURE_2D,e.jg);
h.copyTexImage2D(h.TEXTURE_2D,0,h.RGBA,0,0,this.d,this.v,0);return e};V.yD={ahP:"  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))) );  }  ",alr:"  vec3 ocddg(vec3 a, vec3 b, float f) {  return mix(        min(ONE3,       b/(ONE3 - a*f))    ,   ONE3   , vec3(equal(a*f,ONE3 )) );  }  ",bK:"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) ;",$K:" 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}",Ve:" 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  ));  } ",vD:"float sat(vec3 c) { return max(c.x,max(c.y,c.z)) - min(c.x,min(c.y,c.z)); }",GE:"float lum(vec3 c) { return dot(c, vec3(0.3,0.59,0.11)); } ",ob:"vec3  D  (vec3 x) { return mix( sqrt(x), ((16.0*x-12.0)*x+4.0)*x  , vec3(lessThanEqual(x,QUAR3))  ); }",a4_:"float midSat (vec3 v, float s) { return ((v.y-v.z)*s)/(v.x-v.z); }",RX:"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}",amY:"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}",up:"vec3 setLum (vec3 c, float l) { return clipCol(c+l-lum(c)); } ",xA:"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); }",fe:"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); }",lR:"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); } ",EA:"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}",TC:"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);  }",g7:"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); }",Z1:"\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}",Z4:"\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}"};
V.As={az:{},Lb:"\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}"};
V.As.BO=function(h,e){var $=es.GG,Z=[$.D5,$.iw,$.nb,$.d3,$.Hi,$.o4,$.Zd,$.LL].indexOf(h.type),c=V.As.az[h.type];
if(c==null)c=V.As.az[h.type]=new V.az[Z];c.xl();c.m_(e,h);V.s0.drawArrays(V.s0.TRIANGLES,0,6)};V.az=[];
V.az[0]=function(){V.PG.call(this);this.lZ={};var h="\t\t\tprecision mediump float;\t\t\t"+V.yD.GE+"\t\t\t"+V.yD.bK+"\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.Py(h,V.As.Lb)};V.az[0].prototype=new V.PG;V.az[0].prototype.m_=function(h,e){var $={h:e.k$,l:e.q0,O:e.Uz,R:s.m(e.k$.length)},Z=$.h.length;
if(this.lZ["m"+Z]==null){this.lZ["m"+Z]={ae9:new V.EI(Z,1),Hl:s.m(Z*4)}}var c=this.lZ["m"+Z];s.cl($,c.Hl,0);
var q=c.ae9;q.set(c.Hl);this.gC(["source","map","toGray","presLum"]);var E=V.s0,P=this.oK;E.uniform1f(P.toGray,e.wY?1:0);
E.uniform1f(P.presLum,e.Su?1:0);this.J0([P.source,h,P.map,q.jg])};V.az[1]=function(){V.PG.call(this);
this.a0_=new V.EI(256,1);this.adS=s.m(256*4);var h="\t\t\t\tprecision mediump float;\t\t\t\t"+V.yD.EA+"\t\t\t\t"+V.yD.fe+"\t\t\t\t"+V.yD.lR+"\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.Py(h,V.As.Lb)};V.az[1].prototype=new V.PG;V.az[1].prototype.m_=function(h,e){s.cl({h:e.ac1,l:e.A$,O:e.aaI,R:s.m(256)},this.adS);
this.a0_.set(this.adS);this.gC(["source","map","cfa","cfb","colorize"]);var $=V.s0,Z=this.oK;$.uniform1f(Z.cfa,e.agz);
$.uniform1f(Z.cfb,e.b4);$.uniform1i(Z.colorize,e.a7F);this.J0([Z.source,h,Z.map,this.a0_.jg])};V.az[2]=function(){V.PG.call(this);
var h="\t\t\tprecision mediump float;\t\t\t"+V.yD.EA+"\t\t\t"+V.yD.TC+"\t\t\t"+V.yD.g7+"\t\t\t"+V.yD.fe+"\t\t\t"+V.yD.lR+"\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.Py(h,V.As.Lb)};V.az[2].prototype=new V.PG;V.az[2].prototype.m_=function(h,e){this.gC(["source","vib","sat"]);
var $=V.s0,Z=this.oK;$.uniform1f(Z.vib,e.Av[0]/100);$.uniform1f(Z.sat,e.Av[1]/100);this.J0([Z.source,h])};
V.az[3]=function(){V.PG.call(this);var h="\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.Py(h,V.As.Lb)};V.az[3].prototype=new V.PG;V.az[3].prototype.m_=function(h,e){this.gC(["source","trf"]);
var $=V.s0,Z=this.oK;$.uniformMatrix4fv(Z.trf,!1,new Float32Array(s.l2.JR(e.FC)));this.J0([Z.source,h])};
V.az[4]=function(){V.PG.call(this);var h="\t\t\tprecision mediump float; \t\t\t"+V.yD.Z1+"\t\t\t"+V.yD.EA+"\t\t\t"+V.yD.lR+"\t\t\t"+V.yD.fe+"\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.Py(h,V.As.Lb)};V.az[4].prototype=new V.PG;V.az[4].prototype.m_=function(h,e){this.gC(["source","mnm","mxm","shift","lim"]);
var $=V.s0,Z=this.oK;$.uniform3fv(Z.mnm,new Float32Array(e.qO));$.uniform3fv(Z.mxm,new Float32Array(e.XF));
$.uniform3fv(Z.shift,new Float32Array(e.shift));$.uniform1f(Z.lim,e.wO);this.J0([Z.source,h])};V.az[5]=function(){V.PG.call(this);
var h="\t\t\tprecision mediump float;\t\t\t"+V.yD.bK+"\t\t\t"+V.yD.$K+"\t\t\t"+V.yD.Ve+"\t\t\t"+V.yD.fe+"\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.Py(h,V.As.Lb)};V.az[5].prototype=new V.PG;V.az[5].prototype.m_=function(h,e){this.gC(["source","cfs"]);
var $=V.s0,Z=this.oK;$.uniform3fv(Z.cfs,e.TO);this.J0([Z.source,h])};V.az[6]=function(){V.PG.call(this);
var h="\t\t\tprecision mediump float;\t\t\t"+V.yD.EA+"\t\t\t"+V.yD.$K+"\t\t\t"+V.yD.Ve+"\t\t\t"+V.yD.fe+"\t\t\t"+V.yD.lR+"\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.Py(h,V.As.Lb)};V.az[6].prototype=new V.PG;V.az[6].prototype.m_=function(h,e){this.gC(["source","wght","prms"]);
var $=V.s0,Z=this.oK,c=[e.zx,e.ajD,e.GE,e.aky,e.oW,e.ajc];$.uniform1fv(Z.wght,new Float32Array(e.ajA));
$.uniform1fv(Z.prms,new Float32Array(c));this.J0([Z.source,h])};V.az[7]=function(){V.PG.call(this);this.Mo={};
var h="\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.Py(h,V.As.Lb)};V.az[7].prototype=new V.PG;V.az[7].prototype.m_=function(h,e){this.gC(["source","lut","N"]);
var $=V.s0,Z=this.oK,c=e.sf,q=e.Yu;if(this.Mo["m"+c]==null)this.Mo["m"+c]=new V.EI(c,c*c);var E=this.Mo["m"+c];
E.set(q);$.uniform1f(Z.N,c);this.J0([Z.source,h,Z.lut,E.jg]);$.activeTexture($.TEXTURE1);var P=$.LINEAR;
$.texParameteri($.TEXTURE_2D,$.TEXTURE_MIN_FILTER,P);$.texParameteri($.TEXTURE_2D,$.TEXTURE_MAG_FILTER,P);
$.activeTexture($.TEXTURE0)};V.filter={ew:{},Lb:"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",WR:0,S0:1,H8:2,dX:3};
V.filter.BO=function(h,e){var $=V.filter,Z=[$.WR,$.S0,$.H8,$.dX].indexOf(h.type),c=V.filter.ew[h.type];
if(c==null)c=V.filter.ew[h.type]=new V.ew[Z];c.xl();c.m_(e,h);V.s0.drawArrays(V.s0.TRIANGLES,0,6)};V.ew=[0,0,0,0,0,0,0];
V.ew[3]=function(){V.PG.call(this);var h="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.Py(D.YO(h),D.YO(V.filter.Lb))};V.ew[3].prototype=new V.PG;V.ew[3].prototype.m_=function(h,e){this.gC("source iwh tdep rrad spec nois poly0 poly1".split(" "));
var $=V.s0,Z=this.oK;$.uniform2fv(Z.iwh,e.KO);$.uniform1f(Z.tdep,e.a7A);$.uniform1f(Z.rrad,e.a9q);$.uniform2fv(Z.spec,e.a8d);
$.uniform3fv(Z.nois,e.akD);$.uniformMatrix4fv(Z.poly0,!1,e.ab6);$.uniformMatrix4fv(Z.poly1,!1,e.a8W);
this.J0([Z.source,h]);var c=$.LINEAR;$.activeTexture($.TEXTURE0);$.texParameteri($.TEXTURE_2D,$.TEXTURE_MIN_FILTER,c);
$.texParameteri($.TEXTURE_2D,$.TEXTURE_MAG_FILTER,c);$.activeTexture($.TEXTURE0)};V.ew[0]=function(){V.PG.call(this);
var h="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.Py(D.YO(h),D.YO(V.filter.Lb))};V.ew[0].prototype=new V.PG;V.ew[0].prototype.m_=function(h,e){this.gC(["source","iwh","ld","shine"]);
var $=V.s0,Z=this.oK;$.uniform2fv(Z.iwh,e.KO);$.uniform3fv(Z.ld,e.af5);$.uniform1f(Z.shine,e.ak9);this.J0([Z.source,h,Z.tang,e.R9])};
V.ew[1]=function(){V.PG.call(this);var h="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.Py(D.YO(h),D.YO(V.filter.Lb))};V.ew[1].prototype=new V.PG;V.ew[1].prototype.m_=function(h,e){this.gC(["source","iwh","isc","bristle"]);
var $=V.s0,Z=this.oK;$.uniform2fv(Z.iwh,e.KO);$.uniform1f(Z.isc,e.agC);$.uniform1f(Z.bristle,e.aiE);
this.J0([Z.source,h])};V.ew[2]=function(){V.PG.call(this);var h="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.Py(D.YO(h),D.YO(V.filter.Lb))};V.ew[2].prototype=new V.PG;V.ew[2].prototype.m_=function(h,e){this.gC(["source","tang","iwh","sigma","expo"]);
var $=V.s0,Z=this.oK;$.uniform2fv(Z.iwh,e.KO);$.uniform1f(Z.sigma,e.ajy);$.uniform1f(Z.expo,e.a5v);this.J0([Z.source,h,Z.tang,e.R9]);
var c=$.LINEAR;$.activeTexture($.TEXTURE0);$.texParameteri($.TEXTURE_2D,$.TEXTURE_MIN_FILTER,c);$.texParameteri($.TEXTURE_2D,$.TEXTURE_MAG_FILTER,c);
$.activeTexture($.TEXTURE0)};V.p={};V.p.Mi={};V.p.PS=null;V.p.Yq=null;V.p.pb=null;V.p.xr=function(h,e,$,Z,c,q,E,P){if(P==null)P=hn.Wn();
if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf(h)==-1){E=E*P.fill;P.fill=1;P.style=!1}var a=h+(P.Zo?"1":"");
if(V.p.Mi[a]==null)V.p.Mi[a]=new V.p.Qx(h,P.Zo!=null);var j=V.p.Mi[a],L=$.jx(c).jx(q);L.offset(-c.x,-c.y);
if(L.nK())return;var H=V.s0;V.wo(Z,L);Z.D1(L);j.xl();j.m_(e.jg,Z.Jw,V.WM($,c),E,P.fill,P.style?1:0,P.Eq?1:0,P.Zo?new Float32Array(P.Zo):null);
H.drawArrays(H.TRIANGLES,0,6)};V.p.Il=function(h,e,$,Z,c,q,E,P,a,j,L){if(V.p.PS==null)V.p.PS=new V.p.cw(!0,!0);
if(V.p.Yq==null)V.p.Yq=new V.p.cw(!0,!1);if(V.p.pb==null)V.p.pb=new V.p.cw(!1,!0);var H=j?1:0,_=h?c?V.p.PS:V.p.Yq:V.p.pb,J=new Float32Array(L?[L[0],L[1],L[2],1]:[1,1,1,1]),S=e?e.jx(Z).jx(P):Z.jx(P);
if(S.nK())return;S.offset(-Z.x,-Z.y);var N=V.s0;V.wo($,S);$.D1(S);_.xl();if(h==null)_.m_(null,$.Jw,c.jg,V.WM(Z,Z),V.WM(q,Z),E/255,a,H,J);
else if(c)_.m_(h.jg,$.Jw,c.jg,V.WM(e,Z),V.WM(q,Z),E/255,a,H,J);else _.m_(h.jg,$.Jw,null,V.WM(e,Z),null,E/255,a,H,J);
N.drawArrays(N.TRIANGLES,0,6)};V.p.aj3=function(h,e,$){if(V.p.ajL==null)V.p.ajL=new V.p.r9;var Z=V.p.ajL,c=new O(0,0,h.d,h.v),q=V.s0;
V.wo(e);e.D1(c);Z.xl();Z.m_(c,h.jg,e.Jw,$.jg);q.drawArrays(q.TRIANGLES,0,6)};V.p.nC={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) ); "};
V.p.Qx=function(h,e){V.PG.call(this);var $="\t\t\tprecision mediump float;\t\t\t"+V.yD.bK+"\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"+(e?"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"+V.yD.vD+"\t\t\t"+V.yD.GE+"\t\t\t"+V.yD.ob+"\t\t\t"+V.yD.ahP+"\t\t\t"+V.yD.alr+"\t\t\t"+V.yD.a4_+"\t\t\t"+V.yD.RX+"\t\t\t"+V.yD.amY+"\t\t\t"+V.yD.up+"\t\t\t"+V.yD.hash+"\t\t\t"+(e?V.yD.Z4:"")+"\t\t\t\t\t\tvec3  BB(vec3  a, vec3  b, float f) { "+V.p.nC[h]+" } \t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = texture2D(source, sCoord);",Z="\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(h=="diss")$+="\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 $+="  \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"+(e?"  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.Py($,Z)};V.p.Qx.prototype=new V.PG;V.p.Qx.prototype.m_=function(h,e,$,Z,c,q,E,P){this.gC("srct alpha source target fill style keepBGA blIf".split(" "));
var a=V.s0,j=this.oK;a.uniform4fv(j.srct,$);a.uniform1f(j.alpha,Z);a.uniform1f(j.fill,c);a.uniform1f(j.style,q);
a.uniform1f(j.keepBGA,E);if(P)a.uniform4fv(j.blIf,P);this.J0([j.source,h,j.target,e])};V.p.cw=function(h,e){V.PG.call(this);
this.abg=h;this.Ln=e;var $="\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"+V.yD.xA+"\t\t\t"+V.yD.hash+"\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = "+(h?"texture2D(source, sCoord)":"vec4(0.0)")+"; \t\t\t\tfloat wg = awg "+(e?"* (in01(wCoord) ? texture2D(weight, wCoord).w : wcolor)":"")+";\t\t\t\t"+(h?"":"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 =  "+(e?"nc":"cswitch*nc + (1.0- cswitch)*tgt")+";    \t\t\t}",Z="\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.Py($,Z)};V.p.cw.prototype=new V.PG;V.p.cw.prototype.m_=function(h,e,$,Z,c,q,E,P,a){if(this.Ln)this.gC("srct wrct wcolor awg dissv source target weight cswitch".split(" "));
else this.gC("srct awg dissv source target cswitch".split(" "));var j=V.s0,L=this.oK;j.uniform4fv(L.srct,Z);
if(this.Ln){j.uniform4fv(L.wrct,c);j.uniform1f(L.wcolor,q)}else{j.uniform4fv(L.cswitch,a)}j.uniform1f(L.awg,E);
j.uniform1f(L.dissv,P);var H=[L.source,h,L.target,e];if(this.Ln)H.push(L.weight,$);this.J0(H)};V.p.r9=function(){V.PG.call(this);
var h="\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}",e="\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.Py(h,e)};V.p.r9.prototype=new V.PG;V.p.r9.prototype.m_=function(h,e,$,Z){this.gC(["rct","prev","next","alpha"]);
var c=V.s0,q=this.oK;c.uniform4fv(q.rct,[0,0,1,1]);this.J0([q.prev,e,q.next,$,q.alpha,Z])};var f={};
f.ar=function(h,e,$){this.name=h;this.id=e;this.a3=null;if($!=null)this.dC=$};f.ar.prototype.a1=function(h,e,$,Z,c){};
f.ar.prototype.enable=function(h,e,$,Z,c,q){var E=new B(D.E.P,!0);E.data={e:D.U.Qd,Hz:"default"};e.f(E)};
f.ar.prototype.disable=function(h,e,$,Z,c){};f.ar.prototype.I_=function(h,e,$,Z,c){return!1};f.ar.prototype.yj=function(h,e,$,Z,c){};
f.ar.prototype.p8=function(h,e,$,Z,c){};f.ar.prototype.oX=function(h,e,$,Z,c){};f.ar.prototype.f0=function(h,e,$,Z,c){};
f.ar.prototype.d1=function(h,e,$,Z,c){};f.ar.prototype.WI=function(h,e,$,Z){};f.ar.prototype.yY=function(h,e,$,Z){};
f.ar.prototype.t4=function(h,e){};f.ar.prototype.yc=function(h,e){};f.ar.prototype.cd=function(h,e,$,Z,c){};
f.ar.prototype.if=function(h,e){};f.ar.prototype.Jr=function(h,e){return!1};f.ar.prototype.s4=function(h,e){return!1};
f.ar.prototype.Mm=function(){return!1};f.ar.prototype.NO=function(h,e){return!0};f.ar.prototype._3=function(){return null};
f.ar.prototype.xc=function(h,e,$){};f.ar.prototype.Nl=function(){return!1};f.ar.prototype.IZ=function(h,e,$,Z){};
f.ar.prototype.track=function(h){var e=new B(D.E.Kz,!0);e.data=h;h.FJ=!0;this.a3.f(e)};f.ar.Ia=function(h,e,$,Z,c){f.ar.cA(h,e,[e_.get([12,41]).charAt(0)+": "+s.IQ.MB($.d,Z.Ay,c,Z.d,!0),e_.get([12,42]).charAt(0)+": "+s.IQ.MB($.v,Z.Ay,c,Z.v,!0)],Z)};
f.ar.cA=function(h,e,$,Z){var c=14,q=130,E=$.length*17+8,P=new O(h,e-E,q,E),a=f.ar.Y4;if(a==null)a=f.ar.Y4=document.createElement("canvas");
a.width=q;a.height=E;var j=a.getContext("2d");j.fillStyle="rgba(0,0,1,1)";j.fillRect(0,0,q,E);j.font=c+"px monospace";
j.fillStyle="rgba(255,255,255,1)";for(var G=0;G<$.length;G++)j.fillText($[G],6,(G+1)*17);Z.K.Yr=[[j.getImageData(0,0,q,E).data,P.clone()]]};
f.ar.Y4=null;f.OA="0";f.$r="1";f.a6J="2";f.aic="3";f.V7="5";f.a99="6";f.ain="7";f.ee="8";f.et="9";f.ZT="10";
f.KH="11";f.Ou="12";f.n$="13";f.Ql="14";f.acl="16";f.G3="18";f.xt="19";f.mV="20";f.YK="21";f.PE="22";
f.XP="23";f.VF="24";f.Cz="25";f.cb="27";f.d7="31";f.ag3="32";f.aor="34";f.acY="35";f.Uq="36";f.Fh="37";
f.Eh="38";f.s5="39";f.Hh="40";f.ME="41";f.iE="42";f.zl="43";f.kE="47";f.hO="51";f.f6="52";f.lO="54";
f.Jy="55";f.AL="56";f.hx="57";f.QQ="58";f.vc="59";f.ak4="60";f.dc="61";f.Fk="100";f.MG="101";f.or="102";
f.Bi="120";f.Qi="230";f.alC="231";f.C_="232";f.S$="233";f.aQ="234";f.HP="235";f.zI="236";f.Kn=function(h){var e=f.YH,$=null;
for(var Z in e)if(e[Z][1].indexOf(h[1].classID)!=-1)$=Z;return $};f.YH={};f.YH[f.XP]=["tools/brush",["PbTl"]];
f.YH[f.VF]=["tools/pencil",["PcTl"]];f.YH[f.d7]=["tools/eraser",["ErTl"]];f.rz=function(h,e,$){f.ar.call(this,h,e,$);
this.KY={brush:h?cC.Zn():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.D0=null;this.Gg=null;this.s$=null;this.DP=null;this.Fu=null;this.Iy=null;this.SI=null;this.tC=null;
this.B0=null;this.KQ=null;this.Je=null;this.KA=null;this.HC=null;this.sn=1;this.Wq=!1;this._a=null;this.caller=null};
f.rz.prototype=new f.ar;f.rz.prototype.s4=function(h,e){return h.xo&&e.q(p.ai)};f.rz.prototype.p8=function(h,e,$,Z,c){if(Z.q(p.ys)){this.Iy=new eu(c.x,c.y);
var q=this.KY.brush.Brsh.v,E=q.Dmtr.v.val,P=q.Hrdn!=null?q.Hrdn.v.val:-1;this.SI=[E,P,!0,JSON.parse(JSON.stringify(this.KY.brush)),c];
this.qd($)}};f.rz.prototype.s2=function(h,e,$){var Z=this.SI,c=h.z.S,q=$.x-Z[4].x,E=$.y-Z[4].y,P=Z[0],a=Z[1],j=Math.abs(q)>Math.abs(E);
if(j&&Z[2]){var L=Math.round(2*q/c);P+=L;$.x-=q-.5*L*c}if(!j&&!Z[2]&&a!=-1){var L=Math.round(.25*E);
a+=L;$.y-=E-4*L}P=Math.max(1,P);a=Z[1]==-1?-1:Math.max(0,Math.min(100,a));var H=Z[3];H.Brsh.v.Dmtr.v.val=P;
if(a!=-1)H.Brsh.v.Hrdn.v.val=a;this.SI=[P,a,j,H,$];var _=ec.MO(H,e.Ck.nM,c),J=_[1];J.x=Math.round(this.Iy.x-J.d/2);
J.y=Math.round(this.Iy.y-J.v/2);h.K.Vh=[_];var S=h.z.QX(this.Iy.x,this.Iy.y);h.K.Q2={u2:[],ZS:[S.x-P/2,S.y,S.x+P/2,S.y]};
if(a!=-1)h.K.Q2.ZS.push(S.x+50/c,S.y-a/2,S.x+50/c,S.y+a/2);h.IL=!0};f.rz.prototype.d1=function(h,e,$,Z,c){if(this.id==f.mV)return;
if(this.Iy){this.Iy=null;this.c9(JSON.parse(JSON.stringify(this.SI[3])));h.K.Vh=[];h.K.Q2=null;h.IL=!0;
return}var q=new B(D.E.P,!0);q.data={e:D.U.UR,F:this.id,amx:"showBrushOpts",NY:new eu(c.aS+4,c.gh)};
e.f(q)};f.rz.prototype.c9=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.Ov,Av:iM.bT,oH:h};this.caller.f(e)};
f.rz.GC=function(h,e,$,Z){if(h==null)h="FrgC";if(e==null)e="norm";if($==null)$=1;var c={classID:"Fl",Usng:{t:"enum",v:{FlCn:h}},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round($*100)}},Md:{t:"enum",v:{BlnM:eN.ve(e)}}};
if(h=="Clr")c.Clr={t:"Objc",v:Z};if(h=="contentAware")c.contentAwareColorAdaptationFill={t:"bool",v:!0};
return{Lw:"fill",TJ:c}};f.rz.prototype.a1=function(h,e,$,Z,c){this.a3=e;var q=$.vw.length;if(q==0&&!$.Jh())return;
var E=q!=0?-1-$.vw[0]:$.C[0],P=$.t[E];if(h.e=="fromAction"){var a=h.W_,j=a.TJ;if(a.Lw=="fill"){var L=(j.Opct?j.Opct.v.val:100)/100,H=j.Md?eN.Tj(j.Md.v.BlnM):"norm",_=j.Usng.v.FlCn,J;
if(_=="contentAware"){if($.N==null){alert("Select an area to heal first.");return}if(!$.Jh())return;
this.In($);this.hB($,0);var S=$.N,N=s.m(S.rect.X()*4);s.Jk(S.channel,N,3);this.JY($,"sheal",N,S.rect,S.rect);
this.s($,S.rect);this.finish($,S.rect)}else{if(_=="FrgC")J=c.oV;else if(_=="BckC")J=c.XK;else if(_=="Blck")J=0;
else if(_=="Wht")J=16777215;else if(_=="Gry")J=8421504;else if(_=="Clr"){var Y=s.Y.LX(j.Clr.v);J=Y.h<<16|Y.l<<8|Y.O}var U=J>>16&255,g=J>>8&255,M=J>>0&255;
this.TW($,P,$.N,U,g,M,Math.round(255*L),H,[2,3])}}else if(a.Lw=="delete"){var C=E<0?1:P.jw,S=$.N,n;if(S==null)return;
var y=E<0?$.Qe[-E-1]:C<=0?null:C==1?P.kV():P.wV($).r,i=C<=0?P.rect:y.rect,Q=C<=0?S.rect.jx(i):S.rect.clone();
if(Q.nK())return;var m=Q.X();if(C<=0){n=s.m(m*4);s.hX(P.buffer,P.rect,n,Q)}else{n=s.m(m);y.extend(Q);
s.T7(y.channel,y.rect,n,Q)}if(0<=E&&P.Ae($,S)){if(C<=0){s.Ut(n,0);s.hX(P.cj.Ny,P.cj.m0,n,Q)}else{n.fill(255);
s.T7(P.cj.Ny,P.cj.m0,n,Q)}}else{if(C<=0){var u=s.m(n.length>>2);s.z0(n,u,3);s.p.Y6(s.qm(S.rect.X()),S.rect,u,Q,S.channel,Q,1);
s.Jk(u,n,3)}else{var K=s.m(S.rect.X()),U=c.XK>>>16&255,g=c.XK>>8&255,M=c.XK>>0&255;K.fill(Math.round(s.jv(U,g,M)));
s.p.Y6(K,S.rect,n,Q,S.channel,Q,1)}}this.$x($,!0,[2,2],E,C,Q,n)}}if(h.e=="stroke"){var F=h.a4i,S=$.N;
if(S==null){S={rect:P.rect.clone(),channel:s.m(P.rect.X())};s.z0(P.buffer,S.channel,3)}var b=hn.gc(F),d=f.LV.gJ(S,Math.ceil(b[0]),Math.ceil(b[1])),J=s.Y.LX(F.Clr.v),U=Math.round(J.h),g=Math.round(J.l),M=Math.round(J.O);
this.TW($,P,d,U,g,M,Math.round(255*F.Opct.v.val/100),eN.Tj(F.Md.v.BlnM),[14,9])}if(h.e=="fillBMP"){this.SB($,P,$.N,h.He,h.Uz,h.cJ)}if(h.e=="draw"){var W=h.Fp,A=W.rect;
this.In($);var z=$.t[$.C[0]];if(h.acj&&z&&z.jw<=0&&$.vw.length==0){A=bn.Od.jH(W,$);z.buffer=W.buffer.slice(0);
z.rect=A.clone()}else{var T=this.KY.bmode;this.KY.bmode="norm";this.JY($,"draw",W.buffer,A,A.jx(new O(0,0,$.d,$.v)));
this.KY.bmode=T}this.s($,A);$.uu=!0;this.finish($,A,h.cJ,h.acj)}};f.rz.prototype.TW=function(h,e,$,Z,c,q,E,P,a){var j=$==null?new O(0,0,h.d,h.v):$.rect,L=E<<24|q<<16|c<<8|Z<<0,H=s.m(j.X()*4);
s.Ut(H,L);this.SB(h,e,$,H,P,a)};f.rz.prototype.SB=function(h,e,$,Z,c,q){var E=h.vw.length!=0?-1-h.vw[0]:h.C[0],P=E<0?1:e.jw,a=E<0?h.Qe[-1-E]:P<=0?null:P==1?e.kV():e.wV(h).r,j=P<=0?e.rect:a.rect,L=$==null?new O(0,0,h.d,h.v):$.rect,H=$==null?s.Bh(h.d*h.v):$.channel,_=L.X(),J,S=null;
if(P<=0){J=s.m(_*4);s.hX(e.buffer,e.rect,J,L)}else{J=s.m(_);a.extend(L);s.T7(a.channel,a.rect,J,L)}if($!=null)s.FE(H,Z);
if(P>0){S=s.m(_);s.yh(Z,S)}if(0<=E&&$&&e.Ae(h,$)){var N=e.cj.KE,Y=e.cj.KE.slice(0);if(P<=0)s.i7(Z,Y);
else s.i7(S,Y);var U=new fW([2,3],this);U.data={e:"drawtemp",$:h.C[0],Md:P,a21:N,als:Y};h.eG(U);this.t4(U.data,h)}else{if(P<=0){var g;
if(e.ra(0)){g=s.m(L.X());s.z0(J,g,3)}s.p.Jn(c,Z,L,J,L,L,1);if(e.ra(0))s.Jk(g,J,3)}else s.p.Y6(S,L,J,L,H,L,1);
this.$x(h,!0,q,E,P,L,J)}};f.rz.prototype.Jr=function(h){if(p.rG.indexOf(h)!=-1)return!0;return!1};f.rz.prototype.WI=function(h,e,$,Z){var c=this.KY.brush,q=Z.q(p.ys),E=q!=this.Wq,P=f.rz.fF(c,Z);
if(P!=null)this.c9(P);if(!Z.q(p.tm)&&Z.sC()!=-1){var a=D.Ec(Math.round(this.KY.opacity*100),Z.sC())/100;
this.Ng({opacity:a},e)}if(this.id==f.ee&&E&&h!=null){var j=this.KY.qsmode;if(j==2)j=h.N==null?0:1;else j=2;
this.Ng({qsmode:j},e)}this.Wq=q;if(E){if(h)this.sn=h.z.S;this.qd($,Z)}};f.rz.fF=function(h,e){var $=h.Brsh.v.Dmtr.v.val,Z=h.Brsh.v.Hrdn!=null?h.Brsh.v.Hrdn.v.val:-1,c=$,q=Z,E=e.q(p.ai);
if(e.q(p.IA)){if(E)Z=25*Math.floor((Z-1)/25);else{if($<=10)$--;else if($<=50)$=5*Math.floor(($-1)/5);
else if($<=100)$=10*Math.floor(($-1)/10);else if($<=200)$=25*Math.floor(($-1)/25);else if($<=400)$=50*Math.floor(($-1)/50);
else $=100*Math.floor(($-1)/100)}}if(e.q(p.QI)){if(E)Z=25*Math.ceil((Z+1)/25);else{if($<10)$++;else if($<50)$=5*Math.ceil(($+1)/5);
else if($<100)$=10*Math.ceil(($+1)/10);else if($<200)$=25*Math.ceil(($+1)/25);else if($<400)$=50*Math.ceil(($+1)/50);
else $=100*Math.ceil(($+1)/100)}}$=Math.max(1,$);Z=Math.max(0,Math.min(100,Z));if(q==-1)Z=-1;if($!=c||Z!=q){var P=JSON.parse(JSON.stringify(h));
P.Brsh.v.Dmtr.v.val=$;if(q!=-1)P.Brsh.v.Hrdn.v.val=Z;return P}return null};f.rz.prototype.qd=function(h,e,$,Z){if(h.Ck.list.length==0)return;
var c=this.id,q;if((c==f.cb||c==f.xt||c==f.XP||c==f.VF)&&(e!=null&&e.q(p.ys)||this.KY.alt[0]))q="crosshair";
else{var E=this.sn,P=this.KY.brush;if((c==f.cb||c==f.xt)&&$&&this.KA&&this.KA.length==this.Je.X()*4){var a=$.z.QX(Z.x,Z.y),j=this.ak(a),L=this.KA,H=this.Je,_=new O(H.x+j.x,H.y+j.y,H.d,H.v),J=ec.MO(P,h.Ck.nM,E),S=J[0],N=J[1],Y=Math.ceil(N.d/E),U=new O(Math.round(a.x-Y/2),Math.round(a.y-Y/2),Y,Y),g=s.m(U.X()*4),M,C;
s.hX(L,_,g,U);if(E==1){M=g;C=U}else{var y=new i7(E,0,0,E,0,0),i=f.o.D8([g,U],y,!0);C=N.clone();C.x=i.rect.x;
C.y=i.rect.y;if(C.dz(i.rect))M=i.buffer;else{M=s.m(C.X()*4);s.hX(i.buffer,i.rect,M,C)}}var Q=this.KY.opacity/255;
for(var G=0;G<M.length;G+=4)M[G+3]=Q*(S[G+3]*M[G+3]);q={bj:M,_:C,yE:new eu(C.d/2,C.v/2)}}else q=ec.b1(P,h.Ck.nM,E,c==f.Cz)}var m=new B(D.E.P,!0);
m.data={e:D.U.Qd,Hz:q};if(this.caller)this.caller.f(m)};f.rz.prototype.enable=function(h,e,$,Z){this.D0=$;
this.caller=e;this.c9(JSON.parse(JSON.stringify(this.KY.brush)));if(h&&h.z.S!=0)this.sn=h.z.S;this.qd($,Z)};
f.rz.prototype.if=function(h,e){if(e==iM.bT){this.KY.brush=h.Ck.oA;this.qd(h)}};f.rz.prototype.cd=function(h,e,$,Z,c){for(var q in h)this.KY[q]=h[q];
if(this.KY.alt[0])this.qd(c,Z,$)};f.rz.prototype.LH=function(h){var e=h.vw.length!=0?-1-h.vw[0]:h.C[0],$=h.t[e],Z=e<0?1:$.jw,c=e<0?h.Qe[-e-1]:Z<=0?null:Z==1?$.kV():$.wV(h).r,q=c?c.channel:$.buffer,E=(c?c.rect:$.rect).clone();
return[$,Z,c,q,E]};f.rz.prototype.In=function(h,e){this.HC=h.N==null?null:{rect:h.N.rect.clone(),channel:h.N.channel.slice(0)};
var $=this.LH(h),Z=$[0],c=$[1],q=$[2];this.KQ=$[3];this.B0=$[4];var E=new O(0,0,h.d,h.v),P=E.iJ(this.B0);
if((this.ah()&&c<=0||P.dz(this.B0))&&e!=!0)this.KQ=this.KQ.slice(0);else{if(q)q.extend(P);else Z.extend(P)}};
f.rz.prototype.hB=function(h,e){var $=this.LH(h),Z=$[1],c=$[3],q=$[4],E=[c,q],P=e!=null?e:this.KY.sfrom;
if(Z<=0&&P!=0){E[1]=new O(0,0,h.d,h.v);E[0]=h.v2(P==1&&h.C[0]!=h.t.length-1?h.C[0]:null).slice(0)}this.Je=E[1].clone();
this.KA=E[0].slice(0)};f.rz.prototype.xX=function(h,e,$){if(h.q(p.ys)){var Z=new B(D.E.A,!0);Z.F=f.Ql;
Z.data={e:"pickhere",a1b:$};e.f(Z);return!0}return!1};f.rz.prototype.x3=function(h,e,$,Z,c,q){if(!h.Jh(this.caller)){this.Gg=null;
return}this.In(h);var E=new O(0,0,h.d,h.v),P=null;if(q!=null){var a=h.vw.length!=0?-1-h.vw[0]:h.C[0],j=h.t[a],L=a<0?h.Qe[-a-1]:j.jw<=0?null:j.jw==1?j.kV():j.wV(h).r;
P=s.m(E.X()*4);if(L)f.rz.Hw(this.KQ,this.B0,L.color,P,E);else s.hX(this.KQ,this.B0,P,E)}var H=this.KY;
if(this.Gg&&this.id==f.ee&&H.qsmode!=0&&h.N!=null){}else{var _=e.oV,J=e.XK;if(this._a=="erase"){var S=_;
_=J;J=S}var N=this.id==f.ee?this.B0:E;this.Gg=new ec(H.brush,e.Ck.nM,e.Ck.fB,{lV:c,o_:q,a8q:H.smth*50*D.M()/h.z.S,Xq:this.id==f.VF||H.emode==1,hS:H.prsr},_,J,N,P)}if(this.id==f.ee){this.Gg.O0(H.brush,H.qsmode==2?0:16777215)}var Y=h.z.QX(Z.x,Z.y);
if($.q(p.ai)&&this.s$){var U=this.s$;this.Gg.moveTo(U.x,U.y,Z.g9);this.Gg.lineTo(.001*U.x+.999*Y.x,.001*U.y+.999*Y.y,Z.g9);
this.Gg.lineTo(Y.x,Y.y,Z.g9)}else this.Gg.moveTo(Y.x,Y.y,Z.g9);this.s$=Y;this.DP=Y.clone();this.Fu=new g_(Y,h.z.uk)};
f.rz.prototype.f2=function(h,e,$){if(h&&h.z.S!=0&&h.z.S!=this.sn){this.sn=h.z.S;this.qd($)}};f.rz.prototype.eI=function(h,e,$,Z){if(this.Gg==null)return;
var c=h.t[h.C[0]],q=h.z.QX(Z.x,Z.y),E=this.Fu.MS(q,$);if(E.dz(this.s$))return 1;this.Gg.lineTo(E.x,E.y,Z.g9);
this.s$=E;if(this.id==f.cb||this.id==f.xt){var P=this.cP(),a=11;P=h.z.ab(q.x-P.x,q.y-P.y);var j=a>>>1,L=new O(Math.round(P.x)-j,Math.round(P.y)-j,a,a),H=s.m(L.X()*4);
s.Ut(16777215);for(var G=0;G<a;G++)H[(G*a+j)*4+3]=H[(a*j+G)*4+3]=255;h.K.Yr=[[H,L]];h.IL=!0}};f.rz.prototype.yY=function(h,e,$,Z){if($.$P!=this.id)return;
if(this.id!=f.ee||h==null)return;if(h.N==null||h.C[0]!=this.a8t){this.a8t=h.C[0];this.Ng({qsmode:0},e)}};
f.rz.prototype.s=function(h,e){if(h.vw.length!=0){h.IL=!0;return}var $=h.t[h.C[0]];if(e==null){e=this.Gg.vX();
if(this.ah()&&$.jw<=0)e=e.jx(this.B0)}if(e.nK())return;if($.jw<=0){$.s(e)}if($.jw==1){$.kV().w4=!0;$.ZB(h)}if($.jw==3){$.s()}h.s(h.root.oY(e,h,h.C[0],!0))};
f.rz.prototype.f0=function(h,e,$,Z,c){if(this.Gg==null)return;this.Gg.finish();if(this.id!=f.G3&&this.id!=f.xt&&this.id!=f.ee)this.sI(h);
if(this.id==f.cb||this.id==f.xt){h.K.Yr=[];h.IL=!0}if(this.id==f.ee){var q=h.N;h.N=this.HC;var E=new B(D.E.A,!0);
E.data={e:"setsel",cJ:this.name,N:q};E.F=f.$r;e.f(E);if(this.KY.qsmode==0)this.Ng({qsmode:1},e)}else{this.finish(h,this.Gg.bJ());
this.Gg=null;this.tC=null}this.dir=0};f.rz.prototype.Ng=function(h,e){for(var $ in h)this.KY[$]=h[$];
var Z=new B(D.E.P,!0);Z.data={e:D.U.UR,F:this.id,z4:h};e.f(Z)};f.rz.prototype.ah=function(){var h=this.id;
return h==f.ee||h==f.d7||h==f.s5||h==f.Hh||h==f.ME||h==f.PE};f.rz.prototype.finish=function(h,e,$,Z,c){var q=h.vw.length!=0?-1-h.vw[0]:h.C[0],E=h.t[q],P=q<0?1:E.jw,a=q<0?h.Qe[-q-1]:P<=0?null:P==1?E.kV():E.wV(h).r,j=a?a.rect:E.rect,_;
if(this.ah()||!j.dz(this.B0)){if(a==null){if(this.ah())E.V9();else{var L=e.iJ(this.B0),H=s.m(L.X()*4);
s.hX(E.buffer,E.rect,H,L);E.buffer=H;E.rect=L}}else a.V9();this.s(h,j)}if(P<=0){_=s.m(e.X()*4);s.hX(this.KQ,this.B0,_,e)}else{_=s.m(e.X());
_.fill(a.color);s.T7(this.KQ,this.B0,_,e)}this.$x(h,!1,$?$:this.name,q,P,e,_,Z,c)};f.rz.prototype.$x=function(h,e,$,Z,c,q,E,P,a){var j=E;
if(c>0){j=s.m(q.X()*4);f.rz.Hw(E,q,0,j,q)}var L=new fW($,this);L.data=[{$:Z,Md:c,_:q,Yu:j}];if(P)L.data.Jz=[h.N,null];
if(a)L.data.Jz=[this.HC,h.N];h.eG(L);if(e)this.t4(L.data,h);else if(P)h.N=null;bn.wk.cM(h,L.data)};f.rz.prototype.yc=function(h,e){this.UB(h,e,!1)};
f.rz.prototype.t4=function(h,e){this.UB(h,e,!0)};f.rz.prototype.UB=function(h,e,$){if(h.e=="drawtemp"){var Z=$?h.als:h.a21,c=e.t[h.$];
c.cj.KE=Z;c.NP(e,0,0,e.N);c.s();e.uu=!0}else{bn.wk.Qr(e,h);if(h.Jz){e.N=h.Jz[$?1:0];e.al=!0}}e.s()};
f.rz.prototype.sI=function(h){this.JY(h,this._a,this.Gg.os(),this.Gg._A(),this.Gg.vX());this.s(h)};f.rz.prototype.JY=function(h,e,$,Z,c){var q=this.KY,E=h.t[h.C[0]],P=h.vw.length!=0?h.Qe[h.vw[0]]:E.jw<=0?null:E.jw==1?E.kV():E.wV(h).r,a=s.m(c.X()*4),j,L=E.ra(0);
if(P==null){if(this.id==f.YK&&e=="heal")s.hX(E.buffer,E.rect,a,c);else s.hX(this.KQ,this.B0,a,c);if(L){j=s.m(c.X());
s.z0(a,j,3)}}else{f.rz.Hw(this.KQ,this.B0,P.color,a,c)}if(h.N&&e!="qselect"){var H=c.jx(h.N.rect),_=s.m(H.X()*4);
if(e=="copy"){var J=s.m(H.X());s.T7(h.N.channel,h.N.rect,J,H);s.hX(a,c,_,H);s.p.cZ($,Z,_,H,J,H,0,H,1,!1)}else{s.hX($,Z,_,H);
s.w2(h.N.channel,h.N.rect,_,H)}$=_;Z=H}function S(U,fz){var gf=Math.max(fz.x,Math.min(fz.x+fz.d-1,U.x)),bb=Math.max(fz.y,Math.min(fz.y+fz.v-1,U.y));
return new eu(gf,bb)}if(e=="idraw"||e=="ierase"){if(this.tC==null)this.tC=s.m(this.B0.X());var N=this.KY.samp,Y=this.D0.XK,U=S(this.s$,c),g=N==0?U:this.DP,M=g.x,C=g.y,y=f.oz.kz(this.KQ,this.B0,[g,new eu(M-2,C),new eu(M+2,C),new eu(M,C-2),new eu(M,C+2)]);
if(N==2)y=[[Y>>>16&255,Y>>>8&255,Y>>>0&255,255]];var i=f.oz.ia(a,c,U,y,this.KY.wconf),Q=s.m(c.X());s.T7(this.tC,this.B0,Q,c);
s.gV.iJ(i,Q,Q);s.T7(Q,c,this.tC,this.B0);s.w2(Q,c,$,Z);e=e.slice(1)}if(e=="erase"&&(bn.wk.zL(h)!=16777215||P))e="draw";
if(e=="draw")s.p.Jn(q.bmode,$,Z,a,c,c,q.opacity);else if(e=="erase"){var m=s.m(c.X()*4);s.hX($,Z,m,c);
if(P==null){var n=s.m(c.X());s.z0(m,n,3);s.vI(n,q.opacity);s.vy(n);s.w2(n,c,a,c)}else{s.Ut(m,0,4278190080);
s.p.Jn("norm",m,c,a,c,c,q.opacity)}}else if(e=="clone"||e=="heal"){var u=this.cP(),K=this.Je.clone();
K.offset(u.x,u.y);var F=c.clone();F.P5(1,1);var b=s.m(F.X()*4),d=s.m(F.X());s.hX($,Z,b,F);s.z0(b,d,3);
s.Ut(b,0);if(P==null){s.hX(this.KA,K,b,F);var W=s.m(F.X());s.z0(b,W,3);s.J9(W,d)}else f.rz.Hw(this.KA,K,P.color,b,F);
if(e=="clone"){s.Jk(d,b,3);s.p.Jn(q.bmode,b,F,a,c,c,q.opacity)}if(e=="heal"){var A=d.slice(0);s.round(A,20);
var z=s.m(F.X()*4);if(P==null)s.hX(this.KQ,this.B0,z,F);else f.rz.Hw(this.KQ,this.B0,P.color,z,F);s.p.cZ(b,F,z,F,A,F,0,F,1,!1);
s.WO.xS(z,A,F);s.p.cZ(z,F,a,c,d,F,0,c,1,!1)}}else if(e=="dodge"||e=="burn"){var b=s.m(c.X()*4),I=1,r=0,x=0,X=0;
s.hX($,Z,b,c);var T=c.X()*4,R=f.rz.Ld;if(this.Wq){if(e=="dodge")e="burn";else e="dodge"}var l=q.rng;
if(e=="dodge"){r=[1-I/2,1,1+I][l];x=[1,1/(1+I),1][l];X=[I/2,0,0][l]}if(e=="burn"){r=[1/(1-I/2),1,1-I/2][l];
x=[1,1+I,1][l];X=[-(I/2)/(1-I/2),0,0][l]}for(var G=0;G<T;G+=4){var hH=b[G+3];a[G+0]=R(a[G+0],r,x,X,hH);
a[G+1]=R(a[G+1],r,x,X,hH);a[G+2]=R(a[G+2],r,x,X,hH)}}else if(e=="sponge"||e=="redeye"){var b=s.m(c.X()*4),d=s.m(c.X());
s.hX($,Z,b,c);s.z0(b,d,3);s.i7(a,b);var hZ=q.smode;if(this.Wq)hZ=1-hZ;var gj=dA.X3("hue2");if(e=="sponge")eb.u1(gj,0,[0,[-50,46][hZ],[6,5][hZ]]);
else eb.u1(gj,1,{bR:[265,305,25,55],eV:[0,-90,-70]});var hO=es.J8("hue2",gj);es.Vv(hO,b,b,c);s.p.cZ(b,c,a,c,d,c,0,c,1,!1)}else if(e=="copy")s.hX($,Z,a,c);
else if(e=="sheal"){var b=s.m(c.X()*4),d=s.m(c.X());s.hX($,Z,b,c);s.z0(b,d,3);b.fill(0);var d3=this.KA,v=this.Je;
if(P){d3=s.m(v.X()*4);f.rz.Hw(this.KA,v,0,d3,v)}var hl=s.U_.xS(d3,v,d,b,c);if(hl!=0)s.hX(d3,v,b,c);if(this.KY.sfrom==0)s.hX(b,c,a,c);
else{s.hX(this.KQ,this.B0,a,c);s.Jk(d,b,3);s.p.Jn("norm",b,c,a,c,c,1)}}else if(e=="qselect"){var ht=this.B0,ga=ht.d,eB=ht.v,bP=ga*eB,ek=this.Gg.os(),y=this.KQ,b_=f.LV.Gd,d=b_.C7;
d.fill(128);for(var G=0;G<bP;G++){var fz=ek[G<<2],ca=ek[(G<<2)+3];if(ca==255&&(fz==0||fz==255))d[G]=fz}d[0]=d[ga-1]=0;
d[(eB>>>1)*ga]=d[(eB>>>1)*ga+ga-1]=0;f.Fw.Gi(b_,!0);h.N={rect:ht,channel:b_.N.slice(0)};h.al=!0}if(P==null){if(L)s.Jk(j,a,3);
s.hX(a,c,E.buffer,E.rect)}else f.rz.cx(a,c,P)};f.rz.cP=function(){return null};f.rz.Ld=function(h,e,$,Z,c){var q=h*(1/255),E=Z+e*Math.pow(q,$),P=Math.round(E*c+q*(255-c));
return Math.max(0,Math.min(255,P))};f.rz.Hw=function(h,e,$,Z,c){var q=s.m(c.X());q.fill($);s.T7(h,e,q,c);
Z.fill(255);s.Kh(q,Z)};f.rz.cx=function(h,e,$){var Z=s.m(e.X());s.yh(h,Z);s.T7(Z,e,$.channel,$.rect)};
f.LV=function(h,e,$){f.ar.call(this,h,e,$);this.KY={H6:"front",gE:0,_z:{A2:0,x:3,y:2},hZ:[16,!0,!0]};
this.ag=new eu(-1,-1);this.X_=new eu(-1,-1);this.eu="default";this.a3=null;this.adR=!0;this.yO=!1;this.$G=!1;
this.Wq=!1;this.zS=0;this.zg=0;this.rH=!1;this.rC=null;this.CQ=null;this.QG=!1};f.LV.prototype=new f.ar;
f.LV.prototype.a4u=function(){var h=this.KY,e=[{front:0,union:1,difference:2,intersection:3}[h.H6],h.gE];
if(this.id==f.et)e.push(h.hZ);return e};f.LV.prototype.aa0=function(h,e,$){var Z=this.KY;Z.H6=["front","union","difference","intersection"][h[0]];
Z.gE=h[1];Z.hZ=h[2];var c=new B(D.E.P,!0);c.data={e:D.U.UR,F:this.id,Oi:Z};$.f(c)};f.LV.Gd={key:""};
f.LV.jG=function(h,e){var $={Lw:h,TJ:{classID:"setd",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}};
if(e)$.TJ.T=e;return $};f.LV.n5=function(h,e){return f.LV.jG("set",{t:"Objc",v:{classID:h,Top:{t:"UntF",v:{type:"#Pxl",val:e.y}},Left:{t:"UntF",v:{type:"#Pxl",val:e.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:e.y+e.v}},Rght:{t:"UntF",v:{type:"#Pxl",val:e.x+e.d}}}})};
f.LV.UL=function(h,e){var $=[],Z=[],q="set";for(var G=0;G<h.length;G+=2){$.push(h[G]);Z.push(h[G+1])}var c={t:"Objc",v:{classID:"Plgn",Pts:{t:"ObAr",v:{classID:"Pnt",arr:[{id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:$},{id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:Z}]}}}};
if(e)q={front:"set",union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[e];return f.LV.jG(q,c)};
f.LV.a35=function(h,e){var $={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:h.x}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:h.y}}}},Z=f.LV.jG("set",$);
Z.TJ.Tlrn={t:"long",v:e[0]};Z.TJ.AntA={t:"bool",v:e[1]};Z.TJ.Cntg={t:"bool",v:e[2]};return Z};f.LV.ss=function(h){return f.LV.jG("set",{t:"enum",v:{Ordn:h?"Al":"None"}})};
f.LV.afB=function(h,e,$){var Z={classID:"null"};if(h!="border")Z.selectionModifyEffectAtCanvasBounds={t:"bool",v:$};
var c={e:"By",c:"By",b:"Wdth",f:"Rds",s:"Rds"}[h[0]];Z[c]={t:"UntF",v:{type:"#Pxl",val:e}};return{Lw:h,TJ:Z}};
f.LV.Ea=function(h,e,$){var Z={t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]},c={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:e}}]};
if($)c.v.push({t:"name",v:{classID:"Lyr",val:$}});var q=[{classID:"null",null:Z,T:c},{classID:"null",null:c,T:Z},{classID:"null",null:c,From:Z},{classID:"null",null:c,With:Z}],E=["set","add","subtract","interfaceIconFrameDimmed"];
return{Lw:E[h],TJ:q[h]}};f.LV.nt=function(h,e){var $=new B(D.E.P,!0);$.data={e:D.U.Ov,Av:iM.GN};if(!e.y7)h.f($);
$.data={e:D.U.Ov,Av:iM.GZ};if(!e.cz.L6)h.f($)};f.LV.prototype.a1=function(h,e,$,Z,c){f.LV.nt(e,c);this.a3=e;
var q=h.e,E,P,a=new O(0,0,$.d,$.v),ca=!1,gf,bb,b2,dV;if(q=="fromAction"){var j=h.W_,L=j.Lw,H=j.TJ,_=H?H.selectionModifyEffectAtCanvasBounds:null,J=_&&_.v;
if(L=="inverse"){if($.N==null){alert("No selection!");return}E={channel:s.m(a.X()),rect:a};s.T7($.N.channel,$.N.rect,E.channel,E.rect);
s.vy(E.channel);P=[7,2]}else if(L=="expand"){var S=H.By.v.val,N=$.N.rect.clone();N.P5(S,S);var Y=s.m(N.X()),U=s.m(N.X());
s.T7($.N.channel,$.N.rect,U,N);s.style.stroke(U,Y,N,S);E={channel:Y,rect:N};P=[7,4]}else if(L=="contract"){var S=H.By.v.val,g=$.N.rect.clone();
g.P5(1,1);if(!J)g=g.jx(a);var U=s.m(g.X()),M=s.m(U.length);s.T7($.N.channel,$.N.rect,U,g);s.vy(U);s.style.stroke(U,M,g,S);
s.vy(M);E={channel:M,rect:g};s.V9(E);P=[7,5]}else if(L=="border"){var S=H.Wdth.v.val;E=f.LV.gJ($.N,S/2,S/2);
P=[7,9]}else if(L=="feather"||L=="smoothness"){var S=H.Rds.v.val;E=f.LV.PB($.N,S,L=="smoothness",a,J);
P=L=="feather"?[7,6]:[19,3,0]}else{var C=H.null.v;function y(fa){var eI=fa.Top.v.val,dq=fa.Left.v.val;
return new O(dq,eI,fa.Rght.v.val-dq,fa.Btom.v.val-eI)}function i(fa){var eI=fa[0].arr,it=fa[1].arr,ic={H:[],Z:[]};
for(var G=0;G<eI.length;G++){ic.Z.push(G==0?"M":"L");ic.H.push(eI[G],it[G])}ic.Z.push("Z");return ic}var Q=["set","addTo","subtractFrom","interfaceWhite"].indexOf(L),m=H.T?H.T.v:null;
if(m&&m.classID=="Elps"){E=this.yp(f.nz.Bm(y(m)));P=[10,4]}else if(m&&m.classID=="Rctn"){var n=y(m);
E={channel:s.m(n.X()),rect:n.clone()};E.channel.fill(255);P=[10,15]}else if(m&&m.classID=="ObSl"){var n=y(m),u=f.LV.Gd,K=u.rect,F=u.C7,b=K.d,d=K.v,W=n.x-K.x,A=W+n.d-1,z=Math.max(W,Math.min(A,W+A>>>1)),T=n.y-K.y,R=T+n.v-1,I=Math.max(T,Math.min(R,T+R>>>1)),r=Math.max(W,0),x=Math.min(A,b),X=Math.max(T,0),l=Math.min(R,d);
F.fill(128);if(0<=T)for(var hH=r;hH<x;hH++)F[T*b+hH]=0;if(R<d)for(var hH=r;hH<x;hH++)F[R*b+hH]=0;if(0<=W)for(var hZ=X;
hZ<l;hZ++)F[hZ*b+W]=0;if(A<b)for(var hZ=X;hZ<l;hZ++)F[hZ*b+A]=0;var gj=f.IU.Ru,hO=Math.round(n.d*gj),d3=Math.round(n.v*gj);
for(var hH=Math.max(0,z-hO);hH<Math.min(b,z+hO);hH++)F[I*b+hH]=255;for(var hZ=Math.max(0,I-d3);hZ<Math.min(d,I+d3);
hZ++)F[hZ*b+z]=255;f.Fw.Gi(u,!0);E={channel:u.N.slice(0),rect:K.clone()};P=[10,44]}else if(m&&m.classID=="Plgn"){E=this.yp(i(m.Pts.v.arr));
P=[10,9]}else if(m&&m.classID=="Pnt"){E=f.oz.N_($,new eu(m.Hrzn.v.val,m.Vrtc.v.val),[H.Tlrn.v,H.AntA==null||H.AntA.v,H.Cntg==null||H.Cntg.v]);
P=[10,12]}else if(m&&m.Ordn=="None"){E=null;P=[7,1]}else if(m&&m.Ordn=="Al"){E={channel:s.m(a.X()),rect:a};
E.channel.fill(255);P=[7,0]}else if(m&&m[0]&&m[0].v.keyID=="WrPt"){var v={e:"frompath",py:[-1,0,0]};
this.a1(v,e,$,Z,c);return}else{var hl=["set","add","subtract","interfaceIconFrameDimmed"].indexOf(L),ht=L=="set"?m:C,ga=ht[0].v.enum,v;
if(ga=="Trsp"||ga=="Msk"||ga=="vectorMask"){var eB=$.C[0];if(ht.length==2)eB=bw.GH($,ht[1]);var bP=["Trsp","Msk","vectorMask"].indexOf(ga);
v={e:"fromlayer",py:[eB,bP,hl]}}else{if(ht[0].t=="name"){var eB=0;for(var G=0;G<$.Qe.length;G++)if($.Qe[G].name==ht[0].v.val)eB=G;
v={e:"fromchannel",py:[-5-eB,0,hl]}}else{var ek=["RGB","Rd","Grn","Bl"].indexOf(ga);v={e:"fromchannel",py:[-1-ek,0,hl]}}}this.a1(v,e,$,Z,c);
return}if(H.Fthr)E=f.LV.PB(E,H.Fthr.v.val,!1);if(L!="set"&&$.N!=null)E=s.gV.yg(E,$.N,["","union","difference","intersection"][Q])}if(L=="expand"||L=="contract")if(!J&&!a.contains(E.rect)){var b_=E.rect.jx(a),fz=s.m(b_.X());
s.T7(E.channel,E.rect,fz,b_);E.channel=fz;E.rect=b_}}if(q=="qmask"){ca=!0;var ch=$.M3(),hE=new O(0,0,$.d,$.v);
if(ch){E=ch.rect.dz(hE)&&s.w_(ch.channel,255)?null:{rect:ch.rect.clone(),channel:ch.channel.slice(0)};
gf=ch}else{E=null;bb=new o.kq;bb.color=0;bb.name="Quick Mask";bb.rV=!0;if($.N){bb.rect=$.N.rect.clone();
bb.channel=$.N.channel.slice(0)}else{bb.rect=hE;bb.channel=s.m(bb.rect.X());bb.channel.fill(255)}}P=[6,6,1]}if(q=="setsel"){E=h.N;
P=h.cJ}if(q=="crange"){var dS=h.qO,e1=h.XF;E=f.LV.qF($,dS,e1,h.wO);P=[7,8];dS={t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:dS.Hs},A:{t:"doub",v:dS.R},B:{t:"doub",v:dS.O}}};
e1={t:"Objc",v:{classID:"LbCl",Lmnc:{t:"doub",v:e1.Hs},A:{t:"doub",v:e1.R},B:{t:"doub",v:e1.O}}};this.track({Lw:"colorRange",TJ:{__name:"Color Range",classID:"ClrR",Fzns:{t:"long",v:Math.round(h.wO*200)},Mnm:dS,Mxm:e1,colorModel:{t:"long",v:0}}})}if(q=="fromlayer"||q=="fromchannel"||q=="frompath"){var eG=h.py[0],bP=h.py[1],Q=h.py[2];
if(q=="fromlayer"){if(eG==null)eG=$.C[0];var dq=$.t[eG];if(bP==0){var f2=dq.rect,a3=dq.buffer;if(f2.nK())return;
var bm=s.m(a3.length>>>2);s.z0(a3,bm,3);E={channel:bm,rect:f2.clone()}}else{if(dq.r==null)dq.ZB($);var h2=bP==1?dq.kV():dq.r;
E=f.LV.B5(h2,a)}this.track(f.LV.Ea(Q,["Trsp","Msk"][bP],dq.getName()))}else if(q=="frompath"){var ag=$.U9(),eU=ag[1],ag=ag[0];
if(eG==null)if(ag.length==0||eU.length==0)return;var iz=ag[eU[0]];if(eG!=null)for(var G=0;G<ag.length;
G++)if(ag[G].NS==eG)iz=ag[G];var h2=iz.add.vmsk.kV(),d2=h2._A();if(d2.X()==0)return;var bm=h2.PV();if(h.py[3]!=null)this.adR=h.py[3];
if(this.adR){bm=bm.slice(0);s.round(bm)}b2=[JSON.stringify($.fV),JSON.stringify($.mG)];dV=["[]","[]"];
$.fV=[];$.mG=[];E={channel:bm,rect:d2}}else{if(eG==null)eG=f.LV.Sn($);E=f.LV.Qj($,eG)}if(Q!=0&&$.N)E=s.gV.yg(E,$.N,["","union","difference","intersection"][Q]);
P=[14,11]}if(E!=null&&s.w_(E.channel,0)){E=null;P=[7,1]}if(E)s.V9(E);var gP=new fW(P,this);gP.data={e:"changesel",HC:$.N,A9:E,M3:ca,akv:gf,adb:bb,yP:b2,akk:dV};
$.eG(gP);this.t4(gP.data,$)};f.LV.Sn=function(h){var e=0;if(h.vw.length!=0)e=-5-h.vw[0];else if(JSON.stringify(h.z.RI)=="[1,1,1]")e=-1;
else e=-2-h.z.RI.indexOf(1);return e};f.LV.Qj=function(h,e){var $,Z=new O(0,0,h.d,h.v);if(-5<e&e<0){var c=-e-1,q=h.v2(),E=s.m(Z.X());
if(c==0)s.yh(q,E);else s.z0(q,E,c-1);$={channel:E,rect:Z.clone()}}if(e<-4){$=f.LV.B5(h.Qe[-e-5],Z)}return $};
f.LV.B5=function(h,e){var $,Z;if(h.LX()==0){Z=h._A();if(Z.X()==0)return;$=h.PV()}else{Z=e;$=s.m(Z.X());
h.tM(Z,$)}return{channel:$,rect:Z}};f.LV.prototype.s4=function(h){return this.rH||h.xo&&this.id!=f.V7};
f.LV.prototype.Gu=function(h,e,$){var Z=new B(e,!0);Z.data=$;h.f(Z)};f.LV.prototype.nq=function(h,e){var $=new B(D.E.P,!0);
$.data={e:D.U.Qd,Hz:e};h.f($)};f.LV.prototype._A=function(h,e,$){e=h.N==null||this.zS>1||this.zg>1?e:null;
var Z=this.ag,c=this.X_;if($){Z.x=Math.max(0,Math.min(h.d,Z.x));Z.y=Math.max(0,Math.min(h.v,Z.y));c.x=Math.max(0,Math.min(h.d,c.x));
c.y=Math.max(0,Math.min(h.v,c.y))}var q=f.vA.Px(Z,c,e,!0,this.KY._z),E=q[0].x,P=q[0].y;return new O(E,P,q[1].x-E,q[1].y-P)};
f.LV.prototype.yj=function(h,e,$,Z,c){if(this.ho())return;this.a3=e;this.yO=!1;this.$G=Z.q(p.ai);this.Wq=Z.q(p.ys);
this.zS=this.$G?0:1;this.zg=this.Wq?0:1;this.ag=h.z.QX(c.x,c.y);this.ag=f.fQ.cX(h,this.ag,$);if(this.Yi(h,this.ag,Z)){this.rH=!0;
this.rC=h.N.rect.clone();return}this.Aw(h,$,Z,c);h.z.og=new O};f.LV.prototype.Yi=function(h,e,$){var Z=$.q(p.ai),c=$.q(p.ys);
if(h.N&&!Z&&!c&&this.KY.H6=="front")return s.mI(e,h.N.channel,h.N.rect);return!1};f.LV.prototype.oX=function(h,e,$,Z,c){this.a3=e;
if(this.QG)return;var q=h.z.QX(c.x,c.y);if(eu.nj(this.ag,q)*h.z.S>5)this.yO=!0;if(Z.q(p.P2)){if(this.CQ==null)this.CQ=new eu(q.x-this.ag.x,q.y-this.ag.y);
this.ag.x=q.x-this.CQ.x;this.ag.y=q.y-this.CQ.y}else this.CQ=null;this.X_=q;if(!this.rH)this.X_=f.fQ.cX(h,this.X_,$);
if(this.Yi(h,this.X_,Z))this.nq(e,"move");else this.nq(e,this.eu);if(this.rH){var E=this.rC.clone();
E.x+=this.X_.x-this.ag.x;E.y+=this.X_.y-this.ag.y;var P=f.fQ.OM(h,E,$);h.N.rect.x=Math.round(this.X_.x-this.ag.x+this.rC.x+P[0]);
h.N.rect.y=Math.round(this.X_.y-this.ag.y+this.rC.y+P[1]);h.al=!0;f.fQ.CY(h,E,P);return}this.AT(h,$,Z,c);
if(h.z.og)h.z.og=this._A(h,Z)};f.LV.prototype.ho=function(){return!1};f.LV.prototype.f0=function(h,e,$,Z,c){h.z.og=null;
this.X_=h.z.QX(c.x,c.y);this.X_=f.fQ.cX(h,this.X_,$);if(this.rH){this.rH=!1;if(this.X_.dz(this.ag)&&this.tR()=="front"){this.Gu(e,D.E.Kz,f.LV.ss());
return}this.hn(h,this.rC,h.N.rect.clone());if(h!=null&&h.K.yu){h.K.yu=null;h.IL=!0}return}this.IB(h,$,Z,c);
f.LV.nt(e,$)};f.LV.prototype.hn=function(h,e,$){var Z=h.fX();if(Z!=null&&Z.F==this&&Z.data.e=="movesel"){}else{Z=new fW([7,7],this);
Z.data={e:"movesel",Y$:e};h.eG(Z)}Z.data.Ga=$;this.t4(Z.data,h)};f.LV.prototype.p8=function(h,e,$,Z,c){this.QG=!0};
f.LV.prototype.d1=function(h,e,$,Z,c){var q=new B(D.E.P,!0);q.data={e:D.U.UR,F:this.id,BQ:c,im:h,pq:$};
e.f(q);this.QG=!1};f.LV.prototype.WI=function(h,e,$,Z){var c=Z.q(p.ai),q=Z.q(p.ys);if(this.yO){if(this.zS==0&&!c)this.zS++;
if(this.zS==1&&c)this.zS++;if(this.zg==0&&!q)this.zg++;if(this.zg==1&&q)this.zg++}if(h!=null&&h.N!=null){var E=Z.cy();
if(E.x!=0||E.y!=0){var P=h.N.rect.clone();P.x+=E.x;P.y+=E.y;this.hn(h,h.N.rect.clone(),P)}}var a=f.LV.z6(this.KY.H6,c,q),j=new B(D.E.P,!0);
j.data={e:D.U.UR,F:this.id,H6:a};e.f(j)};f.LV.prototype.finish=function(h,e,$,Z){var c=h.N,q=this.getSelection(h,e,$,Z);
if(q==null)q=f.LV.ss();else{var E=this.KY.gE,P=this.tR();if(E!=0)q.TJ.Fthr={t:"UntF",v:{type:"#Pxl",val:E}};
if(P!="front"&&P!="xor")q.Lw={union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[P]}this.Gu(this.a3,D.E.Kz,q);
this.ag.su(-1,-1);this.X_.su(-1,-1)};f.LV.prototype.tR=function(){return f.LV.z6(this.KY.H6,this.$G,this.Wq)};
f.LV.z6=function(h,e,$){if(e)h="union";if($)h="difference";if(e&&$)h="intersection";return h};f.LV.prototype.getSelection=function(h,e,$,Z){return null};
f.LV.prototype.Aw=function(h,e,$,Z){};f.LV.prototype.AT=function(h,e,$,Z){};f.LV.prototype.IB=function(h,e,$,Z){};
f.LV.prototype.yc=function(h,e){var $=h.e;if($=="changesel")e.N=h.HC;if($=="movesel")e.N.rect=h.Y$;if(h.M3){if(h.akv){e.vw=[e.Qe.length];
e.Qe.push(h.akv)}else{e.Qe.pop();e.vw=[]}}if(h.yP){e.fV=JSON.parse(h.yP[0]);e.mG=JSON.parse(h.yP[1])}e.al=!0};
f.LV.prototype.t4=function(h,e){var $=h.e;if($=="changesel")e.N=h.A9;if($=="movesel")e.N.rect=h.Ga;if(h.M3){if(h.adb){e.vw=[e.Qe.length];
e.Qe.push(h.adb)}else{e.Qe.pop();e.vw=[]}}if(h.yP){e.fV=JSON.parse(h.akk[0]);e.mG=JSON.parse(h.akk[1])}e.al=!0};
f.LV.prototype.cd=function(h){this.KY=h};f.LV.prototype.yp=function(h){var e=s.a.pl(h.H);if(e.nK())return null;
var $=D.w("canvas","");$.width=e.d;$.height=e.v;var Z=$.getContext("2d");Z.beginPath();Z.translate(-e.x,-e.y);
Typr.U.pathToContext({cmds:h.Z,crds:h.H},Z);Z.closePath();Z.fill();var c=s.m(e.X()),q=Z.getImageData(0,0,$.width,$.height);
s.z0(q.data,c,3);return{rect:e,channel:c}};f.LV.PB=function(h,e,$,Z,c){if($)e=Math.round(e*.7);var q=Math.ceil(2.6*e),E=h.rect.clone();
E.P5(q,q);if(Z&&!c)E=E.jx(Z);var P=s.m(E.X()),a=s.m(P.length);s.T7(h.channel,h.rect,a,E);s.Nw.ec(a,P,E,e);
if($){var j=P.length;for(var G=0;G<j;G++){var L=(P[G]-128)*e*2.5;P[G]=Math.max(0,Math.min(255,Math.round(128+L)))}}return{channel:P,rect:E}};
f.LV.gJ=function(h,e,$){var Z=Math.max(1,Math.ceil($)),c=h.rect.clone();c.P5(Z,Z);var q=c.X(),E={channel:s.m(q),rect:c},P=s.m(q);
s.T7(h.channel,h.rect,P,E.rect);if($!=0)s.style.stroke(P,E.channel,E.rect,$);else s.i7(P,E.channel);
var a=s.m(q);s.vy(P);if(e!=0)s.style.stroke(P,a,E.rect,e);else s.i7(P,a);s.gV.jx(E.channel,a,E.channel);
return E};f.LV.qF=function(h,e,$,Z){var c=new O(0,0,h.d,h.v),q=h.v2();if(h.N){var E=h.N.rect.jx(c),P=s.m(E.X()*4);
s.hX(q,c,P,E);c=E;q=P}var a=c.X(),j=s.m(a),L=1/Z;for(var G=0;G<a;G++){var H=G<<2,_=s.Z1(q[H],q[H+1],q[H+2]),J=s.Ku(_,e,$,Z,L);
j[G]=q[H+3]*J}return{rect:c,channel:j}};f.w$=function(){f.rz.call(this,[10,18],f.Uq,"tools/blur");this._a="copy"};
f.w$.prototype=new f.rz;f.w$.prototype.yj=function(h,e,$,Z,c){var q=Z.q(p.ys)?ec.Dj:ec.Uq;this.x3(h,$,Z,c,this.KY.strn,q);
if(this.Gg==null)return;this.sI(h)};f.w$.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);if(this.Iy)this.s2(h,$,c);
if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.z2=function(){f.rz.call(this,[10,0],f.XP,"tools/brush");
this._a="draw"};f.z2.prototype=new f.rz;f.z2.prototype.yj=function(h,e,$,Z,c){if(this.xX(Z,e,c))return;
this.x3(h,$,Z,c,this.KY.flow);if(this.Gg==null)return;this.sI(h)};f.z2.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);
if(this.Iy)this.s2(h,$,c);if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.R7=function(){f.rz.call(this,[10,42],f.Cz,"tools/crepl");
this._a="idraw";this.KY.bmode="hue "};f.R7.prototype=new f.rz;f.R7.prototype.yj=function(h,e,$,Z,c){if(this.xX(Z,e,c))return;
this.x3(h,$,Z,c,this.KY.flow);if(this.Gg==null)return;this.sI(h)};f.R7.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);
if(this.Iy)this.s2(h,$,c);if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.Sc=function(){f.rz.call(this,[10,43],f.PE,"tools/redeye");
this.KY.smode=0;this._a="redeye"};f.Sc.prototype=new f.rz;f.Sc.prototype.yj=function(h,e,$,Z,c){this.x3(h,$,Z,c,this.KY.flow);
if(this.Gg==null)return;this.sI(h)};f.Sc.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);if(this.Iy)this.s2(h,$,c);
if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.yC=function(){f.rz.call(this,[10,38],f.VF,"tools/pencil");
this._a="draw"};f.yC.prototype=new f.rz;f.yC.prototype.yj=function(h,e,$,Z,c){if(this.xX(Z,e,c))return;
this.x3(h,$,Z,c,this.KY.flow);if(this.Gg==null)return;this.sI(h)};f.yC.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);
if(this.Iy)this.s2(h,$,c);if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.Ik=function(){f.rz.call(this,[10,22],f.Hh,"tools/burn");
this._a="burn"};f.Ik.prototype=new f.rz;f.Ik.prototype.yj=function(h,e,$,Z,c){this.x3(h,$,Z,c,this.KY.expo/Math.E);
if(this.Gg==null)return;this.sI(h)};f.Ik.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);if(this.Iy)this.s2(h,$,c);
if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.ex=function(h,e,$){f.rz.call(this,h==""?null:h?h:[10,1],e?e:f.cb,$?$:"tools/clone");
this._a="clone";this.LR=null;this.i=null};f.ex.prototype=new f.rz;f.ex.prototype.yj=function(h,e,$,Z,c){var q=this.KY,E=q.alt[0];
if(Z.q(p.ys)||Z.q(p.el)||E){this.LR=h.z.QX(c.x,c.y);this.i=null;if(E)this.Ng({alt:[!1]},e);this.hB(h);
this.qd($,Z,h,c);return}if(this.LR==null){alert(e_.get([15,7,0]));return}this.qd($,Z);this.x3(h,$,Z,c,this.KY.flow);
if(this.Gg==null)return;this.i=this.ak(h.z.QX(c.x,c.y));this.sI(h)};f.ex.prototype.ak=function(h){var e=this.i;
if(e==null||!this.KY.algnd)e=new eu(Math.round(h.x-this.LR.x),Math.round(h.y-this.LR.y));return e};f.ex.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);
if(this.Iy)this.s2(h,$,c);if(this.Gg==null){if(this.LR!=null)this.qd($,Z,h,c);return}if(!c.xo||this.LR==null)return;
this.eI(h,$,Z,c);this.sI(h)};f.ex.prototype.cP=function(){return this.i};f.u4=function(h,e,$){f.ar.call(this,h,e,$);
this.Yg={c4:{A2:0,x:0,y:0},Hx:!1};this.YJ=null;this.cursor=null;this.a1p=0;this.W6=null;this.ag=null;
this.vx=null};f.u4.prototype=new f.ar;f.u4.prototype.Mm=function(){return this.YJ!=null};f.u4.prototype.s4=function(h){return this.YJ&&this.YJ.BG()};
f.u4.prototype.yj=function(h,e,$,Z,c){this.W6=c;var q=h.z.QX(c.x,c.y);q.x=Math.round(q.x);q.y=Math.round(q.y);
var E=this.Yg.c4,P=E.A2!=0?E.x/E.y:null;if(this.YJ)this.YJ.yj(h,$,Z,q,P,!1);else this.ag=f.fQ.cX(h,q,$)};
f.u4.prototype.nX=function(h,e){var $=[h.x,h.y,h.x+h.d,h.y,h.x+h.d,h.y+h.v,h.x,h.y+h.v];return new cy($,!0,!1,this.id==f.KH,!0,e,this.id==f.KH?2:0,this.id==f.KH)};
f.u4.prototype.qd=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.Qd,Hz:this.cursor};h.f(e)};f.u4.prototype.enable=function(h,e,$,Z){this.a3=e;
this.cursor="crosshair";this.qd(e);if(h!=null&&h.N){var c=this.Yg.c4={A2:0,x:0,y:0};this.Gu(e,D.E.P,{e:D.U.UR,F:this.id,Uu:!1,_z:c});
this.cd({Bg:"cropby",aiA:3},e,h,Z,$)}};f.u4.prototype.oX=function(h,e,$,Z,c){this.W6=c;var q=h.z.QX(c.x,c.y);
if(!c.xo){var E="crosshair";if(this.YJ){var P=this.YJ.vR(q,h.z.S);if(P)E=P;else E="default"}if(E!=this.cursor){this.cursor=E;
this.qd(e)}}if(this.YJ)this.YJ.oX(h,$,Z,q);else if(this.ag){var a=f.vA.Px(this.ag,f.fQ.cX(h,q,$),Z,!0,this.Yg.c4),j=a[0].x,L=a[0].y,H=this.vx=new O(j,L,a[1].x-j,a[1].y-L);
h.K.sV=s.a.Kf(H);h.IL=!0;f.ar.Ia(c.x+10,c.y-10,H,h,$)}};f.u4.prototype.f0=function(h,e,$,Z,c){this.W6=c;
if(this.YJ==null){if(this.ag){var q=this.vx;if(q){var E=this.Yg.c4;this.YJ=this.nX(q,E.A2!=0);this.YJ.Fs(h,$);
this.vx=null;this.Gu(e,D.E.P,{e:D.U.UR,F:this.id,Uu:!0})}this.ag=null;h.K.Yr=[];h.IL=!0}return}var P=h.z.QX(c.x,c.y);
this.YJ.f0(h,$,Z,P);this.Gu(e,D.E.P,{e:D.U.UR,F:this.id,Uu:!0});var a=this.YJ.k5();if(Math.abs(a[0]-a[4])<2&&Math.abs(a[1]-a[5])<2){this.disable(h,e,null,Z);
return}if(Date.now()-this.a1p<200&&this.YJ.BT(P)){this.FD(h,$);this.disable(h,e,$,Z);return}this.a1p=Date.now()};
f.u4.prototype.WI=function(h,e,$,Z){var c=this.YJ;if(c==null||this.W6&&this.W6.xo)return;if(Z.q(p.Gr)){this.FD(h,$);
this.disable(h,e,$,Z)}else if(Z.q(p.fp)){this.disable(h,e,$,Z)}else c.WI(h,$,Z)};f.u4.GL=function(h,e){var $={classID:"null",T:{t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:h[1]}},Left:{t:"UntF",v:{type:"#Pxl",val:h[0]}},Btom:{t:"UntF",v:{type:"#Pxl",val:h[1]+h[3]}},Rght:{t:"UntF",v:{type:"#Pxl",val:h[0]+h[2]}}}},Angl:{t:"UntF",v:{type:"#Ang",val:e!=null?e:0}},Dlt:{t:"bool",v:!0},cropAspectRatioModeKey:{t:"enum",v:{cropAspectRatioModeClass:"pureAspectRatio"}},CnsP:{t:"bool",v:!1}};
return{Lw:"crop",TJ:$}};f.u4.rB=function(h,e){if(e==null)e=[!0,!0,!0,!0];var $={classID:"trim",trimBasedOn:{t:"enum",v:{trimBasedOn:["topLeftPixelColor","bottomRightPixelColor","Trns"][h]}}},Z=["Top","Left","Btom","Rght"];
for(var G=0;G<4;G++)$[Z[G]]={t:"bool",v:e[G]};return{Lw:"trim",TJ:$}};f.u4.Eu=function(h,e,$,Z){var c={classID:"null"};
if(Z!=null){c.Wdth={t:"UntF",v:{type:"#Pxl",val:h}};c.Hght={t:"UntF",v:{type:"#Pxl",val:e}};c.Intr={t:"enum",v:{Intp:["Nrst","Blnr","bicubicSharper"][Z]}}}if($!=null)c.Rslt={t:"UntF",v:{type:"#Rsl",val:$}};
return{Lw:"imageSize",TJ:c}};f.u4.fT=function(h,e,$){if($==null)$=4;var Z=Math.floor($/3),c=$%3;return{Lw:"canvasSize",TJ:{classID:"null",Wdth:{t:"UntF",v:{type:"#Pxl",val:h}},Hght:{t:"UntF",v:{type:"#Pxl",val:e}},Hrzn:{t:"enum",v:{HrzL:["Left","Cntr","Rght"][c]}},Vrtc:{t:"enum",v:{VrtL:["Top","Cntr","Btom"][Z]}}}}};
f.u4.prototype.a1=function(h,e,$,Z,c){var q=new O(0,0,$.d,$.v),E=[11,3],P=$.Ay,a=$.d/2,j=$.v/2,L=1,l,hH;
if(h.e=="fromAction"){var H=h.W_,_=H.Lw,J=H.TJ,S=$.d/$.v,N=J.Wdth?J.Wdth.v.val:-1,Y=J.Hght?J.Hght.v.val:-1,P=J.Rslt?J.Rslt.v.val:null,U=J.Wdth?J.Wdth.v.type:J.Hght?J.Hght.v.type:-1,g=1,M;
if(_=="imageSize"){if(J.Intr){if(J.Intr.v.Intp=="Nrst")g=0;if(J.Intr.v.Intp=="bicubicSharper")g=2;if(N==-1&&Y==-1){var C=P/$.Ay;
N=Math.round($.d*C);Y=Math.round($.v*C)}else if(U=="#Prc"){if(N!=-1)N=Math.round($.d*N/100);if(Y!=-1)Y=Math.round($.v*Y/100)}if(J.CnsP&&J.CnsP.v){if(N==-1)N=Math.round(Y*S);
if(Y==-1)Y=Math.round(N/S)}}else{if(U=="#Prc")P=Math.round($.Ay/((N!=-1?N:Y)/100));else if(U==-1)P=Math.round(P);
else throw"e";N=$.d;Y=$.v}M={e:"imgsize",JC:N,sJ:Y,KZ:P,EU:g}}else if(_=="canvasSize"){if(N==-1)N=$.d;
if(Y==-1)Y=$.v;if(J.Rltv&&J.Rltv.v==!0){if(J.Wdth)N+=$.d;if(J.Hght)Y+=$.v}var y=J.Vrtc?J.Vrtc.v.VrtL:"Cntr",i=J.Hrzn?J.Hrzn.v.HrzL:"Cntr";
M={e:"canvsize",JC:N,sJ:Y,An:3*["Top","Cntr","Btom"].indexOf(y)+["Left","Cntr","Rght"].indexOf(i)}}else if(_=="revealAll"){M={e:"revealAll"}}else if(_=="trim"){var Q={topLeftPixelColor:0,bottomRightPixelColor:1,Trns:2}[J.trimBasedOn.v.trimBasedOn];
if(Q==null)throw"e";var m=["Top","Left","Btom","Rght"],n=[!0,!0,!0,!0];for(var G=0;G<4;G++)if(J[m[G]])n[G]=J[m[G]].v;
M={e:"trim",a3G:Q,_z:n}}else if(_=="crop"){var u=J.T.v,K=Math.round(u.Left.v.val),F=Math.round(u.Top.v.val),b=Math.round(u.Rght.v.val)-K,d=Math.round(u.Btom.v.val)-F;
M={e:"canvsize",JC:b,sJ:d,i:new eu(K,F)}}else console.log(H);if(M)this.a1(M,e,$,Z,c);return}else if(h.e=="imgsize"){q=new O(0,0,h.JC,h.sJ);
if(h.KZ)P=h.KZ;L=h.EU}else if(h.e=="canvsize"){var W=h.An!=null?h.An:0;q=new O(0,0,h.JC,h.sJ);var A=$.d-h.JC,z=$.v-h.sJ,T=Math.round(A/2),R=Math.round(z/2);
if(W==1||W==4||W==7)q.x=T;if(W==2||W==5||W==8)q.x=A;if(W==3||W==4||W==5)q.y=R;if(W==6||W==7||W==8)q.y=z;
if(h.i){q.x=h.i.x;q.y=h.i.y}}else if(h.e=="rot"&&(h.G+2*Math.PI)%(Math.PI/2)!=0){var I=s.a.Kf(q).H,r=new i7;
r.translate(-a,-j);r.rotate(h.G);r.translate(a,j);s.a.J(I,r,I);q=s.a.pl(I)}else if(h.e=="rot"&&h.G!=Math.PI&&h.G!=-Math.PI){q=new O(a-$.v/2,j-$.d/2,$.v,$.d);
if(($.d+$.v&1)==1){a=Math.floor(a);j=Math.floor(j);q=new O(a-Math.floor($.v/2),j-Math.floor($.d/2),$.v,$.d);
if(($.d&1)==1&&h.G!=-Math.PI/2)q.y--;if(($.v&1)==1&&h.G==-Math.PI/2)q.x--}}else if(h.e=="trim"){E=[11,12,0];
var x=$.v2(),X=new O(0,0,$.d,$.v);q=s.ZC(x,X,h.a3G,h._z);if(q.nK())q=X}else if(h.e=="cropbysel"){E=[11,12,1];
q=$.N.rect.clone()}else if(h.e=="revealAll"){E=[11,12,2];q=$.root._A($,!0)}if(h.e=="imgsize"||h.e=="rot"||h.e=="scl"){var hZ=new i7;
if(h.e=="imgsize"){E=[11,10];hZ.scale(h.JC/$.d,h.sJ/$.v)}else{hZ.translate(-a,-j);if(h.e=="rot")hZ.rotate(h.G);
if(h.e=="scl")hZ.scale(h.G.x,h.G.y);hZ.translate(a,j);E=h.cJ}hH=s.I.dW(hZ);l=this.OC($,c,!0,hH,L)}else if(h.e=="auto-align"){if($.C.length<2){alert("Select two or more layers.");
return}var gj=[];for(var G=0;G<$.C.length;G++){var hO=$.t[$.C[G]];if(!hO.J7()&&hO.add.SoLd==null){alert("Unsupported layer selected.");
return}if(hO.rect.nK()){alert("Empty layer selected.");return}gj.push([hO.buffer,hO.rect])}var d3=s.X1.Uv(gj,0);
if(d3==null){alert("No similarity found.");return}hH=d3[1];var v=$.C;$.C=$.C.slice(1);l=this.OC($,c,!1,d3.slice(1),L);
$.C=v;q=$.root._A($,!0);E=[2,10,1]}var hl=new O(0,0,$.d,$.v);if(!q.nK()&&(!q.dz(hl)||l!=null)){var ht=new fW(E,this);
ht.data={Y$:hl,Ga:q,alx:$.Ay,KZ:P,Tp:l,Q9:hH,xn:f.u4.jo($,q,hl,l!=null)};$.eG(ht);this.t4(ht.data,$)}};
f.u4.jo=function(h,e,$,Z){if(h.E1.length==0)return null;var c=JSON.stringify(h.E1),q=JSON.parse(c);f.Al.a2k(q,e,$,Z);
q=JSON.stringify(q);return[c,q]};f.u4.prototype.OC=function(h,e,$,Z,c,q){var E={t:[],sr:null,QB:null};
if($){for(var G=0;G<h.t.length;G++)E.t.push(G);for(var G=0;G<h.DZ.length;G++)E.t.push(-1-G);for(var G=0;
G<h.Qe.length;G++)E.t.push(-1e3-G)}else E.t=h.C.slice(0);E.sr=f.o.xT(h,E.t,!0);f.o.u8(h,e,E.t,E.sr,c,Z,null,!0,q);
E.QB=f.o.xT(h,E.t,!0);return E};f.u4.prototype.t4=function(h,e){if(h.KZ)e.Ay=h.KZ;if(h.xn)e.E1=JSON.parse(h.xn[1]);
if(h.Tp){f.u4.k6(e,s.I.hQ(h.Q9));f.o.U5(e,h.Tp.t,h.Tp.QB)}f.u4.Hx(e,h.Ga)};f.u4.prototype.yc=function(h,e){if(h.alx)e.Ay=h.alx;
if(h.xn)e.E1=JSON.parse(h.xn[0]);var $=h.Y$.clone();$.offset(-h.Ga.x,-h.Ga.y);f.u4.Hx(e,$);if(h.Kv)e.z.i.tE(h.Kv);
e.sb();if(h.Tp){var Z=s.I.hQ(h.Q9).clone();Z.vy();f.u4.k6(e,Z);f.o.U5(e,h.Tp.t,h.Tp.sr)}};f.u4.k6=function(h,e){for(var G=0;
G<h.t.length;G++){var $=h.t[G];if($.add.artb==null)continue;var Z=s.a.Kf($.B2()).H;s.a.J(Z,e,Z);var c=s.a.pl(Z);
$.$O(c)}};f.u4.Hx=function(h,e){h.d=e.d;h.v=e.v;var $=[];for(var G=0;G<h.t.length;G++)$.push(G);f.fQ.YE(h,$,null,-e.x,-e.y);
for(var G=0;G<h.t.length;G++){h.t[G].ZB(h)}h.sb();h.z.i.su(0,0);if(h.N)h.N.rect.offset(-e.x,-e.y);for(var G=0;
G<2;G++)for(var Z=0;Z<h._D[G].length;Z++)h._D[G][Z]-=G==0?e.x:e.y;for(var G=0;G<h.Qe.length;G++)h.Qe[G].rect.offset(-e.x,-e.y)};
f.u4.prototype.cd=function(h,e,$,Z,c){if(h.Bg=="commit"){this.FD($,c);this.disable($,e,null,Z)}else if(h.Bg=="cancel"){this.disable($,e,null,Z)}var q=null,E=new O(0,0,$.d,$.v),P=this.Yg.c4;
if(h.Bg=="config"){this.Yg=h.Yg;P=this.Yg.c4;if(this.Yg.Hx!=null)return;if($==null)return;q=E;if(P.A2==1){var a=P.x/P.y;
q.v=Math.round(q.d/a)}if(P.A2==2){q.d=P.x;q.v=P.y}q.x=Math.round(($.d-q.d)/2);q.y=Math.round(($.v-q.v)/2)}if(h.Bg=="cropby"){if($==null)return;
var j=h.aiA,q;if(j==0)q=$.root._A($,!0);if(j==1){if($.C.length==0)alert("No layer is selected.");else{var L=$.root.fH($.C[0]);
q=L._A($,!0)}}if(j==2){if($.C.length==0)alert("No layer is selected.");else{q=s.ZC($.v2(),E,0);if(q.nK())q=E.clone()}}if(j==3){if($.N!=null)q=$.N.rect;
else alert("There is no selection.")}}if(q&&q.nK())q=null;if(q!=null){this.YJ=this.nX(q,P.A2!=0);this.YJ.Fs($,c);
this.Gu(e,D.E.P,{e:D.U.UR,F:this.id,Uu:!0})}};f.u4.prototype.FD=function(h,e){var $=this.YJ.k5(),Z=s.a.pl($),c=this.aiV(h,$),q=!1,E=this.Yg.c4,P=this.Yg.Hx,a=E.x,j=E.y,_;
if(this.id==f.ZT&&E.A2==2&&c.X()!=a*j){c=new O(c.x,c.y,a,j);q=!0}var L=s.I.w1($,c);L=s.I.vy(L);var H=s.I.t0(L),J=Math.atan2(L[3],L[0]);
if(Math.abs(J)>1e-9||!H||q||P)_=this.OC(h,e,!0,L,1,Z);var S=new fW(this.name,this),N=new O(0,0,h.d,h.v);
S.data={Y$:N,Ga:c,Tp:_,Q9:L,Kv:h.z.i.clone(),xn:f.u4.jo(h,c,N,!1)};h.eG(S);this.t4(S.data,h);this.track(f.u4.GL([Z.x,Z.y,Z.d,Z.v]))};
f.u4.prototype.aiV=function(h,e){var $=s.I.w1(e),Z=s.I.t0($),c=s.I.hQ($),q=c.zq,E=c.nL,P=Math.atan2(c.O,c.R);
c.rotate(P);var a=new O(q,E,c.R,c.rU);if(!Z){function j(M,G,C){var y=M[G]-M[C],i=M[G+1]-M[C+1];return Math.sqrt(y*y+i*i)}var L=j(e,0,2),H=j(e,4,6),_=Math.max(L,H),J=j(e,2,4),S=j(e,6,0),N=Math.max(J,S),Y=f.u4.a0O(e,h.d/2,h.v/2),U,g;
if(isNaN(Y)||Y==Infinity||Y==-Infinity||Math.min(Y,1/Y)<.1)Y=(L+H)/(J+S);if(_/N>Y){U=_*1;g=U/Y}else{g=N*1;
U=g*Y}a.d=U;a.v=g}a.x=Math.round(a.x);a.y=Math.round(a.y);a.d=Math.round(a.d);a.v=Math.round(a.v);return a};
f.u4.a0O=function(h,e,$){var Z=h[0]-e,c=h[1]-$,q=h[2]-e,E=h[3]-$,P=h[6]-e,a=h[7]-$,j=h[4]-e,L=h[5]-$,H=((c-L)*P-(Z-j)*a+Z*L-c*j)/((E-L)*P-(q-j)*a+q*L-E*j),_=((c-L)*q-(Z-j)*E+Z*L-c*j)/((a-L)*q-(P-j)*E+P*L-a*j),J=-((_*a-c)*(H*E-c)+(_*P-Z)*(H*q-Z))/((_-1)*(H-1));
function S(Y){return Y*Y}var N=Math.sqrt((S(H-1)+S(H*E-c)/J+S(H*q-Z)/J)/(S(_-1)+S(_*a-c)/J+S(_*P-Z)/J));
if(H==1&&_==1)N=Math.sqrt((S(E-c)+S(q-Z))/(S(a-c)+S(P-Z)));return N};f.u4.prototype.disable=function(h,e,$,Z){if(h==null)return;
if(this.YJ)this.YJ.clear(h);this.YJ=null;this.Gu(e,D.E.P,{e:D.U.UR,F:this.id,Uu:!1})};f.u4.prototype.Gu=function(h,e,$,Z){var c=new B(e,!0);
c.data=$;if(Z)c.F=Z;h.f(c)};f.GS=function(){f.u4.call(this,[10,2],f.ZT,"tools/rcrop")};f.GS.prototype=new f.u4;
f.UX=function(){f.u4.call(this,[10,39],f.KH,"tools/pcrop")};f.UX.prototype=new f.u4;f.K6=function(){f.rz.call(this,[10,21],f.s5,"tools/dodge");
this._a="dodge"};f.K6.prototype=new f.rz;f.K6.prototype.yj=function(h,e,$,Z,c){this.x3(h,$,Z,c,this.KY.expo/Math.PI);
if(this.Gg==null)return;this.sI(h)};f.K6.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);if(this.Iy)this.s2(h,$,c);
if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.jE=function(){f.rz.call(this,[10,3],f.d7,"tools/eraser");
this._a="erase"};f.jE.prototype=new f.rz;f.jE.prototype.yj=function(h,e,$,Z,c){this.x3(h,$,Z,c,this.KY.flow);
if(this.Gg==null)return;this.sI(h)};f.jE.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);if(this.Iy)this.s2(h,$,c);
if(this.Gg==null)return;if(!c.xo)return;var q=this.eI(h,$,Z,c);this.sI(h)};f.bu=function(){f.rz.call(this,[10,45],f.ag3,"tools/beraser");
this._a="ierase"};f.bu.prototype=new f.rz;f.bu.prototype.yj=function(h,e,$,Z,c){if(this.xX(Z,e,c))return;
this.x3(h,$,Z,c,this.KY.flow);if(this.Gg==null)return;this.sI(h)};f.bu.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);
if(this.Iy)this.s2(h,$,c);if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.bk=function(){f.LV.call(this,[10,15],f.$r,"tools/rselect");
this.eu="crosshair"};f.bk.prototype=new f.LV;f.bk.prototype.AT=function(h,e,$,Z){if(!Z.xo||!this.yO)return;
var c=this._A(h,$,!0);h.K.sV=s.a.Kf(c);h.IL=!0;f.ar.Ia(Z.x+10,Z.y-10,c,h,e)};f.bk.prototype.IB=function(h,e,$,Z){h.K.sV=null;
h.K.Yr=[];h.IL=!0;this.finish(h,e,$,Z)};f.bk.prototype.getSelection=function(h,e,$,Z){if(this.ag.dz(this.X_)||!this.yO)return null;
var c=this._A(h,$,!0);if(c.nK())return null;return f.LV.n5("Rctn",c)};f.nz=function(){f.LV.call(this,[10,4],f.a6J,"tools/eselect");
this.eu="crosshair"};f.nz.prototype=new f.LV;f.nz.prototype.AT=function(h,e,$,Z){if(!Z.xo||!this.yO)return;
var c=this._A(h,$);h.K.sV=f.nz.Bm(c);h.IL=!0;f.ar.Ia(Z.x+10,Z.y-10,c,h,e)};f.nz.prototype.IB=function(h,e,$,Z){h.K.sV=null;
h.K.Yr=[];h.IL=!0;this.finish(h,e,$,Z)};f.nz.prototype.getSelection=function(h,e,$,Z){if(this.ag.dz(this.X_)||!this.yO)return null;
var c=this._A(h,$);if(!c.k3(new O(0,0,h.d,h.v)))return null;return f.LV.n5("Elps",c)};f.nz.Bm=function(h){var e=h.x,$=h.y,Z=h.x+h.d,c=h.y+h.v,q=(e+Z)/2,E=($+c)/2,P=(e-Z)/2,a=($-c)/2,j=.5522848,L={H:[q,E-a],Z:["M","C","C","C","C"]};
L.H.push(q+j*P,E-a,q+P,E-j*a,q+P,E);L.H.push(q+P,E+j*a,q+j*P,E+a,q,E+a);L.H.push(q-j*P,E+a,q-P,E+j*a,q-P,E);
L.H.push(q-P,E-j*a,q-j*P,E-a,q,E-a);return L};f.CG=function(){f.ar.call(this,[10,5],f.Ql,"tools/eyedropper");
this.kb=!1;this.Kd=1};f.CG.prototype=new f.ar;f.CG.prototype.s4=function(h){return h.xo};f.CG.prototype.a1=function(h,e,$,Z,c){if(h.e=="pickhere")this.Cx($,e,c,Z,h.a1b)};
f.CG.prototype.yj=function(h,e,$,Z,c){this.kb=!0;this.Cx(h,e,$,Z,c)};f.CG.prototype.oX=function(h,e,$,Z,c){if(this.kb)this.Cx(h,e,$,Z,c)};
f.CG.prototype.f0=function(h,e,$,Z,c){this.kb=!1};f.CG.prototype.Cx=function(h,e,$,Z,c){var q=f.CG.lx(h,c,this.Kd),E=new B(D.E.P);
E.data={e:D.U.Ov,Av:iM.JD,oD:0,G:q};e.f(E)};f.CG.lx=function(h,e,$){var Z=h.z.QX(e.x,e.y),c=Math.floor(Z.x),q=Math.floor(Z.y),E=($-1)/2,P=Math.max(0,c-E),a=Math.max(0,q-E),j=Math.min(h.d,c+E+1),L=Math.min(h.v,q+E+1),H=(j-P)*(L-a),_=h.v2(),J=0,S=0,N=0;
for(var c=P;c<j;c++)for(var q=a;q<L;q++){var G=4*(q*h.d+c);J+=_[G];S+=_[G+1];N+=_[G+2]}J=Math.round(J/H);
S=Math.round(S/H);N=Math.round(N/H);return J<<16|S<<8|N};f.CG.prototype.cd=function(h){this.Kd=h.Kd};
f.mT=function(){f.ar.call(this,[10,6],f.aor,"tools/gradient");this.KY={Y:JSON.parse(c3.zn.pF).v,R_:"Lnr",O4:!1,ajG:!1,abQ:"norm",lV:1};
this.kR=!1;this.oo=null};f.mT.prototype=new f.ar;f.mT.prototype.enable=function(h,e,$,Z){var c=new B(D.E.P,!0);
c.data={e:D.U.Qd,Hz:"default"};e.f(c)};f.mT.prototype.cd=function(h){this.KY=h.Av};f.mT.prototype.yj=function(h,e,$,Z,c){if(!h.Jh())return;
this.oo=h.z.QX(c.x,c.y);this.oo=f.fQ.cX(h,this.oo,$);this.kR=!0};f.mT.prototype.oX=function(h,e,$,Z,c){if(!this.kR)return;
var q=h.z.QX(c.x,c.y);q=f.fQ.cX(h,q,$);if(Z.q(p.ai))q=f.mT.W1(this.oo,q);h.K.sV={H:[this.oo.x,this.oo.y,q.x,q.y],Z:["M","L"]};
h.K.wf=[this.oo.x,this.oo.y,q.x,q.y];h.IL=!0};f.mT.prototype.f0=function(h,e,$,Z,c){if(!this.kR)return;
var q=h.t[h.C[0]],E=h.z.QX(c.x,c.y);E=f.fQ.cX(h,E,$);if(Z.q(p.ai))E=f.mT.W1(this.oo,E);var P=E.MR(this.oo),a=eu.R6(this.oo,E,.5),j=Math.atan2(P.y,P.x),L=eu.nj(this.oo,E),H=Math.sin(j),_=Math.cos(j);
if(L>2){var J;if(h.N)J=h.N.rect;else J=new O(0,0,h.d,h.v);var S=s.m(J.X()*4),N=this.KY,Y=N.R_;if(Y!="Lnr"){L*=2;
a=this.oo}s.Y.Ne(N.Y,S,J,[_*1/L,H*1/L,-H*1/L,_*1/L],a.x,a.y,N.O4,c3.Y.types.indexOf(Y),$.oV,$.XK,null,N.ajG);
var U=Math.round(N.lV*256),g=S.length;if(U!=256)for(var G=0;G<g;G+=4)S[G+3]=S[G+3]*U>>>8;var M=new B(D.E.A);
M.F=f.d7;M.data={e:"fillBMP",He:S,Uz:N.abQ,cJ:this.name};e.f(M)}h.K.sV=null;h.K.wf=[];h.IL=!0;this.kR=!1};
f.mT.W1=function(h,e){if(h.dz(e))return h;var $=e.x-h.x,Z=e.y-h.y,c=Math.abs($),q=Math.abs(Z);if(c>q)q=c/2>q?0:c;
if(q>c)c=q/2>c?0:q;c=$>0?c:-c;q=Z>0?q:-q;var E=Math.sqrt($*$+Z*Z)/Math.sqrt(c*c+q*q);return new eu(h.x+c*E,h.y+q*E)};
f.mT.TD=function(h,e,$,Z,c,q,E){if(E==null)E=D.w("canvas","");var P=E.getContext("2d");E.width=e;E.height=$;
var a=new O(0,0,e,$),j=s.m(e*$*4);s.Om(j,e,$,4);var L=Math.sin(Z),H=Math.cos(Z),_=s.m(e*$*4);s.Y.Ne(h,_,a,[H*1/e,L*1/e,-L*1/$,H*1/$],e/2,$/2,!1,0,c,q);
s.p.Jn("norm",_,a,j,a,a,1);var J=P.getImageData(0,0,e,$);s.i7(j,J.data);P.putImageData(J,0,0);return E.toDataURL()};
f.mT.afS=function(h,e,$){var Z=JSON.parse(JSON.stringify(h));for(var G=0;G<Z.Clrs.v.length;G++){var c=Z.Clrs.v[G].v,q=c.Type.v.Clry;
if(q=="UsrS")continue;var E=q=="FrgC"?e:$;c.Type.v.Clry="UsrS";c.Clr={t:"Objc",v:s.Y.lp({h:E>>16&255,l:E>>8&255,O:E&255})}}return Z};
f.EE=function(){f.ar.call(this,[10,7],f.vc,"tools/hand");this.$u=new eu(0,0);this.Lg=null};f.EE.prototype=new f.ar;
f.EE.prototype.a1=function(h,e,$,Z,c){var q=h.e;if(q=="setcls"){$.z.RI=h.RI;$.IL=!0;$.qk=!0}if(q=="scroll"&&!Z.q(p.ys)){if(Z.q(p.tm))f.EE.RY($,$.z.i.x-h.SL.y,$.z.i.y-h.SL.x);
else f.EE.RY($,$.z.i.x-h.SL.x,$.z.i.y-h.SL.y)}};f.EE.prototype.enable=function(h,e,$,Z){this.Lg=null;
var c=new B(D.E.P,!0);c.data={e:D.U.Qd,Hz:"grab"};e.f(c)};f.EE.prototype.yj=function(h,e,$,Z,c){this.Lg=h.z.i.clone();
this.$u.su(c.x,c.y)};f.EE.prototype.oX=function(h,e,$,Z,c){if(!c.xo)return;if(this.Lg==null)this.yj(h,e,$,Z,c);
f.EE.RY(h,this.Lg.x+(c.x-this.$u.x),this.Lg.y+(c.y-this.$u.y))};f.EE.prototype.f0=function(h,e,$,Z,c){this.Lg=null};
f.EE.RY=function(h,e,$){var Z=h.z.S;if(h.d*Z<h.z.qM.d&&h.v*Z<h.z.qM.v)h.z.i.su(0,0);else{h.z.i.x=e;h.z.i.y=$}h.qk=!0};
f.Qy=function(){f.ar.call(this,[10,47],f.ak4,"tools/rview");this.$u=new eu(0,0);this.s$=null;this.aiz=null};
f.Qy.prototype=new f.ar;f.Qy.prototype.enable=function(h,e,$,Z){this.Lg=null;var c=new B(D.E.P,!0);c.data={e:D.U.Qd,Hz:"grab"};
e.f(c);if(h)this.xf(h,e)};f.Qy.prototype.disable=function(h,e,$,Z,c){if(h)this.xf(h,e)};f.Qy.prototype.IZ=function(h,e,$,Z){if(h)this.xf(h,e)};
f.Qy.prototype.yj=function(h,e,$,Z,c){this.$u.su(c.x,c.y);var q=h.z;this.s$=q.QX(q.qM.d/2,q.qM.v/2);
this.aiz=q.EO()};f.Qy.prototype.oX=function(h,e,$,Z,c){if(!c.xo)return;var q=h.z,E=this.s$,P=this.$u,a=new eu(q.qM.d/2,q.qM.v/2),j=Math.atan2(c.y-a.y,c.x-a.x),L=Math.atan2(P.y-a.y,P.x-a.x);
this.gm(h,e,this.aiz.clone(),E,j-L)};f.Qy.prototype.cd=function(h,e,$,Z){this.gm($,e,null,null,h.w0-$.z.uk);
$.z.uk=h.w0};f.Qy.prototype.gm=function(h,e,$,Z,c){var q=h.z;if($==null)$=q.EO();if(Z==null)Z=q.QX(q.qM.d/2,q.qM.v/2);
$.translate(-Z.x,-Z.y);$.rotate(c);$.translate(Z.x,Z.y);q.xz($);if(h.d*q.S<q.qM.d&&h.v*q.S<q.qM.v)q.i.su(0,0);
h.IL=!0;this.xf(h,e)};f.Qy.prototype.xf=function(h,e){var $=new B(D.E.P,!0);$.data={e:D.U.UR,F:this.id,w0:h.z.uk};
e.f($)};f.I0=function(){f.ex.call(this,[10,25],f.xt,"tools/hbrush")};f.I0.prototype=new f.ex("");f.I0.prototype.f0=function(h,e,$,Z,c){if(this.Gg==null)return;
this.JY(h,"heal",this.Gg.os(),this.Gg._A(),this.Gg.bJ());this.s(h,this.Gg.bJ());f.rz.prototype.f0.call(this,h,e,$,Z,c);
if(!this.KY.algnd)this.i=null};f.dE=function(){f.ar.call(this,[10,8],f.kE,"tools/htype");this.ZL=[];
this.q4=null;this.pq=null;this.caller=null;this.$Y=1;this.O6=null;this.a8I=0;this.Db=0;this.a77=null;
this.MI=null;this._J=null;this.dv=null;this.bN=null;this.M$=null;this.anA=null;this.gg=null;this.YJ=null;
this.Xm=null;this.aam=null;this.Cw=!1;this.eO=!1;this.nZ=!1;this.Pi=null;this.cT=null;this.aa2=null;
this.Ls=!1;this.zf=!1;this.cn=-1;this.vZ=-1;this.OV=document.createElement("textarea");this.OV.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.OV.addEventListener("input",this.C1.bind(this),!1);this.OV.addEventListener("keydown",this.a2Z.bind(this),!1)};
f.dE.prototype=new f.ar;f.dE.prototype.s4=function(h){return h.xo};f.dE.prototype.yY=function(h,e,$,Z){if(this._J!=null)return;
this.caller=e;this.q4=h;var c=this.HU(h);if(c.length!=0){var q=null,E=[],P=[];for(var G=0;G<c.length;
G++){var a=h.t[c[G]],j=a.add.TySh,L=0,H=gK.N8(j.Kx).length-2,_=gK.hT(j.Kx,L,H);gK.de(_,f.o.rD(j.J));
if(_.By.Font!=null)_.By.Font=_.Kr[_.By.Font].Name;q=_.Kr;E.push(_.By);P.push(_.Bp)}var _={Kr:q,By:gK.n_(E),Bp:gK.n_(P)};
if(_.By.Font!=null)gK.P0(_,_.By.Font);this.Hf(e,_,j)}};f.dE.prototype.HU=function(h){var e=[];for(var G=0;
G<h.C.length;G++)if(h.t[h.C[G]]&&h.t[h.C[G]].add.TySh)e.push(h.C[G]);return e};f.dE.prototype.a1=function(h,e,$,Z,c){if(h.e=="insertText"&&this._J){var q=this.OV,E=q.value,P=q.selectionStart,a=q.selectionEnd;
q.value=E.slice(0,P)+h.G+E.slice(a);q.selectionStart=q.selectionEnd=P+h.G.length;this.C1(null);q.focus()}if(h.e=="updateStyles"){if(this._J==null){var j=this.HU($),L=!1;
if(j.length!=0){this.ez($,e,c,j);for(var G=0;G<j.length;G++){var H=$.t[j[G]],_=H.add.TySh;gK.mM(_,this.$Y);
this._J=H;var J=gK.N8(_.Kx);this.cn=0;this.vZ=J.length-1;gK.sq(_.Kx,this.cn,this.vZ,this.JQ(c,_));var S=this.Gf($,c);
if(S==!1)L=!0}if(L){this.Ls=!0;return}this.Qf($,e)}return}this.Rc(c)}if(h.e.startsWith("warp")){var N=this.zf;
if(h.e=="warp"||h.e=="warpCancel"){if(h.e=="warp")this._J.add.TySh.$F=h.FO;else this._J.add.TySh.$F=this.anA;
var $=this.q4;this.Gf($,c);if(!N)this.Jo($)}if(h.e!="warp")this.OV.focus();if((h.e=="warpConfirm"||h.e=="warpCancel")&&N){this.zf=!1;
if(h.e=="warpConfirm")this.Qf($,e);else this.pt($,e)}}if(h.e=="editCurr"){if(c.$P!=f.kE){this.O6=c.$P;
var Y=new B(D.E.P,!0);Y.data={e:D.U.kX,F:f.kE};e.f(Y)}if(this._J!=null)this.disable($,e,c,Z);this.q4=$;
this.pq=c;this.caller=e;this.ez($,e,c,[h.xU]);var J=gK.N8(this._J.add.TySh.Kx);this.cn=0;this.vZ=J.length-1;
this.Jo($);this.T0();this.OV.focus()}if(h.e=="switchPntPrgr"){var H=$.t[$.C[0]],_=H.add.TySh,U=_.J.rD(),g=JSON.parse(JSON.stringify(_.Kx)),M=gK.De(g),C=M==1?gK.r1(g):[0,0,Math.round(H.rect.d*1.05/U),Math.round(H.rect.v*1.25/U)],y=gK.hT(g,0,0),i=y.Kr[y.By.Font].Name,Q=c.R0.bE(i),m=[0,C[2],C[2]/2][y.Bp.Justification%3],n=Q?br.RP(Q,i)*(1/Q.head.unitsPerEm)*y.By.FontSize:y.By.FontSize*.8;
gK.gq(g,1-M);if(M==0){m=-m;n=-n;gK.IE(g,[0,0,C[2],C[3]])}var u=new i7(1,0,0,1,m,n);u.concat(_.J);this.a1({bs:$.C[0],e:"newED",Q5:g,J:u},e,$,Z,c)}if(h.e=="newED"){var H=$.t[h.bs],_=H.add.TySh,K=this.yS($,[h.bs]);
_.Kx=h.Q5;if(h.J)_.J=h.J;var F=new br(_.Kx,c.R0),b=cg.Fx(F,_);H.rect=b._;H.buffer=b.Hl;H.s();$.s();var d=new fW(this.name,this);
d.data={QU:K,ox:this.yS($,[h.bs])};$.eG(d)}if(h.e=="fromAction"){var W=h.W_.TJ.Usng.v,A=W.TxtC.v,z=[];
for(var G=0;G<2;G++){var T=A[G==0?"Hrzn":"Vrtc"].v,R=T.val;if(T.type=="#Prc")R=(G==0?$.d:$.v)*(R/100);
z[G]=R}this.pB($,e,c,Z,$.z.ab(z[0],z[1]));var H=$.t[$.C[0]],_=H.add.TySh,I=_.Kx,E=gK.N8(I);gK._5(I,0,E.length-1);
gK.Ja(I,0,W.Txt.v.replace(/\r/g,"\n"));for(var M=0;M<2;M++){var r=W[M==0?"Txtt":"paragraphStyleRange"].v;
for(var G=0;G<r.length;G++){var x=r[G].v,P=x.From.v,a=x.T.v-1;x=x[M==0?"TxtS":"paragraphStyle"].v;var X=gK.hT(I,P,a),hH=M==0?X.By:X.Bp;
for(var hZ in x){var gj=x[hZ].v;if(hZ=="Sz")hH.FontSize=Math.round(gj.val);if(hZ=="fontPostScriptName")gK.P0(X,gj);
if(hZ=="Algn")hH.Justification={Cntr:2}[gj.Alg]}gK.sq(I,P,a,X)}}var F=new br(_.Kx,c.R0),b=cg.Fx(F,_);
H.rect=b._;H.buffer=b.Hl;H.s();$.s();this.Qf($,e)}};f.dE.prototype.Rc=function(h){var e=Math.min(this.cn,this.vZ),$=Math.max(this.cn,this.vZ),Z=this._J.add.TySh;
gK.mM(Z,this.$Y);gK.sq(Z.Kx,e,$-1,this.JQ(h,Z));var c=this.q4,q=this.Gf(c,h);if(q)this.Jo(c);if(document.activeElement.tagName.toLowerCase()!="input")this.OV.focus()};
f.dE.prototype.Jr=function(h){return this.ZL.indexOf(h)!=-1};f.dE.prototype.enable=function(h,e,$,Z){var c=this.OV;
if(!D.Nn(c))e.j.appendChild(c);this.gg="default";this.qd(e)};f.dE.prototype.Mm=function(){return this._J!=null};
f.dE._X=function(h,e){for(var G=h.t.length-1;G>=0;G--){var $=h.t[G];if($.add.TySh&&$.rect.B4(e)&&h.k7(G)){var Z=$.ra(2)||$.ra(31);
return Z?-2:G}}return-1};f.dE.prototype.yj=function(h,e,$,Z,c){this.q4=h;this.pq=$;this.caller=e;var q=h.z.QX(c.x,c.y),E=this._J==null;
if(E){var P=f.dE._X(h,q);if(P==-2){alert(e_.get([6,57,0]));return}if(P>=0){if(!cg.BF(h.t[P].add.TySh,$.R0)){alert("Fonts not loaded yet");
return}this.ez(h,e,$,[P])}else{this.nZ=!0;this.Pi=c;return}}var a=E?-1:gK.De(this._J.add.TySh.Kx),j=this.Xm?this.Xm:this.YJ;
if(j&&j.yj(h,$,Z,q)&&s.FO.en(this._J.add.TySh.$F)||!E&&s.a.DH(q,this._J.rect)>20/h.z.S&&(a==0||a==1)){this.Cw=!0;
this.cT=q;this.aa2=this._J.add.TySh.J.clone();if(this.cn==-1&&this.vZ==-1)this.cn=this.vZ=this.dF(q)}else{if(this.bN==null){alert("Fonts not loaded yet");
return}this.eO=!0;this.cn=this.vZ=this.dF(q);var L=Date.now();if(L-this.a8I>300)this.Db=0;this.Db++;
this.a8I=L;if(this.Db==2)this.a1R();if(this.Db==3)this.a2i();if(this.Db>1){this.eO=!1}}this.T0();this.Jo(h)};
f.dE.prototype.ez=function(h,e,$,Z){var c=h.t[Z[0]];this._J=c;this.Gu(e,D.E.P,{e:D.U.UR,F:this.id,Bg:"showactive"});
this.dv=Z;h.C=Z.slice(0);h.Kw();h.j3=!0;this.M$=this.yS(h,Z);this.jB(c.add.TySh);this.Gf(h,$)};f.dE.prototype.jB=function(h){if(gK.De(h.Kx)!=1)return;
var e=gK.r1(h.Kx);e=new O(0,0,e[2]-e[0],e[3]-e[1]);var $=[e.x,e.y,e.x+e.d,e.y,e.x+e.d,e.y+e.v,e.x,e.y+e.v];
s.a.J($,h.J,$);this.YJ=new cy($,!1,!1,!1,!0)};f.dE.prototype.a1R=function(){var h=gK.N8(this._J.add.TySh.Kx);
this.cn=this.ye(h,this.cn);this.vZ=this.SF(h,this.cn)};f.dE.prototype.ye=function(h,e){var $=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",Z=[];
for(var G=0;G<$.length;G++)Z.push($.charAt(G));var c=Z.indexOf(h[e])==-1?!0:!1;for(var G=e-1;G>=0;G--)if(Z.indexOf(h.charAt(G))!=-1==c)return G+1;
return 0};f.dE.prototype.SF=function(h,e){var $=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",Z=[];for(var G=0;
G<$.length;G++)Z.push($.charAt(G));var c=Z.indexOf(h[e])==-1?!0:!1;for(var G=e+1;G<h.length;G++)if(Z.indexOf(h.charAt(G))!=-1==c)return G;
return h.length-1};f.dE.prototype.a2i=function(){var h=this.bN.a2Y(this.cn);this.cn=h[0];this.vZ=h[1]};
f.dE.prototype.qd=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.Qd,Hz:this.gg};h.f(e)};f.dE.prototype.oX=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y),E=this._J;
if(!c.xo){var P="default",a=this.YJ,j=this.Xm?this.Xm:a;if(j&&s.FO.en(E.add.TySh.$F)){var L=j.vR(q,h.z.S);
if(L)P=L;else if(j==a&&a.BT(q))P="text"}else if(E&&s.a.DH(q,E.rect)>20/h.z.S)P="move";else if(f.dE._X(h,q)>=0)P="text";
if(P!=this.gg){this.gg=P;this.qd(e)}}var H=this.Pi;if(this.nZ&&Math.min(c.x-H.x,c.y-H.y)>4/h.z.S){this.nZ=!1;
this.pB(h,e,$,Z,c);E=this._J;this.Cw=!0;this.YJ=new cy(null,!1,!1,!1,!0);var _=h.z.QX(this.Pi.x,this.Pi.y);
_.x=Math.round(_.x);_.y=Math.round(_.y);this.YJ.yj(h,$,Z,_)}if(this.Cw){var J=E.add.TySh;if(this.Xm){this.Xm.oX(h,$,Z,q);
var S=s.I.hQ(s.I.w1(this.Xm.k5(),this.aam));J.J=S;this.Gf(h,$);gK.iU(J)}else if(this.YJ){this.YJ.oX(h,$,Z,q);
var N=J.J.clone(),Y=Math.atan2(N.O,N.R);N.rotate(Y);var S=s.I.hQ(s.I.w1(this.YJ.k5())),U=Math.atan2(S.O,S.R);
S.rotate(U);if(!isNaN(S.R)&&S.R*S.rU-S.O*S.Ma!=0){var g=new O(0,0,S.R/N.R,S.rU/N.rU),M=Math.round(g.d),C=Math.round(g.v),y=J.Kx.Curve;
if(y){var i=gK.r1(J.Kx),Q=new i7(M/i[2],0,0,C/i[3],0,0);s.a.J(y.Points,Q,y.Points);gK.iU(J)}gK.IE(J.Kx,[0,0,M,C]);
J.J=s.I.hQ(s.I.w1(this.YJ.k5(),g));this.Gf(h,$);gK.iU(J)}}else{var m=q.x-this.cT.x,n=q.y-this.cT.y;J.J=this.aa2.clone();
var u=new eu(J.J.zq+m,J.J.nL+n);u=f.fQ.cX(h,u,$);J.J.zq=u.x;J.J.nL=u.y;this.Gf(h,$)}}if(this.eO)this.vZ=this.dF(q);
if(this.Cw||this.eO)this.Jo(h)};f.dE.prototype.pB=function(h,e,$,Z,c){var q=h.U9(),E=q[0],P=q[1],a=h.by();
a.add.lnsr="rend";var j=h.t.slice(0);a.aq("Text layer "+j.length);this._J=a;var L=h.C.length==0?h.t.length-1:h.C[h.C.length-1],H=L+1;
if(j[L].add.lsct==hJ.sE)H--;this.M$={UW:j.slice(0),HC:h.C.slice(0)};j.splice(H,0,a);h.C=[H];this.cn=this.vZ=0;
h.a4(j);this.M$.T5=j.slice(0);this.M$.A9=h.C.slice(0);this.Gu(e,D.E.P,{e:D.U.UR,F:this.id,Bg:"showactive"});
var _=h.z.QX(c.x,c.y);a.add.TySh=gK.Zh(_.x,_.y,$.wM);var J=a.add.TySh,S=J.Kx;gK.mM(J,this.$Y);if(c.xo)gK.gq(S,1);
else{gK.gq(S,0);var N=E[P.pop()],Y=N?N.add.vmsk:null;if(Y){Y=Y.clone();var U=Y.b,M,C;for(var G=0;G<U.length;
G++)if(U[G].aN!=null)U[G].aN=0;var g=4*D.M()/h.z.S;M=s.W.mI(Y.b,_,!0,g);if(M.NS==-1)M=s.W.mI(Y.b,_);
if(M.NS!=-1){gK.gq(S,1);var y=s.W.jb(U,M.NS),i=s.W.kv(U,M.NS)-1;U=Y.b=U.slice(0,2).concat(U.slice(y,y+i+1));
Y.C=[];J.add={vmsk:Y,vogk:o.__(U)};S.Curve={};gK._Z(J);if(M.s3!=null){var Q=br.DJ(S.Curve);s.a.J(Q[0],J.J,Q[0]);
var m=s.a.Xi(Q[0],_.x,_.y),n=$.wM.Bp.Justification;if(n==2||n==5){var u=(Q[2][m]+Q[3]*.5)%Q[3];m=br.uL(u,Q[2])}var K=Q[1][m];
K=K%i;Y.v9=[K,K];gK._Z(J)}else this.jB(J)}}}return a};f.dE.prototype.f0=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y),E=this.nZ;
if(this.nZ){this.nZ=!1;this.pB(h,e,$,Z,c);this.eO=!0}if(this.Cw||this.eO){this.Jo(h);this.T0();if(E)this.Rc($)}if(this.Cw&&this.YJ)this.YJ.f0(h,$,Z,q);
this.Cw=this.eO=!1;this.Oy(h,$,Z);this.OV.focus()};f.dE.prototype.T0=function(){var h=this._J.add.TySh,e=Math.min(this.cn,this.vZ),$=Math.max(this.cn,this.vZ),Z,c;
if(e==$){var q=gK.N8(h.Kx);if(e==0||q.charAt(e-1)=="\n")Z=c=e;else Z=c=e-1}else{Z=e;c=$-1}var E=gK.hT(h.Kx,Z,c);
gK.de(E,f.o.rD(h.J));this.Hf(this.caller,E,h)};f.dE.prototype.Hf=function(h,e,$){this.Gu(h,D.E.P,{e:D.U.Ov,Av:iM.s1,wM:e});
var Z=this.$Y=gK.vk($);this.Gu(this.caller,D.E.P,{e:D.U.UR,F:this.id,Bg:"changeAA",El:Z})};f.dE.prototype.WI=function(h,e,$,Z){if(Z.q(p.fp))this.pt(h,e);
var c=this._J;if(c)if(this.Xm==null&&Z.q(p.tm)){var q=c.add.TySh,E=gK.De(q.Kx),P;if(E==1){P=gK.r1(q.Kx);
P=new O(0,0,P[2]-P[0],P[3]-P[1])}else P=this.bN.ZO();var a=[P.x,P.y,P.x+P.d,P.y,P.x+P.d,P.y+P.v,P.x,P.y+P.v];
s.a.J(a,q.J,a);this.Xm=new cy(a,!0,!0,!1,!1);this.aam=P;this.Jo(this.q4)}else this.Oy(h,$,Z)};f.dE.prototype.Oy=function(h,e,$){var Z=this._J;
if(Z&&!this.Cw&&this.Xm!=null&&!$.q(p.tm)){this.Xm.f0(h,e,$,null);this.Xm=null;this.jB(Z.add.TySh);this.Jo(this.q4)}};
f.dE.prototype.disable=function(h,e,$,Z){var c=this._J;this.Qf(h,e)};f.dE.prototype.cd=function(h,e,$,Z,c){if(this.zf)return;
if(h.Bg=="commit")this.Qf($,e);if(h.Bg=="cancel")this.pt($,e);if(h.Bg=="changeAA"){this.$Y=h.El;if($!=null)this.a1({e:"updateStyles"},e,$,Z,c)}if(h.Bg=="showwarp"){if($==null)return;
if(this._J==null){var q=$.t[$.C[0]],E=q.add.TySh;if(E==null)return;this.ez($,e,c,[$.C[0]]);this.OV.focus();
this.zf=!0}this.anA=this._J.add.TySh.$F;var P=new B(D.E.P,!0);P.data={e:D.U.tr,yq:"textwarp"};e.f(P)}};
f.dE.prototype.if=function(h,e){if(e!=iM.jV)return;if(this.Ls){this.Ls=!1;var $=this.q4,Z=this.dv;for(var G=0;
G<Z.length;G++){this._J=$.t[Z[G]];this.Gf($,h)}this.Qf($,this.caller);return}if(this._J)this.Rc(h)};
f.dE.prototype.JQ=function(h,e){var $=JSON.parse(JSON.stringify(h.wM));gK.de($,1/f.o.rD(e.J));return $};
f.dE.prototype.t4=function(h,e){if(h.QU!=null)this.p4(e,h.ox);else this.qB(e,h.T5,h.A9)};f.dE.prototype.yc=function(h,e){if(h.QU!=null)this.p4(e,h.QU);
else this.qB(e,h.UW,h.HC)};f.dE.prototype.p4=function(h,e){for(var G=0;G<e.length;G++){var $=e[G],Z=$.bs,c=h.t[Z];
c.buffer=$.Yu;c.rect=$._.clone();c.s();var q=c.add.TySh;q.$F=$.FO;q._P=$._P.clone();q.J=$.J.clone();
q.Kx=JSON.parse(JSON.stringify($.Kx));c.SY()}h.s()};f.dE.prototype.yS=function(h,e){var $=[];for(var G=0;
G<e.length;G++){var Z=e[G],c=h.t[Z],q=c.add.TySh;$.push({bs:Z,J:q.J.clone(),FO:JSON.parse(JSON.stringify(q.$F)),_P:q._P.clone(),Kx:JSON.parse(JSON.stringify(q.Kx)),Yu:c.buffer.slice(0),_:c.rect.clone()})}return $};
f.dE.prototype.qB=function(h,e,$){h.C=$;h.a4(e);h.s();h.uu=!0};f.dE.prototype.Gf=function(h,e,$){if($==null)$=!1;
var Z=this._J.add.TySh;if(!cg.BF(Z,e.R0))return!1;this.bN=new br(Z.Kx,e.R0);if(!$){var c=gK.N8(Z.Kx);
this.OV.value=c.slice(0,c.length-1)}var q=cg.Fx(this.bN,Z);if(s.FO.en(Z.$F))Z._P=new O;else{if(gK.De(Z.Kx)==1){var E=gK.r1(Z.Kx),t=q._P.y;
Z._P=new O(0,t,E[2]-E[0],E[3]-E[1]-t)}else{Z._P=q._P}}var P=this._J.rect;this._J.rect=q._;this._J.buffer=q.Hl;
this._J.s();h.Nq();h.s(h.root.oY(q._.iJ(P),h,h.t.indexOf(this._J)));return!0};f.dE.prototype.C1=function(h){if(this._J==null||this.zf)return;
var e=this.OV.selectionStart,$=this._J.add.TySh,Z=gK.N8($.Kx),c=this.OV.value+"\n",q=Math.min(this.cn,this.vZ),E=Math.max(this.cn,this.vZ),H=!1;
this.cn=Math.min(e,q);if(c.length-e<Z.length-this.vZ)this.vZ=Z.length-c.length+e;if(Z!=c){while(this.cn>0&&Z.charAt(this.cn-1)!=c.charAt(this.cn-1))this.cn--}var P=Z.substring(0,this.cn),a=Z.substring(this.vZ,Z.length),j=c.substring(this.cn,c.length-a.length);
gK._5($.Kx,this.cn,this.vZ);gK.Ja($.Kx,this.cn,j);var L=this.JQ(this.pq,$),_=-1,J=Array.from(j);for(var G=0;
G<J.length;G++)_=Math.max(_,J[G].codePointAt(0));if(_!=-1&&_>128&&L.By.Font!=null){var S=L.Kr[L.By.Font].Name,N=this.pq.R0.XJ(_,S,L.Kr);
if(S!=N){gK.P0(L,N);H=!0}}if(this.MI!=null&&j==this.MI){var Y=JSON.parse(this.a77);L.By=Y.By;L.Kr=Y.Kr;
H=!0}gK.sq($.Kx,this.cn,this.cn+j.length-1,L);this.cn=this.vZ=P.length+j.length;var U=this.q4,g=this.Gf(U,this.pq,!0);
if(g)this.Jo(U,!0);if(H)this.T0()};f.dE.prototype.a2Z=function(h){if(this._J==null||this.zf)return;if(this._J==null)return;
var e=p,$=0,Z=0,U=!1;if(e.VG(h.code,e.Ns))$=1;if(e.VG(h.code,e.V8))$=-1;if(e.VG(h.code,e.wi))Z=-1;if(e.VG(h.code,e.Xs))Z=1;
var c=h.ctrlKey||h.metaKey,q=e.VG(h.code,p.alF),E=e.VG(h.code,p.aeE);if(e.VG(h.code,p.Gr)&&c){this.Qf(this.q4,this.caller);
return}if(e.VG(h.code,p.EB)){h.preventDefault();var P=this.OV,a=P.value,j=P.selectionStart,L=P.selectionEnd;
P.value=a.substring(0,j)+"\t"+a.substring(L);P.selectionStart=P.selectionEnd=j+1;this.C1(null);return}if((e.VG(h.code,e.ok)||e.VG(h.code,e.Af))&&c){var H=this.cn,_=this.vZ;
if(H>_){var J=H;H=_;_=J}var S=this._J.add.TySh,N=gK.N8(S.Kx);if(H!=_){this.MI=N.slice(H,_);this.a77=JSON.stringify(this.pq.wM)}}var Y=gK.N8(this._J.add.TySh.Kx);
if($!=0||Z!=0||q||E){h.preventDefault();var g=this.cn;if($!=0){if(c&&$==-1)g=this.ye(Y,this.cn-1);else if(c&&$==1)g=this.SF(Y,this.cn);
else{var P=this.OV,a=P.value;g=this.cn+$;if(g!=0&&a.codePointAt(g-1)>65535)g+=$}}else if(Z!=0){var M=this.bN.e_(this.cn);
if(Z==-1&&M.vv==0)g=0;else if(Z==1&&M.vv==this.bN.abW()-1)g=99999999999;else g=this.bN.j2(new eu(M._.x+M._.d/2,0),M.vv+Z)}else if(q){var C=this.cn-1;
while(C>0&&Y.charCodeAt(C)!=10)C--;g=C==0?0:C+1}else if(E){var C=this.cn;while(C<Y.length-1&&Y.charCodeAt(C)!=10)C++;
g=C}g=Math.max(0,Math.min(Y.length-1,g));if(h.shiftKey)this.cn=g;else this.cn=this.vZ=g;U=!0}if(e.VG(h.code,p.U)&&c){this.cn=0;
this.vZ=Y.length-1;U=!0}if(U){this.T0();this.Jo(this.q4)}};f.dE.a56=function(h,e){var $=h.length;if($!=e.length)return!1;
for(var G=0;G<$;G++)if(h[G].bs!=e[G].bs)return!1;return!0};f.dE.prototype.Qf=function(h,e){if(this._J==null)return;
this._J.SY();var $=this.M$;if($ instanceof Array){var Z=this.yS(h,this.dv),c=h.fX();if(c!=null&&c.F==this&&c.data.QU&&f.dE.a56(c.data.QU,$))c.data.ox=Z;
else{var q=new fW(this.name,this);q.data={QU:$,ox:Z};h.eG(q)}}else{var q=new fW(this.name,this);q.data={UW:$.UW,T5:$.T5,HC:$.HC,A9:$.A9};
h.eG(q)}this.escape(h,e)};f.dE.prototype.pt=function(h,e){if(this._J==null)return;if(this.M$ instanceof Array){this.p4(h,this.M$);
if(this._J)gK.iU(this._J.add.TySh)}else{h.C=this.M$.HC;h.a4(this.M$.UW)}h.s();this.escape(h,e)};f.dE.prototype.escape=function(h,e){this._J=null;
this.dv=null;this.bN=null;this.YJ=null;this.OV.blur();h.K.sV=null;h.K.Rt=null;h.K.wf=[];h.IL=!0;this.Cw=!1;
this.eO=!1;this.cn=this.vZ=-1;this.Gu(e,D.E.P,{e:D.U.UR,F:this.id,Bg:"hideactive"});if(this.O6){var $=new B(D.E.P,!0);
$.data={e:D.U.kX,F:this.O6};e.f($);this.O6=null}};f.dE.prototype.Gu=function(h,e,$,Z){var c=new B(e,!0);
c.data=$;if(Z)c.F=Z;h.f(c)};f.dE.prototype.dF=function(h){var e=this._J.add.TySh,$=this.bN,Z=e.J.clone();
Z.vy();var c=Z.tf(h),q=gK._A(e,$),E=s.FO.a8(e.$F,q),P=s.nS.V.XN(E,0,1,0,1),a=new Uint32Array(30),j=s.nS.V.a7v(P.rL,P.Xa,c.x,c.y,a),L=s.nS.mI(E,c.x,c.y,P.rL,a,j,!1),H=s.nS.ib;
if(H==null)H=new Float64Array(2);c=new eu(q.x+H[0]*q.d,q.y+H[1]*q.v);var _=$.j2(c);return _};f.dE.prototype.Jo=function(h,e){if(e==null)e=!1;
var $=this._J.add.TySh,Z=gK.De($.Kx),c=this.bN,q=c?gK._A($,c):null;h.K.wf=[];h.K.sV=null;h.K.Rt=null;
var E=this.Xm?this.Xm:this.YJ;if(E){E.Fs(h,this.pq,!s.FO.en($.$F));var P=$.J.clone();P.vy();s.a.J(h.K.wf,P,h.K.wf);
s.a.J(h.K.sV.H,P,h.K.sV.H);if(c&&c.ana()){var a=q.d-20,j=q.v+8;h.K.sV.H.push(a,j,a+10,j,a+5,j-5,a+5,j+5);
h.K.sV.Z.push("M","L","M","L")}}else if(Z==0)this.a9X(h,$,c);else h.K.sV={H:[],Z:[]};var L=Math.min(this.cn,this.vZ),H=Math.max(this.cn,this.vZ);
if(!e){this.OV.selectionStart=L;this.OV.selectionEnd=H}if(c!=null){var _=function(E,y){var i=E.x,Q=E.y+E.v,m=new i7;
m.translate(-i,-Q);m.rotate(-y);m.translate(i,Q);E.y+=E.v*.27;var g=s.a.Kf(E);s.a.J(g.H,m,g.H);return g};
if(L==H){L=Math.max(L,0);var J=c.e_(L);if(J){var S=J._,N=this.pq.wM.By.FontSize;if(N!=null&&N!=0){N/=$.J.rD();
S.y+=S.v-N;S.v=N}var Y=c.agA(L);if(Y!=null&&Y.BC==1)S.x+=S.d;var U=_(S,J.uk).H;h.K.sV.Z.push("M","L");
h.K.sV.H.push(U[0],U[1],U[6],U[7])}}else{h.K.Rt={H:[],Z:[]};for(var G=L;G<H;G++){var J=c.e_(G),g=_(J._,J.uk);
s.a.concat(h.K.Rt,g)}}}if(c!=null){if(!q.nK()){var M=s.FO.a8($.$F,q),C=Math.min(q.d,q.v)/10;if(C<1)C=1;
if(h.K.sV){h.K.sV=s.a.sz(h.K.sV);h.K.sV=s.a.zb(h.K.sV,C);s.nS.apply(M,h.K.sV.H,q)}if(h.K.Rt){h.K.Rt=s.a.sz(h.K.Rt);
h.K.Rt=s.a.zb(h.K.Rt,C);s.nS.apply(M,h.K.Rt.H,q)}s.nS.apply(M,h.K.wf,q)}}if(h.K.sV)s.a.J(h.K.sV.H,$.J,h.K.sV.H);
if(h.K.Rt)s.a.J(h.K.Rt.H,$.J,h.K.Rt.H);s.a.J(h.K.wf,$.J,h.K.wf);h.IL=!0};f.dE.prototype.a9X=function(h,e,$){if($==null)return;
h.K.wf.push(0,0);if(h.K.sV==null)h.K.sV={Z:[],H:[]};for(var G=0;G<$.Bp.length;G++){var Z=$.Bp[G];for(var c=0;
c<Z.KF.length;c++){var q=Z.KF[c],E=Z.t6.x+q.t6.x+q._.x,P=Z.t6.y+q.t6.y+q._.y+q._.v;h.K.sV.Z.push("M","L");
h.K.sV.H.push(E,P,E+q._.d,P)}}h.IL=!0};f.Sb=function(){f.LV.call(this,[10,9],f.V7,"tools/lasso");this.eu="crosshair";
this.JH=null;this.kk=null;this.cT=null};f.Sb.prototype=new f.LV;f.Sb.prototype.Aw=function(h,e,$,Z){this.JH=this.ag;
this.kk={H:[this.JH.x,this.JH.y],Z:["M"]}};f.Sb.prototype.AT=function(h,e,$,Z){this.cT=Z;var c=this.kk;
if(c==null)return;if(!Z.xo){if(this.kk!=null&&this.zg>1&&$.q(p.ys)){c.H.pop();c.H.pop();c.H.push(this.X_.x,this.X_.y);
h.K.sV=c;h.IL=!0}return}c.Z.push("L");c.H.push(this.X_.x,this.X_.y);this.JH=this.X_;if(this.yO){h.K.sV=c;
h.IL=!0}};f.Sb.prototype.Mm=function(){return this.kk!=null};f.Sb.prototype.ho=function(){return this.kk!=null};
f.Sb.prototype.WI=function(h,e,$,Z){f.LV.prototype.WI.call(this,h,e,$,Z);if(this.kk&&this.zg>1&&this.cT&&!this.cT.xo&&!Z.q(p.ys))this.PZ(h,$,Z)};
f.Sb.prototype.IB=function(h,e,$,Z){this.cT=Z;var c=this.kk;if(c==null)return;if(this.zg>1&&$.q(p.ys)){c.Z.push("L");
c.H.push(this.X_.x,this.X_.y);return}this.PZ(h,e,$)};f.Sb.prototype.PZ=function(h,e,$){this.finish(h,e,$,this.cT);
this.kk=null;h.K.sV=null;h.IL=!0};f.Sb.prototype.getSelection=function(h,e,$,Z){if(this.ag.dz(this.X_)||!this.yO)return null;
return f.LV.UL(this.kk.H)};f.fQ=function(){f.ar.call(this,[10,11],f.OA,"tools/move");this.Gx=new eu(0,0);
this.Xo=new eu(0,0);this.Wo=null;this.Fu=null;this.R1=new eu(0,0);this.GY=null;this.D0=null;this.a3=null;
this.J6=0;this.dj=null;this.fI=[];this.g2=null;this.kR=!1;this.e=0;this.gP=null;this.$w=null;this.RT=null;
this.Ty=!1;this.KY={EV:!1,HO:!1,Q2:!1};this.a1I=!1;this.a2a=!1;this.YJ=null;this.fo=null;this.ahp=null;
var h=[];for(var G=0;G<s.IQ.Xp.length;G++)h.push({name:s.IQ.Xp[G],Q:function(e,$,Z){return{P8:$.cz.k1==Z}}});
this.e9=new dW(h);this.e9.k("select",this.yL,this)};f.fQ.prototype=new f.ar;f.ar.prototype.s4=function(h){return this.kR&&this.e!=2};
f.fQ.prototype.Nl=function(){return this.kR&&this.e==0};f.fQ.prototype.IZ=function(h,e,$,Z){this.fd(h,-this.R1.x,-this.R1.y);
this.R1.su(0,0);this.TS(h,null,$);this.tP(h)};f.fQ.prototype._3=function(){var h=this.KY;return[h.EV?1:0,h.HO?1:0,h.Q2?1:0]};
f.fQ.prototype.xc=function(h,e,$){var Z=this.KY;if(h&&h[0]!=null)Z.EV=h[0]==1;if(h&&h[1]!=null)Z.HO=h[1]==1;
if(h&&h[2]!=null)Z.Q2=h[2]==1;var c=new B(D.E.P,!0);c.data={e:D.U.UR,F:this.id,Oi:Z,a0t:e};$.f(c)};f.fQ.cN=function(h,e,$,Z,c,q,E){if(E==null)E=[!1,!0];
var P=new O(0,0,h.d,h.v),a=h.wR(null,c,!0),j=h.in(a,E[0]?P:null,E[1]?null:P)[0];if(E[1]){var L=s.ZC(j.v2(),new O(0,0,j.d,j.v),2);
f.u4.Hx(j,L)}if($!=1){var H=new O(0,0,Math.round(j.d*$),Math.round(j.v*$));f.u4.Hx(j,H);var _=[];for(var G=0;
G<j.t.length;G++)_.push(G);var J=f.o.xT(j,_,!0);f.u4.k6(j,new i7($,0,0,$,0,0));f.o.u8(j,Z,_,J,1,s.I.dW(new i7($,0,0,$,0,0)),null,!0);
j.cm()}var S=[];for(var G=0;G<e.length;G++)if(j.d*j.v!=0)S.push(cE.JS(j,e[G].toUpperCase(),null,null,q?q[G]:null,Z));
return S};f.fQ.prototype.Lv=function(h,e,$,Z,c){if(h==null||h.C.length==0)return;var q=f.fQ.cN(h,[e],$,Z,null)[0],E=new B(D.E.P,!0);
E.data={e:D.U.Dz,data:q,name:h.t[h.C[0]].getName()+($==1?"":"@"+$+"x")+"."+e};c.f(E)};f.fQ.prototype.cd=function(h,e,$,Z,c){if(h.oD=="getPNG"){this.Lv($,"png",h.fn,c,e)}else if(h.oD=="getSVG"){this.Lv($,"svg",h.fn,c,e)}if(h.oD=="prms"){this.KY=h;
this.tP($)}};f.fQ.aap=function(h){var t=h.length,$=0;h.sort(function(q,E){return q[0]+q[1]/2-(E[0]+E[1]/2)});
var e=h[t-1][0]+h[t-1][1]-h[0][0];for(var G=0;G<t;G++)$+=h[G][1];var Z=Math.round((e-$)/(t-1)),c=h[0][0];
for(var G=0;G<t;G++){h[G][0]=c;c+=h[G][1]+Z}};f.fQ.prototype.a1=function(h,e,$,Z,c){var q=h.e;if(q=="trsl"){var E=Math.round(h.an1),P=Math.round(h.a6P);
this.R1.su(E,P);this.uJ($,e,Z,c,!1,h.$);this.fd($,E,P);this.TS($,null,c)}else if(q=="gids"||q=="gidsFromLayer"){var a=h.$w,j,L;
if(a==null)a=JSON.parse(JSON.stringify($._D));if(q=="gids"){j=h.LS;var H=a[0].length+a[1].length,_=j[0].length+j[1].length;
L=H==_?[23,2]:H>_?[23,3]:[23,4];if(_==0)L=[11,15,0]}else if(q=="gidsFromLayer"){var J=[[],[]];for(var G=0;
G<$.C.length;G++){var S=$.t[$.C[G]].rect;if(S.nK())continue;J[0].push(S.x,S.x+S.d);J[1].push(S.y,S.y+S.v)}L=[11,15,1];
j=JSON.parse(JSON.stringify($._D));f.fQ.K9(j,J)}if(JSON.stringify(a)==JSON.stringify(j))return;var q=new fW(L,this);
q.data={e:2,$w:a,LS:j};$.eG(q);this.t4(q.data,$)}else if(q=="algn"){var N=h.G;if($==null)return;if($.C.length<2&&!($.N!=null&&N!=3&&N!=7)){alert(e_.get([15,7,5]));
return}var Y=$.N;$.N=null;var S=Y?Y.rect:f.o._A($);this.uJ($,e,Z,c,!1);if(!this.kR)return;var U=this.dj,g={},M=[],C=[],y=[];
for(var G=0;G<U.length;G++){var i=U[G];while($.t[i].getName()=="</Layer group>")i++;var Q=$.root.fH(i),m=Q;
while(Q.parent!=null){Q=Q.parent;if(U.indexOf(Q.index)!=-1)m=Q}var n=C.indexOf(m.index);if(n==-1){n=C.length;
C.push(m.index)}M[G]=n}var u=[],K=[],F=[];for(var G=0;G<C.length;G++){var b=f.o._A($,$.wR(!0,C[G]));
F.push(b);var d=N==3?[b.y,b.v]:[b.x,b.d];u[G]=d;K.push(d)}f.fQ.aap(K);for(var G=0;G<C.length;G++){var b=F[G],W=b.x,A=b.y;
if(N==0)W=S.x;if(N==1)W=S.x+(S.d-b.d)/2;if(N==2)W=S.x+(S.d-b.d);if(N==3)A=u[G][0];if(N==4)A=S.y;if(N==5)A=S.y+(S.v-b.v)/2;
if(N==6)A=S.y+(S.v-b.v);if(N==7)W=u[G][0];y.push(Math.round(W-b.x),Math.round(A-b.y))}var z=[];for(var G=0;
G<U.length;G++){var T=M[G];z[2*G]=y[2*T];z[2*G+1]=y[2*T+1]}this.fd($,0,0,null,z);var R=N==3||N==7?[20,4,6]:[20,4,N<3?N:N-1];
this.TS($,null,c,z,R);$.N=Y}};f.fQ.K9=function(h,e){for(var G=0;G<e.length;G++)for(var $=0;$<e[G].length;
$++)if(h[G].indexOf(e[G][$])==-1)h[G].push(e[G][$])};f.fQ.prototype.enable=function(h,e,$,Z,c){this.D0=$;
this.a3=e;this.Ty=c?!0:!1;this.tP(h);this.qd("default",e)};f.fQ.prototype.disable=function(h,e,$,Z){this.gz(h)};
f.fQ.prototype.gz=function(h){if(h==null)return;if(this.YJ){this.YJ.clear(h);this.YJ=null}if(h.K.Q2){h.K.Q2=null;
h.IL=!0}if(h.K.yu){h.K.yu=null;h.IL=!0}if(h.K.sk[this.id]){delete h.K.sk[this.id];h.IL=!0}if(h.K.Yr.length!=0){h.K.Yr=[];
h.IL=!0}};f.fQ.prototype.yY=function(h,e,$,Z){if($.$P!=this.id)return;this.tP(h)};f.fQ.prototype.tP=function(h,e){if(h==null)return;
var $=this.KY;this.gz(h);if(!this.Ty){var Z;if($.HO||$.Q2)Z=s.a.Lu(f.o._A(h));if($.HO&&!Z.nK()){this.YJ=new cy([Z.x,Z.y,Z.x+Z.d,Z.y,Z.x+Z.d,Z.y+Z.v,Z.x,Z.y+Z.v],!0);
this.YJ.Fs(h,this.D0)}if($.Q2){var c=h.ua(h.C[0]),L=null,H=!1;if(c==null)c=new O(0,0,h.d,h.v);h.K.Q2={u2:[Z],ZS:[]};
var q=h.K.Q2.ZS,E=Z.x+Z.d,P=Z.y+Z.v,a=Z.x+Math.floor(Z.d/2),j=Z.y+Math.floor(Z.v/2);if(e){var _=h.root.mI(new eu(Math.floor(e.x),Math.floor(e.y)));
if(_){L=s.a.Lu(_.$.TX(h));if(L.k3(Z)){H=(L.x1(Z)||Z.x1(L))&&!Z.dz(L);if(!H)L=null}}}this.kH(Z,q);if(L!=null){h.K.Q2.u2.push(L);
var J=L.x+L.d,S=L.y+L.v,N=L.x+Math.floor(L.d/2),Y=L.y+Math.floor(L.v/2);if(H){var U=a,g=j;if(Z.x1(L)){U=N;
g=Y}q.push(Z.x,g,L.x,g);q.push(E,g,J,g);q.push(U,Z.y,U,L.y);q.push(U,P,U,S)}else{this.kH(L,q);var M=P<L.y||S<Z.y,C=E<L.x||J<Z.x;
if(E<L.x)q.push(E,j,L.x,j);if(J<Z.x)q.push(J,j,Z.x,j);if(P<L.y)q.push(a,P,a,L.y);if(S<Z.y)q.push(a,S,a,Z.y);
if(M&&!C){if(Z.x<L.x)q.push(Z.x,Y,L.x,Y);if(L.x<Z.x)q.push(L.x,j,Z.x,j)}}}else{if(Z.y>c.y)q.push(a,c.y,a,Z.y);
if(P<c.y+c.v)q.push(a,P,a,c.y+c.v);if(Z.x>c.x)q.push(c.x,j,Z.x,j);if(E<c.x+c.d)q.push(E,j,c.x+c.d,j)}h.IL=!0}}if(this.e==2&&this.kR){var y=this.dj,i=y[0],Q=(i==0?"X":"Y")+": "+s.IQ.MB(h._D[i][y[1]],h.Ay,this.D0,i==0?h.d:h.v,!0);
f.ar.cA(Math.round(this.Wo.x)+10,Math.round(this.Wo.y)-10,[Q],h);h.IL=!0}if(this.e==3&&this.kR){var m=s.a.Kf(this.gP);
h.K.sk[this.id]={sV:m};h.IL=!0}};f.fQ.prototype.kH=function(h,e){var $=h.d,Z=h.v,c=h.x+Math.floor($*.2),q=h.y+Math.floor(Z*.2);
e.push(c,h.y,c,h.y+Z);e.push(h.x,q,h.x+$,q)};f.fQ.prototype.qd=function(h,e){var $={e:D.U.Qd,Hz:h},Z=new B(D.E.P,!0);
Z.data=$;e.f(Z)};f.fQ.prototype.cD=function(h){var e=this.fo.XW()[0],$=this.GY,Z=this.ahp[e];this.E$($,Z)};
f.fQ.prototype.yL=function(h){var e=JSON.parse(JSON.stringify(this.D0.cz));e.k1=this.e9.XW()[0];var $=new B(D.E.P,!0);
$.data={e:D.U.Ov,Av:iM.Q_,El:e};this.a3.f($)};f.fQ.prototype.d1=function(h,e,$,Z,c){if(this.kR)this.f0(h,e,$,Z,c);
this.GY=h;this.D0=$;this.a3=e;var q=h.z.QX(c.x,c.y),E;if(f.fQ.ba($,c,h.z)){E=this.e9}else{if(this.fo)this.fo.removeEventListener("select",this.cD);
var P=[];h.root.mI(q,P);if(P.length==0)return;var a=[];this.ahp=P;for(var G=0;G<P.length;G++)a.push({name:h.t[P[G]].getName()});
E=this.fo=new dW(a);E.k("select",this.cD,this)}E.parent=e;E.B();E.update(h,$);var j=new B(D.E.P,!0);
j.data={e:D.U.sH,yv:E,x:c.aS+2,y:c.gh+1};e.f(j)};f.fQ.prototype.I_=function(h,e,$,Z,c){return f.fQ.ba($,c,h.z)};
f.fQ.prototype.yj=function(h,e,$,Z,c){this.Wo=c;this.Gx.su(c.x,c.y);this.Xo=h.z.QX(c.x,c.y);this.Fu=new g_(this.Xo);
this.uJ(h,e,Z,$,!0)};f.fQ.ba=function(h,e,$){var Z=s.IQ.uE,c=$.qM.v;return h.ev&&(0<e.x&&e.x<Z||0<e.y&&e.y<Z||0<e.x&&e.x<4*Z&&c-Z<e.y&&e.y<c)};
f.fQ.prototype.uJ=function(h,e,$,Z,c,q){var E,P=this.Xo,a=!1;if(c){var j=Z.y7&&Z.cz._D;if(f.fQ.ba(Z,this.Gx,h.z)){E=JSON.parse(JSON.stringify(h._D));
if(this.Gx.x<s.IQ.uE)h._D[0].push(P.x);if(this.Gx.y<s.IQ.uE)h._D[1].push(P.y);if(!j){var L=new B(D.E.P);
if(!Z.cz._D){L.data={e:D.U.Ov,Av:iM.kU};e.f(L)}if(!Z.y7){L.data={e:D.U.Ov,Av:iM.GN};e.f(L)}j=!0}}var H=this.bW(h,P);
if(j&&H){this.e=2;this.$w=E?E:JSON.parse(JSON.stringify(h._D));this.dj=H;this.kR=!0;this.g2=f.o._A(h);
return}if(h.vw.length!=0){this.e=4;this.g2=h.Qe[h.vw[0]].rect.clone();this.kR=!0;return}if(this.YJ&&this.YJ.vR(P,h.z.S,!0)!=null){var L=new B(D.E.P);
L.data={e:D.U.kX,F:f.Fk};e.f(L);var _=new B(D.E.A);_.F=f.Fk;_.data={e:"doMouseDown",Wo:this.Gx};e.f(_);
return}if(h.N&&h.N.rect.B4(P)){var J=Math.round(P.x),S=Math.round(P.y),N=h.N.rect;a=h.N.channel[(S-N.y)*N.d+J-N.x]>128}if(!a&&(!this.Ty&&this.KY.EV||this.Ty&&this.KY.EV&&($.q(p.ai)||h.C.length<2))){var Y=this.aml(h,P,$);
if(!Y){h.C=[];h.mG=null;h.uu=h.Oc=!0;this.e=3;this.gP=new O;this.kR=!0;return}}if($.q(p.ys)&&!a){var _=new B(D.E.A);
_.F=f.S$;_.data={e:o.pA,a7r:!0};e.f(_)}}if(h.vw.length!=0){this.e=4;this.g2=h.Qe[h.vw[0]].rect.clone();
this.kR=!0;return}this.dj=h.wR(q==null,q,null,!0);for(var G=0;G<this.dj.length;G++){var U=h.t[this.dj[G]];
if(U.ra(2)||U.ra(31)){alert(e_.get([6,57,0]));return}}this.fI=f.fQ.a9e(h,this.dj);this.e=0;if(h.N&&(!c||a)&&h.C.length==1&&h.Jh(!1)){if(!h.$k()){this.kR=!1;
return}var g=h.t[h.C[0]],M=$.q(p.ys);this.e=1;var C=h.history[h.Nd];if(C.F==this&&C.data.e==1&&C.data.$==h.C[0]&&g.jw==g.cj.jw&&!M){this.RT=C}else{var y=g.cj,i=!1,Q;
if(!g.Ae(h,h.N)||M){i=!0;g.ke(h,h.N,M)}if(g.cj.jw<=0){Q=s.m(g.cj.KE.length>>2);s.z0(g.cj.KE,Q,3)}else Q=h.N.channel.slice(0);
var m={rect:g.cj.lD.clone(),channel:Q};this.RT=new fW(M?[12,53]:[12,54],this);this.RT.data={e:1,$:h.C[0],cj:g.cj,JL:y,iA:i,HC:h.N,A9:m,rU:new eu(0,0)};
h.eG(this.RT);h.N=m;h.al=!0}}this.kR=!0;this.g2=f.o._A(h)};f.fQ.prototype.aml=function(h,e,$){var Z=h.root.mI(new eu(Math.floor(e.x),Math.floor(e.y)));
if(Z){if(Z.$.add.vmsk)h.IL=!0;var c=h.t.indexOf(Z.$);if($.q(p.ai)){var q=h.C.indexOf(c);if(q==-1)h.C.push(c);
else if(h.C.length>1)h.C.splice(q,1)}else if(h.C.indexOf(c)==-1){this.E$(h,c)}}return Z!=null};f.fQ.prototype.E$=function(h,e){h.t[e].jw=0;
h.C=[e];h.mG=null;h.Kw();h.j3=!0;h.uu=!0};f.fQ.prototype.oX=function(h,e,$,Z,c){this.Wo=c;var q=h.z.QX(c.x,c.y),_,J;
if(this.Fu&&this.e<2)q=this.Fu.MS(q,Z);if(!this.kR){if($.y7&&$.cz._D){var E=this.bW(h,q),P="default";
if(E)P=["col-resize","row-resize"][E[0]];else if(this.YJ){var a=this.YJ.vR(q,h.z.S);if(a)P=a}this.qd(P,e)}this.tP(h,q);
return}var j=this.Xo,L=Math.round(q.x-j.x)-this.R1.x,H=Math.round(q.y-j.y)-this.R1.y;if(this.g2){if(this.e==2){q=f.fQ.cX(h,q,$,[!1,h.N?h.N.rect:this.g2,!0])}else{J=this.g2.clone();
J.offset(this.R1.x+L,this.R1.y+H);_=f.fQ.OM(h,J,$);L+=Math.round(_[0]);H+=Math.round(_[1])}}this.R1.x+=L;
this.R1.y+=H;this.fd(h,L,H,q,null,Z.q(p.ai));this.tP(h,q);if(_)f.fQ.CY(h,J,_)};f.fQ.prototype.bW=function(h,e){e=[e.x,e.y];
for(var G=0;G<2;G++)for(var $=0;$<h._D[G].length;$++)if(Math.abs(h._D[G][$]-e[G])*h.z.S<4)return[G,$];
return null};f.fQ.prototype.fd=function(h,e,$,Z,c,q){if(this.e==0){if(c)f.fQ.w5(h,this.dj,this.fI,c);
else f.fQ.YE(h,this.dj,this.fI,e,$)}else if(this.e==1){var E=this.RT.data;E.rU.offset(e,$);f.fQ.IV(h,E.$,e,$)}else if(this.e==2){var P=1e-5;
if(q)P=h.z.S<=1?10:1;else if(h.z.S<=1)P=1;var a=P*Math.round(Z.x/P),j=P*Math.round(Z.y/P),L=[a,j],H=this.dj;
h._D[H[0]][H[1]]=L[H[0]]}else if(this.e==3){var _=this.Xo,J=s.a.pl([_.x,_.y,Z.x,Z.y]);this.gP=J;var S=[];
h.root.zp(J,S);if(JSON.stringify(h.C)!=JSON.stringify(S)){h.C=S;h.uu=h.Oc=!0}}else if(this.e==4){for(var G=0;
G<h.vw.length;G++)h.Qe[h.vw[G]].rect.offset(e,$);h.IL=!0}};f.fQ.IV=function(h,e,$,Z){var c=h.t[e];h.N.rect.offset($,Z);
c.NP(h,$,Z,h.N);h.al=!0;h.s()};f.fQ.prototype.f0=function(h,e,$,Z,c){this.TS(h,c,$);this.tP(h);if(Date.now()-this.J6<300){var q=f.dE._X(h,h.z.QX(c.x,c.y));
if(q!=-1){var E=new B(D.E.A,!0);E.F=f.kE;E.data={e:"editCurr",xU:q};e.f(E)}else if(f.fQ.ba($,c,h.z)){var P=new B(D.E.P);
P.data={e:D.U.tr,yq:"doczoom",rs:h.z.S*100,TB:{c:D.E.A,F:f.dc,g:{e:"pzoom"}}};e.f(P)}}this.J6=Date.now()};
f.fQ.prototype.TS=function(h,e,$,Z,c){if(!this.kR)return;this.kR=!1;if(this.e==0){if(Z){this.Mx(h,null,Z,c)}else{if(this.R1.x==0&&this.R1.y==0)return;
this.Mx(h,this.R1.clone())}h.qk=!0}else if(this.e==2){var q=0;e=[e.x,e.y];var E=this.dj,aw=this.$w[0].length+this.$w[1].length,P=h._D[0].length+h._D[1].length;
if($.ev&&e[E[0]]<s.IQ.uE){h._D[E[0]].splice(E[1],1);q=1;if(aw==P-1)return}if(aw<P)q=2;var a=new fW([[23,2],[23,3],[23,4]][q],this);
a.data={e:2,$w:this.$w,LS:JSON.parse(JSON.stringify(h._D))};h.eG(a)}else if(this.e==4){var a=new fW([12,54],this);
a.data={e:4,C:h.vw.slice(0),i:this.R1.clone()};h.eG(a)}this.R1.su(0,0)};f.fQ.prototype.WI=function(h,e,$,Z){var c=Z.cy();
if(h!=null&&(c.x!=0||c.y!=0)){if(Z.q(p.ys)&&h.N==null){var q=new B(D.E.A);q.F=f.S$;q.data={e:o.pA,a7r:!0};
e.f(q)}this.R1.su(c.x,c.y);this.uJ(h,e,Z,$,!1);if(!this.kR)return;this.fd(h,c.x,c.y);this.TS(h,null,$);
this.tP(h)}var E=Z.q(p.tm);if(!this.Ty&&this.a2a!=E){if(E){this.a1I=this.KY.EV;this.KY.EV=!0}else{this.KY.EV=this.a1I}this.a2a=E;
var P=new B(D.E.P,!0);P.data={e:D.U.UR,F:this.id,Oi:this.KY};e.f(P)}};f.fQ.prototype.yc=function(h,e){if(h.e==0)f.fQ.w5(e,h.C,h._7,h.jU,!0);
else if(h.e==2){e._D=JSON.parse(JSON.stringify(h.$w));e.IL=!0}else if(h.e==4){for(var G=0;G<h.C.length;
G++)e.Qe[h.C[G]].rect.offset(-h.i.x,-h.i.y);e.IL=!0}else{var $=e.t[h.$];if(h.iA){$.zJ(e,h.JL);e.N=h.HC;
e.al=!0;e.s();$.s()}else{f.fQ.IV(e,h.$,-h.rU.x,-h.rU.y)}}};f.fQ.prototype.t4=function(h,e){if(h.e==0)f.fQ.w5(e,h.C,h._7,h.jU);
else if(h.e==2){e._D=JSON.parse(JSON.stringify(h.LS));e.IL=!0}else if(h.e==4){for(var G=0;G<h.C.length;
G++)e.Qe[h.C[G]].rect.offset(h.i.x,h.i.y);e.IL=!0}else{var $=e.t[h.$];if(h.iA){$.cj=h.cj;e.N=h.A9;f.fQ.IV(e,h.$,0,0);
$.s()}else{f.fQ.IV(e,h.$,h.rU.x,h.rU.y)}}};f.fQ.prototype.Mx=function(h,e,$,Z){if($){var c=!0;for(var G=0;
G<$.length;G++)if($[G]!=0)c=!1;if(c)return}var q=h.history[h.Nd];if(q.data&&q.F==this&&q.data.e==0&&$==null&&JSON.stringify(q.data.C)==JSON.stringify(this.dj)&&JSON.stringify(q.data._7)==JSON.stringify(this.fI)){var E=q.data.jU,P=q.data.ai8.TJ.T.v;
P.Hrzn.v.val+=e.x;P.Vrtc.v.val+=e.y;for(var G=0;G<E.length;G+=2){E[G]+=e.x;E[G+1]+=e.y}}else{if(e==null)e=new eu($[0],$[1]);
var a={Lw:"move",TJ:{classID:"null",null:bw.NQ("Lyr",!0),T:{t:"Objc",v:{classID:"Ofst",Hrzn:{t:"UntF",v:{type:"#Rlt",val:e.x}},Vrtc:{t:"UntF",v:{type:"#Rlt",val:e.y}}}}}},j=new fW(Z?Z:[12,54],this);
if($)j.data={e:0,C:this.dj,_7:this.fI,jU:$};else j.data={e:0,C:this.dj,_7:this.fI,jU:f.fQ.dV(this.dj,e.x,e.y)};
j.data.ai8=a;h.eG(j);this.track(a)}};f.fQ.dV=function(h,e,$){var Z=[];for(var G=0;G<h.length;G++)Z.push(e,$);
return Z};f.fQ.YE=function(h,e,$,Z,c){f.fQ.w5(h,e,$,f.fQ.dV(e,Z,c))};f.fQ.w5=function(h,e,$,Z,c){if(e.length==0)return;
if($==null){$=[];for(var G=0;G<e.length;G++){$.push(h.t[e[G]].iR(h,!0))}}var q=new O,E=new O(0,0,h.d,h.v);
for(var G=0;G<e.length;G++){var P=Z[2*G],a=Z[2*G+1];if(c){P=-P;a=-a}var j=h.t[e[G]],L=$[G];if(j.add.fxrp&&(L.indexOf(0)!=-1||j.SV()))j.add.fxrp.offset(P,a);
for(var H=0;H<L.length;H++){var _=L[H];if(_==0){j.rect.offset(P,a);if(j.fi()&&j.wV(h))j.wV(h).rect.offset(P,a);
if(j.add.artb){var J=j.B2();J.offset(P,a);j.$O(J)}if(j.add.TySh){j.add.TySh.J.translate(P,a);if(j.add.TySh.add){j.add.TySh.add.vmsk.offset(P,a)}}if(j.add.SoLd){var S=new i7(1,0,0,1,P,a),N=j.add.SoLd,Y=f.o.Pu(N.Trnf),U=f.o.Pu(N.nonAffineTransform);
s.a.J(Y,S,Y);s.a.J(U,S,U);N.Trnf=f.o.h8(Y);N.nonAffineTransform=f.o.h8(U)}}if(_==1)j.kV().rect.offset(P,a);
if(_==2){j.add.vmsk.offset(P,a);if(j.add.vogk)s.as.J(j.add.vogk,[1,0,P,0,1,a,0,0],[])}if(_==3){j.wV(h).r.rect.offset(P,a);
if(L.length==1)j.s()}}if(L.length>0){var g=j.add.GdFl;if(g==null)g=j.add.PtFl;if(j.SV()&&!j.m5()&&j.add.vmsk!=null&&s.W.Sm(j.add.vmsk.b)&&j.add.vmsk.Ks==255&&(g==null||g.Algn&&g.Algn.v)){j.rect.offset(P,a)}else j.ZB(h);
var M=h.root.oY(j.TX(h),h,e[G]);q=q.iJ(M);M.offset(-P,-a);q=q.iJ(M);if(j.add.SoCo||j.add.GdFl||j.add.PtFl||es.get(j.add)!=null)q=q.iJ(E);
j.c1()}}h.s(q)};f.fQ.a9e=function(h,e){var $=[];for(var G=0;G<e.length;G++){var Z=h.t[e[G]];$.push(Z.iR(h))}return $};
f.fQ.CY=function(h,e,$){var Z=h.K.yu={H:[],Z:[]},c=e.x+$[0],q=e.y+$[1];if($[2]!=1e9){Z.Z.push("M","L");
Z.H.push($[2],q,$[2],q+e.v)}if($[3]!=1e9){Z.Z.push("M","L");Z.H.push(c,$[3],c+e.d,$[3])}h.IL=!0};f.fQ.cX=function(h,e,$,Z){var c=f.fQ.Gv(h,[[e.x],[e.y]],$,Z);
return new eu(e.x+c[0],e.y+c[1])};f.fQ.OM=function(h,e,$,Z,c){var q=c==!0?0:1,E=f.fQ.Gv(h,[[e.x,e.x+(e.d>>>q),e.x+e.d],[e.y,e.y+(e.v>>>q),e.y+e.v]],$,Z);
return E};f.fQ.Gv=function(h,e,$,Z){if(Z==null)Z=[!0,null,!0];var c=[0,0,1e9,1e9];if(!$.uR)return c;
var q=JSON.parse(JSON.stringify(e));for(var E=0;E<2;E++){var P=1e9,a=e[E],j=0;for(var L=0;L<a.length;
L++){var H=f.fQ.aae(h,a[L],q[1-E][L],E,$,Z);if(H!=1e9)q[E][L]=H;if(H!=1e9&&Math.abs(H-a[L])<Math.abs(P)){P=H-a[L];
j=H}}if(P!=1e9){c[E]=P;c[E+2]=j}}return c};f.fQ.aae=function(h,e,$,Z,c,q){var E=1e9,P=c.dJ,a=c.cz,j=[h.root];
while(j.length!=0&&P[2]){var L=j.pop(),H=L.$,_=H.rect;if(!H.o6())continue;if(L.children)for(var G=0;
G<L.children.length;G++)j.push(L.children[G]);if(h.C.indexOf(L.index)!=-1||_.nK())continue;if(Z==0){var J=_.d,S=J>>>1;
if(Math.abs(_.x-e)<Math.abs(E-e))E=_.x;if(Math.abs(_.x+S-e)<Math.abs(E-e))E=_.x+S;if(Math.abs(_.x+J-e)<Math.abs(E-e))E=_.x+J}else{var N=_.v,Y=N>>>1;
if(Math.abs(_.y-e)<Math.abs(E-e))E=_.y;if(Math.abs(_.y+Y-e)<Math.abs(E-e))E=_.y+Y;if(Math.abs(_.y+N-e)<Math.abs(E-e))E=_.y+N}}if(q[0]&&P[0]&&a._D&&c.y7){var U=h._D[Z];
for(var G=0;G<U.length;G++)if(Math.abs(U[G]-e)<Math.abs(E-e))E=U[G]}if(P[1]&&a.Ui&&c.y7){var g=Math.round(s.IQ.Gj(a.FQ,h,a.Fb));
if(Z==1&&a.pf==1){var M=$*.5*Math.sqrt(4/3),C;g*=Math.sqrt(4/3);C=Math.round((e-M)/g)*g+M;if(Math.abs(C-e)<Math.abs(E-e))E=C;
C=Math.round((e+M)/g)*g-M;if(Math.abs(C-e)<Math.abs(E-e))E=C}else{var C=Math.round(e/g)*g;if(Math.abs(C-e)<Math.abs(E-e))E=C}}var y=h.E1;
if(P[3]&&a.E1&&c.y7&&y.length!=0){for(var G=0;G<y.length;G++){if(!q[2]&&h.KI.indexOf(G)!=-1)continue;
var i=f.Al.Hb(y,G);for(var Q=0;Q<3;Q+=2)if(i[Q+Z]!=e&&Math.abs(i[Q+Z]-e)<Math.abs(E-e))E=i[Q+Z]}}if(q[1]){var _=q[1],J=_.d,N=_.v,m=[_.x,_.y,_.x+(J>>>1),_.y+(N>>>1),_.x+J,_.y+N];
for(var G=0;G<6;G+=2)if(Math.abs(m[G+Z]-e)<Math.abs(E-e))E=m[G+Z]}if(P[4]){var J=h.d,N=h.v,m=[0,0,J>>>1,N>>>1,J,N];
for(var G=0;G<6;G+=2)if(Math.abs(m[G+Z]-e)<Math.abs(E-e))E=m[G+Z]}var n=Math.abs(E-e)<=4*D.M()/h.z.S?E:1e9;
return n};f.oz=function(){f.LV.call(this,[10,12],f.et,"tools/mwand")};f.oz.prototype=new f.LV;f.oz.prototype._3=f.LV.prototype.a4u;
f.oz.prototype.xc=f.LV.prototype.aa0;f.oz.prototype.Aw=function(h,e,$,Z){this.finish(h,e,$,Z)};f.oz.prototype.getSelection=function(h,e,$,Z){var c=this.X_,q=f.LV.a35(new eu(Math.floor(c.x),Math.floor(c.y)),this.KY.hZ);
return q};f.oz.N_=function(h,e,$){if(h.C.length!=1){alert("More than one layer selected.");return null}var Z=h.t[h.C[0]],c=Z.jw<=0?null:Z.jw==1?Z.kV():Z.wV(h).r,q;
if(c==null&&Z.add.lsct!=null&&Z.add.lsct!=hJ.pU){alert("No layer selected.");return null}if(e.x<0||e.x>h.d||e.y<0||e.y>h.v)return null;
var E=new O(0,0,h.d,h.v);if(c==null&&E.dz(Z.rect))q=Z.buffer;else{q=s.m(E.X()*4);if(c==null)s.hX(Z.buffer,Z.rect,q,E);
else f.rz.Hw(c.channel,c.rect,c.color,q,E)}var P=f.oz.ia(q,E,e,null,$),a=s.Hd(P,E),j=s.m(a.X());s.T7(P,E,j,a);
return{rect:a,channel:j}};f.oz.kz=function(h,e,$){var Z=e.d,c=e.v,E=0,P=0,a=0,j=0;h=new Uint32Array(h.buffer);
var q=[],L=$.length;for(var G=0;G<L;G++){var H=$[G],_=Math.round(H.x-.5-e.x),J=Math.round(H.y-.5-e.y);
_=Math.max(0,Math.min(Z-1,_));J=Math.max(0,Math.min(c-1,J));var S=J*Z+_,N=h[S];q.push([N&255,N>>8&255,N>>16&255,N>>>24])}return q};
f.oz.ia=function(h,e,$,Z,c){h=new Uint32Array(h.buffer);var q=e.d,E=e.v,P=q*E;if(Z==null)Z=f.oz.kz(h,e,[$]);
var a=Math.round($.x-.5-e.x),j=Math.round($.y-.5-e.y),L=j*q+a,H=Date.now(),_=s.m(q*E),J=c[0],S=1/J,N=c[1]&&J>0?255:0;
if(c[2]){var Y=s.m(_.length),U=new Uint32Array(P),g=1;U[0]=a<<16|j;Y[L]=1;while(g>0){var M=U[g-1];g--;
var C=M>>>16,y=M&65535,G=y*q+C,i=f.oz.bi(h[G],Z);if(i>J){var Q=N*(1-Math.max(0,Math.min(1,(i-J)*S)));
_[G]=~~Q}else{_[G]=255;if(y!=E-1&&Y[G+q]==0){U[g++]=C<<16|y+1;Y[G+q]=1}if(y!=0&&Y[G-q]==0){U[g++]=C<<16|y-1;
Y[G-q]=1}if(C!=q-1&&Y[G+1]==0){U[g++]=C+1<<16|y;Y[G+1]=1}if(C!=0&&Y[G-1]==0){U[g++]=C-1<<16|y;Y[G-1]=1}}}}else{for(var G=0;
G<P;G++){var i=f.oz.bi(h[G],Z);if(i<=J)_[G]=255}for(var y=0;y<E;y++)for(var C=0;C<q;C++){var G=y*q+C;
if(_[G]==0&&(C>0&&(_[G-1]==255||y>0&&_[G-q-1]==255||y<E-1&&_[G+q-1]==255)||C<q-1&&(_[G+1]==255||y>0&&_[G-q+1]==255||y<E-1&&_[G+q+1]==255)||y>0&&_[G-q]==255||y<E-1&&_[G+q]==255)){var i=f.oz.bi(h[G],Z),Q=N*(1-Math.max(0,Math.min(1,(i-J)*S)));
_[G]=~~Q}}}return _};f.oz.bi=function(h,e){var $=e.length,Z=f.oz.Ug(h,e[0]),G=1;while(G!=$){Z=Math.min(Z,f.oz.Ug(h,e[G]));
G++}return Z};f.oz.Ug=function(h,e){var $=h&255,Z=h>>>8&255,c=h>>>16&255,q=h>>>24&255;if(e[3]==0)return q<5?0:255;
var E=Math.max(Math.abs($-e[0]),Math.max(Math.abs(Z-e[1]),Math.abs(c-e[2])));return q==0?255:E};f.RW=function(h,e){if(e)f.rz.call(this);
else if(h)f.rz.call(this,[10,49],f.YK,"tools/camove");else f.rz.call(this,[10,26],f.mV,"tools/patch");
this.JH=null;this.kk=null;this.i=null;this.t6=null;this.UT=new eu;this.aA=null;this.ht=null};f.RW.prototype=new f.rz;
f.RW.prototype.yj=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y);if(h.N&&s.mI(q,h.N.channel,h.N.rect)){var E=new O(0,0,h.d,h.v),P=E.jx(h.N.rect);
if(!h.Jh()||P.nK())return;if(!0){var a=s.m(P.X());s.T7(h.N.channel,h.N.rect,a,P);h.N={channel:a,rect:P}}this.In(h);
this.hB(h);this.t6=q;this.UT=new eu(q.x-h.N.rect.x,q.y-h.N.rect.y);this.ht=s.m(h.N.rect.X()*4);this.ht.fill(255);
if(this.KY.patch==1){var j=h.t[h.C[0]];j.ke(h,h.N,!0);if(j.cj==null)this.t6=null}this.aA=h.N.rect.clone()}else{this.kk={H:[q.x,q.y],Z:["M"]};
this.JH=q}};f.RW.prototype.oX=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y);if(this.t6){if(this.KY.patch==1){if(h.vw.length==0){var E=h.t[h.C[0]].cj,P=q.x-this.UT.x,a=q.y-this.UT.y;
f.fQ.IV(h,h.C[0],Math.round(P-E.lD.x),Math.round(a-E.lD.y))}}else this.ZJ(h,q,"clone")}if(this.JH){this.kk.Z.push("L");
this.kk.H.push(q.x,q.y);this.JH=q;h.K.sV=this.kk;h.IL=!0}};f.RW.prototype.f0=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y);
if(this.t6){var E=h.N.rect.clone();if(this.id==f.YK){var P=h.t[h.C[0]];P.zJ(h,P.cj);h.N.rect=this.aA.clone();
var a=s.m(h.N.rect.X()*4);s.Jk(h.N.channel,a,3);this.JY(h,"sheal",a,h.N.rect,h.N.rect);h.N.rect=E;E=E.iJ(this.aA)}this.ZJ(h,q,"heal");
this.finish(h,E,null,null,!0);h.s(E);this.t6=null}if(this.JH){var j=f.LV.z6(this.KY.setop,Z.q(p.ai),Z.q(p.ys)),L=new B(D.E.Kz,!0);
if(this.kk.H.length<=4)L.data=f.LV.ss();else L.data=f.LV.UL(this.kk.H,j);e.f(L);this.JH=null;h.K.sV=null;
h.IL=!0}};f.RW.prototype.cP=function(){return this.i};f.RW.prototype.cd=function(h,e,$,Z,c){f.rz.prototype.cd.call(this,h,e,$,Z,c);
this.qd(c,Z)};f.RW.prototype.qd=function(h,e){var $="auto;";if(e!=null&&e.q(p.ai)&&!e.q(p.ys)||this.KY.setop=="union")$="copy";
var Z=new B(D.E.P,!0);Z.data={e:D.U.Qd,Hz:$};if(this.caller)this.caller.f(Z)};f.RW.prototype.ZJ=function(h,e,$){var Z=new eu(Math.round(this.t6.x-e.x),Math.round(this.t6.y-e.y));
if(this.KY.patch==1)Z.su(-Z.x,-Z.y);this.i=Z;this.JY(h,$,this.ht,h.N.rect,h.N.rect);this.s(h,h.N.rect)};
f.uS=function(){f.RW.call(this,!0);this.KY.patch=1};f.uS.prototype=new f.RW(!0,!0);f.Pc=function(){f.rz.call(this,[10,13],f.acY,"tools/pbucket")};
f.Pc.prototype=new f.rz;f.Pc.prototype.enable=function(h,e,$,Z){var c=new B(D.E.P,!0);c.data={e:D.U.Qd,Hz:"default"};
e.f(c)};f.Pc.prototype.if=function(h,e){};f.Pc.prototype.f0=function(h,e,$,Z,c){if(this.xX(Z,e,c))return;
if(!h.Jh())return;var q=h.z.QX(c.x,c.y),E=f.oz.N_(h,q,this.KY.wconf);if(E==null)return;var P=s.m(E.rect.X()*4);
s.Ut(P,($.oV&255)<<16|($.oV>>8&255)<<8|($.oV>>16&255)<<0);s.Jk(E.channel,P,3);this.In(h);this.JY(h,"draw",P,E.rect,E.rect);
this.s(h,E.rect);this.finish(h,E.rect)};f.D$=function(){f.LV.call(this,[10,14],f.a99,"tools/plasso");
this.eu="crosshair";this.ZL=[];this.Fj=null;this.kk=null;this.a1g=0};f.D$.prototype=new f.LV;f.D$.prototype.disable=function(h,e,$,Z){this.df(h)};
f.D$.prototype.Aw=function(h,e,$,Z){this.ZL=[p.PA,p.iC]};f.D$.prototype.Jr=function(h){return this.ZL.indexOf(h)!=-1};
f.D$.prototype.s4=function(h){return this.kk!=null};f.D$.prototype.ho=function(){return this.kk!=null};
f.D$.prototype.Mm=function(){return this.kk!=null};f.D$.prototype.AT=function(h,e,$,Z){if(this.kk==null)return;
var c=this.kk,q=c.H,E=q.length-2,P=this.X_;if(this.zg>1&&$.q(p.ys)&&Z.xo){q.push(0,0);c.Z.push("L");
E+=2}else if($.q(p.ai))P=f.mT.W1(new eu(q[E-2],q[E-1]),P);q[E]=P.x;q[E+1]=P.y;h.K.sV=c;h.IL=!0};f.D$.prototype.IB=function(h,e,$,Z){var c=Date.now();
if(this.kk==null)this.kk={H:[this.X_.x,this.X_.y,this.X_.x,this.X_.y],Z:["M","L"]};else{this.AT(h,e,$,Z);
if(c-this.a1g<250||eu.nj(this.X_,new eu(this.kk.H[0],this.kk.H[1]))<5*D.M()/h.z.S){this.Fj=this.kk;this.finish(h,e,$,Z);
this.df(h);return}this.kk.Z.push("L");this.kk.H.push(this.X_.x,this.X_.y)}this.a1g=c;h.K.sV=this.kk};
f.D$.prototype.df=function(h){this.kk=null;this.ZL=[];if(h!=null){h.K.sV=null;h.IL=!0}};f.D$.prototype.WI=function(h,e,$,Z){f.LV.prototype.WI.call(this,h,e,$,Z);
if(Z.q(p.fp)&&this.kk==null&&this.Fj&&h.N!=null){var c=new B(D.E.A);c.F=f.C_;c.data={e:"h_stepbck"};
e.f(c);this.Aw(h,$,Z,null);this.kk=this.Fj;return}if(this.kk==null)return;if(Z.q(p.PA)||Z.q(p.iC)){this.kk.H.pop();
this.kk.H.pop();this.kk.Z.pop();this.AT(h,$,Z)}if(Z.q(p.Gr)){if(this.kk.H.length>4){this.Fj=this.kk;
this.finish(h,$,Z)}this.kk=null}if(Z.q(p.fp)){this.kk=null}h.K.sV=this.kk;h.IL=!0};f.D$.prototype.getSelection=function(h,e,$,Z){return f.LV.UL(this.kk.H)};
f.WY=function(){f.LV.call(this,[10,10],f.ain,"tools/mlasso");this.eu="crosshair";this.ZL=[];this.b=[];
this.sA=[];this.KF=[];this.vn=null;this.qH=null;this.Y1=null;this.J6=0;this.Nf=0};f.WY.prototype=new f.LV;
f.WY.prototype.disable=function(h,e,$,Z){this.clear(h)};f.WY.prototype.s4=function(h){return this.b.length!=0};
f.WY.prototype.Mm=function(){return this.b.length!=0};f.WY.prototype.Jr=function(h){return this.ZL.indexOf(h)!=-1};
f.WY.prototype.Aw=function(h,e,$,Z){this.ZL=[p.PA,p.iC];var c=this.yf(this.ag,h);if(this.b.length!=0&&(eu.nj(c,this.b[0])<4*D.M()/h.z.S||Date.now()-this.J6<300)){this.o7(h,this.b[0]);
this.finish(h,e,$);this.clear(h);return}this.J6=Date.now();if(this.b.length!=0)c=this.ap(c,h);else{var q=h.d,E=h.v,P=s.m(q*E),a=h.v2(),j=q*E*4;
for(var G=0;G<j;G+=4)P[G>>>2]=~~(.5+s.jv(a[G],a[G+1],a[G+2])*(a[G+3]*(1/255)));this.vn=s.h_.a5R(P,q,E);
this.Y1=new Uint16Array(P.length)}this.o7(h,c);this.Nf=$.q(p.ys)?1:0;this.VS(h)};f.WY.prototype.o7=function(h,e){var $=this.b;
this.sA[$.length]=this.KF.length;if($.length!=0){s.h_.$W(this.qH,e.y*h.d+e.x);var Z=this.QA(h,e);Z.reverse();
var c=f.WY.Wu(h,Z);this.KF=this.KF.concat(c)}$.push(e);this.AS(h)};f.WY.prototype.AS=function(h){var e=this.b[this.b.length-1],$=e.y*h.d+e.x;
this.qH=s.h_.ahI(this.vn.sf,this.vn.a9,$);this.Y1.fill(0)};f.WY.prototype.yf=function(h,e){return new eu(Math.floor(Math.max(0,Math.min(e.d-1,h.x))),Math.floor(Math.max(0,Math.min(e.v-1,h.y))))};
f.WY.prototype.clear=function(h){this.KF=[];this.b=[];this.sA=[];this.vn=null;this.qH=null;this.Y1=null;
if(h!=null){h.K.sV=null;h.K.wf=[];h.IL=!0}this.ZL=[]};f.WY.prototype.AT=function(h,e,$,Z){var c=this.b,q=c.length;
if(q==0)return;var E=this.ap(this.yf(this.X_,h),h),P=this.QA(h,E);for(var G=0;G<P.length;G++){var a=P[G],j=new eu(a%h.d,Math.floor(a/h.d));
if(this.Y1[a]>30&&eu.nj(j,c[q-1])>20){this.o7(h,j);return}this.Y1[a]++}if(this.Nf==1&&Z.xo)this.o7(h,E);
this.VS(h)};f.WY.prototype.VS=function(h){var e=this.b;if(e.length!=0){var $=this.ap(this.yf(this.X_,h),h),Z=this.QA(h,$);
Z.reverse();var c=f.WY.Wu(h,Z),q=this.KF.concat(c),E=h.K.sV={H:q,Z:["M"]};for(var G=2;G<q.length;G+=2)E.Z.push("L")}h.K.wf=[];
for(var G=0;G<e.length;G++)h.K.wf.push(e[G].x+.5,e[G].y+.5);h.IL=!0};f.WY.prototype.IB=function(h,e,$,Z){};
f.WY.prototype.WI=function(h,e,$,Z){if(this.b.length==0)return;if(Z.q(p.PA)||Z.q(p.iC)){this.b.pop();
this.KF=this.KF.slice(0,this.sA[this.b.length]);this.sA.pop();if(this.b.length==0)this.clear(h);else this.AS(h);
this.VS(h)}if(Z.q(p.Gr)){var c=this.yf(this.X_,h);this.o7(h,c);this.finish(h,$,Z);this.clear(h)}if(Z.q(p.fp)){this.clear(h)}};
f.WY.prototype.getSelection=function(h,e,$,Z){return f.LV.UL(this.KF)};f.WY.prototype.QA=function(h,e){var $=this.b[this.b.length-1],Z=$.y*h.d+$.x,c=e.y*h.d+e.x;
if(this.Nf==1)return[c,Z];var q=[c];while(c!=Z){c=this.qH.P9[c];q.push(c);if(q.length>5e3){console.log(q);
throw"e"}}return q};f.WY.Wu=function(h,e){var $=[],Z=h.d;for(var G=0;G<e.length;G++){var c=e[G];$.push(c%Z+.5,Math.floor(c/Z)+.5)}return $};
f.WY.prototype.ap=function(h,e){var $=e.d,Z=e.v,c=h.clone(),E=3;s.h_.$W(this.qH,h.y*$+h.x);var q=this.qH.iH[h.y*$+h.x];
for(var P=-E+1;P<E;P++)for(var a=-E+1;a<E;a++){var j=h.x+a,L=h.y+P;if(j<0||j>=$||L<0||L>=Z)continue;
s.h_.$W(this.qH,L*$+j);if(this.qH.iH[L*$+j]<q)c.su(j,L)}return c};f.q9=function(){f.ar.call(this,[10,36],f.acl,"tools/ruler");
this.v9=null;this.qG=null;this.qz=null;this.aC=null};f.q9.prototype=new f.ar;f.q9.prototype.s4=function(h){return h.xo};
f.q9.prototype.disable=function(h,e,$,Z){this.v9=this.qG=null;if(h)this.tP(h)};f.q9.prototype.yj=function(h,e,$,Z,c){var q=h.z.S/D.M(),E=h.z.QX(c.x,c.y);
E.x=Math.round(E.x);E.y=Math.round(E.y);var P=this.v9;if(P&&eu.nj(E,P[0])*q<6)this.qG=[0];else if(P&&eu.nj(E,P[1])*q<6)this.qG=[1];
else if(P&&f.q9.a5k(P[0],P[1],E)*q<6&&Math.min(P[0].x,P[1].x)-5<=E.x&&E.x<=Math.max(P[0].x,P[1].x)+5&&Math.min(P[0].y,P[1].y)-5<=E.y&&E.y<=Math.max(P[0].y,P[1].y)+5){this.qG=[0,1];
this.aC=[P[0].clone(),P[1].clone()];this.qz=E}else{this.v9=[E.clone(),E.clone()];this.qG=[1]}};f.q9.prototype.oX=function(h,e,$,Z,c){if(this.qG==null)return;
var q=this.v9,E=this.qG,P=h.z.QX(c.x,c.y);P.x=Math.round(P.x);P.y=Math.round(P.y);if(E.length==2){var a=P.x-this.qz.x,j=P.y-this.qz.y;
q[0]=this.aC[0].clone();q[0].offset(a,j);q[1]=this.aC[1].clone();q[1].offset(a,j)}else{q[E[0]].su(P.x,P.y);
if(Z.q(p.ai)){q[E[0]]=f.mT.W1(q[1-E[0]],q[E[0]])}}this.tP(h);this.Gu(e,D.E.P,{e:D.U.UR,F:this.id,aj9:q[0],rO:q[1],Ay:h.Ay,amG:h.d})};
f.q9.prototype.f0=function(h,e,$,Z,c){this.qG=null};f.q9.prototype.Gu=function(h,e,$){var Z=new B(e,!0);
Z.data=$;h.f(Z)};f.q9.prototype.tP=function(h){var e=this.v9;if(e==null){h.K.sV=null;h.K.wf=[]}else{var $=[e[0].x,e[0].y,e[1].x,e[1].y];
h.K.sV={Z:["M","L"],H:$};h.K.wf=$}h.IL=!0};f.q9.a5k=function(h,e,$){var Z=e.x-h.x,c=e.y-h.y,q=Math.abs(c*$.x-Z*$.y+e.x*h.y-e.y*h.x),E=Math.sqrt(Z*Z+c*c);
return q/E};f.yn=function(){f.rz.call(this,[10,19],f.Fh,"tools/sharpen");this._a="copy"};f.yn.prototype=new f.rz;
f.yn.prototype.yj=function(h,e,$,Z,c){var q=this.KY.pdetail?ec.Dj:ec.Fh;if(Z.q(p.ys))q=ec.Uq;this.x3(h,$,Z,c,this.KY.strn,q);
if(this.Gg==null)return;this.sI(h)};f.yn.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);if(this.Iy)this.s2(h,$,c);
if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.JU=function(){f.rz.call(this,[10,24],f.G3,"tools/shbrush");
this._a="draw";this.KY.opacity=.5};f.JU.prototype=new f.rz;f.JU.prototype.yj=function(h,e,$,Z,c){this.x3(h,$,Z,c,1);
if(this.Gg==null)return;this.hB(h);this.sI(h)};f.JU.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);
if(this.Iy)this.s2(h,$,c);if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.JU.prototype.f0=function(h,e,$,Z,c){if(this.Gg==null)return;
this.JY(h,"sheal",this.Gg.os(),this.Gg._A(),this.Gg.bJ(),null);this.s(h,this.Gg.bJ());f.rz.prototype.f0.call(this,h,e,$,Z,c)};
f.EY=function(){f.rz.call(this,[10,20],f.Eh,"tools/smudge");this._a="copy"};f.EY.prototype=new f.rz;
f.EY.prototype.yj=function(h,e,$,Z,c){this.x3(h,$,Z,c,this.KY.strn,ec.Eh);if(this.Gg==null)return;this.sI(h)};
f.EY.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);if(this.Iy)this.s2(h,$,c);if(this.Gg==null)return;
if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.Ie=function(){f.rz.call(this,[10,23],f.ME,"tools/sponge");
this._a="sponge"};f.Ie.prototype=new f.rz;f.Ie.prototype.yj=function(h,e,$,Z,c){this.x3(h,$,Z,c,this.KY.flow);
if(this.Gg==null)return;this.sI(h)};f.Ie.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);if(this.Iy)this.s2(h,$,c);
if(this.Gg==null)return;if(!c.xo)return;this.eI(h,$,Z,c);this.sI(h)};f.LZ=function(){f.ar.call(this,[10,17],f.dc,"tools/zoom");
this.vy=!1;this.L1=!0;this.w3=0;this.rm=null;this.oo=null;this.Se=0;this.Kv=null;this.XX=0;this.e9=new dW([{name:[8,0],lA:"Ctrl + +"},{name:[8,1],lA:"Ctrl + -",lv:!0},{name:[20,3],lA:"Ctrl + 0"},{name:["VAR0: 100%",[20,2]],lA:"Ctrl + 1"}],[{c:D.E.A,F:f.dc,g:{e:"zoom",L1:!0}},{c:D.E.A,F:f.dc,g:{e:"zoom",L1:!1}},{c:D.E.A,F:f.dc,g:{e:"adapt",G:"fitscr"}},{c:D.E.A,F:f.dc,g:{e:"adapt",G:"pixel"}}])};
f.LZ.prototype=new f.ar;f.LZ.prototype.d1=function(h,e,$,Z,c){var q=this.e9;q.B();q.parent=e;q.update(h,$);
var E=new B(D.E.P,!0);E.data={e:D.U.sH,yv:q,x:c.aS+2,y:c.gh+1};e.f(E)};f.LZ.prototype.enable=function(h,e,$,Z){this.HM(e,Z);
if(h&&Date.now()-this.w3<300)this.a1({e:"adapt",G:"pixel"},e,h,Z,$);this.w3=Date.now()};f.LZ.prototype.yj=function(h,e,$,Z,c){this.oo=new eu(c.x,c.y);
this.Se=h.z.S;this.Kv=h.z.i.clone()};f.LZ.prototype.oX=function(h,e,$,Z,c){if(this.oo==null)return;var q=Math.exp(Math.log(this.Se)+(c.x-this.oo.x)/64);
q=Math.max(.02,Math.min(32,q));h.z.S=this.Se;h.z.i=this.Kv.clone();this.a1({e:"zoom",S:q,Wo:this.oo},e,h,Z,$)};
f.LZ.prototype.f0=function(h,e,$,Z,c){if(eu.nj(this.oo,c)<4){var q=this.tw(Z);this.a1({e:"zoom",L1:q,Wo:c},e,h,Z,$)}this.oo=null};
f.LZ.Ak=[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];
f.LZ.O3=function(h,e,$,Z){var c=1;while(h*c*1/2>$||e*c*1/2>Z)c*=1/2;if(h*c*2/3>$||e*c*2/3>Z)c*=1/2;else if(h*c>$||e*c>Z)c*=2/3;
return c};f.LZ.fZ=function(h,e){var $=f.LZ.Z3(h);if(e&&$==0)return h;if(!e&&$==f.LZ.Ak.length-1)return h;
return f.LZ.Ak[e?$-1:$+1]};f.LZ.Z3=function(h){var e=0;while(f.LZ.Ak[e]>h)e++;return e};f.LZ.y0=function(h,e,$,Z){var c=h.q4;
if(Z==0||Z==null){Z=f.LZ.fZ(h.S,$);if(Z==h.S)return}var q=h.QX(e.x,e.y);if(c.d*Z<=h.qM.d&&c.v*Z<=h.qM.v){h.i.su(0,0);
h.S=Z}else{var E=h.EO(),P=h.S/Z;E.translate(-q.x,-q.y);E.scale(P,P);E.translate(q.x,q.y);h.xz(E)}};f.LZ.prototype.a1=function(h,e,$,Z,c){if(h.e=="pzoom"){if(typeof h.G=="string")return;
h={e:"zoom",S:h.G/100}}var q=0,E=!1,P=null;if(h.e=="adapt"){var a=0;if(h.G=="pixel")a=1;if(h.G=="fitscr"){var a=0,j=$.z.qM.d,L=$.z.qM.v;
a=Math.min((j-14)/$.d,(L-14)/$.v)}P=new eu(Math.round($.z.qM.d/2),Math.round($.z.qM.v/2));q=a;f.LZ.y0($.z,P,E,q);
$.qk=!0}if(h.e.startsWith("multi")){function H(n){var u=n[0].x-n[1].x,K=n[0].y-n[1].y;return Math.sqrt(u*u+K*K)}function _(n){return new eu((n[0].x+n[1].x)/2,(n[0].y+n[1].y)/2)}var J=h.Hn,S=_(J);
if(h.e=="multidown"){this.rm=[J,$.z.S,$.z.QX(S.x,S.y)]}else{q=this.rm[1]*H(J)/H(this.rm[0]);if(q>=1)q=Math.min(32,Math.round(q));
else{var N=0,Y=1e9,U=f.LZ.Ak;for(var G=0;G<U.length;G++){var g=Math.abs(1-q/U[G]);if(g<Y){Y=g;N=G}}q=U[N]}if(q!=$.z.S)f.LZ.y0($.z,S,E,q);
var M=this.rm[2],C=$.z.ab(M.x,M.y),y=$.z.i;y.x=Math.round(y.x+S.x-C.x);y.y=Math.round(y.y+S.y-C.y);$.qk=!0}}if(h.e=="scroll"){P=h.Wo;
this.XX+=h.SL.y;var i=14;if(this.XX<-i){E=!0;this.XX=Math.max(this.XX+i,-(i-1))}else if(this.XX>i){E=!1;
this.XX=Math.min(this.XX-i,i-1)}else return;f.LZ.y0($.z,P,E,q);$.qk=!0}if(h.e=="zoom"){P=h.Wo?h.Wo:new eu(Math.round($.z.qM.d/2),Math.round($.z.qM.v/2));
if(h.S!=null)q=h.S;else E=h.L1;f.LZ.y0($.z,P,E,q);$.qk=!0}if(h.e=="mskView"){var Q=$.t[$.C[0]],m=Q.jw==3?Q.wV($).r:Q.kV();
if(h.G==0){$.z.RI=[1,1,1];m.rV=!1}if(h.G==1){$.z.RI=[1,1,1];m.rV=!0}if(h.G==2){$.z.RI=[0,0,0];m.rV=!0}for(var G=0;
G<$.Qe.length;G++)$.Qe[G].rV=!1;$.vw=[];$.IL=!0}};f.LZ.prototype.WI=function(h,e,$,Z){if(this.vy!=Z.q(p.ys)){this.vy=Z.q(p.ys);
var c={e:D.U.UR,F:this.id,vy:this.vy},q=new B(D.E.P,!0);q.data=c;e.f(q);this.HM(e,Z)}};f.LZ.prototype.HM=function(h,e){var $=new B(D.E.P,!0),Z=this.tw(e);
$.data={e:D.U.Qd,Hz:Z?"zoom-in":"zoom-out"};h.f($)};f.LZ.prototype.cd=function(h,e,$,Z){this.L1=h.L1;
this.HM(e,Z)};f.LZ.prototype.tw=function(h){var e=this.L1;if(h.q(p.P2)&&h.q(p.tm))e=!0;if(this.vy)e=!e;
return e};f.LZ.ot=function(h,e){if(h.q(p.MY)||h.q(p.aao)){e.F=f.dc;e.data={e:"zoom",L1:!0}}if(h.q(p.Lj)){e.F=f.dc;
e.data={e:"zoom",L1:!1}}if(h.q(p.ik)){e.F=f.dc;e.data={e:"adapt",G:"fitscr"}}if(h.q(p.s7)){e.F=f.dc;
e.data={e:"adapt",G:"pixel"}}};f.XT=function(h,e,$){f.ar.call(this,h,e,$);this.j_=null;this.D0=null;
this.a3=null;this.aeh=0};f.XT.prototype=new f.ar;f.XT.prototype.enable=function(h,e,$,Z,c){this.D0=$;
var q=new B(D.E.P,!0);q.data={e:D.U.Qd,Hz:"default"};e.f(q)};f.XT.prototype.d1=function(h,e,$,Z,c){if(h.U9()[0].length==0)return;
var q=new B(D.E.P,!0);q.data={e:D.U.UR,F:this.id,BQ:c,im:h,pq:$};e.f(q)};f.XT.prototype.Bz=function(h,e){var $=new B(D.E.P,!0);
$.data={e:D.U.Ov,Av:iM.GN};if(!e.y7)h.f($);$.data={e:D.U.Ov,Av:iM.ly};if(!e.cz.DZ)h.f($)};f.XT.prototype.yY=function(h,e,$,Z){if($.$P!=this.id)return;
if(h.C.length==0)return;var c=h.t[h.C[0]],q=c.add.vmsk,E=c.add.vstk,P=f.XT.d4(h,h.C[0]);this.j_=h;this.a3=e;
if(c.SV()&&q!=null&&(JSON.stringify(E)!=JSON.stringify($.eY)||JSON.stringify(P)!=JSON.stringify($.gj))){this.aeh=Date.now();
var a=new B(D.E.P,!0);a.data={e:D.U.Ov,Av:iM.EL,G:P};e.f(a);a.data={e:D.U.Ov,Av:iM.H9,G:E};e.f(a)}};
f.XT.prototype.if=function(h,e){if(this.j_==null)return;if(e==iM.uG||e==iM.EL||e==iM.H9){if(Date.now()-this.aeh<50)return;
var $=e==iM.EL,Z=this.j_,c=$?h.gj:h.eY,q=[];for(var G=0;G<Z.C.length;G++){var E=Z.C[G],P=Z.t[E];if(!P.SV()||P.add.vmsk==null)continue;
q.push(E)}var a=new B(D.E.A,!0);a.F=f.S$;a.data={e:o.Rh,DL:q,gU:$,G:c};if(q.length!=0)this.a3.f(a)}};
f.XT.prototype.a4W=function(h){if(typeof h=="number"){var e=new B(D.E.Kz,!0);e.data=f.vA.GC(0);e.data.TJ.Usng.v.Type.v.Clr.v=s.Y.lp({h:h>>>16&255,l:h>>>8&255,O:h>>>0&255});
this.a3.f(e)}};f.XT.prototype.a1=function(h,e,$,Z,c){this.a3=e;if(h.e=="newfill"){if(h.wx==0){var q=new B(D.E.P,!0);
q.data={e:D.U.tr,yq:"colorpicker",Nr:c.oV,Nb:this.a4W.bind(this)};e.f(q)}}else if(h.e=="pathedit"){var E=h.oD,P="",a=$.DZ.slice(0),j=$.fV.slice(0),L=$.DZ.slice(0),H=$.fV.slice(0);
if(E=="rnm"){var _=-1-h.NS,J=a[_],S=c9.Bd(h.name,J.add);if(_!=0)L[_]=S;else{H=[L.length];L.push(S);L[0]=c9.Bd("Work Path")}P="Rename"}else if(E=="new"){L.push(c9.Bd("Path "+a.length));
H=[L.length-1];P="New"}else if(E=="del"){if(H.length==0)return;H.sort(function(n,z){return n-z});if(H[0]==0){L[0]=c9.Bd(a[0].name);
H=H.slice(1)}var N=0;while(H.length!=0){L.splice(H[0]-N,1);H=H.slice(1);N++}P="Delete"}else if(E=="fromsel"){var Y=L[0]=c9.Bd("Work Path");
H=[0];if($.N==null)return;var U=$.N.channel.slice(0);for(var G=0;G<U.length;G++)U[G]=U[G]>128?2:1;var g=$.N.rect.clone();
g.P5(1,1);var M=s.m(g.X());s.T7(U,$.N.rect,M,g);var C=gx.YD(M,g.d,g.v,Math.round(g.X()*5e-4)),y=gx.U9(C),i=new i7(1,0,0,1,-1+$.N.rect.x,-1+$.N.rect.y);
for(var G=0;G<y.length;G++)s.a.J(y[G].path.H,i,y[G].path.H);for(var G=0;G<y.length;G++){var Q=y[G];if(Q.color==1&&Q.parent==-1)continue;
var m=s.a.b0(y[G].path,!1);Y.add.vmsk.b=Y.add.vmsk.b.concat(m.slice(2))}Y.add.vogk=o.__(Y.add.vmsk.b);
P="Selection to"}var n=new fW(P+" Path",this);n.data={LE:a,AU:j,am0:L,vK:H};if(E=="fromsel"){n.data.HC=$.N;
n.data.A9=null}$.eG(n);this.t4(n.data,$)}else{var u=$.U9(h.e=="append"),y=u[0],K=u[1],Y=y[K[0]],F=Y.add.vmsk,b=Y.add.vogk,d=F.clone(),W=F.clone(),A=JSON.stringify(b);
if(h.e=="remove"){if(W.C.length==0)return;var N=0;for(var G=0;G<W.C.length;G++){b.splice(W.C[G]+N,1);
N--}W.b=s.W.a0F(W.b,W.C);W.C=[];W.pc=[]}if(h.e=="append"){f.XT.NI(h.a7e,W,b)}this.Fg($,Y.NS,W,b);this.$h($,h.cJ,Y.NS,d,W.clone(),null,A,JSON.stringify(b))}};
f.XT.fN=function(h,e){var $=s.W.ad$(h.b,h.C),Z=[];for(var G=0;G<h.C.length;G++)Z.push(JSON.parse(JSON.stringify(e[h.C[G]])));
return[$,Z]};f.XT.NI=function(h,e,$){var Z=s.W.H4(e.b),c=s.W.H4(h[0]);e.b=e.b.concat(h[0].slice(2));
e.C=[];for(var G=0;G<c;G++)e.C.push(Z+G);for(var G=0;G<c;G++)$.push(JSON.parse(JSON.stringify(h[1][G])))};
f.XT.prototype.Jr=function(h,e){if(e==null)return!1;var $=e.U9(),Z=$[0],c=$[1];if(c.length==0)return!1;
var q=Z[c[0]],E=q.add.vmsk;if(E&&E.C.length+E.pc.length!=0)return[p.PA,p.iC].indexOf(h)!=-1};f.XT.prototype.WI=function(h,e,$,Z){if(h==null)return;
var c=h.U9(),q=c[0],E=c[1];if(E.length==0)return;var P=q[E[0]],a=P.add.vmsk;if(Z.q(p.fp)||Z.q(p.Gr)){a.pc=[];
h.IL=!0}if(a.C.length!=0){var j=Z.cy();if(j.x!=0||j.y!=0){var L=a.clone(),H=a.clone(),_=new i7(1,0,0,1,j.x,j.y),J=P.add.vogk,S=JSON.stringify(J);
s.W.wD(H.b,_,H.C);s.as.J(J,s.I.dW(_),H.C);this.Fg(h,P.NS,H,J);this.$h(h,"Move Paths",P.NS,L,H.clone(),!0,S,JSON.stringify(J))}if(Z.q(p.PA)||Z.q(p.iC))this.a1({e:"remove",cJ:"Delete Paths"},e,h,Z,$)}};
f.XT.prototype.$h=function(h,e,$,Z,c,q,E,P){var a=new fW(e,this);a.data={vq:$,uQ:Z,S_:c,a6D:q,acQ:E,hu:P};
h.eG(a)};f.XT.prototype.t4=function(h,e){if(h.vq!=null)this.Fg(e,h.vq,h.S_.clone(),JSON.parse(h.hu));
else{e.DZ=h.am0.slice(0);e.fV=h.vK.slice(0);e.IL=e.uu=!0}if(h.HC||h.A9){e.N=h.A9;e.al=!0}};f.XT.prototype.yc=function(h,e){if(h.vq!=null)this.Fg(e,h.vq,h.uQ.clone(),JSON.parse(h.acQ));
else{e.DZ=h.LE.slice(0);e.fV=h.AU.slice(0);e.IL=e.uu=!0}if(h.HC||h.A9){e.N=h.HC;e.al=!0}};f.XT.prototype.Fg=function(h,e,$,Z){var c=e<0?h.DZ[-1-e]:e<1e6?h.t[e]:h.t[e-1e6].add.TySh;
c.add.vmsk=$;c.add.vogk=Z;if(1e6<=e){gK._Z(c);var q=h.t[e-1e6],E=c,P=this.D0,a=new br(E.Kx,P.R0),j=cg.Fx(a,E);
q.rect=j._;q.buffer=j.Hl;q.s();h.s()}else if(0<=e){$.w4=!0;c.ZB(h);h.s()}h.IL=h.uu=!0};f.XT.d4=function(h,e){var $=h.t[e],Z=$.add.vstk,c=null;
if(Z&&!Z.fillEnabled.v)c={cp:0};else if($.add.SoCo)c={cp:1,mQ:$.add.SoCo};else if($.add.GdFl)c={cp:2,mQ:$.add.GdFl};
else if($.add.PtFl)c={cp:3,mQ:$.add.PtFl};return c};f.XT.Sf=function(h,e){var $=h.add.vmsk,Z=h.add.vstk,c=e.cp;
if(Z)Z.fillEnabled.v=c!=0;if(c>0){var q=["SoCo","GdFl","PtFl"][c-1];for(var G=0;G<3;G++)delete h.add[["SoCo","GdFl","PtFl"][G]];
h.add[q]=e.mQ}};f.vA=function(h,e,$,Z){f.XT.call(this,h,e,$);this.KY={tmode:1,shape:bS.X3(),pshape:0,binop:0,crad:0,irad:40,length:4,sides:5,width:5,tolr:5,tsiz:300,cstr:{A2:0}};
this.a2p=Z;this.dO=null;this.Kc=null;this.y6=null};f.vA.prototype=new f.XT;f.vA.prototype.s4=function(h){return h.xo&&this.id!=f.zl};
f.vA.prototype.enable=function(h,e,$,Z,c){this.D0=$;var q=new B(D.E.P,!0);q.data={e:D.U.Qd,Hz:"crosshair"};
e.f(q)};f.vA.prototype.Or=function(h,e,$,Z){};f.vA.prototype.yj=function(h,e,$,Z,c){var q=this.KY.tmode;
if(q!=2)this.Bz(e,$);if(q==2&&!h.Jh())return;var E=h.z.QX(c.x,c.y);E=f.fQ.cX(h,E,$);this.y6=[E.x,E.y];
this.dO=E;this.Kc=new eu(0,0)};f.vA.prototype.Zc=function(h,e,$){var Z=[this.dO.clone(),e.clone()];if(this.a2p)Z=f.vA.Px(Z[0],Z[1],$,!0,this.KY.cstr);
if(h)h.z.og=new O(Z[0].x,Z[0].y,Z[1].x-Z[0].x,Z[1].y-Z[0].y);return this.Or(Z[0],Z[1],$.q(p.ai),this.y6)};
f.vA.prototype.ON=function(h,e,$){var Z=h.z.QX(e.x,e.y),c=this.KY.cstr;if(c.A2==2){var q=new O(Z.x-c.x,Z.y-c.y,c.x,c.y),E=f.fQ.OM(h,q,$);
Z.x+=E[0];Z.y+=E[1];f.fQ.CY(h,q,E)}else Z=f.fQ.cX(h,Z,$);return Z};f.vA.prototype.oX=function(h,e,$,Z,c){if(this.dO==null)return;
var q=this.y6,E=q.length,P=c?this.ON(h,c,$):new eu(q[E-2],q[E-1]);if(Z.q(p.P2))this.dO=P.MR(this.Kc);
else this.Kc=P.MR(this.dO);q.push(P.x,P.y);if(this.KY.shape==null)this.KY.shape=$.bY[0];var a=this.Zc(h,P,Z)[0],j=s.a.$o(a);
h.K.sV=j;if(this.id!=f.zl&&this.id!=f.AL&&this.id!=f.hx)f.ar.Ia(c.x+10,c.y-10,h.z.og,h,$);h.IL=!0};f.vA.prototype.af2=function(h,e,$,Z){var c=h[4].clone();
if(Z){c.x-=e/2;c.y-=$/2}var q=this.Or(c,new eu(c.x+e,c.y+$),!1,this.y6);this.Yh(h[0],h[1],h[2],q)};f.vA.prototype.Yh=function(h,e,$,Z){var c=new B(D.E.Kz,!0);
c.data=f.vA.X4(Z[1],$);e.f(c);if(Z[1].v.classID=="customShape"&&Z[1].v.Nm.v.startsWith("--")){var q=h.U9(),E=q[0],P=q[1],a=E[P.pop()],j=a.add.vmsk,L=a.add.vogk,H=j.clone();
H.b=Z[0];this.Fg(h,a.NS,H,L)}};f.vA.prototype.f0=function(h,e,$,Z,c){if(this.dO==null)return;var q=this.ON(h,c,$),E=this.KY.binop,P=this.KY.tmode,a=this.y6,j=a.length;
if(this.id==f.zl&&j<=4){}else if(j<=4){q.x=Math.round(q.x);q.y=Math.round(q.y);var L=new B(D.E.P);L.data={e:D.U.tr,yq:"createshape",anU:this.af2.bind(this),a0h:this.name,ads:[h,e,$,Z,q]};
e.f(L)}else if(j!=2){var H=this.Zc(h,q,Z),_=H[0];if(P==0&&_.length>2){_[2].aN=[1,2,3,0][E];var J=h.U9(!0),S=J[0],N=J[1],Y=S[N.pop()],U=Y.add.vmsk,g=Y.add.vogk,M=U.clone(),C=U.clone(),y=JSON.stringify(g);
C.b=C.b.concat(_.slice(2));C.C=[s.W.H4(C.b)-1];var i=s.as.oy(H[1]);g.push(i?i:s.as.qm());this.Fg(h,Y.NS,C,g);
this.$h(h,this.name,Y.NS,M,C,null,y,JSON.stringify(g))}else if(P==1){this.Yh(h,e,$,H)}else if(P==2){var C=new o.MM;
C.b=C.b.concat(_.slice(2));var Q=C.kV(),m=s.m(Q.rect.X()*4);s.Ut(m,($.oV&255)<<16|($.oV>>8&255)<<8|($.oV>>16&255)<<0);
s.Jk(Q.channel,m,3);var n=new B(D.E.A,!0);n.F=f.XP;n.data={e:"draw",Fp:{buffer:m,rect:Q.rect.clone()},cJ:this.name};
e.f(n)}}this.dO=null;h.K.sV=null;h.K.yu=null;h.K.Yr=[];h.z.og=null;h.IL=!0};f.vA.prototype.cd=function(h,e,$,Z,c){for(var $ in h)this.KY[$]=h[$]};
f.vA.Px=function(h,e,$,Z,c){var q=h.x,E=h.y,P=e.x,a=e.y;if(c&&c.A2==2){if(Z){P=Math.round(P);a=Math.round(a)}q=P-c.x;
E=a-c.y}else{var j=0;if(c&&c.A2==1)j=c.y/c.x;else if($&&$.q(p.ai))j=1;if(j!=0){if(Z){if(q<P)q=Math.floor(q);
else q=Math.ceil(q);if(E<a)E=Math.floor(E);else E=Math.ceil(E)}var L=Math.abs(P-q),H=Math.abs(a-E),_=L;
if(H/L<j)_*=H/L/j;P=P>q?q+_:q-_;a=a>E?E+_*j:E-_*j}if($&&$.q(p.ys)){q-=P-q;E-=a-E}}var h=new eu(q,E),e=new eu(P,a);
if(Z)f.vA.ajF(h,e);return[h,e]};f.vA.ajF=function(h,e){if(h.x>e.x){var $=h.x;h.x=e.x;e.x=$}if(h.y>e.y){var $=h.y;
h.y=e.y;e.y=$}h.x=Math.floor(h.x);h.y=Math.floor(h.y);e.x=Math.ceil(e.x);e.y=Math.ceil(e.y)};f.vA.a1w=function(){return{classID:"Mk",null:{t:"obj ",v:[{t:"Clss",v:{classID:"contentLayer"}}]},Usng:{t:"Objc",v:{classID:"contentLayer",Type:{t:"Objc",v:{}}}}}};
f.vA.GC=function(h,e){var $=f.vA.a1w();if(e==null)e=JSON.parse(JSON.stringify(c3.nf[h]));bn.Od.Ww(e,$.Usng.v.Type.v,h);
return{Lw:"make",TJ:$}};f.vA.X4=function(h,e){var $=e.gj,Z=JSON.parse(JSON.stringify(e.eY));if($.cp==0)Z.fillEnabled.v=!1;
var c=f.vA.GC(Math.max(0,$.cp-1),$.mQ);c.TJ.Usng.v.Shp=h;c.TJ.Usng.v.strokeStyle={t:"Objc",v:Z};return c};
f.fr=function(){f.XT.call(this,[10,29],f.iE,"tools/pen");this.t$=null;this.wb=null;this.XY=1;this.abN=0;
this.dp=null;this.kp=!1;this.Uw=!1;this.Im=!1};f.fr.prototype=new f.XT;f.fr.prototype.s4=function(h){return this.t$!=null};
f.fr.prototype.WI=function(h,e,$,Z){f.XT.prototype.WI.call(this,h,e,$,Z);if(!Z.q(p.ys))this.Im=!1};f.fr.prototype.yj=function(h,e,$,Z,c){this.Bz(e,$);
var q=h.z.QX(c.x,c.y),J,S;q.x=Math.round(q.x);q.y=Math.round(q.y);var E=f.fQ.cX(h,q,$),P=h.U9(this.XY==0),a=P[0],j=P[1],L=a[j.pop()],H=L?L.add.vmsk:null,_=4*D.M()/h.z.S;
if(H)J=s.W.mI(H.b,q,!0,_);var N=Z.q(p.ys);if(this.XY==1&&(H==null||H.pc.length==0&&J.NS==-1)){var Y=new B(D.E.Kz,!0),U=s.as.Ho("customShape",[0,0,1,1],null,null,null,"--");
Y.data=f.vA.X4(U,$);e.f(Y);P=h.U9(!0);a=P[0];j=P[1];L=a[j.pop()];H=L.add.vmsk;H.b=H.b.slice(0,2)}var g=L.add.vogk;
this.t$=H.clone();this.wb=JSON.stringify(g);var M=H.b,C=s.W.H4(M);S=s.W.b6(H.b,new O(q.x-_,q.y-_,_*2,_*2),H.pc);
J=s.W.mI(H.b,q,!0,_);var y=S[0].length+S[1].length+S[2].length;if(J.NS!=-1&&S[0].length==0){var i=s.W.jb(M,J.NS);
while(M[i].length<=J.s3){J.s3-=M[i].length;i+=M[i].length+1}M[i].length++;M.splice(i+2+J.s3,0,{type:4,LD:E.clone(),D:E.clone(),EH:E.clone()});
H.pc=[i+2+J.s3]}else if(y!=0&&N){var Q=0;for(var G=0;G<3;G++)if(S[G].length!=0){Q=S[G][0];this.Uw=G==1;
break}if(S[0].length!=0){var m=H.b.length-1,n=H.b[Q];n.EH=n.D.clone();var u=n.type>=3?3:0;if(Q!=m){n.LD=n.D.clone();
n.type=u+1;this.Im=!0}else n.type=u+2}H.pc=[Q]}else if(S[0].length==1&&M[S[0][0]-1]&&M[S[0][0]-1].aN==null){var Q=S[0][0],i=s.W.LC(M,Q);
i=s.W.jb(M,i);var K=i+M[i].length;if(Q!=K){M[i].length--;M.splice(Q,1);K--}H.pc=[K]}else{var F=0;if(H.pc.length!=1){H.C=[C];
M.push({type:3,length:1,aN:[1,2,3,0][this.abN],pg:0,Bs:0,W7:0});F=M.length;g.push(s.as.qm())}else{var b=H.pc[0],d=s.W.LC(M,b),i=s.W.jb(M,d);
b=i+M[i].length;if(eu.nj(q,M[i+1].D)<_){M[i].type=0;H.pc=[i+1];this.dp=E;this.kp=!0;this.Fg(h,L.NS,H,g);
h.IL=!0;return}M[i].length++;F=b+1;if(b==i+1&&M[i].length!=2)F=i+1}if(Z.q(p.ai)&&M[F-1]&&M[F-1].D)E=f.mT.W1(M[F-1].D,E);
M.splice(F,0,{type:4,LD:E.clone(),D:E.clone(),EH:E.clone()});H.pc=[F];this.dp=E}this.Fg(h,L.NS,H,g);
h.IL=!0};f.fr.prototype.oX=function(h,e,$,Z,c){if(this.t$==null)return;var q=h.z.QX(c.x,c.y),E=f.fQ.cX(h,q,$),P=h.U9(this.XY==0),a=P[0],j=P[1],L=a[j.pop()],H=L.add.vmsk,_=H.b,J=_[H.pc[0]];
if(Z.q(p.P2)){if(Z.q(p.ai))E=f.mT.W1(this.dp,E);var S=J.D.MR(J.EH),N=J.LD.MR(J.D);J.EH=E;J.D=E.add(S);
J.LD=J.D.add(N)}else{if(Z.q(p.ai))E=f.mT.W1(J.D,E);if(this.Uw){var Y=J.LD;J.LD=J.EH;J.EH=Y}if(this.kp){var U=eu.nj(J.D,E),g=U==0?0:eu.nj(J.D,J.EH)/U;
J.EH.x=J.D.x+g*(E.x-J.D.x);J.EH.y=J.D.y+g*(E.y-J.D.y)}else J.EH=E;if(Z.q(p.ys)&&!this.Im)J.type=5;else{J.type=4;
J.LD=J.D.add(J.D.MR(E))}this.dp=E;if(this.Uw){var Y=J.LD;J.LD=J.EH;J.EH=Y}}this.Fg(h,L.NS,H,L.add.vogk);
h.IL=!0};f.fr.prototype.f0=function(h,e,$,Z,c){if(this.t$==null)return;var q=h.U9(this.XY==0),E=q[0],P=q[1],a=E[P.pop()],j=a.add.vmsk,L=a.add.vogk;
if(this.kp){j.pc=[];this.Fg(h,a.NS,j,a.add.vogk)}this.$h(h,this.kp?"Close Path":"Add Anchor Point",a.NS,this.t$,j.clone(),null,this.wb,JSON.stringify(L));
this.kp=!1;this.Uw=!1;this.Im=!1;this.t$=null};f.fr.prototype.cd=function(h,e,$,Z,c){this.XY=h.tmode;
this.abN=h.binop};f.WU=function(){f.vA.call(this,[10,30],f.zl,"tools/fpen",!1)};f.WU.prototype=new f.vA;
f.WU.prototype.Or=function(h,e,$,Z){return[s.W.SX(Z,this.KY.tolr),s.as.Ho("customShape",[0,0,1,1],null,null,null,"--")]};
f.f9=function(){f.XT.call(this,[10,27],f.hO,"tools/pselect");this.Y8=null;this._9=!1;this.kk=null;this.t$=null;
this._o=null;this.wb=null;this.mf=null;this.g2=null;this.WN=null;this.Fu=null};f.f9.prototype=new f.XT;
f.f9.prototype.s4=function(h){return h.xo};f.f9.prototype.yj=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y),E=h.U9(),P=E[0],a=E[1],j,L;
for(var G=0;G<a.length;G++){var H=P[a[G]],_=H.add.vmsk,J=s.W.mI(_.b,q).NS;if(J!=-1){this.kk=j=H;L=J}for(var S=0;
S<_.v9.length;S++){var N=s.W.v3(_.b,_.v9[S]);if(N==null)continue;var Y=eu.nj(N,q);if(Y<4*D.M()/h.z.S){var U=h.t[H.NS-1e6].add.TySh,g=U.Kx.Curve,M=U.J,C=g.Reversed;
g.Reversed=!1;var g=br.DJ(U.Kx.Curve);g.Reversed=C;s.a.J(g[0],M,g[0]);this.WN=[g,S,M.R*M.rU-M.O*M.Ma];
this.kk=j=H;L=0}}if(this.WN)break}if(j!=null){var _=j.add.vmsk;_.pc=[];var y=_.C.indexOf(L);if(Z.q(p.ai)){if(y==-1){_.C.push(L);
this._9=!0}else _.C.splice(y,1)}else{if(y==-1)_.C=[L];this._9=!0}this.g2=s.W.v4(_.b,_.C)}this.Y8=q;this.Fu=new g_(q);
h.uu=!0;h.IL=!0};f.f9.prototype.oX=function(h,e,$,Z,c){if(this.Y8==null)return;var q=h.z.QX(c.x,c.y);
if(this._9){q=this.Fu.MS(q,Z);var E=this.kk;if(this.t$==null){this.t$=this._o=E.add.vmsk.clone();this.wb=this.mf=JSON.stringify(E.add.vogk);
if(Z.q(p.ys)){var P=this.t$.clone(),a=JSON.parse(this.wb),j=f.XT.fN(P,a);f.XT.NI(j,P,a);this._o=P;this.mf=JSON.stringify(a)}}var P=this._o.clone(),a=JSON.parse(this.mf);
if(this.WN){var L=this.WN,H=L[0][0],_=s.a.Xi(H,q.x,q.y);P.v9[L[1]]=L[0][1][_];var J=H[_*2],S=H[_*2+1],N=(H[_*2+2]-J)*(q.y-S)-(H[_*2+3]-S)*(q.x-J);
if(L[2]<0)N=-N;P.O4=N>0}else{var Y=this.g2.clone(),U=Y.x,g=Y.y;Y.offset(q.x-this.Y8.x,q.y-this.Y8.y);
Y.x=Math.round(Y.x);Y.y=Math.round(Y.y);var M=f.fQ.OM(h,Y,$),C=new i7(1,0,0,1,Y.x-U+M[0],Y.y-g+M[1]);
s.W.wD(P.b,C,P.C);s.as.J(a,s.I.dW(C),P.C);f.fQ.CY(h,Y,M)}this.Fg(h,E.NS,P,a)}else{var y=this.Y8;h.K.sV=s.a.Kf(new O(y.x,y.y,q.x-y.x,q.y-y.y));
h.IL=!0}};f.f9.prototype.f0=function(h,e,$,Z,c){if(this.Y8==null)return;var q=h.z.QX(c.x,c.y),E=this.kk,P=E?E.add.vmsk:null;
if(this._9){var a=JSON.stringify(E.add.vogk);if(!this.Y8.dz(q))this.$h(h,"Move Paths",E.NS,this.t$,P,null,this.wb,a);
if(h!=null&&h.K.yu){h.K.yu=null;h.IL=!0}}else{if(P){var j=this.Y8,L=new O(j.x,j.y,q.x-j.x,q.y-j.y),H=s.W.a0E(P.b,L);
if(Z.q(p.ai)){for(var G=0;G<H.length;G++)if(P.C.indexOf(H[G])==-1)P.C.push(H[G])}else P.C=H}h.K.sV=null;
h.IL=!0}this.Y8=null;this.t$=null;this.WN=null;this._9=!1;this.Fu=null};f.f9.prototype.yY=function(h,e,$,Z){f.XT.prototype.yY.call(this,h,e,$,Z);
if($.$P!=this.id)return;if(h.C.length==0)return;var c=h.U9(),q=c[0],E=c[1];if(E.length==0)return;var P=q[E[0]],a=P.add.vmsk,j=P.add.vstk,L=P.add.vogk,H=new B(D.E.P,!0);
H.data={e:D.U.UR,F:this.id,Bg:"main",Qw:a?a:null,as:L};e.f(H)};f.f9.prototype.cd=function(h,e,$,Z,c){var q=h.py;
if(q.Qw){var E=$.U9(),P=E[0],a=E[1];if(a.length==0)return;var j=P[a[0]],L=j.add.vmsk.clone(),H=JSON.stringify(j.add.vogk),_=q.Qw;
this.Fg($,j.NS,_,q.as);var J=[18,5];if(L.b.length==_.b.length)J=L.C[0]==_.C[0]?"Fill Rule":"Path Order";
this.$h($,J,j.NS,L,_,null,H,JSON.stringify(q.as))}};f.Vp=function(){f.XT.call(this,[10,28],f.f6,"tools/dselect");
this.Ij=-1;this.E6=-1;this.ES=null;this.Y8=null;this.kk=null;this.t$=null;this.wb=null;this.j_=null;
this.J6=0;this.afM={psnap:!1};this.Fu=null};f.Vp.prototype=new f.XT;f.Vp.prototype.s4=function(h){return h.xo};
f.Vp.prototype.cd=function(h){this.afM=h};f.Vp.prototype.a1=function(h,e,$,Z,c){if(h.e=="crnr"){if($==null)return;
var q=$.U9(),E=q[0],P=q[1];if(P.length==0){alert("No paths selected");return}var a=E[P[0]],j=a.add.vmsk;
if(j.pc.length==0){alert("No corners selected");return}for(var G=0;G<j.pc.length;G++){var L=j.b[j.pc[G]];
if(!L.D.dz(L.EH)||!L.D.dz(L.LD)){alert("Only sharp corners can be rounded");return}}if(this.t$==null){this.t$=a.add.vmsk.clone();
this.wb=JSON.stringify(a.add.vogk);this.kk=a;this.j_=$}var H=new B(D.E.P,!0);H.data={e:D.U.tr,yq:"cornerradius",rs:5,Z8:this.a6f.bind(this)};
e.f(H)}else f.XT.prototype.a1.call(this,h,e,$,Z,c)};f.Vp.prototype.a6f=function(h){if(h=="confirm"){var e=this.j_,$=this.kk,Z=$.add.vmsk,c=$.add.vogk;
this.$h(e,[12,94,0],$.NS,this.t$,Z,null,this.wb,JSON.stringify(c));this.df();return}var Z=this.t$.clone(),c=JSON.parse(this.wb),q=Z.pc;
if(h=="cancel"){}else{var E=[];for(var G=0;G<q.length;G++){var P=q[G],a=s.W.LC(Z.b,P,!0),H=0;if(E.indexOf(a)!=-1)continue;
E.push(a);var j=s.W.jb(Z.b,a,!0),L=Z.b[j].length,_=[];for(var J=0;J<L;J++){var S=Z.pc.indexOf(j+J+1)==-1?0:h;
_.push(S);if(S!=0)H++}s.W.JN(Z.b,j,_);for(var J=0;J<q.length;J++)if(q[J]>j+L)q[J]+=H}this.Ff(Z,c);Z.pc=[]}this.Fg(this.j_,this.kk.NS,Z,c);
if(h=="cancel")this.df()};f.Vp.prototype.disable=function(h,e,$,Z){this.jQ(h)};f.Vp.prototype.yj=function(h,e,$,Z,c){this.jQ(h);
var q=h.z.QX(c.x,c.y),H,_,J;this.ES=q.clone();var E=h.U9(),P=E[0],a=E[1];if(a.length==0)return;var j=4*D.M()/h.z.S,L=new O(q.x-j,q.y-j,j*2,j*2);
for(var S=0;S<a.length;S++){H=this.kk=P[a[S]];_=H.add.vmsk;J=s.W.b6(_.b,L);if(J[0].length+J[1].length+J[2].length!=0)break}var N=[!1,!1,!1];
for(var G=0;G<3;G++){for(var Y=0;Y<J[G].length;Y++)if(_.pc.indexOf(J[G][Y])!=-1){J[G]=[J[G][Y]];N[G]=!0;
break}}if(J[0].length!=0&&(N[0]||!N[1]&&!N[2])){var U=J[0][0],g=_.pc.indexOf(U);if(Z.q(p.ai)){if(g==-1)_.pc.push(U);
else{_.pc.splice(g,1);h.IL=!0;return}}else if(g==-1)_.pc=[U];this.Ij=U;this.E6=0}else if(J[1].length!=0&&(N[1]||!N[2])){this.Ij=J[1][0];
this.E6=1}else if(J[2].length!=0){this.Ij=J[2][0];this.E6=2}else{var M=s.W.mI(_.b,q,!0,j);if(M.NS==-1)this.Y8=q;
else{_.C=[M.NS];_.pc=[]}}if(this.t$==null){this.t$=H.add.vmsk.clone();this.wb=JSON.stringify(H.add.vogk)}this.Fu=new g_(q);
h.IL=!0};f.Vp.prototype.oX=function(h,e,$,Z,c){if(h==null)return;var q=h.z.QX(c.x,c.y),E=this.kk;if(this.Ij!=-1){var P=this.t$.clone(),a=E.add.vogk,j=P.b[this.Ij];
j=[j.D,j.LD,j.EH][this.E6];if(Z.q(p.ai)){q=this.Fu.MS(q,Z);q.x+=j.x-this.ES.x;q.y+=j.y-this.ES.y}else{if(this.afM.psnap){q.x=Math.round(q.x);
q.y=Math.round(q.y)}q=f.fQ.cX(h,q,$)}if(this.E6==0){var L=new i7(1,0,0,1,q.x-j.x,q.y-j.y);s.W.wD(P.b,L,null,P.pc)}else{var H=P.b[this.Ij],_=H.LD,J=H.EH;
if(this.E6==2){_=H.EH;J=H.LD}_.su(q.x,q.y);if(H.type==1||H.type==4){var S=eu.nj(_,H.D),N=eu.nj(J,H.D);
if(N!=0){J.x=H.D.x-(_.x-H.D.x)*(N/S);J.y=H.D.y-(_.y-H.D.y)*(N/S)}}}this.Ff(P,a);this.Fg(h,E.NS,P,a)}else if(this.Y8!=null){var Y=this.Y8;
h.K.sV=s.a.Kf(new O(Y.x,Y.y,q.x-Y.x,q.y-Y.y));h.IL=!0}else{var U=h.U9(),g=U[0],M=U[1],E,P,i;if(M.length==0)return;
var C=4*D.M()/h.z.S,y=new O(q.x-C,q.y-C,C*2,C*2);for(var Q=0;Q<M.length;Q++){E=g[M[Q]];P=E.add.vmsk;
i=s.W.b6(P.b,y);if(i[0].length+i[1].length+i[2].length!=0)break}this.jQ(h);for(var G=0;G<3;G++){for(var m=0;
m<i[G].length;m++){var n=i[G][m],u=P.b[n];u=G==0?u.D:G==1?u.LD:u.EH;h.K.TZ.push(h.K.Op.length>>>1);h.K.Op.push(u.x,u.y);
h.IL=!0}}}};f.Vp.prototype.jQ=function(h){if(h&&h.K.Op.length!=0){h.K.Op=[];h.K.TZ=[];h.IL=!0}};f.Vp.prototype.f0=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y),E=this.kk,P=E?E.add.vmsk:null,a=E?E.add.vogk:null;
if(this.Ij!=-1){if(Date.now()-this.J6<300){var j=P.b[this.Ij],L=this.E6,H=null;if(L==0){var _=j.LD.dz(j.D),J=j.EH.dz(j.D);
if(!_&&!J){H="Anchor Type";if(j.type==1||j.type==4)j.type++;else{j.type--;j.EH=j.D.add(j.D.MR(j.LD))}}else{H="Add Handles";
if(_&&J){j.LD.x-=30;j.EH.x+=30}else if(_)j.LD=j.D.add(j.D.MR(j.EH));else if(J)j.EH=j.D.add(j.D.MR(j.LD))}}else{H="Remove Handle";
if(L==1)j.LD.tE(j.D);else j.EH.tE(j.D)}this.Ff(P,a);this.Fg(h,E.NS,P,a);this.$h(h,H,E.NS,this.t$,P,null,this.wb,JSON.stringify(a))}else if(!this.ES.dz(q)){this.$h(h,"Drag Anchors",E.NS,this.t$,P,null,this.wb,JSON.stringify(a))}this.J6=Date.now()}else if(this.Y8!=null){var S=this.Y8,N=new O(S.x,S.y,q.x-S.x,q.y-S.y);
if(N.d<0)N.x+=N.d;if(N.v<0)N.y+=N.v;N.d=Math.abs(N.d);N.v=Math.abs(N.v);var Y=s.W.b6(P.b,N);P.pc=Y[0].concat(Z.q(p.ai)?P.pc:[]);
h.K.sV=null}this.df();h.IL=!0};f.Vp.prototype.df=function(){this.kk=null;this.t$=null;this.Y8=null;this.Ij=this.E6=-1;
this.Fu=null};f.Vp.prototype.Ff=function(h,e){for(var G=0;G<h.pc.length;G++){var $=s.W.LC(h.b,h.pc[G]);
s.as.Kp(e,$)}};f.Vp.prototype.WI=function(h,e,$,Z){if(h==null)return;var c=h.U9(),q=c[0],E=c[1];if(E.length==0)return;
var P=q[E[0]],a=P.add.vmsk;if(a==null||a.pc.length==0)return;var j=P.add.vogk,L=JSON.stringify(j),H=Z.cy();
if(H.x!=0||H.y!=0){var _=a.clone(),J=a.clone(),S=new i7(1,0,0,1,H.x,H.y);s.W.wD(J.b,S,null,J.pc);this.Ff(J,j);
this.Fg(h,P.NS,J,j);this.$h(h,"Move Anchors",h.C[0],_,J.clone(),!0,L,JSON.stringify(j))}if(Z.q(p.PA)||Z.q(p.iC)){var _=a.clone(),J=a.clone();
J.b=s.W.a0P(J.b,J.pc,j);var N=s.W.H4(J.b);for(var G=0;G<J.C.length;G++)if(J.C[G]>=N){J.C.splice(G,1);
G--}J.pc=[];this.Fg(h,P.NS,J,j);this.$h(h,"Delete Anchors",P.NS,_,J.clone(),!0,L,JSON.stringify(j))}};
f.Vp.prototype.$h=function(h,e,$,Z,c,q,E,P){var a=h.fX();if(q&&a!=null&&a.F==this&&a.data.a6D&&a.data.vq==$&&JSON.stringify(a.data.uQ.pc)==JSON.stringify(Z.pc)){a.data.S_=c;
a.data.hu=P}else{var a=new fW(e,this);a.data={vq:$,uQ:Z,S_:c,a6D:q,acQ:E,hu:P};h.eG(a)}};f.Rect=function(){f.vA.call(this,[10,32],f.lO,"tools/rect",!0)};
f.Rect.prototype=new f.vA;f.Rect.prototype.Or=function(h,e,$){var Z=this.KY.crad,c=e.x-h.x,q=e.y-h.y;
return[s.W.d5.Rect(h.x,h.y,c,q,Z),s.as.Ho("Rctn",[h.x,h.y,e.x,e.y],[Z,Z,Z,Z])]};f.eX=function(){f.vA.call(this,[10,33],f.Jy,"tools/ellipse",!0)};
f.eX.prototype=new f.vA;f.eX.prototype.Or=function(h,e,$){var Z=e.x-h.x,c=e.y-h.y;return[s.W.d5.eX(h.x,h.y,Z,c),s.as.Ho("Elps",[h.x,h.y,e.x,e.y])]};
f.Cr=function(){f.vA.call(this,[10,34],f.AL,"tools/pshape",!1)};f.Cr.prototype=new f.vA;f.Cr.prototype.Or=function(h,e,$){var Z=this.KY.pshape,c=this.KY.crad,q=this.KY.irad/100,E=this.KY.sides,P=this.KY.width,a=this.KY.tsiz,j=this.KY.length,Y;
e=e.clone();if($){if(Math.abs(e.x-h.x)<Math.abs(e.y-h.y))e.x=h.x;else e.y=h.y}var L=h.x,H=h.y,_=e.x,J=e.y,S=Math.sqrt((_-L)*(_-L)+(J-H)*(J-H)),N=Math.atan2(-J+H,_-L);
if(Z==0)Y=s.W.d5.$X(L,H,S,N,E,c);if(Z==1)Y=s.W.d5.aj8(L,H,S,N,E,c,q);if(Z==2)Y=s.W.d5.a4r(h.x,h.y,e.x,e.y,P,a/100);
if(Z==3)Y=s.W.d5.anW(L,H,S,N,j);return[Y,s.as.Ho("customShape",[h.x,h.y,e.x,e.y],null,null,null,"--")]};
f.Cr.prototype.WI=function(h,e,$,Z){var c=Z.cy(),q=this.KY,E,P;if(c.y!=0){var a=-c.y,j=q.pshape;if(j<2){E="sides";
P=Math.max(3,Math.min(100,q.sides+a))}else if(j==2){E="width";P=Math.max(1,Math.min(100,q.width+a))}else if(j==3){E="length";
P=Math.max(4,Math.min(40,q.length+a))}}if(c.x!=0){E="pshape";P=Math.max(0,Math.min(3,q.pshape+c.x))}if(E){var L=new B(D.E.P,!0),H={};
H[E]=P;q[E]=P;L.data={e:D.U.UR,F:this.id,oD:"vals",alp:H};e.f(L);this.oX(h,e,$,Z)}};f.K8=function(){f.vA.call(this,[10,35],f.hx,"tools/line",!1)};
f.K8.prototype=new f.vA;f.K8.prototype.Or=function(h,e,$){var Z=this.KY.width;e=e.clone();if($){e=f.mT.W1(h,e)}return[s.W.d5.K8(h.x,h.y,e.x,e.y,Z),s.as.Ho("Ln",null,null,[h.x,h.y,e.x,e.y],Z)]};
f.Pg=function(){f.vA.call(this,[10,31],f.QQ,"tools/cshape",!0)};f.Pg.prototype=new f.vA;f.Pg.prototype.Or=function(h,e,$){var Z=this.KY.shape,c=Z.Ny.d/Z.Ny.v,q=o.MM.rP(Z.b);
e=e.clone();if($){e.y=h.y+(e.x-h.x)/c}var E=e.x-h.x,P=e.y-h.y;s.W.wD(q,new i7(E,0,0,P,h.x,h.y));return[q,s.as.Ho("customShape",[h.x,h.y,e.x,e.y],null,null,null,Z.dA)]};
f.o=function(h,e,$){f.ar.call(this,h,e,$);this.LG=0;this.t=null;this.bc=null;this.pq=null;this.EU=1;
this.SN=!1;this.cursor=null;this.JL=null;this.HC=null;this.iA=!1;this.sr=null;this.a1Y=0;this.Xl=null;
this.Nf=0;this.Y$=null;this.YJ=null;this.qC=null;this.yZ=null;this.a7t=null;this.fw=null};f.o.prototype=new f.ar;
f.o.hP=function(h,e){var $={classID:"null",null:bw.NQ("Dcmn",!0)};if(h)$.Angl={t:"UntF",v:{type:"#Ang",val:e}};
else $.Axis={t:"enum",v:{Ornt:e}};return{Lw:h?"rotateEventEnum":"flip",TJ:$}};f.o.prototype.d1=function(h,e,$,Z,c){var q=new B(D.E.P,!0);
q.data={e:D.U.UR,F:this.id,BQ:c,im:h,pq:$};e.f(q);this.QG=!1};f.o.prototype.s4=function(h){return this.YJ&&this.YJ.BG()};
f.o.prototype.a1=function(h,e,$,Z,c){this.pq=c;if(h.e=="again"&&this.Xl==null)return;if(h.e=="doMouseDown"){if(this.YJ==null)return;
this.yj($,e,c,Z,h.Wo);return}if(!this.NO($,c))return;if(this.YJ){this.XL(h,this.YJ.Pd());this.aF($,c,0,!0);
this.Wa($);return}this.sG($,h.$==null,h.$);this.zW($);this.XL(h);this.Qf($,e,h.cJ,!1)};f.o.prototype.XL=function(h,e){var $=this.Y$;
if(e==null){var Z=h.An!=null?h.An:4;e=this.YJ.a1j()[Z]}var c=e.x,q=e.y;if(h.e=="rot"&&h.G!=Math.PI&&($.d+$.v&1)==1){c=Math.floor(c);
q=Math.floor(q)}var E=new i7;E.translate(-c,-q);if(h.e=="rot")E.rotate(h.G);if(h.e=="scl")E.scale(h.G.x,h.G.y);
if(h.e=="mat")E.concat(h.G);E.translate(c,q);if(h.e=="again")E=this.Xl;var P=this.YJ.k5();s.a.J(P,E,P);
this.YJ.ph(P)};f.o.prototype.Mm=function(){return!0};f.o.prototype.NO=function(h,e){if(h==null)return!1;
if(this.id==f.MG)return h.N!=null;var $=h.wR(!0,null,null,!0);if(this.id==f.or&&h.t[$[0]].rect.nK()){alert("Layer is empty.");
return!1}for(var G=0;G<$.length;G++){var Z=h.t[$[G]];if(Z.ra(2)||Z.ra(31)){alert(e_.get([6,57,0]));return!1}if(Z.add.artb){alert("You can not transform the whole artboard");
return!1}if(Z.add.TySh)if(!cg.BF(Z.add.TySh,e.R0))return!1;if(Z.add.SoLd){if($.length==1&&!s.FO.en(Z.add.SoLd.warp.v)&&(Z.kV()&&Z.kV().MV||Z.add.vmsk&&Z.add.vmsk.MV)){alert("Unlink masks before transforming Smart Object");
return!1}if(!h.a5i(Z.add.SoLd.Idnt.v)){alert("Unsupported format of the smart object ("+h.ig(Z.add.SoLd.Idnt.v).mD+")");
return!1}}}if(h.N==null)return!0;if(!h.Jh())return!1;return h.$k()};f.o.prototype.yj=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y);
if(this.Nf==1){var E=s.I.vy(s.I.w1(this.YJ.k5(),this.Y$));q=s.I.nN(E,q)}var P=this.Nf==0?this.YJ:this.qC;
this.SN=P.yj(h,$,Z,q);if(this.SN&&P.BT(q)){if(Date.now()-this.a1Y<250)this.Qf(h,e,null,!0);this.a1Y=Date.now()}};
f.o.prototype.qd=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.Qd,Hz:this.cursor};h.f(e)};f.o.prototype.oX=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y);
if(this.Nf==1){var E=s.I.vy(s.I.w1(this.YJ.k5(),this.Y$));q=s.I.nN(E,q)}var P=this.Nf==0?this.YJ:this.qC;
if(!c.xo){var a="default";if(P){var j=P.vR(q,h.z.S);if(j)a=j}if(a!=this.cursor){this.cursor=a;this.qd(e)}}if(!this.SN)return;
P.oX(h,$,Z,q);this.aF(h,$,0,!0);this.Wa(h);this.tK(e)};f.o.prototype.f0=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y);
this.YJ.f0(h,$,Z,q);this.SN=!1};f.o.prototype.WI=function(h,e,$,Z){if(Z.q(p.Gr))this.Qf(h,e,null,!0);
else if(Z.q(p.fp))this.pt(h,e);else{var c=this.YJ.WI(h,$,Z);if(c){this.aF(h,$,0,!0);this.tK(e)}}};f.o.prototype.cd=function(h,e,$,Z){if(h.Bg=="commit")this.Qf($,e,null,!0);
else if(h.Bg=="cancel")this.pt($,e);else if(h.Bg=="switchWarp"){this.Nf=1-this.Nf;this.acD();this.Wa($);
this.tK(e)}else if(h.Bg=="wrp"){this.qC.EG(h.gL);this.Wa($);this.aF($,this.pq,0,!0)}else if(h.Bg=="ctyp"){this.YJ.ajv(h.BH);
this.Wa($);this.tK(e)}else if(h.Bg=="cen"){this.YJ.aiB(h.yE);this.Wa($);this.aF($,this.pq,0,!0);this.tK(e)}else if(h.Bg=="trn"){var c=s.I.dW(h.pC),q=this.Y$,E=s.I.w1(this.YJ.k5(),this.Y$);
c[6]=E[6],c[7]=E[7];var P=[q.x,q.y,q.x+q.d,q.y,q.x+q.d,q.y+q.v,q.x,q.y+q.v];s.I.apply(c,P);this.EU=h.EU;
this.YJ.ph(P);this.Wa($);this.aF($,this.pq,0,!0)}};f.o.prototype.Wa=function(h){if(this.Nf==0)this.YJ.Fs(h,this.pq);
else{this.qC.Fs(h);var e=s.I.w1(this.YJ.k5(),this.Y$);s.I.apply(e,h.K.sV.H);s.I.apply(e,h.K.wf)}};f.o.prototype.Qf=function(h,e,$,Z){this.aF(h,this.pq,this.EU);
var c=new fW($?$:this.name,this);if(this.LG==0)c.data={type:this.LG,t:this.t,sr:this.bc,QB:f.o.xT(h,this.t)};
else if(this.LG==1){var q=h.t[this.t[0]],E;if(q.cj.jw<=0){E=s.m(q.cj.lD.X());s.z0(q.cj.KE,E,3)}else E=h.N.channel;
var P={rect:q.cj.lD.clone(),channel:E};c.data={type:this.LG,$:this.t[0],HC:this.HC,A9:P,JL:this.JL,iA:this.iA,cj:q.cj,sr:this.sr,QB:{_:q.cj.lD,Yu:q.cj.KE}}}else if(this.LG==2){c.data={type:this.LG,HC:this.HC,A9:{rect:h.N.rect.clone(),channel:h.N.channel.slice(0)}}}h.eG(c);
var a=this.Y$,j=new eu(a.x+a.d/2,a.y+a.v/2),L=s.I.w1(this.YJ.k5(),a),H=s.I.hQ(L),_=new i7;_.translate(j.x,j.y);
_.concat(H);_.translate(-j.x,-j.y);H=_.clone();var J=-Math.atan2(-H.O,H.R),S=new i7;S.rotate(J);H.concat(S);
function N(g,M){return{t:"UntF",v:{type:["#Pxl","#Prc","#Ang"][M],val:g}}}var Y=bw.NQ("Lyr",!0);if(this.id==f.MG)Y.v[0]={t:"prop",v:{classID:"Chnl",keyID:"fsel"}};
var U={classID:"null",null:Y,FTcs:{t:"enum",v:{QCSt:"Qcsa"}},Intr:{t:"enum",v:{Intp:"Bcbc"}},Ofst:{t:"Objc",v:{__name:"Offset",classID:"Ofst",Hrzn:N(_.zq,0),Vrtc:N(_.nL,0)}},Skew:{t:"Objc",v:{classID:"Pnt",Hrzn:N(Math.atan(H.Ma)*180/Math.PI,2),Vrtc:N(0,2)}},Wdth:N(H.R*100,1),Hght:N(H.rU*100,1),Angl:N(J*180/Math.PI,2)};
this.a3=e;this.track({Lw:"transform",TJ:U});this.escape(h,e,Z)};f.o.prototype.pt=function(h,e){if(this.LG==0)f.o.U5(h,this.t,this.bc);
else if(this.LG==1){var $=h.t[this.t[0]];h.N=this.HC;if(!this.iA){$.cj.lD=this.sr._;$.cj.KE=this.sr.Yu;
$.NP(h,0,0,h.N)}else{$.zJ(h,this.JL)}h.s();h.al=!0}else if(this.LG==2){h.N=this.HC;h.al=!0}this.escape(h,e,!0)};
f.o.prototype.escape=function(h,e,$){this.YJ.clear(h);this.YJ=null;this.qC=null;this.fw=null;this.Nf=0;
if($)this.Gu(e,D.E.P,{e:D.U.Dn})};f.o.prototype.t4=function(h,e){if(h.type==0)f.o.U5(e,h.t,h.QB);else{if(h.type==1){var $=e.t[h.$];
if(h.iA){$.cj=h.cj}else{$.cj.lD=h.QB._;$.cj.KE=h.QB.Yu}$.NP(e,0,0,e.N);e.s()}e.N={rect:h.A9.rect.clone(),channel:h.A9.channel.slice(0)};
e.al=!0}};f.o.prototype.yc=function(h,e){if(h.type==0)f.o.U5(e,h.t,h.sr);else{if(h.type==1){var $=e.t[h.$];
if(h.iA){$.zJ(e,h.JL)}else{$.cj.lD=h.sr._;$.cj.KE=h.sr.Yu;$.NP(e,0,0,e.N)}e.s()}e.N=h.HC;e.al=!0}};f.o.prototype.sG=function(h,e,$){h.U9();
var Z=[];if($==null)for(var G=0;G<h.fV.length;G++)if(h.DZ[h.fV[G]].add.vmsk.b.length>2)Z.push(-1-h.fV[G]);
var c=[],q=h.z.RI;if(q[0]+q[1]+q[2]==3)if($!=null||Z.length==0||h.mG!=null&&h.mG.length!=0)c=h.wR(e,$,null,!0);
c=c.concat(Z);for(var G=0;G<h.vw.length;G++)c.push(-1e3-h.vw[G]);this.t=c};f.o.prototype.enable=function(h,e,$,Z,c,q,E){if(this.cursor==null)this.cursor="default";
this.qd(e);if(this.YJ)return;this.pq=$;this.sG(h,!0);this.zW(h,q&&q.bM!=null&&q.bM!=-1?q.bM:null,E);
this.tK(e);this.Wa(h);if(q&&q.bM==-1)this.cd({Bg:"switchWarp"},e,h,Z)};f.o.prototype.tK=function(h){var e={e:D.U.UR,F:this.id};
if(this.Nf==0){var $=s.I.w1(this.YJ.k5(),this.Y$),Z=s.I.hQ($);e.pC={FC:Z,BH:this.YJ.a4y(),yE:this.YJ.Pd(),_:this.Y$.clone()}}else{e.gL=this.qC.uP()}e.a8m=this.qC!=null;
this.Gu(h,D.E.P,e)};f.o.prototype.zW=function(h,e,$){var Z=this.id==f.MG,c=!0,q=this.t[0],E=h.t[q],a=null;
if(Z){this.LG=2;this.HC=h.N}else if(h.N&&this.t.length==1&&q>=0&&!E.rect.nK()){this.LG=1;this.HC=h.N;
this.JL=E.cj;this.iA=!1;if(!E.Ae(h,h.N)){this.iA=!0;E.ke(h,h.N,!1)}this.sr={Yu:E.cj.KE,_:E.cj.lD}}else{this.LG=0;
this.bc=f.o.xT(h,this.t,null,$);for(var G=0;G<this.bc.length;G++)if(this.bc[G][3]!=null)c=!1}var P=this.LG==1;
if(this.bc&&this.bc.length==1){var j=this.bc[0];if(j[3]==null)P=!0;if(j[4]!=null){a=h.t[this.t[0]].add.SoLd;
if(j[1]||j[2])P=!1}}var L=Z?h.N.rect.clone():f.o._A(h,this.t,$);this.Y$=L;if(!Z&&a){var H=f.o.Pu(a.nonAffineTransform);
this.Y$=s.a.Be(s.FO.a8(a.warp.v));if(P)this.qC=new b7(a.warp.v);this.yZ=s.I.w1(H,this.Y$);this.YJ=new cy(H,!0,!0,c,!1,!1,e)}else{if(P||Z)this.qC=new b7(s.FO.m(this.Y$));
this.yZ=[1,0,0,0,1,0,0,0];if(this.id==f.or)e=3;this.YJ=new cy([L.x,L.y,L.x+L.d,L.y,L.x+L.d,L.y+L.v,L.x,L.y+L.v],!0,!0,c,!1,!1,e)}this.a7t=[1,0,0,0,1,0,0,0];
if(this.id==f.or){var _=this.bc[0][0],J=_.v$,S=J[1];this.fw=s.$p.a4b(J[0],S.d,S.v)}};f.o._A=function(h,e,$){if(e==null)e=h.wR(!0,null,null,!0);
var Z=new O;if(h.N&&e.length==1&&e[0]>=0)Z=h.N.rect.clone();else for(var G=0;G<e.length;G++){var c=e[G],q=0<=c?h.t[c]:-1e3<c?h.DZ[-1-c]:h.Qe[-1e3-c],E=q.add?q.add.vmsk:null,P=0<=c?q.TX(h,e.length==1,!1,$):-1e3<c?s.W.v4(E.b,e.length==1&&E.C.length!=0?E.C:null):q.rect.clone();
Z=Z.iJ(P)}return Z};f.o.prototype.Gu=function(h,e,$,Z){var c=new B(e,!0);c.data=$;if(Z)c.F=Z;h.f(c)};
f.o.xT=function(h,e,$,Z){var c=[];for(var G=0;G<e.length;G++){var q=e[G],E,P;if(q>=0){E=h.t[q];P=E.iR(h,$,Z)}else if(q>-1e3){E=h.DZ[-1-q];
P=[2]}else{c.push([null,null,null,null,null,null,null,h.Qe[-1e3-q].clone()]);continue}var a=[];if(P.indexOf(0)!=-1){var j={v$:[E.buffer.slice(0),E.rect.clone()]};
a.push(j);if(E.fi()){var L=E.wV(h);j.a76=L.buffer.slice(0);j.aki=L.rect.clone()}}else a.push(null);if(P.indexOf(1)!=-1)a.push(E.kV().clone());
else a.push(null);if(P.indexOf(2)!=-1)a.push({Qw:E.add.vmsk.clone(),oF:E.add.vstk?JSON.parse(JSON.stringify(E.add.vstk)):null,mQ:E.add.vstk?f.XT.d4(h,q):null,as:E.add.vogk?JSON.parse(JSON.stringify(E.add.vogk)):null});
else a.push(null);if(E.add.TySh&&a[0]){gK._Z(E.add.TySh);a.push(E.add.TySh.J.clone())}else a.push(null);
if(E.add.SoLd&&a[0])a.push(JSON.parse(JSON.stringify(E.add.SoLd)));else a.push(null);if(P.indexOf(3)!=-1)a.push(E.wV(h).r.clone());
else a.push(null);if(E.add.lmfx)a.push(JSON.stringify(E.add.lmfx));else a.push(null);c.push(a)}return c};
f.o.U5=function(h,e,$){for(var G=0;G<e.length;G++){var Z=e[G],c=0<=Z?h.t[Z]:-1e3<Z?h.DZ[-1-Z]:h.Qe[-1e3-Z],q=$[G];
if(q[0]){c.rect=q[0].v$[1].clone();c.buffer=q[0].v$[0].slice(0);if(c.fi()){var E=c.wV(h);E.buffer=q[0].a76.slice(0);
E.rect=q[0].aki.clone()}}if(q[1]){c.kV().channel=q[1].channel.slice(0);c.kV().rect=q[1].rect.clone();
c.kV().w4=!0}if(q[2]){c.add.vmsk=q[2].Qw.clone();if(q[2].mQ)f.XT.Sf(c,q[2].mQ);if(q[2].oF)c.add.vstk=JSON.parse(JSON.stringify(q[2].oF));
if(q[2].as)c.add.vogk=JSON.parse(JSON.stringify(q[2].as))}if(q[3]){c.add.TySh.J=q[3].clone();gK.iU(c.add.TySh)}if(q[4]){c.add.SoLd=JSON.parse(JSON.stringify(q[4]))}if(q[5]){var P=c.wV(h).r;
P.channel=q[5].channel.slice(0);P.rect=q[5].rect.clone()}if(q[6]){c.add.lmfx=JSON.parse(q[6])}if(q[7]){c.channel=q[7].channel.slice(0);
c.rect=q[7].rect.clone();c.w4=!0}if(0<=Z){c.ZB(h);c.s()}}h.s()};f.o.rD=function(h){var e=h.clone(),$=Math.atan2(-e.O,e.R),Z=new i7;
Z.rotate(-$);e.concat(Z);return(Math.abs(e.R)+Math.abs(e.rU))/2};f.o.u8=function(h,e,$,Z,c,q,E,P,a,j){if(typeof q[0]=="number"){var L=[];
for(var G=0;G<$.length;G++)L[G]=q;q=L}for(var G=0;G<$.length;G++){var H=q[G],_=s.I.hQ(H),J=f.o.rD(_),S=$[G],N=0<=S?h.t[S]:-1e3<S?h.DZ[-1-S]:h.Qe[-1e3-S],Y=Z[G];
if(Y[0]&&N.add.lmfx&&P)hn.Z9(N.add.lmfx,J);if(Y[0]&&!Y[3]&&!Y[4]&&!Y[5]){var U=Y[0].v$;if(a){var g=a.clone(),M=s.m(g.X()*4);
s.hX(U[0],U[1],M,g);U=[M,g]}var C=f.o.Pf(U,c,H,E,c==0?N.buffer.buffer:null,null,null,j);if(C){N.rect=C.rect;
N.buffer=C.buffer}}if(Y[1])f.o.$l(h,Y[1],N.kV(),c,H,E);if(Y[2]){var y=E&&!s.FO.en(E),i=Y[2].Qw.clone(),Q=$.length==1&&i.C.length!=0,m=$.length==1&&i.pc.length>1;
if(m)Q=!1;var n=Q?i.C:null,u=m?i.pc:null;if(y){var K=s.FO.a8(E);s.I.apply(H,K);s.W.aaW(i.b,K,n,u)}else s.W.a6C(i.b,H,n,u);
if(N.add.vstk&&P){N.add.vstk.strokeStyleLineWidth.v.val=Y[2].oF.strokeStyleLineWidth.v.val*J;var F=Y[2].mQ;
if(F&&F.cp==3){F=JSON.parse(JSON.stringify(F));var b=F.mQ.phase.v;F.mQ.Scl.v.val=Math.round(F.mQ.Scl.v.val*J);
b.Hrzn.v=Math.round(b.Hrzn.v*J);b.Vrtc.v=Math.round(b.Vrtc.v*J);f.XT.Sf(N,F)}}if(N.add.vogk){N.add.vogk=JSON.parse(JSON.stringify(Y[2].as));
if(y||m)s.as.afV(N.add.vogk);else s.as.J(N.add.vogk,H,$.length>1?[]:i.C,P)}i.gE*=J;N.add.vmsk=i;if(N.add.vogk)s.as.qh(N.add.vogk,N.add.vmsk)}if(Y[3]){var d=Y[3].clone();
d.concat(_);N.add.TySh.J=d;gK.iU(N.add.TySh);var W=new br(N.add.TySh.Kx,e.R0),A=cg.Fx(W,N.add.TySh);
N.rect=A._;N.buffer=A.Hl}if(Y[4]){var z=N.add.SoLd,T=f.o.Pu(Y[4].nonAffineTransform);s.I.apply(H,T);
var R=s.a.pl(T);if(cy.Po(T)){if(E){var I=s.a.Be(s.FO.a8(Y[4].warp.v)),r=s.I.w1(T,I),x=s.a.Be(s.FO.a8(E));
T=[x.x,x.y,x.x+x.d,x.y,x.x+x.d,x.y+x.v,x.x,x.y+x.v];s.I.apply(r,T);z.warp.v=E}var X=s.I.w1(T),l=T;if(!s.I.t0(X)){X[6]=X[7]=0;
l=[0,0,1,0,1,1,0,1];s.I.apply(X,l)}z.Trnf=f.o.h8(l);z.nonAffineTransform=f.o.h8(T);N.l3(h,c==0)}}if(Y[5])f.o.$l(h,Y[5],N.wV(h).r,c,H,E);
if(Y[7])f.o.$l(h,Y[7],N,c,H,E);if(0<=S){if(c!=0)N.V9();N.ZB(h);N.s()}}h.s()};f.o.D8=function(h,e,$,Z,c,q){if($==null)$=!1;
return f.o.Pf(h,$?0:1,s.I.dW(e),null,Z,c,q,$)};f.o.Pf=function(h,e,$,Z,c,q,E,P){if(P==null)P=!1;if(P&&E)throw"e";
var a={},_=0,J=.3;if(Z&&!s.FO.en(Z)){var j=s.FO.a8(Z);s.I.apply($,j);a.rect=s.a.pl(j);a.buffer=s.m(a.rect.X()*4);
s.nS.drawImage(j,h[0],h[1].d,h[1].v,a.buffer,a.rect,e==0);return a}s.gt(h);var L=h[0],H=h[1],S=H.X()*f.o.rD(s.I.hQ($));
if(P&&S>4e6)J=S>8e6?2.2:1.2;while(_+3<h.length&&h[_+3].X()>16&&s.I.t0($)&&f.o.rD(s.I.hQ($))<J){_+=2;
var N=h[_],Y=h[_+1],U=H.d/Y.d,g=H.v/Y.v;$=s.I.n_($,[1,0,H.x,0,1,H.y,0,0]);$=s.I.n_($,[U,0,0,0,g,0,0,0]);
$=s.I.n_($,[1,0,-H.x,0,1,-H.y,0,0]);H=Y;L=N}var M=s.I.n_($,s.I.dW(new i7(H.d,0,0,H.v,H.x,H.y))),C=[0,0,1,0,1,1,0,1];
s.I.apply(M,C);a.rect=s.a.pl(C);if(E)a.rect=a.rect.jx(E);if(P){while((a.rect.d&3)!=0)a.rect.d++;while((a.rect.v&3)!=0)a.rect.v++}if(!cy.Po(C)||a.rect.d>1e5||a.rect.v>1e5||a.rect.X()>3e4*3e4)return null;
var y=a.rect.X()*4;if(c&&c.byteLength>=y&&y>=c.byteLength>>2){a.buffer=new Uint8Array(c)}else{a.buffer=s.m(y)}s.I.drawImage(M,L,H.d,H.v,a.buffer,a.rect,e==0,q,P);
if(e==2&&a.buffer){var i=a.rect.d,Q=a.rect.v,m;m=[0,-1,0,-1,16,-1,0,-1,0];m=s.V4.er(m);var n=a.buffer.slice(0);
s.V4.mz(n,a.buffer,i,Q,m,255,!1,!0)}if(a.buffer)return a};f.o.$l=function(h,e,$,Z,c,q){if(e.color==255)s.vy(e.channel);
var E=e.rect,P=s.m(E.X()*4);s.Jk(e.channel,P,3);var a=f.o.Pf([P,E],Z,c,q);if(a){$.rect=a.rect;$.channel=s.m(a.rect.X());
s.z0(a.buffer,$.channel,3);$.w4=!0}if(e.color==255){s.vy(e.channel);if(a)s.vy($.channel)}};f.o.Pu=function(h){var e=[],$=h.v.length;
for(var G=0;G<$;G++)e.push(h.v[G].v);return e};f.o.h8=function(h){var e={t:"VlLs",v:[]},$=h.length;for(var G=0;
G<$;G++)e.v.push({t:"doub",v:h[G]});return e};f.o.prototype.acD=function(){var h=s.a.Be(s.FO.a8(this.qC.uP())),e=s.I.w1(this.YJ.k5(),this.Y$),$=[h.x,h.y,h.x+h.d,h.y,h.x+h.d,h.y+h.v,h.x,h.y+h.v];
s.I.apply(e,$);this.YJ.ph($);this.Y$=h};f.o.prototype.aF=function(h,e,$,Z){var c=s.I.w1(this.YJ.k5(),this.Y$);
c=s.I.n_(c,s.I.vy(this.yZ));var q=this.qC?this.qC.uP():null;if(this.LG==0){var E=this.Xl=s.I.hQ(c);if(this.id==f.or){var P=this.bc[0][0],a=P.v$,j=a[1],L=~~(j.d*Math.max(0,E.R)),H=~~(j.v*Math.max(0,E.rU)),_=new O(Math.round(E.R*j.x+E.zq),Math.round(E.rU*j.y+E.nL),L,H),J=s.$p.J(this.fw,_),S=h.t[this.t[0]];
S.buffer=J;S.rect=_;S.s();h.s()}else f.o.u8(h,e,this.t,this.bc,$,c,q,null,null,Z)}else if(this.LG==1){var N=h.t[this.t[0]],j=this.sr._;
if(N.jw<=0){var Y=this.sr.Yu,U=this.HC;if(q&&!s.FO.en(q)&&!U.rect.dz(j)){var J=s.m(U.rect.X()*4);s.hX(Y,j,J,U.rect);
Y=J;j=U.rect}var g=f.o.Pf([Y,j],$,c,q);if(g){N.cj.KE=g.buffer;N.cj.lD=g.rect;var M=s.m(g.rect.X());s.z0(N.cj.KE,M,3);
h.N={channel:M,rect:N.cj.lD.clone()}}}else{var C=s.m(j.X()*4);s.Jk(this.sr.Yu,C,3);var g=f.o.Pf([C,j],$,c,q);
if(g){N.cj.KE=s.m(g.rect.X());s.z0(g.buffer,N.cj.KE,3);N.cj.lD=g.rect}this.k9(h,$,c,q)}N.NP(h,0,0,h.N);
if($!=0){N.V9();s.V9(h.N)}h.al=!0;h.s()}else if(this.LG==2)this.k9(h,$,c,q)};f.o.prototype.k9=function(h,e,$,Z){var c=this.HC.rect,q=s.m(c.X()*4);
s.Jk(this.HC.channel,q,3);var E=f.o.Pf([q,c],e,$,Z),P=s.m(E.rect.X());s.z0(E.buffer,P,3);h.N={channel:P,rect:E.rect};
h.al=!0};f.o.prototype.disable=function(h,e,$,Z){if(this.YJ)this.Qf(h,e,null,!0)};f.pD=function(){f.o.call(this,[10,16],f.Fk,"tools/transform")};
f.pD.prototype=new f.o;f.ML=function(){f.o.call(this,[7,10],f.MG,"tools/transform")};f.ML.prototype=new f.o;
f.fv=function(){f.o.call(this,[10,48],f.or,"tools/transform")};f.fv.prototype=new f.o;f.kC=function(h,e,$){f.ar.call(this,[10,46],f.Bi,"tools/transform");
this.RG=[1,1,2,!0];this.S4="rigidTransform";this.r$=null;this.a03=null;this.CX=null;this.FN=null;this.cT=null;
this.R2=null;this.ya=[]};f.kC.prototype=new f.ar;f.kC.prototype.Mm=function(){return!0};f.kC.nl=function(h){if(h==null)return!1;
if(h.C.length!=1)return!1;var e=h.t[h.C[0]];return e.add.SoLd||h.Jh(!1)};f.kC.prototype.NO=function(h,e){return f.kC.nl(h)};
f.kC.prototype.enable=function(h,e,$,Z,c,q,E){this.a03=q.HX;var P=q.HX,a,N=null;if(P){var j=h.t[P.$];
if(j.add.SoLd.filterFX!=null){var L=j.add.SoLd.filterFX.v.filterFXList.v;if(L[P.index])a=JSON.parse(JSON.stringify(L[P.index].v.Fltr.v))}}var H=a==null,j=h.t[h.C[0]],_=j.buffer,J=j.rect,S=j.add.SoLd;
if(S){var Y=S.nonAffineTransform.v;N=[];for(var G=0;G<4;G++)N.push(Y[G*2].v,Y[G*2+1].v);if(H)this.p0("edit",e);
var U=j.wV(h);_=U.buffer;J=U.rect}this.r$={buffer:_.slice(0),rect:J.clone(),a75:N};if(H)a=f.kC.UY(this.r$,this.RG);
this.CX=a;this.FN=f.kC.gM(this.CX,this.RG);this.W3();this.tP(h);if(H)this.rv(e);var g=new B(D.E.P,!0);
g.data={e:D.U.UR,F:this.id,Av:this.RG};e.f(g);g.data={e:D.U.Qd,Hz:"default"};e.f(g)};f.kC.prototype.disable=function(h,e,$,Z){if(this.FN)this.Qf(h,e,!0)};
f.kC.prototype.W3=function(h){var e=this.FN;this.ya=[];for(var G=0;G<e.length;G++){var $=e[G];for(var Z=0;
Z<$.C.length;Z++)this.ya.push([G,$.C[G]]);$.T1=s.M0.$$($);if(h)s.M0.Qz($)}};f.kC.prototype.cd=function(h,e,$,Z){if(h.Bg=="commit")this.Qf($,e,!0);
else if(h.Bg=="cancel")this.pt($,e,!0);else if(h.Bg=="prm"){var c=!1;for(var G=0;G<3;G++)if(this.RG[G]!=h.Av[G])c=!0;
this.RG=h.Av;if(c){this.CX=f.kC.UY(this.r$,this.RG,this.CX);this.FN=f.kC.gM(this.CX,this.RG);this.W3(!0);
this.rv(e)}this.tP($)}else if(h.Bg=="moveDepth"){var q=this.FN;for(var E=0;E<q.length;E++){var P=q[E];
for(var G=0;G<P.C.length;G++){var a=P.C[G];P.eL[a]+=h.a2d?1:-1}}this.rv(e)}};f.kC.prototype.Jr=function(h,e){return h==p.PA||h==p.iC};
f.kC.prototype.WI=function(h,e,$,Z){var c=Z.cy();if(Z.q(p.Gr))this.Qf(h,e,!0);else if(Z.q(p.fp))this.pt(h,e,!0);
else if(Z.q(p.PA)||Z.q(p.iC)){var q=this.FN;for(var E=0;E<q.length;E++){var P=q[E];P.C.sort(function(L,H){return H-L});
for(var G=0;G<P.C.length;G++){var a=P.C[G],j=a*2;P.eL.splice(a,1);P.Sl.splice(a,1);P.yr.splice(a,1);
P.Ot.splice(a,1);P.dN.splice(j,2);P.WF.splice(j,2)}P.C=[];if(P.Ot.length==0){P.mt=P.N6.slice(0);P.Iv=P.N6.slice(0)}}this.W3(!0);
this.rv(e);this.tP(h)}else if(c.x!=0||c.y!=0){this.eB(h,c.x,c.y,e);this.So=null}};f.kC.prototype.Qf=function(h,e,$){this.p0("confirm",e);
this.escape(h,e,$)};f.kC.prototype.pt=function(h,e,$){this.p0("cancel",e);this.escape(h,e,$)};f.kC.prototype.escape=function(h,e,$){h.K.sV=null;
h.K.Op=[];h.IL=!0;this.FN=null;var Z=new B(D.E.P,!0);Z.data={e:D.U.Dn};if($)e.f(Z)};f.kC.prototype.yj=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y),E=q.x,P=q.y,a=this.FN,j=null,L=[0,2,4,1.2,1.2,1.2],H=-1,_=D.M()*5/h.z.S;
for(var G=0;G<a.length;G++){var J=a[G],S=s.a.Xi(J.WF,E,P,_);if(S!=-1)j=[G,S];if(H==-1&&s.M0.jY.air(J.Iv,J.MW,E,P))H=G}if(j==null&&H!=-1){var J=a[H];
f.kC.Gb(J,E,P,E,P,0);j=[H,J.Ot.length-1];J.T1=s.M0.$$(J)}this.cT=q;if(j){var N=a[j[0]].C.indexOf(j[1])!=-1;
if(Z.q(p.ai)&&!N){a[j[0]].C.push(j[1]);this.ya.push(j)}else if(!N){a[j[0]].C=[j[1]];this.ya=[j]}}this.tP(h)};
f.kC.Gb=function(h,e,$,Z,c,q){var E=s.a.Xi(h.Iv,e,$);h.Ot.push(E);h.WF.push(Z,c);h.dN.push(h.Iv[E*2]-e,h.Iv[E*2+1]-$);
h.yr.push(0);h.Sl.push(!1);h.eL.push(q)};f.kC.prototype.oX=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y),E=this.cT;
if(E)this.eB(h,q.x-E.x,q.y-E.y,e)};f.kC.prototype.eB=function(h,e,$,Z){var c={},q=this.ya,E=this.FN;
if(this.So==null){this.So=[];for(var G=0;G<E.length;G++)this.So.push(E[G].WF.slice(0))}for(var G=0;G<q.length;
G++){var P=this.ya[G],a=P[0],j=E[P[0]],L=P[1]*2;j.WF[L+0]=this.So[a][L+0]+e;j.WF[L+1]=this.So[a][L+1]+$;
c[a]=a}for(var a in c)s.M0.Qz(this.FN[c[a]]);this.tP(h);this.rv(Z)};f.kC.prototype.p0=function(h,e){var $=new B(D.E.A,!0);
$.F=f.HP;$.data={e:h,HX:this.a03,S4:this.S4,o8:this.CX};e.f($)};f.kC.prototype.f0=function(h,e,$,Z,c){this.cT=null;
this.So=null};f.kC.prototype.rv=function(h){f.kC._r(this.FN,this.RG,this.CX);this.p0("edit",h)};f.kC.prototype.tP=function(h){var e=this.FN,$=this.CX;
h.K.sV={H:[],Z:[]};h.K.Op=[];h.K.TZ=[];for(var G=0;G<e.length;G++){var Z=e[G];for(var c=0;c<Z.C.length;
c++)h.K.TZ.push((h.K.Op.length>>>1)+Z.C[c]);h.K.Op=h.K.Op.concat(Z.WF);if(this.RG[3])s.a.concat(h.K.sV,s.a.am3(Z.Iv,Z.MW))}h.IL=!0};
f.kC.UY=function(h,e,$){var Z=h.buffer,c=h.rect,q=h.a75,E=dA.X3("rigidTransform");if(q)for(var G=0;G<4;
G++){E["PuX"+G].v=q[G*2];E["PuY"+G].v=q[G*2+1]}var P=E.puppetShapeList.v,a=s.M0.aoK(Z,c.d,c.v,e[1],e[2]),j=[];
for(var L=0;L<a.length;L++){var H={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:[]}};
H.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 _=a[L];P.push({t:"Objc",v:H});var J=_.N6.slice(0);s.a.J(J,new i7(1,0,0,1,c.x,c.y),J);var S=_.MW;
for(var G=0;G<S.length;G+=3){var N=S[G+1];S[G+1]=S[G+2];S[G+2]=N}j.push({MW:S,N6:J,mt:J,Iv:J,Ot:[],dN:[],WF:[],T1:null,C:[],yr:[],Sl:[],eL:[]})}if($){var Y=f.kC.gM($,[]),U=j[0];
for(var G=0;G<Y.length;G++){var g=Y[G];for(var M=0;M<g.C.length;M++)U.C.push((U.WF.length>>>1)+g.C[M]);
for(var M=0;M<g.Ot.length;M++){var C=g.Ot[M]*2,y=g.N6[C]-g.dN[M*2],i=g.N6[C+1]-g.dN[M*2+1];f.kC.Gb(U,y,i,g.WF[M*2],g.WF[M*2+1],g.eL[M])}}}f.kC._r(j,e,E);
return E};f.kC.gM=function(h,e){function $(i){var Q=[];for(var G=0;G<i.length;G++)Q.push(i[G].v);return Q}var Z=h.puppetShapeList.v,c=[];
for(var q=0;q<Z.length;q++){var E=Z[q].v;e[0]=E.meshRigidity.v-1;e[1]=E.meshQuality.v-1;e[2]=E.meshExpansion.v;
var P=E.pinVertexIndices.v.length,a=E.meshBoundaryPath.v.pathComponents.v[0].v.SbpL.v[0].v.Pts;a.v=[];
var j=new Uint32Array(new Uint8Array(E.indexArray.v).buffer),L=new Float32Array(new Uint8Array(E.originalVertexArray.v).buffer),H=new Float32Array(new Uint8Array(E.deformedVertexArray.v).buffer),_=[],J=[],S=[];
for(var G=0;G<j.length;G++)_.push(j[G]);for(var G=0;G<L.length;G++){J.push(L[G]);S.push(H[G])}var N=$(E.pinVertexIndices.v),Y=$(E.pinOffsets.v),U=$(E.posFinalPins.v),g=$(E.PnRt.v),M=$(E.PnOv.v),C=$(E.PnDp.v),y=$(E.selectedPin.v);
c.push({MW:_,N6:J,mt:S.slice(0),Iv:S,Ot:N,dN:Y,WF:U,T1:null,yr:g,Sl:M,eL:C,C:y})}return c};f.kC._r=function(h,e,$){function Z(_,J){var S=[];
for(var G=0;G<_.length;G++)S.push({t:J,v:_[G]});return S}function c(_,J,S){var N=new(S?Uint32Array:Float32Array)(_),Y=new Uint8Array(N.buffer);
for(var G=0;G<Y.length;G++)J[G]=Y[G]}var q=$.puppetShapeList.v;for(var E=0;E<q.length;E++){var P=h[E],a=q[E].v;
a.meshRigidity.v=e[0]+1;a.meshQuality.v=e[1]+1;a.meshExpansion.v=e[2];c(P.MW,a.indexArray.v,!0);c(P.N6,a.originalVertexArray.v);
c(P.Iv,a.deformedVertexArray.v);var j=[];for(var G=0;G<P.Ot.length;G++){var L=P.Ot[G]*2,H=G*2;j[H]=P.N6[L]-P.dN[H];
j[H+1]=P.N6[L+1]-P.dN[H+1]}a.PinP.v=Z(j,"doub");a.pinVertexIndices.v=Z(P.Ot,"long");a.pinOffsets.v=Z(P.dN,"doub");
a.posFinalPins.v=Z(P.WF,"doub");a.PnRt.v=Z(P.yr,"long");a.PnOv.v=Z(P.Sl,"bool");a.PnDp.v=Z(P.eL,"doub");
a.selectedPin.v=Z(P.C,"long")}};f.Al=function(h,e,$){f.ar.call(this,h?h:[10,40],e?e:f.Ou,$?$:"tools/slice");
this.gT=null;this.a3=null;this.G7=null;this.ady=null;this.pp=null;this.e9=null};f.Al.prototype=new f.ar;
f.Al.mI=function(h,e){var $=-1;for(var G=0;G<h.length;G++){var Z=f.Al.Hb(h,G);if(Z[0]<=e.x&&e.x<=Z[2]&&Z[1]<=e.y&&e.y<=Z[3]){$=G;
break}}return $};f.Al.prototype.a1=function(h,e,$,Z,c){this.Sq($);$.E1[$.KI[0]].v=h;$.IL=!0;this.m6($)};
f.Al.prototype.enable=function(h,e,$,Z,c,q){f.ar.prototype.enable.call(this,h,e,$,Z,c,q);if(!$.cz.E1){var E=new B(D.E.P,!0);
E.data={e:D.U.Ov,Av:iM.FY};e.f(E)}};f.Al.prototype.disable=function(){this.gT=null;this.a3=null};f.Al.prototype.d1=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y),E=f.Al.mI(h.E1,q);
if(E==-1)return;this.gT=h;this.a3=e;h.KI=[E];h.IL=!0;if(this.e9==null){this.e9=new dW([{name:[5,4]},{name:[8,11,1],tg:!0}]);
this.e9.k("select",this.yL,this)}var P=this.e9;P.parent=e;P.B();P.update(h,$);var a=new B(D.E.P,!0);
a.data={e:D.U.sH,yv:P,x:c.aS+2,y:c.gh+1};e.f(a)};f.Al.prototype.yL=function(h){var e=this.e9.XW()[0],$=this.gT;
if(e==0){this.Sq($);$.E1.splice($.KI[0],1);$.KI=[];$.IL=!0;this.m6($)}if(e==1){var Z=new B(D.E.P,!0);
Z.data={e:D.U.tr,yq:"soptions",G:$.E1[$.KI[0]].v};this.a3.f(Z)}};f.Al.prototype.yj=function(h,e,$,Z,c){if(h==null)return;
this.Sq(h);var q=h.z.QX(c.x,c.y);q=f.fQ.cX(h,q,$,[!0,null,!1]);q.x=Math.round(q.x);q.y=Math.round(q.y);
this.pp=q;h.E1.unshift(f.Al.X9());h.KI=[0];f.Al.Ju(h.E1,0,[q.x,q.y,q.x+20,q.y+20]);h.IL=!0};f.Al.prototype.oX=function(h,e,$,Z,c){if(this.G7==null)return;
var q=h.z.QX(c.x,c.y),E=this.pp;q=f.fQ.cX(h,q,$,[!0,null,!1]);q.x=Math.round(q.x);q.y=Math.round(q.y);
var P=[E.x,E.y,q.x,q.y];f.Al.eK(P);f.Al.Ju(h.E1,0,P);h.IL=!0};f.Al.prototype.f0=function(h,e,$,Z,c){this.m6(h);
this.pp=null};f.Al.prototype.Sq=function(h){this.G7=JSON.stringify(h.E1);this.ady=JSON.stringify(h.KI)};
f.Al.prototype.m6=function(h){var e=JSON.stringify(h.E1);if(e!=this.G7){var $=new fW(this.name,this);
$.data={sr:this.G7,QB:e,a4t:this.ady,a2y:JSON.stringify(h.KI)};h.eG($)}this.G7=null};f.Al.prototype.yc=function(h,e){e.E1=JSON.parse(h.sr);
e.KI=JSON.parse(h.a4t);e.IL=!0};f.Al.prototype.t4=function(h,e){e.E1=JSON.parse(h.QB);e.KI=JSON.parse(h.a2y);
e.IL=!0};f.Al.prototype.Jr=function(h,e){return e!=null&&e.KI.length!=0&&(h==p.PA||h==p.iC)};f.Al.prototype.WI=function(h,e,$,Z){if(h==null)return;
this.Sq(h);var c=Z.cy();if(c.x!=0||c.y!=0)f.Al.eO(h,c);if(Z.q(p.PA)||Z.q(p.iC)){var q=h.E1.slice(0);
for(var G=0;G<h.KI.length;G++)h.E1.splice(h.E1.indexOf(q[h.KI[G]]),1);h.KI=[]}this.m6(h)};f.Al.prototype.cd=function(h,e,$,Z,c){if($==null||$.KI.length==0)return;
this.Sq($);var q=$.E1,E=$.KI;E.sort(function(J,S){return J-S});console.log(E);var P=q.slice(0),a=[],j=[];
for(var G=0;G<E.length;G++){var L=E[G],H=q[L];j.push(H);P.splice(P.indexOf(H),1)}var _=Math.max(0,Math.min(P.length,E[0]-h.dir));
for(var G=0;G<j.length;G++){P.splice(_+G,0,j[G]);a.push(_+G)}$.E1=P;$.KI=a;this.m6($)};f.Al.a2k=function(h,e,$,Z){var c=new eu(-e.x,-e.y),q=e.d/$.d,E=e.v/$.v,P=[0,0,e.d,e.v];
for(var G=0;G<h.length;G++){var a=f.Al.Hb(h,G);if(Z){a[0]=Math.round(a[0]*q);a[1]=Math.round(a[1]*E);
a[2]=Math.round(a[2]*q);a[3]=Math.round(a[3]*E)}else{f.Al.xD(a,c);f.Al.aaK(a,P)}if(a[0]>=a[2]||a[1]>=a[3]){h.splice(G,1);
G--;continue}f.Al.Ju(h,G,a)}};f.Al.eO=function(h,e){var $=h.E1;for(var G=0;G<h.KI.length;G++){var Z=f.Al.Hb($,h.KI[G]);
f.Al.xD(Z,e);f.Al.Ju($,h.KI[G],Z)}};f.Al.aaK=function(h,e){if(h[0]<e[0])h[0]=e[0];if(h[1]<e[1])h[1]=e[1];
if(e[2]<h[2])h[2]=e[2];if(e[3]<h[3])h[3]=e[3]};f.Al.xD=function(h,e){h[0]=Math.round(h[0]+e.x);h[2]=Math.round(h[2]+e.x);
h[1]=Math.round(h[1]+e.y);h[3]=Math.round(h[3]+e.y)};f.Al.Ju=function(h,G,e){var $=h[G].v.bounds.v;$.Left.v=e[0];
$.Top.v=e[1];$.Rght.v=e[2];$.Btom.v=e[3]};f.Al.Hb=function(h,G){var e=h[G].v.bounds.v;return[e.Left.v,e.Top.v,e.Rght.v,e.Btom.v,G]};
f.Al.eK=function(h){if(h[2]<h[0]){var e=h[0];h[0]=h[2];h[2]=e}if(h[2]==h[0])h[2]++;if(h[3]<h[1]){var e=h[1];
h[1]=h[3];h[3]=e}if(h[3]==h[1])h[3]++};f.Al.Be=function(h,e){var $=1e9,Z=-1e9,c=1e9,q=-1e9;for(var G=0;
G<e.length;G++){var E=f.Al.Hb(h,e[G]);$=Math.min($,E[0]);c=Math.min(c,E[1]);Z=Math.max(Z,E[2]);q=Math.max(q,E[3])}return[$,c,Z,q]};
f.Al.X9=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}}}};
f.DB=function(){f.Al.call(this,[10,41],f.n$,"tools/sselect");this.pp=null;this.V_=null;this.jc=null;
this.R2=null;this.um=!1};f.DB.prototype=new f.Al;f.DB.prototype.yj=function(h,e,$,Z,c){if(h==null)return;
var q=h.z.QX(c.x,c.y),E=f.DB.vU(q,4/h.z.S,h.E1,h.KI);E.pop();if(E.length!=0){this.pp=q;this.jc=E;this.Sq(h);
return}var P=h.E1,a=f.Al.mI(P,q);if(a==-1)h.KI=[];else{var j=h.KI.indexOf(a);if(Z.q(p.ai)){if(j==-1)h.KI.push(a);
else h.KI.splice(j,1)}else{h.KI.sort(function(N,Y){return N-Y});if(j==-1)h.KI=[a];this.pp=q;this.Sq(h);
this.V_=f.Al.Be(P,h.KI);this.R2=[];for(var G=0;G<h.KI.length;G++)this.R2.push(f.Al.Hb(P,h.KI[G]));if(Z.q(p.ys)){var L=P.slice(0),H=h.KI,_=[];
for(var G=0;G<H.length;G++){var a=H[G],J=L[a],S=P.indexOf(J);_.push(S);P.splice(S,0,JSON.parse(JSON.stringify(J)))}h.KI=_}}}h.IL=!0};
f.DB.prototype.oX=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y);if(this.pp==null){var E=f.DB.vU(q,4/h.z.S,h.E1,h.KI),P=E.pop(),a=E.length==0?"default":["ew","nwse","ns","nesw"][P]+"-resize",j=new B(D.E.P,!0);
j.data={e:D.U.Qd,Hz:a};e.f(j);return}if(!this.um&&q.dz(this.pp))return;this.um=!0;var L=h.E1,E=this.jc;
if(E){q=f.fQ.cX(h,q,$,[!0,null,!1]);var H=Math.round(q.x),_=Math.round(q.y);for(var G=0;G<E.length;G+=2){var J=f.Al.Hb(L,E[G]),S=E[G+1];
J[S]=(S&1)==0?H:_;f.Al.eK(J);f.Al.Ju(L,E[G],J)}}else{var N=q.MR(this.pp),Y=this.V_.slice(0);f.Al.xD(Y,N);
var U=new O(Y[0],Y[1],Y[2]-Y[0],Y[3]-Y[1]),g=f.fQ.OM(h,U,$,[!0,null,!1],!0);f.fQ.CY(h,U,g);N.x+=g[0];
N.y+=g[1];for(var G=0;G<h.KI.length;G++)f.Al.Ju(L,h.KI[G],this.R2[G]);f.Al.eO(h,N)}h.IL=!0};f.DB.prototype.f0=function(h,e,$,Z,c){if(this.pp==null)return;
this.m6(h);h.K.yu=null;h.IL=!0;this.pp=null;this.jc=null;this.R2=null;this.um=!1};f.DB.vU=function(h,e,$,Z){var c=h.x,q=h.y,E=[],P=-1,a=[];
for(var G=0;G<Z.length;G++){var j=Z[G],L=f.Al.Hb($,j),H=L[0],_=L[1],J=L[2],S=L[3];if(c<H-e||J+e<c||q<_-e||S+e<q)continue;
var N=[c<H+e,q<_+e,J-e<c,S-e<q],Y=-1;for(var U=0;U<4;U++){if(N[U]&&N[U+1&3])Y=1+2*(U&1);if(N[U])E.push(j,U)}if(Y==-1){if(N[0]||N[2])Y=0;
if(N[1]||N[3])Y=2}if(Y!=-1){P=Y;a.push(j)}}var g=E.length;for(var G=0;G<g;G+=2){var j=E[G],M=E[G+1],C=f.Al.Hb($,j)[M];
for(var U=0;U<Z.length;U++){var y=Z[U];if(a.indexOf(y)!=-1)continue;var L=f.Al.Hb($,y);if(L[M&1]==C)E.push(y,M&1);
if(L[2+(M&1)]==C)E.push(y,2+(M&1))}}E.push(P);return E};f.IU=function(){f.LV.call(this,[10,44],f.aic,"tools/oselect");
this.eu="crosshair";this.alQ=0};f.IU.prototype=new f.LV;f.IU.prototype.Aw=function(h,e,$,Z){if(Math.random()<1/(1+this.alQ)){alert("The cross should be fully inside the object.",3500);
this.alQ++}};f.IU.prototype.AT=function(h,e,$,Z){f.Fw.t_(h,f.LV.Gd,this.a3);if(!Z.xo||!this.yO)return;
var c=this._A(h,$,!1),q=c.d,E=c.v,P=c.x,a=c.y,j=c.x+q,L=c.y+E,H=P+q/2,_=a+E/2,J=f.IU.Ru;h.K.sV={H:[P,a,j,a,j,L,P,L,H-q*J,_,H+q*J,_,H,_-E*J,H,_+E*J],Z:"M L L L Z M L M L".split(" ")};
h.IL=!0};f.IU.Ru=.12;f.IU.prototype.IB=function(h,e,$,Z){h.K.sV=null;h.IL=!0;this.finish(h,e,$,Z)};f.IU.prototype.getSelection=function(h,e,$,Z){if(this.ag.dz(this.X_)||!this.yO)return null;
var c=this._A(h,$,!1),q=h.t[h.C[0]];if(c.nK()||!c.k3(q.rect))return null;return f.LV.n5("ObSl",c)};f.Fw=function(){f.rz.call(this,[10,37],f.ee,"tools/qselect");
this._a="qselect"};f.Fw.prototype=new f.rz;f.Fw.prototype.yj=function(h,e,$,Z,c){this.x3(h,$,Z,c,1);
if(this.Gg==null)return;this.sI(h)};f.Fw.prototype.oX=function(h,e,$,Z,c){this.f2(h,e,$);f.Fw.t_(h,f.LV.Gd,e);
if(this.Iy)this.s2(h,$,c);if(this.Gg==null)return;if(!c.xo)return;var q=this.eI(h,$,Z,c);if(q!=1)this.sI(h)};
f.Fw.t_=function(h,e,$){if(h&&e.key!=f.Fw.Fo(h)){e.key=f.Fw.Fo(h);var Z=h.t[h.C[0]].rect.X(),q="Image Analysis ...";
if(Z==0)return;var c=Z>1e6,E=new B(D.E.P,!0);E.data={e:D.U.Lt,$J:q};if(c)$.f(E);setTimeout(function(){var P=f.Fw.xL(h);
for(var a in P)e[a]=P[a];var E=new B(D.E.P,!0);E.data={e:D.U.WZ,$J:q};if(c)$.f(E)},30)}};f.Fw.Fo=function(h){var e=h.C[0],$=h.t[e],Z=$.rect,c=Z.d,q=Z.v,E=c*q,P=$.buffer;
return[e,Z.x,Z.y,c,q,P[0],P[1],P[2],P[3]].join(",")};f.Fw.xL=function(h){var e=h.C[0],$=h.t[e],Z=$.rect,c=Z.d,q=Z.v,E=c*q,P=$.buffer,a=Date.now(),j=s.m(E);
j.fill(128);var L=s.G0.Mk(P,c,q);console.log(Date.now()-a);var H={key:f.Fw.Fo(h),bx:P,rect:Z.clone(),EN:c,CD:q,wO:12,a9I:!1,C7:j,_W:L,N:s.m(E),J3:null,XO:null,Cm:null};
f.Fw.Gi(H);return H};f.Fw.Gi=function(h,e){var $=h.EN,Z=h.CD,c=0,q=0,E=Date.now(),P=h.J3!=null&&s.G0.ai6(h._W.MW,h.J3.MW,h.J3.el,h.C7);
c=Date.now()-E;E=Date.now();if(!P&&!h.a9I){h.J3=s.G0.SX(h._W,$,Z,h.C7,h.wO);if(!s.G0.ai6(h._W.MW,h.J3.MW,h.J3.el,h.C7)){h.a9I=!0;
console.log("conflict")}h.XO=s.G0.ahC(h.bx,$,Z,h.J3.MW,h.J3.el);h.Cm=[h.XO[0].slice(0),[]];q=Date.now()-E;
E=Date.now()}var E=Date.now();if(e){h.Cm[0].set(h.XO[0]);var a=h.XO[1],j=h.Cm[1];for(var L=0;L<a.length;
L++)j[L]=a[L].slice(0);s.G0.a4V(h.J3.MW,$,Z,h.J3.el,h.C7,h.N,h.Cm)}};function cy(h,e,$,Z,c,q,E,P){this.LE=null;
this.v9=h?h.slice(0):null;this.sR=4;this.X_=null;this.CE=null;this.$s=null;this.BR=-1;this.yR=null;this.aab=!1;
this.a9n=[];for(var G=0;G<8;G++)this.a9n.push(cE.a8_(0,PIMG.rotate,-.5,-.5,-45-G*45));this.a6R=e;this.afJ=$;
this.a4l=Z;this.akl=c;this.a0A=q;this.bM=E;this.a3R=P}cy.prototype.BG=function(){return this.BR!=-1};
cy.prototype.k5=function(){return this.v9.slice(0)};cy.prototype.ph=function(h){this.v9=h};cy.prototype.a1j=function(){return this.Cs(this.v9)};
cy.prototype.a4y=function(){return this.sR};cy.prototype.ajv=function(h){this.sR=h};cy.prototype.Pd=function(h){if(h==null)h=this.v9;
if(this.sR==9)return this.X_;else return this.Cs(h)[this.sR]};cy.prototype.aiB=function(h){if(this.sR==9)this.X_=h.clone();
else{var e=this.Pd(),$=new i7(1,0,0,1,h.x-e.x,h.y-e.y);s.a.J(this.v9,$,this.v9)}};cy.prototype.vR=function(h,e,$){var Z=this.iS(h,e),c;
if(Z==9)return"default";if(Z==10){if($)return null;return!this.a6R?"move":null}if(Z==-1||Z==4)return null;
if(Z==11){var q=this.Pd().MR(h);c=90-Math.atan2(q.y,q.x)*180/Math.PI;var E=Math.round(8*(c/360));E=(E+8)%8;
return this.a9n[E]}else{var P=this._C(h,this.v9);c=[135,90,45,180,0,0,225,270,315][Z];var a=s.I.w1(this.v9);
c+=Math.atan2(-a[3],a[0])*180/Math.PI;var j="ew nesw ns nwse ew nesw ns nwse".split(" "),E=Math.round(8*(c/360));
E=(E+8)%8;return j[E]+"-resize"}};cy.prototype._C=function(h,e){var $=s.I.vy(s.I.w1(e)),Z=new Float64Array(2);
s.I.YG(h.x,h.y,$,Z);return new eu(Z[0],Z[1])};cy.prototype.BT=function(h){var e=this._C(h,this.v9);return 0<=e.x&&e.x<=1&&0<=e.y&&e.y<=1};
cy.prototype.yj=function(h,e,$,Z,c,q){this.aab=q;this.yR=Z;var E=h.z.S,P;if(this.v9==null)Z=f.fQ.cX(h,Z,e);
this.$s=Z.clone();if(this.v9==null){this.$s.offset(1,1);var a=c==null?1:1/c;this.v9=[Z.x,Z.y,Z.x+1,Z.y,Z.x+1,Z.y+a,Z.x,Z.y+a];
P=8}else{P=this.iS(Z,E);if(0<=P&&P<=8)this.$s=this.Cs(this.v9)[P]}this.LE=this.v9.slice(0);this.BR=P;
this.Fs(h,e);this.CE=this.Pd();return P!=-1};cy.prototype.iS=function(h,e){var $=-1,Z=this.Cs(),c=6*D.M()/e;
if($==-1)if(eu.nj(this.Pd(),h)<c)$=9;if($==-1)for(var G=0;G<Z.length;G++)if(G!=4&&eu.nj(Z[G],h)<c)$=G;
if($==-1||this.bM==4){if(this.BT(h)){if(this.a6R)$=10}else{var q=this._C(h,this.v9),E=new O(0,0,1,1);
E.P5(.2,.2);$=E.B4(q)&&this.bM!=3?11:10}}return $};cy.prototype.oX=function(h,e,$,Z){if(this.BR==-1)return;
this.yR=Z;var c=$.q(p.ai),q=$.q(p.ys),E=$.q(p.tm),P=h.z.S,a=this.$s,j=this.BR,L=this.Cs(),H=f.fQ.cX(h,a,e),_=f.fQ.cX(h,Z,e),J,S;
if(j==9){var L=this.Cs(),N=-1;for(var G=0;G<L.length;G++)if(eu.nj(L[G],_)*P<10)N=G;this.sR=N==-1?9:N;
this.X_=c?f.mT.W1(H,_):_.clone()}else if(j==10){S=s.a.Be(this.LE);var Y=S.x,U=S.y;S.offset(Z.x-a.x,Z.y-a.y);
if(this._l()){S.x=Math.round(S.x);S.y=Math.round(S.y)}J=f.fQ.OM(h,S,e);var g=new i7(1,0,0,1,S.x-Y+J[0],S.y-U+J[1]);
s.a.J(this.LE,g,this.v9)}else if(j==11){var M=this.Pd(this.LE),C=M.MR(Z),y=M.MR(a),i=Math.atan2(C.y,C.x),Q=Math.atan2(y.y,y.x),g=new i7(1,0,0,1,-M.x,-M.y),m=Math.PI/12;
if(c)g.rotate(Math.round((Q-i)/m)*m);else g.rotate(Q-i);g.translate(M.x,M.y);s.a.J(this.LE,g,this.v9)}else{var n,u=this.LE,K=j==0||j==2||j==6||j==8;
if(this.bM==1){if(K)c=q=E=!0}else if(this.bM==2&&K&&this.aab!=!0)E=!0;if(this.bM==3)E=!1;if(this.a4l&&K&&E){var G=[0,0,2,0,0,0,6,0,4,0][j],F=-1,b=_.x,d=_.y;
if(c){var W=G+6&7,A=G+10&7,z=cy.jM(u[G],u[G+1],u[W],u[W+1],_.x,_.y),T=cy.jM(u[G],u[G+1],u[A],u[A+1],_.x,_.y),R=z[2]<T[2]?z:T;
b=R[0];d=R[1];if(q)F=z[2]<T[2]?W:A}else if(q)F=G+4&7;n=u.slice(0);if(F!=-1){var I=u[F],r=u[F+1],x=(u[G]+I)/2,X=(u[G+1]+r)/2;
n[F]=x-(b-x);n[F+1]=X-(d-X)}n[G]=b;n[G+1]=d}else if(K&&q){var M=this.CE,l=M.x,hH=M.y,hZ=H.x-l,gj=H.y-hH,hO=1,d3=1;
if(Math.abs(hZ)>=1)hO=(_.x-l)/hZ;if(Math.abs(gj)>=1)d3=(_.y-hH)/gj;if(c)hO=d3=(hO+d3)/2;var v=new i7;
v.translate(-l,-hH);v.scale(hO,d3);v.translate(l,hH);n=u.slice(0);s.a.J(n,v,n)}else{if(this._l()){_.x=Math.round(_.x);
_.y=Math.round(_.y)}var hl=[0,1,2,5,8,7,6,3],ht=hl[(hl.indexOf(j)+4)%8],ga=[];for(var G=0;G<3;G++)for(var F=0;
F<3;F++)ga.push(new eu(F/2,G/2));var M=this.CE,eB=this._C(_,u),bP=this._C(a,u),ek=q&&(this.sR==4||this.sR==9)?this._C(M,u):ga[ht],b_=new i7,fz=new i7,hO=(eB.x-ek.x)/(bP.x-ek.x);
if(hO==0)hO=1e-4;var d3=(eB.y-ek.y)/(bP.y-ek.y);if(d3==0)d3=1e-4;if(this.akl){hO=Math.max(hO,0);d3=Math.max(d3,0)}if(j==0||j==2||j==6||j==8){if(c||this.a0A)b_.scale(hO,hO);
else b_.scale(hO,d3)}if(j==1||j==3||j==5||j==7){var ca=this.a0A;if(j==1||j==7)b_.scale(ca?d3:1,d3);else b_.scale(hO,ca?hO:1);
if(this.afJ&&E){if(j==1||j==7)fz.Ma=(eB.x-ek.x)/(eB.y-ek.y);else fz.O=(eB.y-ek.y)/(eB.x-ek.x)}}var v=new i7;
v.translate(-ek.x,-ek.y);v.concat(b_);v.concat(fz);v.translate(ek.x,ek.y);n=[0,0,1,0,1,1,0,1];s.a.J(n,v,n);
var R=s.I.w1(u);s.I.apply(R,n)}if(cy.Po(n))this.v9=n}this.Fs(h,e);if(J)f.fQ.CY(h,S,J)};cy.jM=function(h,e,$,Z,c,q){var E=$-h,P=Z-e,a=c-h,j=q-e,L=E*E+P*P,H=a*E+j*P,_=H/L,J=h+_*E,S=e+_*P,N=c-J,Y=q-S;
return[J,S,Math.sqrt(N*N+Y*Y)]};cy.prototype._l=function(){var h=this.v9;return Math.abs(h[1]-h[3])<1e-6&&Math.abs(h[2]-h[4])<1e-6||Math.abs(h[0]-h[2])<1e-6&&Math.abs(h[3]-h[5])<1e-6};
cy.Po=function(h){return s.a.iy(h)||s.a.iy([h[6],h[7],h[4],h[5],h[2],h[3],h[0],h[1]])};cy.prototype.f0=function(h,e,$,Z){this.BR=-1;
this.yR=null;h.K.yu=null;h.K.Yr=[];h.IL=!0};cy.prototype.WI=function(h,e,$){var Z=$.cy();if(Z.x||Z.y){var c=new i7(1,0,0,1,Z.x,Z.y);
s.a.J(this.v9,c,this.v9);this.Fs(h,e);return!0}return!1};cy.prototype.Cs=function(h){if(h==null)h=this.v9;
var e=h[6]-h[0],$=h[7]-h[1],Z=h[4]-h[2],c=h[5]-h[3],q=[h[0],h[1],h[2],h[3],h[0]+e/2,h[1]+$/2,h[2]+Z/2,h[3]+c/2,h[6],h[7],h[4],h[5]],E=[];
for(var G=0;G<3;G++){var P=G*4,a=q[P+0],j=q[P+1],L=q[P+2],H=q[P+3];E.push(new eu(a,j));E.push(new eu(a+(L-a)/2,j+(H-j)/2));
E.push(new eu(L,H))}return E};cy.prototype.Fs=function(h,e,$){if($==null)$=!1;var Z=this.Cs(),c=Z[0],q=Z[2],E=Z[6],P=Z[8];
h.K.sV={Z:[],H:[]};h.K.sV.Z.push("M","L","L","L","Z");h.K.sV.H.push(c.x,c.y,q.x,q.y,P.x,P.y,E.x,E.y);
if(this.a3R){var a=q.MR(c),j=E.MR(c),L=P.MR(q),H=P.MR(E);for(var G=0;G<3;G++){h.K.sV.Z.push("M","L","M","L");
var _=(G+1)*.25;h.K.sV.H.push(c.x+a.x*_,c.y+a.y*_,E.x+H.x*_,E.y+H.y*_);h.K.sV.H.push(c.x+j.x*_,c.y+j.y*_,q.x+L.x*_,q.y+L.y*_)}}h.z.og=new O(0,0,eu.nj(Z[0],Z[2]),eu.nj(Z[0],Z[6]));
if(this.BR!=-1&&this.BR<9&&this.yR){var J=h.z.ab(this.yR.x,this.yR.y);f.ar.Ia(J.x+10,J.y-10,h.z.og,h,e)}if(!$){h.K.wf=[];
for(var G=0;G<Z.length;G++)if(G!=4)h.K.wf.push(Z[G].x,Z[G].y);var S=this.Pd();h.K.wf.push(S.x,S.y)}h.IL=!0};
cy.prototype.clear=function(h){h.z.og=null;h.K.yu=null;h.K.sV=null;h.K.wf=[];h.IL=!0};function b7(h,e){this.FO=null;
this.BR=-1;this.EG(h)}b7.prototype.uP=function(){return JSON.parse(JSON.stringify(this.FO))};b7.prototype.EG=function(h){this.FO=JSON.parse(JSON.stringify(h))};
b7.prototype.BT=function(h){return!0};b7.prototype.vR=function(h,e){var $=this.iS(h,e);if($==-1)return"default";
return"pointer"};b7.prototype.yj=function(h,e,$,Z){this.BR=this.iS(Z,h.z.S);return this.BR!=-1};b7.prototype.iS=function(h,e){var $=-1,Z=20*D.M(),c=this.km();
for(var G=0;G<c.length;G++)if(eu.nj(c[G],h)*e<Z)$=G;return $};b7.prototype.oX=function(h,e,$,Z){if(this.BR==-1)return;
var c=h.z.S,q=this.BR,E=s.FO.a8(this.FO);E[q*2]=Z.x;E[q*2+1]=Z.y;s.FO.WX(E,this.FO)};b7.prototype.f0=function(h,e,$,Z){this.BR=-1;
h.IL=!0};b7.prototype.WI=function(h,e,$){var Z=$.cy();if(Z.x||Z.y){var c=new i7(1,0,0,1,Z.x,Z.y);s.a.J(this.v9,c,this.v9);
this.Fs(h)}};b7.prototype.km=function(h){var e=s.FO.a8(this.FO),$=[];for(var G=0;G<e.length;G+=2)$.push(new eu(e[G],e[G+1]));
return $};b7.prototype.Fs=function(h){var e=this.km();h.K.sV={Z:[],H:[]};h.K.sV.Z.push("M","C","C","C","C");
var $=[0,1,2,3,7,11,15,14,13,12,8,4,0];for(var G=0;G<$.length;G++)h.K.sV.H.push(e[$[G]].x,e[$[G]].y);
h.K.sV.Z.push("M","L","L","M","L","L","M","L","L","M","L","L");$=[4,0,1,2,3,7,11,15,14,13,12,8];for(var G=0;
G<$.length;G++)h.K.sV.H.push(e[$[G]].x,e[$[G]].y);h.K.wf=[];for(var G=0;G<e.length;G++)h.K.wf.push(e[G].x,e[G].y);
h.IL=!0};b7.prototype.clear=function(h){h.K.sV=null;h.K.wf=[];h.IL=!0};var bn={};bn.px=function(h){this.id=h;
this.a3=null};bn.px.prototype.a1=function(h,e,$,Z,c){};bn.px.prototype.t4=function(h,e){};bn.px.prototype.yc=function(h,e){};
bn.px.prototype.track=function(h){var e=new B(D.E.Kz,!0);e.data=h;h.FJ=!0;this.a3.f(e)};bn.History=function(){bn.px.call(this,f.C_);
this.IN=!0;this.agh=0};bn.History.prototype=new bn.px;bn.History.prototype.a1=function(h,e,$,Z){$.qk=!0;
if(h.e=="h_itemchange"){if(h.index<$.Nd)for(var G=$.Nd;G>h.index;G--)this.fG($);if(h.index>$.Nd)for(var G=$.Nd;
G<h.index;G++)this.Gw($)}if(h.e=="h_stepfwd")this.Gw($);if(h.e=="h_stepbck")this.fG($);if(h.e=="h_undoredo"){var c=this.IN||this.agh!=$.Nd;
if(c){this.fG($);c=!1}else{this.Gw($);c=!0}this.IN=c;this.agh=$.Nd}else this.IN=!0};bn.History.prototype.fG=function(h){if(h.Nd==0)return;
var e=h.history[h.Nd];e.F.yc(e.data,h);h.Nd--};bn.History.prototype.Gw=function(h){if(h.Nd==h.history.length-1)return;
var e=h.history[h.Nd+1];e.F.t4(e.data,h);h.Nd++};bn.Od=function(){bn.px.call(this,f.S$);this.a3=null};
bn.Od.prototype=new bn.px;bn.Od.prototype.a1=function(h,e,$,Z,c){this.a3=e;var q=h.e,E=h.$!=null?h.$:$.C.length!=0?$.C[0]:$.t.length-1,P=$.t[E];
$.uu=!0;if(q==o.fg&&$.N==null)q=o.pA;if(q==o.fC){var a=new fW([6,33],this),j=P.vG()?["pass"].concat(eN.Pn):eN.Pn,L=h.$!=null?[h.$]:$.C,H=JSON.stringify(L),_=[];
for(var G=0;G<L.length;G++)_.push($.t[L[G]].oG);a.data={e:q,DL:H,cO:_,El:j[h.El]};$.eG(a);this.t4(a.data,$);
this.track(bw.wv("Md",{t:"enum",v:{BlnM:eN.ie[h.El]}}))}if(q==o.uz){var a,J=$.fX(),L=h.$!=null?[h.$]:$.C,H=JSON.stringify(L);
if(J&&J.data&&J.data.e==q&&J.data.DL==H)a=J;else{var S=bw.wv("Opct",{t:"UntF",v:{type:"#Prc",val:0}});
this.track(S);var _=[];for(var G=0;G<L.length;G++)_.push($.t[L[G]].opacity);a=new fW([6,32],this);a.data={e:q,DL:H,cO:_,El:h.El,ih:S.TJ};
$.eG(a)}a.data.El=h.El;a.data.ih.T.v.Opct.v.val=Math.round(h.El*100/255);this.t4(a.data,$)}if(q==o.xM){if(P.add.iOpa==null)P.add.iOpa=255;
var a,J=$.fX();if(J&&J.data&&J.data.e==q&&J.data.$==E)a=J;else{a=new fW("Fill Opacity Change",this);
a.data={e:q,$:E,cO:P.add.iOpa,El:h.El};$.eG(a)}a.data.El=h.El;this.t4(a.data,$)}if(q==o.yT){var N=h.El,Y=h.$!=null?[h.$]:$.C.slice(0),U=[],g=[],a;
for(var M=0;M<Y.length;M++){var C=$.t[Y[M]];if(C.add.lspf==null)C.add.lspf=0;var _=C.add.lspf,y=_;for(var G=0;
G<N[0].length;G++){var i=N[1][G],Q=1<<i;if((y&Q)==0&&N[0][G])y^=Q;else if((y&Q)!=0&&!N[0][G])y^=Q}U.push(_);
g.push(y)}var J=$.fX(),L=JSON.stringify(Y);if(J&&J.data&&J.data.e==q&&JSON.stringify(J.data.DL)==L){a=J;
a.data.El=g}else{var a=new fW([6,57,1],this);a.data={e:q,DL:L,cO:U,El:g};$.eG(a)}this.t4(a.data,$)}if(q==o.Pm){var m="----",n=h.JG,y=null;
for(var G=0;G<eA.BK.Di.length;G++)if(P.add[eA.BK.Di[G]])m=eA.BK.Di[G];var u=P.add[m];if(n=="TySh")y=gK.Zh(50,50,c.wM);
var a=new fW("Layer Type",this);a.data={e:q,$:E,ad_:[m,u],JG:[n,y]};$.eG(a);this.t4(a.data,$)}if(q==o.dw){var Y=[];
if(Z.q(p.ys)){var K=$.fX(),F=K?K.data:null;if(K!=null&&K.F==this&&F.e==o.dw&&F.DL.length!=1){var b=new B(D.E.A);
b.F=f.C_;b.data={e:"h_stepbck"};e.f(b);if(F.$==E)return}var d=$.root.fH(E),W=$.wR(null,E);while(d.parent!=$.root){W.push(d.parent.index);
d=d.parent}for(var G=0;G<$.t.length;G++){var A=$.t[G],z=A.o6(),T=W.indexOf(G)!=-1;if(!T&&z)Y.push(G);
if(G==E&&!z)Y.push(G)}}else{Y.push(E);var z=$.t[E].o6(),S={Lw:z?"hide":"show",TJ:{classID:z?"Hd":"Shw",null:{t:"VlLs",v:[bw.NQ("Lyr",!0)]}}};
this.track(S)}var a=new fW("Layer visibility",this,!0);a.data={e:q,DL:Y,$:E};$.eG(a);this.t4(a.data,$)}if(q==o.II){var S={Lw:"select",TJ:{classID:"null",MkVs:{t:"bool",v:!1}}},R,escape=!1;
if($.z.RI.join("")!="111"){$.z.RI=[1,1,1];$.IL=!0}if(Z.q(p.tm)||h.a3Y==0){var I=$.C.indexOf(E);if(I==-1)$.C.push(E);
else if($.C.length>1)$.C.splice(I,1);$.C.sort(function(a,bC){return a-bC});S.TJ.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelection"}};
R=E}else if(Z.q(p.ai)&&!Z.q(p.ys)&&h.Fy>0){q=h.Fy==1?o.HW:h.Fy==2?o.ps:o.l0;escape=!0}else if((Z.q(p.ai)||h.a3Y==1)&&$.C.length>0){var r=Math.min(E,$.C[0]),x=Math.max(E,$.C[$.C.length-1]);
$.C=[];for(var G=r;G<=x;G++)if($.t[G].add.lsct!=hJ.RS)$.C.push(G);S.TJ.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelectionContinuous"}};
R=E}else{R=E;var A=$.t[E];if(A&&A.vG()&&h.akP)A.add.lsct=hJ.sE;else if($.C.length==1&&$.C[0]==E&&h.Fy==A.jw){return}$.C=[E];
$.Kw()}if(R!=null&&R<$.t.length){S.TJ.null={t:"obj ",v:[{t:"name",v:{classID:"Lyr",val:$.t[R].getName()}}]},this.track(S)}if(!escape){if($.C.length==1){var X=$.C[0];
for(var G=0;G<$.t.length;G++){if(G==X)continue;var C=$.t[G];C.jw=0;C.Hy=!1}var P=$.t[X];if(h.Fy==2){P.Hy=!P.Hy;
$.fV=[]}else if(P){P.jw=h.Fy<=0?0:h.Fy;if(h.Fy==1||h.Fy==3){var l=h.Fy==3?P.wV($).r:P.kV();l.rV=!1}}}else for(var G=0;
G<$.t.length;G++){var C=$.t[G];C.jw=0;C.Hy=!1}$.mG=null;$.qk=!0}}if(q==o.HW||q==o.l0){var hH=q==o.HW,l=hH?P.kV():P.wV($).r;
if(l==null)return;var a=new fW(l.isEnabled?hH?[6,15]:[6,42]:hH?[6,14]:[6,41],this);a.data={e:q,$:E};
$.eG(a);this.t4(a.data,$)}if(q==o.ps){var l=P.add.vmsk;if(l==null)return;var a=new fW(l.isEnabled?[6,17]:[6,16],this);
a.data={e:q,$:E};$.eG(a);this.t4(a.data,$)}if(q==o.PR){var hZ=P.add.lsct==hJ.sE?hJ.Y7:hJ.sE;if(Z.q(p.tm)){var gj=$.root.fH($.t.indexOf(P)).parent;
for(var G=0;G<gj.children.length;G++){var hO=gj.children[G].$;if(hO.vG())hO.add.lsct=hZ}}else P.add.lsct=hZ;
$.qk=!0}if(q==o.C9){if(!$.Lk(E))return;var a=new fW(P._U?[6,19]:[6,18],this);a.data={e:q,$:E};$.eG(a);
if(h.El==null||h.El!=P._U)this.t4(a.data,$);this.track({Lw:"groupEvent",TJ:{classID:"GrpL",null:{t:"obj ",v:[bw.NQ("Lyr",!0)]}}})}if(q==o.y1){if(P.Kl())P.GO-=32;
else P.GO+=32;$.qk=!0}if(q==o._B||q==o.R3){var a;if(q==o._B)a=new fW(P.add.lmfx.masterFXSwitch.v?[6,30]:[6,29],this);
if(q==o.R3)a=new fW(P.add.SoLd.filterFX.v.enab.v?[6,44]:[6,43],this);a.data={e:q,$:E};$.eG(a);this.t4(a.data,$)}if(q==o.pP||q==o.Xz){var X=h.index,a;
if(q==o.pP)a=new fW(P.add.lmfx[c3.qV[X[0]]].v[X[1]].v.enab.v?[6,30]:[6,29],this);if(q==o.Xz)a=new fW(P.add.SoLd.filterFX.v.filterFXList.v[X].v.enab.v?[6,44]:[6,43],this);
a.data={e:q,$:E,index:h.index};$.eG(a);this.t4(a.data,$)}if(q==o.KW){if(h.src==h.Lh)return;var d3=$.t[h.src],v=$.t[h.Lh],hl=d3.add.lmfx?JSON.stringify(d3.add.lmfx):"",ht=v.add.lmfx?JSON.stringify(v.add.lmfx):"";
if(v.add.lmfx==null){v.add.lmfx=JSON.parse(c3.default);for(var G=0;G<c3.order.length;G++)v.add.lmfx[c3.qV[G]]={t:"VlLs",v:[]}}if(h.AW==null){v.add.lmfx=JSON.parse(hl);
if(!h.mW)delete d3.add.lmfx}else{var ga=h.AW[0],eB=c3.qV[ga];if(c3.OE.indexOf(c3.order[ga])==-1)v.add.lmfx[eB].v=[];
v.add.lmfx[eB].v.push(d3.add.lmfx[eB].v[h.AW[1]]);if(!h.mW)d3.add.lmfx[eB].v.splice(h.AW[1],1)}var bP=d3.add.lmfx?JSON.stringify(d3.add.lmfx):"",ek=v.add.lmfx?JSON.stringify(v.add.lmfx):"";
if(!v.Kl())v.GO+=32;var a=new fW("Move Layer Styles",this);a.data={e:q,ao9:h.src,a7K:h.Lh,aj_:hl,a2j:ht,a5P:bP,a14:ek};
$.eG(a);this.t4(a.data,$)}if(q==o.iZ){var C=$.t[h.src],b_=JSON.stringify(C.add.SoLd),fz=JSON.parse(b_),ca=fz.filterFX.v.filterFXList.v;
ca.splice(h.AW,1);var a=new fW([6,53],this);a.data={e:o.Rz,_7:[{vq:h.src,AN:[b_,JSON.stringify(fz)]}]};
$.eG(a);this.t4(a.data,$)}if(q==o.$R){var d3=$.t[h.src],v=$.t[h.Lh],gf=[];if(d3!=v&&v.add.SoLd==null){alert("Target layer is not a smart object!");
return}if(d3==v&&!h.mW&&(h.AW==h.Rp||h.AW==-1))return;var bb=d3.wV($),b_=JSON.stringify(d3.add.SoLd),fz=JSON.parse(b_),ca=fz.filterFX.v.filterFXList.v;
if(d3==v){ca.splice(h.Rp,0,ca[h.AW]);if(!h.mW)ca.splice(h.AW+(h.AW<h.Rp?0:1),1);gf.push({vq:h.src,AN:[b_,JSON.stringify(fz)]})}else if(h.AW==-1){var dV=fz.filterFX;
if(!h.mW){delete fz.filterFX;gf.push({vq:h.src,AN:[b_,JSON.stringify(fz)],Mh:[bb,null]})}var ch=v.fi()?v.wV($):null,hE=c9.Gh(bb),dS=JSON.stringify(v.add.SoLd),e1=JSON.parse(dS);
e1.placed.v=hE.id;e1.filterFX=dV;gf.push({vq:h.Lh,AN:[dS,JSON.stringify(e1)],Mh:[ch,hE]})}else{var eG=ca[h.AW];
if(!h.mW){ca.splice(h.AW,1);gf.push({vq:h.src,AN:[b_,JSON.stringify(fz)]})}var dS=JSON.stringify(v.add.SoLd),e1=JSON.parse(dS);
if(e1.filterFX==null)e1.filterFX=dA.WW();var dq=e1.filterFX.v.filterFXList.v;dq.splice(h.Rp,0,eG);var f2={vq:h.Lh,AN:[dS,JSON.stringify(e1)]};
if(!v.fi()){var hE=c9.jX(v.add.SoLd.placed.v);f2.Mh=[null,hE]}gf.push(f2)}var a=new fW([6,52],this);
a.data={e:o.Rz,_7:gf};$.eG(a);this.t4(a.data,$)}if(q==o.uv){var l=P.kV(),a=new fW(l.MV?[6,26]:[6,25],this);
a.data={e:q,$:E};$.eG(a);this.t4(a.data,$);this.track({Lw:"set",TJ:{classID:"setd",null:{t:"obj ",v:[bw.NQ("Lyr",!0)]},T:{t:"Objc",v:{classID:"Lyr",Usrs:{t:"bool",v:l.MV}}}}})}if(q==o.LP){var l=P.add.vmsk,a=new fW(l.MV?[6,28]:[6,27],this);
a.data={e:q,$:E};$.eG(a);this.t4(a.data,$)}if(q==o.ru){var a3=[],a;for(var G=0;G<$.C.length;G++){var M=$.C[G],A=$.t[M];
if(A.add.vogk)a3.push(M,JSON.stringify(A.add.vogk))}for(var G=0;G<$.fV.length;G++){var M=$.fV[G],A=$.DZ[M];
if(A.add.vogk)a3.push(-1-M,JSON.stringify(A.add.vogk))}s.as.amh($,h.Ny,h.ak0);var bm=[];for(var G=0;
G<$.C.length;G++){var M=$.C[G],A=$.t[M];if(A.add.vogk)bm.push(M,JSON.stringify(A.add.vogk))}for(var G=0;
G<$.fV.length;G++){var M=$.fV[G],A=$.DZ[M];if(A.add.vogk)bm.push(-1-M,JSON.stringify(A.add.vogk))}var J=$.fX();
if(J&&J.data&&J.data.e==q){var h2=!0;for(var G=0;G<a3.length;G+=2)if(a3[G]!=J.data.gb[G])h2=!1;if(h2){a=J;
a.data.z4=bm}}if(a==null){var a=new fW([12,91,1],this);a.data={e:q,gb:a3,z4:bm};$.eG(a)}this.t4(a.data,$)}if(q==o.rb){var a,J=$.fX();
if(J&&J.data&&J.data.e==q&&J.data.$==E){a=J;a.data.o1=JSON.stringify(h.o1)}if(a==null){var a=new fW("Editing Artboard",this);
a.data={e:q,$:E,aiG:JSON.stringify(P.add.artb),o1:JSON.stringify(h.o1)};$.eG(a)}this.t4(a.data,$)}if(q==o.I7){var bm=$.Qe.slice(0),ag=$.vw.slice(0),eU=$.N,iz=$.N;
if(h.oD=="fromAction"){var d2=h.G.Lw,gP=h.G.TJ;if(d2=="make"||d2=="duplicate"){var fa=bm.length,it=!1,ic=!1;
if($.M3())fa--;var eI=new o.kq;eI.name="Alpha "+(fa+1);if(d2=="make"){var iK=gP.Nw.v;eI.color=255;ag=[fa];
eI.rV=!0;eI.lU=iK.Opct.v;if(iK.Nm)eI.name=iK.Nm.v;if(iK.classID=="SCch"){it=!0;iz=null;eI.wx=1}}else{var fA=gP.null.v[0].v;
if(fA.keyID=="fsel")it=!0;else{var iB=f.LV.Sn($);iz=f.LV.Qj($,iB);eI.color=0;eI.rect=iz.rect;eI.channel=iz.channel}}if(it){eI.color=0;
if($.N){eI.rect=$.N.rect.clone();eI.channel=$.N.channel.slice(0)}if(ic){eI.color=255-eI.color;s.vy(eI.channel)}}bm.splice(fa,0,eI)}else if(d2=="delete"){var W=$.vw;
W.sort(function(a,bC){return bC-a});if(W.length==0)return;for(var G=0;G<W.length;G++)bm.splice(W[G],1);
ag=[]}else if(d2=="hide"){bm[ag[0]]=bm[ag[0]].clone();bm[ag[0]].rV=!1}}if(h.oD=="rnm"){bm[h.NS]=bm[h.NS].clone();
bm[h.NS].name=h.name}var a=new fW("Channel Edit",this);a.data={e:q,gb:$.Qe.slice(0),AU:$.vw.slice(0),z4:bm,vK:ag,HC:eU,A9:iz};
this.t4(a.data,$);$.eG(a)}if(q==o.wj){var a=new fW(h.cJ,this);a.data={e:o.wj,UW:$.t.slice(0),T5:h.T5,Ah:$.C.slice(0),p3:h.A9};
$.eG(a);this.t4(a.data,$)}if(q==o.Ml){var hG=$.wR(null,h.$),gO=1e10;if(hG.length==0)return;if($.t.length==hG.length){alert("Project must have at least 1 layer");
return}var dt=[];for(var G=0;G<$.t.length;G++)if(hG.indexOf(G)==-1)dt.push($.t[G]);for(var G=0;G<hG.length;
G++)gO=Math.min(gO,hG[G]);gO=Math.max(gO-1,0);while(dt[gO].name=="</Layer group>")gO++;this.track({Lw:"delete",TJ:{classID:"Dlt",null:bw.NQ("Lyr",!0)}});
var a=new fW([6,31],this);a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:[gO]};$.eG(a);this.t4(a.data,$)}if(q==o.dq){var W=h.a9j?h.a9j:$.C,cX=0,dM=!1;
if(W.length==0)return;if(W.length==1&&$.t[W[0]].MX==0){alert(e_.get([15,7,5]));return}var bh=[];for(var G=0;
G<$.t.length;G++){var bi=$.t[G].MX;bh.push(bi);cX=Math.max(cX,bi)}var ik=-1,iW=-1;for(var G=0;G<W.length;
G++){var bi=$.t[W[G]].MX;if(bi==0)dM=!0;else if(ik==-1||ik==bi)ik=bi;else iW=bi}if(!dM)for(var G=0;G<W.length;
G++)$.t[W[G]].MX=0;else if(ik!=-1&&iW==-1)for(var G=0;G<W.length;G++)$.t[W[G]].MX=ik;else for(var G=0;
G<W.length;G++)$.t[W[G]].MX=cX+1;var et=[];for(var G=0;G<$.t.length;G++){var bi=$.t[G].MX;if(et[bi]==null)et[bi]=0;
et[bi]++}for(var G=0;G<$.t.length;G++){var bi=$.t[G].MX;if(et[bi]==1)$.t[G].MX=0}var iy=bh;bh=[];for(var G=0;
G<$.t.length;G++){var bi=$.t[G].MX;bh.push(bi);cX=Math.max(cX,bi)}var a=new fW(dM?[6,54,0]:[6,54,1],this);
a.data={e:o.dq,a9a:iy,adU:bh};$.eG(a);this.t4(a.data,$)}if(q==o.pA&&(h.$!=null||$.C.length!=0)||q==o.LF){var er=$.xP(q==o.pA?h.$:E,null,h.a7r);
if(q==o.LF){var C=er[0],d2=C.add.SoLd.Idnt.v,h$=$.ig(d2).clone();C.add.SoLd.Idnt.v=h$.af=c9.YV()+d2.slice(8);
$.add.lnk2.push(h$)}if(q==o.pA){var dN={Lw:"duplicate",TJ:{classID:"null",null:bw.NQ("Lyr",!0)}};if(h.yW){er[0].aq(h.yW);
dN.Nm={t:"TEXT",v:h.yW}}this.track(dN);h.abZ=h.$}q=o.K4;h.t=er;h.Br=$;h.g1=$}if(q==o.K4){var dQ,cL,ge=h.Br,ds=h.g1;
if(ge!=ds){console.log("ADDLAYERS different projs");var dQ=new O(0,0,ge.d,ge.v),cL=new O(0,0,ds.d,ds.v),dH=[],hs=[];
for(var G=0;G<h.t.length;G++){var C=h.t[G];if(C.add.SoLd==null)continue;var d2=C.add.SoLd.Idnt.v;if(dH.indexOf(d2)==-1){dH.push(d2);
hs.push(c9.YV()+d2.slice(8))}C.add.SoLd.Idnt.v=hs[dH.indexOf(d2)];var bb=C.wV(ge);if(bb){ge.K$(bb);ds.Ts(bb)}}if(dH.length>0){if(ds.add.lnk2==null)ds.add.lnk2=[];
for(var G=0;G<dH.length;G++){var cb=ge.ig(dH[G]),h$=cb.clone();h$.af=hs[G];ds.add.lnk2.push(h$)}}}var eU=ds.C.slice(0);
eU.sort(function(a,bC){return a-bC});var dt=ds.t.slice(0),iz=[],fe=-1;for(var G=0;G<eU.length;G++)fe=Math.max(fe,eU[G]);
if(h.abZ!=null)fe=h.abZ;fe++;for(var G=0;G<h.t.length;G++){var A=h.t[G];dt.splice(fe,0,A);iz.push(fe);
fe++}if(h.t[h.t.length-1].vG())iz=[fe-1];var a=new fW([6,0],this);a.data={e:o.wj,UW:ds.t.slice(0),T5:dt,Ah:eU,p3:iz};
ds.eG(a);this.t4(a.data,ds)}if(q==o.UI){var ej=h.$!=null?[h.$]:$.wR(),dt=$.t.slice(0);for(var G=0;G<ej.length;
G++){var A=$.t[ej[G]].clone();A.dm($);dt.splice(ej[G],1,A)}var a=new fW([6,8],this);a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:$.C.slice(0)};
$.eG(a);this.t4(a.data,$)}if(q==o.ER){var dt=$.t.slice(0),A=dt[$.C[0]]=dt[$.C[0]].clone(),gd=A.add.lmfx,c5=0;
delete A.add.lmfx;var cs=s.m(A.rect.X());s.z0(A.buffer,cs,3);var hc=hn.RU(gd,null,cs,A.rect,$,A.rect).type;
for(var G=0;G<c3.order.length;G++){var eO=c3.order[G],hF=hc[eO],i4=G>7;for(var dO=0;dO<hF.length;dO++){var g0=hF[dO],L=$.by();
L.oG=g0.Uz;L.opacity=Math.round(255*g0.H6);L._U=!i4;L.buffer=g0.Hl;L.rect=g0.XR;L.rect.offset(A.rect.x,A.rect.y);
L.aq(A.getName()+"'s "+e_.get(c3.names[G]));dt.splice($.C[0]+(i4?0:1),0,L);if(i4)c5++}}var a=new fW("Styles to Layers",this);
a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:[$.C[0]+c5]};$.eG(a);this.t4(a.data,$)}if(q==o.Wz){var ej=$.wR(),dt=$.t.slice(0),a6=new O(0,0,$.d,$.v);
for(var G=0;G<ej.length;G++){var ao=$.t[ej[G]],dv=ao.o6();ao.QL(!0);var en=$.root.fH(ej[G]);if(ao.vG())continue;
if(en==null)continue;var A=ao.clone();A.dm($);var eg=en._A($,!0),hm=$.t;$.a4([ao]);$.s();$.cm();A.buffer=s.m(eg.X()*4);
s.hX($.v2(),a6,A.buffer,eg);A.rect=eg;A.opacity=255;A.add.iOpa=255;A.oG="norm";A.s();A.V.j9=!0;$.a4(hm);
if(A.add.lmfx)delete A.add.lmfx;A.r=A.MN=null;dt.splice(ej[G],1,A);A.QL(dv);ao.QL(dv)}var a=new fW([6,34],this);
a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:$.C.slice(0)};$.eG(a);this.t4(a.data,$)}if(q==o.Rd){var ej=$.wR(),dt=$.t.slice(0);
for(var G=0;G<ej.length;G++){var A=$.t[ej[G]],iD=A.add.TySh;if(iD==null)continue;var C=new br(iD.Kx,c.R0),hQ=s.a.G9(cg.VL(C,iD));
for(var dy in hQ){var a$=hQ[dy],hO=A.clone();delete hO.add.TySh;hO.GO=hO.GO|1<<4;hO.add.SoCo=JSON.parse(JSON.stringify(c3.nf[0]));
var hY=hO.add.SoCo.Clr.v;hY.Rd.v=parseInt(dy.slice(1,3),16);hY.Grn.v=parseInt(dy.slice(3,5),16);hY.Bl.v=parseInt(dy.slice(5,7),16);
var b3=new o.MM;b3.b=s.a.b0(a$,!1);if(hO.add.vmsk!=null){hO.add.vmsk.agn();b3.concat(hO.add.vmsk)}hO.add.vmsk=b3;
hO.add.vstk=JSON.parse(JSON.stringify(c3.oF.default));hO.__();hO.ZB($);dt.splice(dt.indexOf(A),0,hO)}dt.splice(dt.indexOf(A),1)}var iz=$.C.slice(0);
for(var G=iz.length-1;G>=0;G--)if(iz[G]>=dt.length)iz.splice(G,1);var a=new fW([6,40],this);a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:iz};
$.eG(a);this.t4(a.data,$)}if(q==o.f_){var bK=$.C.length;if(bK<2){alert("Select two or more layers.");
return}if(!$.Nv())return;var hO=$.t[$.C[0]].clone(),dt=[];for(var G=0;G<$.t.length;G++)if($.C.indexOf(G)==-1)dt.push($.t[G]);
dt.splice($.C[0],0,hO);for(var G=1;G<bK;G++)if($.t[$.C[G]].rect.X()>2e6){alert("Blended areas are too large.");
return}for(var G=1;G<bK;G++){var A=$.t[$.C[G]],hB=A.rect.clone();hB.P5(1,1);var bC=s.m(hB.X()*4);s.hX(A.buffer,A.rect,bC,hB);
hO.extend(hB);var cK=s.m(hB.X()*4);s.hX(hO.buffer,hO.rect,cK,hB);var a=s.m(hB.X());s.z0(bC,a,3);s.round(a,200);
s.Jk(a,bC,3);s.p.Jn("norm",bC,hB,cK,hB,hB,1);s.WO.xS(cK,a,hB);s.hX(cK,hB,hO.buffer,hO.rect)}var a=new fW([2,10,0],this);
a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:[$.C[0]]};$.eG(a);this.t4(a.data,$)}if(q==o.YP){var dt=$.t.slice(0),ag=$.C.slice(0);
for(var G=0;G<dt.length;G++){var A=dt[G],fd=A.add.vmsk;if(A.SV()&&fd&&A.add.vstk.strokeEnabled.v&&!A.add.vstk.fillEnabled.v){var b6=fd.b,hp=0,bj=-1;
for(var dO=0;dO<b6.length;dO++){if((b6[dO].type==0||b6[dO].type==3)&&b6[dO].aN!=-1){hp++;if(b6[dO].type==3&&bj==-1){b6[dO].pg=b6[dO].aN=1;
bj=dO}}}if(hp>1&&bj!=-1){console.log("separating an open path into a new layer");A=A.clone();fd=A.add.vmsk;
b6=fd.b;var L=b6[bj].length,hz=A.clone();hz.add.lyid=$.ne();fd.b=b6.slice(0,2).concat(b6.slice(bj,bj+L+1));
fd.C=[];A.ZB($);A.s();var bl=hz.add.vmsk.b;hz.add.vmsk.b=bl.slice(0,bj).concat(bl.slice(bj+L+1,bl.length));
hz.add.vmsk.C=[];hz.ZB($);dt[G]=A;dt.splice(G+1,0,hz);for(var dO=0;dO<ag.length;dO++)if(ag[dO]>G)ag[dO]++;
var dK=ag.indexOf(G);if(dK!=-1){ag.splice(dK+1,0,G+1)}}}}if(dt.length!=$.t.length){var a=new fW("Splitting open paths",this);
a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:ag};$.eG(a);this.t4(a.data,$)}}if(q==o.Vk){this.a1({e:o.YP},e,$,Z,c);
var eU=$.C.slice(0),hm=$.t.slice(0),ej=$.wR();if(ej.length==0)return;$.u7(ej,!1,h.gw);var a=new fW([6,36,0],this);
a.data={e:o.wj,UW:hm,T5:$.t.slice(),Ah:eU,p3:$.C.slice(0)};$.eG(a);this.t4(a.data,$)}if(q==o.iG){var b_=P.add.SoLd;
if(b_==null)return;var d2=b_.Idnt.v,cd=$.ig(d2);cd.v2(!1);var fN=cd.bH[0],hB=cd.bH[1];if(s.AC(fN)){alert("The smart object contains transparency.");
return}var gQ=cE.fy("jpg").pT([[fN.buffer]],hB.d,hB.v,[90]);this.a1({e:o.XI,q4:$,data:new Uint8Array(gQ),id:d2,gw:"jpg"},e,$,Z,c);
console.log($.add);return}if(q==o.XI){var cb=h.q4.ig(h.id),h$=cb.clone();h$.raw=h.data;if(h.gw){h$.B6="    ";
h$.cp="    ";h$.mD=h$.mD+"."+h.gw}else{h$.B6="8BIM";h$.cp="8BPB";h$.mD=h$.mD+".psd"}h$.v2(!1);cb.v2(!1);
var a=new fW([6,36,1],this);a.data={e:o.XI,id:h.id,U0:cb,Wd:h$};h.q4.eG(a);this.t4(a.data,h.q4)}if(q==o.G6){var a=new fW([6,36,4],this);
a.data={e:q,$:E,rs:P.add.SoLd.Impr.v.classID,El:h.El};$.eG(a);this.t4(a.data,$)}if(q==o.V6){var fK,b1;
if(h.mo){fK=h.q4;b1=h.mo}else{h.q4.Nq();h.q4.pL();h.q4.s();h.q4.cm();h.q4.v2();fK=cE.fy("PSD").pT(h.q4,0,0,[!0,!0]);
b1=h.q4.name}if(!(fK instanceof ArrayBuffer))throw"e";fK=new Uint8Array(fK);var I=h.xU!=null?h.xU:$.C[$.C.length-1]+1,d4=$.L4(fK,b1,0,0,!0),dt=$.t.slice(0);
dt.splice(I,0,d4);var a=new fW([6,36,2],this);a.data={e:o.wj,UW:$.t.slice(),T5:dt,Ah:$.C.slice(0),p3:[dt.indexOf(d4)]};
$.eG(a);this.t4(a.data,$)}if(q==o.tG&&h.oD=="merge"){var cr=[],gJ=$.root.children,c0=0;for(var G=0;G<gJ.length;
G++){var d=gJ[G],A=d.$,hU=d.children,gX=!0;if(!A.vG()||hU.length==0)continue;for(var dO=0;dO<hU.length;
dO++)if(!hU[dO].$.getName().startsWith("_a_")){gX=!1;break}if(gX)cr.push($.t.indexOf(A))}var bo=[];for(var G=0;
G<cr.length;G++)if($.C.indexOf(cr[G])!=-1)bo.push(cr[G]);if(bo.length>=2)cr=bo;if(cr.length<2){alert("At least two animation folders needed (whose layers start with \"_a_\").",3500);
return}var eF=[];for(var G=0;G<cr.length;G++)eF.push($.t[cr[G]].getName());var hF=[];for(var eQ=0;eQ<cr.length;
eQ++){var d=$.root.fH(cr[eQ]),f2=[[],[],0,eQ];hF.push(f2);for(var G=0;G<d.children.length;G++){var M=d.children[G].index,A=d.children[G].$,eI=A.getName(),e$=20,ay=eI.split(",");
if(ay.length>1){var gL=parseInt(ay.pop());if(!isNaN(gL)&&gL!=0)e$=gL}f2[0].push(A);f2[1].push(e$);f2[2]+=e$}}hF.sort(function(a,bC){return bC[2]-a[2]});
var bO=hF[0],cl=bO[2];for(var io=1;io<hF.length;io++){var f2=hF[io],e2=1,cO=f2[1].slice(0),cn=0;while((e2+1)*f2[2]<=bO[2]){e2++;
cO=cO.concat(f2[1])}f2[1]=cO;f2[2]*=e2;var hv=bO[2]/f2[2];for(var G=0;G<f2[1].length;G++){var iE=Math.floor(f2[1][G]*hv);
f2[1][G]=iE;cn+=iE}while(cn<cl){cn++;f2[1][f2[1].length-1]++}f2[2]=cn}var iR=[],hP=[],iE=[];for(var G=0;
G<hF.length;G++){iR.push(0);hP.push(0)}while(c0<cl){var bT=1e9,fa=-1;for(var G=0;G<hF.length;G++){var gU=hF[G][1],g4=iR[G];
if(g4!=gU.length&&hP[G]+gU[g4]<c0+bT){fa=G;bT=hP[G]+gU[g4]-c0}}hP[fa]+=hF[fa][1][iR[fa]];iR[fa]++;if(bT!=0){iE.push(bT);
c0+=bT}}for(var G=0;G<iE.length;G++){var ae=iE[G],fX=ae>>>1;if(ae<17){var M=iE.length-1;if(G==0)iE[1]+=ae;
else if(G==iE.length-1)iE[M-1]+=ae;else{iE[G-1]+=fX;iE[G+1]+=ae-fX}iE.splice(G,1);G--}}var dv=[],a6=new O(0,0,$.d,$.v);
for(var G=0;G<$.t.length;G++){dv[G]=$.t[G].o6();$.t[G].QL(!1)}var fU=$.C.slice(0);$.C=cr;var hG=$.wR();
hG.sort(function(a,bC){return a-bC});var dt=[];for(var G=0;G<$.t.length;G++){if(hG.indexOf(G)==-1)dt.push($.t[G])}hF.sort(function(a,bC){return a[3]-bC[3]});
function bX(gU,fD){var G=0,fm=0;while(fm+gU[G]<=fD){fm+=gU[G];G++}return G}c0=0;dt.splice(hG[0],0,$.d_());
for(var dT=0;dT<iE.length;dT++){var Y=[];for(var G=0;G<hF.length;G++){var g4=bX(hF[G][1],c0)%hF[G][0].length,A=hF[G][0][g4];
Y.push(A)}var A=$.by();for(var G=0;G<hF.length;G++){var eD=Y[G],gj=$.t[cr[G]];eD.QL(!0);gj.QL(!0)}$.s();
$.cm();var fN=$.v2();A.rect=s.ZC(fN,a6);A.buffer=s.m(A.rect.X()*4);s.hX(fN,a6,A.buffer,A.rect);for(var G=0;
G<hF.length;G++){var eD=Y[G],gj=$.t[cr[G]];eD.QL(!1);gj.QL(!1)}A.QL(dT==0);A.aq("_a_frm"+dT+","+iE[dT]);
dt.splice(hG[0]+1+dT,0,A);c0+=iE[dT]}var A=$.by();A.aq(eF.join(" + "));A.oG="pass";A.add.lsct=hJ.Y7;
A.GO=24;dt.splice(hG[0]+1+iE.length,0,A);for(var G=0;G<$.t.length;G++)$.t[G].QL(dv[G]);var a=new fW([6,12,0],this);
a.data={e:o.wj,UW:$.t,T5:dt,Ah:fU,p3:[hG[0]+1+iE.length]};$.eG(a);this.t4(a.data,$)}if(q==o.lb||q==o.U1||q==o.Xx){var hm=$.t.slice(0),eU=$.C.slice(0),ih=!0,d4,iz;
if(q==o.lb)$.C=[E,E-1];if(q==o.Xx){$.C=[];for(var G=0;G<$.t.length;G++)if($.t[G].o6())$.C.push(G)}var ej=$.wR();
ej.sort(function(a,bC){return a-bC});var c$=new O,a6=new O(0,0,$.d,$.v);for(var G=0;G<ej.length;G++){var M=ej[G],A=$.t[M];
ih=ih&&A.SV()&&A.add.vmsk!=null;c$=c$.iJ($.root.fH(M)._A($,!0))}if(ih){d4=$.t[ej[0]].clone();var fd=d4.add.vmsk;
for(var G=1;G<ej.length;G++){var L=$.t[ej[G]],bl=o.MM.rP(L.add.vmsk.b);fd.b=fd.b.concat(bl.slice(2));
d4.add.vogk=d4.add.vogk.concat(JSON.parse(JSON.stringify(L.add.vogk)))}d4.add.vmsk.w4=!0;d4.ZB($)}else if(a6.x1(c$)){d4=$.by();
d4.aq($.t[ej[ej.length-1]].getName());d4.rect=c$;d4.buffer=s.m(c$.X()*4);var fR=$.v2(ej);s.hX(fR,a6,d4.buffer,c$);
d4.s()}else{$.u7(ej,!0);d4=$.t[$.C[0]];$.t.splice($.C[0],1);var a8=$.ig(d4.add.SoLd.Idnt.v);$.add.lnk2.splice($.add.lnk2.indexOf(a8),1);
delete d4.add.SoLd}var hK=Z.q(p.ys),gE=-1;if(h.TJ&&h.TJ.Dplc&&h.TJ.Dplc.v)hK=!0;if(hK&&q==o.Xx&&$.t[eU[0]].J7()&&$.t[eU[0]].rect.nK()){gE=eU[0];
d4.aq($.t[gE].getName())}var dt=[];for(var G=0;G<$.t.length;G++)if(hK||ej.indexOf(G)==-1)if(G!=gE)dt.push($.t[G]);
var gc=ej[ej.length-1],dC=gc==$.t.length-1?null:$.t[gc+1],az=dC?dt.indexOf(dC):dt.length;dt.splice(az,0,d4);
iz=[az];var a=new fW([6,12,0],this);a.data={e:o.wj,UW:hm,T5:dt,Ah:eU,p3:iz};$.eG(a);this.t4(a.data,$)}if(q==o.YY){var hO=$.by();
hO.rect=new O(0,0,$.d,$.v);hO.buffer=s.m(hO.rect.X()*4);s.Ut(hO.buffer,4294967295);s.p.Jn("norm",$.v2(),hO.rect,hO.buffer,hO.rect,hO.rect,1);
hO.aq("Background");hO.add.lspf=1<<2;var a=new fW([6,12,1],this);a.data={e:o.wj,UW:$.t.slice(),T5:[hO],Ah:$.C.slice(0),p3:[0]};
$.eG(a);this.t4(a.data,$)}if(q==o.kd||q==o.tc||q==o.xG||q==o.Y0||q==o.fg){var A=q==o.fg?$.t[$.C[0]].clone():$.by(),e8=e_.get([0,3]),aL=h.yW,aO=!1,bz,c8;
if(q==o.xG)e8=e_.get([12,76,1]);if(q==o.fg){var ao=$.t[$.C[0]],aU=ao.Pe($,$.N);if(aU==null){alert("Copied area is empty");
return}A.rect=aU.rect;A.buffer=aU.Yu;A.dm($)}if(q==o.Y0){A.rect=bn.Od.jH(h.Fp,$);A.buffer=h.Fp.buffer.slice(0);
if(h.X0&&$.N){A.r=new o.kq;A.r.rect=$.N.rect;A.r.color=0;A.r.channel=$.N.channel.slice(0)}}if(q==o.kd){this.track({Lw:"make",TJ:{classID:"Mk",null:bw.NQ("Lyr")}})}if(q==o.tc){A.GO|=16;
var bM=h.TJ.Usng.v,hb=bM.Type.v,e7=es.Ri[hb.classID];e8=e_.get(es.names[e7]);if(bM.Nm)aL=bM.Nm.v;A.add[e7]=dA.X3(e7);
if(A.add[e7]==null)A.add[e7]={};for(var gZ in hb)A.add[e7][gZ]=JSON.parse(JSON.stringify(hb[gZ]));A.r=bn.Od.j5($)}if(q==o.xG){A.GO|=16;
var gP=h.TJ,bM=gP.Usng.v,hq=bM.Type.v,he=bM.Shp;if(he==null){var c2=$.U9(),hQ=c2[0],aG=c2[1];if(aG.length!=0){var ff=hQ[aG[0]].add;
A.add.vmsk=ff.vmsk.clone();A.add.vstk=JSON.parse(JSON.stringify(c3.oF.default));A.add.vogk=JSON.parse(JSON.stringify(ff.vogk));
$.fV=[]}else A.r=bn.Od.j5($)}else{console.log(bM);A.add.vmsk=new o.MM;A.add.vstk=JSON.parse(JSON.stringify(bM.strokeStyle?bM.strokeStyle.v:c3.oF.default));
A.add.vogk=[];if(he){var a5=s.as.oy(he);if(a5){A.add.vogk=[a5];A.add.vmsk.b.push({type:0,aN:1,length:0});
s.as.qh(A.add.vogk,A.add.vmsk)}else{he=he.v;var g2=he.classID;if(g2=="Plgn"){var gb=he.Cntr.v,iO=he.corner.v;
gb=new eu(gb.Hrzn.v.val,gb.Vrtc.v.val);iO=new eu(iO.Hrzn.v.val,iO.Vrtc.v.val);A.add.vmsk.b=s.W.d5.$X(gb.x,gb.y,Math.sqrt(iO.x*iO.x+iO.y*iO.y),Math.atan2(iO.y,iO.x),he.sides.v,0)}else if(g2=="customShape"){var bF=s.as.yb(he),ea=bF[2]-bF[0],hw=bF[3]-bF[1],ax=c.bY,d$,fC;
for(var G=0;G<ax.length;G++)if(ax[G].dA==he.Nm.v)d$=ax[G];if(d$){fC=o.MM.rP(d$.b);s.W.wD(fC,new i7(ea,0,0,hw,bF[0],bF[1]))}else fC=s.W.d5.Rect(bF[0],bF[1],ea,hw,0);
A.add.vmsk.b=fC}A.__()}}}var gh={solidColorLayer:0,gradientLayer:1,patternLayer:2}[hq.classID],bv=["SoCo","GdFl","PtFl"][gh];
A.add[bv]=JSON.parse(JSON.stringify(c3.nf[gh]));bn.Od.Ww(hq,A.add[bv],gh);if(he==null)e8=e_.get([6,48,0,gh]);
if(bv=="PtFl")$.x0(hn.lg(A.add[bv].Ptrn.v,c.Zl));A.ZB($)}var bK=bn.Od.yw($,e8+" ");A.aq(e8+" "+(bK+1));
if(aL)A.aq(aL);var hf=$.C.length==0?$.t.length-1:$.C[$.C.length-1],gw=$.t[hf];if(q==o.xG&&gw.J7()&&gw.rect.nK()){aO=!0;
A.aq(gw.getName());bz=hf}else{bz=hf+1;if(gw&&gw.add.lsct==hJ.sE)bz--}if(h.agM)bz=Math.max(0,bz-1);var dt=$.t.slice(0);
dt.splice(bz,aO?1:0,A);var hh=[5,2];if(q==o.kd)hh=[6,13];if(q==o.tc)hh=[6,1];if(q==o.xG){hh=[6,48,1];
var he=h.TJ.Usng.v.Shp;if(he){var c4={Rctn:[10,32],Ln:[10,35],Elps:[10,33],Plgn:[12,93,0],customShape:[10,31]}[he.v.classID];
if(c4)hh=c4}}if(q==o.fg){hh=[6,49]}if(q==o.fg||q==o.xG||q==o.Y0)if($.N)c8=[$.N,null];var a=new fW(hh,this);
a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:[bz],OO:c8};$.eG(a);this.t4(a.data,$);if(q==o.xG&&he==null&&gh!=0||q==o.tc){var eX=new B(D.E.P);
eX.data={e:D.U.$Z,yq:ce.WT.RJ};e.f(eX)}}if(q==o.u0){var A=$.by();A.aq(e_.get([0,4])+" "+$.t.length);
A.oG="pass";A.add.lsct=hJ.sE;A.GO=24;var fk=$.d_(),hf=E,bz=hf+1,dt=$.t.slice(0);dt.splice(bz,0,fk,A);
var a=new fW([6,20],this);a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:[bz+1]};$.eG(a);this.t4(a.data,$)}if(q==o.T9||q==o.iK){var a2=q==o.T9?h.source:$.C[0],a1,fr,h8=$.C.indexOf(a2)!=-1,i8=Z.q(p.ys)|h.a9Z,h6;
if(h8)h6=$.wR();else h6=$.dk(a2);h6.sort(function(a,bC){return a-bC});if(q==o.T9){a1=h.target;fr=h.yM>.5}else if(h.target!=null){a1=h.target;
fr=!0;$.j3=!0}else{var ex=h.oD;fr=ex>1;if(ex==0){a1=$.t.length-1}if(ex==1){a1=h6[h6.length-1]+1;var L=$.dk(a1);
if(L.indexOf(a2)==-1)a1+=L.length-1}if(ex==2){a1=h6[0]-1;var L=$.dk(a1);if(L.indexOf(a2)==-1)a1-=L.length-1}if(ex==3){a1=0}if(a1<0||a1>$.t.length-1)return;
$.j3=!0}if(h6.indexOf(a1)!=-1&&!i8)return;var cq=$.t[a1],dt=[];if(i8)dt=$.t.slice(0);else for(var G=0;
G<$.t.length;G++)if(h6.indexOf(G)==-1)dt.push($.t[G]);var aJ=dt.indexOf(cq);if(q==o.T9&&cq.vG()&&cq.add.lsct==hJ.Y7&&h.yM>.8)aJ-=$.dk(a1).length-1;
var fG=[],gW=i8?$.xP(h8?null:a2):null;for(var G=0;G<h6.length;G++){var fP=aJ+(fr?0:1)+G,C=i8?gW[G]:$.t[h6[G]];
dt.splice(fP,0,C);fG.push(fP)}var a=new fW(i8?[6,0]:[6,35],this);a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:fG};
$.eG(a);this.t4(a.data,$);var gP={classID:"move",null:bw.NQ("Lyr",!0),T:{t:"obj ",v:[{t:"indx",v:{classID:"Lyr",val:aJ+(fr?0:1)}}]},Adjs:{t:"bool",v:!1},Vrsn:{t:"long",v:5},Dplc:{t:"long",v:i8}};
this.track({Lw:"move",TJ:gP})}if(q==o.VT){if(h.i4){if(P==null||!P.vG())return;var d=$.root.fH(E),g$=$.t.indexOf(d.a7n),dt=$.t.slice(0);
dt.splice(E,1);dt.splice(g$,1);var ag=[];for(var G=g$;G<E-1;G++)ag.push(G);var a=new fW("Ungroup Layers",this);
a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:ag};$.eG(a);this.t4(a.data,$)}else{var A=$.by(),cV=e_.get([0,4])+" ";
A.aq(cV+(bn.Od.yw($,cV)+1));A.oG="pass";if(h.yW)A.aq(h.yW);A.add.lsct=$.C.length==1?hJ.sE:hJ.Y7;A.GO=24;
var fk=$.d_(),h6=$.wR();if(h6.length==0)return;h6.sort(function(a,bC){return a-bC});var dt=[];for(var G=0;
G<$.t.length;G++)if(h6.indexOf(G)==-1)dt.push($.t[G]);var hf=$.C[$.C.length-1]-h6.length;dt.splice(hf+1,0,fk);
for(var G=0;G<h6.length;G++)dt.splice(hf+2+G,0,$.t[h6[G]]);dt.splice(hf+2+h6.length,0,A);var a=new fW([6,9],this);
a.data={e:o.wj,UW:$.t.slice(0),T5:dt,Ah:$.C.slice(0),p3:[dt.indexOf(A)]};$.eG(a);this.t4(a.data,$);var S={Lw:"make",FJ:!0};
S.TJ={classID:"Mk",null:bw.NQ("layerSection"),From:bw.NQ("Lyr",!0),Usng:{t:"Objc",v:{classID:"layerSection",Nm:{t:"TEXT",v:A.getName()}}}};
this.track(S)}}if(q==o.BN){if($.C.length!=1)return;var I=$.C[0],f8=Z.q(p.ys);if($.t[I].kV()==null){q=o.KN;
h.bM=$.N?!f8?"RvlS":"HdSl":!f8?"RvlA":"HdAl"}else q=o.eZ}if(q==o.KN){if($.C.length!=1)return;var I=$.C[0],A=$.t[I];
if(A.add.vmsk&&A.r==null)A.ZB($);var eW=A.kV();if(eW==null||h.aa_){var a=new fW([6,21],this),cT=new o.kq,cD=h.bM,b8=cD=="RvlS"||cD=="HdSl";
if(cD=="RvlS"||cD=="HdAl"||cD=="Trns")cT.color=0;if(b8){cT.channel=$.N.channel.slice(0);cT.rect=$.N.rect.clone();
if(cD=="HdSl")s.vy(cT.channel)}if(cD=="Trns"){cT.rect=A.rect.clone();cT.channel=s.m(A.rect.X());s.z0(A.buffer,cT.channel,3)}a.data={e:q,$:I,r:cT,kL:eW,OO:b8?[$.N,null]:null};
$.eG(a);this.t4(a.data,$);$.t[I].jw=1;this.track({Lw:"make",TJ:{__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:cD}}}})}}else if(q==o.Qu){var d3=$.t[h.src],v=$.t[h.Lh];
if(v.kV())return;var a=new fW([6,21],this),cT=d3.kV();if(h.mW){a.data={e:o.KN,$:h.Lh,r:cT.clone()}}else{a.data={e:q,src:h.src,Lh:h.Lh,r:cT}}$.eG(a);
this.t4(a.data,$)}if(q==o.Y_){if($.C.length!=1)return;var I=E;if($.t[I].kV()!=null){var a=new fW([6,22],this);
a.data={e:q,$:I,r:$.t[I].kV()};$.eG(a);this.t4(a.data,$)}}if(q==o.aM){var hm=$.t.slice(0),hO=P.clone(),g3=hO.kV();
s.w2(g3.tM(hO.rect),hO.rect,hO.buffer,hO.rect);bn.Od.hM($,hO);$.t[$.C[0]]=hO;var a=new fW([5,8],this);
a.data={e:o.wj,UW:hm,T5:$.t.slice(),Ah:$.C.slice(0),p3:$.C.slice(0)};$.eG(a);this.t4(a.data,$)}if(q==o.jh){if($.C.length!=1)return;
var I=$.C[0];if($.t[I].wV($).r==null){var a=new fW([6,45],this);a.data={e:q,$:I,r:new o.kq};$.eG(a);
this.t4(a.data,$)}}if(q==o.Yc){if($.C.length!=1)return;var I=$.C[0];if($.t[I].wV($).r!=null){var a=new fW([6,46],this);
a.data={e:q,$:I,r:$.t[I].wV($).r};$.eG(a);this.t4(a.data,$)}}if(q==o.Ko){if(h.$==null&&$.C.length!=1)return;
if($.t[E].fi()){var a=new fW([6,47],this),b_=JSON.stringify($.t[E].add.SoLd),fz=JSON.parse(b_);delete fz.filterFX;
a.data={e:o.Rz,_7:[{vq:E,AN:[b_,JSON.stringify(fz)],Mh:[$.t[E].wV($),null]}]};$.eG(a);this.t4(a.data,$)}}if(q==o.eZ){if($.C.length!=1)return;
if(P.add.vmsk==null){var a=new fW([6,23],this),b6=$.U9(),W=b6[1],b6=b6[0],cT,a5;if(h.ams&&W.length!=0){var ff=b6[W[0]].add;
cT=ff.vmsk.clone();a5=ff.vogk}else{cT=new o.MM;a5=[];cT.b[1].all=h.a28?0:1}a.data={e:q,$:E,XU:!0,r:cT,as:JSON.stringify(a5),oF:null};
if(P.SV()){a.data.oF=JSON.stringify(c3.oF.default)}$.eG(a);this.t4(a.data,$)}}if(q==o.w6){var d3=$.t[h.src],v=$.t[h.Lh];
if(v.add.vmsk)return;var a=new fW([6,23],this),fd=d3.add.vmsk;a.data={$:h.Lh,XU:d3.Hy,r:fd.clone(),as:JSON.stringify(d3.add.vogk),oF:d3.add.vstk?JSON.stringify(d3.add.vstk):null};
if(h.mW){a.data.e=o.eZ}else{a.data.e=q;a.data.src=h.src;a.data.Lh=h.Lh}$.eG(a);this.t4(a.data,$)}if(q==o.iq){if($.C.length!=1)return;
var A=$.t[E],fd=A.add.vmsk;if(fd!=null){var a=new fW([6,24],this);a.data={e:q,$:E,XU:A.Hy,r:fd,as:JSON.stringify(A.add.vogk),oF:A.add.vstk?JSON.stringify(A.add.vstk):null};
$.eG(a);this.t4(a.data,$)}}if(q==o.KX){var a=new fW("Metadata",this);a.data={e:q,sr:JSON.stringify($.ZG),QB:JSON.stringify(h.QB)};
$.eG(a);this.t4(a.data,$)}if(q==o.On){var ig=h.Lh?h.Lh:$,aP=ig.name,aL=h.G+".psd";if(aP==aL)return;var a=new fW([6,37],this);
a.data={e:q,abF:aP,yW:aL};if(h.ala!=!0)ig.eG(a);this.t4(a.data,ig)}if(q==o.tG&&h.oD=="makeframes"){var bp=[];
for(var G=0;G<$.C.length;G++){var M=$.C[G],A=$.t[M],aH=A.getName();if(aH.startsWith("_a_")||A.add.lsct==hJ.RS)continue;
bp.push([M,aH,"_a_"+aH,A.add.lnsr,null])}var a=new fW([6,37],this);a.data={e:o.WG,Av:bp};$.eG(a);this.t4(a.data,$)}if(q==o.WG){var aP=P.getName(),aL=h.name.substring(0,255);
if(aP==aL)return;var a=new fW([6,37],this);a.data={e:q,Av:[[E,aP,aL,P.add.lnsr,null]]};$.eG(a);this.t4(a.data,$);
this.track(bw.wv("Nm",{t:"TEXT",v:aL}))}if(q==o.Eo){var ir=$.wR(),eM=[],ef=[];for(var G=0;G<ir.length;
G++){eM.push($.t[ir[G]].add.lclr);ef.push(h.a79)}var a=new fW([6,38],this);a.data={e:q,t:ir,ad6:eM,a4n:ef};
$.eG(a);this.t4(a.data,$)}if(q==o.qe){var a=$.history[$.Nd];if(a!=null&&a.F==this&&a.data.e==q&&a.data.$==h.WP&&a.data.El.wP==h.fD.wP)a.data.El=h.fD;
else{a=new fW("Mask Density / Feather",this);a.data={e:q,$:h.WP,rs:$.t[h.WP].E2(h.fD.wP),El:h.fD};$.eG(a)}this.t4(a.data,$)}if(q==o.Rh){var ai=JSON.stringify(h.G),ac=JSON.parse(ai),a=$.history[$.Nd];
if(a!=null&&a.F==this&&a.data.e==q&&a.data.gU==h.gU&&a.data.DL.join(",")==h.DL.join(",")){for(var G=0;
G<h.DL.length;G++)a.data.nc[G]=ac;if(a.data.TJ&&ac.cp!=0)bn.Od.Ww(ac.mQ,a.data.TJ.T.v,ac.cp-1)}else{a=new fW([11,6],this);
a.data={e:q,DL:h.DL,gU:h.gU,a5b:[],nc:[]};var da=!1;for(var G=0;G<h.DL.length;G++){var M=h.DL[G],A=$.t[M],f7=h.gU?f.XT.d4($,M):JSON.parse(JSON.stringify(A.add.vstk));
a.data.a5b.push(f7);a.data.nc.push(ac);if(JSON.stringify(f7)!=ai)da=!0}if(!da)return;$.eG(a);if(h.gU&&ac.cp>0){var gP=a.data.TJ={classID:"setd",null:bw.NQ("contentLayer",!0),T:{t:"Objc",v:{}}},bv=["SoCo","GdFl","PtFl"][ac.cp-1];
bn.Od.Ww(ac.mQ,gP.T.v,ac.cp-1);this.track({Lw:"set",TJ:gP})}}if(h.gU&&ac.cp==3)$.x0(hn.lg(ac.mQ.Ptrn.v,c.Zl));
if(!h.gU){var bE=ac.strokeStyleContent.v;if(bE.classID==c3.oF.$v[2])$.x0(hn.lg(bE.Ptrn.v,c.Zl))}this.t4(a.data,$)}};
bn.Od.Ww=function(h,e,$){var Z=[c3.O7,c3.bv,c3.Tk][$];if(e.classID==null)e.classID=["solidColorLayer","gradientLayer","patternLayer"][$];
for(var G=0;G<Z.length;G++)if(h[Z[G]])e[Z[G]]=JSON.parse(JSON.stringify(h[Z[G]]))};bn.Od.j5=function(h){var e=new o.kq;
if(h.N!=null){e.color=0;e.channel=h.N.channel.slice(0);e.rect=h.N.rect.clone()}return e};bn.Od.di=function(h,e,$,Z){var c=Z.d/$.d,q=Z.v/$.v,E=Z.d/2,P=Z.v/2,a=s.a.Kf(Z).H;
for(var G=0;G<h.t.length;G++){var j=h.t[G],L=j.add.SoLd;if(L==null||L.Idnt.v!=e)continue;if(c!=1||q!=1){var H=f.o.Pu(L.nonAffineTransform),_=s.I.w1(H,Z),J=new i7;
J.translate(-E,-P);J.scale(c,q);J.translate(E,P);var S=s.I.n_(_,s.I.dW(J)),N=a.slice(0);s.I.apply(S,N);
L.Trnf=f.o.h8(N);L.nonAffineTransform=f.o.h8(N)}j.l3(h)}h.s()};bn.Od.a1z=function(h,e,$){e.color=255-e.color;
s.vy(e.channel);e.w4=!0;h.ZB($);$.s()};bn.Od.prototype.yc=function(h,e){var $=h.e,Z=e.t[h.$];e.uu=!0;
if($==o.XI){e.add.lnk2.splice(e.add.lnk2.indexOf(h.Wd),1,h.U0);bn.Od.di(e,h.id,h.Wd.bH[1],h.U0.bH[1])}if($==o.G6){Z.add.SoLd.Impr.v.classID=h.rs;
Z.l3(e)}if($==o.fC){var c=JSON.parse(h.DL);for(var G=0;G<c.length;G++)e.t[c[G]].oG=h.cO[G];e.s()}if($==o.uz){var c=JSON.parse(h.DL);
for(var G=0;G<c.length;G++)e.t[c[G]].opacity=h.cO[G];e.s()}if($==o.yT){var c=JSON.parse(h.DL);for(var G=0;
G<c.length;G++)if(e.t[c[G]].add.lsct!=hJ.RS)e.t[c[G]].add.lspf=h.cO[G]}if($==o.Pm){var q=h.JG,E=h.ad_;
delete Z.add[q[0]];if(E[0]!="----")Z.add[E[0]]=E[1]}if($==o.xM){Z.add.iOpa=h.cO;e.s()}if($==o.dw){for(var G=0;
G<h.DL.length;G++){var P=e.t[h.DL[G]];P.QL(!P.o6())}e.s()}if($==o.HW){var a=Z.kV();a.isEnabled=!a.isEnabled;
Z.ZB(e);e.s()}if($==o.l0){var a=Z.wV(e).r;a.isEnabled=!a.isEnabled;Z.s();e.s()}if($==o.ps){var a=Z.add.vmsk;
a.isEnabled=!a.isEnabled;if(!a.isEnabled){if(Z.MN){Z.r=Z.MN;Z.MN=null}else Z.r=null}else if(Z.r){Z.MN=Z.r;
Z.r=null}Z.ZB(e);e.s()}if($==o.C9){Z._U=!Z._U;e.s()}if($==o._B){Z.add.lmfx.masterFXSwitch.v=!Z.add.lmfx.masterFXSwitch.v;
Z.V.j9=!0;e.s()}if($==o.R3){Z.add.SoLd.filterFX.v.enab.v=!Z.add.SoLd.filterFX.v.enab.v;Z.fO(e);e.s()}if($==o.pP){var j=h.index,L=Z.add.lmfx[c3.qV[j[0]]].v[j[1]].v;
L.enab.v=!L.enab.v;Z.V.j9=!0;e.s()}if($==o.KW){var H=e.t[h.ao9],_=e.t[h.a7K],J=h.aj_,S=h.a2j;if(J=="")delete H.add.lmfx;
else H.add.lmfx=JSON.parse(J);if(S=="")delete _.add.lmfx;else _.add.lmfx=JSON.parse(S);H.V.j9=!0;_.V.j9=!0;
e.s()}if($==o.Xz){var N=Z.add.SoLd.filterFX.v.filterFXList.v[h.index].v;N.enab.v=!N.enab.v;Z.fO(e);e.s()}if($==o.W5){Z.add.SoLd.filterFX.v=JSON.parse(JSON.stringify(h.acU));
Z.fO(e);e.s()}if($==o.uv){var a=Z.kV();a.MV=!a.MV}if($==o.LP){var a=Z.add.vmsk;a.MV=!a.MV}if($==o.ru){var Y=h.gb;
for(var G=0;G<Y.length;G+=2){var U=Y[G],P=U>=0?e.t[U]:e.DZ[-1-U];P.add.vogk=JSON.parse(Y[G+1]);s.as.qh(P.add.vogk,P.add.vmsk);
if(U>=0)P.ZB(e)}e.s()}if($==o.rb){Z.add.artb=JSON.parse(h.aiG);e.s()}if($==o.I7){e.N=h.HC;e.Qe=h.gb.slice(0);
e.vw=h.AU.slice(0);e.IL=e.qk=!0}if($==o.dq){var g=h.a9a;for(var G=0;G<g.length;G++)e.t[G].MX=g[G]}if($==o.wj){if(h.Ah)e.C=h.Ah;
if(h.OO)e.N=h.OO[0];e.mG=null;e.s();e.a4(h.UW)}if($==o.KN){bn.Od.hM(e,Z);if(h.kL)bn.Od.uN(e,Z,h.kL);
if(h.OO){var M=h.OO[0];if(M==null)delete e.N;else e.N=M}}if($==o.Qu){bn.Od.hM(e,e.t[h.Lh]);bn.Od.uN(e,e.t[h.src],h.r)}if($==o.Y_){bn.Od.uN(e,Z,h.r)}if($==o.jh){Z.wV(e).r=null;
Z.s();e.s()}if($==o.Yc){Z.wV(e).r=h.r;Z.s();e.s()}if($==o.Rz){bn.Od.rW(e,h._7,0)}if($==o.eZ){bn.Od.Pk(e,Z,!0)}if($==o.w6){bn.Od.Pk(e,e.t[h.Lh],h.r.isEnabled);
bn.Od.Zq(e,e.t[h.src],h)}if($==o.iq){bn.Od.Zq(e,Z,h)}if($==o.KX){e.ZG=JSON.parse(h.sr)}if($==o.On){e.name=h.abF}if($==o.WG){for(var G=0;
G<h.Av.length;G++){var C=h.Av[G],P=e.t[C[0]];P.aq(C[1]);if(C[3])P.add.lnsr=C[3];else delete P.add.lnsr}}if($==o.Eo){for(var G=0;
G<h.t.length;G++)e.t[h.t[G]].add.lclr=h.ad6[G]}if($==o.Rh){var y=h.a5b;for(var G=0;G<h.DL.length;G++){var P=e.t[h.DL[G]],i=y[G];
if(!h.gU)P.add.vstk=JSON.parse(JSON.stringify(i));else f.XT.Sf(P,JSON.parse(JSON.stringify(i)));P.r5(e)}e.s()}if($==o.qe){Z.ja(h.rs);
Z.ZB(e);e.s()}e.qk=!0};bn.Od.prototype.t4=function(h,e){var $=h.e,Z=e.t[h.$];e.uu=!0;if($==o.XI){e.add.lnk2.splice(e.add.lnk2.indexOf(h.U0),1,h.Wd);
bn.Od.di(e,h.id,h.U0.bH[1],h.Wd.bH[1])}if($==o.G6){Z.add.SoLd.Impr.v.classID=h.El;Z.l3(e)}if($==o.fC){var c=JSON.parse(h.DL);
for(var G=0;G<c.length;G++)e.t[c[G]].oG=h.El;e.s()}if($==o.uz){var c=JSON.parse(h.DL);for(var G=0;G<c.length;
G++)e.t[c[G]].opacity=h.El;e.s()}if($==o.yT){var c=JSON.parse(h.DL);for(var G=0;G<c.length;G++)if(e.t[c[G]].add.lsct!=hJ.RS)e.t[c[G]].add.lspf=h.El[G]}if($==o.Pm){var q=h.ad_,E=h.JG;
delete Z.add[q[0]];if(E[0]!="----")Z.add[E[0]]=E[1]}if($==o.xM){Z.add.iOpa=h.El;e.s()}if($==o.dw){for(var G=0;
G<h.DL.length;G++){var P=e.t[h.DL[G]];P.QL(!P.o6())}e.s()}if($==o.HW){var a=Z.kV();a.isEnabled=!a.isEnabled;
Z.ZB(e);e.s()}if($==o.l0){var a=Z.wV(e).r;a.isEnabled=!a.isEnabled;Z.s();e.s()}if($==o.ps){var a=Z.add.vmsk;
a.isEnabled=!a.isEnabled;if(!a.isEnabled){if(Z.MN){Z.r=Z.MN;Z.MN=null}else Z.r=null}else if(Z.r){Z.MN=Z.r;
Z.r=null}Z.ZB(e);e.s()}if($==o.C9){Z._U=!Z._U;e.s()}if($==o._B){Z.add.lmfx.masterFXSwitch.v=!Z.add.lmfx.masterFXSwitch.v;
Z.V.j9=!0;e.s()}if($==o.R3){Z.add.SoLd.filterFX.v.enab.v=!Z.add.SoLd.filterFX.v.enab.v;Z.fO(e);e.s()}if($==o.pP){var j=h.index,L=Z.add.lmfx[c3.qV[j[0]]].v[j[1]].v;
L.enab.v=!L.enab.v;Z.V.j9=!0;e.s()}if($==o.KW){var H=e.t[h.ao9],_=e.t[h.a7K],J=h.a5P,S=h.a14;if(J=="")delete H.add.lmfx;
else H.add.lmfx=JSON.parse(J);if(S=="")delete _.add.lmfx;else _.add.lmfx=JSON.parse(S);H.V.j9=!0;_.V.j9=!0;
e.s()}if($==o.Xz){var N=Z.add.SoLd.filterFX.v.filterFXList.v[h.index].v;N.enab.v=!N.enab.v;Z.fO(e);e.s()}if($==o.W5){Z.add.SoLd.filterFX.v=JSON.parse(JSON.stringify(h.a6Z));
Z.fO(e);e.s()}if($==o.uv){var a=Z.kV();a.MV=!a.MV}if($==o.LP){var a=Z.add.vmsk;a.MV=!a.MV}if($==o.ru){var Y=h.z4;
for(var G=0;G<Y.length;G+=2){var U=Y[G],P=U>=0?e.t[U]:e.DZ[-1-U];P.add.vogk=JSON.parse(Y[G+1]);s.as.qh(P.add.vogk,P.add.vmsk);
if(U>=0)P.ZB(e)}e.s()}if($==o.rb){Z.add.artb=JSON.parse(h.o1);e.s()}if($==o.I7){e.N=h.A9;e.Qe=h.z4.slice(0);
e.vw=h.vK.slice(0);e.IL=e.qk=!0}if($==o.dq){var g=h.adU;for(var G=0;G<g.length;G++)e.t[G].MX=g[G]}if($==o.wj){var M=h.T5,C=0,y;
for(var G=0;G<M.length;G++){var P=M[G],i=P.add.lsct;if(i==hJ.RS)C++;else if(i==hJ.sE||i==hJ.Y7)C--;if(P.add.artb&&C!=0)y="Artboards can not be inside folders."}if(y){e.history.pop();
e.Nd--;alert(y);return}if(h.p3)e.C=h.p3;if(h.OO)e.N=h.OO[1];e.mG=null;e.s();e.a4(h.T5)}if($==o.KN){if(h.kL)bn.Od.hM(e,Z);
bn.Od.uN(e,Z,h.r);if(h.OO){var Q=h.OO[1];if(Q==null)delete e.N;else e.N=Q}}if($==o.Qu){bn.Od.hM(e,e.t[h.src]);
bn.Od.uN(e,e.t[h.Lh],h.r)}if($==o.Y_){bn.Od.hM(e,Z)}if($==o.jh){Z.wV(e).r=h.r;Z.jw=0;Z.s();e.s()}if($==o.Yc){Z.wV(e).r=null;
Z.jw=0;Z.s();e.s()}if($==o.Rz){bn.Od.rW(e,h._7,1)}if($==o.eZ){bn.Od.Zq(e,Z,h)}if($==o.w6){bn.Od.Pk(e,e.t[h.src],h.r.isEnabled);
bn.Od.Zq(e,e.t[h.Lh],h)}if($==o.iq){bn.Od.Pk(e,Z,h.r.isEnabled)}if($==o.KX){e.ZG=JSON.parse(h.QB)}if($==o.On){e.name=h.yW}if($==o.WG){for(var G=0;
G<h.Av.length;G++){var m=h.Av[G],P=e.t[m[0]];P.aq(m[2]);if(m[4])P.add.lnsr=m[4];else delete P.add.lnsr}}if($==o.Eo){for(var G=0;
G<h.t.length;G++)e.t[h.t[G]].add.lclr=h.a4n[G]}if($==o.Rh){var n=h.nc;for(var G=0;G<h.DL.length;G++){var P=e.t[h.DL[G]],u=n[G];
if(!h.gU)P.add.vstk=JSON.parse(JSON.stringify(u));else f.XT.Sf(P,JSON.parse(JSON.stringify(u)));P.r5(e)}e.s()}if($==o.qe){Z.ja(h.El);
Z.ZB(e);e.s()}e.qk=!0};bn.Od.yw=function(h,e){var $=0;for(var G=0;G<h.t.length;G++){var Z=h.t[G].getName();
if(Z.startsWith(e)){var c=Z.slice(e.length).trim(),q=parseInt(c);if(!isNaN(q)&&q+""==c)$=q}}return $};
bn.Od.rW=function(h,e,$){for(var G=0;G<e.length;G++){var Z=e[G],c=h.t[Z.vq];if(Z.AN){c.add.SoLd=JSON.parse(Z.AN[$])}if(Z.Mh){if(Z.Mh[1-$]!=null)h.K$(Z.Mh[1-$]);
if(Z.Mh[$]!=null)h.Ts(Z.Mh[$]);else c.jw=0}c.l3(h)}};bn.Od.jH=function(h,e){var $=h.B0,Z=h.rect.clone();
if($!=null&&($.x!=e.d||$.y!=e.v)){Z.x=Math.floor((e.d-Z.d)/2);Z.y=Math.floor((e.v-Z.v)/2)}return Z};
bn.Od.hM=function(h,e){if(e.MN)e.MN=null;else e.r=null;e.ZB(h);h.s();e.jw=0};bn.Od.uN=function(h,e,$){if(e.r)e.MN=$;
else e.r=$;e.ZB(h);h.s()};bn.Od.Pk=function(h,e,$){if(e.MN&&$){e.r=e.MN;e.MN=null}else if(e.r&&$){e.r=null}delete e.add.vogk;
delete e.add.vstk;delete e.add.vmsk;e.ZB(h);e.Hy=!1;h.mG=[];h.s()};bn.Od.Zq=function(h,e,$){e.add.vogk=JSON.parse($.as);
if($.oF)e.add.vstk=JSON.parse($.oF);else delete e.add.vstk;e.add.vmsk=$.r.clone();if(e.r&&e.add.vmsk.isEnabled)e.MN=e.r;
e.ZB(h);e.Hy=$.XU;h.mG=[h.t.indexOf(e)];h.fV=[];h.s()};bn.h3=function(){bn.px.call(this,f.aQ);this.ls=null;
this.V$=null;this.HQ=null;this.kD=[];this.Li=null};bn.h3.prototype=new bn.px;bn.h3.prototype.a1=function(h,e,$,Z,c){var q=h.$;
if(q==null)q=$.C[0];var E=$.t[q],P=h.NS;if(this.ls==null){this.HQ=bn.h3.BU($,E);this.ls=JSON.stringify(this.HQ);
if(E.add.lmfx)this.V$=JSON.stringify(E.add.lmfx)}if(E.add.lmfx==null){E.add.lmfx=JSON.parse(c3.default);
for(var G=0;G<c3.order.length;G++)E.add.lmfx[c3.qV[G]]={t:"VlLs",v:[]}}if(h.e=="scaleeffects"){if(h.G=="confirm"||h.G=="cancel"){this.a1({e:h.G},e,$,Z,c);
return}E.add.lmfx=JSON.parse(this.V$);hn.Z9(E.add.lmfx,h.G/100)}else if(h.e=="changeprop"){var a=null;
if(P!=0){var j=this.kD[P[0]];if(j==null)j=c3.kD[P[0]];j=JSON.parse(j);var L=E.add.lmfx[c3.qV[P[0]]].v;
if(L[P[1]]==null)L[P[1]]={t:"Objc",v:j};a=L[P[1]].v;for(var H in j)if(a[H]==null)a[H]=j[H]}if(h.e=="changeprop"){if(P==0){this.HQ[h.l8].v=h.G;
bn.h3.KM($,E,this.HQ)}else if(h.l8=="lagl"){if(a.uglg&&a.uglg.v){$.v8(h.G.val);this.HQ.adh=$.ct()}else a[h.l8].v=h.G}else if(h.l8=="Lald"){if(a.uglg.v){$._g(h.G.val);
this.HQ.akq=$.sX()}else a[h.l8].v=h.G}else if((P[0]==3||P[0]==8)&&(h.l8=="Clr"||h.l8=="Grad")){if(h.l8=="Clr"){a.Clr={t:"Objc",v:h.G};
delete a.Grad}if(h.l8=="Grad"){a.Grad={t:"Objc",v:h.G};delete a.Clr}}else{a[h.l8].v=h.G}if(P!=0)this.kD[P[0]]=JSON.stringify(a)}if(P!=0)if(a.Ptrn)$.x0(hn.lg(a.Ptrn.v,c.Zl))}else if(h.e=="setstl"){var _=h.G.Lefx;
if(_)hn.iY(_,$,c.Zl);hn.oE(h.G,E);this.HQ=bn.h3.BU($,E)}else if(h.e=="st_dupsingle"){var J=E.add.lmfx[c3.qV[h.Hk[0]]].v;
if(J[h.Hk[1]]==null)return;var S=JSON.parse(JSON.stringify(J[h.Hk[1]]));J.splice(h.Hk[1],0,S)}else if(h.e=="st_movsingle"){var N=h.Hk[1],J=E.add.lmfx[c3.qV[h.Hk[0]]].v;
if(J[h.Hk[1]]==null)return;var Y=Math.max(0,Math.min(J.length-1,N+h.amR)),U=J[Y];J[Y]=J[N];J[N]=U}else if(h.e=="cancel"){if(this.V$==null)delete E.add.lmfx;
else E.add.lmfx=JSON.parse(this.V$);bn.h3.KM($,E,JSON.parse(this.ls));this.ls=null;this.V$=null}else if(h.e=="confirm"){var g=JSON.stringify(E.add.lmfx),M=new fW([11,6],this);
M.data={t:[q],rq:[this.V$],FW:[g],fS:[this.ls],E9:[JSON.stringify(this.HQ)]};$.eG(M);this.ls=null;this.V$=null;
if(g!=null){var C=JSON.parse(g);ck.ej(C);C.classID="Lefx";delete C.masterFXSwitch;var y=new B(D.E.Kz);
y.Q1=!0;y.data={Lw:"set",FJ:!0};var i=bw.NQ("Lyr",!0);i.v.splice(0,0,{t:"prop",v:{classID:"Prpr",keyID:"Lefx"}});
y.data.TJ={__name:"Set",classID:"setd",null:i,T:{t:"Objc",v:C}};e.f(y)}}else if(h.e=="st_copy"){this.Li=[this.ls,this.V$];
this.ls=null;this.V$=null}else if(h.e=="st_paste"||h.e=="st_clear"){if(h.e=="st_paste"&&this.Li==null)return;
var Q=h.$!=null?[h.$]:$.C.slice(0),m=[],n=[],u=[],K=[];for(var G=0;G<Q.length;G++){var E=$.t[Q[G]],F=bn.h3.BU($,E);
m.push(E.add.lmfx?JSON.stringify(E.add.lmfx):null);u.push(JSON.stringify(F));if(h.e=="st_paste"){n.push(this.Li[1]);
K.push(this.Li[0])}else{n.push(null);F.lrMd.v=0;F.Opct.v.val=100;F.iOpa.v.val=100;F.blIf={v:[]};for(var b=0;
b<10;b++)F.blIf.v.push(0,0,255,255);K.push(JSON.stringify(F))}}var M=new fW([11,6],this);M.data={t:Q,rq:m,FW:n,fS:u,E9:K};
this.t4(M.data,$);$.eG(M);this.ls=null;this.V$=null}else{var d=this.HQ,C=null;if(h.e=="st_delsingle"){C=JSON.parse(this.V$);
C[c3.qV[h.Hk[0]]].v.splice(h.Hk[1],1);C=JSON.stringify(C)}if(C==null)delete E.add.lmfx;else E.add.lmfx=JSON.parse(C);
if(d!=null)bn.h3.KM($,E,d);var M=new fW([11,6],this);M.data={t:[h.$],rq:[this.V$],FW:[C],fS:[this.ls],E9:[JSON.stringify(d)]};
$.eG(M);this.ls=null;this.V$=null}E.V.j9=!0;$.uu=!0;$.s()};bn.h3.BU=function(h,e){if(e.add.iOpa==null)e.add.iOpa=255;
if(e.add.brst==null)e.add.brst=[1,1,1];var $=e.vG()?["pass"].concat(eN.Pn):eN.Pn;return{lrMd:{v:$.indexOf(e.oG)},Opct:{v:{type:"#Prc",val:Math.round(e.opacity*100/255)},t:"UntF"},iOpa:{v:{type:"#Prc",val:Math.round(e.add.iOpa*100/255)},t:"UntF"},blIf:{v:e.q8.slice(0)},brst:{v:e.add.brst},adh:h.ct(),akq:h.sX(),vG:e.vG()}};
bn.h3.KM=function(h,e,$){var Z=e.vG()?["pass"].concat(eN.Pn):eN.Pn;e.oG=Z[$.lrMd.v];e.opacity=Math.round($.Opct.v.val*255/100);
e.add.iOpa=Math.round($.iOpa.v.val*255/100);e.q8=$.blIf.v.slice(0);e.add.brst=$.brst.v.slice(0);h.v8($.adh);
h._g($.akq)};bn.h3.prototype.yc=function(h,e){for(var G=0;G<h.t.length;G++){var $=e.t[h.t[G]],Z=h.rq[G];
if(Z==null)delete $.add.lmfx;else $.add.lmfx=JSON.parse(Z);bn.h3.KM(e,$,JSON.parse(h.fS[G]));$.V.j9=!0}e.uu=!0;
e.s()};bn.h3.prototype.t4=function(h,e){for(var G=0;G<h.t.length;G++){var $=e.t[h.t[G]],Z=h.FW[G];if(Z==null)delete $.add.lmfx;
else $.add.lmfx=JSON.parse(Z);bn.h3.KM(e,$,JSON.parse(h.E9[G]));$.V.j9=!0}e.uu=!0;e.s()};bn.Mv=function(){bn.px.call(this,f.zI)};
bn.Mv.prototype=new bn.px;bn.Mv.prototype.a1=function(h,e,$,Z){var c=JSON.parse(JSON.stringify($.Gs)),q=JSON.parse(JSON.stringify($.Gs)),E=null,P=null,a=null,j=-1,L=!1;
if(h.e=="delLC"){var H=bn.Mv.Ws($.Gs,h.NS),_=$.Gs.lastAppliedComp?$.Gs.lastAppliedComp.v:0;q.list.v.splice(H,1);
if(_==h.NS)delete q.lastAppliedComp;E="Delete Layer Comp"}if(h.e=="editLC"){var H=bn.Mv.Ws($.Gs,h.NS),J=q.list.v[H].v;
if(h.yW!=null)J.Nm.v=h.yW;if(h.amp!=null){var S=h.amp,N=J.capturedInfo.v,Y=N&(1<<S)-1;N=N>>S;if((N&1)==1)N--;
else N++;J.capturedInfo.v=(N<<S)+Y}E="Layer Comp properties"}if(h.e=="setLC"){bn.Mv.RA($);if(h.NS==0)delete q.lastAppliedComp;
else q.lastAppliedComp={t:"long",v:h.NS};E="Switch Layer Comp";L=!0}if(h.e=="updLC"){bn.Mv.RA($);P=bn.Mv.aiu($,h.NS);
a=bn.Mv.mO($,h.NS);q.lastAppliedComp={t:"long",v:h.NS};E="Update Layer Comp";j=h.NS;L=!0}if(h.e=="addLC"){bn.Mv.RA($);
var U=1;for(var G=0;G<q.list.v.length;G++)U=Math.max(U,q.list.v[G].v.compID.v)+1;U+=Math.floor(Math.random()*1e4);
var g={t:"Objc",v:{classID:"Comp",Nm:{t:"TEXT",v:"New Comp "+(q.list.v.length+1)},compID:{t:"long",v:U},capturedInfo:{t:"long",v:7}}};
q.list.v.push(g);q.lastAppliedComp={t:"long",v:U};E="New Layer Comp";var M=bn.Mv.mO($,U);bn.Mv.me($,M,U)}var C=new fW(E,this);
C.data={ajW:c,a2u:q,am$:P,a5M:a,NS:j,VS:L};this.t4(C.data,$);$.eG(C)};bn.Mv.prototype.t4=function(h,e){e.Gs=h.a2u;
e.uu=!0;if(h.a5M)bn.Mv.me(e,h.a5M,h.NS);if(h.VS){var $=e.Gs.lastAppliedComp?e.Gs.lastAppliedComp.v:0,Z=bn.Mv.Ws(e.Gs,$),c=Z==-1?null:e.Gs.list.v[Z].v,q=c?c.capturedInfo.v:7;
bn.Mv.H3(e,$,q);e.s()}};bn.Mv.prototype.yc=function(h,e){e.Gs=h.ajW;e.uu=!0;if(h.am$)bn.Mv.me(e,h.am$,h.NS);
if(h.VS){var $=e.Gs.lastAppliedComp?e.Gs.lastAppliedComp.v:0,Z=bn.Mv.Ws(e.Gs,$),c=Z==-1?null:e.Gs.list.v[Z].v,q=c?c.capturedInfo.v:7;
bn.Mv.H3(e,$,q);e.s()}};bn.Mv.RA=function(h){if(h.Gs.lastAppliedComp!=null||!h.Te)return;var e=bn.Mv.mO(h,0);
bn.Mv.me(h,e,0);h.Te=!1};bn.Mv.IY=function(h,e,$){h.v.Hrzn.v+=e;h.v.Vrtc.v+=$};bn.Mv.Ws=function(h,e){var $=h.list.v;
for(var G=0;G<$.length;G++)if($[G].v.compID.v==e)return G;return-1};bn.Mv.a1W=function(h){var e=h.layerSettings.v,c=null;
if(e.length==0)return;var $="compList enab Ofst blendOptions Lefx FXRefPoint imageMask vectorMask layerSpecific".split(" "),Z=e[0].v;
if(Z.enab==null)Z.enab={t:"bool",v:!0};if(Z.Ofst==null)Z.Ofst={t:"Objc",v:{classID:"null",Hrzn:{t:"long",v:0},Vrtc:{t:"long",v:0}}};
for(var G=0;G<e.length;G++){var q=e[G].v;if(c==null)c=JSON.parse(JSON.stringify(q));else for(var E=0;
E<$.length;E++){var P=$[E];if(q[P])c[P]=JSON.parse(JSON.stringify(q[P]))}e[G].v=JSON.parse(JSON.stringify(c))}};
bn.Mv.oj=function(h,e){var $=h.add.shmd.cmls,Z=$.layerSettings.v;for(var c=0;c<Z.length;c++){var q=Z[c].v,E=q.compList.v[0].v;
if(E==e)return c}return-1};bn.Mv.FG=function(h,e){var $=bn.Mv.oj(h,e);return $==-1?null:h.add.shmd.cmls.layerSettings.v[$].v};
bn.Mv.H3=function(h,e,$){for(var G=0;G<h.t.length;G++){var Z=h.t[G],c=Z.add.shmd.cmls;if(c==null)continue;
var q=c.layerSettings.v,E=bn.Mv.FG(Z,e);if(E==null){Z.QL(!1);continue}if(($&1)!=0){if(E.enab)Z.QL(E.enab.v);
else Z.QL(!0)}if(($&2)!=0){if(E.Ofst){var P=E.Ofst.v,a=Z.TX(h),j=Math.round(P.Hrzn.v-a.x),L=Math.round(P.Vrtc.v-a.y);
if(j!=0||L!=0)f.fQ.YE(h,[G],null,j,L)}}if(($&4)!=0){if(E.Lefx){var H=JSON.parse(JSON.stringify(E.Lefx.v));
ck.q1(H);if(JSON.stringify(H)!=JSON.stringify(Z.add.lmfx)){Z.add.lmfx=H;Z.V.j9=!0}}else delete Z.add.lmfx;
if(E.blendOptions){var _=E.blendOptions.v;if(_.Opct)Z.opacity=Math.round(255*_.Opct.v.val/100);if(_.fillOpacity)Z.add.iOpa=Math.round(255*_.fillOpacity.v.val/100);
if(_.Md)Z.oG=Z.add.lsct==hJ.RS?"norm":eN.Tj(_.Md.v.BlnM)}else{Z.opacity=255;Z.oG=Z.vG()?"pass":"norm";
Z.add.iOpa=255}}}};bn.Mv.aiu=function(h,e){var $={};for(var G=0;G<h.t.length;G++){var Z=h.t[G];if(Z.add.shmd==null||Z.add.shmd.cmls==null)continue;
$["l"+Z.add.lyid]=JSON.parse(JSON.stringify(bn.Mv.FG(Z,e)))}return $};bn.Mv.mO=function(h,e){var $={};
for(var G=0;G<h.t.length;G++){var Z=h.t[G],c=Z.add.lyid;$["l"+c]=bn.Mv.jm(h,Z,e)}return $};bn.Mv.jm=function(h,e,$){var Z=e.add.shmd?e.add.shmd.cmls:null,c={classID:"null"},q=e.TX(h),E={t:"Objc",v:{classID:"null",Hrzn:{t:"long",v:q.x},Vrtc:{t:"long",v:q.y}}};
c.compList={t:"VlLs",v:[{t:"long",v:$}]};c.enab={t:"bool",v:e.o6()};c.Ofst=JSON.parse(JSON.stringify(E));
c.FXRefPoint=JSON.parse(JSON.stringify(Z&&Z.origFXRefPoint?Z.origFXRefPoint:E));c.blendOptions={t:"Objc",v:{classID:"null",Md:{t:"enum",v:{BlnM:eN.ve(e.oG)}},Opct:{t:"UntF",v:{type:"#Prc",val:100*e.opacity/255}},fillOpacity:{t:"UntF",v:{type:"#Prc",val:e.add.iOpa!=null?100*e.add.iOpa/255:100}}}};
if(e.add.vmsk){c.vectorMask={t:"Objc",v:{classID:"null"}};c.vectorMask.v.Ofst=JSON.parse(JSON.stringify(E))}if(e.add.lmfx){c.Lefx={t:"Objc",v:JSON.parse(JSON.stringify(e.add.lmfx))};
ck.ej(c.Lefx.v)}return c};bn.Mv.an0=function(h,e){var $=e.add.lyid;if(e.add.shmd==null)e.add.shmd={};
if(e.add.shmd.cmls==null){e.add.shmd.cmls={classID:"null",LyrI:{t:"long",v:$},layerSettings:{t:"VlLs",v:[{t:"Objc",v:bn.Mv.jm(h,e,0)}]}}}};
bn.Mv.me=function(h,e,$){for(var G=0;G<h.t.length;G++){var Z=h.t[G],c=Z.add.lyid;bn.Mv.an0(h,Z);var q=Z.add.shmd.cmls,E=q.layerSettings.v,P=e["l"+c];
if(P!=null)P={t:"Objc",v:JSON.parse(JSON.stringify(P))};var a=bn.Mv.oj(Z,$);if(a==-1){if(P==null)continue;
else E.push(P)}else{if(P==null)E.splice(a,1);else E[a]=P}}};bn.Mv.xp=function(h,e){for(var G=0;G<h.t.length;
G++){var $=h.t[G],Z=$.add.lyid;if($.add.shmd==null||$.add.shmd.cmls==null)continue;var c=$.TX(h),q=Math.round(c.x),E=Math.round(c.y);
if(!e){q=-q;E=-E}var P=$.add.shmd.cmls,a=P.layerSettings.v;if(P.origFXRefPoint)bn.Mv.IY(P.origFXRefPoint,-q,-E);
for(var j=0;j<a.length;j++){var L=a[j].v;bn.Mv.IY(L.Ofst,q,E);var H=L.imageMask,_=L.vectorMask;if(H&&H.v.Ofst)bn.Mv.IY(H.v.Ofst,q,E);
if(_&&_.v.Ofst)bn.Mv.IY(_.v.Ofst,q,E)}}};bn.wk=function(){bn.px.call(this,f.Qi);this.QB=null;this.N2=null};
bn.wk.prototype=new bn.px;bn.wk.cB=function(h,e,$,Z){if(Z)e/=4;var c=0,q=0,E=255,P=0,a=0,j=255;while(q+h[c]<e){q+=h[c];
c++}while(P+h[E]<e){P+=h[E];E--}if(Z){c-=Math.round(h[c]/($/32));E+=Math.round(h[E]/($/32));if(c<0)a=Math.round(-c*255/(E-c));
if(E>255)j=255-Math.round((E-255)*255/(E-c))}return[Math.max(c,0),Math.min(E,255),a,j,100]};bn.wk.prototype.a1=function(h,e,$,Z,c){var q=h.e;
if(q=="auto"){var E=h.IG,P=bn.wk.getData($);for(var G=0;G<P.length;G++){var a=P[G],j;if(E<3){}else{var L=dA.X3("hue2");
eb.u1(L,0,[0,-100,0]);j=es.J8("hue2",L)}es.Vv(j,a.Yu,a.lE,a._)}bn.wk.a_($,P);bn.wk.jp($,P,E<3?[4,16,E]:[19,7,0],this);
$.s()}if(q=="edit_layer")this.a6k(h,e,$,Z);if(q=="edit"||q=="confirm"||q=="cancel")this.Vd(h,e,$,c,!0);
if(q=="start"){if($.C.length==0)return;var H=$.t[$.C[0]];if(H.add.SoLd&&H.jw<=0){var _=new B(D.E.A,!0);
_.F=f.HP;_.data={e:"start",S4:h.As};e.f(_);return}if(!$.Nv(e,null,!0))return;if(w[h.As]&&h.o8==null){if($.C.length!=1)alert("Will be applied to "+$.C.length+" layers.");
var _=new B(D.E.P,!0);_.data={e:D.U.tr,yq:"afw_"+h.As};e.f(_)}else{this.Vd({e:"edit",o8:h.o8,S4:h.As},e,$,c);
this.Vd({e:"confirm",S4:h.As},e,$,c)}}};bn.wk.prototype.a6k=function(h,e,$,Z){var c=h.e,q=$.C[0],E=$.t[q],P=es.get(E.add),a=JSON.parse(JSON.stringify(h.G)),H;
for(var j in es.Ri)if(es.Ri[j]==P)a.classID=j;var L=$.history[$.Nd];if(L&&L.F==this&&L.data.rs!=null&&L.data.$==q)H=L;
else{var _=new B(D.E.Kz,!0),J={classID:"setd",null:bw.NQ("AdjL",!0),T:{t:"Objc",v:a}};_.data={FJ:!0,Lw:"set",TJ:J};
e.f(_);var H=new fW([6,39],this);H.data={$:q,rs:E.add[P],El:h.G,ih:J};$.eG(H)}H.data.El=h.G;H.data.ih.T.v=a;
this.t4(H.data,$)};bn.wk.getData=function(h,e,$){var Z=[],c=new O(0,0,h.d,h.v),q=h.vw.length!=0?[-1-h.vw[0]]:h.C;
for(var G=0;G<q.length;G++){var E=q[G],P=E<0?null:h.t[E],a={$:E,Md:E<0?1:P.jw};Z.push(a);var j=h.Qe[-1-E];
if(0<=E)j=P.jw<=0?null:P.jw==1?P.kV():P.wV(h).r;var L=j?j.rect:P.rect;if(h.N)a._=j!=null?h.N.rect.jx(c):h.N.rect.jx(L);
else a._=e||j!=null?L.iJ(c):L.clone();if($)a._=$[G]._.clone();var H=a._.X();a.Yu=s.m(H*4);if(j)f.rz.Hw(j.channel,j.rect,j.color,a.Yu,a._);
else s.hX(P.buffer,L,a.Yu,a._);a.lE=a.Yu.slice(0);if(h.N){a.OJ=s.m(H);s.T7(h.N.channel,h.N.rect,a.OJ,a._)}}return Z};
bn.wk.akw=function(h,e,$){if(e==null)return e;var Z=es.GW(h,e),q;if(Z==-1)return e;var c=$.length>>>2,E=s.CN($),P=.001*c;
if(Z==0||Z==2)q=[[0,255,0,255,100],bn.wk.cB(E[1],P,c,Z==2),bn.wk.cB(E[2],P,c,Z==2),bn.wk.cB(E[3],P,c,Z==2)];
if(Z==1)q=[bn.wk.cB(E[0],P*.33,c,!1),[0,255,0,255,100],[0,255,0,255,100],[0,255,0,255,100]];var a=dA.X3("levl");
for(var G=0;G<4;G++)fH.u1(a,G,q[G]);return a};bn.wk.prototype.Vd=function(h,e,$,Z){if(this.QB==null){if(h.S4=="aply")$.t[$.C[0]].extend(new O(0,0,$.d,$.v));
this.QB=bn.wk.getData($,null,h.S4=="fade"?$.fX().data:null);if(h.S4=="aply")this.QB[0].bj=$.v2()}if(h.e=="edit"){this.N2=[h.S4,h.o8];
var c=this.QB[0],q=bn.wk.akw(h.S4,h.o8,c.Yu),E=es.J8(h.S4,q);if(h.S4=="fade"||h.S4=="aply")E=h.o8;if(E!=null){for(var G=0;
G<this.QB.length;G++){var P=this.QB[G];if(h.zr)s.i7(P.Yu,P.lE);else if(h.S4=="fade"){var a=eN.Tj(h.o8.Md.v.BlnM),j=h.o8.Opct.v.val/100,L=$.fX().data[G];
s.i7(L.Yu,P.lE);if(a=="norm")s.p.cZ(P.Yu,P._,P.lE,P._,null,null,null,P._,j);else{var H=hn.Wn();H.Eq=!0;
for(var G=0;G<L.Yu.length;G+=4)if(L.Yu[G+3]!=P.Yu[G+3]){H=null;break}s.p.Jn(a,P.Yu,P._,P.lE,P._,P._,j,H)}}else if(h.S4=="aply"){E=E.With.v;
var _=E.T.v,J,S;if(_[1].t=="name"){var N=0;for(var Y=0;Y<$.t.length;Y++)if($.t[Y].getName()==_[1].v.val)N=Y;
if(N==P.$){J=P.Yu;S=P._}else{var U=$.t[N];J=U.buffer;S=U.rect}}else{S=new O(0,0,$.d,$.v);J=P.bj}var g=E.Clcl?E.Clcl.v.Clcn:null,a=g?eN.Tj(g):"norm",j=E.Opct?E.Opct.v.val/100:1,M=["RGB","Rd","Grn","Bl","Trsp"].indexOf(_[0].v.enum),q=E.Invr&&E.Invr.v;
if(q||M!=0){J=J.slice(0);if(q)s.adm(J);if(M!=0){var C=s.m(S.X());s.z0(J,C,M-1);if(M==4)s.vy(C);for(var Y=0;
Y<3;Y++)s.Jk(C,J,Y)}}if(g=="Sbtr"){var y=1/E.Scl.v,i=E.Ofst.v,Q=new Uint8ClampedArray(P.lE.buffer);for(var G=0;
G<J.length;G+=4){Q[G]=(P.Yu[G]-J[G])*y+i;Q[G+1]=(P.Yu[G+1]-J[G+1])*y+i;Q[G+2]=(P.Yu[G+2]-J[G+2])*y+i}}else{var H=hn.Wn();
H.Eq=E.PrsT&&E.PrsT.v;P.lE.fill(0);P.lE.set(P.Yu);s.p.Jn(a,J,S,P.lE,P._,P._,j,H)}}else es.Vv(E,P.Yu,P.lE,P._)}bn.wk.a_($,this.QB)}}if(h.e=="cancel"){bn.wk.sw($,this.QB);
this.QB=null}if(h.e=="confirm"){var m=h.S4=="fade"?[2,11]:h.S4=="aply"?[2,12]:es.names[h.S4],n=es.GW(h.S4,this.N2[1]);
if(n!=-1)m=[4,16,n];bn.wk.jp($,this.QB,m,this);this.QB=null;if(n==-1)bn.wk.a2(e,this.N2)}$.s()};bn.wk.a2=function(h,e){var $=e[0],Z=e[1],c,q;
if(es.Fr[$]){c=es.Fr[$];if(w[$])q=Z}if(dA.Fr[$]){c=dA.Fr[$];if(w[$])q=Z}if($=="fade"){c="fade";q=Z}if($=="aply"){c="applyImageEvent";
q=Z}if(c==null)return;var E=new B(D.E.Kz,!0);E.data={FJ:!0,Lw:c};if(q){q=JSON.parse(JSON.stringify(q));
q.classID="null";delete q.__name;E.data.TJ=q}h.f(E)};bn.wk.sw=function(h,e){bn.wk.Qr(h,e)};bn.wk.jp=function(h,e,$,Z){for(var G=0;
G<e.length;G++){var c=e[G],q=h.t[c.$],E=c.$<0?h.Qe[-1-c.$]:c.Md<=0?null:c.Md==1?q.kV():q.wV(h).r;if(E){E.V9();
E.w4=!0;if(q)q.ZB(h)}else{q.V9();q.s()}delete c.lE;delete c.OJ}var P=new fW($,Z);P.data=e;h.eG(P);h.uu=!0};
bn.wk.a_=function(h,e,$){for(var G=0;G<e.length;G++){var Z=e[G],c=h.t[Z.$],q=$?Z.Yu:Z.lE,E=Z._;if(Z.Md==0){c.extend(E);
if(Z.OJ){s.hX(Z.Yu,E,c.buffer,c.rect);s.p.cZ(q,E,c.buffer,c.rect,Z.OJ,E,0,E,1)}else s.hX(q,E,c.buffer,c.rect)}else{var P=Z.$<0?h.Qe[-1-Z.$]:Z.Md==1?c.kV():c.wV(h).r;
P.extend(E);if(Z.OJ){var a=s.m(E.X()*4);s.i7(Z.Yu,a);s.p.cZ(q,E,a,E,Z.OJ,E,0,E,1);f.rz.cx(a,E,P)}else f.rz.cx(q,E,P);
P.w4=!0;if(c)c.ZB(h)}if(c)c.s()}if(!$)bn.wk.cM(h,e)};bn.wk.Qr=function(h,e){for(var G=0;G<e.length;G++){var $=e[G],Z=h.t[$.$],c=$._,q=s.m(c.X()*4);
if($.Md==0){s.hX(Z.buffer,Z.rect,q,c);Z.extend(c);s.hX($.Yu,c,Z.buffer,Z.rect);Z.V9()}else{var E=$.$<0?h.Qe[-1-$.$]:$.Md==1?Z.kV():Z.wV(h).r;
f.rz.Hw(E.channel,E.rect,E.color,q,c);E.extend(c);f.rz.cx($.Yu,c,E);E.V9();E.w4=!0;if(Z)Z.ZB(h)}$.Yu=q;
if(Z)Z.s()}h.uu=!0};bn.wk.cM=function(h,e){var $=bn.wk.zL(h),Z=~$;if($==16777215)return;for(var G=0;
G<e.length;G++){var c=e[G],q=h.t[c.$],E=c._;if(c.Md!=0)continue;q.extend(E);var P=E.x-q.rect.x,a=E.y-q.rect.y,j=q.rect.d,L=new Uint32Array(c.Yu.buffer),H=new Uint32Array(q.buffer.buffer);
for(var _=0;_<E.v;_++)for(var J=0;J<E.d;J++){var S=_*E.d+J,N=(_+a)*j+(J+P);H[N]=H[N]&$|L[S]&Z}q.V9();
q.s()}h.s()};bn.wk.zL=function(h){var e=h.z.RI;return e[2]*16711680|e[1]*65280|e[0]*255};bn.wk.prototype.yc=function(h,e){var $=e.t[h.$];
if(h.rs!=null)$.add[es.get($.add)]=h.rs;else bn.wk.Qr(e,h);e.s()};bn.wk.prototype.t4=function(h,e){var $=e.t[h.$];
if(h.rs!=null)$.add[es.get($.add)]=h.El;else bn.wk.Qr(e,h);e.s()};bn.zd=function(){bn.px.call(this,f.HP);
this.QB=null;this.HV=null;this.e=null;this.N2=null};bn.zd.prototype=new bn.px;bn.zd.prototype.a1=function(h,e,$,Z,c){if(h.e=="start"){if($.C.length==0)return;
var q=$.t[$.C[0]];if(q.add.SoLd&&q.jw<=0){}else if(!$.Nv(e,null,!0))return;var E=h.S4;if((w[E]||dA.Nh[E])&&h.o8==null){if($.C.length!=1)alert("Will be applied to "+$.C.length+" layers.");
var P=new B(D.E.P,!0);P.data=bn.zd.Ax(E,this.iN($,E));e.f(P)}else{var a={e:"edit",S4:E,o8:h.o8,HX:this.iN($)};
this.a1(a,e,$,Z,c);a.e="confirm";delete a.o8;this.a1(a,e,$,Z,c)}}if(h.e=="edit"||h.e=="cancel"||h.e=="confirm"){if(h.e=="edit")this.N2=[h.S4,h.o8];
if(h.HX)this.a73(h,$,c);else this.aa8(h,e,$,c)}if(h.e=="applylast"&&this.N2!=null){var a={e:"edit",S4:this.N2[0],o8:this.N2[1],HX:this.iN($)};
this.a1(a,e,$,Z,c);a.e="confirm";delete a.o8;this.a1(a,e,$,Z,c)}};bn.zd.Ax=function(h,e){var $=dA.Nh[h];
if($)return{e:D.U.kX,F:$,Oi:{HX:e}};else return{e:D.U.tr,yq:"afw_"+h,HX:e}};bn.zd.prototype.iN=function(h,e){var $=h.t[h.C[0]],Z;
if($.add.SoLd&&$.jw<=0){Z={$:h.C[0],index:0};if($.add.SoLd.filterFX!=null){var c=$.add.SoLd.filterFX.v.filterFXList.v;
Z.index=c.length;for(var G=0;G<c.length;G++)if(dA.bo(c[G].v)==e&&dA.Nh[e])Z.index=G}}return Z};bn.zd.prototype.a73=function(h,e,$){var Z=e.t[h.HX.$],c=h.S4;
if(h.e=="edit"){if(this.e==null){var q=dA.names[c];if(q==null)q=es.names[c];if(c=="blendOptions")q=[14,10];
this.e=new fW(q,this);this.e.data={HX:h.HX,adE:JSON.parse(JSON.stringify(Z.add.SoLd))}}if(!Z.fi()){Z.add.SoLd.filterFX=dA.WW();
this.e.data.Mh=c9.jX(Z.add.SoLd.placed.v);e.Ts(this.e.data.Mh);Z.l3(e)}var E=Z.add.SoLd.filterFX.v.filterFXList.v;
if(E[h.HX.index]==null){E.push(dA.fq(c,$))}if(h.o8){E[h.HX.index].v.enab.v=h.zr!=!0;if(c=="blendOptions")E[h.HX.index].v.blendOptions.v=h.o8;
else E[h.HX.index].v.Fltr.v=h.o8}this.e.data.amD=JSON.parse(JSON.stringify(Z.add.SoLd));this.t4(this.e.data,e)}if(h.e=="cancel"){if(this.e)this.yc(this.e.data,e);
this.e=null}if(h.e=="confirm"){if(this.e)e.eG(this.e);this.e=null}};bn.zd.prototype.ok=function(h){return{h:h>>>16,l:h>>>8&255,O:h&255}};
bn.zd.prototype.aa8=function(h,e,$,Z){if(this.QB==null){var c=dA.uB(h.S4,h.o8);this.QB=bn.wk.getData($,c.x!=0||c.y!=0)}if(h.e=="edit"){var q=JSON.stringify(h.o8);
if((h.o8==null||q!=this.HV)&&h.zr!=!0)for(var G=0;G<this.QB.length;G++){var E=this.QB[G],P={rect:E._,buffer:E.Yu},a={rect:E._,buffer:E.lE};
dA.Vv(h.S4,P,h.o8,this.ok(Z.oV),this.ok(Z.XK),a,[$.add.lnk2?$.add.lnk2:[],$.t[$.C[0]].kV(),$.Qe]);this.HV=q}bn.wk.a_($,this.QB,h.zr)}if(h.e=="cancel"){bn.wk.sw($,this.QB);
this.QB=null;this.HV=null}if(h.e=="confirm"){bn.wk.jp($,this.QB,dA.names[h.S4],this);this.QB=null;this.HV=null;
bn.wk.a2(e,this.N2)}$.s();$.uu=!0};bn.zd.prototype.yc=function(h,e){if(h.HX){var $=e.t[h.HX.$];if(h.Mh)e.K$(h.Mh);
$.add.SoLd=JSON.parse(JSON.stringify(h.adE));if($.fi())$.fO(e);else{$.l3(e);$.jw=0}}else bn.wk.Qr(e,h);
e.s();e.uu=!0};bn.zd.prototype.t4=function(h,e){if(h.HX){var $=e.t[h.HX.$];if(h.Mh)e.Ts(h.Mh);$.add.SoLd=JSON.parse(JSON.stringify(h.amD));
if($.fi())$.fO(e);else $.l3(e);if(!$.Kl())$.GO+=32}else bn.wk.Qr(e,h);e.s();e.uu=!0};var iM={uG:"0",XP:"1",xB:"2",X6:"3",z8:"4",Ub:"5",sK:"6",z_:"7",A:"8",L$:"8.5",Wh:"8.8",Q6:"9",jV:"10",s1:"11",EL:"12",H9:"13",bT:"14",dQ:"15",JD:"21",Z0:"22",GN:"23",Q_:"23.0",kU:"23.1",qb:"23.2",ly:"23.3",QC:"23.4",FY:"23.5",GZ:"23.6",mY:"30",eT:"31",jS:"40",KK:"41",oI:"42"};
iM.V5={};iM.V5[iM.XP]=["abr","brushes",gH,[9,3]];iM.V5[iM.xB]=["grd","gradients",ap,[12,37]];iM.V5[iM.X6]=["shc","contours",gk,[12,21]];
iM.V5[iM.z8]=["asl","styles",bA,[12,22]];iM.V5[iM.Ub]=["pat","patterns",b5,[12,62]];iM.V5[iM.sK]=["csh","shapes",bS,[12,77]];
iM.V5[iM.z_]=["aco","swatches",ho,[9,8]];iM.V5[iM.A]=["atn","actions",aK,[9,9]];iM.V5[iM.L$]=["tpl","tpresets",g5,[9,12]];
iM.V5[iM.Wh]=["icc","profiles",f0,"ICCs"];function fW(h,e,$){if($==null)$=!1;this.name=h;this.F=e;this.Us=$;
this.data=null}var bw={};bw.NQ=function(h,e){var $={t:"Clss",v:{classID:h}};if(e)$={t:"Enmr",v:{classID:h,typeID:"Ordn",enum:"Trgt"}};
return{t:"obj ",v:[$]}};bw.wv=function(h,e){var $={classID:"Lyr"};$[h]=e;return{Lw:"set",TJ:{classID:"null",null:bw.NQ("Lyr",!0),T:{t:"Objc",v:$}}}};
bw.aeP=function(h,e,$,Z,c){var q=new B(D.E.Kz,!0),E=[],G=0,P=bw.j0(e,$,Z,E);while(E.length!=0){var a=E.pop();
G++;if(!a.Q)continue;if(a.Lw=="conditional"){var j=h.t[h.C[0]],L=a.TJ.null.v.Cndt,H=!1;if(L=="Bckg")H=!1;
else if(L=="Pxel"&&h.Jh(!1))H=!0;else if(L=="Adjs"&&es.get(j.add))H=!0;else if(L=="Shp"&&j.add.vogk)H=!0;
else if(L=="Grup"&&j.vG())H=!0;var _=a.TJ.then.v;if(H)bw.j0(e,_[0].v.val,_[1].v.val,E)}else if(a.Lw=="stop"){if(a.TJ.Cntn&&a.TJ.Cntn.v==!0)window.confirm(a.TJ.Msge.v);
else{alert(a.TJ.Msge.v);break}}else if(a.Lw=="play"){var J=a.TJ.null.v,S=new B(D.E.P,!0);S.data={e:D.U.xZ,py:[J[0].v.val,J[1].v.val]};
c.f(S)}else{q.data={Lw:a.Lw,TJ:a.TJ};c.f(q)}}};bw.j0=function(h,e,$,Z){var c;for(var G=0;G<h.length;
G++){if(h[G].cJ!=$)continue;var q=h[G].qM;for(var E=0;E<q.length;E++){if(q[E].cJ!=e)continue;c=q[E].qM}}var P=c.length;
for(var G=0;G<P;G++)Z.push(c[P-1-G])};bw.a7l=function(h){var e=h.Lw,$=h.TJ,Z,E,P,a,j,L;if($&&$.null)Z=$.null.v[0];
if($&&Z==null&&$.At)Z=$.At.v[0];if(Z&&Z.t=="obj ")Z=Z.v[0];var c=Z?Z.v.classID:null,q=["purge"];if(q.indexOf(e)!=-1)return e[0].toUpperCase()+e.slice(1);
L=es.Fr;for(E in L)if(L[E]==e)P=E;L=dA.Fr;for(E in L)if(L[E]==e)a=E;L=cc.Fr;for(E in L)if(L[E]==e)j=E;
if(P){var H=es.GW(P,$);if(H!=-1)return[4,16,H];return es.names[P]}if(a)return dA.names[a];if(j)return cc.names[j];
var _=bw.$D;if(e=="make"){if(Z){if(c=="AdjL")return[6,1];else if(c=="layerSection")return[6,9];else if(c=="Lyr")return[6,13];
else if(c=="Chnl"&&Z.v.enum=="Msk")return[6,2];else if(c=="contentLayer")return[6,48,1];else if(c=="BckL")return"Make Background Layer";
else if(c=="Path")return"Make Path";else if(c=="TxLr")return"Make Text Layer"}if($.Nw){c=$.Nw.v.classID;
if(c=="Dcmn")return[11,7];else if(c=="Chnl"||c=="SCch")return"New Channel"}}else if(e=="select"){if(c=="Chnl")return"Select "+(Z.v.enum=="Msk"?"Mask ":"")+"Channel";
else if(c=="Mn")return"Select Panel \""+Z.v.enum+"\"";else if(c=="Lyr"){if(Z.t=="Enmr")return"Select "+{Bckw:"Backward"}[Z.v.enum]+" Layer";
return"Select Layer \""+Z.v.val+"\""}else if(c=="Dcmn")return"Select Document"}else if(_[e]&&c=="Chnl"){var J=Z.v.keyID=="fsel";
return _[e]+" "+(J?"Selection":"Channel")}else if(e=="set"){if(c=="Lyr")return"Set Current Layer";else if(c=="AdjL")return[6,39];
else if(c=="contentLayer")return[6,48,2];else if(c=="Prpr")return[11,6];else if(c=="Clr")return"Set "+(Z.v.keyID=="FrgC"?"Foreground":"Background")+" color";
else if(c=="Brsh")return"Set Brush";else console.log(c)}else if(e=="move"){if(c=="Lyr")return"Move Layer"}else if(e=="show"||e=="hide"){var S="";
if(c=="Lyr")+"Layer";if(c=="Chnl")+"Channel";return(e=="show"?"Show":"Hide")+" "+S}else if(e=="reset"){if(c=="Clr")return"Reset Colors"}else if(e=="exchange"){if(c=="Clr")return[22,7,0]}else if(e=="rotateEventEnum")return[2,5];
else if(e=="flip"){var N=$.Axis.v.Ornt=="Hrzn";return[[2,6],[22,4,N?2:3]]}if(c=="Chnl"){if(e=="duplicate"){if(Z.v.keyID=="fsel")return"Selection to Channel";
else return"Duplicate Channel"}if(e=="delete")return"Delete Channel"}if(e=="transform")return Z.v.keyID=="fsel"?[7,10]:[10,16];
var Y={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:$?[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"},U=Y[e];
if(U==null)U=bw.La[e];if(U)return U;return e};bw.La={border:[7,9],smoothness:[19,3,0],expand:[7,4],contract:[7,5],feather:[7,6],inverse:[7,2]};
bw.$D={set:"Set",add:"Add Transparency",addTo:"Add To",subtract:"Subtract Transparency",subtractFrom:"Subtract From",interfaceIconFrameDimmed:"Intersect Transparency",interfaceWhite:"Intersect With"};
bw.ah7=function(h,e,$,Z){var c=h.Lw,q=h.TJ,E=new B(D.E.A,!0),j,L,H,_,J,U;E.F=f.S$;var P=new B(D.E.P,!0),a=["purge","updatePlacedLayer"];
if(a.indexOf(c)!=-1)return;J=es.Fr;for(j in J)if(J[j]==c)L=j;J=dA.Fr;for(j in J)if(J[j]==c)H=j;J=cc.Fr;
for(j in J)if(J[j]==c)_=j;if(c=="fade")L=c;if(c=="applyImageEvent")L="aply";if(L){E.F=f.Qi;E.data={e:"start",As:L,o8:q}}else if(H){E.F=f.HP;
E.data={e:"start",S4:H,o8:q}}else if(_){E.F=f.HP;E.data={e:"start",S4:"GEfc",o8:q}}else if(c=="imageSize"||c=="canvasSize"||c=="revealAll"||c=="trim"||c=="crop"){E.F=f.ZT;
E.data={e:"fromAction",W_:h}}else if(c=="fill"||c=="delete"&&q==null){E.F=f.XP;E.data={e:"fromAction",W_:h}}else if(c=="colorRange"){var S=q.Mnm.v,N=q.Mxm.v;
E.F=f.$r;E.data={e:"crange",qO:{Hs:S.Lmnc.v,R:S.A.v,O:S.B.v},XF:{Hs:N.Lmnc.v,R:N.A.v,O:N.B.v},wO:q.Fzns.v/200}}else if(bw.La[c]||bw.$D[c]&&(!1||q.With&&q.With.v[0].v.keyID=="fsel"||q.From&&q.From.v[0].v.keyID=="fsel"||q.null&&q.null.v[0].v.keyID=="fsel"||q.T.v[0]&&q.T.v[0].v.keyID=="fsel")){E.F=f.$r;
E.data={e:"fromAction",W_:h}}var Y={copyToLayer:o.fg,mergeLayersNew:Z&&Z.C.length==1?o.lb:o.U1,rasterizeLayer:o.UI,mergeVisible:o.Xx,flattenImage:o.YY,newPlacedLayer:o.Vk};
if(Y[c])E.data={e:Y[c],TJ:q};if(E.data){e.f(E);return}if(c=="desaturate"){E.F=f.Qi;E.data={e:"auto",IG:3};
if(Z&&Z.t[Z.C[0]].add.SoLd==null)e.f(E);return}if(c=="close"){if(q.Svng.v.YsN=="Ys"){P.data={e:D.U.rh};
e.f(P)}P.data={e:D.U.HA,SU:Z};e.f(P);return}if(c=="save"){P.data={e:D.U.rh};e.f(P);return}var Y={placedLayerEditContents:D.U.ac,copyEvent:D.U.$M,paste:D.U.d$};
if(Y[c])P.data={e:Y[c]};if(P.data){e.f(P);return}if(q.null||q.At)U=(q.null?q.null:q.At).v;else U=[{t:"----",v:q}];
if(U[0].t=="obj "){if(U.length!=1)throw"e";U=U[0].v}for(var g=0;g<U.length;g++){var M=U[g],C=M.v.classID;
E.data=null;if(c=="make"){if(q.null==null&&q.Nw)C=q.Nw.v.classID;if(C=="AdjL"){E.data={e:o.tc,TJ:q}}else if(C=="layerSection"){E.data={e:o.VT};
if(q.Usng)E.data.yW=q.Usng.v.Nm.v}else if(C=="Lyr"){if(q.Usng&&q.Usng.v.length==2)E.data={e:o.ER};else{E.data={e:o.kd};
if(q.Usng)E.data.yW=q.Usng.v.Nm.v;if(q.below&&q.below.v)E.data.agM=!0}}else if(C=="Chnl"&&M.v.enum=="Msk"){E.data={e:o.KN,bM:q.Usng.v.UsrM}}else if(C=="Chnl"||C=="SCch"){E.data={e:o.I7,oD:"fromAction",G:h}}else if(C=="contentLayer"){E.data={e:o.xG,TJ:q}}else if(C=="BckL"){Z.t[Z.C[0]].a0C();
continue}else if(C=="Dcmn"){var y=q.Nw.v;P.data={e:D.U.YF,q4:c9.aaj(y,$)}}else if(C=="Ptrn")P.data={e:D.U.B7,Av:0};
else if(C=="Path"){E.F=f.hO;E.data={e:"pathedit",oD:"fromsel"}}else if(C=="TxLr"){E.F=f.kE;E.data={e:"fromAction",W_:h}}else{console.log(c,C,q);
throw"e"}}else if(c=="select"){var i={PcTl:f.VF,magicWandTool:f.et};if(C=="Lyr"){var Q=q.selectionModifier,m=Q?Q.v.selectionModifierType:null,n=bw.GH(Z,M);
E.data={e:o.II,$:n,a3Y:m?["addToSelection","addToSelectionContinuous"].indexOf(m):null,Fy:0,akP:!0}}else if(C=="Chnl"){E.data={e:o.II,$:n,Fy:1}}else if(C=="Dcmn"){if(e.hp.length<2)return;
P.data={e:D.U.Gk,dir:q.null.v[0].v.val}}else if(i[C]){P.data={e:D.U.kX,F:i[C]}}}else if((c=="set"||c=="reset"||c=="exchange")&&C=="Clr"){P.data={e:D.U.Ov,Av:iM.JD,oD:c=="reset"?3:2};
if(c=="set"){P.data.oD=M.v.keyID=="FrgC"?0:1;var u=s.Y.LX(q.T.v);P.data.G=u.h<<16|u.l<<8|u.O}}else if(c=="set"){if(C=="AdjL"){var K=q.T.v.classID;
K=es.Ri[K];E.F=f.Qi;if(K)E.data={e:"edit_layer",G:q.T.v}}else if(C=="Lyr"){var F=q.T.v,n=bw.GH(Z,M);
if(F.Nm)E.data={e:o.WG,name:F.Nm.v};else if(F.Opct)E.data={e:o.uz,El:Math.round(F.Opct.v.val*255/100)};
else if(F.fillOpacity)E.data={e:o.xM,El:Math.round(F.fillOpacity.v.val*255/100)};else if(F.Md)E.data={e:o.fC,El:eN.ie.indexOf(F.Md.v.BlnM)+(Z.t[n].vG()?1:0)};
else if(F.Usrs)E.data={e:o.uv,$:n};else if(F.Blnd){E.F=f.aQ;E.data={e:"setstl",$:n,G:{blendOptions:{t:"objc",v:F}}};
e.f(E);E.data={e:"confirm",$:n}}else if(F.Clr){var b={Rd:1,Ylw:3,Vlt:6}[F.Clr.v.Clr];if(b==null)throw F.Clr.v.Clr;
E.data={e:o.Eo,a79:b}}else if(U[0].t=="prop")continue;else{console.log(q);throw"e"}var d=Z.t[n];d.alL()}else if(C=="Prpr"){var F=JSON.parse(JSON.stringify(q.T.v));
if(M.v.keyID=="TxtS"){var n=bw.GH(Z,q.null.v[1]),d=Z.t[n],W=d.add.TySh,A=JSON.parse(JSON.stringify(W.Kx)),z=gK.N8(A),T=gK.hT(A,0,z.length-2);
if(F.Undl&&F.Undl.v.Undl=="underlineOnLeftInVertical")T.By.Underline=!0;gK.sq(A,0,z.length-1,T);E.F=f.kE;
E.data={e:"newED",bs:n,Q5:A};g=1e9}else{for(var R in F)if(F[R].v){if(R=="Scl")F[R].v.val=100;if(F[R].v.TrnS&&F[R].v.TrnS.v.Crv==null){F[R].v.TrnS=JSON.parse(c3.kD[9]).TrnS}}ck.q1(F);
if(F.masterFXSwitch==null)F.masterFXSwitch={t:"bool",v:!0};var n=bw.GH(Z,q.null.v[1]);E.F=f.aQ;E.data={e:"setstl",$:n,G:{Lefx:{t:"objc",v:F}}};
e.f(E);E.data={e:"confirm",$:n}}}else if(C=="contentLayer"){var n=bw.GH(Z,M),F=q.T.v;if(F.classID=="shapeStyle")F=F.FlCn.v;
var I={solidColorLayer:0,gradientLayer:1,patternLayer:2}[F.classID],H=JSON.parse(JSON.stringify(c3.nf[I]));
bn.Od.Ww(F,H,I);E.data={e:o.Rh,DL:[n],gU:!0,G:{cp:I+1,mQ:H}}}else if(C=="Brsh"){var r=JSON.parse(JSON.stringify($.Ck.oA)),x=q.T.v;
if(x.masterDiameter)r.Brsh.v.Dmtr.v.val=x.masterDiameter.v.val;else console.log("unknown brush parameters");
P.data={e:D.U.Ov,Av:iM.bT,oH:r}}else{console.log(M,q);throw C}}else if(c=="move"){if(C=="Lyr"){var F=q.T.v;
if(F.classID=="Ofst"){E.data={e:"trsl",an1:F.Hrzn.v.val,a6P:F.Vrtc.v.val};E.F=f.OA}else{var X,hH;if(F[0].t=="Enmr"){if(F[0].v.enum=="Frnt")hH=0;
else if(F[0].v.enum=="Prvs")hH=2;else if(F[0].v.enum=="Back")hH=3;else throw"e"}else X=F[0].v.val;E.data={e:o.iK,target:X,oD:hH,a9Z:q.Dplc?q.Dplc.v:!1}}}}else if(c=="groupEvent")E.data={e:o.C9};
else if(c=="show"||c=="hide"){if(C=="Lyr"){var n=bw.GH(Z,M);if(n==-1)continue;var hZ=Z.t[n].o6();if(c=="show"&&hZ||c=="hide"&&!hZ)continue;
E.data={e:o.dw,$:n}}else if(C=="Chnl"){E.data={e:o.I7,oD:"fromAction",G:h}}}else if(c=="rotateEventEnum"){E.F=f.ZT;
var gj=q.Angl.v.val;E.data={e:"rot",cJ:[2,5],G:-gj*Math.PI/180}}else if(c=="flip"){E.F=f.ZT;var hO=q.Axis.v.Ornt=="Hrzn",d3=hO?new eu(-1,1):new eu(1,-1);
E.data={e:"scl",cJ:[[2,6],[22,4,hO?2:3]],G:d3}}else if(c=="transform"){var v=1,hl=1,ht=0,ga=0,eB=0,bP=0,ek=0;
if(q.Wdth)v=q.Wdth.v.val/100;if(q.Hght)hl=q.Hght.v.val/100;if(q.Skew){var b_=q.Skew.v;ht=b_.Hrzn.v.val;
ga=b_.Vrtc.v.val}if(q.Ofst){var fz=q.Ofst.v;bP=fz.Hrzn.v.val;ek=fz.Vrtc.v.val}if(q.Angl)eB=q.Angl.v.val;
var ca=new i7;ca.concat(new i7(v,v*Math.tan(ga*Math.PI/180),hl*Math.tan(ht*Math.PI/180),hl,0,0));ca.rotate(-eB*Math.PI/180);
ca.translate(bP,ek);var gf={Qcsa:4,Qcs0:0,Qcs1:2,Qcs2:8,Qcs3:6,Qcs4:1,Qcs5:5,Qcs6:7,Qcs7:3}[q.FTcs.v.QCSt];
if(gf==null)throw q.FTcs.v.QCSt;var M=q.null;if(M&&M.v instanceof Array)M=M.v[0];var n=M?bw.GH(Z,M):null;
if(n==-1)n=null;E.F=M&&M.v.keyID=="fsel"?f.MG:f.Fk;E.data={e:"mat",An:gf,G:ca,$:n}}else if(C=="Chnl"){E.data={e:o.I7,oD:"fromAction",G:h}}else if(c=="duplicate")E.data={e:o.pA,yW:q.Nm?q.Nm.v:null};
else if(c=="delete")E.data={e:o.Ml};else if(c=="align"){if(q.Aply&&q.Aply.v.projection=="Auto"){E.F=f.ZT;
E.data={e:"auto-align"}}else{E.F=f.OA;var L={AdLf:0}[q.Usng.v.ADSt];if(L==null)throw"e";E.data={e:"algn",G:L}}}else if(c=="applyLocking"){var bb=q.layerLocking.v,dV;
if(bb.protectTransparency)dV=[[bb.protectTransparency.v],[0]];else if(bb.protectNone)dV=[[!1,!1,!1,!1],[0,1,2,31]];
else{console.log(bb);throw"e"}E.data={e:o.yT,El:dV}}if(E.data)e.f(E);else if(P.data)e.f(P);else{console.log(h);
alert("Unknown action \""+c+"\"");throw"e"}}};bw.GH=function(h,e){var $=e.t,Z=-1;if($=="name"){var c=e.v.val,Z=-1;
for(var G=0;G<h.t.length;G++)if(h.t[G].getName()==c){Z=G;break}}if($=="Enmr"&&h.C.length!=0)Z=h.C[0];
if($=="Enmr"&&e.v.enum=="Frwr")Z=h.C[0]+1;if($=="Enmr"&&e.v.enum=="Bckw")Z=h.C[0]-1;if($=="prop"){if(e.v.keyID=="Bckg")Z=0}return Z};
var es={};es.get=function(h){for(var e in es.names)if(h[e]!=null)return e;return null};es.J8=function(h,e){var $=es.GG,Z;
if(h=="brit"){var c=e.Brgh?e.Brgh.v:0,q=e.Cntr?e.Cntr.v:0,E=e.useLegacy?e.useLegacy.v:!1;if(E){var P=c/255,a=1+q/100;
if(a>1)a=1+Math.tan(Math.PI/2*q/101);var j=(1-a)/2,L=s.l2.jI(P,P,P),H=[a,0,0,j,0,a,0,j,0,0,a,j,0,0,0,1],_=s.l2.multiply(L,H),J=new s.EI(256);
for(var G=0;G<256;G++)J.h[G]=G;s.l2.transform(J,J,_);Z={type:$.D5,k$:J.h,q0:J.h,Uz:J.h,wY:!1,Su:!1}}else{var S=1024,N=-30+60*(q+100)/200,Y=[];
for(var G=0;G<4;G++)Y.push(s.$e.cc(G/3*255,G/3*255,!0));Y[1].v.Hrzn.v=64;Y[1].v.Vrtc.v=64-N;Y[2].v.Hrzn.v=128+64;
Y[2].v.Vrtc.v=128+64+N;Y.sort(function(bK,hB){return bK.v.Hrzn.v-hB.v.Hrzn.v});var U=s.$e.HL(Y,S);function g(bK,S){var Y=[],t=3;
for(var G=0;G<t+1;G++)Y.push(s.$e.cc(G/t*255,G/t*255,!0));Y[1].v.Hrzn.v=130-bK*26;Y[1].v.Vrtc.v=130+bK*51;
Y[2].v.Hrzn.v=233-bK*48;Y[2].v.Vrtc.v=233+bK*10;return s.$e.HL(Y,S)}var M=g(Math.abs(c)/100,S);if(c<0){var C=[],y=1/S;
for(var G=0;G<S;G++){var i=G*y,Q=G;while(M[Q]>i&&Q>1)Q--;C[G]=Q*y}M=C}var m=new Uint8Array(S);for(var G=0;
G<S;G++){var n=Math.round((S-1)*M[G]);m[G]=Math.round(255*U[n])}Z={type:$.D5,k$:m,q0:m,Uz:m,wY:!1,Su:!1}}}if(h=="levl"){var u=[],K,F,L,b,d,W;
for(var G=0;G<4;G++)u.push(fH.aj(e,G));K=-u[0][0]/255;F=1/(u[0][1]/255-u[0][0]/255);L=s.l2.multiply(s.l2.vs(F,F,F),s.l2.jI(K,K,K));
b=s.l2.vs(1/(u[1][1]/255-u[1][0]/255),1/(u[2][1]/255-u[2][0]/255),1/(u[3][1]/255-u[3][0]/255));d=s.l2.jI(-u[1][0]/255,-u[2][0]/255,-u[3][0]/255);
W=s.l2.multiply(b,d);var m=new s.EI(256);for(var G=0;G<256;G++)m.h[G]=m.l[G]=m.O[G]=G;var A=1/(u[0][4]/100),z=1/(u[1][4]/100),T=1/(u[2][4]/100),R=1/(u[3][4]/100);
s.l2.transform(m,m,W);for(var G=0;G<256;G++){m.h[G]=Math.round(Math.max(0,Math.min(255,255*Math.pow(m.h[G]/255,z))));
m.l[G]=Math.round(Math.max(0,Math.min(255,255*Math.pow(m.l[G]/255,T))));m.O[G]=Math.round(Math.max(0,Math.min(255,255*Math.pow(m.O[G]/255,R))))}s.l2.transform(m,m,L);
for(var G=0;G<256;G++){m.h[G]=Math.round(Math.max(0,Math.min(255,255*Math.pow(m.h[G]/255,A))));m.l[G]=Math.round(Math.max(0,Math.min(255,255*Math.pow(m.l[G]/255,A))));
m.O[G]=Math.round(Math.max(0,Math.min(255,255*Math.pow(m.O[G]/255,A))))}K=u[0][2]/255;F=u[0][3]/255-u[0][2]/255;
L=s.l2.multiply(s.l2.jI(K,K,K),s.l2.vs(F,F,F));b=s.l2.vs(u[1][3]/255-u[1][2]/255,u[2][3]/255-u[2][2]/255,u[3][3]/255-u[3][2]/255);
d=s.l2.jI(u[1][2]/255,u[2][2]/255,u[3][2]/255);W=s.l2.multiply(d,b);s.l2.transform(m,m,s.l2.multiply(L,W));
Z={type:$.D5,k$:m.h,q0:m.l,Uz:m.O,wY:!1,Su:!1}}if(h=="curv"){var I=cH.aj(e,0).length==256?1:0,r=[];if(I==0){var X=s.$e.s_(cH.aj(e,0),256);
for(var G=1;G<4;G++){var l=s.$e.s_(cH.aj(e,G),256);r.push(s.$e.bl(l,X))}}else{var hH=[];for(var G=0;
G<4;G++){var hZ=new Uint8Array(256);hH.push(hZ);var hO=cH.aj(e,G);for(var Q=0;Q<256;Q++)hZ[Q]=hO[Q]}for(var G=1;
G<4;G++)r.push(s.$e.bl(hH[G],hH[0]))}Z={type:$.D5,k$:r[0],q0:r[1],Uz:r[2],wY:!1,Su:!1}}if(h=="expA"){console.log(e);
var d3=e.Exps,v=e.Ofst,hl=e.gammaCorrection,ht=d3?d3.v:0,ga=v?v.v:0,eB=hl?hl.v:1,m=new Uint8Array(256);
for(var G=0;G<256;G++){var e=G/255,bP=Math.pow(Math.abs(ga),1/(Math.PI/2));if(ga>0){e=Math.max(ga/Math.E,e);
e=e*Math.exp(ga/1.75+ht/Math.PI);e=(1-bP)*e+bP*1}else{e=e*Math.exp(-ga*1.75+ht/Math.PI);e=e+-bP*1.14}e=Math.pow(e,1/eB);
e=Math.max(0,Math.min(1,e));m[G]=Math.round(e*255)}Z={type:$.D5,k$:m,q0:m,Uz:m,wY:!1,Su:!1}}if(h=="vibA"){Z={type:$.nb,Av:[e.vibrance?e.vibrance.v:0,e.Strt?e.Strt.v:0]}}if(h=="hue2"){var ek=[],b_=[],ca=[],gf=e.Clrz?e.Clrz.v:!1;
for(var G=0;G<256;G++){ek[G]=G/255;b_[G]=0;ca[G]=0}var bb=eb.aj(e,0),b2=es.MZ(bb[1]/100);if(gf){var dV=bb[0]/360;
for(var G=0;G<256;G++){ek[G]=dV;b_[G]=b2}}else{for(var G=0;G<256;G++){var ch=ek[G],hE=b_[G];ek[G]+=bb[0]/360;
for(var Q=0;Q<6;Q++){var dS=eb.aj(e,Q+1),e1=dS.eV,eG=dS.bR,bP=0;for(var dq=1;dq<4;dq++)if(eG[dq]<eG[0])eG[dq]+=360;
var f2=eG[0],a3=eG[1],bm=eG[2],h2=eG[3],ag=ch*360;if(ag<eG[0])ag+=360;var eU=(ag-f2)/(a3-f2),iz=(ag-bm)/(h2-bm);
if(eU<0)bP=0;else if(eU<1)bP=eU;else if(iz<0)bP=1;else if(iz<1)bP=1-iz;else bP=0;var a=es.MZ(e1[1]/100);
ek[G]+=bP*e1[0]/360;b_[G]+=bP*a;ca[G]+=bP*e1[2]/100}}for(var G=0;G<256;G++){b_[G]=(1+b_[G])*(1+b2)-1;
ca[G]=Math.max(-1,Math.min(1,ca[G]))}}var d2=new Uint8Array(256),gP=new Uint8Array(256),fa=new Uint8Array(256);
for(var G=0;G<256;G++){var eI=ek[G],it=b_[G],ic=ca[G];if(eI>1)eI--;if(eI<0)eI++;it=es.aiC(it);it=(1+it)*.5;
ic=(1+ic)*.5;d2[G]=Math.round(255*eI);gP[G]=Math.round(255*it);fa[G]=Math.round(255*ic)}var iK=bb[2]/100,fA=iK<0?-iK:iK,iB=iK<0?0:1;
Z={type:$.iw,ac1:d2,A$:gP,aaI:fa,agz:fA*iB,b4:1-fA,adY:bb[2]/100,a7F:gf?1:0}}if(h=="nvrt"){var m=new Uint8Array(256);
for(var G=0;G<256;G++)m[G]=255-G;Z={type:$.D5,k$:m,q0:m,Uz:m,wY:!1,Su:!1}}if(h=="post"){var hG=e.Lvls.v,m=new Uint8Array(256),bP=hG/255.001,dt=255/(hG-1);
for(var G=0;G<256;G++)m[G]=Math.floor(G*bP)*dt;Z={type:$.D5,k$:m,q0:m,Uz:m,wY:!1,Su:!1}}if(h=="grdm"){var gO=e.Grad.v,cX=e.Rvrs,bh=s.Y.Fz(gO.Clrs.v,0,0),S=1024,bi=s.Y.YL(gO,bh,S,cX?cX.v:!1),dM=s.m(S),ik=s.m(S),iW=s.m(S);
s.z0(bi,dM,0);s.z0(bi,ik,1);s.z0(bi,iW,2);Z={type:$.D5,k$:dM,q0:ik,Uz:iW,wY:!0,Su:!1}}if(h=="selc"){var et=new Float32Array(9*3*2),iy=e.BJ,er=e.Mthd?e.Mthd.v.CrcM=="Absl":!1;
for(var Q=0;Q<9;Q++){var h$=Q*6,dN=aS.aj(e,Q),dQ=dN[0]/100,cL=dN[1]/100,ge=dN[2]/100,ds=dN[3]/100;if(er){et[h$]=et[h$+1]=et[h$+2]=1;
et[h$+3]=dQ*(1+ds)+ds;et[h$+4]=cL*(1+ds)+ds;et[h$+5]=ge*(1+ds)+ds}else{et[h$+0]=(1+dQ)*(1+ds);et[h$+1]=(1+cL)*(1+ds);
et[h$+2]=(1+ge)*(1+ds)}}Z={type:$.o4,TO:et}}if(h=="blwh"){var dH="Rd Yllw Grn Cyn Bl Mgnt".split(" "),Z=[],gd=0,cs=0;
for(var G=0;G<6;G++)Z.push(e[dH[G]].v);Z.push(e.useTint.v,e.tintColor.v);var hs=[];for(var G=0;G<6;G++)hs.push((Z[G]-50)/50);
var cb=s.Y.LX(Z[7]);cb.h/=255;cb.l/=255;cb.O/=255;var fe=s.TC(cb.h,cb.l,cb.O),ic=s.GE(s.lR(fe.CD,1,.5)),ej=fe.Zp*fe.o8;
if(ic==.5)gd=cs=.5;else{gd=ej*(.5-ic)/(.5/ic-1);cs=1-ej*(.5-ic)-1/(2*(1-ic));cs/=1-1/(2*(1-ic))}Z={type:$.Zd,ajA:hs,zx:Z[6]?1:0,ajD:fe.CD,GE:ic,aky:ej,oW:gd,ajc:cs}}if(h=="blnc"){console.log(e);
var u=[],hc=["ShdL","MdtL","HghL"];for(var G=0;G<3;G++){if(e[hc[G]]==null){u[G]=[0,0,0];continue}var hG=e[hc[G]].v,c5=hG[0].v/100,eO=hG[1].v/100,hF=hG[2].v/100,i4=e.PrsL==null||e.PrsL.v?(Math.min(c5,eO,hF)+Math.max(c5,eO,hF))/2:0;
u[G]=[c5-i4,eO-i4,hF-i4]}var r=[s.m(256),s.m(256),s.m(256)];for(var Q=0;Q<3;Q++)for(var G=0;G<256;G++){var i=G*(1/255),dO=0,N=0,g0=0;
N=u[2][Q];g0=Math.abs(N);if(N<0)dO=Math.pow(i,Math.SQRT2);else dO=1.63*(Math.pow(i+.04,.5)-.2);i=g0*dO+(1-g0)*i;
N=u[1][Q];g0=Math.abs(N);if(N<0)dO=Math.pow(i,2);else dO=Math.min(2.35*(Math.pow(i+.09,.5)-.3),Math.pow(i,1/2));
i=g0*dO+(1-g0)*i;N=u[0][Q];g0=Math.abs(N);if(N<0)dO=i<.4?0:Math.pow((i-.4)/.6,Math.SQRT2);else dO=Math.pow(i,Math.SQRT2/2);
i=g0*dO+(1-g0)*i;i=Math.max(0,Math.min(1,i));r[Q][G]=Math.round(i*255)}Z={type:$.D5,k$:r[0],q0:r[1],Uz:r[2],wY:!1,Su:!1}}if(h=="phfl"){var a6=s.Y.LX(e.Clr.v),ao=[a6.h/255,a6.l/255,a6.O/255],dv=e.Dnst.v/100,r=[s.m(256),s.m(256),s.m(256)];
for(var Q=0;Q<3;Q++)for(var G=0;G<256;G++){var i=G*(1/255),en=i*ao[Q];en=Math.max(0,Math.min(1,en));
i=dv*en+(1-dv)*i;r[Q][G]=Math.round(i*255)}Z={type:$.D5,k$:r[0],q0:r[1],Uz:r[2],wY:!1,Su:e.PrsL.v}}if(h=="thrs"){var m=s.m(256);
for(var G=e.Lvl.v;G<256;G++)m[G]=255;Z={type:$.D5,k$:m,q0:m,Uz:m,wY:!0,Su:!1}}if(h=="mixr"){var eg=es.Mz(e),_=[];
for(var G=0;G<eg.G.length;G++)if(G%5!=3)_.push(eg.G[G]/100);if(eg.OK){for(var hm=1;hm<3;hm++)for(var i=0;
i<4;i++)_[hm*4+i]=_[i]}Z={type:$.d3,FC:_}}if(h=="rplc"){var iD=e.Mnm.v,hQ=e.Mxm.v;Z={type:$.Hi,qO:[iD.Lmnc.v,iD.A.v,iD.B.v],XF:[hQ.Lmnc.v,hQ.A.v,hQ.B.v],shift:[e.H.v/360,e.Strt.v/100,e.Lght.v/100],wO:e.Fzns.v/200}}if(h=="clrL"&&e.profile){var dy=new Uint8Array(e.profile.v),a$=ICC.R(dy.buffer),hY=[],b3=17,hY=ICC.U.sampleLUT(a$,b3);
Z={type:$.LL,Yu:ICC.U.rgba8LUT(hY,b3),a68:hY,sf:b3}}return Z};es.GW=function(h,e){var $=-1;if(h!="levl"||e==null)$=-1;
else if(e.Auto)$=0;else if(e.AuCo)$=1;else if(e.autoBlackWhite)$=2;return $};es.GG={D5:0,iw:1,nb:2,o4:3,Zd:4,d3:5,Hi:6,LL:7};
es.MZ=function(h){if(h<0)return h;return Math.pow(Math.tan(Math.PI/2*h),1.3)};es.aiC=function(h){if(h<0)return h;
h=Math.pow(h,1/1.3);return Math.atan2(h,1)/(Math.PI/2)};es.Vv=function(h,e,$,Z){var c=es.GG,q=Date.now();
if(V.Yv&&Z.X()>300*300&&h.type!=c.D5&&h.type!=c.LL){Z=Z.clone();Z.x=Z.y=0;var E=V.p5(0,Z.d,Z.v);E.set(e);
V.wo(E,Z);E.D1(Z);es.BO(h,E.Jw,Z);E.get($);return}if(h.type==c.LL){var P=h.a68,a=h.sf;ICC.U.applyLUT(P,a,e,$)}if(h.type==c.d3)s.l2.i6(e,$,h.FC);
if(h.type==c.Zd){var j=h.aky,L=h.GE,H=h.oW,_=h.ajc,J=e.length;for(var G=0;G<J;G+=4){var Z=e[G]*(1/255),S=e[G+1]*(1/255),N=e[G+2]*(1/255),Y=s.fe(Z,S,N),U=0;
for(var g=0;g<6;g++)U+=Math.min(1,1.7*(1-Y.a9))*Y.Zp*h.ajA[g]*es.qp(Y.CD,g*(1/6));var M=Math.max(0,Math.min(1,Y.a9*(1+U)));
if(h.zx==1){var C=0;if(M<H)C=M*(.5/L);else if(M<_)C=M+j*(.5-L);else C=1-(1-M)*.5/(1-L);Y.CD=h.ajD;Y.Zp=Math.min(1,j+3*j*Math.abs(M-.5*(H+_)));
Y.a9=C}else{Y.CD=0;Y.Zp=0;Y.a9=M}var y=s.lR(Y.CD,Y.Zp,Y.a9);$[G]=Math.round(y.h*255);$[G+1]=Math.round(y.l*255);
$[G+2]=Math.round(y.O*255)}}if(h.type==c.o4){var i=h.TO,J=e.length,Q=1/255;for(var G=0;G<J;G+=4){var Z=e[G]*Q,S=e[G+1]*Q,N=e[G+2]*Q,Y=s.fe(Z,S,N),m=Math.max(Z,Math.max(S,N)),n=Math.min(Z,Math.min(S,N)),u=1-Z,K=1-S,F=1-N,b=0,d=0,W=0;
for(var g=0;g<9;g++){var A=g*6,I=0;if(i[A]==1&&i[A+1]==1&&i[A+2]==1&&i[A+3]==0&&i[A+4]==0&&i[A+5]==0)continue;
var z=u*i[A]+i[A+3],T=K*i[A+1]+i[A+4],R=F*i[A+2]+i[A+5];if(g<6)I=es.qp(Y.CD,g*(1/6))*Y.Zp*2*Math.min(Y.a9,1-Y.a9);
else if(g==6)I=Math.max(0,n-.5)*2;else if(g==7)I=1-(Math.abs(m-.5)+Math.abs(n-.5));else I=Math.max(0,.5-m)*2;
b+=(Math.max(0,Math.min(1,z))-u)*I;d+=(Math.max(0,Math.min(1,T))-K)*I;W+=(Math.max(0,Math.min(1,R))-F)*I}u=Math.max(0,Math.min(1,u+b));
K=Math.max(0,Math.min(1,K+d));F=Math.max(0,Math.min(1,F+W));Z=1-u;S=1-K;N=1-F;$[G]=Math.round(Z*255);
$[G+1]=Math.round(S*255);$[G+2]=Math.round(N*255)}}if(h.type==c.D5){s.al_(e,$,h.k$,h.q0,h.Uz,h.wY,h.Su)}if(h.type==c.iw){var r=new Uint32Array(e.buffer),x=new Uint32Array($.buffer),J=r.length;
if(es.jk==null){es.jk=new Float64Array(256);for(var G=0;G<256;G++)es.jk[G]=es.MZ(-1+2*G/255)}var X=es.jk;
for(var G=0;G<J;G++){var l=r[G],Z=(l&255)*(1/255),S=(l>>>8&255)*(1/255),N=(l>>>16&255)*(1/255),hH=l>>>24,hZ=Math.min(Z,S,N),gj=Math.max(Z,S,N),hO=0,d3=0,v=0;
hO=s.fe(Z,S,N).CD;var hl=~~(hO*255+.5),ht=h.ac1[hl]*(1/255),ga=h.A$[hl]*(1/255)*2-1,eB=h.aaI[hl]*(1/255)*2-1,U=-eB,bP=hZ;
if(0<eB){U=eB;bP=gj}var ek=h.agz+h.b4*U*bP,b_=h.b4*(1-U);Z=ek+b_*Z;S=ek+b_*S;N=ek+b_*N;gj=Math.max(Z,S,N);
hZ=Math.min(Z,S,N);v=(gj+hZ)*.5;if(gj!=hZ){var fz=gj-hZ;d3=v>.5?fz/(2-(gj+hZ)):fz/(gj+hZ)}var ca=ga;
if(h.a7F==0){ga=X[Math.floor((1+ga)*127.5)];ca=Math.min(d3*(1+ga),1)}var y=s.lR(ht,ca,v);Z=y.h;S=y.l;
N=y.O;x[G]=hH<<24|N*255<<16|S*255<<8|Z*255}}if(h.type==c.Hi){s.i7(e,$);var r=new Uint32Array(e.buffer),x=new Uint32Array($.buffer),J=r.length,gf=h.wO,bb=1/gf,b2={Hs:h.qO[0],R:h.qO[1],O:h.qO[2]},dV={Hs:h.XF[0],R:h.XF[1],O:h.XF[2]};
for(var G=0;G<J;G++){var l=r[G],ch=l&255,hE=l>>>8&255,dS=l>>>16&255,Z=ch*(1/255),S=hE*(1/255),N=dS*(1/255),hH=l>>>24,e1=s.Z1(ch,hE,dS),eG=s.Ku(e1,b2,dV,gf,bb);
if(eG==0)continue;var Y=s.fe(Z,S,N),ht=2+Y.CD+eG*h.shift[0];Y.CD=ht-~~ht;Y.Zp=Math.max(0,Math.min(1,Y.Zp+eG*h.shift[1]));
Y.a9=Math.max(0,Math.min(1,Y.a9+eG*h.shift[2]));var y=s.lR(Y.CD,Y.Zp,Y.a9);Z=y.h;S=y.l;N=y.O;x[G]=hH<<24|N*255<<16|S*255<<8|Z*255}}if(h.type==c.nb){var r=new Uint32Array(e.buffer),x=new Uint32Array($.buffer),J=r.length,dq=h.Av[0]/100,f2=h.Av[1]/100;
for(var G=0;G<J;G++){var l=r[G],Z=(l&255)*(1/255),S=(l>>>8&255)*(1/255),N=(l>>>16&255)*(1/255),hH=l>>>24,Y=s.TC(Z,S,N),hO=Y.CD,d3=Y.Zp,v=Y.o8,a3=0,bm=45/360,h2=hO<bm?Math.cos(Math.PI/2*(hO-bm/2)/(bm/2)):0;
d3=d3+.2*(1-.4*h2)*dq*Math.max(0,Math.sin(d3*Math.PI));d3=d3*(1+f2);d3=Math.max(0,Math.min(1,d3));var y=s.g7(hO,d3,v);
Z=y.h;S=y.l;N=y.O;x[G]=hH<<24|N*255<<16|S*255<<8|Z*255}}};es.BO=function(h,e,$){V.As.BO(h,e)};es.qp=function(h,e){var $=s.$K(e,h)*6;
return Math.max(0,Math.min(1,$<0?1+$:1-$))};es.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]};
es.Dk=["expA","clrL","selc"];es.UE=[[13,1,1],[13,1,3],[13,1,4],[13,1,11],[13,1,5],[13,1,12]];es.a1C=[[13,1,11],[13,1,12],[13,1,3],[13,1,10]];
es.rt=[[13,1,1],[13,1,4],[13,1,5]];es.VZ={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"};
es.Ri=function(){var h=JSON.parse(JSON.stringify(es.VZ));delete h.GrMp;h.GdMp="grdm";return h}();es.Fr={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"};
es.keys={levl:[p.tm,p.Hs],curv:[p.tm,p.bQ],hue2:[p.tm,p.oK],nvrt:[p.tm,p.J1],blnc:[p.tm,p.lj]};es.Kk=function(h){var e=dA.X3("mixr");
e.Mnch={t:"bool",v:h.OK};function $(Z,G){var c={classID:"ChMx"},q={Rd:0,Grn:1,Bl:2,Cnst:4};for(var E in q)c[E]={t:"UntF",v:{type:"#Prc",val:Z[G+q[E]]}};
return{t:"Objc",v:c}}if(h.OK)e.Gry=$(h.G,0);else{e.Rd=$(h.G,0);e.Grn=$(h.G,5);e.Bl=$(h.G,10)}return e};
es.Mz=function(h){function e(Z,c,G){var q={Rd:0,Grn:1,Bl:2,Cnst:4};for(var E in q)if(Z[E])c[G+q[E]]=Z[E].v.val}var $={OK:!1,G:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]};
if(h.Mnch&&h.Mnch.v)$.OK=!0;if($.OK)e(h.Gry.v,$.G,0);else{e(h.Rd.v,$.G,0);e(h.Grn.v,$.G,5);e(h.Bl.v,$.G,10)}return $};
var dA={};dA.bo=function(h){var e=h.filterID.v;return e>16777215?k.aie(e):h.Fltr.v.classID};dA.wX=[{mQ:"GEfc"},{mQ:"LnCr"},{mQ:"LqFy",lv:!0},{yK:"3D",Ad:["lightFilterGradient"]},{yK:[24,2],Ad:"Avrg,Blr ,BlrM,boxblur,GsnB,Bokh,MtnB,RdlB,surfaceBlur".split(",")},{yK:[24,4],Ad:"Dspl,Pnch,Plr ,Rple,Shr ,Sphr,Twrl,Wave".split(",")},{yK:[24,6],Ad:["AdNs","Dspc","DstS","Mdn "]},{yK:[24,8],Ad:"ClrH,Crst,Frgm,Mztn,Msc ,Pntl".split(",")},{yK:[24,10],Ad:["Clds","DfrC","LnsF"]},{yK:[24,12],Ad:["Shrp","ShrE","ShrM","smartSharpen","UnsM"]},{yK:[24,14],Ad:"Dfs ,Embs,FndE,oilPaint,Slrz,TrcC,Wnd ".split(",")},{yK:[24,16],Ad:"HghP,Mxm ,Mnm ,Ofst,Rept,Ctoa".split(",")},{yK:"Fourier",Ad:["dDFT","iDFT"]}];
dA.Fr={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"};
dA.DR={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"};
dA.Nh={rigidTransform:f.Bi};dA.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]]};
dA.X3=function(h){var e=null;if(h=="GEfc")e={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:cc.X3("GlwE")}]}};
if(h=="LqFy"){var $={EN:5,CD:5,map:new Float32Array(5*5*2)},Z=new Uint8Array(hd.XE($)),c=[];for(var G=0;
G<Z.length;G++)c.push(Z[G]);e={__name:"Liquify",classID:"LqFy",LqMe:{t:"tdta",v:c}}}if(h=="rigidTransform"){e={__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(h=="LnCr")e={__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(h=="adaptCorrect")e={__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(h=="Dfs ")e={__name:"Diffuse",classID:"Dfs",Md:{t:"enum",v:{DfsM:"Nrml"}},FlRs:{t:"long",v:14061024}};
if(h=="Embs")e={__name:"Emboss",classID:"Embs",Angl:{t:"long",v:45},Hght:{t:"long",v:5},Amnt:{t:"long",v:100}};
if(h=="oilPaint")e={__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(h=="TrcC")e={__name:"Trace Contour",classID:"TrcC",Lvl:{t:"long",v:128},Edg:{t:"enum",v:{CntE:"Lwr"}}};
if(h=="Wnd ")e={__name:"Wind",classID:"Wnd",WndM:{t:"enum",v:{WndM:"Wnd"}},Drct:{t:"enum",v:{Drct:"Rght"}}};
if(h=="lightFilterGradient")e={__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(h=="boxblur")e={__name:"Box Blur",classID:"boxblur",Rds:{t:"UntF",v:{type:"#Pxl",val:15}}};if(h=="GsnB")e={__name:"Gaussian Blur",classID:"GsnB",Rds:{t:"UntF",v:{type:"#Pxl",val:7.2}}};
if(h=="Bokh")e={__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(h=="MtnB")e={__name:"Motion Blur",classID:"MtnB",Angl:{t:"long",v:0},Dstn:{t:"UntF",v:{type:"#Pxl",val:4}}};
if(h=="RdlB")e={__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(h=="surfaceBlur")e={__name:"Surface Blur",classID:"surfaceBlur",Rds:{t:"UntF",v:{type:"#Pxl",val:15}},Thsh:{t:"long",v:15}};
if(h=="Dspl")e={__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(h=="Pnch")e={__name:"Pinch",classID:"Pnch",Amnt:{t:"long",v:-100}};if(h=="Plr ")e={__name:"Polar Coordinates",classID:"Plr",Cnvr:{t:"enum",v:{Cnvr:"RctP"}}};
if(h=="Rple")e={__name:"Ripple",classID:"Rple",Amnt:{t:"long",v:999},RplS:{t:"enum",v:{RplS:"Mdm"}}};
if(h=="Shr ")e={__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(h=="Sphr")e={__name:"Spherize",classID:"Sphr",Amnt:{t:"long",v:100},SphM:{t:"enum",v:{SphM:"Nrml"}}};
if(h=="Twrl")e={__name:"Twirl",classID:"Twrl",Angl:{t:"long",v:90}};if(h=="Wave")e={__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(h=="AdNs")e={__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(h=="DstS")e={__name:"Dust & Scratches",classID:"DstS",Rds:{t:"long",v:2},Thsh:{t:"long",v:26}};if(h=="Mdn ")e={__name:"Median",classID:"Mdn",Rds:{t:"UntF",v:{type:"#Pxl",val:7}}};
if(h=="ClrH")e={__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(h=="Crst")e={__name:"Crystallize",classID:"Crst",ClSz:{t:"long",v:10},FlRs:{t:"long",v:1554929224}};
if(h=="Mztn")e={__name:"Mezzotint",classID:"Mztn",MztT:{t:"enum",v:{MztT:"FnDt"}},FlRs:{t:"long",v:204994187}};
if(h=="Msc ")e={__name:"Mosaic",classID:"Msc",ClSz:{t:"UntF",v:{type:"#Pxl",val:12}}};if(h=="Pntl")e={__name:"Pointillize",classID:"Pntl",ClSz:{t:"long",v:10},FlRs:{t:"long",v:1554929236}};
if(h=="LnsF")e={__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(h=="smartSharpen")e={__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(h=="UnsM")e={__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(h=="HghP")e={__name:"High Pass",classID:"HghP",Rds:{t:"UntF",v:{type:"#Pxl",val:3}}};if(h=="Mxm ")e={__name:"Maximum",classID:"Mxm",Rds:{t:"UntF",v:{type:"#Pxl",val:9}}};
if(h=="Mnm ")e={__name:"Minimum",classID:"Mnm",Rds:{t:"UntF",v:{type:"#Pxl",val:14}}};if(h=="Ofst")e={__name:"Offset",classID:"Ofst",Hrzn:{t:"long",v:144},Vrtc:{t:"long",v:278},Fl:{t:"enum",v:{FlMd:"Wrp"}}};
if(h=="Rept")e={__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(h=="Ctoa")e={__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(h=="brit")e={__name:"Brightness/Contrast",classID:"BrgC",Brgh:{t:"long",v:0},Cntr:{t:"long",v:0},useLegacy:{t:"bool",v:!1}};
if(h=="levl")e={__name:"Levels",classID:"Lvls",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Adjs:{t:"VlLs",v:[]}};
if(h=="curv")e={__name:"Curves",classID:"Crvs",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Adjs:{t:"VlLs",v:[]}};
if(h=="expA")e={__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(h=="vibA")e={__name:"Vibrance",classID:"vibrance",vibrance:{t:"long",v:0},Strt:{t:"long",v:0}};if(h=="hue2")e={__name:"Hue/Saturation",classID:"HStr",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Clrz:{t:"bool",v:!1},Adjs:{t:"VlLs",v:[]}};
if(h=="blnc")e={__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(h=="blwh")e={__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(h=="phfl")e={__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(h=="grdm")e={__name:"Gradient Map",classID:"GrMp",Rvrs:{t:"bool",v:!1},Grad:JSON.parse(c3.kD[6]).Grad};
if(h=="selc")e={__name:"Selective Color",classID:"SlcC",presetKind:{t:"enum",v:{presetKindType:"presetKindCustom"}},Mthd:{t:"enum",v:{CrcM:"Rltv"}},ClrC:{t:"VlLs",v:[]}};
if(h=="thrs")e={__name:"Threshold",classID:"Thrs",Lvl:{t:"long",v:128}};if(h=="mixr")e={__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(h=="clrL")e={__name:"Color Lookup",classID:"colorLookup"};if(h=="post")e={__name:"Posterize",classID:"Pstr",Lvls:{t:"long",v:3}};
if(h=="rplc")e={__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(h=="fade")e={__name:"Fade",classID:"fade",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}};
if(h=="aply")e={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(h=="blendOptions")e={classID:"blendOptions",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}};
return e};dA.yA={sAdNs:function(h,e){e[0]=h.Nose.v.val;e[1]=["Gsn","Unfr"].indexOf(h.Dstr.v.Dstr);e[2]=h.Mnch.v},gAdNs:function(h,e){h.Nose.v.val=e[0];
h.Dstr.v.Dstr=["Gsn","Unfr"][e[1]];h.Mnch.v=e[2]},sDstS:function(h,e){e[0]=h.Rds.v;e[1]=h.Thsh.v},gDstS:function(h,e){h.Rds.v=e[0];
h.Thsh.v=e[1]},sGsnB:function(h,e){e[0]=h.Rds.v.val},gGsnB:function(h,e){h.Rds.v.val=e[0]},sHghP:function(h,e){e[0]=h.Rds.v.val},gHghP:function(h,e){h.Rds.v.val=e[0]},"sMxm ":function(h,e){e[0]=h.Rds.v.val},"gMxm ":function(h,e){h.Rds.v.val=e[0]},"sMnm ":function(h,e){e[0]=h.Rds.v.val},"gMnm ":function(h,e){h.Rds.v.val=e[0]},sMtnB:function(h,e){e[0]=h.Angl.v;
e[1]=h.Dstn.v.val},gMtnB:function(h,e){h.Angl.v=typeof e[0]=="number"?e[0]:e[0].w0;h.Dstn.v.val=e[1]},sOfst:function(h,e){e[0]=h.Hrzn.v;
e[1]=h.Vrtc.v;e[2]=["Rpt","Bckg","Wrp"].indexOf(h.Fl.v.FlMd)},gOfst:function(h,e){h.Hrzn.v=e[0];h.Vrtc.v=e[1];
h.Fl.v.FlMd=["Rpt","Bckg","Wrp"][e[2]]},sPnch:function(h,e){e[0]=h.Amnt.v},gPnch:function(h,e){h.Amnt.v=e[0]},"sPlr ":function(h,e){e[0]=["RctP","PlrR"].indexOf(h.Cnvr.v.Cnvr)},"gPlr ":function(h,e){h.Cnvr.v.Cnvr=["RctP","PlrR"][e[0]]},sRple:function(h,e){e[0]=h.Amnt.v;
e[1]=["Sml","Mdm","Lrg"].indexOf(h.RplS.v.RplS)},gRple:function(h,e){h.Amnt.v=e[0];h.RplS.v.RplS=["Sml","Mdm","Lrg"][e[1]]},sTwrl:function(h,e){e[0]=h.Angl.v},gTwrl:function(h,e){h.Angl.v=e[0]},sUnsM:function(h,e){e[0]=h.Amnt.v.val;
e[1]=h.Rds.v.val;e[2]=h.Thsh.v},gUnsM:function(h,e){h.Amnt.v.val=e[0];h.Rds.v.val=e[1];h.Thsh.v=e[2]}};
dA.al1=function(h){var e=new eu(0,0);if(h.enab.v==!1)return e;var $=h.filterFXList.v;for(var G=0;G<$.length;
G++){var Z=$[G].v;if(Z.enab.v==!1)continue;var c=dA.bo(Z),q=dA.uB(c,Z.Fltr?Z.Fltr.v:null);if(q.x>e.x)e.x=q.x;
if(q.y>e.y)e.y=q.y}return e};dA.uB=function(h,e){var $=0,Z=0;if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(h)!=-1){var c=e.Rds.v.val;
$=Z=c*2.57}if(h=="MtnB")$=Z=e.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(h)!=-1){$=Z=1e4}if(h=="GEfc")return cc.uB(e);
return new eu(Math.ceil($),Math.ceil(Z))};dA.WW=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:[]}}}};
dA.fq=function(h,e){var $={h:e.oV>>16,l:e.oV>>8&255,O:e.oV&255},Z={h:e.XK>>16,l:e.XK>>8&255,O:e.XK&255},c=dA.names[h];
if(c==null)c=es.names[h];var q=h;for(var E in es.VZ)if(es.VZ[E]==h)q=E;var P={t:"Objc",v:{classID:"filterFX",Nm:{t:"TEXT",v:e_.get(c)},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:s.Y.lp($)},BckC:{t:"Objc",v:s.Y.lp(Z)},filterID:{t:"long",v:q.length==4?k.ae5(q):777}}},a=dA.X3(h);
if(a)P.v.Fltr={t:"Objc",v:a};return P};dA.PN=function(h,e,$,Z,c,q,E,P){var a=$*Z*4;s.zP.a6b(h,e,$,Z,c,q,E)};
dA.cu=function(h,e,$,Z){s.o$($);if(h<1){var c=Math.round(h*5),q=[1,2,1,2,[40,26,13,6,4,2][c],2,1,2,1];
q=s.V4.er(q);var E=$.slice(0);s.V4.mz(E,$,Z.d,Z.v,q,255)}else e($,Z,h);s.sS($)};dA.acV=function(h,e,$,Z){for(var G=0;
G<h.length;G++){$[G]=h[G]*(1/255);Z[G]=0}FFT.fft2d($,Z);var c=e>>>1,q=16384,E=128,a=100;while(E<e){E<<=1;
q<<=2}var P=255/Math.log(q),j=-100;for(var L=0;L<e;L++)for(var H=0;H<c;H++){var _=e+c+L&e-1,J=$[_*e+H],S=Z[_*e+H],N=Math.sqrt(J*J+S*S),Y=Math.atan2(S,J);
h[L*e+H]=Math.round(P*Math.log(N+1));h[L*e+c+H]=Math.round((Math.PI+Y)*(255*.5/Math.PI))}};dA.a0f=function(h,e,$,Z){$.fill(0);
Z.fill(0);var c=e>>>1,q=16384,E=128;while(E<e){E<<=1;q<<=2}var P=255/Math.log(q),a=[],j=[],L=[];for(var G=0;
G<256;G++){a[G]=Math.exp(G/P)-1;var H=G*(2*Math.PI/255)-Math.PI;j[G]=Math.sin(H);L[G]=Math.cos(H)}for(var _=0;
_<e;_++)for(var J=0;J<c;J++){var S=e+c+_&e-1,N=a[h[_*e+J]],H=h[_*e+c+J],Y=N*L[H],U=N*j[H];$[S*e+J]=Y;
Z[S*e+J]=U;if(J!=0){var g=S==0?S*e+e-J:(e-S)*e+(e-J);$[g]=Y;Z[g]=-U}}FFT.ifft2d($,Z);for(var G=0;G<h.length;
G++){h[G]=Math.max(0,Math.min(255,~~(.5+255*$[G])))}};dA.db=new ArrayBuffer(512);dA.a3A=function(h){var e=dA.db,$=h.length;
if(e.byteLength<$)dA.db=e=new ArrayBuffer($);var Z=new Uint8Array(e);for(var G=0;G<$;G+=4){Z[G]=h[G];
Z[G+1]=h[G+1];Z[G+2]=h[G+2];Z[G+3]=h[G+3]}return e};dA.Vv=function(h,e,$,Z,c,q,E){if(q==null)q={buffer:s.m(e.buffer.length),rect:e.rect.clone()};
s.i7(e.buffer,q.buffer);if(h=="GEfc"){var P=[];if($.GEfs){var a=$.GEfs.v;for(var G=0;G<a.length;G++){var j=a[G].v;
if(j.GELv&&j.GELv.v==!1)continue;P.push(j)}}else P=[$];for(var G=0;G<P.length;G++){var L;if(G==0)cc.Vv(h,e,P[G],Z,c,q,E);
else{if(L==null)L={buffer:s.m(e.buffer.length),rect:e.rect.clone()};s.i7(q.buffer,L.buffer);cc.Vv(h,L,P[G],Z,c,q,E)}}}if(h=="adaptCorrect"){var H=e.rect,_=H.d,J=H.v,S=_*J,N=S*4,Y=$.sdwM.v,U=Y.Amnt.v.val/100,g=Y.Wdth.v.val/100,M=Y.Rds.v,C=$.hglM.v,y=C.Amnt.v.val/100,i=C.Wdth.v.val/100,Q=C.Rds.v;
s.HI.a65(e.buffer,q.buffer,_,J,U,g,M,y,i,Q,$.ClrC.v/100,$.Cntr.v/100)}if(h=="Fbrs"){var H=e.rect,_=H.d,J=H.v,m=s.m(_*J),n=Date.now(),u=1,K=1-u;
for(var G=0;G<_*100;G++){var F=Math.random()*_;for(var b=0;b<J;b++){var d=~~(F+4096)&511;m[b*_+d]=Math.min(255,m[b*_+d]+1);
var W=Math.random();F=F-u+W*2*u}}s.vy(m);q.buffer.fill(255);s.Kh(m,q.buffer)}if(h=="Frgm"){var H=e.rect,_=H.d,J=H.v,A=e.buffer.slice(0);
s.o$(A);s.rE.a0o(A,_,J,q.buffer);s.sS(q.buffer)}if(h=="Dfs "){var H=e.rect,_=H.d,J=H.v,z=["Nrml","DrkO","LghO","anisotropic"].indexOf($.Md.v.DfsM);
if(z<3)s.rE.a2v(e.buffer,_,J,q.buffer,[z]);else{var T=[1.4,1.6,1,4,!1,2,[0,0,.001]],H=e.rect.clone();
H.x=H.y=0;s.AV.filter(e.buffer,H,q.buffer,T)}}if(h=="TrcC"){var H=e.rect,_=H.d,R=_<<2,J=H.v,I=$.Lvl.v,r=$.Edg.v.CntE=="Lwr",x=e.buffer,X=q.buffer;
s.Ut(X,16777215,4278190080);function l(he,c2){gj(he,c2);gj(he+1,c2+1);gj(he+2,c2+2)}function hH(he,c2){hO(he,c2);
hO(he+1,c2+1);hO(he+2,c2+2)}function gj(he,c2){var dY=x[he],b3=x[c2];if(dY>=I&&b3<I)X[he]=0;if(dY<I&&b3>=I)X[c2]=0}function hO(he,c2){var dY=x[he],b3=x[c2];
if(dY>I&&b3<=I)X[c2]=0;if(dY<=I&&b3>I)X[he]=0}if(r)for(var b=1;b<J;b++)for(var F=1;F<_;F++){var d3=b*_+F<<2;
l(d3,d3-4);l(d3,d3-R)}else for(var b=1;b<J;b++)for(var F=1;F<_;F++){var d3=b*_+F<<2;hH(d3,d3-4);hH(d3,d3-R)}}if(h=="Embs"){var H=e.rect,_=H.d,J=H.v,v=-$.Angl.v*Math.PI/180,hl=$.Hght.v,ht=$.Amnt.v/100;
hl/=2;var ga=Math.cos(v)*hl,eB=Math.sin(v)*hl,x=e.buffer,X=q.buffer;X.fill(0);var bP=new Uint32Array(x.buffer),ek=new Uint8Array(4),b_=new Uint32Array(ek.buffer);
for(var b=0;b<J;b++)for(var F=0;F<_;F++){var fz=0,ca=0,gf=0;if(0<=F+ga&&F+ga<_&&0<=b+eB&&b+eB<J){s.I._4(F+ga+.5,b+eB+.5,bP,_,J,b_,0,0);
fz+=ek[0]-128;ca+=ek[1]-128;gf+=ek[2]-128}if(0<=F-ga&&F-ga<_&&0<=b-eB&&b-eB<J){s.I._4(F-ga+.5,b-eB+.5,bP,_,J,b_,0,0);
fz-=ek[0]-128;ca-=ek[1]-128;gf-=ek[2]-128}var d3=b*_+F<<2;X[d3]=Math.max(0,Math.min(255,fz*ht+128));
X[d3+1]=Math.max(0,Math.min(255,ca*ht+128));X[d3+2]=Math.max(0,Math.min(255,gf*ht+128));X[d3+3]=x[d3+3]}}if(h=="ShrE"){var H=e.rect,_=H.d,J=H.v;
s.rE.ao3(e.buffer,_,J,q.buffer)}if(h=="Dspc"){var H=e.rect,_=H.d,J=H.v;s.rE.a4G(e.buffer,_,J,q.buffer)}if(h=="Slrz"){var bb=q.buffer,b2=128;
for(var G=0;G<bb.length;G+=4){if(bb[G]>b2)bb[G]=255-bb[G];if(bb[G+1]>b2)bb[G+1]=255-bb[G+1];if(bb[G+2]>b2)bb[G+2]=255-bb[G+2]}}if(h=="Wnd "){var H=e.rect,_=H.d,J=H.v,dV=["Wnd","Blst","Stgr"],ch=$.WndM.v.WndM;
s.rE.yq(e.buffer,_,J,q.buffer,[dV.indexOf(ch),$.Drct.v.Drct!="Left"])}if(h=="Bokh"){var H=e.rect,_=H.d,J=H.v,S=_*J,N=S*4,hE=e.buffer.slice(0),dS=$.BkDi.v.BtDi,e1=$.BkDc,eG=$.BkDp.v/255;
if(dS=="BeIn")eG=0;var dq=57*(.3+.7*((_+J)/2)/1750)*($.BkIb.v/100)*(1+.2*Math.pow(eG,.1)),t=parseInt($.BkIs.v.BtIs.slice(3)),f2=-$.BkIr.v*Math.PI/180,a3=[];
for(var G=0;G<8;G++){var bm=f2+G*(Math.PI*2/t),h2=f2+(G+1)*(Math.PI*2/t),ag=Math.cos(bm),eU=Math.sin(bm),iz=Math.cos(h2),d2=Math.sin(h2),gP=[0,0,0];
s.FC.lJ([[ag,eU,1,0],[iz,d2,1,0],[1,1,1,1]],gP);if(gP[2]>0){gP[0]*=-1;gP[1]*=-1;gP[2]*=-1}a3.push(gP[0],gP[1],gP[2],0)}if(dS=="BeIn"){s.Ut(hE,0,16777215);
eG=1}else if(dS=="BeIt"&&e1.v.BtDc=="BeCt"){}else{var fa;if(dS=="BeIt"&&e1.v.BtDc=="BeCm")fa=E[1];else if(dS=="BeIa")fa=E[2][e1.v];
if(fa==null){s.Ut(hE,0,16777215)}else{var eI;if(fa.rect.dz(H))eI=fa.channel;else eI=fa.tM(H);s.Jk(eI,hE,3)}}if(V.Yv){var it=hE,ic=_,iK=J,fA=1,iB=($.BkSb.v==0||$.BkSt.v==255)&&dS=="BeIn";
if(!iB){var hG=0;for(var G=0;G<N;G+=4)hG+=Math.abs(eG-hE[G+3]*(1/255));hG=hG/S*dq;var dt=3.14*hG*hG*_*J/3e6;
if(dt>2e3){alert("too large radius");return}}while(iB&&3*(dq/fA)*(dq/fA)*_*J>500*2e3*2e3){var gO=s.hg(hE,new O(0,0,ic,iK));
hE=gO.Hl;ic=gO.rect.d;iK=gO.rect.v;fA*=2}var n=Date.now(),cX=V.p5(0,ic,iK);cX.set(hE);var bh=V.p5(1,_,J);
V.wo(bh);V.filter.BO({type:V.filter.dX,KO:new Float32Array([1/ic,1/iK]),a7A:eG,a9q:dq/fA,a8d:new Float32Array([$.BkSb.v/100,$.BkSt.v/255]),akD:new Float32Array([$.BkNa.v/100,$.BkNt.v.BtNt=="BeNu"?0:1,$.BkNm.v?1:0]),ab6:new Float32Array(a3.slice(0,16)),a8W:new Float32Array(a3.slice(16))},cX.jg);
bh.get(q.buffer);var bi=q.buffer;for(var G=0;G<N;G+=4)bi[G+3]=e.buffer[G+3]}}if(h=="rigidTransform"){var n=Date.now(),dM=dA.a3A,cX=e.buffer.slice(0),h$=0,dN=0;
s.o$(cX);s.Ut(q.buffer,0);var _=e.rect.d,J=e.rect.v,ik=$.puppetShapeList.v,iW=[],et=[],iy=[],er=[];for(var dQ=0;
dQ<ik.length;dQ++){var cL=ik[dQ].v,ge=h$*2,ds=dN*3,dH=cL.originalVertexArray.v.length>>>2,hs=cL.indexArray.v.length>>>2,cb=new Float32Array(dM(cL.originalVertexArray.v));
for(var G=0;G<dH;G++)iW[ge+G]=cb[G];var ej=new Float32Array(dM(cL.deformedVertexArray.v));for(var G=0;
G<dH;G++)et[ge+G]=ej[G];var gd=new Uint32Array(dM(cL.indexArray.v));for(var G=0;G<hs;G++)iy[ds+G]=h$+gd[G];
var cs=[],hc=[],c5=cL.PnDp.v;for(var G=0;G<c5.length;G++){cs.push(cL.pinVertexIndices.v[G].v);hc.push(c5[G].v)}var eO=s.M0.a9z(cb,gd,cs,hc);
for(var G=0;G<eO.length;G++)er[h$+G]=eO[G];h$+=dH>>>1;dN+=~~(hs/3)}s.M0.Fx(cX,q.buffer,e.rect,iW,et,er,iy);
s.sS(q.buffer)}if(h=="lightFilterGradient"){function hF(fd){var dY=1/Math.sqrt(fd[0]*fd[0]+fd[1]*fd[1]+fd[2]*fd[2]);
fd[0]*=dY;fd[1]*=dY;fd[2]*=dY}var _=e.rect.d,J=e.rect.v,S=_*J,n=Date.now(),i4=s.m(S),b3=.3,bK=.7;s.yh(q.buffer,i4);
var dO=s.m(S);s.Nw.ec(i4,dO,q.rect,16);var g0=s.m(S);s.Nw.ec(i4,g0,q.rect,8);var a6=i4,m=new Float32Array(S),ao=$.Dtl.v,dv=ao[2].v,en=ao[1].v,eg=ao[0].v,hm=$.Scl.v*40*$.textureScale.v/(dv+en+eg);
dv*=hm;en*=hm;eg*=hm;for(var G=0;G<S;G++){var iD=dO[G]*(1/255),hQ=g0[G]*(1/255),dy=a6[G]*(1/255);dy=dy*dy;
m[G]=dv*iD+en*hQ+eg*dy}var a$=$.blur.v;if(a$!=0){var hY=m.slice(0);s.Nw.Yl(hY,m,q.rect,a$)}var hB=_-1,bC=J-1;
for(var b=1;b<bC;b++)for(var F=1;F<hB;F++){var G=b*_+F,d3=G*4,cK=m[G],ga=b3*(m[G+1]-cK)+bK*(cK-m[G-1]),eB=b3*(m[G+_]-cK)+bK*(cK-m[G-_]),fd=[1,0,ga],b6=[0,1,eB];
hF(fd);hF(b6);var h2=fd[0],hp=fd[2],bj=b6[1],hz=b6[2],bl=-hp*bj,dK=-h2*hz,cd=h2*bj;q.buffer[d3]=~~(127.5+bl*127.5);
q.buffer[d3+1]=~~(127.5+dK*127.5);q.buffer[d3+2]=~~(127.5+cd*127.5)}}if(h=="dDFT"||h=="iDFT"){function fN(t){if(t==0)return 1;
t--;t|=t>>1;t|=t>>2;t|=t>>4;t|=t>>8;t|=t>>16;return t+1}var _=e.rect.d,J=e.rect.v,gQ=fN(Math.max(_,J)),fK=gQ>>>1,b1=new O(0,0,gQ,gQ),d4=new O(0,0,_,J);
d4.y=gQ-J>>>1;var cr=_>>>1,gJ=new O(0,d4.y,cr,J),hU=new s.EI(_*J);s.DC(e.buffer,hU);var gX=new Float64Array(gQ*gQ),bo=new Float64Array(gQ*gQ),eI=s.m(gQ*gQ);
FFT.init(gQ);var eF=[hU.h,hU.l,hU.O];for(var G=0;G<3;G++){var eQ=eF[G];eI.fill(0);if(h=="dDFT"){s.T7(eQ,d4,eI,b1);
dA.acV(eI,gQ,gX,bo);s.T7(eI,b1,eQ,d4,gJ);gJ.x+=cr;b1.x-=fK-cr;s.T7(eI,b1,eQ,d4,gJ);gJ.x-=cr;b1.x+=fK-cr}else{s.T7(eQ,d4,eI,b1,gJ);
gJ.x+=fK;d4.x+=fK-cr;s.T7(eQ,d4,eI,b1,gJ);gJ.x-=fK;d4.x-=fK-cr;dA.a0f(eI,gQ,gX,bo);s.T7(eI,b1,eQ,d4)}}s.cl(hU,q.buffer)}if(h=="Avrg"){var e$=0,ay=0,gL=0,bO=0,cl=1;
for(var G=0;G<e.buffer.length;G+=4){var io=e.buffer[G+3];gL+=e.buffer[G]*io;ay+=e.buffer[G+1]*io;e$+=e.buffer[G+2]*io;
bO+=io}var e2=1/bO;e$=Math.round(cl*(e$*e2)+(1-cl)*255);ay=Math.round(cl*(ay*e2)+(1-cl)*255);gL=Math.round(cl*(gL*e2)+(1-cl)*255);
s.Ut(q.buffer,e$<<16|ay<<8|gL,4278190080)}if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf(h)!=-1){var cO=$.Rds.v.val,hv=h=="boxblur"?s.Nw.aH:s.Nw.aaV;
dA.cu(cO,hv,q.buffer,q.rect);if(h=="UnsM"||h=="smartSharpen"){var ht=$.Amnt.v.val/100,cn=0;if(h=="UnsM")cn=$.Thsh.v;
else ht*=.75;for(var G=0;G<e.buffer.length;G++){if((G&3)==3){q.buffer[G]=e.buffer[G];continue}var iE=e.buffer[G],c0=q.buffer[G],iR=ht*(iE-c0);
if(iR>0)iR=Math.max(0,iR-cn);else iR=Math.min(0,iR+cn);q.buffer[G]=Math.max(0,Math.min(255,iE+iR))}}if(h=="HghP")for(var G=0;
G<e.buffer.length;G++){if((G&3)==3){q.buffer[G]=e.buffer[G];continue}var iE=e.buffer[G],c0=q.buffer[G];
q.buffer[G]=Math.max(0,Math.min(255,128+iE-c0))}}if(h=="surfaceBlur"){var hP=$.Rds.v.val,bT=$.Thsh.v,_=e.rect.d,J=e.rect.v;
dA.PN(e.buffer,q.buffer,_,J,hP,s.zP.MJ,[bT],2)}if(h=="AdNs"){var gU=new Uint8ClampedArray(q.buffer.buffer),g4=255*$.Nose.v.val/100,ae;
if($.Dstr.v.Dstr=="Gsn")ae=function(){return(Math.random()+Math.random()+Math.random()+Math.random()-2)*2};
else ae=function(){return Math.random()*2-1};for(var G=0;G<gU.length;G+=4){var hP=gU[G],fX=gU[G+1],fU=gU[G+2],bX,dT,eD;
if($.Mnch.v){bX=dT=eD=ae()}else{bX=ae();dT=ae();eD=ae()}hP+=g4*bX;fX+=g4*dT;fU+=g4*eD;gU[G]=hP;gU[G+1]=fX;
gU[G+2]=fU}}if(h=="Mdn "||h=="DstS"||h=="Mxm "||h=="Mnm "){var hP=0;if(h=="Mdn "||h=="Mxm "||h=="Mnm ")hP=$.Rds.v.val;
if(h=="DstS")hP=$.Rds.v;s.zP.Wl=.5;var hv=s.zP.E0;if(h=="Mxm ")hv=s.zP.eQ;if(h=="Mnm ")hv=s.zP.XA;var _=e.rect.d,J=e.rect.v,ih={"Mdn ":0,"Mxm ":1,"Mnm ":1,DstS:2}[h];
dA.PN(e.buffer,q.buffer,_,J,hP,hv,[],ih);if(h=="DstS"){var bT=$.Thsh.v;for(var G=0;G<_*J*4;G++){var c$=Math.abs(e.buffer[G]-q.buffer[G]);
if(c$<=bT)q.buffer[G]=e.buffer[G]}}}if(h=="ClrH"){var gJ=e.rect.clone();gJ.x=gJ.y=0;var hP=$.Rds.v;hP=Math.round(hP*Math.sqrt(2));
var _=gJ.d,J=gJ.v,hU=new s.EI(_*J);s.DC(e.buffer,hU);s.vy(hU.h);s.vy(hU.l);s.vy(hU.O);var fR=D.w("canvas","");
fR.width=_;fR.height=J;var a8=fR.getContext("2d"),bi=s.m(_*J*4);for(var hK=0;hK<3;hK++){var eI=hK==0?hU.h:hK==1?hU.l:hU.O,v=Math.PI*$["Ang"+(hK+1)].v/180,gE=new i7(1/hP,0,0,1/hP,0,0);
gE.rotate(v);s.Jk(eI,bi,3);var ek=f.o.D8([bi,gJ],gE,!0),d4=ek.rect;a8.clearRect(0,0,_,J);var gc=Math.sin(v),dC=Math.cos(v);
for(var G=0;G<d4.v;G++)for(var az=0;az<d4.d;az++){var F=(az+d4.x+.5)*hP,b=(G+d4.y+.5)*hP,dD=F,e8=b;F=dC*dD-gc*e8;
b=gc*dD+dC*e8;var S=ek.buffer[(G*d4.d+az<<2)+3]*(1/255),cO=hP*Math.sqrt(S*(1/Math.PI));a8.beginPath();
a8.arc(F,b,cO,0,2*Math.PI);a8.fill()}var aL=a8.getImageData(0,0,_,J);s.z0(aL.data,eI,3)}s.vy(hU.h);s.vy(hU.l);
s.vy(hU.O);s.cl(hU,q.buffer)}if(h=="Crst"||h=="Pntl"){var _=e.rect.d,J=e.rect.v,hv=h=="Crst"?s.Fn.ajY:s.Fn.anJ;
hv(e.buffer,_,J,q.buffer,$.ClSz.v,[Math.round(c.h),Math.round(c.l),Math.round(c.O)])}if(h=="Mztn"){var _=e.rect.d,J=e.rect.v,S=_*J,hU=new s.EI(S),aU=[hU.h,hU.l,hU.O];
s.DC(e.buffer,hU);var ch=$.MztT.v.MztT,bM={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]}[ch],n=Date.now(),hb=[];
for(var G=0;G<S;G++){hb[G]=Math.random()}var S=_*J,e7=Math.round(S*bM[0]),gZ=S-_-1;for(var G=0;G<e7;
G++){var W=Math.random(),hq=1;if(W<.5){hq=_;W*=2}else W=2*(W-.5);var he=Math.floor(W*gZ),c2=he+hq;hb[he]=hb[c2]}var aG=Math.round(_*bM[1]);
for(var b=0;b<J;b++)for(var G=0;G<aG;G++){var W=s.p.f$(b*S+G),he=b*_+Math.floor(W*(_-1));hb[he]=hb[he+1]}var ff=new Float64Array(256);
for(var G=0;G<256;G++){var a5=G/255,g2=2*(a5<.5?a5:1-a5);g2=bM[2]+Math.pow(g2,bM[3])*(1-bM[2]);a5=a5<.5?g2*.5:1-g2*.5;
ff[G]=a5}for(var gb=0;gb<3;gb++){var eI=aU[gb];for(var b=0;b<J;b++){for(var F=0;F<_;F++){var G=b*_+F,iO=eI[G],a5=ff[iO],W=hb[G];
eI[G]=W>a5?0:255}}}s.cl(hU,q.buffer)}if(h=="Msc "){var bF=$.ClSz.v.val,_=e.rect.d,J=e.rect.v,ea=Math.ceil(_/bF),hw=Math.ceil(J/bF),ax=s.m(ea*hw*4);
s.scale.hF(e.buffer,_,J,ax,ea,hw,1/bF);s.scale.hF(ax,ea,hw,q.buffer,_,J,bF)}if(h=="Clds"||h=="DfrC"){var _=q.rect.d,J=q.rect.v,S=_*J,d$=s.m(S);
if(h=="Clds")s.Ut(q.buffer,4278190080);var fC=s.m(256*4);for(var G=0;G<256;G++){var d3=G<<2,gh=G/255,gd=1-gh;
fC[d3]=Math.round(gh*Z.h+gd*c.h);fC[d3+1]=Math.round(gh*Z.l+gd*c.l);fC[d3+2]=Math.round(gh*Z.O+gd*c.O)}s.rE.ah8(e.buffer,_,J,d$);
var bv=q.buffer;for(var G=0;G<S;G++){var d3=G<<2,gb=d$[G]<<2,hP=fC[gb],fX=fC[gb+1],fU=fC[gb+2];if(h=="Clds"){bv[d3]=hP;
bv[d3+1]=fX;bv[d3+2]=fU}else{bv[d3]=Math.abs(bv[4*G]-hP);bv[d3+1]=Math.abs(bv[4*G+1]-fX);bv[d3+2]=Math.abs(bv[4*G+2]-fU)}}}if(h=="LnsF"){var _=e.rect.d,J=e.rect.v,ch=["Zm","Nkn","Nkn1","PnVs"].indexOf($.Lns.v.Lns),hf=$.FlrC.v,gw=[Math.min(ch,2),$.Brgh.v/100,hf.Hrzn.v,hf.Vrtc.v],n=Date.now();
s.a85(e.buffer,_,J,q.buffer,gw)}var aO=["Blr ","BlrM","Shrp","ShrM"].indexOf(h);if(aO!=-1){var bz=aO>1,_=e.rect.d,J=e.rect.v,hh=s.V4.aY[aO],c8=e.buffer.slice(0);
if(!bz)s.o$(c8);s.V4.mz(c8,q.buffer,_,J,hh,255,!1,bz);if(!bz)s.sS(q.buffer)}if(h=="MtnB"){var c4=-$.Angl.v*Math.PI/180,eX=$.Dstn.v.val/2,n=Date.now(),_=e.rect.d,J=e.rect.v,H=e.rect.clone();
H.x=H.y=0;if(V.Yv){var n=Date.now(),fk=q.buffer;fk.set(e.buffer);s.o$(fk);var a2=V.p5(0,_,J);a2.set(fk);
var x=s.m(4);x[0]=Math.round(128+127*Math.cos(c4));x[1]=Math.round(128+127*Math.sin(c4));new Uint32Array(fk.buffer).fill(new Uint32Array(x.buffer)[0]);
var a1=V.p5(1,_,J);a1.set(fk);V.wo(a2,H);a2.D1(H);V.filter.BO({type:V.filter.H8,R9:a1.jg,KO:new Float32Array([1/_,1/J]),ajy:eX/2,a5v:1},a2.Jw);
a2.get(fk);s.sS(fk)}else{var gE=new i7;gE.rotate(c4);var ek=f.o.D8([e.buffer,e.rect],gE,!1,null,!0);
dA.cu(eX,s.Nw.wg,ek.buffer,ek.rect);gE.vy();ek=f.o.D8([ek.buffer,ek.rect],gE,!1,q.buffer.buffer,!0,q.rect)}console.log(Date.now()-n)}if(h=="RdlB"){var _=e.rect.d,J=e.rect.v,ht=$.Amnt.v,fr=$.BlrM.v.BlrM=="Zm",hK=$.Cntr.v,h8=hK.Hrzn.v,i8=hK.Vrtc.v,ga=Math.max(h8,1-h8)*_,eB=Math.max(i8,1-i8)*J,cO=Math.sqrt(ga*ga+eB*eB),h6=2*Math.PI*cO*1.5,ex=Math.round(h6),cq=Math.round(cO),gJ=new O(0,0,ex,cq),aJ=s.m(ex*cq*4),fG=fr?4:1,gW=fr?.6:8*((_+J)/2)/1400,fP=.1,fA=1,g$=1;
s.I.Lq(e.buffer,_,J,aJ,ex,cq,h8,i8,fG,fP,fA,g$);var cV=fr?s.m(ex*cq*4):null;if(fr){s.I.JR(aJ,cV,ex,cq);
var f8=cV;cV=aJ;aJ=f8;gJ.d=cq;gJ.v=ex}dA.cu(gW*ht,s.Nw.wg,aJ,gJ);if(fr){s.I.JR(aJ,cV,cq,ex);var f8=cV;
cV=aJ;aJ=f8;gJ.d=ex;gJ.v=cq}s.I.nv(aJ,ex,cq,q.buffer,_,J,h8,i8,fG,fP,fA,g$)}if(h=="Plr "){var _=e.rect.d,J=e.rect.v;
if($.Cnvr.v.Cnvr=="RctP")s.I.nv(e.buffer,_,J,q.buffer,_,J,.5,.5,1,0,2,_/J);else s.I.Lq(e.buffer,_,J,q.buffer,_,J,.5,.5,1,0,2,_/J)}if(h=="FndE"){var _=e.rect.d,J=e.rect.v;
s.V4.AP(e.buffer,q.buffer,_,J)}if(h=="oilPaint"){var v=$.LghD.v*Math.PI/180,eW=[Math.cos(v),Math.sin(v),.001],T=[$.stylization.v,$.cleanliness.v,$.brushScale.v,$.microBrush.v,$.lightingOn.v,$.specularity.v,eW],H=e.rect.clone();
H.x=H.y=0;s.AV.filter(e.buffer,H,q.buffer,T)}if(h=="Ofst"){var _=e.rect.d,J=e.rect.v,cT=new Uint32Array(e.buffer.buffer),cD=new Uint32Array(q.buffer.buffer),dD=$.Hrzn.v,e8=$.Vrtc.v,b8=$.Fl.v.FlMd;
s.Ut(cD,0);if(b8=="Bckg"||b8=="Rpt"){var gJ=e.rect.clone();gJ.offset(dD,e8);s.hX(cT,gJ,cD,q.rect)}if(b8=="Rpt"){var ag,eU,iz,d2,g3;
dD=Math.max(-_,Math.min(_,dD));e8=Math.max(-J,Math.min(J,e8));ag=dD>0?dD:0;iz=dD>0?_:_+dD;eU=e8>0?0:e8+J;
d2=e8>0?e8:J;g3=e8>0?0:_*(J-1);for(var b=eU;b<d2;b++)for(var F=ag;F<iz;F++)cD[b*_+F]=cT[g3+F-dD];ag=dD>0?0:_+dD;
iz=dD>0?dD:_;eU=e8>0?e8:0;d2=e8>0?J:J+e8;g3=dD>0?0:_-1;for(var b=eU;b<d2;b++)for(var F=ag;F<iz;F++)cD[b*_+F]=cT[g3+_*(b-e8)];
if(dD>=0&&e8>=0){ag=0;iz=dD;eU=0;d2=e8;g3=0}if(dD>=0&&e8<0){ag=0;iz=dD;eU=J+e8;d2=J;g3=_*(J-1)}if(dD<0&&e8>=0){ag=_+dD;
iz=_;eU=0;d2=e8;g3=_-1}if(dD<0&&e8<0){ag=_+dD;iz=_;eU=J+e8;d2=J;g3=_*J-1}for(var b=eU;b<d2;b++)for(var F=ag;
F<iz;F++)cD[b*_+F]=cT[g3]}if(b8=="Wrp"){dD=(dD+100*_)%_;e8=(e8+100*J)%J;var gJ=new O(dD-_,e8-J,_,J);
s.hX(cT,gJ,cD,q.rect);gJ.offset(_,0);s.hX(cT,gJ,cD,q.rect);gJ.offset(0,J);s.hX(cT,gJ,cD,q.rect);gJ.offset(-_,0);
s.hX(cT,gJ,cD,q.rect)}}if(h=="Rept"){var aP=$.Rsft.v.val/100,bp=$.SpcX.v.val/100;bp=Math.max(bp,-.99);
var aH=$.SpcY.v.val/100;aH=Math.max(aH,-.99);var fA=$.Scl.v.val/100,gE=new i7;gE.rotate($.Angl.v*Math.PI/180);
gE.scale(fA,fA);var ir={buffer:e.buffer,rect:e.rect};s.Wm(ir);if(ir.rect.nK()){ir.buffer=e.buffer;ir.rect=e.rect}var bv=ir.buffer,gJ=ir.rect,eM=s.ZC(bv,gJ,0),ef=new Uint32Array(bv.buffer)[0];
if(!eM.nK()&&!eM.dz(gJ)){var ai=s.m(eM.X()*4);s.hX(bv,gJ,ai,eM);bv=ai;gJ=eM}gJ.x=gJ.y=0;ef=bp==0&&aH==0||$.SpcC.v?ef:0;
function ac(F){return F<0?Math.ceil(F):Math.floor(F)}var da=gE.tf(new eu(gJ.d,0));da.x=ac(da.x);da.y=ac(da.y);
var f7=gE.tf(new eu(0,gJ.v));f7.x=ac(f7.x);f7.y=ac(f7.y);var ek=f.o.D8([bv,gJ],gE,!1),d4=ek.rect,X=ek.buffer,fT=Math.round(d4.x),fD=Math.round(d4.y),fm=Math.max(q.rect.d,q.rect.v)/Math.min(gJ.d*fA*(1+bp),gJ.v*fA*(1+aH));
fm=Math.ceil(fm*1.7);s.Ut(q.buffer,ef);for(var b=-fm;b<fm;b++){for(var F=-fm;F<fm;F++){var an=(F+b*aP)*(1+bp),bV=b*(1+aH);
d4.x=fT+Math.round(an*da.x+bV*f7.x);d4.y=fD+Math.round(an*da.y+bV*f7.y);if(d4.k3(q.rect))s.p.Jn("norm",X,d4,q.buffer,q.rect,d4,1)}}}if(h=="Ctoa"){var c=s.Y.LX($.Clr.v),bT=$.Trsp.v.val/100,be=$.Opct.v.val/100;
bT=be==0?0:bT/be;var _=e.rect.d,J=e.rect.v,dF=~~c.h,f$=~~c.l,cY=~~c.O,g3=e.buffer,d9=q.buffer;for(var b=0;
b<J;b++)for(var F=0;F<_;F++){var G=b*_+F,d3=G<<2,gJ=g3[d3],cP=g3[d3+1],bv=g3[d3+2],aj=Math.abs(dF-gJ),gp=Math.abs(f$-cP),eS=Math.abs(cY-bv),b9=Math.max(aj,gp,eS)*(1/255);
b9=Math.max(0,Math.min(1,b9/be));var dZ=b9==0?0:1/b9,bN=bT==1?1:Math.max(0,Math.min(1,(b9-bT)/(1-bT)));
d9[d3]=Math.max(0,Math.min(255,(gJ-dF*(1-b9))*dZ));d9[d3+1]=Math.max(0,Math.min(255,(cP-f$*(1-b9))*dZ));
d9[d3+2]=Math.max(0,Math.min(255,(bv-cY*(1-b9))*dZ));d9[d3+3]=~~(.5+bN*255)}}if("LqFy,Dspl,Pnch,Sphr,Twrl,Rple,Shr ,Wave,LnCr".split(",").indexOf(h)!=-1){var e5=E[0],_=e.rect.d,J=e.rect.v,ff,aQ=0;
if(h=="LqFy")ff=hd.Hm(new Uint8Array($.LqMe.v).buffer);else{var fS=3;ff={EN:Math.floor(_/fS),CD:Math.floor(J/fS)};
ff.map=new Float32Array(ff.EN*ff.CD*2);if(h=="LnCr"){var h8=.5*(ff.EN-1),i8=.5*(ff.CD-1),iu=Math.max(Math.abs(0-h8),Math.abs(1-h8)),bI=Math.max(Math.abs(0-i8),Math.abs(1-i8)),fu=Math.sqrt(iu*iu+bI*bI),gN=0,fF=0,h0=-1,aV=2,fA=$.LnSi.v/100,fr=1/fA,eR=$.LnIa.v/100,bt=eR==0?1e-6:eR*4.6,ed=fr/fu;
for(var b=0;b<ff.CD;b++){for(var F=0;F<ff.EN;F++){var ga=(F-h8)*ed,eB=(b-i8)*ed,hP=Math.sqrt(ga*ga+eB*eB)*bt,e9=Math.atan(hP),i9=eR>0?e9/hP:hP/e9,g$=h8+fu*i9*ga,g1=i8+fu*i9*eB,G=b*ff.EN+F<<1;
ff.map[G]=g$-F;ff.map[G+1]=g1-b}}}else if(h=="Dspl"&&e5.length!=0){aQ=$.UndA.v.UndA=="WrpA"?2:1;var gM=$.DspF.v.pth,hW;
for(var G=0;G<e5.length;G++)if(e5[G].af==gM)hW=e5[G];if(hW==null)hW=e5[0];hW.v2();var aj=hW.bH[1],hk=s.m(aj.X());
s.yh(hW.bH[0],hk);var d0=aj.d,iT=aj.v;ff={EN:d0,CD:iT};ff.map=new Float32Array(ff.EN*ff.CD*2);var eq=2.54*$.HrzS.v*d0/_,ii=2.54*$.VrtS.v*iT/J;
for(var b=0;b<ff.CD;b++){for(var F=0;F<ff.EN;F++){var c$=-.5+hk[b*d0+F]*(1/255),G=b*ff.EN+F<<1;ff.map[G]=c$*eq;
ff.map[G+1]=c$*ii}}}else if(h=="Pnch"||h=="Twrl"||h=="Sphr"){var ht=1,c4=Math.PI,gF=0,hK=3,bF=1.53,i9=1;
if(h=="Pnch"||h=="Sphr")ht=$.Amnt.v/100;if(h=="Twrl")c4=$.Angl.v*Math.PI/180;if(h=="Sphr")gF=["Nrml","HrzO","VrtO"].indexOf($.SphM.v.SphM);
function hv(F){F=Math.pow(F,1-F*.3-F*F*(F*F)*.5);return-.225*Math.sin(F*Math.PI)}function bL(J,dY,hP,ag,eU,iz,d2,i9){var ga=iz-ag,eB=d2-eU,aI=ag-J,iL=eU-dY,gh=ga*ga+eB*eB,fU=2*(ga*aI+eB*iL),hK=aI*aI+iL*iL-hP*hP,il=Math.sqrt(fU*fU-4*gh*hK),df=i9/(2*gh),eo=(-fU+il)*df,c7=(-fU-il)*df;
return i9*Math.min(eo,c7)}var ea=ff.EN,hw=ff.CD,cJ=ff.EN/2,bC=ff.CD/2,h_=1/cJ,hP=Math.sqrt(hK*hK+1)/hK,eQ=hK+Math.sqrt(1/(hK*hK));
if(ht<0){hK=1.72;hP=1;eQ=hK;bF=-1;i9=-1}for(var b=0;b<hw;b++){var eB=(b-bC)/bC;for(var F=0;F<ea;F++){var ga=(F-cJ)*h_;
if(gF==1)eB=0;else if(gF==2)ga=0;var aB=Math.sqrt(ga*ga+eB*eB);if(aB<1&&aB!=0){var G=b*ff.EN+F<<1;if(h=="Pnch"){var aD=-ht*hv(aB)/aB;
ff.map[G]=ga*aD*cJ;ff.map[G+1]=eB*aD*bC}else if(h=="Sphr"){var f8=bL(0,eQ,hP,0,0,aB,hK,i9),ak=bF*ht*(f8-1);
ff.map[G]=ga*ak*cJ;ff.map[G+1]=eB*ak*bC}else if(h=="Twrl"){var v=Math.atan2(eB,ga)-c4*(1-aB)*(1-aB),go=Math.cos(v),fV=Math.sin(v);
ff.map[G]=(aB*go-ga)*cJ;ff.map[G+1]=(aB*fV-eB)*bC}}}}}else if(h=="Shr "){var ij=JSON.parse(JSON.stringify($.ShrP.v));
s.$e.J(ij,new i7(0,255/127,255/127,0,-2,0));var iA=s.$e.HL(ij,ff.CD,!0);aQ=$.UndA.v.UndA=="WrpA"?2:1;
for(var b=0;b<ff.CD;b++){var ga=-iA[b]*ff.EN;for(var F=0;F<ff.EN;F++){var G=b*ff.EN+F<<1;ff.map[G]=ga}}}else if(h=="Wave"){var cx=$.NmbG.v,av=$.WLMn.v,ee=$.WLMx.v,d8=$.AmMn.v*(Math.PI/4),hu=$.AmMx.v*(Math.PI/4),gB=$.SclH.v/100,hy=$.SclV.v/100,ch=$.Wvtp.v.Wvtp,fl=Math.sin;
if(ch=="WvTr")fl=function(F){F*=2/Math.PI;return-.5+Math.abs(F%2-1)};if(ch=="WvSq")fl=function(F){F*=2/Math.PI;
return 1+2*Math.floor(F%2-1)};var cR=[],dz=new s.p.nD($.RndS.v);for(var G=0;G<cx;G++){cR.push(dz.get()*10);
cR.push(Math.PI*fS/(av+dz.get()*(ee-av)));cR.push(gB*(d8+dz.get()*(hu-d8))/fS);cR.push(dz.get()*10);
cR.push(Math.PI*fS/(av+dz.get()*(ee-av)));cR.push(hy*(d8+dz.get()*(hu-d8))/fS)}var h9=[],dj=[],iN=Math.max(ff.EN,ff.CD);
for(var G=0;G<iN;G++){var ga=0,eB=0;for(var az=0;az<cx;az++){var cF=az*6;ga+=cR[cF+2]*fl(cR[cF]+G*cR[cF+1]);
eB+=cR[cF+5]*fl(cR[cF+3]+G*cR[cF+4])}h9[G]=eB;dj[G]=ga}for(var b=0;b<ff.CD;b++){for(var F=0;F<ff.EN;
F++){var G=b*ff.EN+F<<1;ff.map[G]=dj[b];ff.map[G+1]=h9[F]}}aQ=$.UndA.v.UndA=="WrpA"?2:1}else if(h=="Rple"){aQ=1;
var ht=$.Amnt.v/100,ep=4,e6=[0,-.19,-.29,-.32,.92,.37,.93,.54,-.54,.42,-.29,-.58,-.67,.85,0,.64],cQ=1,iQ=1,aI=0,iU=["Sml","Mdm","Lrg"].indexOf($.RplS.v.RplS);
if(iU==0){cQ=1;iQ=.2;aI=3}if(iU==2){cQ=1;iQ=2;aI=-1;e6=e6.reverse()}var cA=function(F,b){var hK=Math.cos,hm=0;
for(var G=0;G<ep;G++)for(var az=0;az<ep;az++)hm+=e6[G*ep+az]*hK(F*(G+aI)-b*(az+aI));return hm},cM=Math.floor(50/fS),eT=new Float32Array(cM*cM*2),aA=iQ*ht*.5/fS;
for(var b=0;b<cM;b++)for(var F=0;F<cM;F++){var h8=cQ*F*2*Math.PI/cM,i8=cQ*b*2*Math.PI/cM,aW=cA(h8,i8),ga=(cA(h8+.01,i8)-aW)*100,eB=(cA(h8,i8+.01)-aW)*100,G=(b*cM+F)*2;
eT[G]=ga*aA;eT[G+1]=eB*aA}for(var b=0;b<ff.CD;b++)for(var F=0;F<ff.EN;F++){var fV=b%cM,go=F%cM,G=b*ff.EN+F<<1,h4=fV*cM+go<<1;
ff.map[G]=eT[h4];ff.map[G+1]=eT[h4+1]}}}s.FT.Km(e.buffer,q.buffer,_,J,null,ff.map,ff.EN,ff.CD,aQ)}return q};
var cc={};cc.Ol="BrSm BrsL BrDR BrsW BrbW BrSp".split(" ");cc.R4="LDBt LDBL LDLf LDTL LDTp LDTR LDRg LDBR".split(" ");
cc.fs=["ScrC","ScrD","ScrL"];cc.GJ=["SDRD","SDHz","SDLD","SDVt"];cc.U7="TxBl TxCa TxFr TxTL TxBr TxBu TxSt".split(" ");
cc.Fr={PntD:"paintDaubs"};cc.wX=["Artistic","Brush Strokes",[24,4],"Sketch",[24,14],[12,67]];cc.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"]};
cc.X3=function(h){var e;if(h=="PntD")e={Sz:{t:"long",v:10},Shrp:{t:"long",v:10},BrsT:{t:"enum",v:{BrsT:"BrSm"}}};
if(h=="PlsW")e={HghS:{t:"long",v:20},Dtl:{t:"long",v:4},Smth:{t:"long",v:5}};if(h=="Spt")e={SprR:{t:"long",v:10},Smth:{t:"long",v:5},FlRs:{t:"long",v:10738420}};
if(h=="SprS")e={StrL:{t:"long",v:12},SprR:{t:"long",v:7},SDir:{t:"enum",v:{StrD:"SDRD"}},FlRs:{t:"long",v:893120664}};
if(h=="Gls")e={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(h=="OcnR")e={RplS:{t:"long",v:5},RplM:{t:"long",v:15},FlRs:{t:"long",v:64008840}};if(h=="BsRl")e={Dtl:{t:"long",v:11},Smth:{t:"long",v:7},LghD:{t:"enum",v:{LghD:"LDBt"}}};
if(h=="Chrc")e={ChAm:{t:"long",v:1},Dtl:{t:"long",v:5},LgDr:{t:"long",v:50},GELv:{t:"bool",v:!0}};if(h=="Chrm")e={Dtl:{t:"long",v:4},Smth:{t:"long",v:4}};
if(h=="GraP")e={StrL:{t:"long",v:7},LgDr:{t:"long",v:50},SDir:{t:"enum",v:{StrD:"SDRD"}},FlRs:{t:"long",v:55993248}};
if(h=="HlfS")e={HlSz:{t:"long",v:1},Cntr:{t:"long",v:5},ScrT:{t:"enum",v:{ScrT:"ScrD"}}};if(h=="Phtc")e={Dtl:{t:"long",v:10},Drkn:{t:"long",v:4}};
if(h=="Stmp")e={LgDr:{t:"long",v:25},Smth:{t:"long",v:4}};if(h=="GlwE")e={EdgW:{t:"long",v:1},EdgB:{t:"long",v:10},Smth:{t:"long",v:1}};
if(h=="StnG")e={ClSz:{t:"long",v:10},BrdT:{t:"long",v:4},LghI:{t:"long",v:0},FlRs:{t:"long",v:319935998}};
if(h=="Txtz")e={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}};
e.__name="Filter Gallery";e.classID="GEfc";e.GEfk={t:"enum",v:{GEft:h}};e.GELv={t:"bool",v:!0};return e};
cc.wY=function(h,e){for(var G=0;G<e.length;G++)~~(e[G]=(h[4*G]+h[4*G+1]+h[4*G+2])*(1/3))};cc.Vv=function(h,e,$,Z,c,q,E){h=$.GEfk.v.GEft;
var P=e.rect,a=P.d,j=P.v,L=a*j;console.log(JSON.stringify(h),JSON.stringify($));if(h=="PstE"){}if(h=="AccE"){}if(h=="AngS"){}if(h=="Chrc"){var H=s.m(a*j),_=s.m(a*j);
cc.wY(e.buffer,H);s.rE.anD(H,a,j,_,[$.ChAm.v,$.Dtl.v,$.LgDr.v]);cc.wr(_,q.buffer,Z,c)}if(h=="Stmp"){var H=s.m(a*j),_=s.m(a*j);
cc.wY(e.buffer,H);s.rE.ad4(H,a,j,_,[$.LgDr.v,$.Smth.v]);cc.wr(_,q.buffer,Z,c)}if(h=="GraP"){var H=s.m(a*j),_=s.m(a*j);
s.yh(e.buffer,H);s.rE.abM(H,a,j,_,[$.StrL.v,$.LgDr.v,["SDRD","SDHz","SDLD","SDVt"].indexOf($.SDir.v.StrD)]);
cc.wr(_,q.buffer,Z,c)}if(h=="Phtc"){function J(f2,a3,P,ds){s.Nw.E_(f2,a3,P,ds);for(var G=0;G<L;G++)a3[G]=Math.max(0,Math.min(255,128+f2[G]-a3[G]))}var S=$.Dtl.v,N=$.Drkn.v,H=s.m(L);
s.yh(e.buffer,H);var Y=s.m(L);J(H,Y,P,1);var U=s.m(L);J(H,U,P,S);for(var G=0;G<L;G++)H[G]=Math.max(0,Math.min(255,255-(Y[G]-U[G])*N));
cc.wr(H,q.buffer,Z,c)}if(h=="Spt"||h=="SprS"){var g,M=1,C=1;g={EN:Math.floor(a/C),CD:Math.floor(j/C)};
g.map=new Float32Array(g.EN*g.CD*2);var y=new s.p.nD($.FlRs.v),i=new Float32Array(8192),Q=$.SprR.v,m=Q<20?.018*Q:.36+(Q-20)*.128;
if(h=="SprS"){m=.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][Q]}for(var G=0;
G<8192;G++)i[G]=(-1+2*y.get())*m*70;for(var n=0;n<j;n++)for(var u=0;u<a;u++){var K=n*a+u<<1;g.map[K]=i[K%7919];
g.map[K+1]=i[(K+1)%7919]}var F=g.map.slice(0),b=h=="Spt"?$.Smth.v-1:1;if(h=="Spt"&&b!=0){cc.pV(g.map,F,a,j,b);
cc.eN(F,g.map,a,j,b)}if(h=="SprS"){var d=$.StrL.v>>>1,W=d==0?2:1;cc.pV(g.map,F,a,j,W);cc.eN(F,g.map,a,j,W);
if(d!=0){var A=cc.GJ.indexOf($.SDir.v.StrD),z=[1,1,1,0][A],T=[-1,0,1,1][A],R=2*d+1,I=1/R;for(var n=0;
n<j;n++)for(var u=0;u<a;u++){var K=n*a+u<<1,r=0,x=0;for(var G=0;G<R;G++){var X=Math.max(0,Math.min(a-1,u-(d+G)*z)),l=Math.max(0,Math.min(j-1,n-(d+G)*T)),hH=l*a+X<<1;
r+=g.map[hH];x+=g.map[hH+1]}F[K]=r*I;F[K+1]=x*I}g.map=F}}s.FT.Km(e.buffer,q.buffer,a,j,null,g.map,g.EN,g.CD,M)}if(h=="BsRl"||h=="PlsW"||h=="Chrm"){var hZ=Date.now(),gj=s.m(L),hO=gj.slice(0);
s.yh(e.buffer,gj);var S=$.Dtl.v,d3=$.Smth.v;if(S!=15){s.Nw.ec(gj,hO,P,Math.round((15-S)*.5));s.i7(hO,gj)}var v=1.4/a,hl=1.4/j,ht=new Float32Array(L),ga=new Float32Array(L),eB=new Float32Array(q.buffer.buffer);
for(var n=0;n<j;n++)for(var u=0;u<a;u++){var G=n*a+u,z=u==a-1?gj[G]-gj[G-1]:gj[G+1]-gj[G],T=n==j-1?gj[G]-gj[G-a]:gj[G+a]-gj[G],bP=u*v-.7,ek=n*hl-.7;
ht[G]=z==0?bP:z*.4;ga[G]=T==0?ek:T*.4}if(h=="BsRl"){var b_=(2+cc.R4.indexOf($.LghD.v.LghD))*Math.PI*.25,r=Math.cos(b_);
if(Math.abs(r)<.1)r=0;r=Math.sign(r);var x=Math.sin(b_);if(Math.abs(x)<.1)x=0;x=Math.sign(x);var fz=1/(r*r+x*x);
for(var n=0;n<j;n++)for(var u=0;u<a;u++){var G=n*a+u,ca=Math.max(-1,Math.min(1,r*ht[G])),gf=Math.max(-1,Math.min(1,x*ga[G]));
hO[G]=128+127*(ca+gf)*fz}if(d3!=1){s.Nw.ec(hO,gj,P,Math.round((d3-1)*.5));s.i7(gj,hO)}cc.wr(hO,q.buffer,Z,c)}else{if(h=="Chrm")d3=5+d3;
if(d3>1)cc.cu(ht,ga,eB,P,d3-1);if(h=="PlsW"){var bb=new Uint8Array(ht.buffer);for(var G=0;G<L;G++){var b2=G<<2,z=ht[G],T=ga[G],dV=1/(Math.sqrt(1+z*z)*Math.sqrt(1+T*T)),ch=dV*dV,hE=ch*ch,dS=~~(255*(hE*hE*ch));
bb[b2+0]=dS;bb[b2+1]=dS;bb[b2+2]=dS;bb[b2+3]=dS}q.buffer.set(e.buffer);s.p.Jn("norm",bb,P,q.buffer,P,P,$.HghS.v/20)}else if(h=="Chrm"){var e1=q.buffer,eG=a>>>1,dq=j>>>1;
for(var G=0;G<L;G++){var b2=G<<2,z=ht[G],T=ga[G],f2={x:1,y:0,Qc:z};hn.Em(f2);var a3={x:0,y:1,Qc:T};hn.Em(a3);
var bm=hn.Xn(f2,a3),h2=1/bm.Qc,ag=~~Math.max(0,Math.min(a-1,eG-bm.x*h2*eG)),eU=~~Math.max(0,Math.min(j-1,dq-bm.y*h2*dq)),dS=gj[eU*a+ag];
e1[b2+0]=dS;e1[b2+1]=dS;e1[b2+2]=dS}}}}if(h=="Gls"||h=="OcnR"||h=="Txtz"){var iz=h=="OcnR"?2:cc.U7.indexOf($.TxtT.v.TxtT),R=24,ik=0,iW,et;
if(iz==6)iz=2;var d2="blocks canvas frosted tinylens brick burlap".split(" ")[iz];if(cc.kr==null)cc.kr=[];
if(cc.kr[iz]==null){var gP,fa;if(iz==2){fa=new O(0,0,128,128);var eI=dA.X3("AdNs");eI.Mnch.v=!0;eI.Dstr.v.Dstr="Gsn";
eI.Nose.v.val=50;var gP=s.m(fa.X()*4),it=gP.slice(0);new Uint32Array(it.buffer).fill(4286611584);dA.Vv("AdNs",{buffer:it,rect:fa},eI,0,0,{buffer:gP,rect:fa})}else{var ic=cE.bO.get("tex/"+d2,!0)[0];
fa=ic.Au;gP=new Uint8Array(ic.data)}var gj=s.m(fa.X());s.z0(gP,gj,0);cc.kr[iz]=[fa,gj]}var fa=cc.kr[iz][0],gj=cc.kr[iz][1],iK=fa.d,fA=fa.v;
function iB(hB,bC,cK){return~~(hG*(hB+bC)+8192)&127}var ht=new Float32Array(L),ga=new Float32Array(L),eB=new Float32Array(q.buffer.buffer),hG=h=="OcnR"?1/(1+($.RplS.v-1)*.1):100/$.Scln.v;
if(iz==3)hG*=32/22.2;var hZ=Date.now(),dt=hG,v=1.4/a,hl=1.4/j;if(h=="Txtz"){dt*=1/255;R=256}for(var n=0;
n<j;n++){var gO=iB(n,P.y,fA),l=gO+1&127;for(var u=0;u<a;u++){var G=n*a+u,cX=iB(u,P.x,iK),X=cX+1&127,bh=0,bi=0,dM=0;
if(h=="Txtz"){bh=s.I.Cq(hG*u,hG*n,gj,128,128);bi=s.I.Cq(hG*u,hG*n+1,gj,128,128);dM=s.I.Cq(hG*u+1,hG*n,gj,128,128)}else{bh=gj[gO*iK+cX];
bi=gj[l*iK+cX];dM=gj[gO*iK+X]}ht[G]=Math.max(-R,Math.min((dM-bh)*dt,R));ga[G]=Math.max(-R,Math.min((bi-bh)*dt,R))}}if(h=="Txtz")cc.PJ(ht,ga,eB,P,6);
else cc.cu(ht,ga,eB,P,h=="Txtz"?1:h=="OcnR"?3.5/hG:$.Smth.v);if(h=="Txtz")ik=$.InvT.v?-1:1;else if(h=="Gls"){ik=[1,.4,.5,.5][iz]*(Math.exp($.Dstr.v*.155)-1);
if($.InvT.v)ik=-ik}else{ik=.5*(Math.exp($.RplM.v*.155)-1)}var e1=q.buffer;if(h=="Txtz"){var b_=(2+cc.R4.indexOf($.LghD.v.LghD))*Math.PI*.25,r=Math.cos(b_),x=Math.sin(b_);
iW={x:r,y:x,Qc:0};hn.Em(iW);et=$.Rlf.v;et=et/4+Math.max(0,(et-35)*2)}function iy(f2,a3,h$){var hc=s.p.overF(a3,f2,1),hB=(1-h$)*f2+h$*(h$*a3+(1-h$)*hc);
return hB*255}for(var n=0;n<j;n++)for(var u=0;u<a;u++){var G=n*a+u,b2=G<<2,z=ht[G],T=ga[G],f2={x:1,y:0,Qc:z};
hn.Em(f2);var a3={x:0,y:1,Qc:T};hn.Em(a3);var bm=hn.Xn(f2,a3);if(h=="Txtz"){var er=hn.a5w(bm,iW)*ik,h$=1,dS=1;
if(er<0){dS=0;er=-er}h$=Math.min(1,er*et);e1[b2+0]=~~iy(e.buffer[b2]*(1/255),dS,h$);e1[b2+1]=~~iy(e.buffer[b2+1]*(1/255),dS,h$);
e1[b2+2]=~~iy(e.buffer[b2+2]*(1/255),dS,h$)}else{var h2=ik/bm.Qc,ag=~~Math.max(0,Math.min(a-1,u-bm.x*h2)),eU=~~Math.max(0,Math.min(j-1,n-bm.y*h2)),dN=eU*a+ag<<2;
e1[b2+0]=e.buffer[dN];e1[b2+1]=e.buffer[dN+1];e1[b2+2]=e.buffer[dN+2]}}}if(h=="PntD"){var dQ=$.Shrp.v*.4,cL=$.BrsT.v.BrsT,ge={BrSm:[.75],BrsL:[.85],BrDR:[.68],BrsW:[.75],BrbW:[.78],BrSp:[.62]}[cL],ds=Math.round($.Sz.v*.5);
s.zP.Wl=ge[0];var dH=s.zP.E0;dA.PN(e.buffer,q.buffer,a,j,ds,dH,[],0);var hs=[-.7,-1,-.7,-1,10,-1,-.7,-1,-.7];
hs=s.V4.er(hs);var cb=q.buffer.slice(0);s.V4.mz(cb,q.buffer,a,j,hs,0);for(var G=0;G<e.buffer.length;
G++){var ej=q.buffer[G]-cb[G];q.buffer[G]=Math.max(0,Math.min(255,cb[G]+dQ*ej))}}if(h=="GlwE"){var gd=q.buffer.slice(0);
s.zP.Wl=.5;var dH=s.zP.E0;dA.PN(e.buffer,gd,a,j,$.Smth.v>>>1,dH,[],0);s.V4.AP(gd,q.buffer,a,j);s.i7(q.buffer,gd);
s.vy(gd);s.Ut(gd,4278190080,16777215);dA.PN(gd,q.buffer,a,j,$.EdgW.v>>>1,s.zP.eQ,[],0);var cs=$.EdgB.v/10;
for(var G=0;G<gd.length;G++){if((G&3)==3)continue;var hc=q.buffer[G];q.buffer[G]=Math.max(0,Math.min(255,hc*cs))}}if(h=="StnG"){s.Fn.alA(e.buffer,a,j,q.buffer,$.ClSz.v,[Math.round(Z.h),Math.round(Z.l),Math.round(Z.O)],$.BrdT.v)}if(h=="HlfS"){var c5=$.HlSz.v,eO=c5*2+1,hF=$.Cntr.v,i4=cc.fs.indexOf($.ScrT.v.ScrT),L=a*j,dO=L*4,g0=s.m(L),a6=e.buffer,hm=0,iD=0;
for(var G=0;G<dO;G+=4)g0[G>>>2]=~~(.5+(a6[G]+a6[G+1]+a6[G+2])*(1/3));var ao=g0.slice(0);s.Nw.cW(ao,g0,P,c5);
var dv=Math.PI/eO,en=new Float64Array(a),r=new Float64Array(a),eg=new Float64Array(2*a);for(var u=0;
u<a;u++){var cX=(u-(a>>>1))*dv;en[u]=cX*cX;r[u]=Math.cos(cX);var z=u<<1;eg[z]=Math.sin(z*(1/4.5));eg[z+1]=Math.sin((z+1)*(1/4.5))}for(var n=0;
n<j;n++){var gO=(n-(j>>>1))*dv,x=Math.cos(gO),hQ=gO*gO;for(var u=0;u<a;u++){var dS=x;if(i4==0){var dy=.5+Math.sqrt(en[u]+hQ)*4.5;
dS=eg[~~dy]}else if(i4==1){dS=r[u]*x}var G=n*a+u,a$=g0[G]*(.75+.25*dS),h$=a6[(G<<2)+3]*(1/255),hY=Math.max(0,Math.min(255,~~a$));
hm+=hY*h$,iD+=h$;g0[G]=hY}}hm/=iD;var b3=128+1.26*(hm-128),cs=.08+.25*Math.abs((128-hm)/128),bK=1+cs*hF;
for(var G=0;G<L;G++){var a$=b3+(g0[G]-b3)*bK;g0[G]=Math.max(0,Math.min(255,~~a$))}if(hF>46)s.round(g0);
cc.wr(g0,q.buffer,Z,c)}for(var G=0;G<e.buffer.length;G+=4)q.buffer[G+3]=e.buffer[G+3]};cc.wr=function(h,e,$,Z){var c=h.length,q=$.h,E=$.l,P=$.O,a=Z.h,j=Z.l,L=Z.O;
for(var G=0;G<c;G++){var H=h[G]*(1/255),_=1-H,J=G<<2;e[J]=~~(q*_+a*H);e[J+1]=~~(E*_+j*H);e[J+2]=~~(P*_+L*H)}};
cc.cu=function(h,e,$,Z,c){if(c<=1){c=Math.round(c);cc.PJ(h,e,$,Z,[1,16,4][c]);return}var q=c*.42;if(h){s.Nw.Yl(h,$,Z,q,3);
h.set($)}if(e){s.Nw.Yl(e,$,Z,q,3);e.set($)}};cc.PJ=function(h,e,$,Z,c){var q=s.V4.er([1,2,1,2,c,2,1,2,1]);
if(h){$.set(h);s.V4.qy(h,$,Z.d,Z.v,q);h.set($)}if(e){$.set(e);s.V4.qy(e,$,Z.d,Z.v,q);e.set($)}};cc.uB=function(h){if(h==null)return new eu(0,0);
var e=0,$=h.GEfs?h.GEfs.v:[{v:h}];for(var G=0;G<$.length;G++){var Z=$[G].v,q=1e4;if(Z.GELv&&!Z.GELv.v)continue;
var c=Z.GEfk.v.GEft;if(c=="GlwE"||c=="Phtc"||c=="BsRl"||c=="PlsW"||c=="Chrm"||c=="Gls"||c=="OcnR")q=0;
e=Math.max(e,q)}return new eu(e,e)};cc.dl=function(h){var e=[0,0,0,0,0,0,0,0,0,0,0,0,0],$=[0,.6,.7,.8,1,1.2,1.4,1.6,1.8,2,2.2,2.6,3,4,5][h];
for(var G=0;G<13;G++){var Z=G-6;e[G]=1/($*Math.sqrt(2*Math.PI))*Math.exp(-.5*(Z/$)*(Z/$))}return e};
cc.pV=function(h,e,$,Z,c){var q=cc.dl(c),E=6,P=13;for(var a=0;a<Z;a++)for(var j=0;j<$;j++){var L=a*$+j<<1,H=0,_=0;
for(var G=0;G<P;G++){var J=j+G-E,S=J<0?0:J>=$?$-1:J,N=(a*$+S)*2,Y=q[G];H+=Y*h[N];_+=Y*h[N+1]}e[L]=H;
e[L+1]=_}};cc.eN=function(h,e,$,Z,c){var q=cc.dl(c),E=6,P=13;for(var a=0;a<Z;a++)for(var j=0;j<$;j++){var L=a*$+j<<1,H=0,_=0;
for(var G=0;G<P;G++){var J=a+G-E,S=J<0?0:J>=Z?Z-1:J,N=(S*$+j)*2,Y=q[G];H+=Y*h[N];_+=Y*h[N+1]}e[L]=H;
e[L+1]=_}};function eN(){}eN.$j=[2,5,5,7,4,4];eN.Pn="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(",");
eN.ie="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(" ");
eN.sF=[[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]];
eN.JX=["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"];
eN.Tj=function(h){if(h=="passThrough")return"pass";return eN.Pn[eN.ie.indexOf(h)]};eN.ve=function(h){if(h=="pass")return"passThrough";
return eN.ie[eN.Pn.indexOf(h)]};eN.getName=function(h){return eN.sF[eN.Pn.indexOf(h)]};function o(){this.rect=null;
this.oG="norm";this.opacity=255;this._U=!1;this.GO=0;this.MX=0;this.q8=[];for(var G=0;G<10;G++)this.q8.push(0,0,255,255);
this.name=null;this.add={};this.buffer=null;this.mn=null;this.tD=null;this.r=null;this.MN=null;this.a3M=30;
this.Wb=o.te();this.alj=o.te();this.a7U=o.te();this.a18=o.te();this.jw=0;this.Hy=!1;this.cj=null;this.V=new o.lP}o.te=function(){var h=D.w("canvas");
h.width=h.height=30;return h.getContext("2d")};o.lP=function(){this.Qa=!0;this.j9=!0;this.rJ=s.m(0);
this.a3k=s.m(0);this.ta=null;this.IP={};this.a4L=null;this.PC=null;this.fJ=null;this.bd=null;this.u5=null;
this.GM=null;this.iX=null;this.LJ=null;this.SD=null;this.XC=null;this.Vq=null;this.gI=null;this.wn=!1};
o.lP.prototype.IJ=function(){this.Qa=!1;this.j9=!1;this.ta=null;this.wn=V.Yv};o.lP.prototype.a90=function(){hn.Ua(this.IP);
this.rJ=s.m(0);this.a3k=s.m(0);if(this.bd)this.bd.delete();if(this.u5)this.u5.delete();this.bd=null;
this.u5=null;var h=[this.GM,this.iX,this.LJ,this.SD,this.XC,this.Vq];for(var G=0;G<6;G++)if(h[G]!=null&&h[G]instanceof V.EI)h[G].delete();
this.GM=null;this.iX=null;this.LJ=null;this.SD=null;this.XC=null;this.Vq=null};o.prototype.s=function(h){if(h==null)h=this.rect.clone();
if(this.V.ta==null)this.V.ta=h;else this.V.ta=this.V.ta.iJ(h)};o.prototype.vG=function(){return this.add.lsct==hJ.sE||this.add.lsct==hJ.Y7};
o.prototype.SV=function(){var h=this.add;return h.SoCo!=null||h.GdFl!=null||h.PtFl!=null};o.prototype.c1=function(){var h=this.add.lmfx;
if(h==null)return;var e=["GrFl","patternFill"];for(var G=0;G<e.length;G++){var $=c3.qV[c3.order.indexOf(e[G])],Z=h[$].v;
if(Z.length==0)continue;for(var c=0;c<Z.length;c++){var q=Z[c].v;if(q.enab.v&&(q.Algn==null||!q.Algn.v))this.V.j9=!0}}};
o.prototype.u9=function(){var h=this.r;if(this.SV())h=this.kV();if(!V.Yv)return h.PV();if(this.V.u5==null||this.V.Qa||V.Yv!=this.V.wn){if(this.V.u5)this.V.u5.delete();
this.V.u5=new V.ow(h._A().d,h._A().v);this.V.u5.set(h.PV())}return this.V.u5};o.prototype.AE=function(h){var e=this.rect,$=this.buffer;
if(!V.Yv){var Z=this.W8(h,$,e);if(Z){$=Z.Hl;e=Z.rect}return $}if(this.V.ta!=null||V.Yv!=this.V.wn){var Z=this.W8(h,$,e);
if(Z){$=Z.Hl;e=Z.rect}var c=e;if(V.Yv!=this.V.wn||this.V.bd==null||this.V.bd.d!=c.d||this.V.bd.v!=c.v){if(this.V.bd)this.V.bd.delete();
this.V.bd=new V.EI(c.d,c.v);this.V.bd.set($)}else{var q=this.V.ta.clone();q.offset(-e.x,-e.y);this.V.bd.set($,q)}}return this.V.bd};
o.prototype.m5=function(){var h=this.r;if(this.SV())h=this.kV();return h!=null&&h.isEnabled&&(h.LX()==0||h.LX()!=0&&!h.rect.nK())};
o.prototype.W8=function(h,e,$){if(this.fi()){var Z=this.wV(h);if(Z.r&&Z.r.isEnabled&&(!Z.r.rect.nK()||Z.r.color==0)){var c=this.add.SoLd.filterFX.v;
Z.r.Ks=c.filterMaskDensity?c.filterMaskDensity.v:255;Z.r.gE=c.filterMaskFeather?c.filterMaskFeather.v:0;
var q=Z.buffer,E=Z.r.tM($);s.vy(E);e=e.slice(0);s.p.cZ(q,Z.rect,e,$,E,$,0,$,1);return{Hl:e,rect:$}}}};
o.prototype.a0X=function(){var h={cs:!1,lT:!1,B8:0,Nm:0};if(this.add.vmsk&&this.add.vmsk.isEnabled)h.lT=!0;
if(this.kV()&&this.kV().isEnabled)h.cs=!0;if(h.cs&&h.lT){h.B8=this.kV().rect.x-this.add.vmsk.kV().rect.x;
h.Nm=this.kV().rect.y-this.add.vmsk.kV().rect.y}return h};o.prototype.ZB=function(h){if(this.add.lsct==hJ.RS)return;
var e=this,$=this.kV()!=null&&this.kV().w4,Z=this.add.vmsk!=null&&this.add.vmsk.w4,c=this.a0X(),q=JSON.stringify(c)!=this.V.a4L||c.cs&&$||c.lT&&Z;
if(q){if(c.lT){var E=this.add.vmsk.kV();if(c.cs){this.r=this.kV().n_(E);this.V.PC=new eu(this.r.rect.x-this.kV().rect.x,this.r.rect.y-this.kV().rect.y)}else this.r=E}if(this.r)this.V.Qa=!0;
if(this.r)this.V.fJ=new eu(this.rect.x-this.r.rect.x,this.rect.y-this.r.rect.y);if(c.cs)this.kV().w4=!1;
if(c.lT)this.add.vmsk.w4=!1;this.s()}else{if(c.cs&&c.lT){this.r.rect.x=this.kV().rect.x+this.V.PC.x;
this.r.rect.y=this.kV().rect.y+this.V.PC.y}}if(e.SV()){this.r5(h)}if(e.J7()){var P;if(this.r)P=new eu(this.rect.x-this.r.rect.x,this.rect.y-this.r.rect.y);
if(this.r&&this.r.isEnabled&&(this.V.fJ==null||!P.dz(this.V.fJ))){this.V.fJ=P;this.s();this.V.Qa=!0}}if(es.get(e.add)!=null)this.V.Qa=!0;
this.V.a4L=JSON.stringify(c)};o.prototype.r5=function(h){var e=this,$=e.add.vstk,Z,c=e.add.vmsk?this.add.vmsk.kV():null,P=!0;
if(c&&c.isEnabled&&c.LX()==0)Z=c._A().clone();else Z=new O(0,0,h.d,h.v);var q=e.kV();if(q&&q.isEnabled&&q.LX()==0)Z=Z.jx(e.r._A());
var E=c&&$;if($&&(!$.strokeEnabled.v||$.strokeStyleLineWidth.v.val==0))E=!1;if($&&!$.fillEnabled.v&&E)P=!1;
var a=s.m(Z.X()*4);if(P){if(e.add.SoCo)hn.cR(a,e.add.SoCo.Clr.v);if(e.add.GdFl)hn.Jl(e.add.GdFl,a,Z,h,null,c&&c.color==0?c.rect:null);
if(e.add.PtFl)hn.lm(e.add.PtFl,a,Z,h,e.add.fxrp)}if(c){var j=c.Ks;if(E)c.Ks=255;var L=s.m(Z.X());if(c.LX()!=0)L.fill(Math.round(c.LX()));
if(c&&c.isEnabled){var H=c._A(),_=c.PV();if(H.dz(Z))s.i7(_,L);else s.T7(_,H,L,Z)}if(e.add.SoCo&&P){s.Jk(L,a,3)}else s.w2(L,Z,a,Z);
if(E)c.Ks=j}e.buffer=a;e.rect=Z;if(E){var J=c3.oF.ws.indexOf($.strokeStyleLineAlignment.v.strokeStyleLineAlignment),S=$.strokeStyleContent.v,N=c3.oF.$v.indexOf(S.classID),Y=this.add.vmsk.kV($);
if(e.rect.dz(new O(0,0,h.d,h.v)))e.rect=e.rect;else if(J!=0){var U=e.rect.iJ(Y._A()),g=s.m(U.X()*4);
s.hX(e.buffer,e.rect,g,U);e.buffer=g;e.rect=U}var j=Y.Ks;Y.Ks=255;var M=Y.tM(e.rect);Y.Ks=j;if(Y.color==255)s.vy(M);
var C=s.m(e.rect.X()*4);if(N==0)hn.cR(C,S.Clr.v);if(N==1)hn.Jl(S,C,e.rect,h,null,c.color==0?c.rect:null);
if(N==2)hn.lm(S,C,e.rect,h,e.add.fxrp);var y=$.strokeStyleOpacity.v.val/100;if(y!=1)s.vI(M,y);s.Jk(M,C,3);
if(Y.color==255)J=2-J;if(J==0){s.p.Jn("norm",C,e.rect,e.buffer,e.rect,e.rect,1);s.w2(L,e.rect,e.buffer,e.rect)}if(J==1){s.p.Jn("norm",C,e.rect,e.buffer,e.rect,e.rect,1)}if(J==2){s.vy(L);
s.p.cZ(C,e.rect,e.buffer,e.rect,L,Z,255,e.rect,1,!1);s.vy(L)}if(Y.Ks!=255){var i=C.slice(0);s.Ut(i,4278190080,16777215);
s.p.Jn("norm",i,e.rect,e.buffer,e.rect,e.rect,1-Y.Ks/255)}j=c.Ks;c.Ks=255;this.a3k=c.tM(e.rect);c.Ks=j}this.s()};
o.prototype.l3=function(h,e){var $=this,Z=$.add.SoLd.Idnt.v,c=$.add.SoLd,q=s.a.Be(f.o.Pu(c.nonAffineTransform)),E=h.Cv(Z,c.Crop?c.Crop.v:null,[q.d,q.v],c.Impr.v.classID);
if(E==null)return;var P=E.bH;c.Sz.v.Wdth.v=P[1].d;c.Sz.v.Hght.v=P[1].v;var a=c.warp.v,j=f.o.Pu(c.nonAffineTransform),L=s.I.w1(j,P[1]);
if(a&&!s.FO.en(a)){var q=s.a.Be(s.FO.a8(a)),H=q.x,_=q.y,J=1/q.d,S=1/q.v;L=s.I.w1(j);L=s.I.n_(L,[J,0,-H*J,0,S,-_*S,0,0])}var N=f.o.Pf(P,e?0:1,L,a,null,null,null,e);
if(N==null){$.buffer=s.m();$.rect=new O}else if($.fi()){var Y=$.wV(h);Y.buffer=N.buffer;Y.rect=N.rect.clone();
this.fO(h,e)}else{$.buffer=N.buffer;$.rect=N.rect}$.ZB(h);$.s();h.s()};o.prototype.fO=function(h,e){if(e==null)e=!1;
var $=this.wV(h),Z=this.add.SoLd.filterFX.v,c=dA.al1(Z),q=new O(0,0,h.d,h.v),E=$.rect.iJ(q),P=$.rect.clone();
P.P5(c.x,c.y);var a={buffer:null,rect:E.jx(P)};a.buffer=s.m(a.rect.X()*4);s.hX($.buffer,$.rect,a.buffer,a.rect);
if(Z.enab.v&&e==!1){var j=Z.filterFXList.v;for(var G=0;G<j.length;G++){var L=j[G].v;if(L.enab.v==!1)continue;
var H=L.blendOptions.v,_=eN.Tj(H.Md.v.BlnM),J=H.Opct.v.val/100,S=s.Y.LX(L.FrgC.v),N=s.Y.LX(L.BckC.v),Y=dA.bo(L),U={buffer:s.m(a.buffer.length),rect:a.rect.clone()},g=L.Fltr?L.Fltr.v:null;
if(es.VZ[Y]!=null){var M=es.VZ[Y],C=es.J8(M,g);if(C)es.Vv(C,a.buffer,U.buffer,a.rect)}else dA.Vv(Y,a,g,S,N,U,[h.add.lnk2?h.add.lnk2:[],this.kV(),h.Qe]);
if(_=="norm"&&J==1)a=U;else if(_=="norm"){s.p.cZ(U.buffer,U.rect,a.buffer,a.rect,null,null,null,a.rect,J)}else{s.p.Jn(_,U.buffer,U.rect,a.buffer,a.rect,a.rect,J)}}}this.rect=a.rect;
this.buffer=a.buffer;this.V9();this.s();h.s()};o.prototype.ke=function(h,e,$){this.cj=this.Cg(h,e,$)};
o.prototype.Pe=function(h,e){var $=this.Cg(h,e,!0);if($==null)return null;var Z={Fy:$.jw,Yu:$.KE,rect:$.lD};
if(Z.Fy==1||Z.Fy==3){var c=Z.rect,q=s.m(c.d*c.v*4);s.Jk(Z.Yu,q,0);s.Jk(Z.Yu,q,1);s.Jk(Z.Yu,q,2);s.tv(h.N.channel,h.N.rect,q,c);
Z.Yu=q}return Z};o.prototype.Cg=function(h,e,$){var Z,c,q,E,P,a,j;if(this.jw<=0){var L=s.m(this.rect.X());
s.z0(this.buffer,L,3);Z=s.gV.yg(e,{channel:L,rect:this.rect},"intersection");if(Z==null)return null;
var H=s.Hd(Z.channel,Z.rect);E=Z.rect.clone();P=this.rect.clone();c=s.m(E.X()*4);s.hX(this.buffer,P,c,E);
s.Jk(Z.channel,c,3);q=this.buffer.slice(0);if(!$){var _=e.channel.slice(0);s.vy(_);s.w2(_,e.rect,q,P)}a=this.buffer.slice(0);
j=this.rect.clone()}if(this.jw==1||this.jw==3){var J=this.jw==1?this.kV():this.wV(h).r;E=e.rect.clone();
P=J.rect.clone();c=J._T(E);var q=J.channel.slice(0);if(!$)s.p.Y6(J.color==255?s.Bh(E.X()):s.qm(E.X()),E,q,P,e.channel,E,1);
a=J.channel.slice(0);j=J.rect.clone()}return{jw:this.jw,KE:c,lD:E,Ny:q,m0:P,GB:a,VO:j}};o.prototype.zJ=function(h,e){var $=this.cj;
if($.jw==0){this.rect=$.VO;this.buffer=$.GB;this.s()}if($.jw==1||$.jw==3){var Z=$.jw==1?this.kV():this.wV(h).r;
Z.channel=$.GB;Z.rect=$.VO;if(this.jw==1){Z.w4=!0;this.ZB(h)}if(this.jw==3)this.s()}this.cj=e};o.prototype.Ae=function(h,e){if(this.jw<=0&&e.rect.dz(this.rect)){var $=s.m(this.rect.X());
s.z0(this.buffer,$,3);if(s.dz(h.N.channel,$)){var Z=this.rect,c=this.buffer;this.cj={jw:this.jw,KE:c.slice(0),lD:Z.clone(),Ny:s.m(0),m0:new O,GB:s.m(0),VO:new O};
return!0}}var q=this.cj;if(q==null)return!1;if(q.jw!=this.jw)return!1;if(!e.rect.dz(q.lD))return!1;var E=q.m0.iJ(q.lD);
if(q.jw<=0){if(!E.dz(this.rect))return!1;var P=s.m(q.KE.length>>2);s.z0(q.KE,P,3);if(!s.dz(e.channel,P))return!1;
var a=s.m(E.d*E.v*4);s.hX(q.Ny,q.m0,a,E);s.p.Jn("norm",q.KE,q.lD,a,E,E,1);return s.dz(a,this.buffer)}if(q.jw==1||q.jw==3){var j=q.jw==1?this.kV():this.wV(h).r;
if(!E.dz(j.rect))return!1;var L=s.m(E.X());L.fill(j.color);s.T7(q.Ny,q.m0,L,E);s.p.Y6(q.KE,q.lD,L,E,e.channel,E,1);
return s.dz(L,j.channel)}};o.prototype.NP=function(h,e,$,Z){var c=this.cj;c.lD.offset(e,$);var q=c.m0.iJ(c.lD);
if(c.jw<=0){var E=s.m(q.X()*4);s.hX(c.Ny,c.m0,E,q);s.p.Jn("norm",c.KE,c.lD,E,q,q,1);this.buffer=E;this.rect=q;
this.s()}else{var P=this.jw==1?this.kV():this.wV(h).r,a=s.m(q.X());a.fill(P.color);s.T7(c.Ny,c.m0,a,q);
s.p.Y6(c.KE,c.lD,a,q,Z.channel,q,1);P.channel=a;P.rect=q.clone();if(this.jw==1){P.w4=!0;this.ZB(h)}if(this.jw==3)this.s()}};
o.prototype.jZ=function(){var h=[-1,0,1,2];if(this.r)h.push(-2);if(this.MN)h.push(-3);return h};o.prototype.getName=function(){return this.add.luni?this.add.luni:this.name};
o.prototype.aq=function(t){this.add.luni=this.name=t};o.prototype.SY=function(h){var e=this.add.lnsr,$=this.add.TySh;
if(e=="rend"&&$)this.aq(gK.N8($.Kx).replace(/(?:\r\n|\r|\n)/g," ").slice(0,32))};o.prototype.o6=function(){return(this.GO&1<<1)==0};
o.prototype.J7=function(){return(this.GO&1<<4)==0};o.prototype.Kl=function(){return(this.GO&1<<5)!=0};
o.prototype.a0C=function(){var h=this;if(h.add.lnsr!="bgnd"){h.add.lnsr="bgnd";h.aq("Background");h.add.lspf=1<<2}};
o.prototype.alL=function(){var h=this;if(h.add.lnsr=="bgnd"){delete h.add.lnsr;h.aq("Layer 0");h.add.lspf=0}};
o.prototype.ra=function(h){var e=this.add.lspf;return e==null?!1:(e>>h&1)!=0};o.prototype.QL=function(h){if(h&&!this.o6())this.GO-=2;
if(!h&&this.o6())this.GO+=2};o.prototype.ll=function(){var h=this.add.lmfx;if(h==null)return!1;for(var e in h){if(e=="masterFXSwitch")continue;
if(e=="Scl")continue;if(e=="classID")continue;if(h[e].v.length>0)return!0}return!1};o.prototype.fi=function(){return this.add.SoLd!=null&&this.add.SoLd.filterFX!=null};
o.prototype.xJ=function(){var h=this.add.lmfx;if(h==null)return!1;if(!h.masterFXSwitch.v)return!1;for(var e in h){if(e=="masterFXSwitch")continue;
if(e=="Scl")continue;if(e=="classID")continue;var $=h[e].v;for(var G=0;G<$.length;G++)if($[G].v.enab.v)return!0}return!1};
o.prototype.TX=function(h,e,$,Z){var c=new O,q=this.iR(h,$,Z);if(q.indexOf(0)!=-1)c=c.iJ(this.rect);
if(q.indexOf(1)!=-1)c=c.iJ(this.kV()._A());if(q.indexOf(2)!=-1){var E=this.add.vmsk,P;if(e){if(E.pc.length>1){var a=s.W.qs(E.b,null,E.pc);
P=s.a.Be(a)}else P=s.W.v4(E.b,E.C.length!=0?E.C:null)}else P=s.W.v4(E.b);c=c.iJ(P)}if(q.indexOf(3)!=-1)c=c.iJ(this.wV(h).r._A());
if(q.length==0&&this.SV())c=new O(0,0,h.d,h.v);return c};o.prototype.oC=function(){var h=this.add.artb,e=h.artboardBackgroundType.v,$=0;
if(e==1)$=4294967295;else if(e==2)$=4278190080;else if(e==3)$=0;else if(e==4){$=h.Clr.v;$=255<<24|$.Bl.v<<16|$.Grn.v<<8|$.Rd.v}else throw e;
return $};o.prototype.B2=function(){var h=this.add.artb.artboardRect.v,e=h.Btom.v,$=h.Left.v,Z=h.Rght.v,top=h.Top.v;
return new O($,top,Z-$,e-top)};o.prototype.$O=function(h){var e=o.dU(h);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=e};o.dU=function(h){var e={classID:"classFloatRect",Top:{t:"doub",v:0},Left:{t:"doub",v:0},Btom:{t:"doub",v:0},Rght:{t:"doub",v:0}};
e.Btom.v=h.y+h.v;e.Left.v=h.x;e.Rght.v=h.x+h.d;e.Top.v=h.y;return e};o.prototype.iR=function(h,e,$){var Z=[],c=this,q=this.Hy;
if(!e&&c.Hy&&$){Z.push(2)}else if(c.jw<=0||e){if(c.J7())if(!this.rect.nK())Z.push(0);if(c.kV()&&!c.kV().rect.nK())if(c.kV().MV||e)Z.push(1);
if(c.add.vmsk)if(c.add.vmsk.MV||e)Z.push(2);if(c.fi()&&c.wV(h).r&&!c.wV(h).r.rect.nK())Z.push(3)}else if(c.jw==1){Z.push(1);
if(c.kV().MV&&!c.kV().rect.nK()){if(c.J7())if(!this.rect.nK())Z.push(0);if(c.add.vmsk)if(c.add.vmsk.MV)Z.push(2)}}else if(c.jw==3&&!c.wV(h).r.rect.nK())Z.push(3);
if(c.add.artb&&Z.indexOf(0)==-1)Z.push(0);Z.sort();return Z};o.prototype.kV=function(){var h=this;return h.MN?h.MN:h.add.vmsk&&h.add.vmsk.isEnabled?null:h.r};
o.prototype.wV=function(h){var e=this.add.SoLd.placed.v,$=h.add.FEid;if($==null)return null;for(var G=0;
G<$.length;G++)if($[G].id==e)return $[G];return null};o.prototype.extend=function(h){s.a0p(this,h)};
o.prototype.d2=function(h,e,$){var Z=h.clone();if(this.xJ()){var c=this.add.lmfx,q=e.root.fH(e.t.indexOf(this)),E=c.gradientFillMulti.v,P=!1;
for(var G=0;G<E.length;G++)if(E[G].v.enab.v&&E[G].v.Algn.v)P=!0;if(P)Z=Z.iJ(q._A(e,!1));var a=hn.ajs(this,e,$);
Z.offset(a.x,a.y);Z.d+=a.d;Z.v+=a.v}return Z};o.prototype.V9=function(){if(this.J7())s.Wm(this);var h=this.kV();
if(h)h.V9()};o.prototype.clone=function(){var h=new o;h.rect=this.rect.clone();h.buffer=this.buffer.slice(0);
h.oG=this.oG;h.opacity=this.opacity;h._U=this._U;h.GO=this.GO;h.name=this.name;h.q8=this.q8.slice(0);
if(this.r)h.r=this.r.clone();if(this.MN)h.MN=this.MN.clone();for(var e in this.add)h.add[e]=ck.clone(e,this.add[e]);
return h};o.prototype.dm=function(h){var e=this;if(e.add.TySh)delete e.add.TySh;if(e.add.SoLd){var $=this.W8(h,this.buffer,this.rect);
if($){this.buffer=$.Hl;this.rect=$.rect;this.s()}delete e.add.SoLd}if(e.add.SoCo||e.add.GdFl||e.add.PtFl){if(e.add.vogk)delete e.add.vogk;
if(e.add.SoCo)delete e.add.SoCo;if(e.add.GdFl)delete e.add.GdFl;if(e.add.PtFl)delete e.add.PtFl;if(e.add.vmsk){console.log(e.MN,e.r);
delete e.add.vmsk;if(e.MN==null&&e.r)delete e.r;else if(e.MN!=null&&e.r!=null){e.r=e.MN;delete e.MN}}}if(!e.vG()&&es.get(e.add)==null&&!this.J7())this.GO-=16};
o.prototype.E2=function(h){var e=255,$=0;if(h==2){var Z=this.add.SoLd.filterFX.v;if(Z.filterMaskDensity)e=Z.filterMaskDensity.v;
if(Z.filterMaskFeather)$=Z.filterMaskFeather.v}else{var c=h==0?this.kV():this.add.vmsk;e=c.Ks;$=c.gE}return{wP:h,jO:e,qS:$}};
o.prototype.ja=function(h){if(h.wP==2){var e=this.add.SoLd.filterFX.v;if(h.jO==255)delete e.filterMaskDensity;
else e.filterMaskDensity={t:"long",v:h.jO};if(h.qS==0)delete e.filterMaskFeather;else e.filterMaskFeather={t:"doub",v:h.qS};
this.s()}else{var $=h.wP==0?this.kV():this.add.vmsk;$.Ks=h.jO;$.gE=h.qS;$.w4=!0}};o.prototype.__=function(){var h=this,e=h.add.vmsk;
if(e==null)return;h.add.vogk=o.__(e.b)};o.__=function(h){var e=[],$=s.W.H4(h);for(var Z=0;Z<$;Z++)e.push(s.as.qm());
return e};var hJ={pU:0,sE:1,Y7:2,RS:3};o.kq=function(){this.name="Mask";this.rV=!1;this.Nr={h:255,l:0,O:0};
this.lU=50;this.wx=0;this.color=255;this.MV=!0;this.isEnabled=!0;this.FH=!1;this.Ks=255;this.gE=0;this.rect=new O;
this.channel=s.m(0);this.Xm=null;this.agf=null;this.w4=!0};o.kq.prototype.n_=function(h){if(!this.isEnabled)return h;
var e=new o.kq;e.color=Math.round(this.LX()*h.LX()/255);if(this.LX()==0&&h.LX()==0)e.rect=this._A().jx(h._A());
else if(h.LX()==0)e.rect=h._A().clone();else if(this.LX()==0)e.rect=this._A().clone();else e.rect=this._A().iJ(h._A());
e.channel=this.tM(e.rect);e.Ks=255;e.gE=0;var $=h.tM(e.rect);s.a3U($,e.rect,e.channel,e.rect);return e};
o.kq.prototype._A=function(){if(this.gE==0)return this.rect;var h=Math.ceil(this.gE*2.2),e=this.rect.clone();
e.P5(h,h);return e};o.kq.prototype.PV=function(){if(this.gE==0&&this.Ks==255)return this.channel;if(this.gE==0){var h=this.channel.slice(0);
s.vy(h);s.vI(h,this.Ks/255);s.vy(h);return h}var e=this._A(),$=this._T(e),h=s.m(e.X());s.Nw.ec($,h,e,this.gE);
if(this.Ks!=255){s.vy(h);s.vI(h,this.Ks/255);s.vy(h)}return h};o.kq.prototype.LX=function(){return Math.round(255-(255-this.color)*(this.Ks/255))};
o.kq.prototype.extend=function(h){s.extend(this,h,this.color)};o.kq.prototype.V9=function(){if(this.color==255)s.vy(this.channel);
s.V9(this);if(this.color==255)s.vy(this.channel)};o.kq.prototype.clone=function(){var h=new o.kq;h.name=this.name;
h.rV=this.rV;h.Nr=this.Nr;h.lU=this.lU;h.wx=this.wx;h.color=this.color;h.MV=this.MV;h.isEnabled=this.isEnabled;
h.FH=this.FH;h.Ks=this.Ks;h.gE=this.gE;h.rect=this.rect.clone();h.channel=this.channel.slice(0);return h};
o.kq.prototype._T=function(h,e){if(e==null)e=s.m(h.X());e.fill(this.color);s.T7(this.channel,this.rect,e,h);
return e};o.kq.prototype.tM=function(h,e){var $=this._A(),Z=this.PV();if(e==null)e=s.m(h.X());e.fill(this.LX());
s.T7(Z,$,e,h);return e};o.MM=function(){this.MV=!0;this.isEnabled=!0;this.Ks=255;this.gE=0;this.b=[{type:6},{type:8,all:0}];
this.v9=[-3,-3];this.O4=!1;this.MN=null;this.w4=!0;this.C=[];this.pc=[]};o.MM.prototype.offset=function(h,e){this.MN=this.kV();
s.W.wD(this.b,new i7(1,0,0,1,h,e));this.MN.rect.offset(h,e)};o.MM.prototype.kV=function(h){if(!this.w4&&this.MN&&h==null){this.MN.isEnabled=this.isEnabled;
return this.MN}var e=s.W.v4(this.b),$="strokeStyleLineAlignment",Z="strokeStyleLineJoinType";if(e.X()>3e4*3e4)e=new O(0,0,100,100);
if(h&&h[$].v[$]!="strokeStyleAlignInside"){var c=1;if(h[Z].v[Z]=="strokeStyleMiterJoin"){var q=s.W.a0T(this.b),E=q/2,P=Math.sin(E),a=Math.cos(E);
a/=P;P=1;var c=Math.sqrt(a*a+P*P);if(isNaN(c)||c<1)c=1}c*=h[$].v[$]=="strokeStyleAlignOutside"?1:.5;
var j=Math.ceil(h.strokeStyleLineWidth.v.val*c);j=Math.min(j,600);e.P5(j,j)}e=s.a.Lu(e);var L=new o.kq;
L.color=s.W.Sm(this.b)?0:255;L.MV=this.MV;L.isEnabled=this.isEnabled;L.FH=!0;L.rect=e;L.Ks=this.Ks;L.gE=this.gE;
L.channel=s.m(L.rect.X());if(!e.nK())s.W.acn(this.b,L.channel,L.rect,h);if(h==null){this.MN=L;this.w4=!1}return L};
o.MM.prototype.clone=function(){var h=new o.MM;h.MV=this.MV;h.isEnabled=this.isEnabled;h.Ks=this.Ks;
h.gE=this.gE;h.b=o.MM.rP(this.b);h.v9=this.v9.slice(0);h.O4=this.O4;h.C=this.C.slice(0);h.pc=this.pc.slice(0);
return h};o.MM.prototype.concat=function(h){var e=h.b.slice(2);if(e.length==0)return;e[0].aN=3;this.b=this.b.concat(e)};
o.MM.rP=function(h){var e=[];for(var G=0;G<h.length;G++){var $=h[G];if($.type>5||$.type==0||$.type==3)e.push(JSON.parse(JSON.stringify($)));
else e.push({type:$.type,LD:$.LD.clone(),D:$.D.clone(),EH:$.EH.clone()})}return e};o.MM.a8v=function(h,e,$){if(h.length!=e.length)return!1;
for(var G=2;G<h.length;G++){var Z=h[G],c=e[G];if(Z.type!=c.type)return!1;if(Z.type==0||Z.type==3){if(Z.length!=c.length||!$&&Z.aN!=c.aN)return!1}else if(!Z.LD.dz(c.LD)||!Z.D.dz(c.D)||!Z.EH.dz(c.EH))return!1}return!0};
o.MM.prototype.agn=function(){var h=this.b;for(var G=3;G<h.length;G++)if(h[G].type==0||h[G].type==3)h[G].aN=-1};
o.uI=function(){this.type=null;this.hs=2;this.af=null;this.mD="";this.cp="";this.B6="";this.open=0;this.raw=null;
this.bH=null;this.a1Q=""};o.uI.prototype.clone=function(){var h=new o.uI;h.type=this.type;h.hs=this.hs;
h.af=this.af;h.mD=this.mD;h.cp=this.cp;h.B6=this.B6;h.open=this.open;h.raw=new Uint8Array(this.raw.buffer.slice(0));
return h};o.uI.prototype.v2=function(h,e,$){if($==null)$="none";var Z=this,c=cE.B3(Z.raw.buffer),q=c=="svg"||c=="pdf";
if(Z.bH){var E=e&&q&&Math.max(Z.bH[1].d,Z.bH[1].v)<Math.max(e[0],e[1]);if(!E&&$==this.a1Q)return}this.a1Q=$;
if(!q)h=0;if(c==null){alert("Unsupported format: "+k.dd(Z.raw,0,4));return null}var P=cE.fy(c);if(P._Q){var a=new c9(name+(c=="psd"?"":"-"+c)+".psd"),j;
P.Cj(Z.raw.buffer,a,e);var L=new O(0,0,a.d,a.v);if("avrg maxx medn minn rang stdv summ vari".split(" ").indexOf($)!=-1){var H=[];
for(var G=0;G<a.t.length;G++){var _=a.t[G],J=_.buffer;if(!_.rect.dz(L)){J=s.m(L.X()*4);s.hX(_.buffer,_.rect,J,L);
console.log("resizing")}H.push(J)}j=s.m(L.X()*4);s.stack.stack(H,j,$)}else{for(var G=0;G<a.t.length;
G++)if(a.t[G].SV())a.t[G].ZB(a);a.Nq();a.s();a.cm();j=a.v2()}Z.bH=[j,L]}else if(P){var S=P.Cj(Z.raw.buffer)[0];
Z.bH=[new Uint8Array(S.data),S.Au]}if(Z.bH){if(h==1){var J=Z.bH[0],N=Z.bH[1],Y=s.m(N.X());s.z0(J,Y,3);
var U=s.Hd(Y,N),g=s.m(U.X()*4);s.hX(J,N,g,U);Z.bH=[g,U]}s.gt(Z.bH)}};o.pA="0";o.Ml="2";o.dq="2.5";o.Vk="3";
o.XI="4";o.G6="4.5";o.iG="4.6";o.V6="5";o.LF="5.5";o.UI="6";o.Wz="7";o.ER="7.5";o.lb="8";o.U1="9";o.Xx="9.3";
o.YY="9.5";o.tG="9.6";o.HW="10";o.ps="11";o.l0="12";o.Y_="13";o.Qu="13.5";o.aM="13.7";o.iq="14";o.w6="14.5";
o.KN="15";o.eZ="16";o.uv="17";o.LP="18";o.BN="19";o.ru="19.5";o.I7="19.6";o.rb="19.7";o.fC="20";o.uz="21";
o.yT="21.5";o.xM="22";o.Pm="22.5";o.dw="23";o.a4N="24";o.II="25";o.PR="26";o.y1="27";o._B="28";o.pP="29";
o.K4="30";o.C9="31";o.kd="32";o.u0="33";o.tc="34";o.Y0="35";o.T9="36";o.KW="36.5";o.VT="37";o.iK="37.5";
o.a1Z="37.6";o.WG="38";o.On="38.5";o.KX="38.6";o.wj="39";o.Eo="40";o.Rd="41";o.f_="42";o.R3="50";o.Xz="51";
o.jh="52";o.Yc="53";o.Ko="54";o.$R="54.5";o.iZ="54.6";o.W5="54.7";o.Rz="54.8";o.Rh="55";o.xG="56";o.fg="57";
o.qe="58";o.YP="59";function dE(){this.depth=0;this.index=-1;this.$=null;this.a7n=null;this.IX=-1;this.children=null;
this.parent=null;this.NN=null}dE.prototype.Rl=function(h,e){if(this.depth!=0)h.push(this.$.getName());
if(this.children)for(var G=0;G<this.children.length;G++)this.children[G].Rl(h,e);if(h.length>e.o8.length)e.o8=h.slice(0);
if(this.depth!=0)h.pop()};dE.prototype.acM=function(){var h=0;if(this.$.vG()){for(var G=0;G<this.children.length;
G++)h+=this.children[G].acM()}else if(this.$.buffer)h+=this.$.buffer.length;return h};dE.prototype.fH=function(h){var e=this.NN[h];
return this.NN[h]};dE.prototype.zp=function(h,e){var $=this.$;if(!$.o6()||$.ra(2)||$.ra(31))return null;
if($.m5()){var Z=$.r.rect.k3(h);if(!Z&&$.r.color==0)return}if($.vG()){for(var G=0;G<this.children.length;
G++){var t=this.children[G];t.zp(h,e)}}else if($.rect.k3(h))e.push(this.index)};dE.prototype.mI=function(h,e){var $=this.$;
if(!$.o6()||$.ra(2)||$.ra(31))return null;if($.m5()){if($.r.rect.B4(h)){if(!s.mI(h,$.r.channel,$.r.rect))return null}else if($.r.color==0)return null}if($.vG()){for(var G=this.children.length-1;
G>=0;G--){var t=this.children[G],Z=t.mI(h,e);if(Z&&e==null)return Z}return null}else if($.add.TySh&&$.rect.B4(h)||s.a7h(h,$.buffer,$.rect)){if(e==null)return this;
else e.push(this.index)}return null};dE.prototype.akO=function(h){var e=this.$;if(!e.o6()||e.ra(2)||e.ra(31))return null;
var $=e.add.vmsk;if($&&$.isEnabled){var Z=s.W.mI($.b,h).NS;if(Z!=-1)return{a9K:this,a8Q:Z}}if(e.vG()){for(var G=this.children.length-1;
G>=0;G--){var t=this.children[G],c=t.akO(h);if(c)return c}return null}return null};dE.prototype.lQ=function(h,e){h.push(this.index);
if(this.$.vG()){h.push(this.IX);if(e)if(this.$.jw==1&&this.$.kV().MV==!1)return;for(var G=0;G<this.children.length;
G++)this.children[G].lQ(h)}};dE.prototype.TD=function(h,e,$){var Z=this.$,c,q;if(Z.vG()&&Z.add.artb!=null)e=Z.B2();
if(e.d>e.v){c=$;q=Math.floor($*(e.v/e.d))}else{c=Math.floor($*(e.d/e.v));q=$}if(Z.SV()&&Z.add.vmsk==null||Z.add.TySh)c=q=Math.max(q,16);
else{c=Math.max(c,6);q=Math.max(q,6)}var E=q,P=Z.SV()&&Z.add.vmsk;if(P){var a=Z.rect.clone(),H,_;if(a.nK())a=new O(0,0,20,20);
var j=a.d,L=a.v;if(j>L){H=$;_=Math.floor($*(L/j))}else{H=Math.floor($*(j/L));_=$}if(H*_==0)H=_=16;s.kA.Pv(Z.Wb,H,_,a,Z.buffer,Z.rect,!1);
s.kA.adz(Z.Wb,H,_);E=_}else if(Z.add.TySh){s.kA.alo(Z.Wb,E,E,Z.add.TySh)}else if(Z.add.SoCo){E=Math.max(16,Math.min(c,q));
s.kA.aiq(Z.Wb,E,E,Z.add.SoCo)}else if(Z.add.GdFl){s.kA.aov(Z.Wb,E,E,Z.add.GdFl)}else if(Z.add.PtFl){s.kA.al3(Z.Wb,E,E,Z.add.PtFl,h)}else if(es.get(Z.add)!=null){s.kA.a9C(Z.Wb,E,E,Z.add)}else if(Z.add.SoLd){s.kA.Pv(Z.Wb,c,q,e,Z.buffer,Z.rect,!1);
s.kA.amQ(Z.Wb,c,q,Z.add.SoLd)}else if(Z.vG()){E=16}else{if(Z.J7())s.kA.Pv(Z.Wb,c,q,e,Z.buffer,Z.rect,!1);
else{s.kA.ae7(Z.Wb,E,E)}}var J=Z.kV();if(J)s.kA.AB(Z.alj,c,q,e,J);if(Z.fi()&&Z.wV(h)&&Z.wV(h).r){var S=Z.wV(h).r;
s.kA.AB(Z.a18,c,q,e,S)}if(!P&&Z.add.vmsk){s.kA.AB(Z.a7U,c,q,e,Z.add.vmsk.kV(),!0)}if(Z.add.vmsk||J)E=Math.max(E,q);
Z.a3M=Math.max(E,16);if(Z.vG()&&Z.add.lsct==hJ.sE)for(var G=0;G<this.children.length;G++)this.children[G].TD(h,e,$)};
dE.prototype.nA=function(h,e,$,Z){this.depth=$;var c=h[e];if(Z==null)Z=[];this.NN=Z;if(c.add.lsct==hJ.RS){this.a7n=c;
this.IX=e-1;this.children=[];var G=e+1;while(!0){var q=h[G];if(q==null)console.log(G,h.length);if(q.add.lsct==hJ.sE||q.add.lsct==hJ.Y7){if(c.add.lyid==q.add.lyid)c.add.lyid+=16777215;
this.$=q;this.index=G-1;Z[this.index]=this;Z[e-1]=this;break}var E=new dE;E.parent=this;G=E.nA(h,G,$+1,Z);
this.children.push(E)}return G+1}else{this.$=c;this.index=e-1;Z[this.index]=this;return e+1}};dE.prototype.oY=function(h,e,$,Z){var c=this.fH($),q=h;
while(c.parent!=null){q=c.$.d2(q,e,Z);c=c.parent}return q};dE.prototype._A=function(h,e){var $=this.$,Z=new O;
if(!$.o6())return Z;var c=$.kV();if($.vG())for(var G=0;G<this.children.length;G++){var q=this.children[G]._A(h,!0);
Z=Z.iJ(q)}else if(es.get($.add)!=null)Z=$.m5()&&$.r.color==0?$.r._A().clone():new O(0,0,h.d,h.v);else if($.SV()&&$.add.vmsk&&$.add.vmsk.isEnabled&&$.add.vstk){Z=$.rect.clone()}else if($.SV()&&c&&c.isEnabled&&c.LX()!=0)Z=new O(0,0,h.d,h.v);
else{Z=$.TX(h,!1,!0);if($.add.vmsk)Z=s.a.Lu(Z)}return e?$.d2(Z,h):Z};dE.prototype.Vc=function(h,e,$,Z,c){var q=this.$,E=hn.BU(q);
if(!q.o6())return;if(q.opacity==255){this.YI(h,e,$,Z,c);return}var P=h.slice(0);this.YI(P,e,$,Z,c);s.p.cZ(P,e,h,e,null,null,0,$,q.opacity/255,q.oG=="diss")};
dE.prototype.YI=function(h,e,$,Z,c){var q=this.$,E=hn.BU(q),P=es.get(q.add)!=null,H,S;if(q.vG()&&q.oG=="pass"&&!q.m5()&&!(c.length>0||E.fill!=1||q.xJ())){this.ft(h,e,$,Z);
return}var a=q.vG()&&q.oG=="pass"&&(c.length>0||E.fill!=1||q.xJ()),j=q.rect,L=q.buffer;if(q.vG()){j=this._A(Z,!1);
var _=s.m(j.X()*4);H=s.m(j.X());this.ft(_,j,$,Z);s.z0(_,H,3)}else if(P){j=e.clone();H=s.m(j.X());H.fill(255)}else{j=q.rect;
H=s.m(j.X());s.z0(L,H,3)}if(q.m5()){var J=q.r.tM(j);s.J9(J,H)}if(q.xJ())S=hn.RU(q.add.lmfx,q.add.fxrp,H,j,Z);
if(q.xJ())hn._O(q.add.lmfx,S,j,h,e,$);if(q.vG()){L=s.m(j.X()*4);if(q.oG=="pass")s.hX(h,e,L,j);if(a){var _=s.m(j.X()*4);
this.ft(_,j,$,Z);var N=s.m(j.X());s.z0(_,N,3);s.w2(N,j,L,j)}this.ft(L,j,$,Z)}if(P){L=h.slice(0);s.Ut(L,4278190080,16777215);
var Y=es.get(q.add),U=es.J8(Y,q.add[Y]);es.Vv(U,L,L,j)}var g=L.slice(0);s.Ut(g,4278190080,16777215);
for(var G=0;G<c.length;G++)c[G].Vc(g,j,$,Z,[]);var M=s.m(j.X()*4);s.hX(h,e,M,j);if(P)E.Eq=!0;s.p.Jn(q.oG=="pass"?"norm":q.oG,g,j,M,j,$,1,E);
if(q.xJ()){var C=q.V.IP.type.FrFX,y=null;if(C.length!=0){y=C[0];for(var G=0;G<C.length;G++)if(C[G].Vs.d>y.Vs.d)y=C[G];
var i=s.m(y.Vs.d*y.Vs.v*4);s.hX(h,e,i,y.Vs)}hn.K1(q.add.lmfx,S,j,h,e,$,M,i,y?y.Vs:null)}s.p.cZ(M,j,h,e,H,j,0,$,1,q.oG=="diss")};
dE.prototype.ft=function(h,e,$,Z){var c=this.children;for(var G=0;G<c.length;G++){var q=[];for(var E=G+1;
E<c.length;E++)if(c[E].$._U)q.push(c[E]);else break;c[G].Vc(h,e,$,Z,q);G+=q.length}};dE.oK={delete:function(h){if(h&&h.d)h.delete()},m:function(h,e){return V.Yv?new V.EI(h,e):s.m(h*e*4)},wc:function(h,e,$){if(V.Yv){if(h==null||h.d!=e||h.v!=$){dE.oK.delete(h);
return new V.EI(e,$)}}else{if(h==null||!(h instanceof Uint8Array)||h.length!=e*$*4){dE.oK.delete(h);
return s.m(e*$*4)}}return h},T7:function(h,e,$,Z,c){(V.Yv?V.wU:s.hX)(h,e,$,Z,c)},cZ:function(h,e,$,Z,c,q,E,P,G,a,j){(V.Yv?V.p.Il:s.p.cZ)(h,e,$,Z,c,q,E,P,G,a,j)},Jn:function(h,e,$,Z,c,q,E,P){if(V.Yv)V.p.xr(h,e,$,Z,c,q,E,P);
else s.p.Jn(h,e,$,Z,c,q,E,P)},Ut:function(h,e,$){if(V.Yv){V.wo(h);V.ZI(e,$)}else s.Ut(h,e,$)},aaf:function(h,e,$,Z,c){if(V.Yv){V.p.Il(null,null,Z,c,h,e,$,c,1,!1)}else{if($==255)s.w2(h,e,Z,c);
else{var q=s.m(e.X());s.H_(Z,c,q,e);s.J9(h,q);s.Ut(Z,0,16777215);s.tv(q,e,Z,c)}}},k2:function(h,e,$,Z){if(V.Yv)V.p.Il(null,null,$,Z,h,e,0,Z,1,!1);
else s.k2(h,e,$,Z)}};dE.prototype._N=function(h,e,$,Z,c,q){var E=typeof q=="number";if(!this.$.vG()&&(E&&this.index>q||!E&&q.indexOf(this.index)==-1)){return}var P=this.$,a=hn.BU(P),j=dE.oK,L=P.SV()?P.kV():P.r;
if(!P.o6())return;if(P.m5()&&L.rect.nK()){return}if(P.add.vstk==null&&this._A(Z,!1).nK()&&P.add.artb==null){return}var H=this._A(Z,!0).jx($);
if(!e.dz($)&&!$.k3(H)&&P.add.artb==null)return;if(P.vG()&&P.add.artb){var _=P.B2();$=$.jx(_);var J=P.oC();
if(J!=0){if(V.Yv){V.wo(h,$);V.ZI(J);V.ZI(J)}else s.a6r(h,e,$,J)}}var S=dE.Na(P,c,a);if(!S){this.sZ(h,e,$,Z,c,q);
return}P.V.GM=j.wc(P.V.GM,H.d,H.v);j.T7(h,e,P.V.GM,H,$);this.sZ(P.V.GM,H,$,Z,c,q);j.cZ(P.V.GM,H,h,e,null,null,0,$,P.opacity/255,P.oG=="diss",a.Iz)};
dE.Na=function(h,e,$){if($.Iz[0]*$.Iz[1]*$.Iz[2]==0)return!0;return h.opacity!=255&&(e.length!=0||h.vG()||h.xJ())};
dE.a3n={V:{}};dE.prototype.sZ=function(h,e,$,Z,c,q){var E=this.$,P=hn.BU(E),a=es.get(E.add)!=null,j=dE.oK,L=dE.Na(E,c,P),H=L?1:E.opacity/255,_=E.SV()?E.kV():E.r,J=E.vG()&&E.oG=="pass"&&!(c.length>0||P.fill!=1||E.xJ()),S=!E.vG()&&!a&&!E.xJ()&&c.length==0,N=a&&!E.xJ()&&c.length==0,y=null,i=null,Q=null,K;
if(J||S||N){var Y=h,U=e;if(E.m5()){U=this._A(Z,!1);Y=E.V.SD=j.wc(E.V.SD,U.d,U.v);j.T7(h,e,E.V.SD,U)}if(J)this.NG(Y,U,$,Z,q);
if(S)j.Jn(E.oG,E.AE(Z),E.rect,Y,U,$,H,P);if(N){var g=E.m5()&&_.LX()==0?_._A().clone():U.clone(),M=E.V;
if(g.dz(new O(0,0,Z.d,Z.v)))M=dE.a3n;M.LJ=this._H(Y,U,M.LJ,g,E.add);P.Eq=!0;j.Jn(E.oG,M.LJ,g,Y,U,$,H,P)}if(E.m5())j.cZ(Y,U,h,e,E.u9(),_._A(),_.LX(),$,1,E.oG=="diss");
E.V.IJ();return}var C=E.vG()&&E.oG=="pass"&&(c.length>0||P.fill!=1||E.xJ()),g=E.rect;if(E.vG()){g=this._A(Z,!1);
Q=E.V.LJ=j.wc(E.V.LJ,g.d,g.v);j.Ut(Q,0);this.NG(Q,g,g,Z,q);i=j.wc(E.V.iX,g.d,g.v);j.T7(Q,g,i,g)}else if(a){g=E.m5()&&_.LX()==0?_._A().clone():e.clone();
i=j.wc(E.V.iX,g.d,g.v);j.Ut(i,4294967295)}else{g=E.rect;y=E.AE(Z);i=j.wc(E.V.iX,g.d,g.v);j.T7(y,g,i,g)}E.V.iX=i;
if(E.m5())j.aaf(E.u9(),_._A(),_.LX(),i,g);if(E.xJ())if(E.V.ta||E.V.j9||E.V.wn!=V.Yv||E.V.Qa||E.vG()){var m=s.m(g.d*g.v);
if(hn.qP(E.add.lmfx)){if(V.Yv){if(!E.vG()&&E.kV()==null&&E.rect.dz(g))s.z0(E.buffer,m,3);else{var n=s.m(g.d*g.v*4);
i.get(n);s.z0(n,m,3)}}else s.z0(i,m,3)}if(E.V.j9||E.V.wn!=V.Yv||!s.dz(m,E.V.rJ)){var u=null;if(E.SV()&&E.add.vmsk&&E.add.vmsk.isEnabled&&E.add.vmsk.kV().color==0)u=E.add.vmsk.kV().rect;
hn.acZ(E.V.IP,m,g,E.add.lmfx,E.add.fxrp,Z,u);E.V.rJ=m}}if(E.xJ())hn._O(E.add.lmfx,E.V.IP,g,h,e,$);if(E.vG()){y=j.wc(E.V.SD,g.d,g.v);
j.Ut(y,0);if(E.oG=="pass")j.T7(h,e,y,g);if(C)j.k2(Q,g,y,g);this.NG(y,g,$,Z,q);E.V.SD=y}if(a){y=E.V.SD=this._H(h,e,E.V.SD,g,E.add)}if(E.vG()||a)K=y;
else{K=j.wc(E.V.SD,g.d,g.v);j.T7(y,g,K,g,$);E.V.SD=K}j.Ut(K,4278190080,16777215);for(var G=0;G<c.length;
G++)c[G]._N(K,g,$,Z,[],q);var F=E.V.XC=j.wc(E.V.XC,g.d,g.v);j.T7(h,e,F,g,$);if(a)P.Eq=!0;j.Jn(E.oG=="pass"?"norm":E.oG,K,g,F,g,$,1,P);
if(E.xJ()){var b=E.V.IP.type.FrFX,d=null;if(b.length!=0){d=b[0];for(var G=0;G<b.length;G++)if(b[G].Vs.d>d.Vs.d)d=b[G];
E.V.Vq=j.wc(E.V.Vq,d.Vs.d,d.Vs.v);j.T7(h,e,E.V.Vq,d.Vs,$);E.V.gI=j.wc(E.V.gI,d.Vs.d,d.Vs.v)}hn.K1(E.add.lmfx,E.V.IP,g,h,e,$,F,E.V.Vq,E.V.gI,d?d.Vs:null)}if(!V.Yv){var W=s.m(g.X());
s.z0(i,W,3);i=W}j.cZ(F,g,h,e,i,g,0,$,1,E.oG=="diss");E.V.IJ()};dE.prototype._H=function(h,e,$,Z,c){var q=es.get(c),E;
if(q)E=es.J8(q,c[q]);var P=dE.oK;$=P.wc($,Z.d,Z.v);if(!(V.Yv&&e.dz(Z)))P.T7(h,e,$,Z);if(E){if(V.Yv){var a=Z.clone();
a.x=a.y=0;if(e.dz(Z)){V.wo($,a);es.BO(E,h.jg,a)}else{V.wo($,Z);$.D1(Z);es.BO(E,$.Jw,a)}}else es.Vv(E,$,$,Z)}return $};
dE.prototype.NG=function(h,e,$,Z,c){var q=this.children;for(var G=0;G<q.length;G++){var E=[];for(var P=G+1;
P<q.length;P++)if(q[P].$._U)E.push(q[P]);else break;q[G]._N(h,e,$,Z,E,c);G+=E.length}};function c9(h){this.oJ="psd";
this.$c=!1;this.name=h;this.Np=-1;this.HZ=null;this.g5=null;this.fW=null;this._S=null;this.d=0;this.v=0;
this.t=[];this.Iw={};this.add={};this.buffer=null;this.OL=4;this.JM=null;this.Ay=72;this.ZG={};this.C=[];
this._D=[[],[]];this.E1=[];this.KI=[];this.DZ=[c9.Bd("Work Path")];this.fV=[];this.mG=null;this.Gs={classID:"CompList",list:{t:"VlLs",v:[]}};
this.root=null;this.i8=null;this.ms=!1;this.a3C=!1;this.ahY=!1;this.Te=!1;this.al=!1;this.IL=!1;this.qk=!1;
this.uu=!1;this.Oc=!1;this.j3=!1;this.ta=null;this.mJ=null;this.cj={};this.N=null;this.Qe=[];this.vw=[];
this.K={sk:{},wf:[],aen:[],Op:[],TZ:[],sV:null,Rt:null,yu:null,Q2:null,Vh:[],Yr:[]};this.history=[new fW([1,0],null)];
this.Nd=0;this.UH=0;this.z=new hX(this)}c9.prototype.M3=function(){var h=this.Qe,e=this.Qe.length;if(e!=0&&h[e-1].name=="Quick Mask")return h[e-1]};
c9.prototype.kY=function(){return this.oJ==D.YO("% |/!)")||this.oJ==D.vO("gP")};c9.prototype.CK=function(h){this.add.artd={classID:"null",Cnt:{t:"long",v:h},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}}};
c9.prototype.Ts=function(h){if(this.add.FEid==null)this.add.FEid=[];if(this.add.FEid.indexOf(h)==-1)this.add.FEid.push(h)};
c9.prototype.K$=function(h){var e=this.add.FEid.indexOf(h);this.add.FEid.splice(e,1);if(this.add.FEid.length==0)delete this.add.FEid};
c9.prototype.s=function(h){if(h==null)h=new O(0,0,this.d,this.v);if(this.ta==null)this.ta=h;else this.ta=this.ta.iJ(h)};
c9.prototype.a3L=function(h){return this.ta!=null};c9.prototype.Lk=function(h){var e=this.t[h],$=this.root.fH(h);
if($==null)return!1;if(e.vG()||$.parent.children.indexOf($)==0)return!1;return!0};c9.a8J=function(h){if(h.add.lnk2)for(var G=0;
G<h.add.lnk2.length;G++){var e=h.add.lnk2[G].af;h.add.lnk2[G].af=c9.YV()+e.slice(8);for(var $=0;$<h.t.length;
$++){var Z=h.t[$].add.SoLd;if(Z&&Z.Idnt.v==e)Z.Idnt.v=h.add.lnk2[G].af}}};c9.prototype.in=function(h,e,$){h.sort(function(H,_){return H-_});
var top=h[h.length-1],Z=this.t.slice(0),c=this.C.slice(0),q=[],E=[];for(var G=0;G<this.t.length;G++){if(h.indexOf(G)!=-1)E.push(this.t[G]);
else q.push(this.t[G])}this.a4(E);this.C=[];var P=this.root._A(this,!0);if(e)P=P.jx(e);if($)P=P.iJ($);
if(P.nK())P=new O(0,0,100,100);var a=new O(-P.x,-P.y,this.d,this.v),j=new Uint8Array(cE.fy("PSD").pT(this,0,0,[!0,!1]));
this.a4(Z);this.C=c;var L=new c9(this.t[top].getName());cE.fy("PSD").Cj(j.buffer,L);delete L.add.artd;
L._D=[[],[]];L.E1=[];L.a4(L.t);c9.a8J(L);f.u4.Hx(L,P);L.s();L.cm();L.v2();return[L,P,q,top]};c9.prototype.u7=function(h,e,$){var Z=this.in(h),c=Z[0],q=Z[1],E=Z[2],top=Z[3],P;
if($=="jpg")P=new Uint8Array(cE.fy("JPG").pT([[c.v2().buffer]],c.d,c.v,[80]));else P=new Uint8Array(cE.fy("PSD").pT(c,null,null,[!0,!1]));
if(e)E=this.t.slice(0);var a=this.L4(P,c.name,q.x,q.y);if(top==this.t.length-1)E.push(a);else E.splice(e?top+1:top-h.length+1,0,a);
this.a4(E);this.C=[E.indexOf(a)]};c9.YV=function(){var h="";for(var G=0;G<8;G++)h+=Math.floor(Math.random()*16).toString(16);
return h};c9.prototype.x0=function(h){if(h==null)return;if(this.add.Patt==null)this.add.Patt=[];var e=this.add.Patt;
for(var G=0;G<e.length;G++)if(e[G].id==h.id)return;e.push(h)};c9.prototype.L4=function(h,e,$,Z,c){if(this.add.lnk2==null)this.add.lnk2=[];
var q=null,H=!1;for(var G=0;G<this.add.lnk2.length;G++)if(s.dz(h,this.add.lnk2[G].raw)){q=this.add.lnk2[G].af;
break}if(q==null){var E=cE.B3(h.buffer);q=c9.YV()+"-d71c-11e5-b1ae-a548a96e5f9f";var P=new o.uI;P.af=q;
P.B6=E=="psd"?"8BIM":"    ";P.mD=e+"."+E;P.cp=E=="psd"?"8BPB":"    ";P.open=0;P.raw=h;P.type="liFD";
P.hs=2;this.add.lnk2.push(P)}var a=this.Cv(q),j=c9.YV()+"-d71c-11e5-b1ae-a548a96e5f9f",L=this.by();L.aq(e);
if(a!=null){var _=L.rect=a.bH[1].clone();L.rect.offset($,Z);var J=Math.max(_.d/this.d,_.v/this.v),H=c&&J>1.0001;
if(H){_.d=Math.round(_.d/J);_.v=Math.round(_.v/J);_.x=Math.round((this.d-_.d)/2);_.y=Math.round((this.v-_.v)/2)}else if(c&&cE.B3(h.buffer)=="pdf"&&this.Ay!=144){var J=144/this.Ay;
_.d=Math.round(_.d/J);_.v=Math.round(_.v/J);H=!0}L.buffer=s.m(L.rect.X()*4);if(!H)s.i7(a.bH[0],L.buffer)}L.add.SoLd={classID:"null",Idnt:{t:"TEXT",v:q},Impr:{t:"Objc",v:{__name:"None",classID:"none"}},placed:{t:"TEXT",v:j},PgNm:{t:"long",v:1},totalPages:{t:"long",v:1},frameStep:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},duration:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},frameCount:{t:"long",v:1},Annt:{t:"long",v:16},Type:{t:"long",v:2},Trnf:null,nonAffineTransform:null,warp:{t:"Objc",v:s.FO.m(L.rect)},Sz:{t:"Objc",v:{classID:"Pnt",Wdth:{t:"doub",v:L.rect.d},Hght:{t:"doub",v:L.rect.v}}},Rslt:{t:"UntF",v:{type:"#Rsl",val:72}}};
var S=s.a.Kf(L.rect).H;L.add.SoLd.Trnf=f.o.h8(S);L.add.SoLd.nonAffineTransform=f.o.h8(S);if(H)L.l3(this,!1);
return L};c9.prototype.v2=function(h){if(h!=null){this.s();this.cm(h);var e=this.buffer;if(V.Yv)this.i8.get(e);
else e=e.slice(0);this.s();this.cm();return e}if(this.ta){this.cm();this.ta=null}if(V.Yv&&this.mJ){this.i8.get(this.buffer);
this.mJ=null;this.qk=!0}return this.buffer};c9.prototype.sb=function(){for(var G=0;G<this.t.length;G++)this.t[G].c1();
this.s()};c9.prototype.cf=function(){for(var G=0;G<this.t.length;G++)if(this.t[G].add.lmfx)this.t[G].V.j9=!0};
c9.prototype.ne=function(){var h=this.Iw.r1044;if(h==null){h=this.Iw.r1044=new Uint8Array(4);var e=0;
for(var G=0;G<this.t.length;G++)e=Math.max(e,this.t[G].add.lyid);k.K_(h,0,e)}var $=k.n(h,0);k.K_(h,0,$+1);
return $+1};c9.prototype.Jh=function(h,e,$){if(h==null)h=!0;var Z=this;if(Z.vw.length!=0)return!0;if(Z.C.length!=1){if(h)alert(Z.C.length==0?"Select a layer first.":"More than one layer selected.");
return!1}return this.Nv(h,e,$)};c9.prototype.Nv=function(h,e,$){if(h==null)h=!0;if(e==null)e=!1;var Z=this;
if(Z.vw.length!=0)return!0;for(var G=0;G<Z.C.length;G++){var c=Z.t[Z.C[G]],q=e||c.jw<=0;if(c.add.lsct!=null&&c.add.lsct!=hJ.pU&&c.jw!=1){if(h)alert(e_.get([15,7,2]));
return!1}if(q&&!c.J7()){if(h)alert(e_.get([15,7,2]));return!1}if(q&&c.add.TySh){return this.li(h,[15,7,3],$)}if(q&&c.add.SoLd){return this.li(h,[15,7,4],$)}if(c.ra(1)||c.ra(31)){if(h)alert(e_.get([6,57,0]));
return!1}}return!0};c9.prototype.li=function(h,e,$){if(h&&typeof h=="object"){var Z=window.confirm(e_.get(e)+". "+e_.get([6,8])+"?");
if(Z){var c=new B(D.E.Kz,!0);c.data={Lw:"rasterizeLayer",TJ:{classID:"rasterizeLayer",null:bw.NQ("Lyr",!0)}};
h.f(c)}return $?Z:!1}if(h)alert(e_.get(e));return!1};c9.prototype.k7=function(h){var e=this.root.fH(h);
if(e.parent)return e.$.o6()&&this.k7(e.parent.index);else return e.$.o6()};c9.prototype.ua=function(h){var e=this.root.fH(h);
if(e==null)return null;var $=e.$;if($.add.artb)return $.B2();if(e.parent)return this.ua(e.parent.index);
return null};c9.prototype.$k=function(){var h=this.t[this.C[0]];if(h.jw<=0&&!h.rect.k3(this.N.rect)){alert("Selected area is empty.");
return!1}if(this.C.length==1&&this.N){var e=s.m(this.N.channel.length);s.H_(h.buffer,h.rect,e,this.N.rect);
s.J9(this.N.channel,e);if(s.w_(e,0)){alert("Selected area is empty.");return!1}}return!0};c9.prototype.ct=function(){if(this.Iw["r"+1037]==null)this.v8(30);
return k.hY(this.Iw["r"+1037],0)};c9.prototype.v8=function(h){if(this.Iw["r"+1037]==null)this.Iw["r"+1037]=new Uint8Array(4);
if(k.hY(this.Iw["r"+1037],0)==h)return;k.KB(this.Iw["r"+1037],0,h);this.cf()};c9.prototype.sX=function(){if(this.Iw["r"+1049]==null)this._g(30);
return k.hY(this.Iw["r"+1049],0)};c9.prototype._g=function(h){if(this.Iw["r"+1049]==null)this.Iw["r"+1049]=new Uint8Array(4);
if(k.hY(this.Iw["r"+1049],0)==h)return;k.KB(this.Iw["r"+1049],0,h);this.cf()};c9.prototype.ig=function(h){if(this.add.lnk2==null)return null;
for(var G=0;G<this.add.lnk2.length;G++)if(this.add.lnk2[G].af==h)return this.add.lnk2[G];return null};
c9.prototype.a5i=function(h){var e=this.ig(h);if(e==null)return!1;var $=cE.B3(e.raw.buffer);if($==null)return!1;
if(cE.fy($)!=null||$=="psd")return!0;return!1};c9.prototype.Cv=function(h,e,$,Z){var c=this.ig(h);if(c==null)return null;
c.v2(e,$,Z);if(c.bH)return c};c9.prototype.Bt=function(){var h=this.d,e=this.v;if(V.Yv&&this.i8==null)this.i8=new V.EI(h,e,!0);
if(this.buffer==null||this.buffer.length!=h*e*4||V.Yv&&(this.i8.d!=h||this.i8.v!=e)){this.buffer=s.m(h*e*4);
if(this.i8)this.i8.delete();if(V.Yv)this.i8=new V.EI(h,e,!0)}};c9.prototype.af1=function(){this.Bt();
if(V.Yv){this.i8.set(this.buffer)}};c9.prototype.cm=function(h){var e=this.d,$=this.v,Z=new O(0,0,e,$),c=Z.jx(this.ta);
this.Bt();if(c.nK())return;if(!c.dz(Z)){if(!V.Yv){var q=s.qm(c.X()*4);s.hX(q,c,this.buffer,Z)}if(V.Yv){V.wo(this.i8,c);
V.ZI(0)}}else{if(V.Yv){this.i8.set(null)}else{this.buffer.fill(0)}}var E=Date.now(),P=V.Yv?this.i8:this.buffer;
if(h==null)h=1e9;this.root._N(P,Z,c,this,[],h);this.mJ=this.ta.clone()};c9.prototype.by=function(h){var e=new o;
e.rect=new O(0,0,0,0);e.buffer=s.m(1);e.add.luni=new eu(0,0);if(h!=!0)e.add.lyid=this.ne();e.add.lsct=hJ.pU;
e.add.lclr=0;e.add.fxrp=new eu(0,0);return e};c9.prototype.d_=function(h){var e=this.by(h);e.aq("</Layer group>");
e.add.lsct=hJ.RS;e.GO=24;return e};c9.prototype.Kq=function(){return this.Nd!=this.UH};c9.prototype.eG=function(h){while(this.history.length>this.Nd+1)this.history.pop();
if(this.UH>this.Nd)this.UH=-1;if(h.F.id!=f.zI){this.Te=!0;if(this.Gs.lastAppliedComp){delete this.Gs.lastAppliedComp;
this.qk=!0}}this.history.push(h);this.Nd++;this.qk=!0;var e=e3.xK()?60:30,$=0;for(var G=this.history.length-1;
G>=0;G--){var Z=this.history[G];if(Z.Us)continue;$++;if($==e){this.Nd-=G;this.history=this.history.slice(G);
break}}};c9.prototype.fX=function(){if(this.Nd!=this.history.length-1)return null;return this.history[this.history.length-1]};
c9.prototype.wR=function(h,e,$,Z){if(h==null)h=!1;var c=e!=null?[e]:this.C.slice(0);if(Z){var q=[];for(var G=0;
G<c.length;G++){var E=this.t[c[G]].MX;if(E!=0&&q.indexOf(E)==-1)q.push(E)}for(var G=0;G<this.t.length;
G++){var E=this.t[G].MX;if(E!=0&&q.indexOf(E)!=-1&&c.indexOf(G)==-1)c.push(G)}}var P=[];for(var G=0;
G<c.length;G++){var a=this.dk(c[G],h);for(var j=0;j<a.length;j++)if(P.indexOf(a[j])==-1)P.push(a[j]);
if($){var t=this.root.fH(c[G]);while(t.parent!=null&&t.parent.parent!=null){t=t.parent;if(P.indexOf(t.index)==-1){P.push(t.index,t.IX)}}}}return P};
c9.prototype.xP=function(h,e,$){var Z=this,c=Z.wR(!1,h,null,$);c.sort(function(g,M){return g-M});var q={};
for(var E=0;E<Z.t.length;E++){var P=Z.t[E].getName();q[P]=!0}var a=[];for(var G=0;G<c.length;G++){var j=Z.t[c[G]].clone(),N,Y;
j.add.lyid=Z.ne();j.add.lspf=0;if(j.fi()){var L=j.wV(Z),H=c9.Gh(L);Z.Ts(H);j.add.SoLd.placed.v=H.id}j.ZB(Z);
var _=j.getName(),J=_.length;while(48<=_.charCodeAt(J-1)&&_.charCodeAt(J-1)<=57)J--;var S=parseInt(_.slice(J));
if(isNaN(S)){if(_.endsWith(" copy")){S=1;N=_.slice(0,_.length-5)}else{S=0;N=_}}else if(_.slice(0,J).endsWith(" copy ")){S=S;
N=_.slice(0,J-6)}else{S=0;N=_}S++;while(!0){Y=N+" copy"+(S==1?"":" "+S);if(q[Y]==null)break;S++}var U=c.indexOf(this.root.fH(c[G]).parent.index)!=-1;
if(e!=!0&&!U)j.aq(Y);q[Y]=!0;a.push(j)}return a};c9.Gh=function(h){return{id:c9.YV()+h.id.slice(8),buffer:h.buffer.slice(0),rect:h.rect.clone(),r:h.r?h.r.clone():null}};
c9.jX=function(h){return{id:h,rect:new O,buffer:s.m(1),r:new o.kq}};c9.Bd=function(h,e){if(e==null)e={vmsk:new o.MM};
if(e.vogk==null){e.vogk=[];var $=s.W.H4(e.vmsk.b);for(var Z=0;Z<$;Z++)e.vogk.push(s.as.qm())}return{name:h,NS:0,add:e}};
c9.prototype.U9=function(h){var e=[],$=[],Z=this,q=0;for(var G=1;G<Z.DZ.length;G++){var c=Z.DZ[G];c.NS=-1-G;
e.push(c);if(Z.fV.indexOf(G)!=-1)$.push(e.length-1)}if(Z.DZ[0].add.vmsk.b.length>2){var c=Z.DZ[0];c.NS=-1;
e.push(c);if(Z.fV.indexOf(0)!=-1)$.push(e.length-1)}var E=Z.mG==null;if(E)Z.mG=[];for(var G=Z.C.length-1;
G>=0;G--){var P=Z.t[Z.C[G]],a=P.add.TySh;if(P.add.vmsk!=null&&(P.Hy||P.SV())){var c=c9.Bd("\""+P.getName()+"\" Shape Path",P.add);
c.NS=Z.C[G];e.push(c);if(E)Z.mG.push(q);if(Z.mG.indexOf(q)!=-1)$.push(e.length-1);q++}if(h!=!0&&a&&a.add&&s.FO.en(a.$F)){var c=c9.Bd("\""+P.getName().slice(0,10)+"..\" Text Path",a.add);
c.NS=1e6+Z.C[G];e.push(c);$.push(e.length-1);q++}}if($.length==0&&h){Z.DZ[0].NS=-1;Z.fV=[0];$.push(e.length);
e.push(Z.DZ[0])}return[e,$]};c9.prototype.dk=function(G,h){var e=[],t=this.root.fH(G);if(t)t.lQ(e,h);
return e};c9.prototype.pL=function(){this.root.TD(this,new O(0,0,this.d,this.v),32)};c9.prototype.a4=function(h){for(var G=0;
G<this.t.length;G++){var e=this.t[G];if(h.indexOf(e)==-1){e.V.a90();e.s()}}this.t=h.slice(0);this.Nq()};
c9.prototype.Nq=function(){var h=this.t,e=h.length;this.root=new dE;var $=this.by(!0);$.oG="pass";$.add.lsct=hJ.sE;
var Z=this.d_(!0),c=[Z];for(var G=0;G<e;G++)c.push(h[G]);c.push($);this.root.nA(c,0,0);if(this.C.length==0)this.C=[e-1]};
c9.prototype.Kw=function(){if(this.C.length!=1)return;var h=this.root.fH(this.C[0]);while(h.parent!=null){var e=h.parent.$;
e.add.lsct=hJ.sE;h=h.parent}this.IL=this.a81=!0};c9.prototype.ao8=function(){this.Nq();var h=[this.root],aw=0;
while(h.length!=0){var top=h.pop();aw++;if(top.$.add.lsct==hJ.sE)for(var G=0;G<top.children.length;G++)h.push(top.children[G])}if(aw>1e3){var e=this.root.children;
for(var G=0;G<e.length;G++)if(e[G].$.add.lsct==hJ.sE)e[G].$.add.lsct=hJ.Y7}};c9.R$=function(h,e,$,Z,c){var q={__name:"Make",classID:"Mk",Nw:{t:"Objc",v:{classID:"Dcmn",Nm:{t:"TEXT",v:Z},Md:{t:"type",v:{classID:"RGBM"}},Wdth:{t:"UntF",v:{type:"#Rlt",val:h}},Hght:{t:"UntF",v:{type:"#Rlt",val:e}},Rslt:{t:"UntF",v:{type:"#Rsl",val:$}},pixelScaleFactor:{t:"doub",v:1},Fl:{t:"enum",v:{Fl:c}},Dpth:{t:"long",v:8},profile:{t:"TEXT",v:"sRGB IEC61966-2.1"}}}};
return{Lw:"make",TJ:q}};c9.aaj=function(h,e){var $=0,Z=0,c=72,q=e.ag$,E=h.preset&&h.preset.v=="Clipboard";
if(E){$=q.d;Z=q.v}else{$=h.Wdth.v.val;Z=h.Hght.v.val;c=h.Rslt.v.val}var P=new c9((h.Nm?h.Nm.v:e_.get([11,7]))+".psd");
P.d=$;P.v=Z;P.Ay=c;var a=P.by();a.aq("Background");P.a4([a]);a.add.lspf=1<<2;var j=h.Fl?h.Fl.v.Fl:"Wht";
if(j!="Trns"){var L=e.XK;L=(L&255)<<16|(L>>>8&255)<<8|L>>>16;a.rect=new O(0,0,$,Z);a.buffer=s.m($*Z*4);
s.Ut(a.buffer,{Wht:4294967295,BckC:255<<24|L}[j])}P.buffer=s.m($*Z*4);return P};function hX(h){this.q4=h;
this.S=0;this.Wt=1;this.i=new eu(0,0);this.uY=new eu(0,0);this.uk=0;this.RI=[1,1,1];this.qM=new O(0,0,1,1);
this.a3j=new O(0,0,h.d,h.v);this.og=null;this.Dc=null;this.uo=new Uint32Array(0);this.h4=null;this.Xw=null;
this.Pl=s.m(0);this.Bb=null;this.SJ=null}hX.prototype.EO=function(h){var e=new i7,$=this.qM,Z=this.q4,c=h?this.Wt:this.S,q=h?this.uY:this.i,E=Math.round(($.d-Z.d*c)/2+q.x),P=Math.round(($.v-Z.v*c)/2+q.y);
e.translate(-E,-P);e.scale(1/c,1/c);var a=Z.d/2,j=Z.v/2;e.translate(-a,-j);e.rotate(this.uk);e.translate(a,j);
return e};hX.prototype.xz=function(h){var e=this.qM,$=this.q4,Z=Math.atan2(-h.O,h.R),c=$.d/2,q=$.v/2;
h.translate(-c,-q);h.rotate(-Z);h.translate(c,q);var E=1/h.rD();h.scale(E,E);var P=-h.zq,a=-h.nL,j=Math.round(P-(e.d-$.d*E)/2),L=Math.round(a-(e.v-$.v*E)/2);
if(Math.abs(E-Math.round(E))<1e-6)E=Math.round(E);this.uk=Z;this.S=E;this.i=new eu(j,L)};hX.prototype.QX=function(h,e){var $=this.EO();
return $.tf(new eu(h,e))};hX.prototype.ab=function(h,e){var $=this.EO();$.vy();return $.tf(new eu(h,e))};
function c3(){}c3.order="ebbl FrFX IrSh IrGl ChFX SoFi GrFl patternFill OrGl DrSh".split(" ");c3.qV="ebblMulti frameFXMulti innerShadowMulti IrGlMulti ChFXMulti solidFillMulti gradientFillMulti patternFillMulti OrGlMulti dropShadowMulti".split(" ");
c3.names=[[14,4],[14,9],[14,1],[14,3],[14,8],[14,5],[14,6],[14,7],[14,2],[14,0]];c3.OE=["DrSh","IrSh","SoFi","GrFl","FrFX"];
c3.O7=["Clr"];c3.bv="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");c3.Tk=["Ptrn","Scl","Algn","phase"];
c3.zn={AJ:"{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}}}",HR:"{\"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\"}}}",pF:"{\"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}}}]}}}",eF:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"v\":\"orangeslices\",\"t\":\"TEXT\"},\"Idnt\":{\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\",\"t\":\"TEXT\"}}}"};
c3.zn.AJ="\"Clr\": "+c3.zn.AJ;c3.zn.Y="\"Grad\":"+c3.zn.HR+",\"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\"}";
c3.zn.eF="\"Ptrn\":"+c3.zn.eF+",\"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\"}";
c3.default="{ \"classID\": \"null\", \"Scl\": {\"t\": \"UntF\", \"v\": { \"type\": \"#Prc\",\"val\": 100} }, \"masterFXSwitch\": {\"t\": \"bool\",\"v\": true} }";
c3.kD=["{\"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\"},"+c3.zn.AJ+","+c3.zn.Y+","+c3.zn.eF+"}","{\"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\"},"+c3.zn.AJ+"}","{\"classID\":\"GrFl\",       \"enab\":{\"v\":true,\"t\":\"bool\"},  \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+c3.zn.Y+"}","{\"classID\":\"patternFill\",\"enab\":{\"v\":true,\"t\":\"bool\"},  \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+c3.zn.eF+"}","{\"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\"}}"];
c3.Y={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]]};
c3.stroke={types:["InsF","CtrF","OutF"],names:[[19,5,2],[19,5,1],[19,5,0]],YS:["SClr","GrFl","Ptrn"],a5c:[[13,0],[12,37],[12,62]]};
c3._L={types:["SfBL","PrBL"],names:[[19,1,0],[19,1,1]],zA:["SrcC","SrcE"],a5H:[[19,5,1],[12,69]]};c3.m4={types:["OtrB","InrB","Embs","PlEb","strokeEmboss"],style:[[19,2,0],[19,2,1],[19,2,2],[19,2,3],[19,2,4]],JW:["SfBL","PrBL","Slmt"],abi:[[19,3,0],[19,3,1],[19,3,2]],dir:[[19,4,0],[19,4,1]]};
c3.oF={kS:["strokeStyleButtCap","strokeStyleRoundCap","strokeStyleSquareCap"],ws:["strokeStyleAlignInside","strokeStyleAlignCenter","strokeStyleAlignOutside"],join:["strokeStyleMiterJoin","strokeStyleRoundJoin","strokeStyleBevelJoin"],$v:["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\","+c3.zn.AJ+"}")},strokeStyleResolution:{t:"doub",v:72}}};
c3.nf=[{classID:"null",Clr:JSON.parse(c3.kD[5]).Clr},{classID:"null",Grad:JSON.parse(c3.kD[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(c3.kD[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 hn={};hn.aok=function(h,e,$){if(h.nK())return;var Z=s.W.agr(h.b);Z.x=Math.floor(Z.x*e);Z.d=Math.ceil(Z.d*e);
Z.y=Math.floor(Z.y*$);Z.v=Math.ceil(Z.v*$);h.rect=Z;h.channel=s.m(Z.X());s.BA.width=Z.d;s.BA.height=Z.v;
var c=s.qM;c.fillStyle="#ffffff";s.W.a7w(c,h.b,e,$,-Z.x,-Z.y);c.fill();var q=c.getImageData(0,0,Z.d,Z.v).data;
s.z0(q,h.channel,3)};hn.Ef=function(h,e){function $(h,_){if(h==null)return null;var J=h[_].v,S;if(J.length!=0){S=J[0].v;
if(!S.enab.v)S=null}return S}var Z=e.SoCo,c=e.GdFl,q=$(h,"solidFillMulti"),E=$(h,"gradientFillMulti");
if(q==null&&E==null)return[Z,c];var P=hn.a52;if(Z&&q&&E==null){var a=JSON.parse(JSON.stringify(Z));a.Clr.v=P(q.Clr.v,Z.Clr.v,q);
return[a,null]}if(c&&q&&E==null){var j=JSON.parse(JSON.stringify(c)),L=j.Grad.v.Clrs.v;for(var G=0;G<L.length;
G++){var H=L[G].v.Clr;H.v=P(q.Clr.v,H.v,q)}return[null,j]}if(Z&&E){var j=JSON.parse(JSON.stringify(E)),L=j.Grad.v.Clrs.v;
for(var G=0;G<L.length;G++){var H=L[G].v.Clr;H.v=P(H.v,Z.Clr.v,E)}return[null,j]}return[q,E]};hn.ajI={hl:s.m(4),G1:s.m(4),h:new O(0,0,1,1)};
hn.a52=function(h,e,$){var Z=eN.Tj($.Md.v.BlnM),c=$.Opct.v.val/100,q=hn.ajI;h=s.Y.LX(h);e=s.Y.LX(e);
q.hl[0]=h.h;q.hl[1]=h.l;q.hl[2]=h.O;q.hl[3]=255;q.G1[0]=e.h;q.G1[1]=e.l;q.G1[2]=e.O;q.G1[3]=255;s.p.Jn(Z,q.hl,q.h,q.G1,q.h,q.h,c);
return{classID:"RGBC",Rd:{t:"doub",v:q.G1[0]},Grn:{t:"doub",v:q.G1[1]},Bl:{t:"doub",v:q.G1[2]}}};hn.Qo=function(h,e,$){var Z=h;
h=h.slice(0);var c=eN.Pn[eN.ie.indexOf(e.Md.v.BlnM)],q=s.Y.LX(e.Clr.v),E=4278190080|Math.round(q.O)<<16|Math.round(q.l)<<8|Math.round(q.h),P=s.m($.X()*4);
s.Ut(P,E);s.p.Jn(c,P,$,h,$,$,e.Opct.v.val/100);for(var G=0;G<h.length;G+=4)h[G+3]=Z[G+3];return h};hn.Z9=function(h,e){var $=["Sz","blur","Sftn","Dstn"];
for(var G=0;G<c3.order.length;G++){var Z=c3.order[G],c=h[c3.qV[G]].v;for(var q=0;q<c.length;q++){var E=c[q].v;
for(var P=0;P<$.length;P++){var a=E[$[P]];if(a){var j=a.v.val,L=j;L=Math.max(j==0?0:1,L*e);if(Z=="ChFX")L=Math.min(L,250);
if(Z=="ebbl"){if($[P]=="blur")L=Math.min(L,250);if($[P]=="Sftn")L=Math.min(L,16)}a.v.val=Math.round(L)}}if(Z=="ebbl"||Z=="patternFill"||Z=="FrFX")if(E.Ptrn&&E.Scl)E.Scl.v.val=Math.max(1,Math.min(1e3,E.Scl.v.val*e))}}};
hn.ajs=function(h,e,$){var Z=new O(-.5,-.5,1,1),c=h.add.lmfx;for(var G=0;G<c3.order.length;G++){var q=c3.order[G],E=c[c3.qV[G]].v;
for(var P=0;P<E.length;P++){var a=E[P].v,_;if(!a.enab.v)continue;var j=a.blur?a.blur.v.val+1:0,L=a.Ckmt?a.Ckmt.v.val/100:0,H=Math.round(j*L);
if(q=="DrSh"||q=="IrSh"&&$){_=new O(-.5,-.5,1,1);_.P5(j,j);hn.IO(_,a,e,0)}if(q=="OrGl"||q=="IrGl"&&$){_=new O(-.5,-.5,1,1);
_.P5(j,j)}if(q=="FrFX"){var J=hn.gc(a),S=J[1];if($)S=Math.max(J[0],S);_=new O(-.5,-.5,1,1);_.P5(Math.ceil(S),Math.ceil(S))}if(q=="ebbl"){var j=a.blur.v.val,N=a.bvlS.v.BESl;
if(N=="Embs"||N=="PlEb")j/=2;var Y=["OtrB","InrB","Embs","PlEb","strokeEmboss"],U=["SfBL","PrBL","Slmt"],g=["In","Out"],M=a.bvlT.v.bvlT!="SfBL"?j:j*.43,C=Math.round(j);
_=new O(-C-1,-C-1,2*C+2,2*C+2)}if($&&q=="ChFX"){_=new O(-.5,-.5,1,1);_.P5(j,j);var y=_.clone();hn.IO(_,a,e,0);
hn.IO(y,a,e,Math.PI);_=_.iJ(y)}if(_)Z=Z.iJ(_)}}if(Z.x!=Math.ceil(Z.x)){Z.x=Math.ceil(Z.x);Z.d-=1}if(Z.y!=Math.ceil(Z.y)){Z.y=Math.ceil(Z.y);
Z.v-=1}return Z};hn.gc=function(h){var e=0,$=0,Z=h.Styl.v.FStl,c=h.Sz.v.val;if(Z=="OutF")$=c;if(Z=="InsF")e=c;
if(Z=="CtrF")e=$=c/2;return[e,$]};hn.Ua=function(h){if(h.all==null)return;for(var G=0;G<h.all.length;
G++){var e=h.all[G];if(e.VC)e.VC.delete();if(e.u$)e.u$.delete();if(e.Eb)e.Eb.delete()}};hn.acZ=function(h,e,$,Z,c,q,E){hn.Ua(h);
var P=hn.RU(Z,c,e,$,q,E);h.type=P.type,h.all=P.all;if(V.Yv)for(var G=0;G<h.all.length;G++){var a=h.all[G];
a.VC=new V.EI(a.XR.d,a.XR.v);a.VC.set(a.Hl);delete a.Hl;if(a.vT){a.u$=new V.ow(a.XR.d,a.XR.v);a.u$.set(a.vT);
delete a.vT}if(a.QD){a.Eb=new V.ow(a.XR.d,a.XR.v);a.Eb.set(a.QD);delete a.QD}}};hn.qP=function(h){for(var G=0;
G<c3.order.length;G++){var e=c3.order[G],$=c3.qV[G],Z=h[$].v;for(var c=0;c<Z.length;c++){var q=Z[c].v;
if(q.enab.v&&["patternFill","GrFl","SoFi"].indexOf(e)==-1)return!0}}return!1};hn.RU=function(h,e,$,Z,c,q){if(q==null)q=Z;
var E=0,P=0;for(var G=0;G<c3.order.length;G++){var a=c3.order[G],j=c3.qV[G],L=h[j].v;for(var H=0;H<L.length;
H++){var _=L[H].v;if(a=="DrSh"&&_.enab.v&&_.Ckmt.v.val>0&&_.blur.v.val>0)E=Math.max(E,Math.ceil(_.Ckmt.v.val*_.blur.v.val/100));
if(a=="OrGl"&&_.enab.v&&_.Ckmt.v.val>0&&_.blur.v.val>0&&_.GlwT.v.BETE=="SfBL")E=Math.max(E,Math.ceil(_.Ckmt.v.val*_.blur.v.val/100));
if(a=="OrGl"&&_.enab.v&&_.blur.v.val>0&&_.GlwT.v.BETE=="PrBL")E=Math.max(E,_.blur.v.val);if(a=="FrFX"&&_.enab.v&&_.Sz.v.val>0){if(_.Styl.v.FStl=="OutF")E=Math.max(E,_.Sz.v.val);
if(_.Styl.v.FStl=="CtrF")E=Math.max(E,Math.ceil(_.Sz.v.val/2));P=Math.max(P,hn.gc(_)[1])}}}var J=new hn.Ym($,Z,E,hn.qP(h)),S=-Z.x,N=-Z.y,Y={type:{},all:[]};
for(var U=0;U<c3.order.length;U++){var a=c3.order[U],j=c3.qV[U];Y.type[a]=[];for(var g=h[j].v.length-1;
g>=0;g--){var M=h[j].v[g].v;if(!M.enab.v)continue;var C=M.blur?M.blur.v.val:0,y=M.Ckmt?M.Ckmt.v.val/100:0,i=C*y;
if(a=="DrSh"){var Q=J.C0(i,C-i,!0),m=Q.mF,n=Q._;n.offset(S,N);hn.QJ(m,M,!1);hn.IO(n,M,c,0);var u=s.m(n.X()*4);
hn.cR(u,M.Clr.v);s.Jk(m,u,3);var K={Hl:u,XR:n,Uz:eN.Tj(M.Md.v.BlnM),H6:M.Opct.v.val/100,ajT:M.layerConceals.v};
Y.type[a].push(K);Y.all.push(K)}if(a=="IrSh"){var Q=J.C0(i,C-i,!1);hn.IO(Q._,M,c,0);var n=J.rect().clone(),m=s.m(n.X());
m.fill(255);s.T7(Q.mF,Q._,m,n);hn.QJ(m,M,!0);var u=s.m(n.X()*4);hn.cR(u,M.Clr.v);s.Jk(m,u,3);n.offset(S,N);
var K={Hl:u,XR:n,Uz:eN.Tj(M.Md.v.BlnM),H6:M.Opct.v.val/100};Y.type[a].push(K);Y.all.push(K)}if(a=="GrFl"){var u=s.m(J.rect().X()*4);
hn.Jl(M,u,J.rect(),c,null,q);var n=J.rect().clone();n.offset(S,N);var K={Hl:u,XR:n,Uz:eN.Tj(M.Md.v.BlnM),H6:M.Opct.v.val/100};
Y.type[a].push(K);Y.all.push(K)}if(a=="SoFi"){var u=s.m(J.mF().length*4);hn.cR(u,M.Clr.v);var n=J.rect().clone();
n.offset(S,N);var K={Hl:u,XR:n,Uz:eN.Tj(M.Md.v.BlnM),H6:M.Opct.v.val/100};Y.type[a].push(K);Y.all.push(K)}if(a=="ebbl"){var F=!1;
if(F)console.log(M);var b=Date.now(),d=M.bvlS.v.BESl;if(d=="strokeEmboss"){var W=h.frameFXMulti.v;if(W.length==0)continue;
W=W[0].v;if(!W.enab.v)continue;var A=W.Styl.v.FStl;if(A=="OutF")d="OtrB";if(A=="CtrF")d="Embs";if(A=="InsF")d="InrB"}var C=M.blur.v.val;
if(C==0)C=.7;if(d=="Embs"||d=="PlEb")C/=2;var z=["OtrB","InrB","Embs","PlEb","strokeEmboss"],T=["SfBL","PrBL","Slmt"],R=["In","Out"],I=M.bvlT.v.bvlT!="SfBL"?C:C*.45,r=Math.round(C),x=J.rect().clone(),X=x.clone();
X.P5(r,r);var l=X.d,hH=X.v,hZ=l*hH,gj=s.m(hZ);s.T7(J.mF(),x,gj,X);var hO=new Float64Array(hZ),v=new Float64Array(hZ);
s.style.S7(gj,hO,l,hH);s.vy(gj);s.style.S7(gj,v,l,hH);if(F)console.log("distTransform computed",Date.now()-b);
for(var G=0;G<hZ;G++)v[G]=v[G]-hO[G];for(var G=0;G<hZ;G++){var hl=v[G];if(hl<-I)v[G]=-I;else if(hl>I)v[G]=I}if(F)console.log("summing + cropping",Date.now()-b);
if(M.bvlT.v.bvlT=="SfBL"){var ht=Math.pow(C*.21,1.22);if(!0)ht=Math.max(ht,2);var ga=s.Nw.dx(ht,2);s.Nw.nd(v,hO,X,ga[0]>>>1);
s.Nw.nd(hO,v,X,ga[1]>>>1)}if(F)console.log("blurring",Date.now()-b);var eB=v,bP=eB.slice(0);if(M.useShape.v){var ek=Math.min(100,M.Inpr.v.val+1)/100;
if(d!="OtrB"&&d!="InrB")ek=1;var b_=s.$e.HL(M.MpgS.v.Crv.v,2e3),fz=Math.round(2e3/ek);b_=s.$e.ajX(b_,fz,d=="InrB");
var ca=.5/I;for(var G=0;G<hZ;G++){var gf=eB[G],bb=.99999*(gf+I)*ca;eB[G]=-I+2*I*b_[~~(bb*(fz-1))]}if(F)console.log("applying shape",Date.now()-b)}if(M.useTexture.v){var b2=s.m(l*hH*4);
hn.lm(M,b2,X,c,e);var dV=s.m(l*hH);s.yh(b2,dV);var ch=s.m(l*hH);s.Nw.cW(dV,ch,X,1);dV=ch;var hE=C*M.textureDepth.v.val*(1/100)*(1/255);
if(M.InvT.v)hE=-hE;for(var G=0;G<hZ;G++)eB[G]+=-hE*dV[G];if(F)console.log("applying texture",Date.now()-b)}var dS=(M.bvlT.v.bvlT=="SfBL"?1:.5)*(M.bvlD.v.BESs=="In"?1:-1)*M.srgR.v.val/100;
for(var G=0;G<hZ;G++)eB[G]*=dS;if(F)console.log("scaling",Date.now()-b);var e1=M.uglg&&M.uglg.v?c.ct():M.lagl.v.val;
e1=e1*(Math.PI/180);var eG=M.uglg&&M.uglg.v?c.sX():M.Lald.v.val;eG=eG*(Math.PI/180);var dq=Math.cos(e1)*Math.cos(eG),f2=-Math.sin(e1)*Math.cos(eG),a3=Math.sin(eG),bm=new Float64Array(hZ),h2=new Float64Array(hZ),ag=d=="PlEb";
for(var eU=0;eU<hH;eU++)for(var iz=0;iz<l;iz++){var G=eU*l+iz,d2=0,gP=0,fa=1;if(eU!=0&&eU!=hH-1&&iz!=0&&iz!=l-1){var eI=eB[G-l-1],it=eB[G-l+1],ic=eB[G+l-1],iK=eB[G+l+1];
d2=-.125*(it+2*eB[G+1]+iK-(eI+2*eB[G-1]+ic));gP=-.125*(ic+2*eB[G+l]+iK-(eI+2*eB[G-l]+it))}else{var fA=eB[G];
gP=-(eU==0?eB[G+l]-fA:eU==hH-1?fA-eB[G-l]:.5*(eB[G+l]-eB[G-l]));d2=-(iz==0?eB[G+1]-fA:iz==l-1?fA-eB[G-1]:.5*(eB[G+1]-eB[G-1]))}var iB=1/Math.sqrt(d2*d2+gP*gP+1);
d2*=iB;gP*=iB;fa*=iB;var hG=d2*dq+gP*f2+fa*a3,dt=hG;if(ag)dt=-d2*dq-gP*f2+fa*a3;if(hG>0)bm[G]=hG;if(dt>0)h2[G]=dt}if(F)console.log("raycasting",Date.now()-b);
if(M.Sftn.v.val!=0){s.Nw.Yl(bm,hO,X,M.Sftn.v.val*.43);var gO=hO,hO=bm,bm=gO;if(ag){s.Nw.Yl(h2,hO,X,M.Sftn.v.val*.43);
var gO=hO,hO=h2,h2=gO}else s.i7(bm,h2)}if(F)console.log("softening",Date.now()-b);var b_=s.$e.HL(M.TrnS.v.Crv.v,1024);
for(var G=0;G<hZ;G++){bm[G]=b_[~~(bm[G]*1024)];h2[G]=b_[~~(h2[G]*1024)]}if(F)console.log("contour remap",Date.now()-b);
l=Math.round(l);hH=Math.round(hH);var cX=s.m(l*hH*4);hn.cR(cX,M.hglC.v);var bh=s.m(l*hH*4);hn.cR(bh,M.sdwC.v);
var bi=s.m(l*hH*4);hn.cR(bi,M.hglC.v);var dM=s.m(l*hH*4);hn.cR(dM,M.sdwC.v);var ik=1/a3,iW=1/(1-a3),ca=1/I,et=new Float64Array(1e3);
for(var G=0;G<1e3;G++)et[G]=Math.pow(G*.001,.2);for(var eU=0;eU<hH;eU++)for(var iz=0;iz<l;iz++){var G=eU*l+iz,iy=4*G+3,er=0,h$=0;
er=bm[G];h$=h2[G];var dN=Math.max(0,Math.min(.9999,(bP[G]+I*.993)*ca));dN=et[Math.floor(dN*1e3)];var dQ=dN*(1-Math.min(1,er*ik)),cL=dN*(1-Math.min(1,(1-er)*iW)),ge=dN*(1-Math.min(1,h$*ik)),ds=dN*(1-Math.min(1,(1-h$)*iW));
bh[iy]=Math.round(255*dQ);cX[iy]=Math.round(255*cL);dM[iy]=Math.round(255*ge);bi[iy]=Math.round(255*ds)}if(F)console.log("baking textures",Date.now()-b);
X=J.rect().clone();X.P5(r,r);X.offset(S,N);var dH={aik:M.bvlS.v.BESl=="strokeEmboss"};if(["InrB","Embs","PlEb"].indexOf(d)!=-1){dH.Qg={Hl:cX,XR:X,Uz:eN.Tj(M.hglM.v.BlnM),H6:M.hglO.v.val/100};
dH.pa={Hl:bh,XR:X,Uz:eN.Tj(M.sdwM.v.BlnM),H6:M.sdwO.v.val/100};Y.all.push(dH.Qg,dH.pa)}if(["OtrB","Embs","PlEb"].indexOf(d)!=-1){dH.NM={Hl:bi,XR:X,Uz:eN.Tj(M.hglM.v.BlnM),H6:M.hglO.v.val/100};
dH.YA={Hl:dM,XR:X,Uz:eN.Tj(M.sdwM.v.BlnM),H6:M.sdwO.v.val/100};Y.all.push(dH.NM,dH.YA)}if(F)console.log(Date.now()-b);
Y.type[a].push(dH)}if(a=="patternFill"){var hs=J.rect(),u=s.m(hs.X()*4);hn.lm(M,u,hs,c,e);var n=hs.clone();
n.offset(S,N);var K={Hl:u,XR:n,Uz:eN.Tj(M.Md.v.BlnM),H6:M.Opct.v.val/100};Y.type[a].push(K);Y.all.push(K)}if(a=="ChFX"){var u=s.m(J.mF().length*4);
hn.cR(u,M.Clr.v);var C=M.blur.v.val,cb=J.rect().clone();cb.P5(C,C);var fe=s.m(cb.X()),ej=s.m(cb.X());
s.T7(J.mF(),J.rect(),ej,cb);s.Nw.ec(ej,fe,cb,C*.43);var gd=s.$e.s_(M.MpgS.v.Crv.v,256,!0);s.FS(fe,gd);
var cs=s.m(J.mF().length),hc=s.m(J.mF().length),c5=J.rect().clone();hn.IO(c5,M,c,0);s.T7(fe,cb,cs,c5);
c5=J.rect().clone();hn.IO(c5,M,c,Math.PI);s.T7(fe,cb,hc,c5);var eO=cs.length;for(var G=0;G<eO;G++)u[4*G+3]=Math.abs(cs[G]-hc[G]);
if(M.Invr.v)for(var G=0;G<eO;G++)u[4*G+3]=255-u[4*G+3];var n=J.rect().clone();n.offset(S,N);var K={Hl:u,XR:n,Uz:eN.Tj(M.Md.v.BlnM),H6:M.Opct.v.val/100};
Y.type[a].push(K);Y.all.push(K)}if(a=="OrGl"){var Q;if(M.GlwT.v.BETE=="SfBL")Q=J.C0(i,C-i,!0);else Q=J.dK(C,y,!0);
var m=Q.mF,n=Q._,hF=m.slice(0);hn.L9(m,M);var u=s.m(n.X()*4);if(M.Grad==null){hn.cR(u,M.Clr.v);hn.QJ(m,M,!1)}else{hn.QJ(m,M,null);
var i4={pY:m,Cy:255,kB:0,OT:n};hn.Jl(M,u,n,c,i4);var dO=M.Nose.v.val/100,g0=n.d;for(var G=0;G<hF.length;
G++){var a6=255,ao=hF[G];if(ao<32){var dv=(ao+hF[G-1]+hF[G+1]+hF[G-g0]+hF[G+g0])*.2-1;a6=Math.min(255,Math.round(Math.max(0,dv)*8))}m[G]=a6}hn.f5(m,M)}s.Jk(m,u,3);
n.offset(S,N);var K={Hl:u,XR:n,Uz:eN.Tj(M.Md.v.BlnM),H6:M.Opct.v.val/100};Y.type[a].push(K);Y.all.push(K)}if(a=="IrGl"){var Q;
if(M.GlwT.v.BETE=="SfBL")Q=J.C0(i,C-i,!1);else Q=J.dK(C,y,!1);var m=Q.mF,n=Q._;hn.L9(m,M);if(M.glwS.v.IGSr=="SrcC")s.vy(m);
var u=s.m(n.X()*4);if(M.Grad==null){hn.cR(u,M.Clr.v);hn.QJ(m,M,!0)}else{hn.QJ(m,M,null);var i4={pY:m,Cy:255,kB:0,OT:n};
hn.Jl(M,u,n,c,i4);m.fill(255);hn.f5(m,M)}s.Jk(m,u,3);n.offset(S,N);var K={Hl:u,XR:n,Uz:eN.Tj(M.Md.v.BlnM),H6:M.Opct.v.val/100};
Y.type[a].push(K);Y.all.push(K)}if(a=="FrFX"){var en=hn.gc(M),eg=en[0],hm=en[1],n=J.rect().clone(),iD=null,hQ=null;
n.P5(Math.ceil(P),Math.ceil(P));if(hm>0){var Q=J.C0(hm,0,!0);hQ=Q.mF;if(hQ.length<n.X()){hQ=s.m(n.X());
s.T7(Q.mF,Q._,hQ,n)}}if(eg>0){var Q=J.C0(eg,0,!1);iD=s.m(n.X());iD.fill(255);s.T7(Q.mF,Q._,iD,n)}n.offset(S,N);
var u=s.m(n.X()*4),dy=M.PntT.v.FrFl;if(dy=="SClr")hn.cR(u,M.Clr.v);if(dy=="GrFl")hn.Jl(M,u,n,c,J.a93(eg,hm));
if(dy=="Ptrn")hn.lm(M,u,n,c,e);var K={Hl:u,XR:n,Uz:eN.Tj(M.Md.v.BlnM),H6:M.Opct.v.val/100,QD:hQ,vT:iD};
Y.type[a].push(K);Y.all.push(K)}}}return Y};hn.Em=function(h){var e=1/Math.sqrt(h.x*h.x+h.y*h.y+h.Qc*h.Qc);
h.x*=e;h.y*=e;h.Qc*=e};hn.Xn=function(h,e){return{x:h.y*e.Qc-h.Qc*e.y,y:h.Qc*e.x-h.x*e.Qc,Qc:h.x*e.y-h.y*e.x}};
hn.a5w=function(h,e){return h.x*e.x+h.y*e.y+h.Qc*e.Qc};hn.f5=function(h,e){var $=e.Nose.v.val/100;if($>0)for(var G=0;
G<h.length;G++){var Z=h[G];Z=Math.min(510-(1+$)*s.style.f$(G),Z);h[G]=Z}};hn.BU=function(h){var e=hn.Wn(),$=h.q8,Z=!1;
for(var G=0;G<32;G+=8)if($[G]+$[G+1]+$[4]+$[5]!=0||$[G+2]+$[G+3]+$[6]+$[7]!=1020)Z=!0;if(Z){$=$.slice(0);
for(var G=0;G<40;G+=4){var c=$[G]/255,q=$[G+1]/255,E=$[G+2]/255,P=$[G+3]/255;$[G]=c-1e-4;$[G+1]=c==q?1e9:1/(q-(c-1e-4));
$[G+2]=E==P?-1e9:1/(E-(P+1e-4));$[G+3]=P+1e-4}}var a=h.add.iOpa!=null?h.add.iOpa/255:e.fill,j=h.add.vstk;
if(j&&!j.fillEnabled.v&&(!j.strokeEnabled.v||j.strokeStyleLineWidth.v.val==0))a=0;return{fill:a,Zo:Z?$:null,Iz:h.add.brst!=null?h.add.brst:e.Iz,agN:h.add.knko!=null?h.add.knko:e.agN,style:!1,Eq:!1}};
hn.Wn=function(){return{fill:1,Zo:null,Iz:[1,1,1],agN:0,style:!1,Eq:!1}};hn.lg=function(h,e){if(e==null)return null;
var $=h.Idnt.v,Z=null;for(var G=0;G<e.length;G++)if(e[G].id==$)return e[G];return null};hn.iY=function(h,e,$){var Z=["patternFillMulti","ebblMulti","frameFXMulti"];
for(var G=0;G<Z.length;G++){var c=h.v[Z[G]].v;for(var q=0;q<c.length;q++)if(c[q].v.Ptrn)e.x0(hn.lg(c[q].v.Ptrn.v,$))}};
hn.ahf=function(h,e,$){var Z=["patternFillMulti","ebblMulti","frameFXMulti"];for(var G=0;G<Z.length;
G++){var c=h.v[Z[G]].v;for(var q=0;q<c.length;q++)if(c[q].v.Ptrn){var E=c[q].v.Ptrn.v,P=hn.lg(E,$),a=hn.lg(E,e.add.Patt);
if(P==null&&a)$.push(a)}}};hn.lm=function(h,e,$,Z,c){var q=hn.lg(h.Ptrn.v,Z.add.Patt);if(q!=null&&!$.nK()){var E=q.Rv,P=E[0],a=E[1],j=0;
s.gt(E);var L=h.Scl.v.val/100;while((L<.3||L==.5)&&E[j+2]){L*=a.d/E[j+3].d;j+=2;P=E[j];a=E[j+1]}var H=s.scale.lm(P,a.d,a.v),_=-$.x+h.phase.v.Hrzn.v-1,J=-$.y+h.phase.v.Vrtc.v-1;
if(h.Algn!=null&&!h.Algn.v){}else{_+=c.x;J+=c.y}s.scale.a2q(H,e,$.d,$.v,L,L,_+1,J+1)}};hn.Jl=function(h,e,$,Z,c,q){if(q==null)q=$;
var E=h.Type?h.Type.v.GrdT:"shapeburst",P=h.Algn&&h.Algn.v?q:new O(0,0,Z.d,Z.v),a=h.Angl?s.Y.po(h,P):[new eu(0,0),new eu(100,0)],j=a[0].x,L=a[0].y,H=a[1].x-j,_=a[1].y-L,J=Math.sqrt(H*H+_*_);
J=1/(2*J*J);var S=[H*J,_*J,-_*J,H*J],N=h.Rvrs?h.Rvrs.v:!1,Y=h.Dthr?h.Dthr.v:!1;s.Y.Ne(h.Grad.v,e,$,S,j,L,N,c3.Y.types.indexOf(E),0,0,c,Y)};
hn.a91=function(h,e){for(var G=0;G<h.all.length;G++){var $=h.all[G];$.Vs=$.XR.clone();$.Vs.offset(e.x,e.y)}};
hn._O=function(h,e,$,Z,c,q){var E=V.Yv?hn.a7:hn.hh;hn.a91(e,$);var P=e.type.DrSh;for(var G=0;G<P.length;
G++)if(!P[G].ajT)E(P[G],Z,c,q)};hn.K1=function(h,e,$,Z,c,q,E,P,a,j){var L=$,H=V.Yv?hn.a7:hn.hh,_=V.Yv?V.p.Il:s.p.cZ,J;
J=e.type.DrSh;for(var G=0;G<J.length;G++)if(J[G].ajT)H(J[G],Z,c,q);J=e.type.OrGl;for(var G=0;G<J.length;
G++)H(J[G],Z,c,q);var S="patternFill GrFl SoFi ChFX IrGl IrSh".split(" ");for(var N=0;N<S.length;N++){var J=e.type[S[N]];
for(var G=0;G<J.length;G++)H(J[G],E,L,q)}var Y=e.type.ebbl[0],U=Y!=null&&Y.aik;J=e.type.FrFX;for(var G=0;
G<J.length;G++){var g=J[G];dE.oK.T7(P,j,a,j,q);H(g,a,j,q);if(U&&G==J.length-1){if(Y.YA)H(Y.YA,a,j,q);
if(Y.NM)H(Y.NM,a,j,q);if(Y.pa)H(Y.pa,a,j,q);if(Y.Qg)H(Y.Qg,a,j,q)}if(g.vT||g.u$)_(a,j,E,L,V.Yv?g.u$:g.vT,g.Vs,0,q,1);
if(g.QD||g.Eb)_(a,j,Z,c,V.Yv?g.Eb:g.QD,g.Vs,0,q,1)}if(!U&&Y!=null){if(Y.YA)H(Y.YA,Z,c,q);if(Y.NM)H(Y.NM,Z,c,q);
if(Y.pa)H(Y.pa,E,L,q);if(Y.Qg)H(Y.Qg,E,L,q)}};hn.hh=function(h,e,$,Z){var c=hn.Wn();c.fill=h.H6;c.style=!0;
s.p.Jn(h.Uz,h.Hl,h.Vs,e,$,Z,1,c)};hn.a7=function(h,e,$,Z){var c=hn.Wn();c.fill=h.H6;c.style=!0;V.p.xr(h.Uz,h.VC,h.Vs,e,$,Z,1,c)};
hn.L9=function(h,e){var $=1-e.Inpr.v.val/100,Z=1+Math.tan($*(Math.PI/2)),c=h.length;for(var G=0;G<c;
G++)h[G]=Math.min(255,Math.round(h[G]*Z))};hn.QJ=function(h,e,$){var Z=e.blur.v.val,c=Math.round(Z*(e.Ckmt.v.val/100));
if(Z>c){var q=s.$e.s_(e.TrnS.v.Crv.v,256,!0);s.FS(h,q)}if($!=null&&e.Nose.v.val>0)s.style.ul(h,e.Nose.v.val/100,$)};
hn.cR=function(h,e,$){if($==null)$=255;var Z=s.Y.LX(e),c=$<<24|Z.O<<16|Z.l<<8|Z.h,q=new Uint32Array(h.buffer);
q.fill(c)};hn.IO=function(h,e,$,Z){var c=e.uglg&&e.uglg.v?$.ct():e.lagl.v.val;c=c*Math.PI/180+Z;var q=Math.cos(c)*e.Dstn.v.val,E=Math.sin(c)*e.Dstn.v.val;
h.x-=Math.round(q);h.y+=Math.round(E)};hn.tX=function(h){if(h==null)return null;var e=h.frameFXMulti.v;
if(e.length==0)return null;e=e[0].v;var $=JSON.parse(JSON.stringify(c3.oF.default));hn.pJ(e,$);return $};
hn.pJ=function(h,e){var $=c3.stroke.YS.indexOf(h.PntT.v.FrFl),Z=[c3.O7,c3.bv,c3.Tk][$],c=e.strokeStyleContent.v={classID:c3.oF.$v[$]};
for(var G=0;G<Z.length;G++)c[Z[G]]=h[Z[G]];e.strokeEnabled=h.enab;e.strokeStyleLineWidth=h.Sz;e.strokeStyleLineAlignment.v.strokeStyleLineAlignment=c3.oF.ws[c3.stroke.types.indexOf(h.Styl.v.FStl)];
e.strokeStyleOpacity=h.Opct;e.strokeStyleBlendMode=h.Md};hn.bw=function(h,e){var $=[];for(var G=0;G<h.length;
G++)$.push({t:"UntF",v:{type:"#Nne",val:Math.round(h[G]*e)}});return $};hn.Ym=function(h,e,$,Z){this.RC=e.clone();
this.aaP=e.clone();this.aaP.P5($,$);if(Z){this.RC.P5(1,1);this.th=s.m(this.RC.X());s.T7(h,e,this.th,this.RC)}else this.th=h;
this.pK=null;this.Bw=null;this.Ya=null};hn.Ym.prototype.mF=function(){return this.th};hn.Ym.prototype.rect=function(){return this.RC};
hn.Ym.prototype.lB=function(){return this.aaP};hn.Ym.prototype.i4=function(){if(this.pK)return this.pK;
this.pK=this.mF().slice(0);s.vy(this.pK);return this.pK};hn.Ym.prototype.FX=function(){if(this.Bw)return this.Bw;
this.Bw=new Float64Array(this.rect().X());s.style.S7(this.i4(),this.Bw,this.rect().d,this.rect().v);
return this.Bw};hn.Ym.prototype.g4=function(){if(this.Ya)return this.Ya;var h=this.lB(),e=s.m(h.X());
s.T7(this.mF(),this.rect(),e,h);this.Ya=new Float64Array(h.X());s.style.S7(e,this.Ya,h.d,h.v);return this.Ya};
hn.Ym.prototype.a93=function(h,e){var $={Cy:-e,kB:h,OT:null,pY:null};if(e==0){$.OT=this.rect();$.pY=this.FX();
return $}var Z=this.g4().slice(0),c=this.lB();$.OT=c;$.pY=Z;for(var G=0;G<Z.length;G++)Z[G]=-Z[G];if(h==0)return $;
var q=this.FX(),E=this.rect();for(var P=0;P<E.v;P++)for(var a=0;a<E.d;a++){var j=P*E.d+a,L=(P+E.y-c.y)*c.d+a+E.x-c.x;
Z[L]+=q[j]}return $};hn.Ym.prototype.C0=function(h,e,$){var Z=Math.ceil(h+e),c={_:this.rect().clone(),mF:null};
c._.P5(Z,Z);c.mF=s.m(c._.X());if(h==0&&e==0)s.i7($?this.mF():this.i4(),c.mF);else{var q=s.m(c._.X());
s.T7(this.mF(),this.rect(),q,c._);if(!$)s.vy(q);if(h!=0){if($)s.style.bB(q,c._,this.g4(),this.lB(),h);
else s.style.bB(q,c._,this.FX(),this.rect(),h)}if(e!=0)s.Nw.ec(q,c.mF,c._,Math.max(1,e*.43));else c.mF=q}return c};
hn.Ym.prototype.dK=function(h,e,$){var Z=h*(e-.5),c={_:this.rect().clone(),mF:null};if($)c._.P5(h,h);
c.mF=s.m(c._.X());var q=c._.d,E=c._.v,P=$?this.g4():this.FX(),a=$?this.lB():this.rect(),j=c._,L=j.jx(a),q=L.d,E=L.v,H=L.x-j.x,_=L.y-j.y,J=L.x-a.x,S=L.y-a.y,N=1-e*2;
for(var Y=0;Y<E;Y++)for(var U=0;U<q;U++){var g=P[(Y+S)*a.d+U+J],M=g/h;c.mF[(Y+_)*j.d+U+H]=Math.max(0,Math.min(255,255-255*((M+N)/(1+N))))}return c};
hn.oE=function(h,e,$){var Z=h.Lefx,c=h.blendOptions;if(Z){var q=e.add.lmfx;if($==null)$=q?q.Scl.v.val:100;
e.add.lmfx=JSON.parse(JSON.stringify(Z.v));hn.Z9(e.add.lmfx,$/e.add.lmfx.Scl.v.val);if(q)e.add.lmfx.Scl.v.val=q.Scl.v.val}else delete e.add.lmfx;
if(c){c=c.v;if(c.Md)e.oG=eN.Tj(c.Md.v.BlnM);if(c.Opct)e.opacity=Math.round(c.Opct.v.val*255/100);if(c.fillOpacity)e.add.iOpa=Math.round(c.fillOpacity.v.val*255/100);
if(c.Blnd){var E=[];for(var G=0;G<10;G++)E.push(0,0,255,255);var P=c.Blnd.v,a="SrcB Srcl SrcW Srcm DstB Dstl DstW Dstt".split(" ");
for(var G=0;G<P.length;G++){var j=P[G].v,L=8*["Gry","Rd","Grn","Bl"].indexOf(j.Chnl.v[0].v.enum);for(var H=0;
H<8;H++){E[L+H]=j[a[H]].v}}e.q8=E}}};hn.Ej=function(h){var e="SrcB Srcl SrcW Srcm DstB Dstl DstW Dstt".split(" "),$=[],Z=h.q8;
for(var G=0;G<4;G++){var c=G*8;if(Z[c]+Z[c+1]+Z[c+4]+Z[c+5]==0&&Z[c+2]+Z[c+3]+Z[c+6]+Z[c+7]==4*255)continue;
var q={t:"Objc",v:{classID:"Blnd",Chnl:{t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:["Gry","Rd","Grn","Bl"][G]}}]}}};
$.push(q);for(var E=0;E<8;E++)q.v[e[E]]={t:"long",v:Z[G*8+E]}}var P={classID:"blendOptions"};if(h.oG!="norm")P.Md={t:"enum",v:{BlnM:eN.ve(h.oG)}};
if(h.opacity!=255)P.Opct={t:"UntF",v:{type:"#Prc",val:Math.round(h.opacity*100/255)}};if(h.add.iOpa!=null)P.fillOpacity={t:"UntF",v:{type:"#Prc",val:Math.round(h.add.iOpa*100/255)}};
if($.length!=0)P.Blnd={t:"VlLs",v:$};var a={h0:{classID:"null",Idnt:{t:"TEXT",v:c9.YV()+"-bd9f-11d5-b8ba-b73f8571793d"},Nm:{t:"TEXT",v:"Custom Style"}},R_:{classID:"Styl",blendOptions:{t:"Objc",v:P}}},j=h.add.lmfx;
if(j)a.R_.Lefx={t:"Objc",v:j};return a};function cC(){}cC.OU=function(h){return JSON.parse(JSON.stringify(h))};
cC.Zn=function(h){var e=cC.OU(cC.a2D),$=e.Brsh.v;if(h!=null){delete $.Hrdn;$.classID="sampledBrush";
$.Nm={t:"TEXT",v:"layer.png"},$.sampledData={t:"TEXT",v:h}}return e};cC.a2D={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}};
cC.Em={};cC.Em.check=function(h){var e=cC.Em.Vn;for(var G=0;G<e.length;G++)if(h[e[G]]==null)h[e[G]]=JSON.parse(cC.Em.Jv[e[G]]);
var $=[];for(var G=0;G<e.length;G++)$.push(e[G]);var Z=cC.Em.qw;for(var G=0;G<Z.length;G++){var c=Z[G][0],q=Z[G][1],E=!0;
for(var P=0;P<c.length;P++)E=E&&h[c[P]].v==!0;if(E)for(var P=0;P<q.length;P++){if(h[q[P]]==null)console.log("Missing conditional parameter "+q[P]);
else $.push(q[P])}}for(var a in h)if($.indexOf(a)==-1)console.log("Extra parameter "+a);h=h.Brsh.v;e=cC.Em.oH.Vn;
for(var G=0;G<e.length;G++)if(h[e[G]]==null)h[e[G]]=JSON.parse(cC.Em.oH.Jv[e[G]]);$=[];for(var G=0;G<e.length;
G++)if(h[e[G]])$.push(e[G]);else console.log("Missing default parameter "+e[G]);Z=cC.Em.oH.al4[h.classID];
for(var G=0;G<Z.length;G++)if(h[Z[G]]==null&&Z[G]!="dtipsGridSize"&&Z[G]!="dtipsErodibleTipHeightMap"&&h.a0z!=1)console.log("Missing conditional parameter "+Z[G]);
else $.push(Z[G]);for(var a in h)if($.indexOf(a)==-1)console.log("Extra parameter "+a)};cC.Em.bb=function(h){var e=cC.Em.qw;
for(var G=0;G<e.length;G++){var $=e[G][0],Z=e[G][1],c=!0;for(var q=0;q<$.length;q++)c=c&&h[$[q]]&&h[$[q]].v==!0;
if(c){for(var q=0;q<Z.length;q++)if(h[Z[q]]==null){h[Z[q]]=JSON.parse(cC.Em.Jv[Z[q]])}}else for(var q=0;
q<Z.length;q++)if(h[Z[q]]!=null){delete h[Z[q]]}}};cC.Em.oH={};cC.Em.oH.Vn="classID Dmtr Angl Spcn Intr flipX flipY".split(" ");
cC.Em.oH.Jv={flipX:"{\"t\":\"bool\",\"v\":false}",flipY:"{\"t\":\"bool\",\"v\":false}"};cC.Em.oH.al4={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(" ")};
cC.Em.qw=[[["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"]]];
cC.Em.Vn="classID Nm Brsh useTipDynamics usePaintDynamics useColorDynamics useScatter useTexture useBrushSize useBrushPose Wtdg Nose Rpt dualBrush brushGroup".split(" ");
cC.Em.Jv={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 g_(h,e){this.ajw=h;this.uk=e==null?0:e;this.dir=0}g_.prototype.MS=function(h,e){var $=this.ajw,Z=new eu(h.x-$.x,h.y-$.y),c=new i7;
c.rotate(-this.uk);Z=c.tf(Z);if(this.dir==0&&!$.dz(h))this.dir=Math.abs(Z.x)<Math.abs(Z.y)?1:2;if(e.q(p.ai)){if(this.dir==1)Z.x=0;
if(this.dir==2)Z.y=0}c.vy();Z=c.tf(Z);var q=new eu($.x+Z.x,$.y+Z.y);return q};function ec(h,e,$,Z,c,q,E,P){this.nM=e;
this.fB=$;this.XK=q;this.py=Z;if(Z.hS==null)Z.hS=[!1,!0];this.DP=null;this.s$=null;this.Io=0;this.a1G=0;
this.a9$=0;this.RR=0;this.ZW=0;this.an2=E;this.Au=new O;this.BW=new O;this.rect=new O;if(P!=null){this.Hl=P}else{var a=ec.DY;
if(a.length!=E.X()*4)a=s.m(E.X()*4);else a.fill(0);this.Hl=ec.DY=a}this.rect=E.clone();this.yt=[];this.yk=[];
this.X_=null;this.oV=0;this.O=null;this.kJ="";this.Ez=null;this.O0(h,c)}ec.DY=s.m(16);ec.prototype.O0=function(h,e){this.oV=e;
this.O=h;this.kJ=JSON.stringify(h)+JSON.stringify(this.py.Xq);this.Ez=ec.akz(h,this.nM,this.fB)};ec.prototype.moveTo=function(h,e,$){$=this.bL($);
this.Io=$;var Z=new eu(h,e),c=this.O.Brsh.v.Dmtr.v.val;this.DP=Z.clone();this.s$=Z.clone();this.X_=Z.clone();
this.yt=[h,e];this.yk=[$];var q=this.py.hS;if(this.py.o_!=ec.Eh)this.S6(this.pv(Z,this.wQ()*(q[1]?$:1),this.py.lV*(q[0]?$*.5:1),new eu(0,0)));
this.RR=Z.clone()};ec.prototype.lineTo=function(h,e,$){$=this.bL($);var Z=this.yt,c=Z.length,q=Z[c-2],E=Z[c-1];
if(h==q&&e==E)return;var P=this.O.Brsh.v.Dmtr.v.val,a=Math.ceil(P)+1,j=new O(Math.round(q),Math.round(E),0,0);
j.P5(a,a);var L=new O(Math.round(h),Math.round(e),0,0);L.P5(a,a);this.MF(j.iJ(L));this.yt.push(h,e);
this.yk.push($);c+=2;if(c>=6)this.S6(this.mi(c))};ec.prototype.bL=function(h){if(h==null)h=1;h=Math.max(.05,Math.min(5,h));
if(isNaN(h)){alert("Pressure is not a number");throw"e"}return h};ec.prototype.S6=function(h){this.Au=h;
this.BW=this.BW.iJ(h)};ec.prototype.finish=function(){var h=this.yt,e=h.length,$;if(e==4)$=this.ju(h[e-2],h[e-1],this.yk[(e>>1)-1],!0);
if(e>4)$=this.mi(e+2);if($)this.S6($)};ec.prototype.mi=function(h){var e=this.yt,$=this.yk,Z=e[h-6],c=e[h-5],q=e[h-4],E=e[h-3],P=$[(h>>1)-3],a=$[(h>>1)-2],j=new eu(0,0),L=new eu(0,0);
if(8<=h)j=ec.Hc(e[h-8],e[h-7],Z,c,q,E);if(h<=e.length)L=ec.Hc(e[h-2],e[h-1],q,E,Z,c);var H=Z+j.x,_=c+j.y,J=q+L.x,S=E+L.y,N=new O;
for(var G=0;G<10;G++){var Y=(G+1)*.1,U=1-Y,g=U*U*U*Z+3*Y*U*U*H+3*Y*Y*U*J+Y*Y*Y*q,M=U*U*U*c+3*Y*U*U*_+3*Y*Y*U*S+Y*Y*Y*E,C=this.ju(g,M,P+Y*(a-P));
N=N.iJ(C)}return N};ec.Hc=function(h,e,$,Z,c,q){var E=h-$,P=e-Z,a=c-$,j=q-Z,L=Math.sqrt(E*E+P*P),H=Math.sqrt(a*a+j*j),_=Math.acos((E*a+P*j)/(L*H))/Math.PI,J=.35,S=.1;
_=S+_*(J-S);var N=c-h,Y=q-e,U=Math.sqrt(N*N+Y*Y),g=_*H/U;return new eu(N*g,Y*g)};ec.prototype.ju=function(h,e,$,Z){var c=new O,q=this.py.a8q;
if(q==null)q=0;if(q==0||Z){c=this.oh(h,e,$);return c}var E=this.X_,P=h-E.x,a=e-E.y,j=Math.sqrt(P*P+a*a);
P/=j;a/=j;if(j>q){var L=E.x+P*(j-q),H=E.y+a*(j-q);c=this.oh(L,H,$);this.X_.su(L,H)}return c};ec.prototype.oh=function(h,e,$){var Z=new O,c=new eu(h,e),q=this.O.Brsh.v.Dmtr.v.val,E=this.py.o_,P=c.MR(this.s$);
P.normalize(1);var a=eu.nj(this.s$,c),j=-this.a1G,L=this.s$.clone(),H=this.py.hS;while(!0){var _=this.Io+($-this.Io)*(Math.max(0,j)/a),J=this.wQ()*(H[1]?_:1),S=this.aaT()*(J+this.a9$)/2;
if(E==ec.Eh)S=1;if(j+S<a){j+=S;var N=new eu(this.s$.x+P.x*j,this.s$.y+P.y*j),g=1;if(E==ec.Eh){var Y=L.clone();
Y.x+=P.x>0?1:-1;var U=L.clone();U.y+=P.y>0?1:-1;if(eu.nj(Y,N)<eu.nj(U,N))N=Y;else N=U;j=eu.nj(N,this.s$)}if(this.O.useScatter.v==!0){g=this.O.Cnt.v;
var M=this.O.countDynamics.v.jitter.v.val/100,C=M*(-1+2*this.Dg());g+=Math.round(g*C)}for(var G=0;G<g;
G++){var y=this.pv(N,J,this.py.lV*(H[0]?_*.5:1),P);Z=Z.iJ(y)}L=N}else break}this.a1G=a-j;this.s$=c;this.Io=$;
return Z};ec.prototype.aaT=function(){var h=this.O.Brsh.v,e=h.Spcn.v.val,$=Math.max(5,h.Rndn.v.val);
return $/100*(e/100)};ec.prototype.wQ=function(){var h=this.O,e=h.Brsh.v.Dmtr.v.val;if(h.useTipDynamics.v){var $=e*(h.minimumDiameter.v.val/100);
e=$+(e-$)*(1-this.Dg()*(h.szVr.v.jitter.v.val/100))}return e};ec.prototype.pv=function(h,e,$,Z){$=Math.min(1,$);
var c=this.O,q=this.O.Brsh.v,E=q.Dmtr.v.val,P=this.py,a=P.o_,j=P.akt,L=new i7;L.translate(-this.Ez.fb.d/2,-this.Ez.fb.v/2);
L.scale(1/this.Ez.acd,1/this.Ez.acd);L.scale(e/E,e/E);L.scale(1,Math.max(5,q.Rndn.v.val)/100);if(c.useTipDynamics.v){var H=c.minimumRoundness.v.val/100;
L.scale(1,H+(1-H)*Math.round(100-this.Dg()*c.roundnessDynamics.v.jitter.v.val)/100);L.rotate((-.5+this.Dg())*4*Math.PI*(c.angleDynamics.v.jitter.v.val/100))}L.rotate(q.Angl.v.val*(Math.PI/180));
if(c.useScatter.v){var _=(-1+2*this.Dg())*c.scatterDynamics.v.jitter.v.val/100;L.translate(-_*e*Z.y,_*e*Z.x)}L.translate(h.x,h.y);
var J=this.amv(L,h);this.MF(J.rect);var S=J.rect.clone();if(a==null){var N=this.LX(c);s.Ut(J.P1,Math.round(N.O*255)<<16|Math.round(N.l*255)<<8|Math.round(N.h*255)<<0,4278190080);
if(this.BW.nK()&&this.rect.dz(J.rect)&&$==1)this.Hl=J.P1.slice(0);else s.p.aa6(J.P1,J.rect,this.Hl,this.rect,J.rect,$)}if(a==ec.Eh){var Y=new eu(J.rect.x+J.rect.d/2,J.rect.y+J.rect.v/2),U=Math.round(Y.x-this.RR.x),g=Math.round(Y.y-this.RR.y),M=J.rect.clone();
M.offset(-U,-g);var C=M.jx(this.rect);C.offset(U,g);s.hX(this.Hl,this.rect,J.P1,M);s.p.QO(J.P1,J.rect,this.Hl,this.rect,J.C7,J.rect,$)}if(a==ec.Uq||a==ec.Fh||a==ec.Dj){var y=J.rect.jx(this.rect),i;
if(y.dz(J.rect))i=J.C7;else{i=s.m(y.X());s.T7(J.C7,J.rect,i,y)}var Q=s.m(y.X()*4);s.hX(this.Hl,this.rect,Q,y);
if(a==ec.Fh){var m=Q.slice(0),n=s.V4.er([-1,-1,-1,-1,25,-1,-1,-1,-1]);s.V4.mz(Q,m,y.d,y.v,n,0);s.i7(m,Q)}else if(a==ec.Dj){var u=dA.X3("UnsM");
u.Amnt.v.val=15;u.Thsh.v=0;u.Rds.v.val=5;var m=s.m(Q.length);dA.Vv("UnsM",{buffer:Q,rect:y},u,0,0,{buffer:m,rect:y});
s.i7(m,Q)}else{dA.cu(1,s.Nw.aH,Q,y)}s.p.QO(Q,y,this.Hl,this.rect,i,y,$)}this.a9$=e;this.RR=Y;return S};
ec.prototype.LX=function(h){var e=ec.vb(this.oV);if(h.useColorDynamics&&h.useColorDynamics.v){var $=1-this.Dg()*h.clVr.v.jitter.v.val/100,Z=ec.vb(this.XK);
e.h=$*e.h+(1-$)*Z.h;e.l=$*e.l+(1-$)*Z.l;e.O=$*e.O+(1-$)*Z.O;var c=(-.5+this.Dg())*h.H.v.val/100,q=(-1+2*this.Dg())*h.Strt.v.val/100,E=(-1+2*this.Dg())*h.Brgh.v.val/100,P=s.TC(e.h,e.l,e.O);
P.CD=(P.CD+c+1)%1;P.Zp=P.Zp+q;if(P.Zp<0)P.Zp=-P.Zp;if(P.Zp>1)P.Zp=1-(P.Zp-1);P.o8=P.o8+E;if(P.o8<0)P.o8=-P.o8;
if(P.o8>1)P.o8=1-(P.o8-1);e=s.g7(P.CD,P.Zp,P.o8)}return e};ec.prototype.Em=function(h){return Math.max(0,Math.min(1,h))};
ec.prototype.Dg=function(){this.ZW++;return ec.hash(this.ZW)};ec.vb=function(h){return{h:(h>>16&255)/255,l:(h>>8&255)/255,O:(h>>0&255)/255}};
ec.hash=function(h){h=h^61^h>>16;h=h+(h<<3);h=h^h>>4;h=h*668265261;h=h^h>>15;return(h&16777215)/16777215};
ec.J4=[];ec.afC=function(h,t){var e=h.rD(),$=t.rD();if(e<$){var Z=e;e=$;$=Z}var c=h.R-t.R,q=h.O-t.O,E=h.Ma-t.Ma,P=h.rU-t.rU;
return $!=0&&e-$<.025&&Math.max(c*c,q*q,E*E,P*P)<=.01};ec.prototype.amv=function(h,e){var $=null,q;for(var G=0;
G<ec.J4.length;G++)if(ec.J4[G].kJ==this.kJ){$=ec.J4[G];ec.J4.splice(G,1)}if($==null)$={G_:[],kJ:this.kJ,TT:0,X:0};
var Z=$.G_,c=this.py.Xq;if(c){h=h.clone();h.zq=Math.floor(h.zq);h.nL=Math.floor(h.nL)}var E=ec.ZF(h.zq,h.nL);
for(var G=0;G<Z.length;G++){var P=Z[G];if(!ec.afC(P.zC,h))continue;if(ec.aou(P.t6,E)<.2||P.rect.X()>2500){q=P;
break}}var a=Math.round(this.O.Brsh.v.Dmtr.v.val);if(q){q.rect.x=Math.round(q.Y$.x-q.zC.zq+h.zq);q.rect.y=Math.round(q.Y$.y-q.zC.nL+h.nL);
if(c){q.rect.x=Math.round(e.x-q.rect.d/2);q.rect.y=Math.round(e.y-q.rect.v/2)}q.TT=Date.now()}else{var j;
if(c&&a<=3){j={buffer:s.m(a*a*4),rect:new O(Math.round(e.x-a/2),Math.round(e.y-a/2),a,a)};s.Ut(j.buffer,4278190080)}else if(h.R==1&&h.O==0&&h.Ma==0&&h.rU==1){j={buffer:this.Ez.P1,rect:this.Ez.fb.clone()};
j.rect.x=Math.round(h.zq);j.rect.y=Math.round(h.nL)}else j=f.o.D8([this.Ez.P1,this.Ez.fb],h);if(c){for(var G=0;
G<j.buffer.length;G++)j.buffer[G]=j.buffer[G]>127?255:0}if(j==null)j={buffer:s.m(0),rect:new O};var L=h.zq-Math.floor(h.zq),H=h.nL-Math.floor(h.nL);
q={P1:j.buffer,C7:s.m(j.rect.X()),rect:j.rect,Y$:j.rect.clone(),zC:h,t6:ec.ZF(h.zq,h.nL),TT:Date.now()};
s.z0(q.P1,q.C7,3);Z.push(q);$.X+=j.rect.X();if(Z.length>2e3||$.X>100*100*400){console.log("pruning",$.X,Z.length);
Z.sort(function(J,S){return S.TT-J.TT});while(Z.length>1e3||$.X>100*100*200){var _=Z.pop();$.X-=_.rect.X()}}}$.G_=Z;
$.TT=Date.now();ec.J4.push($);ec.J4.sort(function(J,S){return S.TT-J.TT});while(ec.J4.length>3)ec.J4.pop();
return q};ec.ZF=function(h,e){return new eu(h-Math.floor(h),e-Math.floor(e))};ec.aou=function(h,e){var $=e.x,Z=e.y,c=Math.abs($-h.x),q=Math.abs(Z-h.y);
if(Math.abs($-1-h.x)<c)$--;else if(Math.abs($+1-h.x)<c)$++;if(Math.abs(Z-1-h.y)<q)Z--;else if(Math.abs(Z+1-h.y)<q)Z++;
c=h.x-$;q=h.y-Z;return Math.sqrt(c*c+q*q)};ec.prototype.MF=function(h){};ec.akz=function(h,e,$){var Z,c,q,E=h.Brsh.v.Dmtr.v.val;
if(h.Brsh.v.classID=="computedBrush"){var P=h.Brsh.v.Hrdn.v.val/100,a=1+.55*(1-P);q=E<100?1.2:1;var j=Math.round(q*E*a);
c=new O(0,0,j,j);Z=s.m(j*j*4);var L=new Uint32Array(Z.buffer),H=j/2,_=a/H,J=Date.now(),S=ec.kz(P),N=Math.round(8e3/H),e=S[0],Y=S[1]-N,U=S[2]+N,g=Math.min(j,(j>>>1)+1);
for(var G=0;G<g;G++){var M=_*(G-H+.25);M*=M;var C=_*(G-H+.75);C*=C;var y=G*j,i=(j-1-G)*j;for(var Q=0;
Q<g;Q++){var m=_*(Q-H+.25),n=Math.floor(Math.sqrt(m*m+M)*(4e3/1.55));if(U<n)continue;else if(n<Y){var u=4278190080;
while(Q<g){var K=j-1-Q;L[y+Q]=u;L[y+K]=u;L[i+Q]=u;L[i+K]=u;Q++}break}else{var F=_*(Q-H+.75),b=Math.floor(Math.sqrt(F*F+M)*(4e3/1.55)),d=Math.floor(Math.sqrt(m*m+C)*(4e3/1.55)),W=Math.floor(Math.sqrt(F*F+C)*(4e3/1.55)),u=~~(.5+255*.25*(e[n]+e[b]+e[d]+e[W]))<<24,K=j-1-Q;
L[y+Q]=u;L[y+K]=u;L[i+Q]=u;L[i+K]=u}}}}if(h.Brsh.v.classID=="sampledBrush"){var A;for(var G=0;G<e.length;
G++)if(e[G].id==h.Brsh.v.sampledData.v)A=e[G];c=new O(0,0,A._.d,A._.v);q=Math.max(c.d,c.v)/E;Z=s.m(c.X()*4);
s.Jk(A.channel,Z,3)}while(Math.min(c.d,c.v)>E*2){var z=new O(c.x,c.y,Math.floor(c.d/2),Math.floor(c.v/2)),T=f.o.D8([Z,c],new i7(z.d/c.d,0,0,z.v/c.v,0,0));
q*=z.d/c.d;c=T.rect;Z=T.buffer}return{acd:q,fb:c,P1:Z}};ec.Gt=[];ec.kz=function(h){if(ec.Gt[h])return ec.Gt[h];
var e=Math.pow(h,.55),$=new Float64Array(8e3),Z=0,c=8e3;for(var G=0;G<8e3;G++){var q=ec.ajr(G*(1.55/4e3),e);
if(q>=1)Z=G;else if(q<=0&&c==8e3)c=G;$[G]=q}var E=[$,Z,c];ec.Gt[h]=E;return E};ec.ajr=function(h,e){var $=h<e?1:ec.an4((h-e)/Math.pow(1.001-e,.86));
return $};ec.an4=function(h){var e=h*.85;return Math.exp(-(e*e)*(1/(2*.4*.4)))*(1/(.4*Math.sqrt(2*Math.PI)))};
ec.prototype._A=function(){return this.rect.clone()};ec.prototype.vX=function(){return this.Au.jx(this.rect)};
ec.prototype.bJ=function(){return this.BW.jx(this.rect)};ec.prototype.os=function(){return this.Hl};
ec.p$=null;ec.s0=null;ec.TD=function(h,e,$,Z,c,q){var E=ec.p$,P=ec.s0;if(E==null){ec.p$=E=D.w("canvas","");
ec.s0=P=E.getContext("2d")}if(q==null)q=Z;if(E.width!=q||E.height!=c){E.width=q;E.height=c}else P.clearRect(0,0,q,c);
P.fillStyle="#000000";P.font=Math.floor(10*D.M())+"px sans-serif";var a=h.Brsh.v.Dmtr.v.val,j=""+a,L=P.measureText(j);
P.fillText(j,(Z-L.width)/2,c-2);var H=Z,_=c-10*D.M(),J=Math.min(H,_),S=h.Brsh.v.classID;if(S=="computedBrush"){P.translate(H/2,_/2);
P.rotate(-h.Brsh.v.Angl.v.val*Math.PI/180);P.scale(1,.1+.9*h.Brsh.v.Rndn.v.val/100);var N=Math.min(.95*J/2,a/2)+.5,Y=.9*h.Brsh.v.Hrdn.v.val/100,U=P.createRadialGradient(0,0,0,0,0,N);
U.addColorStop(Y,"rgba(0,0,0,1)");U.addColorStop((.5+Y)/1.5,"rgba(0,0,0,.5)");U.addColorStop(1,"rgba(0,0,0,0)");
P.fillStyle=U;P.fillRect(-N,-N,2*N,2*N);P.setTransform(1,0,0,1,0,0)}else if(S=="sampledBrush"){var g,Q=0;
for(var G=0;G<e.length;G++)if(e[G].id==h.Brsh.v.sampledData.v)g=e[G];var M=g.aaB;if(M==null){M=g.aaB=[g.channel,g._];
s.oN(M)}var C=g.channel,y=g._.d,i=g._.v;while((y>H||i>_)&&M[Q+2]){Q+=2;C=M[Q];y=M[Q+1].d;i=M[Q+1].v}if(y*i!=0){var m=s.m(y*i*4);
s.Jk(C,m,3);var n=new ImageData(new Uint8ClampedArray(m.buffer),y,i);P.putImageData(n,Math.round((H-y)/2),Math.round((_-i)/2))}}else{}return E.toDataURL()};
ec.MO=function(h,e,$,Z){if($==0)$=1;var c=h.Brsh.v,q=c.Dmtr.v.val,E=c.Dmtr.v.val=Math.min(Z!=null?Math.round(Z*2.6):3e3,q*$),P=c.Hrdn?c.Hrdn.v.val/100:1,a=Z!=null?Z:Math.round(E*(1+.55*(1-P)))+4,H;
a=Math.max(15,Math.min(a,3e3));var j=new O(0,0,a,a),L=new ec(h,e,null,{lV:1},16711712,0,j);c.Dmtr.v.val=q;
L.moveTo(j.d/2,j.v/2);var _=L.os(),J=L._A();if(j.dz(J))H=_;else{H=s.m(j.X()*4);s.hX(_,J,H,j)}return[H,j,E]};
ec.b1=function(h,e,$,Z){var c=ec.MO(h,e,$),q=c[0].slice(0),E=c[1],P=c[2],a=E.X(),j=s.m(a);s.z0(q,j,3);
var L=s.m(a);s.N.an_(j,L,E);if(P<3||s.w_(L,0)||Z&&P>12){var H=E.d,_=H>>>1,J=L,S=255;for(var G=0;G<4;
G++){J[H*(_-6+G)+_]=S;J[H*_+_-6+G]=S;J[H*_+_+6-G]=S;J[H*(_+6-G)+_]=S}}var N=[1,2,1,2,8,2,1,2,1];N=s.V4.er(N);
s.V4.ud(L,j,E.d,E.v,N);s.Ut(q,4294967295);s.Jk(j,q,3);for(var G=0;G<a;G++)if(L[G]==255){q[G<<2]=q[(G<<2)+1]=q[(G<<2)+2]=0;
q[(G<<2)+3]=255}return{bj:q,_:E,yE:new eu(E.d/2,E.v/2)}};ec.Eh="0";ec.Uq="1";ec.Fh="2";ec.Dj="3";var cg={};
cg.Fx=function(h,e){var $=h.ZO(),a;if($.x==Infinity||$.nK())return{Hl:s.m(0),_:new O,_P:new O};var Z=h.ZO(),c=cg.VL(h,e),q=s.a.pl(c.H);
if(q.nK())return{Hl:s.m(0),_:new O,_P:new O};var E=D.w("canvas","");E.width=q.d;E.height=q.v;var P=E.getContext("2d");
P.translate(-q.x,-q.y);cg.a2P(c,P);if(h.By.length!=0){var j=gK.vk(e),L=P.getImageData(0,0,q.d,q.v);a=new Uint8Array(L.data.buffer);
if(j==0)for(var G=0;G<a.length;G+=4)a[G+3]=a[G+3]>80?255:0;if(j==3)for(var G=0;G<a.length;G+=4)a[G+3]=Math.min(255,a[G+3]*1.5)}else a=s.m(q.X()*4);
return{Hl:a,_:q,_P:Z}};cg.VL=function(h,e){var $={Z:[],H:[]},Z=e.J,c=gK.vk(e),q=Math.max(Z.O*Z.O,Z.Ma*Z.Ma)<1e-9?Z:null;
if(c==3||c==4)q=null;cg.af_(h,$,q);if(!s.FO.en(e.$F)){var E=s.a.Be($.H);$=s.a.sz($);$=s.a.zb($,Math.min(E.d,E.v)/8);
var P=gK._A(e,h),a=s.FO.a8(e.$F,P);s.nS.apply(a,$.H,P)}s.a.J($.H,Z,$.H);return $};cg.a2P=function(h,e){Typr.U.pathToContext({crds:h.H,cmds:h.Z},e)};
cg.BF=function(h,e){if(!br.GU())return;var $=h.Kx,Z=$.ResourceDict.FontSet,c=$.ResourceDict.StyleSheetSet[0].StyleSheetData,q=$.EngineDict.StyleRun.RunLengthArray,E=$.EngineDict.StyleRun.RunArray,P=gK.N8($),a=!0,j={},L=0;
for(var G=0;G<E.length;G++){var H=E[G].StyleSheet.StyleSheetData.Font;if(H==null)H=c.Font;for(var _=0;
_<q[G];_++){var J=P.charCodeAt(L+_),S=H+","+(J>128?J:-1);if(j[S]==null){j[S]=1;if(e.bE(Z[H].Name,J)==null)a=!1}}L+=q[G]}return a};
cg.af_=function(h,e,$){var Z=new i7;for(var G=0;G<h.Bp.length;G++)cg.a8y(h.By,h.Bp[G],e,Z,$)};cg.a8y=function(h,e,$,Z,c){Z.translate(e.t6.x,e.t6.y);
for(var G=0;G<e.KF.length;G++){var q={},E=e.KF[G];if(!E.aE)break;var P=Z.clone();P.translate(E.t6.x,E.t6.y);
if(c){var a=c.nL+P.nL*c.rU;P.nL=(Math.round(a)-c.nL)/c.rU}for(var j=E.start;j<E.end;j++)cg.akc(h,e.dt[j],e,q,$,P)}Z.translate(-e.t6.x,-e.t6.y)};
cg.agl="()<>[]{}\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";
cg.akc=function(h,e,$,Z,c,q){q.translate(e.t6.x,e.t6.y);for(var E=e.VH;E<=e.xq;E++){var P=$.RK[E],a=P._.d,j=h[$.aan+P.tb];
if(j.wL=="\n")continue;var L=j.Tz.FontSize/j.na.head.unitsPerEm,H=gK.LX(j.Tz),_=(Math.round(H.h)<<16)+(Math.round(H.l)<<8)+Math.round(H.O);
c.Z.push("#"+s.jT(_));var J=q.clone();J.translate(P.t6.x+P.B8*L,P.t6.y-P.Nm*L);var S=new i7;S.scale(L,-L);
if(j.BC==1&&cg.agl.indexOf(j.wL)!=-1)S.concat(new i7(-1,0,0,1,a,0));if(j.Tz.FauxItalic)S.concat(new i7(1,0,-Math.tan(.18),1,0,0));
S.translate(0,j.gR);S.scale(j.scale.x,j.scale.y);if(j.Tz.BaselineShift!=null)S.translate(0,-j.Tz.BaselineShift);
if(P.uk!=0){S.rotate(-P.uk)}S.concat(J);if(P.path.Z.length!=0&&j.wL!="\t"){if(j.Tz.FauxBold){var N=j.Tz.FontSize/2048*27*j.scale.x;
S.zq+=N;s.a.concat(c,P.path,S);S.zq-=N+N;s.a.concat(c,P.path,S)}else s.a.concat(c,P.path,S)}if(j.wL!="\n"){if(j.Tz.Underline){if(Z.OI==null)Z.OI=j.na.post.underlineThickness;
if(Z.a7G==null)Z.a7G=j.na.post.underlinePosition;var Y=0,U=Z.a7G-Z.OI/2,g=P.aS*1.05,M=-Z.OI;s.a.concat(c,{Z:["M","L","L","L","Z"],H:[Y,U,Y+g,U,Y+g,U+M,Y,U+M]},S)}if(j.Tz.Strikethrough){var C=j.na["OS/2"].yStrikeoutSize,y=j.na["OS/2"].yStrikeoutPosition,Y=0,U=y+C/2,g=P.aS*1.05,M=-C;
s.a.concat(c,{Z:["M","L","L","L","Z"],H:[Y,U,Y+g,U,Y+g,U+M,Y,U+M]},S)}}c.Z.push("X")}q.translate(-e.t6.x,-e.t6.y)};
function br(h,e){var $=gK.De(h),Z,c,q=gK.r1(h),a;if(h.Curve)c=br.DJ(h.Curve);if($!=0){Z=new O(q[0],q[1],q[2],q[3]);
if($==2){Z.d=c[5]-c[4];Z.v=9999}}this.Bp=[];this.By=[];this.wx=$;var E=this.a2X=gK.N8(h),P=-1;for(var G=0;
G<E.length;G++){var j=a,L=gK.QW(h,G);if(L!=P){P=L;j=a=gK.a9o(h,G)}var H={wL:E.charAt(G),Tz:j,na:null,Yk:-1,gR:0,scale:new eu(0,0),RP:0,lineHeight:0,BC:0},_=h.ResourceDict.FontSet[j.Font].Name,J=H.na=e.bE(_,E.charCodeAt(G));
H.scale.x=j.HorizontalScale==null?1:j.HorizontalScale;H.scale.y=j.VerticalScale==null?1:j.VerticalScale;
var S=J["OS/2"],N=J.hhea;if(j.FontCaps==1&&H.wL!=H.wL.toUpperCase()){var Y=S.sxHeight?S.sxHeight/S.sTypoAscender:.76;
H.scale.x*=Y;H.scale.y*=Y}var U=1/J.head.unitsPerEm*j.FontSize;if(j.FontBaseline==1){var Y=h.ResourceDict.SuperscriptSize;
H.scale.x*=Y;H.scale.y*=Y;H.gR-=h.ResourceDict.SuperscriptPosition*j.FontSize}if(j.FontBaseline==2){var Y=h.ResourceDict.SubscriptSize;
H.scale.x*=Y;H.scale.y*=Y;H.gR+=h.ResourceDict.SubscriptPosition*j.FontSize}var g=br.RP(J,_);H.RP=g*U;
H.lineHeight=j.FontSize*1.2;if(j.AutoLeading==!1)H.lineHeight=j.Leading;if(H.lineHeight==0)H.lineHeight=.001;
this.By.push(H)}var M=this.Bp,C=[0];for(var G=0;G<h.EngineDict.ParagraphRun.RunLengthArray.length;G++){var y=new br.un(h,e,this.By,G,Z,C,$==1?c:null);
M.push(y)}if($==2){var i=h.Curve.Points,Q=c[0],m=c[1],n=c[2],u=c[3],K=c[4],F=c[5];for(var G=0;G<M.length;
G++)for(var b=0;b<M[G].KF.length;b++)if(!(G==0&&b==0))M[G].KF[b].aE=!1;var y=M[0],d=y.KF[0];y.t6.su(0,0);
d.t6.su(0,0);for(var b=d.start;b<d.end;b++){var W=y.dt[b],A=W.t6.x;W.t6.x=0;for(var z=W.VH;z<=W.xq;z++){var T=y.RK[z],R=T._.d/2;
T.t6.x+=A;var I=br.afW(Q,(K+T.t6.x+R)%u);T.t6.x=I[0]-R*I[2];T.t6.y=I[1]-R*I[3];T.uk=Math.atan2(I[3],I[2])}}}}br.RP=function(h,e){var $=h["OS/2"],Z=h.hhea,c=0,c=0,q=[];
q.push($&&$.sxHeight&&e.toLowerCase().indexOf("capitals")!=-1?$.sxHeight:0);q.push($&&$.sCapHeight?$.sCapHeight:0);
q.push($&&$.sTypoAscender?$.sTypoAscender:0);q.push(Z.ascender?Z.ascender:0);for(var E=0;E<q.length;
E++)if(q[E]!=0){c=q[E];break}return c};br.prototype.ana=function(){return!this.Lo(0)};br.prototype.abW=function(){return this.Lo(1)};
br.prototype.Lo=function(h){var e=this.Bp,$=!0,Z=0;for(var G=0;G<e.length;G++){var c=e[G].KF,q=c.length;
Z+=q;for(var E=0;E<q;E++)$&=c[E].aE}return[$,Z][h]};br.DJ=function(h){var e=h.Points,$=e.length,Z=$>>>3,c=h.TextOnPathTRange,q=h.Reversed,L=0,H=0;
if(q){var E=e.slice(0);for(var G=0;G<$;G+=2){E[G]=e[$-2-G];E[G+1]=e[$-1-G]}e=E;c=[Z-c[1]%Z,Z-c[0]%Z]}var P=[],a=[0],j=[0];
for(var G=0;G<$;G+=8){var _=e[G+6]-e[G+0],J=e[G+7]-e[G+1],S=Math.round(4*Math.sqrt(_*_+J*J));for(var N=0;
N<S;N++){var Y=N/S,U=1-Y,g=U*U*U*e[G+0]+3*U*U*Y*e[G+2]+3*U*Y*Y*e[G+4]+Y*Y*Y*e[G+6],M=U*U*U*e[G+1]+3*U*U*Y*e[G+3]+3*U*Y*Y*e[G+5]+Y*Y*Y*e[G+7];
P.push(g,M);if(G+N!=0){var _=g-L,J=M-H;j.push(j[j.length-1]+Math.sqrt(_*_+J*J));a.push((G>>>3)+Y)}L=g;
H=M}}var C=j.length,y=j[C-1],i=br.uL(c[0],a),Q=br.uL(c[1]%Z,a),m=j[i%C],n=j[Q%C];if(m>=n)n+=y;return[P,a,j,y,m,n]};
br.uL=function(h,e){var G=0;while(e[G]<h)G++;return G};br.afW=function(h,e){var $=0,G=0,Z,c,q;while($<e){Z=h[G+2]-h[G];
c=h[G+3]-h[G+1];q=Math.sqrt(Z*Z+c*c);$+=q;G+=2}return[h[G],h[G+1],Z/q,c/q]};br.prototype.agA=function(h){return this.By[h]};
br.prototype.a2Y=function(h){for(var e=0;e<this.Bp.length;e++){var $=this.Bp[e];for(var Z=0;Z<$.KF.length;
Z++){var c=$.KF[Z],q=$.dt[c.start].start,E=$.dt[c.end-1].end;if(q<h&&h<E)return[q,E-1]}}return[0,1]};
br.prototype.j2=function(h,e){var $=-1,Z=this.Bp;if(this.wx==2){var c=1e9,q=0,E=Z[0],P=E.KF[0];for(var a=P.start;
a<P.end;a++){var j=E.dt[a];for(var L=j.VH;L<=j.xq;L++){var H=E.RK[L],_=H._.d,J=h.x-H.t6.x,S=h.y-H.t6.y,N=J*J+S*S;
if(N<c){c=N;q=H.tb}}}if(q!=0&&this.a2X.codePointAt(q-1)>65535)q--;return q}for(var Y=0;Y<Z.length;Y++){var E=Z[Y];
for(var U=0;U<E.KF.length;U++){$++;var P=E.KF[U],g=E.KF[U+1];if(g==null&&Y<Z.length-1)g=Z[Y+1].KF[0];
if(e!=null){if($!=e)continue}else{if(g!=null&&E.t6.y+P.t6.y<h.y)continue}for(var a=P.start;a<P.end;a++){var j=E.dt[a];
for(var L=j.VH;L<=j.xq;L++){var H=E.RK[L],_=H._.d,M=E.t6.x+P.t6.x+j.t6.x,C=M+H.t6.x,y=M+(L<j.xq?E.RK[L+1].t6.x:H.t6.x+_);
if(h.x<=y||a+1==P.end&&L==j.xq){var i=E.aan+H.tb,Q=this.By[i],m=Q.BC&1;if(Q.wL!="\n"&&(m==0&&h.x>C+_/2||m==1&&h.x<C+_/2))i+=this.a2X.codePointAt(i)>65535?2:1;
return i}}}}}};br.prototype.e_=function(h){var e={_:new O,vv:0},$=0;for(var Z=0;Z<this.Bp.length;Z++){var c=this.Bp[Z];
for(var q=0;q<c.KF.length;q++){var E=c.KF[q];e.vv=$;$++;for(var P=E.start;P<E.end;P++){var a=c.dt[P];
for(var j=a.start;j<a.end;j++){if(j==h){var L=this.By[j],H=L.Yk,_=c.RK[H].tb,J=1;while(c.RK[H]!=null&&c.RK[H].tb==_){var S=c.RK[H],N=c.t6.x+E.t6.x+a.t6.x+S.t6.x,Y=c.t6.y+E.t6.y+a.t6.y+S.t6.y;
e._=e._.iJ(new O(N,Y-L.lineHeight,S._.d,L.lineHeight));e.uk=S.uk;H+=J}return e}}}}}};br.prototype.ZO=function(){var h=Infinity,e=Infinity,$=-Infinity,Z=-Infinity;
for(var G=0;G<this.Bp.length;G++){var c=this.Bp[G];for(var q=0;q<c.KF.length;q++){var E=c.KF[q];if(!E.aE)break;
for(var P=E.start;P<E.end;P++){var a=c.dt[P];for(var j=a.VH;j<=a.xq;j++){var L=c.RK[j],H=L._,_=c.t6.x+E.t6.x+a.t6.x+L.t6.x,J=c.t6.y+E.t6.y+a.t6.y+L.t6.y;
h=Math.min(h,_+H.x);e=Math.min(e,J+H.y);$=Math.max($,_+H.x+H.d);Z=Math.max(Z,J+H.y+H.v)}}}}return new O(h,e,$-h,Z-e)};
br.Uh=function(h){return 19968<=h&&h<=40959||12288<=h&&h<=12543};br.a2h=function(h,e,$,Z,c,q,E){var P=[q],a=0;
for(var G=q;G<E;G++){if($[G]==null)console.log(G,q,E,$);var j=$[G].wL,L=j.charCodeAt(0);if(L==32||L==9){P.push(a,G,1,G+1);
a=0}else if(L==3851){P.push(a+1,G+1);a=0}else if(br.Uh(L)){P.push(a,G);a=1}else if(G!=q&&$[G].BC!=$[G-1].BC){P.push(a,G);
a=1}else a++}P.push(a);var H=[];for(var G=0;G<P.length;G+=2){var _=P[G],J=P[G+1];if(J==0)continue;H.push(new br.aoo(h,e,$,Z,c,_,J))}return H};
br.ah4=function(h,e,$,Z,c,q,E){var P=[0,e?e.d:1e9],a=[];if(Z){var j=h[q].RP,L=c+(c==0?j:h[q].lineHeight),H=L-j*.9,_=s.a.XZ(Z[0],H),J=_.length,S=s.a.XZ(Z[0],L),N=S.length;
if(J!=0&&N!=0){var Y=0,U=0;P=[];while(Y<J&&U<N){var g=Math.max(_[Y],S[U]),M=_[Y+1],C=S[U+1],y=Math.min(M,C);
if(g<y)P.push(g,y);if(M<C)Y+=2;else U+=2}}}for(var i=0;i<P.length;i+=2){var Q=P[i+1]-P[i],m=0,n=q,u=e?Q-$.StartIndent-$.EndIndent-(q==0?$.FirstLineIndent:0):Infinity;
while(q!=h.length){var K=h[q],F=m==0||(K.T8||K._b)||m+K._.d<u;if(!F)break;m+=K._.d;q++}a.push(q-n)}E[0]=a;
E[1]=P;E[2]=q};br.a6K=function(h,e){var $=h.length,Z=new Uint32Array($),c=new Uint8Array($),q=0;for(var G=0;
G<$;G++){c[G]=0;var E=h.charCodeAt(G);Z[G]=E;if(E>q)q=E}if(q>1424)c=br.afF(Z,e);return c};br.un=function(h,e,$,Z,c,q,E){this.dt=[];
this.KF=[];this.t6=new eu(0,0);this.RK=null;this.dt=null;this.Tz=gK.ajH(h,Z);var P=this.Tz,H=0,S="",M=0,C=1,r=0;
if(Z!=0){var a=P.SpaceBefore;if(a!=null)q[0]+=a}var j=h.EngineDict.ParagraphRun.RunLengthArray,L=j[Z];
for(var G=0;G<Z;G++)H+=j[G];var _=P._Direction?P._Direction:0;this.aan=H;var J=gK.N8(h).slice(H,H+L);
for(var N=0;N<J.length;N++){var Y=J.charAt(N);S+=$[H+N].Tz.FontCaps==0?Y:Y.toUpperCase()}J=S;var U=br.a6K(J,_),g=[],y=U[G]&1,i=$[H].na;
$[H].BC=U[0];for(var G=1;G<J.length;G++){var Y=$[H+G],Q=U[G];Y.BC=Q;if(Q!=y||Y.na!=i){g.push(M,C);M=G;
C=1;y=Q;i=Y.na}else C++}g.push(M,C);var m=this.RK=[];for(var G=0;G<g.length;G+=2){var n=g[G],u=g[G+1],K=($[H+n].BC&1)==0,F=J.slice(n,n+u),b=Typr.U.shapeHB($[H+n].na,F,K),d=[],z=0;
for(var N=0;N<b.length;N++){var W=b[N];d.push({l:W.g,tb:W.cl,aS:W.ax,gh:W.ay,B8:W.dx,Nm:W.dy})}b=d;var A=b.slice(0);
if(!K)A.reverse();for(var N=0;N<F.length;N++){while(z+1<A.length&&A[z+1].tb<=N){z++}while(z>0&&A[z-1].tb==N)z--;
$[H+n+N].Yk=m.length+(K?z:A.length-z-1)}for(var N=0;N<b.length;N++){m.push(b[N]);b[N].tb+=n;var Y=$[H+b[N].tb];
if(Y.wL=="\n")b[N].aS=0;if(Y.wL=="\t")b[N].aS=Y.na.head.unitsPerEm*2}}var T=gK.Ge(P),R=this.dt=br.a2h(h,e,$,H,m,H,H+L),I=this.KF,x=-1,S=[null,null,0];
while(r<R.length){br.ah4(R,c,P,E,q[0],r,S);x++;var X={start:r,end:0,_:new O,t6:new eu(0,0),aE:!0},fz=0,ca=0;
I.push(X);X.end=S[2];var hH=X.end==R.length;function hZ(A,n,b2){var dV=b2-n>>>1;for(var G=0;G<dV;G++){var ch=A[n+G];
A[n+G]=A[b2-1-G];A[b2-1-G]=ch}}for(var gj=1;gj<5;gj++){var hO=-1;for(var G=X.start;G<X.end;G++){var Q=$[R[G].start].BC;
if(hO==-1&&Q>=gj)hO=G;else if(hO!=-1&&Q<gj){hZ(R,hO,G);hO=-1}}var d3=X.end;if(_==0&&R[d3-1].T8)d3--;
if(hO!=-1)hZ(R,hO,d3)}var v=S[0],hl=S[1],hO=r,ht=r;for(var ga=0;ga<v.length;ga++){var eB=hl[ga*2+1]-hl[ga*2],bP=0;
hO=ht;ht+=v[ga];var ek=this.aoC(hO,ht,R,_,c!=null);if(c){if(T==1||hH&&T==4)bP=ek[1]+(eB-ek[0]);if(T==2||hH&&T==5)bP=ek[1]+(eB-ek[0])/2;
if(x==0)bP+=P.FirstLineIndent;bP+=P.StartIndent}else{if(T==0)bP=P.StartIndent+P.FirstLineIndent;if(T==1)bP=-ek[0]-P.EndIndent;
if(T==2)bP=-ek[0]/2}bP+=hl[ga*2];if(c&&T>2&&(T==6||!hH))this.a4a(hO,ht,R,eB,_,bP);else{var b_=bP;for(var G=hO;
G<ht;G++){R[G].t6.x=b_;b_+=R[G]._.d}}}r=X.end;for(var G=X.start;G<X.end;G++){var gf=R[G]._.clone();gf.c3(R[G].t6);
X._=X._.iJ(gf);fz=Math.max(fz,R[G].RP);ca=Math.max(ca,R[G].lineHeight)}X.t6.y=x==0?0:I[x-1].t6.y+ca;
if(x==0){if(Z==0&&c)q[0]+=fz;if(Z!=0)q[0]+=ca;this.t6.y=q[0]}else q[0]+=ca;if(c)X.aE=this.t6.y+X.t6.y<c.y+c.v}var bb=P.SpaceAfter;
if(bb!=null)q[0]+=bb};br.un.prototype.aoC=function(h,e,$,Z,c){var q=0,E=0;for(var G=h;G<e;G++)q+=$[G]._.d;
if(c){if(Z==0)for(var G=e-1;G>=h;G--)if($[G].T8||$[G]._b)q-=$[G]._.d;else break;if(Z==1)for(var G=h;
G<e;G++)if($[G].T8||$[G]._b){var P=$[G]._.d;q-=P;E-=P}else break}return[q,E]};br.un.prototype.a4a=function(h,e,$,Z,c,q){var E=0,P=0,a=0,j=0;
for(var G=h;G<e;G++)if($[G].T8)a++;else{E+=$[G]._.d;P++}if(c==0)for(var G=e-1;G>=h;G--)if($[G].T8||$[G]._b){if($[G].T8){a--}}else break;
if(c==1)for(var G=h;G<e;G++)if($[G].T8||$[G]._b){if($[G].T8){a--;j++}}else break;if(P<=1||a==0){if(P==1)$[h].t6.x=q;
return}var L=(Z-E)/a,H=-j*L;for(var G=h;G<e;G++){if($[G].T8)this.RK[$[G].VH]._.d=$[G]._.d=L;$[G].t6.x=q+H;
H+=$[G]._.d}};br.aoo=function(h,e,$,Z,c,q,E){this.zm="";for(var G=0;G<E;G++)this.zm+=$[q+G].wL;this.T8=E==1&&($[q].wL==" "||$[q].wL=="\t");
this._b=E==1&&$[q].wL=="\n";this.start=q;this.end=q+E;this._=new O;this.t6=new eu(0,0);this.RP=0;this.lineHeight=0;
var P=0,a=0;if(E==0){this.lineHeight=$[q].lineHeight;this.RP=$[q].RP;this._=new O(0,-$[q].lineHeight,0,$[q].lineHeight)}var j=$[q].Yk,L=$[q+E-1].Yk;
if(L<j){var H=j;j=L;L=H}while(L+1<c.length&&c[L].tb==c[L+1].tb){L++}this.VH=j;this.xq=L;for(var _=j;
_<=L;_++){var J=c[_],S=$[Z+J.tb],N=1/S.na.head.unitsPerEm*S.Tz.FontSize,M=0;if(!S.Tz.AutoKerning)P+=S.Tz.Kerning*2*N*S.scale.x;
var Y=J.aS*N*S.scale.x;J.t6=new eu(P,0);J.uk=0;J._=new O(0,-S.lineHeight,Y,S.lineHeight);var U=Typr.U.glyphToPath(S.na,J.l);
J.path={Z:U.cmds,H:U.crds};var g=J._.clone();g.c3(J.t6);if(S.Tz.Tracking!=null)M=S.Tz.Tracking*.001*S.Tz.FontSize;
if(S.Tz.FauxBold==!0)M+=.027*S.Tz.FontSize;P+=Y+M;if(E==1&&(S.wL==" "||S.wL=="\t"))g.d+=2*M;else if(E==1&&S.wL!=null&&br.Uh(S.wL.charCodeAt(0)))g.d+=M;
this._=this._.iJ(g);this.RP=Math.max(this.RP,S.RP);this.lineHeight=Math.max(this.lineHeight,S.lineHeight)}};
br.X8=0;br.GU=function(){if(br.X8==2)return!0;if(br.X8==1)return!1;br.X8=1;function h(){fetch("code/external/fribidi.wasm").then(function(e){return e.arrayBuffer()}).then(function(e){return WebAssembly.instantiate(e)}).then(function(e){var $=e.instance.exports,Z=$.memory,E=16,P=256,a=1;
Z.grow(400);var c=new Uint8Array(Z.buffer),q=new Uint32Array(Z.buffer),j=E|P,L=E|P|a;br.afF=function(_,J){var S=_.length,N=$.calloc(S*4+4+S*4+S*4+S,1),Y=N+S*4,U=Y+4,g=U+S*4,M=g+S*4;
q.set(_,N>>>2);q[Y>>>2]=J==0?j:L;$.fribidi_get_bidi_types(N,S,U);$.fribidi_get_bracket_types(N,S,U,g);
$.fribidi_get_par_embedding_levels_ex(U,g,S,Y,M);var C=c.slice(M,M+S);$.free(N);return C};br.X8=2;var H=new B(D.E.P,!0);
H.data={e:D.U.Ov,HZ:"add",Av:iM.jV,Ep:null};bc.Az.f(H)})}Typr.U.initHB("code/external/hb.wasm",h);return!1};
function gK(){}gK.OU=function(h){return JSON.parse(JSON.stringify(h))};gK.ts=function(h,e){for(var $ in e)h[$]=e[$]};
gK.Zh=function(h,e,$){var Z=gK.wC();if($)gK.sq(Z,0,0,$);var c={J:new i7(1,0,0,1,Math.round(h),Math.round(e)),Kx:Z};
c.jR=gK.eU();c.$F=s.FO.m();c._P=new O;return c};gK.YX=function(h){var e=["CharacterDirection",0];for(var G=0;
G<e.length;G+=2){if(h[e[G]]!=null&&h[e[G]]!=e[G+1]){throw"e";console.log(e[G],h[e[G]])}}if(h instanceof Array)for(var G=0;
G<h.length;G++)gK.YX(h[G]);else if(h instanceof Object)for(var $ in h)gK.YX(h[$])};gK.Ge=function(h,e){if(e==null)e=h.Justification;
var $=h._Direction?h._Direction:0;if($==1){if(e==0||e==3)e++;else if(e==1||e==4)e--}return e};gK._Z=function(h){if(h.add==null)return;
var e=h.Kx,$=e.Curve,Z=h.add.vmsk,c=Z.b,q=s.a.$o(c,!0).H,E=h.J.clone();E.vy();s.a.J(q,E,q);var P=q.slice(0,8);
for(var a=8;a<q.length;a+=6)P.push(q[a-2],q[a-1],q[a],q[a+1],q[a+2],q[a+3],q[a+4],q[a+5]);$.Points=P;
$.TextOnPathTRange=Z.v9.slice(0);$.Reversed=Z.O4;if(gK.De(e)==1){var $=br.DJ(e.Curve),j=s.a.Be($[0]);
gK.IE(e,[0,0,j.d,j.v].map(Math.round));for(var G=0;G<P.length;G+=2){P[G]-=j.x;P[G+1]-=j.y}var L=new i7(1,0,0,1,j.x,j.y);
L.concat(h.J);h.J=L}};gK.iU=function(h){if(h.add==null)return;var e=h.add.vmsk,$=h.Kx.Curve,Z=$.Points,c={Z:["M"],H:[Z[0],Z[1]]};
for(var G=0;G<Z.length;G+=8){c.Z.push("C");c.H.push(Z[G+2],Z[G+3],Z[G+4],Z[G+5],Z[G+6],Z[G+7])}s.a.J(c.H,h.J,c.H);
var q=s.a.b0(c,!0);e.b=q;e.O4=$.Reversed;e.v9=$.TextOnPathTRange.slice(0);h.add.vogk=o.__(q)};gK.LX=function(h){var e={h:0,l:0,O:0};
if(h.FillColor){var $=h.FillColor,Z=$.Values;if($.Type==1)e={h:Z[1]*255,l:Z[2]*255,O:Z[3]*255};else if($.Type==2){var c={classID:"CMYC",Cyn:{t:"doub",v:Z[1]*100},Mgnt:{t:"doub",v:Z[2]*100},Ylw:{t:"doub",v:Z[3]*100},Blck:{t:"doub",v:Z[4]*100}};
e=s.Y.LX(c)}else console.log("Unknown color type")}return e};gK.a0q=function(h){for(var G=0;G<h.length;
G++){var e=h[G].StyleSheet.StyleSheetData,$=e.FillColor;if($&&$.Type==2){var Z=gK.LX(e);$.Type=1;$.Values=[1,Z.h/255,Z.l/255,Z.O/255]}}};
gK._A=function(h,e){var $;if(gK.De(h.Kx)==1){var Z=gK.r1(h.Kx);$=new O(0,0,Z[2]-Z[0],Z[3]-Z[1])}else $=e.ZO();
return $};gK.n_=function(h){var e=h[0];for(var G=0;G<h.length;G++)e=gK.a6S(e,h[G]);return e};gK.a6S=function(h,e){var $={};
for(var Z in h)if(JSON.stringify(h[Z])==JSON.stringify(e[Z]))$[Z]=h[Z];return $};gK.P0=function(h,e){var $=h.Kr,Z=-1;
for(var G=0;G<$.length;G++)if($[G].Name==e)Z=G;if(Z==-1){Z=$.length;$.push({FontType:1,Name:e,Script:0,Synthetic:0})}h.By.Font=Z};
gK.N8=function(h){return h.EngineDict.Editor.Text.replace(/\r/g,"\n").replace(/\u0003/g,"\n")};gK.Ba=function(h,e){h.EngineDict.Editor.Text=e.replace(/\n/g,"\r")};
gK.De=function(h){return h.Curve&&h.Curve.TextOnPathTRange[0]>=0?2:h.EngineDict.Rendered.Shapes.Children[0].ShapeType};
gK.gq=function(h,e){var $=h.EngineDict.Rendered.Shapes.Children[0];$.ShapeType=e;var Z=$.Cookie.Photoshop;
Z.ShapeType=e;Z.Base.ShapeType=e;if(e==0){delete Z.BoxBounds;Z.PointBase=[0,0]}if(e==1){delete Z.PointBase;
Z.BoxBounds=[0,0,1,1]}};gK.r1=function(h){return h.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds};
gK.IE=function(h,e){h.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds=e};gK.a9o=function(h,e){return gK.akh(h,gK.QW(h,e))};
gK.QW=function(h,e){var $=h.EngineDict.StyleRun.RunLengthArray;return gK.rp($,e).Ry};gK.akh=function(h,e){var $=h.ResourceDict.StyleSheetSet[0].StyleSheetData,Z={};
for(var c in $)Z[c]=$[c];var q=h.EngineDict.StyleRun.RunArray[e].StyleSheet.StyleSheetData;gK.ts(Z,q);
return Z};gK.ajH=function(h,e){var $=h.ResourceDict.ParagraphSheetSet[0].Properties,Z={};for(var c in $)Z[c]=$[c];
var q=h.EngineDict.ParagraphRun.RunArray[e].ParagraphSheet.Properties;gK.ts(Z,q);var E=["StartIndent","EndIndent","FirstLineIndent"];
for(var G=0;G<3;G++)if(Z[E[G]]==null)Z[E[G]]=0;return Z};gK.Ja=function(h,e,$){if($=="")return;var Z=gK.N8(h);
gK.Ba(h,Z.substring(0,e)+$+Z.substring(e,Z.length));var c=h.EngineDict.StyleRun,q=c.RunLengthArray,E=gK.rp(q,e-1);
q[E.Ry]+=$.length;var P=h.EngineDict.ParagraphRun,q=P.RunLengthArray,a=gK.rp(q,e),j=$.split("\n");if(j.length==1){q[a.Ry]+=$.length;
return}q.splice(a.Ry+1,0,q[a.Ry]-(e-a.k_));P.RunArray.splice(a.Ry+1,0,gK.OU(P.RunArray[a.Ry]));q[a.Ry]-=q[a.Ry+1];
q[a.Ry]+=j[0].length+1;for(var G=1;G<j.length-1;G++){P.RunArray.splice(a.Ry+G,0,gK.OU(P.RunArray[a.Ry+G-1]));
P.RunLengthArray.splice(a.Ry+G,0,j[G].length+1)}q[a.Ry+j.length-1]+=j[j.length-1].length};gK._5=function(h,e,$){var Z=gK.N8(h);
gK.Ba(h,Z.substring(0,e)+Z.substring($,Z.length));gK.qv(h.EngineDict.ParagraphRun,e,$,!0);gK.qv(h.EngineDict.StyleRun,e,$,!1)};
gK.qv=function(h,e,$,Z){var c=h.RunLengthArray,q=gK.rp(c,e),E=gK.rp(c,$),P=[];for(var G=0;G<c.length;
G++)for(var a=0;a<c[G];a++)P.push(G);P.splice(e,$-e);var j=[];for(var G=0;G<c.length;G++)j.push(0);for(var G=0;
G<P.length;G++)j[P[G]]++;for(var G=0;G<c.length;G++){if(j[G]==0){j.splice(G,1);c.splice(G,1);h.RunArray.splice(G,1);
G--}else if(j[G]<c[G])c[G]=j[G]}if(Z&&q.Ry!=E.Ry&&q.k_!=e){c[q.Ry]+=c[q.Ry+1];c.splice(q.Ry+1,1);h.RunArray.splice(q.Ry+1,1)}};
gK.sq=function(h,e,$,Z){var c=h.EngineDict.Editor.Text.length;if($==c-2)$++;if(Z.By.Font!=null)h.ResourceDict.FontSet=Z.Kr.slice(0);
if(e<=$)gK.mx(h.EngineDict.StyleRun,Z.By,e,$,!0);gK.mx(h.EngineDict.ParagraphRun,Z.Bp,e,$,!1)};gK.mx=function(h,e,$,Z,c){var q=h.RunLengthArray;
if(c){var E=gK.rp(q,$);if(E.k_!=$){var P=q[E.Ry];q.splice(E.Ry,0,$-E.k_);q[E.Ry+1]=P-q[E.Ry];h.RunArray.splice(E.Ry+1,0,gK.OU(h.RunArray[E.Ry]))}var a=gK.rp(q,Z);
if(a.k_+q[a.Ry]-1!=Z){var P=q[a.Ry];q.splice(a.Ry,0,Z-a.k_+1);q[a.Ry+1]=P-q[a.Ry];h.RunArray.splice(a.Ry+1,0,gK.OU(h.RunArray[a.Ry]))}}var E=gK.rp(q,$),a=gK.rp(q,Z);
if(c)for(var G=E.Ry;G<=a.Ry;G++)gK.ts(h.RunArray[G].StyleSheet.StyleSheetData,e);else for(var G=E.Ry;
G<=a.Ry;G++)gK.ts(h.RunArray[G].ParagraphSheet.Properties,e)};gK.aiZ=function(h,e,$){var Z=h.EngineDict.StyleRun.RunLengthArray,c=[],q=0;
for(var G=0;G<Z.length;G++){var E=Z[G];for(var P=0;P<E;P++)if(e<=q+P&&q+P<$)c.push(G);q+=E}var a=c[0],j=[];
for(var G=0;G<c.length;G++){var L=c[G]-a;if(L==j.length)j.push(0);j[L]++}return j};gK.adx=function(h){var e=h.EngineDict.StyleRun,$=e.RunArray,Z=e.RunLengthArray;
for(var G=0;G<Z.length-1;G++){var c=$[G].StyleSheet.StyleSheetData,q=$[G+1].StyleSheet.StyleSheetData;
if(JSON.stringify(c)==JSON.stringify(q)){$.splice(G+1,1);Z[G]+=Z[G+1];Z.splice(G+1,1);G--}}};gK.vk=function(h){var e=h.jR.AntA.v.Annt;
e=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"].indexOf(e);if(e==-1)e=1;return e};gK.mM=function(h,e){h.jR.AntA.v.Annt=["Anno","antiAliasSharp","AnCr","AnSt","AnSm"][e]};
gK.hT=function(h,e,$){var Z={Kr:h.ResourceDict.FontSet.slice(0),By:[],Bp:[]},c=h.EngineDict.StyleRun.RunLengthArray,q=gK.rp(c,e).Ry,E=gK.rp(c,$).Ry;
for(var G=q;G<=E;G++){var P=gK.OU(h.ResourceDict.StyleSheetSet[0].StyleSheetData),a=h.EngineDict.StyleRun.RunArray;
if(a.length==0)continue;var j=a[G].StyleSheet.StyleSheetData;gK.ts(P,j);Z.By.push(P)}var L=h.EngineDict.ParagraphRun.RunLengthArray,H=gK.rp(L,e).Ry,_=gK.rp(L,$).Ry;
for(var G=H;G<=_;G++){var J=h.EngineDict.ParagraphRun.RunArray;if(J.length==0)continue;Z.Bp.push(gK.OU(J[G].ParagraphSheet.Properties))}Z.By=Z.By.length==0?{}:gK.n_(Z.By);
Z.Bp=Z.Bp.length==0?{}:gK.n_(Z.Bp);return Z};gK.de=function(h,e){var $,Z;$=["FontSize","Leading","BaselineShift"];
Z=h.By;for(var G=0;G<$.length;G++)if(Z[$[G]]!=null)Z[$[G]]*=e;$=["StartIndent","EndIndent","FirstLineIndent","SpaceBefore","SpaceAfter"];
Z=h.Bp;for(var G=0;G<$.length;G++)if(Z[$[G]]!=null)Z[$[G]]*=e};gK.ajp=function(){return gK.hT(gK.Yz,0,0)};
gK.eU=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}}};
gK.rp=function(h,e){var $=0,G=0;while($+h[G]<=e){$+=h[G];G++}return{Ry:G,k_:$}};gK.wC=function(){var h=gK.OU(this.Yz);
return h};gK.UG={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};
gK.adT={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};
gK.Yz={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(gK.UG))},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(gK.UG))}],StyleSheetSet:[{Name:"Normal RGB",StyleSheetData:JSON.parse(JSON.stringify(gK.adT))}],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 bQ={};bQ.agV=function(h){var e=bQ.a7R(h._0,h._1);bQ.aob(e,h._0);return e};bQ.a5L=function(h,e,$){var Z={};
Z._98={_0:"i7"};Z._0=bQ.acG(h,e,$?$._0:null);Z._1=bQ.abG(h,e,Z._0,$?$._1:null);return Z};bQ.acG=function(h,e,$){var Z={};
Z._1=bQ.agj(h,$?$._1:null);Z._2={_0:[{_0:{_0:"s"}}],_1:[{_0:"i0"}]};Z._3=JSON.parse(JSON.stringify(bQ.abJ));
Z._4=JSON.parse(JSON.stringify(bQ.ahO));Z._5=bQ.a6O(h,Z._1._0,$?$._5:null);Z._6=bQ.aaO(h,$?$._6:null);
Z._8=bQ.aez(h,e,$?$._8:null);Z._9=bQ.a6L;return Z};bQ.aob=function(h,e){bQ.a8K(h,e._5,e._1._0)};bQ.agj=function(h,e){var $=[],Z=[];
for(var G=0;G<h.length;G++){var c=h[G].ResourceDict.FontSet;for(var q=0;q<c.length;q++){var E=c[q];if(Z.indexOf(E.Name)!=-1)continue;
$.push(E);Z.push(E.Name)}}var P={_0:[]};for(var G=0;G<$.length;G++){var a=$[G],j={_0:{_99:"/CoolTypeFont",_0:{_0:"s"+a.Name,_1:"i"+a.Script,_2:"i"+a.FontType}}};
if(a.Script==0)delete j._0._0._1;P._0.push(j)}return P};bQ.a6O=function(h,e,$){var Z={_0:[],_1:[]},c={_0:JSON.parse(JSON.stringify(bQ.vM))};
bQ.Ka(c._0,h[0].ResourceDict.StyleSheetSet[0],e,h[0].ResourceDict.FontSet);Z._0.push(c);Z._1.push({_0:"i0"});
Z._0.push({_0:{_0:"sNone",_5:"i0",_6:{}}});Z._1.push({_0:"i1"});return Z};bQ.a8K=function(h,e,$){var Z=e._0[0];
for(var G=0;G<h.length;G++)bQ.vJ(Z._0,h[G].ResourceDict.StyleSheetSet[0],$,h[G].ResourceDict.FontSet)};
bQ.aaO=function(h,e){var $={_0:[],_1:[]},Z={_0:JSON.parse(JSON.stringify(bQ.p2))};bQ.A_(Z._0,h[0].ResourceDict.ParagraphSheetSet[0]);
$._0.push(Z);$._1.push({_0:"i0"});Z={_0:JSON.parse(JSON.stringify(bQ.p2))};bQ.A_(Z._0,h[0].ResourceDict.ParagraphSheetSet[0]);
Z._0._0="sBasic Paragraph";Z._0._6="i0";$._0.push(Z);$._1.push({_0:"i1"});return $};bQ.aez=function(h,e,$){var Z={_0:[]};
for(var G=0;G<h.length;G++){var c=h[G].Curve,q={};Z._0.push({_0:q});var E=gK.De(h[G]);q._2={};q._2._0="i"+E;
if(E==0){q._2._6=["f-1","f-1"];q._2._11={_4:"i-1",_7:!1}}else if(E==1&&c==null){var P=gK.r1(h[G]),a=P[2],j=P[3];
q._1={_0:bQ.CI("f",[0,0,0,0,a,0,a,0,a,0,a,0,a,j,a,j,a,j,a,j,0,j,0,j,0,j,0,j,0,0,0,0])};q._2._6=["f-2","f-2"];
q._2._11={_4:"i-2",_7:!1}}else if(E==1){var P=gK.r1(h[G]),a=P[2],j=P[3];q._1={_0:bQ.CI("f",c.Points)};
q._2._6=["f-3","f-3"];q._2._11={_4:"i-3",_7:!1}}else if(E==2){q._1={_0:bQ.CI("f",c.Points)};q._2._6=bQ.CI("f",c.TextOnPathTRange);
q._2._11={_0:c.Reversed,_3:"i0",_5:"f0",_7:!1}}}return Z};bQ.abG=function(h,e,$,Z){var c={};c._0=JSON.parse(JSON.stringify(bQ.aeY));
c._1=bQ.a88(h,e,$,Z?Z._1:null);c._2=JSON.parse(JSON.stringify(bQ.vM._6));c._3=JSON.parse(JSON.stringify(bQ.p2._5));
return c};bQ.a7R=function(h,e){return bQ.agq(h,e._1)};bQ.a88=function(h,e,$,Z){var c=[],q=$._1._0;for(var G=0;
G<h.length;G++){var E=h[G],P={_0:{}};c.push(P);var a=Z?Z[G]:null;P._0._0="s"+E.EngineDict.Editor.Text;
P._0._0=P._0._0;var j={_0:[]};P._0._5=j;var L=E.EngineDict.ParagraphRun;for(var H=0;H<L.RunArray.length;
H++){var _={_0:{}};j._0.push(_);_._0._0={_0:"s",_5:{},_6:"i1"};bQ.A_(_._0._0,L.RunArray[H].ParagraphSheet);
_._1="i"+L.RunLengthArray[H]}var J={_0:[]};P._0._6=J;var S=a?a._0._6:null;L=E.EngineDict.StyleRun;for(var H=0;
H<L.RunArray.length;H++){var N={_0:{}};J._0.push(N);var Y=S?S._0:null;N._0._0={_0:"s",_5:"i1",_6:{}};
bQ.Ka(N._0._0,L.RunArray[H].StyleSheet,q,E.ResourceDict.FontSet,Y?N._0._0:null);N._1="i"+L.RunLengthArray[H]}P._0._10={_0:"i4",_2:!0};
P._1=bQ.view.ahT(E,null,G,null)}return c};bQ.agq=function(h,e){var $=[],Z=h._1._0;for(var G=0;G<e.length;
G++){var c=gK.wC();$.push(c);var q=e[G];c.EngineDict.Editor.Text=q._0._0.slice(1);var E=c.EngineDict.ParagraphRun.RunArray[0],P=c.EngineDict.ParagraphRun,a=q._0._5;
for(var j=0;j<a._0.length;j++){var L=a._0[j];P.RunLengthArray[j]=parseInt(L._1.slice(1));P.RunArray[j]=JSON.parse(JSON.stringify(E));
bQ.a7N(L._0._0,P.RunArray[j].ParagraphSheet)}var H=q._0._6;P=c.EngineDict.StyleRun;if(H)for(var j=0;
j<H._0.length;j++){var _=H._0[j];P.RunLengthArray[j]=parseInt(_._1.slice(1));P.RunArray[j]={StyleSheet:{StyleSheetData:{}}};
bQ.vJ(_._0._0,P.RunArray[j].StyleSheet,Z,c.ResourceDict.FontSet)}else{P.RunLengthArray[0]=gK.N8(c).length;
P.RunArray[0]={StyleSheet:{StyleSheetData:{}}}}}return $};bQ.Ka=function(h,e,$,Z,c){h._0="s"+(e.Name?e.Name:"");
var q=h._6,E=c?c._6:null,P=e.StyleSheetData;if(P.Font==null)return;var a=Z[P.Font].Name,j=-1;for(var G=0;
G<$.length;G++)if("s"+a==$[G]._0._0._0){j=G;break}q._0="i"+j;if(P.FontSize!=null)q._1="f"+P.FontSize;
if(P.FauxBold!=null)q._2=P.FauxBold;if(P.FauxItalic!=null)q._3=P.FauxItalic;if(P.AutoLeading!=null)q._4=P.AutoLeading;
if(P.Leading!=null)q._5="f"+P.Leading;if(P.HorizontalScale!=null)q._6="f"+P.HorizontalScale;if(P.VerticalScale!=null)q._7="f"+P.VerticalScale;
if(P.Tracking!=null)q._8="i"+P.Tracking;if(P.BaselineShift!=null)q._9="f"+P.BaselineShift;if(P.AutoKerning!=null)q._11="i"+(P.AutoKerning?1:0);
if(P.FontCaps!=null)q._12="i"+P.FontCaps;if(P.FontBaseline!=null)q._13="i"+P.FontBaseline;if(P.Strikethrough!=null)q._15="i"+(P.Strikethrough?1:0);
if(P.Underline!=null)q._16="i"+(P.Underline?2:0);if(P.Ligatures!=null)q._18=P.Ligatures;if(P.DLigatures!=null)q._19=P.DLigatures;
if(P.Language!=null)q._38="i"+P.Language;if(P.FillColor!=null)q._53={_99:"/SimplePaint",_0:{_0:"i1",_1:bQ.CI("f",P.FillColor.Values)}}};
bQ.vJ=function(h,e,$,Z){var c=h._6,q=e.StyleSheetData;if(c._0){var E=parseInt(c._0.slice(1)),P=$[E]._0._0._0.slice(1);
gK.P0({By:q,Kr:Z},P)}if(c._1)q.FontSize=parseFloat(c._1.slice(1));if(c._2)q.FauxBold=c._2;if(c._3)q.FauxItalic=c._3;
if(c._4)q.AutoLeading=c._4;if(c._5)q.Leading=parseFloat(c._5.slice(1));if(c._6)q.HorizontalScale=parseFloat(c._6.slice(1));
if(c._7)q.VerticalScale=parseFloat(c._7.slice(1));if(c._8)q.Tracking=parseFloat(c._8.slice(1));if(c._9)q.BaselineShift=parseFloat(c._9.slice(1));
if(c._11)q.AutoKerning=parseFloat(c._11.slice(1))==1;if(c._12)q.FontCaps=parseFloat(c._12.slice(1));
if(c._13)q.FontBaseline=parseFloat(c._13.slice(1));if(c._15)q.Strikethrough=parseFloat(c._15.slice(1))==1;
if(c._16)q.Underline=parseFloat(c._16.slice(1))==1;if(c._18)q.Ligatures=c._18;if(c._19)q.DLigatures=c._19;
if(c._38)q.Language=parseFloat(c._38.slice(1));if(c._53){var a=c._53._0._1,j=[];for(var G=0;G<4;G++)j[G]=parseFloat(a[G].slice(1));
q.FillColor={Type:1,Values:j}}};bQ.A_=function(h,e){h._0="s"+(e.Name?e.Name:"");var $=h._5,Z=e.Properties;
if(Z.Justification!=null)$._0="i"+Z.Justification;if(Z.FirstLineIndent!=null)$._1="f"+Z.FirstLineIndent;
if(Z.StartIndent!=null)$._2="f"+Z.StartIndent;if(Z.EndtIndent!=null)$._3="f"+Z.EndtIndent;if(Z.SpaceBefore!=null)$._4="f"+Z.SpaceBefore;
if(Z.SpaceAfter!=null)$._5="f"+Z.SpaceAfter;if(Z.AutoHyphenate!=null)$._9=Z.AutoHyphenate;if(Z._Direction!=null)$._33="i"+Z._Direction};
bQ.a7N=function(h,e){var $=h._5,Z=e.Properties;if($._0)Z.Justification=parseInt($._0.slice(1))};bQ.CI=function(h,e){var $=[];
for(var G=0;G<e.length;G++)$.push(h+e[G]);return $};bQ.abJ={_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"}]};
bQ.ahO={_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"}]};
bQ.vM={_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}};
bQ.p2={_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"}};
bQ.a6L={_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"}]};
bQ.aeY={_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 cU={};cU.aci=function(h){return cU.Z2(h,cU.Ji,0)};cU.aiI=function(h){return cU.sW(h,cU.Ji)};cU.Z2=function(h,e,$){var Z;
if(typeof h=="string")return h;if(h instanceof Array){Z=[];for(var G=0;G<h.length;G++)Z[G]=cU.Z2(h[G],e,$+1)}else{Z={};
var c={};for(var q in e){var E=e[q],P="_"+E[0];if(h[P]!=null){Z[q]=E[1]?cU.Z2(h[P],E[1],$+1):h[P];c[P]=!0}}for(var q in h){if(c[q]==null){console.log(c);
console.log(q,h,e);throw"e"}}}return Z};cU.sW=function(h,e){var $;if(h instanceof Array){$=[];for(var G=0;
G<h.length;G++)$[G]=cU.sW(h[G],e)}else{$={};var Z={};for(var c in e){var q=e[c],E="_"+q[0];if(h[c]!=null){$[E]=q[1]?cU.sW(h[c],q[1]):h[c];
Z[c]=!0}}for(var c in h){if(Z[c]==null){console.log(Z);console.log(c,h);throw"e"}}}return $};cU.EP={_StreamTag:[99],_5:[5],_Color:[0,{_Type:[0],_Values:[1]}]};
cU.ie={_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,cU.EP],_StrokeColor:[54,cU.EP],_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,cU.EP],_FillBackgroundFlag:[80],_UnderlineStyle:[81],_DashedUnderlineGapLength:[82],_DashedUnderlineDashLength:[83],_SlashedZero:[84],_StylisticSets:[85],_CustomFeature:[86,{_StreamTag:[99]}],_87:[87],_88:[88]};
cU.nJ={_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,cU.ie],_ParagraphDirection:[33],_JustificationMethod:[34],_ComposerEngine:[35],_ListStyle:[36],_ListTier:[37],_ListSkip:[38],_ListOffset:[39],_40:[40]};
cU.cG={_Name:[0],_Features:[5,cU.nJ],_Parent:[6]};cU.zU={_Name:[0],_Parent:[5],_Features:[6,cU.ie]};
cU.Ji={_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],_5:[5]}]}],_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,cU.zU]}],_DisplayList:[1,{_Resource:[0]}]}],_ParagraphSheetSet:[6,{_Resources:[0,{_Resource:[0,cU.cG]}],_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,cU.cG]}],_Length:[1]}]}],_StyleRun:[6,{_RunArray:[0,{_RunData:[0,{_StyleSheet:[0,cU.zU]}],_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,cU.ie],_OriginalNormalParagraphFeatures:[3,cU.nJ]}]};
bQ.view={};bQ.view.ahT=function(h,e,$,Z){var c={},q=gK.De(h);c._0=[{_0:"i"+$}];return c};function CSS(){}CSS.alv=function(h,e){var $=h.add,Z=$.vmsk,c=$.vstk,q=$.lmfx,E=$.TySh,P=[],a=CSS.a3g(q,$);
if(h.SV()&&Z){var j=s.W.v4(Z.b);if(!j.nK()){P.push("width: "+Math.round(j.d)+"px");P.push("height: "+Math.round(j.v)+"px")}var L=s.W.acE(Z.b);
if(L>0)P.push("border-radius: "+Math.round(L)+"px")}else if(E){var H=E.Kx;if(gK.De(H)==1){var j=gK.r1(H);
P.push("width: "+Math.round(j[2])+"px");P.push("height: "+Math.round(j[3])+"px")}CSS.pu(P,gK.hT(H,0,0),E.J,!1,!1,a[0])}var _=[],J=q?q.dropShadowMulti.v:0;
for(var G=0;G<J.length;G++){var S=J[G].v;if(S.enab.v){var N=S.Dstn.v.val,Y=S.lagl.v.val*Math.PI/180;
if(S.uglg&&S.uglg.v)Y=e.ct()*Math.PI/180;var U=N*Math.cos(Y),g=N*Math.sin(Y);_.push("drop-shadow("+(U==0?"0 ":CSS.$0(-U)+"px ")+(g==0?"0 ":CSS.$0(g)+"px ")+S.blur.v.val/2+"px "+CSS.PU(S.Clr.v,S.Opct.v.val/100)+")")}}if(_.length!=0)P.push("filter: "+_.join(" "));
if(E==null)CSS.adj(a,P);if(c==null||!c.strokeEnabled.v)c=hn.tX(q);if(c&&c.strokeEnabled.v){var M=c.strokeStyleContent.v,C=M.classID,y=c3.oF.kS.indexOf(c.strokeStyleLineCapType.v.strokeStyleLineCapType),i=c3.oF.join.indexOf(c.strokeStyleLineJoinType.v.strokeStyleLineJoinType),Q=c.strokeStyleOpacity.v.val/100,m=c.strokeStyleLineWidth.v.val,n="";
if(C=="solidColorLayer")n=CSS.PU(M.Clr.v,Q);P.push("border: "+m+"px solid "+n)}return P};CSS.a3g=function(h,e){var $=hn.Ef(h,e),Z=$[0],c=$[1],q,E;
if(Z){q=CSS.PU(Z.Clr.v,e.iOpa!=null?e.iOpa/255:1)}else if(c){E=CSS.Cd(c)}return[q,E]};CSS.adj=function(h,e){if(h[0])e.push("background-color: "+h[0]);
if(h[1])e.push("background-image: "+h[1])};CSS.rx={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.$0=function(t){return""+parseFloat(t.toFixed(3))};CSS._w=function(h){if(h==null)return{h:0,l:0,O:0};
var e=h.indexOf("(");if(e!=-1){var $=h.slice(e+1,h.length-1).split(",");for(var G=0;G<$.length;G++){var Z=$[G].trim();
$[G]=parseFloat(Z)*(Z.endsWith("%")?255/100:1)}return{h:$[0],l:$[1],O:$[2]}}if(h.charAt(0)!="#"){var c=CSS.rx;
if(c[h])h=c[h];else console.log("unknown color "+h)}h=h.slice(1);if(h.length==3)h=h[0]+h[0]+h[1]+h[1]+h[2]+h[2];
h=parseInt(h,16);return{h:h>>16&255,l:h>>8&255,O:h&255}};CSS.PU=function(h,e){return CSS.iP(s.Y.LX(h),e)};
CSS.iP=function(h,e){if(e==null)e=1;var $=Math.round(h.h),Z=Math.round(h.l),c=Math.round(h.O),q=$<<16|Z<<8|c;
return e==1?"#"+s.jT(q):"rgba("+$+","+Z+","+c+","+e+")"};CSS.Cd=function(h){var e=h.Grad.v;if(e.Clrs==null)return"";
var $=e.Clrs.v.slice(0),Z=e.Trns.v.slice(0),c=h.Ofst.v,q=h.Type.v.GrdT=="Rdl"?1:0,E=(q==1?"radial":"linear")+"-gradient",P=q==0?Math.round(-h.Angl.v.val+90)+"deg":"circle at center",a=h.Rvrs.v;
if(a){$.reverse();Z.reverse()}for(var G=0;G<$.length;G++){var j=$[G].v,L=G<Z.length?Z[G].v.Opct.v.val/100:1,H=j.Lctn.v/4096;
if(a)H=1-H;P+=", "+CSS.PU(j.Clr.v,L)+" "+Math.round(H*100)+"%"}return E+"("+P+")"};CSS.pu=function(h,e,$,Z,c,q){var E=e.By,P=Z?1:f.o.rD($),a=Math.round(E.FontSize*P);
h.push("font-size: "+a+"px");var j=E.Tracking;if(!Z&&j!=null&&j!=0)h.push("letter-spacing: "+Math.round(j*a/1e3)+"px");
if(!E.AutoLeading)h.push("line-height: "+Math.round(E.Leading*P)+"px");if(E.Strikethrough)h.push("text-decoration: line-through");
var L=gK.LX(E);L=[L.h,L.l,L.O].map(Math.round);h.push((Z?"fill: ":"color: ")+(q?q:"#"+s.jT(L[0]<<16|L[1]<<8|L[2])));
var H=e.Kr[E.Font].Name;if(H){var _=bc.Az.bE(H),J="",S=null,N=null;if(_!=null&&H!=bc.w8(_))_=null;if(c&&_)J+="\""+H+"\", ";
var Y=H.toLowerCase();if(_){S=bc.on(_)[0];if(_["OS/2"])N=_["OS/2"].usWeightClass}else{S=CSS.a82(H);if(Y.indexOf("light")!=-1)N=300;
else if(Y.indexOf("medium")!=-1)N=500;else if(Y.indexOf("black")!=-1||Y.indexOf("extrabold")!=-1)N=800;
else if(Y.indexOf("bold")!=-1)N="bold"}if(S!=null)J+="\""+S+"\"";if(N!=null)h.push("font-weight: "+N);
if(Y.indexOf("italic")!=-1||Y.indexOf("oblique")!=-1)h.push("font-style: italic");if(J)h.push("font-family: "+J)}var U=e.Bp.Justification;
if(U!=null&&U!=0)if(Z)h.push("text-anchor: "+["start","end","middle"][U%3]);else h.push("text-align: "+["left","right","center"][U%3])};
CSS.a82=function(h){h=h.split("-")[0];while(h.endsWith("MT")||h.endsWith("PS"))h=h.slice(0,h.length-2);
var e=!0;for(var G=0;G<h.length;G++){var $=h.charAt(G);if(!e&&$.toLowerCase()!=$){h=h.slice(0,G)+" "+h.slice(G);
G++;e=!0}else e=!1}return h};function eA(){}eA.zo={document:!0,parent:!0,top:!0,eval:!0,postMessage:!0,UTIF:!0,PIMG:!0,LNG:!0,FNTS:!0};
eA.hd=function(h,e){var $=Date.now(),Z;try{Z=acorn.parse(h)}catch(e_){console.log(e_);return}var c=JSON.parse(JSON.stringify(eA.BK.b_));
c.__return=!1;c.__break=!1;c.__throw=!1;c.__fs={};c.__window={};eA.eval(Z,e,c);var q=c.__fs;if(Object.keys(q).length!=0){var E=UZIP.encode(q);
co.save(E,"output.zip")}};eA.eval=function(h,e,$){var Z=h.type;if(!1){}else if(Z=="Program"||Z=="BlockStatement"){var c=h.body;
for(var G=0;G<c.length;G++){var q=c[G].type;if(q=="FunctionDeclaration")$[c[G].id.name]=c[G]}for(var G=0;
G<c.length;G++){var q=c[G].type,E=eA.eval(c[G],e,$);if($.__return||$.__break||$.__throw)return E}}else if(Z=="ReturnStatement"){$.__return=!0;
return h.argument?eA.uc(h.argument,e,$):null}else if(Z=="BreakStatement"){$.__break=!0}else if(Z=="VariableDeclaration"){var P=h.declarations;
for(var G=0;G<P.length;G++)eA.eval(P[G],e,$)}else if(Z=="VariableDeclarator"){$[h.id.name]=h.init?eA.uc(h.init,e,$):null}else if(Z=="FunctionDeclaration"){$[h.id.name]=h}else if(Z=="MemberExpression"){var a=eA.uc(h.object,e,$),j=h.computed?eA.uc(h.property,e,$):eA.eval(h.property,e,$),E;
if(a.RI!=null)E=eA.BK.l8(a,j,e,$);else if(a==window&&eA.zo[j]){}else E=a[j];return E}else if(Z=="ArrayExpression"){var L=[],H=h.elements;
for(var G=0;G<H.length;G++)L.push(eA.uc(H[G],e,$));return L}else if(Z=="ObjectExpression"){var L={},H=h.properties;
for(var G=0;G<H.length;G++){var _=H[G],J=H[G].key.name?H[G].key.name:H[G].key.value;L[J]=eA.uc(H[G].value,e,$)}return L}else if(Z=="ExpressionStatement"){return eA.eval(h.expression,e,$)}else if(Z=="NewExpression"){var S=h.arguments,N=h.callee,Y=N.type,U=[],L=null;
for(var G=0;G<S.length;G++)U.push(eA.uc(S[G],e,$));if(Y=="Identifier")L=eA.BK.aeG(N.name,U,e,$);else throw"e";
if(L==null)throw"new "+N.name;return L}else if(Z=="CallExpression"){var S=h.arguments,N=h.callee,Y=N.type,g={};
for(var M in $)g[M]=$[M];var U=[];for(var G=0;G<S.length;G++)U.push(eA.uc(S[G],e,$));if(Y=="Identifier"){var C=N.name,y=$[C];
if(y){if(y.params){var i=y.params;for(var G=0;G<i.length;G++)g[i[G].name]=U[G];return eA.eval(y.body,e,g)}else{return y.apply(null,U)}}else if(eA.BK.agW.indexOf(C)!=-1)return eA.BK.Ld({RI:"Application"},C,U,e,$);
else if(window[C]==null)console.log("Unknown function "+C);else if(eA.zo[C])alert(C+"() not available");
else{var Q=window[C].apply(window,U);return Q}}else if(Y=="MemberExpression"){var a=eA.uc(N.object,e,$),j=N.computed?eA.uc(N.property,e,$):eA.eval(N.property,e,$);
if(a==window&&eA.zo[j])return;if(a.RI!=null)return eA.BK.Ld(a,j,U,e,$);else return a[j].apply(a,U)}else if(Y=="FunctionExpression"){return eA.eval(N.body,e,$)}else console.log(h)}else if(Z=="AssignmentExpression"){var m=h.operator,n=h.left,u=n.type,K=eA.uc(n,e,$),F=eA.uc(h.right,e,$),E=null;
if(!1){}else if(m=="=")E=F;else if(m=="+=")E=K+F;else if(m=="-=")E=K-F;else if(m=="*=")E=K*F;else if(m=="/=")E=K/F;
else if(m=="%=")E=K%F;else if(m=="&=")E=K&F;else if(m=="|=")E=K|F;else if(m=="&&=")E=K&&F;else if(m=="||=")E=K||F;
else console.log(h);if(u=="Identifier"){var b=n.name;if($.hasOwnProperty(b))$[b]=E;else $.__window[b]=E}else if(u=="MemberExpression"){var d=eA.eval(n.property,e,$),W=eA.uc(n.object,e,$);
if(W.RI!=null)eA.BK.a64(W,d,E,e,$);else W[d]=E}else console.log(h)}else if(Z=="Identifier")return h.name;
else if(Z=="Literal")return h.value;else if(Z=="UpdateExpression"){var m=h.operator,A=h.argument.name,L=eA.uc(h.argument,e,$);
if(!1){}else if(m=="++"){$[A]++;return h.prefix?$[A]:$[A]-1}else if(m=="--"){$[A]--;return h.prefix?$[A]:$[A]+1}else console.log(h)}else if(Z=="UnaryExpression"){var m=h.operator,z=eA.uc(h.argument,e,$);
if(z.RI=="UnitValue"){if(m=="-")return-z.G;else return eA.yd(z.G,m)}else return eA.yd(z,m)}else if(Z=="BinaryExpression"||Z=="LogicalExpression"){var m=h.operator,n=eA.uc(h.left,e,$),z=eA.uc(h.right,e,$);
if(n==null||z==null)return eA.Tq(n,z,m);else if(n.RI=="UnitValue"&&z.RI=="UnitValue")return eA.Tq(n.G,z.G,m);
else if(n.RI=="UnitValue")return eA.Tq(n.G,z,m);else if(z.RI=="UnitValue"){if(m=="-")return-(n-z.G);
else return eA.Tq(n,z.G,m)}else return eA.Tq(n,z,m)}else if(Z=="IfStatement"||Z=="ConditionalExpression"){var T=eA.uc(h.test,e,$);
if(T)return eA.eval(h.consequent,e,$);else if(h.alternate)return eA.eval(h.alternate,e,$)}else if(Z=="ForInStatement"){eA.eval(h.left,e,$);
var R=h.left.declarations[0].id.name,I=eA.uc(h.right,e,$);for(var M in I){$[R]=M;var r=eA.eval(h.body,e,$);
if($.__break)break;if($.__return)return r}$.__break=!1}else if(Z=="ForStatement"){eA.eval(h.init,e,$);
while(eA.eval(h.test,e,$)){var r=eA.eval(h.body,e,$);if($.__break)break;if($.__return)return r;eA.eval(h.update,e,$)}$.__break=!1}else if(Z=="DoWhileStatement"){do{var r=eA.eval(h.body,e,$);
if($.__break)break;if($.__return)return r}while(eA.eval(h.test,e,$));$.__break=!1}else if(Z=="TryStatement"){eA.eval(h.block,e,$);
if($.__throw){var x=h.handler;$[x.param.name]=$.__throw;$.__throw=!1;eA.eval(x.body,e,$);delete $[x.param.name]}}else if(Z=="EmptyStatement"){}else console.log(h)};
eA.Tq=function(h,e,$){if($=="+")return h+e;else if($=="-")return h-e;else if($=="*")return h*e;else if($=="/")return h/e;
else if($=="%")return h%e;else if($=="^")return h^e;else if($=="&")return h&e;else if($=="&&")return h&&e;
else if($=="|")return h|e;else if($=="||")return h||e;else if($=="<")return h<e;else if($==">")return h>e;
else if($=="==")return h==e;else if($=="<=")return h<=e;else if($==">=")return h>=e;else if($=="!=")return h!=e;
else if($=="!==")return h!==e;else if($=="<<")return h<<e;else if($==">>")return h>>e;else console.log($)};
eA.yd=function(h,e){if(e=="-")return-h;else if(e=="!")return!h;else if(e=="~")return~h;else if(e=="+")return h;
else console.log(obj)};eA.uc=function(h,e,$){var Z=h.type;if(Z=="Identifier")return eA.a3P(h.name,e,$);
else return eA.eval(h,e,$)};eA.a3P=function(h,e,$){if(h=="undefined")return undefined;else if($.hasOwnProperty(h))return $[h];
else if(h=="app")return{RI:"Application"};else if(h=="$")return{RI:"$"};else if(eA.BK.ab3.indexOf(h)!=-1)return eA.BK.l8({RI:"Application"},h,e,$);
else if(window[h]&&!eA.zo[h])return window[h];else{$[h]=null;return null}};eA.BK={};eA.BK.aeG=function(h,e,$,Z){var c;
if(h=="SolidColor")c={RI:h,G:[1,0,0,0]};if(h=="Window")c={RI:h,G:new cN(e[0],e[1],e[2])};if(h=="ExportOptionsSaveForWeb")c={RI:h,G:{gw:"png",SO:100}};
if(h=="JPEGSaveOptions")c={RI:h,G:{gw:"jpg",SO:100}};if(h=="File")c={RI:h,G:e[0]};if(h=="ActionReference")c={RI:h,G:[]};
if(h=="ActionDescriptor")c={RI:h,G:{}};if(h=="ActionList")c={RI:h,G:[]};if(h=="UnitValue")c={RI:h,G:e.length==0?0:parseFloat(e[0])};
return c};eA.BK.ab3="activeDocument documents fonts preferences displayDialogs foregroundColor backgroundColor".split(" ");
eA.BK.agW=["charIDToTypeID","stringIDToTypeID","executeAction","executeActionGet","doAction"];eA.BK.l8=function(h,e,$,Z){var c=$.Ci,q=$.I2();
if(!1){}else if(e=="typename"){if(h.RI=="Layer")return h.G.vG()?"LayerSet":"ArtLayer";else return h.RI}else if(["Document","Layer"].indexOf(h.RI)!=-1&&["layers","artLayers","layerSets"].indexOf(e)!=-1){var E=q.root,P={RI:"Layers",za:e,G:[]};
if(h.RI=="Layer")E=q.root.fH(q.t.indexOf(h.G));if(E.children==null)return null;for(var G=0;G<E.children.length;
G++){var a=E.children[G].$,j=a.vG();if(j&&e=="artLayers"||!j&&e=="layerSets")continue;P.G.push({RI:"Layer",G:a})}P.G.reverse();
return P}else if(h.RI=="Documents"||h.RI=="Layers"||h.RI=="HistoryStates"){if(!1){}else if(e=="length")return h.G.length;
else if(Number.isInteger(e))return h.G[e];else console.log(h.RI+": unknown property ",e)}else if(h.RI=="Application"){if(!1){}else if(e=="activeDocument")return{RI:"Document",G:$.I2()};
else if(e=="documents"){var P={RI:"Documents",G:[]};for(var G=0;G<$.hp.length;G++)P.G.push({RI:"Document",G:$.hp[G]});
return P}else if(e=="fonts")return{RI:"TextFonts"};else if(e=="preferences")return{RI:"Preferences"};
else if(e=="displayDialogs")return{RI:"DialogModes"};else if(e=="foregroundColor"||e=="backgroundColor"){var L=e[0]=="f"?c.oV:c.XK;
return{RI:"SolidColor",G:[1,(L>>>16&255)/255,(L>>>8&255)/255,(L>>>0&255)/255]}}else if(e=="UI")return{RI:"UI"};
else console.log(h,e)}else if(h.RI=="Document"){var q=h.G;if(!1){}else if(e=="activeLayer"){var a=q.t[q.C[0]];
return{RI:"Layer",G:a}}else if(e=="resolution")return q.Ay;else if(e=="width")return q.d;else if(e=="height")return q.v;
else if(e=="name")return q.name;else if(e=="saved")return!q.Kq();else if(e=="selection")return{RI:"Selection"};
else if(e=="activeHistoryState")return{RI:"HistoryState",NS:q.Nd};else if(e=="source")return q.g5;else if(e=="historyStates"){var H=[];
for(var G=0;G<q.history.length;G++)H.push({RI:"HistoryState",NS:G});return{RI:"HistoryStates",G:H}}else console.log(h,e)}else if(h.RI=="Layer"){var _={transparentPixelsLocked:0,pixelsLocked:1,positionLocked:2,allLocked:31},a=h.G;
if(!1){}else if(e=="visible")return a.o6();else if(e=="selected")return q.C.indexOf(q.t.indexOf(a))!=-1;
else if(e=="grouped")return a._U;else if(_[e]!=null)return a.ra(_[e]);else if(e=="opacity")return a.opacity*100/255;
else if(e=="blendMode")return a.oG;else if(e=="name")return a.getName();else if(e=="textItem")return{RI:"TextItem",G:a};
else if(e=="bounds"){var J=f.o._A(q,[q.t.indexOf(a)]);return eA.BK.mE(J,q)}else if(e=="parent"){var S=$.hp;
for(var G=0;G<S.length;G++)if(S[G].t.indexOf(a)!=-1)return{RI:"Document",G:S[G]}}else if(e=="kind"){var N=eA.BK.Di;
for(var G=0;G<N.length;G++)if(a.add[N[G]]!=null)return G;return 0}else console.log(h,e)}else if(h.RI=="Selection"){if(!1){}else if(e=="bounds")return eA.BK.mE($.I2().N.rect,q);
else console.log(h,e)}else if(h.RI=="TextItem"){var Y=h.G.add.TySh,U=Y.Kx,g=gK.N8(U),M=Y.J.rD(),C=gK.hT(U,0,Math.max(0,g.length-2));
if(e=="contents")return g.slice(0,g.length-1).replace(/\n/g,"\r");else if(e=="font")return C.By.Font!=null?C.Kr[C.By.Font].Name:null;
else if(e=="size")return eA.BK.YM(C.By.FontSize*M,q);else if(e=="leading")return eA.BK.YM(C.By.Leading*M,q);
else if(e=="tracking")return eA.BK.YM(C.By.Tracking);else if(e=="kind")return 1-gK.De(U);else if(e=="useAutoLeading")return C.Bp.AutoLeading;
else if(e=="hyphenation")return C.Bp.AutoHyphenate;else if(e=="color")return{RI:"SolidColor",G:C.By.FillColor.Values.slice(0)};
else if(e=="width"||e=="height"){var y=gK.r1(U),i=(y[2]-y[0])*M,Q=(y[3]-y[1])*M;return eA.BK.YM(e=="width"?i:Q,q)}else if(e=="position"){var m=Y.J;
return eA.BK.bn([m.zq,m.nL],q)}else if(e=="horizontalScale"||e=="verticalScale"){var n=e[0].toUpperCase()+e.slice(1);
return Math.round(C.By[n]*100)}else console.log(h,e)}else if(h.RI=="Preferences"){if(e=="rulerUnits")return c.cz.k1;
else console.log(h,e)}else if(h.RI=="SolidColor"){if(e=="rgb")return{RI:"RGBColor",G:h.G};else console.log(h,e)}else if(h.RI=="RGBColor"){var J=Math.round(255*h.G[1]),u=Math.round(255*h.G[2]),K=Math.round(255*h.G[3]);
if(!1){}else if(e=="red")return J;else if(e=="green")return u;else if(e=="blue")return K;else if(e=="hexValue")return"#"+s.jT(J<<16|u<<8|K).toUpperCase();
else console.log(h,e)}else if(h.RI=="UnitValue"){if(e=="value")return h.G;else throw"e"}else if(h.RI=="ExportOptionsSaveForWeb"){if(e=="format")return h.G.gw;
else if(e=="PNG8")return!1;else if(e=="quality")return h.G.SO;else throw e}else if(h.RI=="JPEGSaveOptions"){return 0}else console.log(h,e)};
eA.BK.mE=function(h,e){return eA.BK.bn([h.x,h.y,h.x+h.d,h.y+h.v],e)};eA.BK.bn=function(h,e){var $=[];
for(var G=0;G<h.length;G++)$.push(eA.BK.YM(h[G],e));return $};eA.BK.NH=function(h){var e=[];for(var G=0;
G<h.length;G++)e.push(h[G].RI?h[G].G:h[G]);return e};eA.BK.YM=function(h,e){return{RI:"UnitValue",G:h}};
eA.BK.ahl=function(h,e){if(h.RI=="UnitValue")return h.G;return h};eA.BK.a64=function(h,e,$,Z,c){var q=new B(D.E.A,!0),E=new B(D.E.P,!0),P=Z.I2(),a=Z.Ci;
if(!1){}else if(h.RI=="Application"){if(!1){}else if(e=="activeDocument"){E.data={e:D.U.YF,q4:$.G};Z.f(E)}else if(e=="displayDialogs"){}else console.log(h,e,$)}else if(h.RI=="Document"){var j=h.G;
if(!1){}else if(e=="name"){q.F=f.S$;q.data={e:o.On,G:$,ala:!0,Lh:j};P.qk=!0}else if(e=="source")j.g5=$;
else if(e=="activeLayer"){j.C=[j.t.indexOf($.G)]}else if(e=="activeHistoryState"){q.F=f.C_;q.data={e:"h_itemchange",index:$.NS}}else console.log(h,e)}else if(h.RI=="Layer"){q.F=f.S$;
var L={transparentPixelsLocked:0,pixelsLocked:1,positionLocked:2,allLocked:31},H=h.G,_=P.t.indexOf(H);
if(!1){}else if(e=="visible"){if(H.o6()!=$)q.data={e:o.dw,$:_}}else if(e=="opacity"){q.data={e:o.uz,$:_,El:Math.round(255*$/100)}}else if(e=="blendMode"){q.data={e:o.fC,$:_,El:eN.Pn.indexOf($)}}else if(e=="name"){q.data={e:o.WG,$:_,name:$}}else if(L[e]!=null){q.data={e:o.yT,$:_,El:[[$],[L[e]]]}}else if(e=="kind"){q.data={e:o.Pm,$:_,JG:eA.BK.Di[$]}}else if(e=="grouped"){q.data={e:o.C9,$:_,El:$}}else console.log(h,e,$)}else if(h.RI=="TextItem"){q.F=f.kE;
var H=h.G,J=H.add.TySh,S=JSON.parse(JSON.stringify(J.Kx)),N=J.J.clone(),Y=J.J.rD(),U=gK.N8(S),g=gK.hT(S,0,U.length-2),M=!1;
if(!1){}else if(e=="contents"){gK._5(S,0,U.length-1);gK.Ja(S,0,$.replace(/\r/g,"\n"))}else if(e=="size"){g.By.FontSize=($.G!=null?$.G:$)/Y;
M=!0}else if(e=="leading"){g.By.Leading=($.G!=null?$.G:$)/Y;M=!0}else if(e=="tracking"){g.By.Tracking=$.G!=null?$.G:$;
M=!0}else if(e=="kind"){var C=gK.De(S);if(C==1&&$==1){var y=new br(S,Z.Ci.R0).Bp[0],i=y.KF[0].end,Q=y.dt[i-1].end;
gK._5(S,0,U.length-1);gK.Ja(S,0,U.slice(0,Q-1))}if(C==$)gK.gq(S,1-$)}else if(e=="useAutoLeading"){g.Bp.AutoLeading=$;
M=!0}else if(e=="hyphenation"){g.Bp.AutoHyphenate=$;M=!0}else if(e=="font"){gK.P0(g,$);M=!0}else if(e=="color"){g.By.FillColor.Values=$.G.slice(0);
M=!0}else if(e=="width"||e=="height"){var m=gK.r1(S).slice(0),n=eA.BK.ahl($);if(e=="width")m[2]=Math.round(m[0]+n/Y);
else m[3]=Math.round(m[1]+n/Y);gK.IE(S,m)}else if(e=="position"){N.zq=$[0];N.nL=$[1]}else if(e=="horizontalScale"||e=="verticalScale"){var u=e[0].toUpperCase()+e.slice(1);
g.By[u]=$/100;M=!0}else console.log(h,e,$);if(M)gK.sq(S,0,U.length-1,g);q.data={e:"newED",bs:P.t.indexOf(H),Q5:S,J:N}}else if(h.RI=="Preferences"){if(!1){}else if(e=="rulerUnits"){var K=JSON.parse(JSON.stringify(a.cz));
K.k1=$;E.data={e:D.U.Ov,Av:iM.Q_,El:K};Z.f(E)}else console.log(h,e,$)}else if(h.RI=="RGBColor"){if(!1){}else if(e=="red")h.G[1]=$/255;
else if(e=="green")h.G[2]=$/255;else if(e=="blue")h.G[3]=$/255;else if(e=="hexValue"){var F=s.St($.slice(1));
h.G[1]=(F>>>16&255)/255;h.G[2]=(F>>>8&255)/255;h.G[3]=(F>>>0&255)/255}else console.log(h,e)}else if(h.RI=="ExportOptionsSaveForWeb"){if(e=="format")h.G.gw=$;
else if(e=="PNG8"){}else if(e=="quality")h.G.SO=$;else throw"e"}else if(h.RI=="JPEGSaveOptions"){if(e=="quality")h.G.SO=Math.round(100*$/12)}else console.log(h,e,$);
if(q.data!=null)Z.f(q)};eA.BK.Ld=function(h,e,$,Z,c){var q=h.RI,E=null,P=new B(D.E.A,!0),a=new B(D.E.Kz,!0),j=new B(D.E.P,!0),L=Z.I2(),H=Z.hp;
if(!1){}else if(q=="Application"){if(!1){}else if(e=="charIDToTypeID"){var _=$[0].trim(),J={slct:"select",Dlt:"delete"};
return J[_]?J[_]:_}else if(e=="stringIDToTypeID"){var S=$[0].trim(),J={red:"Rd",blue:"Bl",color:"Clr",RGBColor:"RGBC",type:"Type",using:"Usng"},N=J[S];
return N==null?S:N}else if(e=="executeAction"){console.log($);var Y;if($[1]){Y=$[1].G;Y.classID=$[0]}var U={setd:"set"},g=U[$[0]];
if(g==null)g=$[0];var M=es.VZ[$[0]];if(M&&es.Fr[M])g=es.Fr[M];a.data={Lw:g,TJ:Y}}else if(e=="executeActionGet"){return{RI:"ActionDescriptor",G:{classID:"null",null:{t:"obj ",v:$[0].G}}}}else if(e=="doAction"){j.data={e:D.U.xZ,py:[$[0],$[1]]}}else if(e=="open"){j.data={e:D.U.fu,Av:{url:$[0]}};
if($[2]&&H.length!=0)j.data.Av.gf=H.indexOf(L)}else if(e=="echoToOE"){j.data={e:D.U.dI,Av:$[0]}}else console.log(e)}else if(q=="Document"){var L=h.G;
if(!1){}else if(e=="crop"){a.data=f.u4.GL($[0])}else if(e=="trim"){var C=[];for(var G=0;G<4;G++)C.push($[G+1]!=null?$[G+1]:!0);
a.data=f.u4.rB($[0]!=null?$[0]:0,C)}else if(e=="suspendHistory"){var y=acorn.parse($[1]);eA.eval(y,Z,c)}else if(e=="save"){j.data={e:D.U.rh}}else if(e=="saveToOE"){j.data={e:D.U.rh,a3E:$}}else if(e=="rotateCanvas"){a.data=f.o.hP(!0,$[0])}else if(e=="resizeImage"||e=="resizeCanvas"){var i=$[0],Q=$[1];
if(typeof i!="number"){i=L.d*parseFloat(i.slice(0,i.length-1))/100;Q=L.v*parseFloat(Q.slice(0,Q.length-1))/100}if(e=="resizeCanvas")a.data=f.u4.fT(Math.round(i),Math.round(Q),$[2]);
else a.data=f.u4.Eu(Math.round(i),Math.round(Q),null,1)}else if(e=="paste"){j.data={e:D.U.d$,X0:$.length!=0&&$[0]}}else if(e=="close"){j.data={e:D.U.HA,SU:L}}else if(e=="exportDocument"||e=="saveAs"){var m=c.__fs,n=$[0].G.replace(":","").replace("~/",""),u=e=="exportDocument"?$[2].G:$[1].G,K=cE.JS(L,u.gw,null,null,[u.SO],Z.Ci);
m[n]=new Uint8Array(K)}else console.log(h,e,$)}else if(q=="Layer"){var F=h.G,b=L.t.indexOf(F);if(!1){}else if(e=="copy"){eA.BK.Th(L,Z,0);
j.data={e:D.U.$M,Rb:$[0],vq:b};Z.f(j);delete j.data;eA.BK.Th(L,Z,1)}else if(e=="clear"){eA.BK.Th(L,Z,0);
a.data={Lw:"delete"};Z.f(a);delete a.data;eA.BK.Th(L,Z,1)}else if(e=="duplicate"){if($.length==0){P.data={e:o.pA,$:b};
P.F=f.S$;Z.f(P);P.data=null;E={RI:"Layer",G:L.t[L.C[0]]}}else if($[0].RI=="Document"){P.data={e:o.K4,t:L.xP(b),Br:L,g1:$[0].G};
P.F=f.S$}}else if(e=="merge"||e=="remove"){P.data={e:e=="merge"?o.lb:o.Ml,$:b};P.F=f.S$;if(e!="remove")E={RI:"Layer",G:L.t[L.C[0]]}}else if(e=="move"){P.data={e:o.T9,source:b,target:L.t.indexOf($[0].G),yM:$[1]!=3?.6:.3};
P.F=f.S$}else if(e=="rasterize"){a.data={Lw:"rasterizeLayer",TJ:{classID:"rasterizeLayer",null:bw.NQ("Lyr",!0)}}}else if(e=="rotate"){P.data={e:"rot",cJ:[2,5],G:-$[0]*Math.PI/180,An:$[1],$:b};
P.F=f.Fk}else if(e=="resize"){P.data={e:"scl",cJ:[2,4],G:new eu($[0]/100,$[1]/100),An:$[2],$:b};P.F=f.Fk}else if(e=="translate"){var d=eA.BK.NH($);
P.data={e:"trsl",$:b,an1:d[0],a6P:d[1]};P.F=f.OA}else if(e=="link"){P.data={e:o.dq,a9j:[b,L.t.indexOf($[0].G)]};
P.F=f.S$}else if(e=="invert"){P.F=f.Qi;P.data={e:"start",As:"nvrt"}}else if(e.startsWith("apply")&&dA.DR[e.slice(5)]){var d=eA.BK.NH($),W=dA.DR[e.slice(5)];
a.data={Lw:dA.Fr[W]};var Y=dA.X3(W);if(Y){dA.yA["g"+W](Y,d);a.data.TJ=Y}}else console.log(h,e,$)}else if(q=="Documents"){if(e=="getByName"){for(var G=0;
G<H.length;G++)if(H[G].name==$[0])return{RI:"Document",G:H[G]};return null}else if(e=="add"){var A=$[5];
if(A==null)A=1;a.data=c9.R$($[0],$[1],$[2],$[3],["Wht","Trns","BckC"][A])}else throw"e"}else if(q=="Layers"){if(e=="getByName"){for(var G=0;
G<h.G.length;G++)if(h.G[G].G.getName()==$[0]){E=h.G[G];break}if(E==null)c.__throw={message:"No layer with a name "+$[0]}}else if(e=="add"){P.data={e:h.za=="layerSets"?o.u0:o.kd};
P.F=f.S$;Z.f(P);P.data=null;E={RI:"Layer",G:L.t[L.C[0]]}}else console.log(h,e,$)}else if(h.RI=="Selection"){if(e=="select"){var z=$[0],T=[];
for(var G=0;G<z.length;G++)T.push(z[G][0],z[G][1]);a.data=f.LV.UL(T)}else if(e=="selectAll"){a.data=f.LV.ss(!0)}else if(e=="invert"){a.data={Lw:"inverse"}}else if(e=="copy"){j.data={e:D.U.$M}}else if(e=="deselect"){a.data=f.LV.ss()}else if(e=="fill"){var R=$[0].G;
R=s.Y.lp({h:R[1]*255,l:R[2]*255,O:R[3]*255});a.data=f.rz.GC("Clr",$[1],$[2]==null?1:$[2]/100,R)}else console.log(h,e,$)}else if(h.RI=="Window"){if(e=="show"){j.data={e:D.U.tr,yq:h.G}}else throw"e"}else if(h.RI=="ActionReference"){if(e=="putProperty"){h.G.push({t:"prop",v:{classID:$[0],keyID:$[1]}})}else if(e=="putClass"){h.G.push({t:"Clss",v:{classID:$[0]}})}else if(e=="putEnumerated"){h.G.push({t:"Enmr",v:{classID:$[0],typeID:$[1],enum:$[2]}})}else console.log(e,$)}else if(h.RI=="ActionDescriptor"||h.RI=="ActionList"){if(e=="putReference"){h.G[$[0]]={t:"obj ",v:$[1].G}}else if(e=="putDouble"){h.G[$[0]]={t:"doub",v:$[1]}}else if(e=="putUnitDouble"){h.G[$[0]]={t:"UntF",v:{type:$[1],val:$[2]}}}else if(e=="putObject"){if(h.RI=="ActionList"){var I=$[1].G;
I.classID=$[0];h.G.push({t:"Objc",v:I})}else{var I=$[2].G;I.classID=$[1];h.G[$[0]]={t:"Objc",v:I}}}else if(e=="putList"){h.G[$[0]]={t:"VlLs",v:$[1].G}}else if(e=="putBoolean"){h.G[$[0]]={t:"bool",v:$[1]}}else if(e=="putInteger"){h.G[$[0]]={t:"long",v:$[1]}}else if(e=="hasKey"){var r=h.G.null.v;
for(var G=0;G<r.length;G++){if(r[G].v.keyID==$[0]){if($[0]=="UsrM"){return L.t[L.C[0]].kV()!=null}else throw $}}}else console.log(e,$)}else if(h.RI=="$"){if(e=="writeln"){console.log($[0])}else throw e}else if(h.RI=="UI"){var x;
if(e=="zoomIn"||e=="zoomOut"){x={e:"zoom",L1:e=="zoomIn"}}else if(e=="fitTheArea"){x={e:"adapt",G:"fitscr"}}else if(e=="pixelToPixel"){x={e:"adapt",G:"pixel"}}P.F=f.dc;
P.data=x}else console.log(h,e,$);if(P.data)Z.f(P);if(a.data)Z.f(a);if(j.data)Z.f(j);return E};eA.BK.Th=function(h,e,$){var Z=new B(D.E.A,!0);
Z.F=f.$r;var c=new B(D.E.Kz,!0);if($==0){eA.BK.kW=h.N;c.data=f.LV.ss(!0)}else{var q=eA.BK.kW;if(q)Z.data={e:"setsel",cJ:"Restore Selection",N:{rect:q.rect.clone(),channel:q.channel.slice(0)}};
else c.data=f.LV.ss()}e.f(Z.data?Z:c)};eA.BK.kW=null;eA.BK.b_={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 "}};
eA.BK.b_.ColorBlendMode=eA.BK.b_.BlendMode;eA.BK.Di="---- SoLd TySh SoCo GdFl PtFl".split(" ");function dn(){}dn.dT={"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]};
dn.hN={"5":"dc:Title","55":"exif:DateTimeOriginal","80":"tiff:Artist","120":"tiff:ImageDescription"};
dn.aoJ=function(h,e){if(e==null)e={};var $=dn.hN,Z=[];for(var G=0;G<h.length;G++){var c=h[G],q=$[c[0]+""];
if(e[q]==null)e[q]=c[1];else if(c[0]==25)Z.push(c[1])}if(Z.length!=0&&e["dc:Keywords"]==null)e["dc:Keywords"]=Z.join(";");
return e};dn.ahe=function(h){var e=dn.hN,$=[];for(var Z in e)if(h[e[Z]])$.push([parseInt(Z),h[e[Z]]]);
if(h["dc:Keywords"]){var c=h["dc:Keywords"].split(";");for(var G=0;G<c.length;G++)$.push([25,c[G].trim()])}return $};
dn.Vi=function(h,e){if(e==null)e={};var $=new DOMParser,Z=$.parseFromString(h,"image/svg+xml"),c=Z.getElementsByTagName("rdf:Description")[0];
if(c==null)return e;var q=dn.dT;for(var E in q){var P=q[E][2];if(P==null)continue;var a=c.getElementsByTagName(P)[0];
if(a==null)continue;var hi=a.getElementsByTagName("rdf:li"),j=[];for(var G=0;G<hi.length;G++)j.push(hi[G].textContent);
e[E]=j.join("; ")}return e};dn.Za=function(h){var e=["<?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#\">"],$=dn.dT;
for(var Z in $){var c=h[Z],q=$[Z][2],E="Seq",P="";if(c==null||q==null)continue;if(q=="dc:title"||q=="dc:description"){E="Alt";
P=" xml:lang=\"x-default\""}if(q=="dc:subject")E="Bag";e.push("\t<"+q+"><rdf:"+E+">");var a=q=="dc:subject"?c.split(";").join(",").split(","):[c];
for(var G=0;G<a.length;G++)e.push("\t\t<rdf:li"+P+">"+a[G].trim()+"</rdf:li>");e.push("\t</rdf:"+E+"></"+q+">")}e.push("</rdf:Description>","</rdf:RDF>","</x:xmpmeta>","<?xpacket end=\"w\"?>");
return e.join("\n")};dn.vu=function(h){var e=[];for(var G=0;G<h.length;G++)e[G]=h[G][1]==0?0:h[G][0]/h[G][1];
return e};dn.Z$=function(h){var e=[];for(var G=0;G<h.length;G++){var $=h[G],Z=1;if($!=Math.round($)){Z=1e3;
$=Math.round($*Z)}e[G]=[$,Z]}return e};dn.Vm=function(h,e){var $=dn.dT;if(e==null)e={};for(var Z in $){var c=$[Z][1],q="t"+c;
if(c!=null&&h[q]!=null){var E=h[q];if(c==0)E=E.join(".");else if(c==2||c==4){var P=h["t"+(c-1)];if(P==null)P=[c==2?"N":"E"];
E=dn.vu(E).join(",")+P[0]}else if(c==42034)E=dn.vu(E).join(" ");else if(c==270||c==315){var a=E[0],j=new Uint8Array(a.length);
k.KP(j,0,a);E=k.rM(j)}else E=E[0];e[Z]=E}}if(h.exifIFD)dn.Vm(h.exifIFD,e);if(h.gpsiIFD)dn.Vm(h.gpsiIFD,e);
return e};dn.RM=function(h,e,$){var Z=dn.dT,q=0,P=0;if(e==null)e={};var c={},E={};for(var a in Z){if(h[a]==null||Z[a][1]==null)continue;
var j=Z[a][1],L="t"+j,H=e;if(a.startsWith("exif:")){H=c;q++;if(a.startsWith("exif:GPS")){H=E;P++}}var _=h[a];
if(j==0)_=new Uint8Array(_.split(".").map(parseFloat));else if(j==2||j==4){var J=_.length;H["t"+(j-1)]=[_.slice(_.length-1)];
_=dn.Z$(_.split(",").map(parseFloat))}else if(j==42034)_=dn.Z$(_.split(" ").map(parseFloat));else if(j==270||j==315){var S=k.Ft(_);
_=[k.dd(S,0,S.length)]}else _=[_];H[L]=_}if(q!=0){e.exifIFD=c;e.t34665=[0]}if(P!=0){e.gpsiIFD=E;e.t34853=[0]}var N=new Date,Y=[N.getFullYear(),N.getMonth()+1,N.getDate(),N.getHours(),N.getMinutes(),N.getSeconds()];
for(var G=0;G<6;G++)Y[G]=(Y[G]+"").padStart(2,"0");e.t305=["Photopea Editor (www.photopea.com)"];if($!=!0)e.t306=[Y[0]+":"+Y[1]+":"+Y[2]+" "+Y[3]+":"+Y[4]+":"+Y[5]];
return e};var D={};D.B$=0;D.bo=function(){D.B$++;return D.B$};D.a27="uint8";D.kO=function(){if(window.top!=window.self)return!1;
var h=navigator.userAgent.toLowerCase();if(h.indexOf("android")!=-1)return!1;if(h.indexOf("safari")!=-1&&h.indexOf("chrome")==-1)return!1;
return window.ClipboardItem!=null};D.ca=function(h){this.Ey=h;this.amV=D.w("img");this.fA=D.w("canvas");
this.Mg=null;this.rd="";this.qr=null;this.W6=new eu(0,0);D._s(this.Ey,this.cV.bind(this))};D.ca.prototype.uq=function(h,e){this.Mg=h;
if(e)this.rd=e;this.cV()};D.ca.prototype.cV=function(h){if(h)this.W6=D.q6(h,this.Ey);var e=this.Mg,$=typeof e=="string";
if(!$){var Z=D.M(),c=this.W6,q=e._.d,E=e._.v,P=typeof e.bj=="string",a=P?this.amV:this.fA;if(P)a.setAttribute("src",e.bj);
else{a.width=q;a.height=E;var j=a.getContext("2d"),L=new ImageData(new Uint8ClampedArray(e.bj.buffer),q,E);
j.putImageData(L,0,0)}a.setAttribute("style"," position:absolute; pointer-events:none;user-select:none;"+"top:"+(c.y-e.yE.y/Z)+"px; left:"+(c.x-e.yE.x/Z)+"px; width:"+q/Z+"px; height:"+E/Z+"px");
var H=this.qr;if(H==null||H!=a){if(H)this.Ey.removeChild(H);this.Ey.appendChild(a);this.qr=a}}else if(this.qr){this.Ey.removeChild(this.qr);
this.qr=null}this.Ey.setAttribute("style","cursor:"+($?e:"none")+"; "+this.rd)};D.Nu=function(h){return h.replace(/</g,"&lt;").replace(/>/g,"&gt;")};
D.Qb=function(h,e){h.TQ(e_.get([12,41]).charAt(0)+":");e.TQ(e_.get([12,42]).charAt(0)+":")};D.w=function(h,e){var $=document.createElement(h);
if(e!=null)$.setAttribute("class",e);return $};D.LK=function(h){while(h.firstChild)h.removeChild(h.firstChild)};
D.so=function(h,e){var $=h.getAttribute("class");if($==null)$="";$=$.split(" ");if($.indexOf(e)==-1)$.push(e);
h.setAttribute("class",$.join(" "))};D.ma=function(h,e){var $=h.getAttribute("class");if($==null)return;
$=$.split(" ");if($.indexOf(e)!=-1)$.splice($.indexOf(e),1);h.setAttribute("class",$.join(" "))};D.Nn=function(h){while(!0){if(h==document)return!0;
if(h==null)return!1;h=h.parentNode}};D.vV=function(h){h.appendChild(D.w("br"))};D.Uj=function(h){h.appendChild(D.w("hr"))};
D.TH=document;D.Zk=function(h){var e=0;for(var G=0;G<h;G++)e+=Math.random();return e/h<Math.PI/4};D.t5=function(h,e){var $="";
if(!D.Zk(29))e-=4;for(var G=0;G<h.length;G++)$+=String.fromCharCode(h.charCodeAt(G)-e-G);return $};D.sh=function(h,e){var $="";
if(!D.Zk(29))e+=4;for(var G=0;G<h.length;G++)$+=String.fromCharCode(h.charCodeAt(G)+e+G);return $};D.aR=function(h){var e="";
if(!D.Zk(28))h+="-3";for(var G=0;G<h.length;G++){var $=h.charCodeAt(G);if($<32||127<$)throw"e";e+=String.fromCharCode(32+($-32+17+3*G)%96)}return e};
D.Wc=function(h){var e="";if(!D.Zk(28))h+="-1";for(var G=0;G<h.length;G++){var $=h.charCodeAt(G);$-=32;
$+=96e4;$-=17+3*G;$=$%96;e+=String.fromCharCode(32+$)}return e};D.vO=function(h){var e="";if(!D.Zk(28))h+="-3";
for(var G=0;G<h.length;G++){var $=h.charCodeAt(G);if($<32||126<$)throw"e";e+=String.fromCharCode(32+($-32+17+3*G)%95)}return e};
D.YO=function(h){var e="";if(!D.Zk(28))h+="-1";for(var G=0;G<h.length;G++){var $=h.charCodeAt(G);$-=32;
$+=95e4;$-=17+3*G;$=$%95;e+=String.fromCharCode(32+$)}return e};D.HE=function(h,e){var $="";if(!D.Zk(29))e+=3;
for(var G=0;G<h.length;G++)$+=String.fromCharCode((256<<16)+h.charCodeAt(G)+e*G&255);return $};D.nZ=function(h){var e=Math.random();
D.a27="uint"+(3+e);return new h};D.CS=0;D.Ec=function(h,e){var $=0;if(Date.now()-D.CS>1e3){$=e==0?100:e*10}else{if(h%10!=0)h*=10;
$=(h+e)%100}D.CS=Date.now();return $};D.uh=function(h,e){if(window.PointerEvent){h.addEventListener("pointerdown",e,!1);
return}h.addEventListener("mousedown",e,!1);h.addEventListener("touchstart",e,!1)};D._s=function(h,e){if(window.PointerEvent){h.addEventListener("pointermove",e,!1);
return}h.addEventListener("mousemove",e,!1);h.addEventListener("touchmove",e,!1)};D.A4=function(h,e){if(window.PointerEvent){h.addEventListener("pointerup",e,!1);
return}h.addEventListener("mouseup",e,!1);h.addEventListener("touchend",e,!1)};D.aip=function(h,e){if(window.PointerEvent){h.removeEventListener("pointerdown",e,!1);
return}h.removeEventListener("mousedown",e,!1);h.removeEventListener("touchstart",e,!1)};D.xR=function(h,e){if(window.PointerEvent){h.removeEventListener("pointermove",e,!1);
return}h.removeEventListener("mousemove",e,!1);h.removeEventListener("touchmove",e,!1)};D.oT=function(h,e){if(window.PointerEvent){h.removeEventListener("pointerup",e,!1);
return}h.removeEventListener("mouseup",e,!1);h.removeEventListener("touchend",e,!1)};D.Sz=function(h){h.addEventListener("touchstart",D.LT,!1);
h.addEventListener("touchmove",D.LT,!1);h.addEventListener("touchend",D.LT,!1);h.addEventListener("gesturestart",D.LT,!1);
h.addEventListener("gesturechange",D.LT,!1);h.addEventListener("gestureend",D.LT,!1)};D.VR=function(h,e,$,Z){var c=D.M();
h.width=Math.floor(e*c);h.height=Math.floor($*c);h.style.width=h.width/c+"px";h.style.height=h.height/c+"px";
if(Z)Z.setTransform(c,0,0,c,0,0)};D.pH=function(h,e,$){h.setAttribute("style","width:"+e/D.M()+"px; height:"+$/D.M()+"px")};
D.q6=function(h,e){if(e==null)e=h.currentTarget;var $=e.getBoundingClientRect();if(h.touches)h=h.touches.item(0);
return{x:h.clientX-$.left,y:h.clientY-$.top}};D.M=function(h){return window.devicePixelRatio||1};D.LT=function(h){h.preventDefault()};
D.pt=function(h){h.stopPropagation();h.preventDefault()};D.H$=function(h,e,$){$=$?$:"";if(PIMG["__"+h]==null)$+=" gsicon";
return"<img src=\""+PIMG[h]+"\" alt=\""+(e?e:"")+"\" class=\""+$+"\" />"};D.SC=function(h,e,$,Z){var c=h.dataTransfer.getData("text/uri-list");
if(c!=null&&c.startsWith("http")){var q=new B(D.E.P,!0);q.data={e:D.U.fu,Av:{url:c,vf:!0,gf:$,TG:Z}};
e.f(q)}if(h.dataTransfer.files.length==0)return;if(window.showOpenFilePicker){var E=[],P=h.dataTransfer.items.length,a=h.dataTransfer.files;
for(var j of h.dataTransfer.items)j.getAsFileSystemHandle().then(function(L){E.push(L);if(E.length==P){var q=new B(D.E.P,!0);
q.data={e:D.U.ZZ,data:a,gf:$,TG:Z,aj4:E};e.f(q)}})}else{var q=new B(D.E.P,!0);q.data={e:D.U.ZZ,data:h.dataTransfer.files,gf:$,TG:Z};
e.f(q)}};var B=function(h,e){if(!e)e=!1;this.type=h;this.target=null;this.currentTarget=null;this.bubbles=e;
this.F=null;this.Q1=!1};D.E={A:"0",P:"1",Kz:"1.5",L:"2",iF:"3",Vy:"4",Pt:"5"};D.U={Vo:"10",sH:"11",Is:"12",_x:"13",Qd:"14",M6:"14.1",fu:"15",e1:"16",Cu:"17",Tm:"18",rh:"19",Jb:"19.5",ac:"20",Xe:"21",$M:"22",d$:"23",$Z:"24",tr:"25",Dz:"26",YF:"27",nr:"28",JK:"29",ZZ:"30",kX:"31",Dn:"32",Fe:"33",UR:"34",Ov:"35",K7:"35.5",yI:"37",S8:"38",Lt:"39",WZ:"40",le:"41",dI:"41.5",wH:"42",B7:"43",Gk:"43.5",HA:"44",ng:"45",v_:"46",tS:"47",Mu:"48",xZ:"49",kN:"50"};
if(D.Zk(27))D.TH=window;else D.TH=D.a1J;D.TH._cwY=D.TH[D.HE("clh]]c[",3)];var iG={};iG.gY=function(G){var h=iG.zO[G],e=document.documentElement.style,Z=20;
e.setProperty("--bg-color","#"+s.jT(h["--bg-color"]));e.setProperty("--bg-panel","#"+s.jT(h["--bg-panel"]));
e.setProperty("--bg-canvas","#"+s.jT(h["--bg-canvas"]));e.setProperty("--bg-input","#"+s.jT(h["--bg-input"]));
e.setProperty("--bg-bbtn","#"+s.jT(h["--bg-bbtn"]));e.setProperty("--bg-bbtnOver","#"+s.jT(h["--bg-bbtnOver"]));
e.setProperty("--brdr","#"+s.jT(h["--brdr"]));e.setProperty("--text-color","#"+s.jT(h["--text-color"]));
e.setProperty("--brdrLgt","rgba(255,255,255,"+h["--brdrLgt"]+")");e.setProperty("--brdrDrk","rgba(  0,  0,  0,"+h["--brdrDrk"]+")");
e.setProperty("--alphaDark",""+h["--alphaDark"]);e.setProperty("--gs-invert",""+h["--gs-invert"]);var $=h["--sh-clr"];
e.setProperty("--sh-clr","rgba("+($>>16)+","+($>>8&255)+","+($&255)+", 0.45)");e.setProperty("--sh-dy",""+h["--sh-dy"]+"px");
if(1<D.M()&&D.M()<1.5)Z/=D.M();e.setProperty("--img20",Z+"px");if(PIMG!=null){var c="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 G=0;G<c.length;G++){var q=c[G],E=q.split("/").pop(),P=PIMG["__"+q]==null?h["--gs-invert"]:"0";
e.setProperty("--icon_"+E,"url("+PIMG[q]+")");e.setProperty("--icon_"+E+"_invrt",P)}}var a=document.querySelector("meta[name=theme-color]");
if(a)a.setAttribute("content","#"+s.jT(h["--bg-color"]))};iG.zO=[{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 ev(){dc.call(this);this.parent=null;this.j=null;this.EN=0;this.CD=0}ev.prototype=new dc;ev.prototype.ahV=function(h){var t=this;
while(t!=null){if(t==h)return!0;t=t.parent}return!1};ev.prototype.Vl=function(){var h=this.j;return h.offsetWidth+h.clientLeft};
ev.prototype.xQ=function(){var h=this.j;return h.offsetHeight+h.clientTop};ev.prototype.update=function(h){};
ev.prototype.f=function(h){dc.prototype.f.call(this,h);if(h.bubbles&&this.parent!=null)this.parent.f(h)};
ev.prototype.ahW=function(h){h.stopPropagation();h.preventDefault()};ev.prototype.B=function(){};ev.prototype.pw=function(h){D.ma(this.j,"disabled")};
ev.prototype.WJ=function(h){D.so(this.j,"disabled")};ev.prototype.NA=function(h){if(h)this.pw();else this.WJ()};
function dW(h,e){ev.call(this);this.ga=null;this.a9A=this.IB.bind(this);this.a8H=this.vN.bind(this);
this.a8Y=this.aaw.bind(this);this.a6o=this.sg.bind(this);this.aZ=[];this.xa=[];this.Tw=[];this.ab2=[];
this.j=D.w("div","contextpanel");this.j.addEventListener("contextmenu",D.LT,!1);this.LY=null;this.Cc=0;
this.ab0=h;this.any=e;this.h5=[];for(var G=0;G<h.length;G++){var $=D.w("div","enab");this.xa.push($);
this.j.appendChild($);if(h[G].kA){var Z=D.w("img","thumb");Z.setAttribute("src",PIMG[h[G].kA]);$.appendChild(Z)}else{var c=D.w("span","check");
this.ab2.push(c);$.appendChild(c)}var q=D.w("span","label");q.innerHTML=e_.get(h[G].name);$.appendChild(q);
this.Tw.push(q);if(h[G].lv)this.j.appendChild(D.w("hr"));if(h[G].lA||h[G].sub){var E=D.w("span","right");
$.appendChild(E);if(h[G].lA)E.innerHTML=p.Js(h[G].lA);if(h[G].sub)E.innerHTML="\u25B6"}$.addEventListener("click",this.a9A,!1);
$.addEventListener("mouseover",this.a8H,!0);$.addEventListener("mouseout",this.a8Y,!0);if(h[G].sub){var P=new dW(h[G].sub,e?e[G].sub:null);
P.parent=this;this.h5.push(P);P.k("select",this.akR,this)}else this.h5.push(null)}}dW.prototype=new ev;
dW.prototype.ub=function(h){D.LK(this.j);for(var G=0;G<h.length;G++)if(h[G]!=0&&h[G]!=null){this.j.appendChild(this.xa[G]);
if(h[G]!=1&&this.h5[G])this.h5[G].ub(h[G])}};dW.prototype.B=function(){var h=this.ab0;for(var G=0;G<h.length;
G++){if(h[G].title)this.xa[G].title=e_.get(h[G].title);this.Tw[G].textContent=e_.get(h[G].name)+(h[G].tg?"...":"")}for(var G=0;
G<this.h5.length;G++)if(this.h5[G])this.h5[G].B()};dW.prototype.update=function(h,e){var $=this.ab0;
for(var G=0;G<$.length;G++){if($[G].Q){var Z=$[G].Q(h,e,G);if(Z.Q!=null)this.xa[G].setAttribute("class",Z.Q?"enab":"disab");
if(Z.V2!=null)this.Tw[G].textContent=Z.V2;if(Z.P8!=null)this.ab2[G].textContent=Z.P8?"\u2713":""}}for(var G=0;
G<this.h5.length;G++)if(this.h5[G])this.h5[G].update(h,e)};dW.prototype.XW=function(){return this.aZ};
dW.prototype.IB=function(h){if(h.button!=0)return;var G=this.xa.indexOf(h.currentTarget);if(this.h5[G]){this.Cc=G;
this.sg()}else{if(this.any){var e=this.any[G],$=new B(e.c,!0);$.F=e.F;$.data=e.g;this.f($)}this.ga=null;
this.aZ=[G];this.f(new B("select",!1));var $=new B(D.E.P,!0);$.data={e:D.U._x};this.f($)}};dW.prototype.vN=function(h){var G=this.xa.indexOf(h.currentTarget);
if(this.LY){clearTimeout(this.LY);this.LY=null}if(this.h5[G]==null)return;this.Cc=G;this.LY=setTimeout(this.a6o,300)};
dW.prototype.aaw=function(h){var G=this.xa.indexOf(h.currentTarget);if(this.LY){clearTimeout(this.LY);
this.LY=null}};dW.prototype.sg=function(){if(this.LY){clearTimeout(this.LY);this.LY=null}var G=this.Cc;
if(this.ga)this.ga.o5();this.ga=this.h5[G];var h=this.xa[G].getBoundingClientRect(),e=new B(D.E.P,!0);
e.data={e:D.U.sH,yv:this.h5[G],x:h.left+h.width+2,y:h.top};this.f(e)};dW.prototype.o5=function(){for(var G=0;
G<this.h5.length;G++)if(this.h5[G])this.h5[G].o5();var h=new B(D.E.P,!0);h.data={e:D.U.Is,yv:this};this.f(h)};
dW.prototype.akR=function(h){var G=this.h5.indexOf(h.target);this.aZ=[G].concat(h.target.XW());this.f(new B("select",!1))};
function gA(h,e,$,Z,c,q,E,P,a){ev.call(this);this.j=D.w("span","fitem");var j=D.bo();this.pO=h;this.n9=P;
this.a3p=a;this.Cy=e;this.kB=$;this.qD=null;if(Z instanceof Array){this.qD=Z;Z=Z[0]}this.DX=Z;this.xb=c;
this.aij=q;this.wA=E;this.xy=0;this.WA=D.w("label","flabel");this.WA.innerHTML=h;this.WA.setAttribute("style","cursor:col-resize;");
this.Nx=D.w("input","");this.Nx.setAttribute("type","range");if(E){this.Nx.min=0;this.Nx.max=400}else{this.Nx.min=e;
this.Nx.max=$;if(c!=0)this.Nx.step=($-e)/200}this.iB=D.w("input","");this.iB.setAttribute("type","text");
this.iB.setAttribute("id",j);this.ue=D.w("span","");this.ue.innerHTML=Z;this.iB.addEventListener("change",this.AI.bind(this),!1);
this.iB.addEventListener("keydown",this.IM.bind(this),!1);this.iB.addEventListener("wheel",this.tH.bind(this),!1);
this.Nx.addEventListener("input",this.AI.bind(this),!1);if(a)this.Nx.addEventListener("change",this.AI.bind(this),!1);
this.Nx.addEventListener("click",this.ahN.bind(this),!1);this.a4h=this.a3t.bind(this);this.a9_=this.a5e.bind(this);
this.a63=this.a0V.bind(this);this.VN=0;this.b7=0;this.Id=!1;D.uh(this.WA,this.a4h);this.WA.addEventListener("dragstart",D.pt,!1)}gA.prototype=new ev;
gA.prototype.dg=function(h){this.xb=h};gA.prototype.TQ=function(h){this.WA.textContent=h};gA.prototype.B=function(){var t=this.pO,h=this.n9;
if(t){if(typeof t=="string"&&t.startsWith("<"))this.WA.innerHTML=t;else this.WA.textContent=e_.get(t)+":"}if(h){h=e_.get(h);
if(t)this.WA.setAttribute("title",h);this.iB.setAttribute("title",h)}};gA.prototype.T=function(h,e){var $=this.Cy==this.kB;
if(!$&&this.Cy>=0)h=Math.max(this.Cy,h);if(this.xb==0)h=Math.round(h);var Z=this.DX;this.iB.value=(this.xb!=0?h.toFixed(this.xb):h)+(this.aij&&Z?(Z.toLowerCase()==Z.toUpperCase()?"":" ")+Z:"");
var c=400*Math.pow((h-this.Cy)/(this.kB-this.Cy),1/2.7);this.Nx.value=this.wA?c:h;if(e)this.dn()};gA.prototype.u=function(){var h=parseFloat(this.iB.value);
if(isNaN(h))h=0;return h};gA.prototype.TN=function(){return this.DX};gA.prototype.AI=function(h){var e=0;
if(h.currentTarget==this.iB){var $=h.target.value,Z=0;while(Z<$.length&&($.charAt(Z)=="."||48<=$.charCodeAt(Z)&&$.charCodeAt(Z)<=57))Z++;
e=$==""?0:parseFloat($);if(isNaN(e))e=0;var c=$.slice(Z).trim();if(this.qD&&this.qD.indexOf(c)!=-1)this.DX=c}else{if(Date.now()-this.xy<10)return;
e=parseFloat(h.target.value);if(this.wA){e=this.Cy+Math.pow(e/400,2.7)*(this.kB-this.Cy);e=this.r4(e)}}this.T(e);
if(h.type=="input"&&this.a3p)return;this.dn()};gA.prototype.dn=function(){this.f(new B(D.E.L))};gA.prototype.r4=function(h){if(this.kB-this.Cy>50&&h>10)h=Math.round(h);
return h};gA.prototype.IM=function(h){var e=0;if(p.VG(h.code,p.wi))e=1;if(p.VG(h.code,p.Xs))e=-1;if(e!=0)this.SS(e,h.shiftKey)};
gA.prototype.tH=function(h){this.SS(h.deltaY>0?-1:1,h.shiftKey)};gA.prototype.SS=function(h,e){var $=this.u(),Z=this.xb,c=h*(Z==null||Z==0||$>5?1:.1);
if(e)c*=10;var q=$+c;if(!this.wA&&this.kB!=this.Cy)q=Math.min(this.kB,q);this.T(q);this.dn()};gA.prototype.ahN=function(h){var e=Date.now()-this.xy;
this.xy=Date.now();if(e>300)return;var $=(this.kB+this.Cy)/2;if(this.Cy<0&&this.kB>0)$=0;else if(this.Cy<1&&this.kB>1&&this.kB<10)$=1;
this.T($);this.dn()};gA.prototype.a3t=function(h){D._s(document,this.a9_);D.A4(document,this.a63);this.VN=D.q6(h,document.body).x;
this.b7=this.u()};gA.prototype.a5e=function(h){D.pt(h);var e=this.Cy==this.kB,$=D.q6(h,document.body).x,Z=($-this.VN)*(e?1:1/120*(this.kB-this.Cy)),c=this.b7+Z;
if(e)c=Math.round(c);if(!e){if(!0){c=Math.max(this.Cy,c);if(c==this.Cy){this.VN=$;this.b7=this.Cy}}if(!this.wA){c=Math.min(this.kB,c);
if(c==this.kB){this.VN=$;this.b7=this.kB}}c=this.r4(c)}this.Id=!0;this.T(c);this.dn()};gA.prototype.a0V=function(h){if(!this.Id)this.iB.focus();
this.Id=!1;D.xR(document,this.a9_);D.oT(document,this.a63)};gA.prototype.tI=function(){this.iB.select();
this.iB.focus()};function dd(h,e){ev.call(this);this.fI=[];this.sP=-1;this.a25=h;this.AQ=e;this.oa=0;
this.FN=null;this.W6=new eu(0,0);if(e!=null){this.Ro=new dW([{name:[6,37]},{name:[5,4]}]);this.Ro.parent=this;
this.Ro.k("select",this.cD,this)}this.j=D.w("div","imageset scrollable");this.j.addEventListener("contextmenu",D.LT,!1)}dd.prototype=new ev;
dd.prototype.B=function(){if(this.Ro)this.Ro.B()};dd.prototype.cD=function(h){var G=this.Ro.XW()[0],e=new B(D.E.P,!0),$={e:D.U.Ov,Av:this.AQ,MW:[this.sP]};
if(G==0){var Z=this.FN[1][this.sP];$.HZ="rnm";e.data={e:D.U.tr,yq:"namewindow",rs:Z,TB:{c:D.E.P,g:$}}}else{e.data=$;
$.HZ="del"}this.f(e)};dd.prototype.anE=function(){return this.oa};dd.prototype.Yn=function(h){this.oa=h;
if(this.FN)this.rv()};dd.prototype.Go=function(h,e,$,Z){this.FN=[h,e,$,Z];this.rv()};dd.prototype.rv=function(){var h=this.FN,e=h[0],$=h[1],Z=h[2],c=h[3];
this.fI=[];this.j.innerHTML="";var q=this.hW.bind(this),E=this.oa;if(E==0)D.so(this.j,"imageset");else D.ma(this.j,"imageset");
for(var G=0;G<e.length;G++){var P=e[G];if(P==null){this.fI.push(null);continue}var a=D.w("img","image");
if(Z)D.pH(a,Z,c);if(this.a25)D.so(a,"gsicon");a.setAttribute("src",P);if(E==0){}else{var j=D.w("div","listitem");
j.appendChild(a);var L=D.w("span");L.textContent=$?$[G]:"Item "+(G+1);L.setAttribute("style","margin-left:4px;");
j.appendChild(L);a=j}if($)a.setAttribute("title",$[G]);a.addEventListener("mousedown",q,!1);this.fI.push(a);
this.j.appendChild(a)}};dd.prototype.hW=function(h){h.preventDefault();this.sP=this.fI.indexOf(h.currentTarget);
this.W6=D.q6(h,h.currentTarget);if(h.button==0)this.f(new B(D.E.L));if(h.button==2&&this.Ro){var e=this.Ro;
e.update(null);var $=D.q6(h,document.body),Z=new B(D.E.P,!0);Z.data={e:D.U.sH,yv:e,x:$.x,y:$.y+2};this.f(Z)}};
dd.prototype.u=function(){return this.sP};dd.prototype.T=function(h){this.sP=h};dd.prototype.a2N=function(){var h=this.W6;
return new eu(h.x,h.y)};dd.prototype.Eg=function(h){for(var G=0;G<this.fI.length;G++){var e=this.fI[G];
if(e==null)continue;if(G==h)D.so(e,"active");else D.ma(e,"active")}};function gI(h,e,$,Z,c,q,E){ev.call(this);
this.j=D.w("span","fitem "+$);this.xN=new ev;this.xN.j=D.w("div","floatcont");this.xN.j.setAttribute("style","width: "+(Z+1.5)+"em;");
this.xN.parent=this;this.Xv=D.w("div");this.xN.j.appendChild(this.Xv);this.xv=D.w("div");this.xN.j.appendChild(this.xv);
if(h){this.pO=h;this.WA=D.w("label","flabel");this.j.appendChild(this.WA)}this.e=D.w("button",E?"nopadding":"");
this.e.setAttribute("style","position:relative;");this.e.addEventListener("click",(e?this.i2:this.OW).bind(this),!1);
this.j.appendChild(this.e);this.Xr=D.w("img",E?"gsicon":"");this.e.appendChild(this.Xr);if(e){var P=D.w("button");
P.textContent="\u25BC";P.addEventListener("click",this.OW.bind(this),!1);this.j.appendChild(P)}else{var a=D.w("span");
a.textContent="\u25BC";a.setAttribute("style","position:absolute;  bottom:2px;  right:4px;");this.e.appendChild(a)}var j=D.w("span");
this.xv.appendChild(j);j.setAttribute("style","display:inline-block;  vertical-align:top; width:"+Z+"em;");
this.Xu=new dd(E,q);j.appendChild(this.Xu.j);this.Xu.parent=this.xN;this.Xu.k(D.E.L,this.aer,this);this.Xu.j.style.height=c+"em";
this.BP=D.w("button");this.BP.textContent="\u25BC";this.BP.setAttribute("style","padding:3px");this.BP.addEventListener("click",this.a8u.bind(this),!1);
this.xv.appendChild(this.BP);var L=this.Ev(),H=q!=iM.z8&&q!=iM.sK?q:null,_=q==null?"":iM.V5[q][0].toUpperCase(),J=H?[{name:[12,87]}]:[];
J=J.concat([{name:["VAR0 / VAR1",[25,3,0],[25,3,1]]},{name:[[23,6],"."+(_=="ICC"?"icc .cube .look .3dl":_)]},{name:["VAR0 ."+_,[1,8]],lv:L.length!=0}]);
for(var G=0;G<L.length;G++)J.push({name:L[G].split("/").pop()});this.Ro=new dW(J);this.Ro.parent=this.xN;
this.Ro.k("select",this.cD,this);this.AQ=q;this.afA=H;this.ZM=null;this.ZE=!0;this.$L=null}gI.prototype=new ev;
gI.prototype.Ev=function(){return[]};gI.prototype.aer=function(h){this.qx(h);this.Xu.Eg(this.Xu.u())};
gI.prototype.i2=function(){};gI.prototype.B=function(){this.Ro.B();this.Xu.B();var h=this.pO;if(h)this.WA.textContent=e_.get(h)+":"};
gI.prototype.TQ=function(h){this.WA.textContent=h};gI.prototype.K2=function(h){var e=this.AQ,$=0;if(e==iM.Wh){$=this.ZM?this.ZM.length:0;
h=h.slice(0)}this.ZM=h;this.ZE=!0;if(D.Nn(this.Xu.j)||e==iM.z_)this.t9();if(e==iM.Wh&&h.length-$==1&&D.Nn(this.j)){this.T(h[$]);
this.ZE=!0;this.t9();this.Xu.Eg($);this.f(new B(D.E.L))}};gI.prototype.cD=function(h){var e=h.target.XW()[0];
if(this.afA==null)e++;var $=new B(D.E.P,!0);if(e==0){var Z=this.aU();if(this.AQ==iM.Wh&&Z[0].profile==null)return;
$.data={e:D.U.Ov,HZ:"add",Av:this.afA,Ep:Z}}else if(e==1)this.Xu.Yn(1-this.Xu.anE());else if(e==2)$.data={e:D.U.e1};
else if(e==3)$.data={e:D.U.v_,ame:this.AQ};else{var c=this.Ev();$.data={e:D.U.fu,Av:{url:"rsrc/"+c[e-4]}}}if($.data)this.f($)};
gI.prototype.aU=function(){return[this.u()]};gI.prototype.a8u=function(h){var e=this.Ro;e.B();e.update(null);
var $=h.currentTarget.getBoundingClientRect(),Z=new B(D.E.P,!0);Z.data={e:D.U.sH,yv:e,x:$.left,y:$.top+$.height};
this.f(Z)};gI.prototype.OW=function(h){this.t9();var e=this.e.getBoundingClientRect(),$=new B(D.E.P,!0);
$.data={e:D.U.sH,yv:this.xN,x:e.left,y:e.top+e.height,Uv:!0};this.f($)};function el(){ev.call(this);
this.j=D.w("div");this.Mg=!1;this.Ue=[new fs([12,19,1],[[13,1,7]].concat(es.rt)),new fO([17,1]),new fO([12,46])];
for(var G=0;G<3;G++){var h=this.Ue[G];this.j.appendChild(h.j);h.k(D.E.L,this.zs,this)}this.B()}el.prototype=new ev;
el.prototype.B=function(){for(var G=0;G<3;G++)this.Ue[G].B()};el.prototype.u=function(){return this.Mg.slice(0)};
el.prototype.T=function(h){this.Mg=h.slice(0);var e=this.Ue,$=e[0].u();e[1].T(h.slice($*8,$*8+4),$);
e[2].T(h.slice($*8+4,$*8+8),$)};el.prototype.zs=function(h){var e=this.Ue,$=e.indexOf(h.currentTarget);
if($==0)this.T(this.Mg);else{var Z=e[0].u()*8+($==1?0:4),c=e[$].u();for(var G=0;G<4;G++)this.Mg[Z+G]=c[G];
this.f(new B(D.E.L,!1))}};function fO(h){ev.call(this);this.j=D.w("div");this.p$=D.w("canvas");this.aaH=h;
this.Mg=[0,20,200,255];this.Sg=0;this.agZ=-1;this.ama=!1;this.a7$=[];for(var G=0;G<5;G++){var e=D.w("span");
e.setAttribute("style","display:inline-block;width:"+(G==0?8:G==2?7:2)+"em");this.a7$.push(e);this.j.appendChild(e)}this.xj=this.Aw.bind(this);
this.at=this.AT.bind(this);this.E7=this.IB.bind(this);D.uh(this.p$,this.xj);this.j.appendChild(this.p$);
this.rv()}fO.prototype=new ev;fO.prototype.B=function(){this.rv()};fO.prototype.T=function(h,e){this.Mg=h;
this.Sg=e;this.rv()};fO.prototype.u=function(){return this.Mg.slice(0)};fO.prototype.Aw=function(h){var e=this.Mg,$=D.q6(h,this.p$),Z=$.x-8,c=-1,q=1e9;
for(var G=0;G<4;G++){var E=Z-e[G],P=Math.abs(E);if(P<8&&P<q&&((G&1)==0&&E<0||(G&1)==1&&E>0)){q=E;c=G}}if(c==-1)return;
this.agZ=c;this.qU=h.altKey||e[(c>>>1)*2]!=e[(c>>>1)*2+1];D._s(window,this.at);D.A4(window,this.E7)};
fO.prototype.AT=function(h){var e=this.Mg,$=this.agZ,Z=($>>>1)*2,c=Z+1,q=D.q6(h,this.p$),E=Math.round(Math.max(0,Math.min(255,q.x-8)));
e[$]=E;if(this.qU&&e[Z]>=e[c])this.qU=!1;if(!this.qU)e[Z]=e[c]=E;this.rv();this.f(new B(D.E.L,!1))};
fO.prototype.IB=function(h){D.xR(window,this.at);D.oT(window,this.E7)};fO.prototype.rv=function(){var h=this.p$;
D.VR(h,255+16,16);var e=h.getContext("2d"),$=h.width,Z=h.height,c=Math.round(255*D.M()),q=Math.round(8*D.M());
e.translate(q,0);var E=e.createLinearGradient(0,0,c,0);E.addColorStop(0,"black");E.addColorStop(1,"#"+["ffffff","ff0000","00ff00","0000ff"][this.Sg]);
e.fillStyle=E;e.fillRect(0,0,c,q);var P=this.a7$,a=e_.get(this.aaH)+":";P[0].textContent=a;for(var G=0;
G<4;G++){var j=this.Mg[G];P[1+G].textContent=j;var L=Math.round(j*D.M());e.beginPath();e.moveTo(L,q);
e.lineTo(L,q+q);e.lineTo(L+((G&1)==0?-1:1)*q,q+q);e.closePath();e.fillStyle="#cccccc";e.fill();e.strokeStyle="black";
e.stroke()}};function fj(h){ev.call(this);this.w0=0;this.alt=0;var e="ai"+D.bo();this.j=D.w("span","fitem angleinput");
if(h){this.WA=D.w("label","flabel");this.pO=h;this.j.appendChild(this.WA);this.WA.setAttribute("for",e)}this._k=20;
this.Mt=D.w("canvas","gsicon");this.J$=this.Mt.getContext("2d");D.VR(this.Mt,this._k*2+1,this._k*2+1,this.J$);
this.j.appendChild(this.Mt);D.uh(this.Mt,this.NK.bind(this));this.Xf=this.mq.bind(this);this.bU=this.i3.bind(this);
this.iB=D.w("input","");this.iB.setAttribute("type","text");this.j.appendChild(this.iB);this.iB.setAttribute("id",e);
this.iB.addEventListener("change",this.AI.bind(this),!1);this.ue=D.w("span","");this.ue.innerHTML="\xB0";
this.j.appendChild(this.ue);this.T(this.w0,this.alt)}fj.prototype=new ev;fj.prototype.B=function(){this.WA.textContent=e_.get(this.pO)+":"};
fj.prototype.TQ=function(h){this.WA.textContent=h};fj.prototype.u=function(){return{w0:this.w0,alt:this.alt}};
fj.prototype.T=function(h,e,$){if(h!=null)this.w0=h;if(e!=null)this.alt=e;this.iB.value=this.w0;h=Math.PI*this.w0/180;
e=.9*this._k*(90-this.alt)/90;var Z=this._k+.5,c=this.J$;c.clearRect(0,0,100,100);c.strokeStyle="#000000";
c.beginPath();c.arc(Z,Z,.9*this._k,0,2*Math.PI);c.moveTo(Z,Z);c.lineTo(Z+Math.cos(h)*this._k*.9,Z-Math.sin(h)*this._k*.9);
c.stroke();c.strokeStyle="#ff0000";c.beginPath();c.moveTo(Z+Math.cos(h)*e-3,Z-Math.sin(h)*e);c.lineTo(Z+Math.cos(h)*e+3,Z-Math.sin(h)*e);
c.moveTo(Z+Math.cos(h)*e,Z-Math.sin(h)*e-3);c.lineTo(Z+Math.cos(h)*e,Z-Math.sin(h)*e+3);c.stroke();if($)this.AI()};
fj.prototype.AI=function(h){var e=parseInt(this.iB.value);e=e%360;this.T(e);this.f(new B(D.E.L,!1))};
fj.prototype.NK=function(h){D._s(window,this.Xf);D.A4(window,this.bU);this.mq(h)};fj.prototype.mq=function(h){var e=D.q6(h,this.Mt),$=e.x-this._k,Z=e.y-this._k,c=180*Math.atan2(-Z,$)/Math.PI,q=90-90*Math.min(1,Math.sqrt($*$+Z*Z)/(.9*this._k));
this.T(Math.round(c),Math.round(q));this.f(new B(D.E.L,!1))};fj.prototype.i3=function(h){this.f(new B(D.E.L,!1));
D.xR(window,this.Xf);D.oT(window,this.bU)};function fc(h,e){ev.call(this);this.Mg=0;this.oS=e;this.j=D.w("span","fitem angleinput");
if(h){this.WA=D.w("label","flabel");this.pO=h;this.j.appendChild(this.WA)}this.Mt=D.w("canvas","gsicon");
this.J$=this.Mt.getContext("2d");D.VR(this.Mt,e,e);this.j.appendChild(this.Mt);D.uh(this.Mt,this.NK.bind(this));
this.Xf=this.mq.bind(this);this.bU=this.i3.bind(this);this.T(0)}fc.prototype=new ev;fc.prototype.B=function(){if(this.pO)this.WA.textContent=e_.get(this.pO)+":"};
fc.prototype.TQ=function(h){this.WA.textContent=h};fc.prototype.u=function(){return this.Mg};fc.prototype.T=function(h){this.Mg=h;
var e=this.Mt.width,$=Math.floor(h/3),Z=h-3*$,c=(Z+.5)*e/3,q=($+.5)*e/3,E=this.J$,P=[.5,Math.round(e/3)+.5,Math.round(2*e/3)+.5,e-.5];
E.clearRect(0,0,e,e);var a=this.oS<30;E.setLineDash([]);E.strokeStyle=a?"rgba(0,0,0,0.5)":"#000000";
E.beginPath();for(var G=0;G<4;G++){var j=P[G];E.moveTo(j,0);E.lineTo(j,e);E.moveTo(0,j);E.lineTo(e,j)}E.stroke();
if(h==9)return;if(!a){E.setLineDash([1,2]);var L=e*.53,H=Math.max(0,Math.min(e-L,c-L/2)),_=Math.max(0,Math.min(e-L,q-L/2));
E.strokeRect(Math.round(H)+.5,Math.round(_)+.5,Math.round(L),Math.round(L))}E.fillStyle="#000000";E.beginPath();
E.arc(c,q,e/8,0,Math.PI*2);E.fill()};fc.prototype.NK=function(h){D._s(window,this.Xf);D.A4(window,this.bU);
this.mq(h)};fc.prototype.mq=function(h){var e=D.q6(h,this.Mt),$=Math.max(0,Math.min(2,Math.floor(e.x/(this.oS/3)))),Z=Math.max(0,Math.min(2,Math.floor(e.y/(this.oS/3))));
this.T(Z*3+$)};fc.prototype.i3=function(h){this.f(new B(D.E.L,!1));D.xR(window,this.Xf);D.oT(window,this.bU)};
function gg(h,e,$,Z){ev.call(this);this.j=D.w("button","fitem"+(e?" spread":"")+(Z?" bbtn":""));this.pO=h;
this.n9=$;this.B();this.j.addEventListener("click",this.hW.bind(this),!1)}gg.prototype=new ev;gg.prototype.B=function(){var h=this.j,e=this.pO,$=this.n9,Z=e_.get(e);
if(Z.startsWith("<img")||Z.startsWith("<svg"))h.innerHTML=Z;else h.textContent=Z;if(Z.startsWith("<img")||Z.startsWith("<svg"))h.setAttribute("style","padding:2px");
if($){h.setAttribute("title",e_.get($))}};gg.prototype.aiy=function(h){this.j.setAttribute("title",h)};
gg.prototype.hW=function(h){this.f(new B("click",!1))};gg.prototype._j=function(){D.so(this.j,"bactive")};
gg.prototype.Qv=function(){D.ma(this.j,"bactive")};gg.prototype.TQ=function(h,e){if(h)this.pO=h;if(e)this.n9=e;
this.B()};gg.prototype.T=function(h){if(h)this._j();else this.Qv()};gg.prototype.ha=function(){return this.j.getAttribute("class").indexOf("bactive")!=-1};
gg.prototype.u=function(){return this.ha()};function gy(t){ev.call(this);this.j=D.w("span","fitem cswatch");
this.aaL=0;this.cK=[];this.Ke=[];var h=this.akJ.bind(this);for(var G=0;G<t;G++){this.cK.push(0);var e=D.w("span","colorsample");
e.addEventListener("click",h,!1);this.Ke.push(e);this.j.appendChild(e)}var $=[16711680,65280,255,65535,16711935,16776960,0,8421504,16777215],Z=Math.min(t,$.length);
for(var G=0;G<Z;G++)this.cK[G]=$[G];this.$T()}gy.prototype=new ev;gy.prototype.akJ=function(h){this.aaL=this.Ke.indexOf(h.currentTarget);
this.f(new B(D.E.L))};gy.prototype.u=function(){return this.cK[this.aaL]};gy.prototype.T=function(h){var e=this.cK,$=e.indexOf(h);
if($!=-1)e.splice($,1);else e.pop();e.unshift(h);this.$T()};gy.prototype.$T=function(){for(var G=0;G<this.cK.length;
G++){this.Ke[G].setAttribute("style","background-color:#"+s.jT(this.cK[G]))}};function fx(h){ev.call(this);
this.EP={h:0,l:0,O:0};this.x9=h;this.j=D.w("span","fitem colorsample");this.j.addEventListener("click",this._0.bind(this),!1)}fx.prototype=new ev;
fx.prototype.B=function(){};fx.prototype._0=function(h){var e=this.EP;this.f(new B("click"));var $=new B(D.E.P,!0);
$.data={e:D.U.tr,yq:"colorpicker",Nr:e.h<<16|e.l<<8|e.O,Nb:this.K3.bind(this),ii:this.x9};this.f($)};
fx.prototype.K3=function(h){this.Dt(h);this.f(new B(D.E.L))};fx.prototype.aeF=function(){this._0(null)};
fx.prototype.S1=function(){var h=this.EP;return h.h<<16|h.l<<8|h.O};fx.prototype.u=function(){return s.Y.lp(this.EP)};
fx.prototype.Dt=function(h){this.EP={h:h>>16&255,l:h>>8&255,O:h&255};this.SG()};fx.prototype.T=function(h){this.EP=s.Y.LX(h);
this.SG()};fx.prototype.SG=function(){var h=this.EP,e=h.h,$=h.l,Z=h.O,c=e<<16|$<<8|Z;this.j.setAttribute("style","background-color:#"+s.jT(c))};
function c_(){ev.call(this);this.Yy=!1;this.PM=20;this.aoA=10;this.OQ=0;this.Yy=!1;this.zv={h:255,l:0,O:0};
this.qK={h:0,l:0,O:0};this.j=D.w("canvas");this.rv();D.Sz(this.j);D.uh(this.j,this.xj.bind(this))}c_.prototype=new ev;
c_.prototype.a6T=function(h){if(this.Yy==h)return;this.Yy=h;this.rv()};c_.prototype.B=function(){};c_.prototype.afz=function(h,e){function $(Z){return{h:Z>>16&255,l:Z>>8&255,O:Z&255}}if(h!=null)this.zv=$(h);
if(e!=null)this.qK=$(e);this.rv()};c_.prototype.xj=function(h){var e=D.q6(h,this.j),$=e.x*D.M(),Z=e.y*D.M(),c=this.PM,q=this.aoA,E=0;
if($<q&&Z<q){E=0}else if($>c-q&&Z>c-q){E=1}else if($<q){E=2}else{E=3}var P=new B(D.E.P,!0);if(E>1)P.data={e:D.U.Ov,Av:iM.JD,oD:E};
else{this.OQ=E;var a=E==0?this.zv:this.qK;P.data={e:D.U.tr,yq:"colorpicker",Nr:a.h<<16|a.l<<8|a.O,Nb:this.K3.bind(this)}}this.f(P)};
c_.prototype.K3=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.Ov,Av:iM.JD,oD:this.OQ,G:h};this.f(e)};
c_.prototype.rv=function(){var h=this.j,e=h.getContext("2d"),$=D.M(),c="#aaaaaa",q=.65;D.VR(h,34,34);
h.setAttribute("style",h.getAttribute("style")+";cursor:pointer");var Z=this.PM=h.width,E=this.aoA=Math.round(Z*q);
function P(J,S){var N=J.h,Y=J.l,U=J.O;if(S)N=Y=U=Math.round(s.jv(N,Y,U));var g=N<<16|Y<<8|U;return"#"+s.jT(g)}function a(J,S,E,N,Y){e.fillStyle=Y?Y:"black";
e.fillRect(J,S,E,E);e.fillStyle=N;e.fillRect(J+1,S+1,E-2,E-2)}a(Z-E,Z-E,E,P(this.qK,this.Yy));a(0,0,E,P(this.zv,this.Yy));
var j=Z-E,L=Math.round(j*q);a(Z-L,j-L,L,"white",c);a(Z-j,0,L,"black",c);e.save();e.fillStyle=c;e.translate(0,Z);
e.rotate(-Math.PI/2);j=Z-E;var H=Math.round(j*.28),_=Math.round(j*.25);for(var G=0;G<2;G++){e.fillRect(H,H,j-H,1);
e.beginPath();e.moveTo(j-_,H+.5-_);e.lineTo(j,H+.5);e.lineTo(j-_,H+.5+_);e.closePath();e.fill();e.transform(0,1,1,0,0,0)}e.restore()};
function iI(h){gI.call(this,h,!1,"brushbutton nopadding",16.6,10,iM.XP,!0);this.fP=new dm([12,14,0],1,1e3," px",0,!0);
this.fP.k(D.E.L,this.ks,this);this.Xv.appendChild(this.fP.j);this.gd=new dm([12,17],0,100,"%");this.gd.k(D.E.L,this.ks,this);
this.Xv.appendChild(this.gd.j)}iI.prototype=new gI;iI.prototype.Ev=function(){var h=["pencil","trees"];
for(var G=0;G<h.length;G++)h[G]="brushes/"+h[G]+".abr";return h};iI.prototype.OW=function(h){var e=this.j.getBoundingClientRect();
this.JZ(e.left,e.top+e.height)};iI.prototype.JZ=function(h,e){this.t9();var $=new B(D.E.P,!0);$.data={e:D.U.sH,yv:this.xN,x:h,y:e};
this.f($)};iI.prototype.T=function(h,e,$){this.$L=JSON.parse(JSON.stringify(h));var Z=Math.floor(20*D.M()),c=Math.floor(36*D.M()),q=Math.floor(24*D.M()),E=ec.TD(h,e,$,Z,q,c);
this.Xr.setAttribute("src",E);D.pH(this.Xr,c,q);var P=h.Brsh.v;this.fP.T(P.Dmtr.v.val);if(P.Hrdn!=null){this.gd.pw();
this.gd.T(P.Hrdn.v.val)}else this.gd.WJ();this.Xu.Eg(-1)};iI.prototype.aU=function(){return{list:[{t:"Objc",v:this.u()}],nM:[],fB:[]}};
iI.prototype.u=function(){return this.$L};iI.prototype.t9=function(){if(!this.ZE)return;var h=[],e=[],$=this.ZM,Z=Math.floor(33*D.M()),c=Math.floor(40*D.M());
for(var G=0;G<$.list.length;G++){var q=$.list[G].v,E=ec.TD(q,$.nM,$.fB,Z,c);h.push(E);e.push(q.Nm.v.split("=").pop())}this.Xu.Go(h,e,Z,c);
this.ZE=!1};iI.prototype.qx=function(h){var e=this.ZM;this.T(e.list[this.Xu.u()].v,e.nM,e.fB);this.f(new B(D.E.L))};
iI.prototype.B=function(){gI.prototype.B.call(this);this.fP.B();this.gd.B()};iI.prototype.ks=function(h){var e=this.ZM,$=this.$L;
$.Brsh.v.Dmtr.v.val=this.fP.u();if($.Brsh.v.Hrdn!=null)$.Brsh.v.Hrdn.v.val=this.gd.u();this.T($,e.nM,e.fB);
this.f(new B(D.E.L))};function ie(h){gI.call(this,h,!0,"contourbutton",17,10.5,iM.X6)}ie.prototype=new gI;
ie.prototype.qx=function(h){this.T(this.ZM[h.target.u()]);this.f(new B(D.E.L))};ie.prototype.i2=function(h){var e=new B(D.E.P,!0);
e.data={e:D.U.tr,yq:"contoureditor",qM:this.$L,response:this.adW.bind(this)};this.f(e)};ie.prototype.adW=function(h){this.T(h);
this.f(new B(D.E.L))};ie.prototype.t9=function(){if(!this.ZE)return;var h=Math.floor(38*D.M()),e=Math.floor(38*D.M()),$=[],Z=[],c=this.ZM;
for(var G=0;G<c.length;G++){Z.push(c[G].Nm?c[G].Nm.v:"");$.push(s.$e.TD(c[G].Crv.v,h,e))}this.Xu.Go($,Z,h,e);
this.ZE=!1};ie.prototype.T=function(h){this.$L=JSON.parse(JSON.stringify(h));var e=this.$L.Crv.v;for(var G=0;
G<e.length;G++)if(e[G].v.Cnty==null)e[G].v.Cnty={t:"bool",v:!0};this.v5()};ie.prototype.v5=function(){var h=Math.floor(30*D.M()),e=Math.floor(30*D.M()),$=s.$e.TD(this.$L.Crv.v,h,e);
this.Xr.setAttribute("src",$);D.pH(this.Xr,h,e)};ie.prototype.u=function(){return JSON.parse(JSON.stringify(this.$L))};
function gC(h){ev.call(this);this.us=null;this.D0=null;this.GY=null;this.QK=null;this.abX=[];this.aaE=[];
this.j=D.w("span","fitem fillbutton");this.xN=new ev;this.xN.j=D.w("div","floatcont form");this.xN.j.setAttribute("style","width: 21em;");
this.xN.parent=this;this.eq=h;this.WA=this.WA=D.w("label","flabel");this.j.appendChild(this.WA);this.Mt=D.w("canvas");
this.J$=this.Mt.getContext("2d");this.abd=null;this.j.appendChild(this.Mt);this.Mt.addEventListener("click",this.OW.bind(this),!1);
this.Wv=new cp([12,66],["","Color","Grad","Patt"]);this.xN.j.appendChild(this.Wv.j);this.Wv.k(D.E.L,this.zs,this);
this.xN.j.appendChild(D.w("hr"));this.akI=D.w("span");this.Re=new fx(!0);this.Re.parent=this.xN;this.Re.k(D.E.L,this.zs,this);
this.mk=new gy(10);this.mk.k(D.E.L,this.zs,this);this.gH=D.w("div","marged hiline");this.gH.appendChild(this.Re.j);
D.vV(this.gH);this.gH.appendChild(this.mk.j);this.n1=new at("GrFl",!0);this.n1.parent=this.xN;this.n1.k(D.E.L,this.zs,this);
this.Le=D.w("div","marged hiline");var e="Grad Type Algn Angl Rvrs Scl Ofst".split(" ");for(var G=0;
G<e.length;G++){var $=this.n1.Uc[e[G]].j;this.Le.appendChild($)}this.H1=new at("patternFill",!0);this.H1.parent=this.xN;
this.H1.k(D.E.L,this.zs,this);this.oR=D.w("div","marged hiline");var e=["Ptrn","Scl","Algn","phase"];
for(var G=0;G<e.length;G++){var $=this.H1.Uc[e[G]].j;this.oR.appendChild($)}}gC.prototype=new ev;gC.prototype.if=function(h,e){if(e==iM.Ub){this.abX=[];
this.aaE=[];if(this.us)this.T(this.GY,this.u(),this.us)}this.D0=h;this.n1.if(h,e);this.H1.if(h,e)};gC.prototype.B=function(){this.WA.textContent=e_.get(this.eq)+": ";
this.Wv.B();this.Re.B();this.n1.B();this.H1.B()};gC.prototype.zs=function(h){var e=h.currentTarget;if(e==this.Wv){var $=this.Wv.u(),Z={cp:$,mQ:this.us[$]};
if($>0&&Z.mQ==null)Z.mQ=JSON.parse(JSON.stringify(c3.nf[$-1]));if(this.us)this.T(this.GY,Z,this.us)}if(e==this.mk)this.Re.Dt(e.u());
this.f(new B(D.E.L,!1))};gC.prototype.OW=function(h){var e=this.Mt.getBoundingClientRect(),$=new B(D.E.P,!0);
$.data={e:D.U.sH,yv:this.xN,x:e.left,y:e.top+e.height+4};this.f($);this.mk.T(this.Re.S1())};gC.prototype.T=function(h,e,$){this.us=$;
this.GY=h;var Z=[[13,1,0],[13,0],[12,37],[12,62]],c=this.abX,q=this.aaE,E=!1,L;for(var G=0;G<4;G++){var P={cp:G,mQ:$[G]},a=gC.Xb(P);
if(q[G]==a)continue;E=!0;var j=gC.zZ(null,P,this.D0,this.GY,22,22,!1);c[G]="<img width=\"22\" height=\"22\" src=\""+j+"\" />";
q[G]=a}if(E)this.Wv.uK(c,Z);this.Wv.T(e.cp);var a=gC.Xb(e);if(a!=this.abd)gC.zZ(this.J$,e,this.D0,this.GY,30,23,!0);
this.abd=a;var H=e.cp;if(H==0){L=this.akI}if(H==1){this.Re.T(e.mQ.Clr.v);L=this.gH}if(H==2){this.n1.update(h,e.mQ);
L=this.Le}if(H==3){this.H1.update(h,e.mQ);L=this.oR}if(L!=this.QK){if(this.QK!=null){this.xN.j.removeChild(this.QK)}this.xN.j.appendChild(L);
this.QK=L}};gC.prototype.u=function(){var h={cp:this.Wv.u()};if(h.cp==1){h.mQ=JSON.parse(JSON.stringify(c3.nf[0]));
h.mQ.Clr.v=this.Re.u()}if(h.cp==2){h.mQ=this.n1.u()}if(h.cp==3){h.mQ=this.H1.u()}return h};gC.Xb=function(h){var e=h.cp,$=h.mQ,Z="empty";
if(e==1){Z=s.Y.LX($.Clr.v);Z=Z.h+","+Z.l+","+Z.O}if(e==2)Z=JSON.stringify($.Grad.v);if(e==3)Z=$.Ptrn.v.Idnt.v;
return Z};gC.zZ=function(h,e,$,Z,c,q,E){if(h==null)h=gC.J$;var P=Math.floor(c*D.M()),a=Math.floor(q*D.M()),j=h.canvas,L;
j.width=P;j.height=a;D.pH(j,P,a);var H=e.cp;if(H==0){h.fillStyle="#ffffff";h.fillRect(0,0,P,a);h.strokeStyle="#ff0000";
h.lineWidth=2;h.moveTo(0,0);h.lineTo(P,a);h.moveTo(0,a);h.lineTo(P,0);h.stroke()}if(H==1){var _=e.mQ.Clr.v;
_=s.Y.LX(_);h.fillStyle="#"+s.jT(_.h<<16|_.l<<8|_.O);h.fillRect(0,0,P,a)}if(H==2){f.mT.TD(e.mQ.Grad.v,P,a,0,$.oV,$.XK,j)}if(H==3){var J=e.mQ.Ptrn.v,S;
if(Z!=null)S=hn.lg(J,Z.add.Patt);if(S==null)S=hn.lg(J,$.Zl);fp.TD(S,P,a,j)}if(E){h.beginPath();h.strokeStyle="#000000";
h.fillStyle="#ffffff";h.lineWidth=2;var N=P*.7,Y=Math.floor(a*.7),U=7*D.M();h.moveTo(N,Y);h.lineTo(N+U,Y);
h.lineTo(N+U/2,Y+U/2);h.closePath();h.stroke();h.fill()}if(h==gC.J$)return j.toDataURL()};gC.J$=D.w("canvas").getContext("2d");
function fp(h){gI.call(this,h,!1,"patternbutton",18,10,iM.Ub);this.Ch=null}fp.prototype=new gI;fp.prototype.qx=function(h){var e=this.ZM[this.Xu.u()];
this.$L={classID:"Ptrn",Nm:{t:"TEXT",v:e.name},Idnt:{t:"TEXT",v:e.id}};this.f(new B(D.E.L));this.v5()};
fp.WK=!1;fp.prototype.t9=function(){if(!this.ZE)return;var h=this.ZM;if(h==null||!fp.WK){var e=new B(D.E.P,!0);
e.data={e:D.U.fu,Av:{url:"rsrc/basic/basic.pat"}};this.f(e);fp.WK=!0;return}var $=Math.floor(34*D.M()),Z=Math.floor(34*D.M()),c=[],q=[];
for(var G=0;G<h.length;G++){c.push(fp.TD(h[G],$,Z));q.push(h[G].name)}this.Xu.Go(c,q,$,Z);this.ZE=!1};
fp.prototype.T=function(h,e){if(this.$L&&h.Idnt.v==this.$L.Idnt.v)return;this.$L=JSON.parse(JSON.stringify(h));
this.v5(e)};fp.prototype.u=function(){return JSON.parse(JSON.stringify(this.$L))};fp.prototype.aU=function(){return this.Ch?[this.Ch]:[]};
fp.prototype.v5=function(h){var e=Math.floor(50*D.M()),$=Math.floor(50*D.M()),Z;if(h!=null)Z=hn.lg(this.$L,h.add.Patt);
if(Z==null)Z=hn.lg(this.$L,this.ZM);this.Ch=Z;var c=fp.TD(Z,e,$);this.Xr.setAttribute("src",c);D.pH(this.Xr,e,$)};
fp.p$=D.w("canvas","");fp.TD=function(h,e,$,Z){if(Z==null)Z=fp.p$;var c=Z.getContext("2d");Z.width=e;
Z.height=$;if(h){var q=h.Rv[1],E=q.d,P=q.v,a=h.Rv[0],j=Math.min(e/E,$/P),L=j;if(L*E<2)L=2/E;var H=j;
if(H*P<2)H=2/P;var _=f.o.D8([a,q],new i7(L,0,0,H,0,0),!1),J=_.rect.d,S=_.rect.v,N=c.createImageData(J,S);
s.i7(_.buffer,N.data);c.putImageData(N,Math.floor((e-J)/2),Math.floor(($-S)/2))}return Z.toDataURL()};
function e0(h){gI.call(this,h,!1,"patternbutton",24.2,17,iM.z8);this.c4=""}e0.prototype=new gI;e0.prototype.qx=function(h){this.$L=JSON.parse(JSON.stringify(this.ZM[0][this.Xu.u()]));
this.f(new B(D.E.L))};e0.prototype.t9=function(){var h=this.ZM;if(h==null||!this.ZE)return;var e=Math.floor(50*D.M()),$=Math.floor(50*D.M()),Z=[],c=[];
for(var G=0;G<h[0].length;G++){Z.push(e0.TD(this.ZM[0][G].R_,e,$,this.ZM[1]));c.push(h[0][G].h0.Nm.v.split("=").pop())}this.Xu.Go(Z,c,e,$);
this.ZE=!1};e0.prototype.T=function(h,e,$,Z){var c=JSON.stringify(h.R_)+","+$+","+Z;if(this.c4!=c){this.c4=c;
this.$L=JSON.parse(JSON.stringify(h));this.v5(e,$,Z)}this.Xu.Eg(-1)};e0.prototype.u=function(){return JSON.parse(JSON.stringify(this.$L))};
e0.prototype.v5=function(h,e,$){var Z=Math.floor(68*D.M()),c=Math.floor(68*D.M()),q=e0.TD(this.$L.R_,Z,c,h?h:this.ZM[1],e,$);
this.Xr.setAttribute("src",q);D.pH(this.Xr,Z,c)};e0.TD=function(h,e,$,Z,c,q){var E=new c9;E.d=e;E.v=$;
E.buffer=s.m(e*$*4);E.add.Patt=Z;E.v8(c==null?90:c);E._g(q==null?30:q);var P=new O(0,0,Math.round(e*.5),Math.round($*.5));
P.x=Math.round((e-P.d)/2);P.y=Math.round(($-P.v)/2);var a=E.by();a.rect=P;a.buffer=s.m(P.X()*4);s.Ut(a.buffer,4284045657);
hn.oE(h,a,.5*100);E.t.push(a);E.Nq();E.s();var j=V.Yv;V.Yv=!1;E.cm();var L=E.v2();V.Yv=j;var H=cE.Me(L.buffer,E.d,E.v);
return H};function al(h){gI.call(this,null,!1,"tpresetbutton",18,24,iM.L$,!0);D.ma(this.j,"fitem");this.Xu.Yn(1);
this.id=h;this.v5();this.d8=new cw([15,7,9]);this.d8.T(!0);this.d8.k(D.E.L,this.al6,this);this.xv.appendChild(this.d8.j)}al.prototype=new gI;
al.prototype.aot=function(h){if(this.id==h)return;this.id=h;this.K2(this.ZM)};al.prototype.qx=function(h){var e=this.ZM[this.Xu.u()],$=new B(D.E.P,!0);
$.data={e:D.U.Ov,HZ:"set",Av:iM.L$,Ep:e};this.f($)};al.prototype.B=function(){gI.prototype.B.call(this);
this.d8.B()};al.prototype.al6=function(){this.ZE=!0;this.t9()};al.prototype.t9=function(){if(!this.ZE)return;
var h=Math.floor(16*D.M()),e=Math.floor(16*D.M()),$=[],Z=[],c=this.ZM,q=this.d8.u();for(var G=0;G<c.length;
G++){var E=f.Kn(c[G]);if(!q||E==this.id){Z.push(c[G][0]?c[G][0].split("=").pop():"");$.push(E==-1?"":PIMG[f.YH[E][0]])}else{$.push(null);
Z.push(null)}}this.Xu.Go($,Z,h,e);this.ZE=!1};al.prototype.v5=function(){var h=this.Xr;h.setAttribute("src",PIMG[f.YH[this.id][0]]);
D.so(h,"toolicon")};al.prototype.aU=function(){return null};al.Ji={};al.TD=function(h,e,$){var Z=al.s0,c=al.Ji,q=s.jT(h.h<<16|h.l<<8|h.O);
if(c[q])return c[q];if(Z==null){var E=D.w("canvas");Z=al.s0=E.getContext("2d")}var E=Z.canvas;E.width=e;
E.height=$;Z.fillStyle="#"+q;Z.fillRect(0,0,e,$);var P=c[q]=E.toDataURL();return P};function fy(h,e){ev.call(this);
this.j=D.w("span","fitem curveeditor");this.J4=null;this.akT=0;this.Sg="";this.mode=0;this.rl=h;this.a98=e;
this.ay=null;this.Oj=null;this.s$=new eu;this.uZ=this.mq.bind(this);this.Bv=this.i3.bind(this);this.Mt=D.w("canvas","");
this.J$=this.Mt.getContext("2d");D.Sz(this.Mt);D.VR(this.Mt,256,256,this.J$);this.j.appendChild(this.Mt);
D.uh(this.Mt,this.NK.bind(this))}fy.prototype=new ev;fy.prototype.T=function(h,G){var e=JSON.stringify(h);
if(e==JSON.stringify(this.ay))return;this.mode=h.length==256?1:0;this.ay=JSON.parse(e);if(G!=null)this.Oj=this.ay[G];
this.VS()};fy.prototype.SP=function(h,e,$){this.J4=h;this.akT=e;this.Sg=$;this.VS()};fy.prototype.u=function(){return JSON.parse(JSON.stringify(this.ay))};
fy.prototype.zi=function(){return this.ay.indexOf(this.Oj)};fy.prototype.NK=function(h){var e=D.q6(h,this.Mt),$=e.x,Z=256-e.y;
if(this.rl){var c=$;$=256-Z;Z=c}this.s$.su($,Z);if(this.mode==0){var q=null;for(var G=0;G<this.ay.length;
G++){var E=this.ay[G].v,P=E.Hrzn.v-$,a=E.Vrtc.v-Z,j=Math.sqrt(P*P+a*a);if(j<5)q=this.ay[G]}if(q==null){q=s.$e.cc($,Z,!0);
this.ay.push(q)}this.Oj=q}D._s(document.body,this.uZ);D.A4(document.body,this.Bv);this.mq(h)};fy.prototype.mq=function(h){var e=D.q6(h,this.Mt),$=e.x,Z=256-e.y;
if(this.rl){var c=$;$=256-Z;Z=c}if(this.mode==0){var q=this.ay,E=this.a98,P=q.indexOf(this.Oj),a=P==0||P==q.length-1,j=0,L=255,H=!0;
if(a){j=1;L=254}if(!E||!a)this.Oj.v.Hrzn.v=Math.max(j,Math.min(L,Math.round($)));this.Oj.v.Vrtc.v=Math.max(0,Math.min(255,Math.round(Z)));
for(var G=0;G<q.length;G++){if(q[G]==this.Oj)continue;if(Math.abs(q[G].v.Hrzn.v-this.Oj.v.Hrzn.v)<2)H=!1}if($<0||$>255||Z<0||Z>255)H=!1;
if(H&&q.indexOf(this.Oj)==-1)q.push(this.Oj);if(!H&&q.indexOf(this.Oj)!=-1&&q.length>2&&(!E||!a))q.splice(q.indexOf(this.Oj),1);
if(q[0].v.Hrzn.v==q[1].v.Hrzn.v)if(q[0].v.Hrzn.v==0)q[1].v.Hrzn.v=1;else q[0].v.Hrzn.v--;q.sort(function(U,g){return U.v.Hrzn.v-g.v.Hrzn.v})}else{$=Math.round($);
Z=Math.round(Z);$=Math.max(0,Math.min(255,$));Z=Math.max(0,Math.min(255,Z));var _=this.s$.x,J=$,S=this.s$.y,N=Z;
if($<this.s$.x){J=_;_=$;N=S;S=Z}this.ay[$]=Z;if(_!=J)for(var Y=_;Y<=J;Y++)this.ay[Y]=Math.round(S+(Y-_)*(N-S)/(J-_))}this.s$.su($,Z);
this.VS();this.f(new B(D.E.L))};fy.prototype.i3=function(h){D.xR(document.body,this.uZ);D.oT(document.body,this.Bv);
this.f(new B(D.E.L))};fy.prototype.VS=function(){var h=this.J$;h.fillStyle="#ffffff";h.fillRect(0,0,256,256);
if(this.J4){h.translate(0,256);h.scale(1,-1);bZ.gr(h,this.J4,5700/this.akT,this.Sg);h.scale(1,-1);h.translate(0,-256)}h.strokeStyle="#aaaaaa";
h.lineWidth=1;h.beginPath();for(var G=1;G<4;G++){h.moveTo(0,64*G-.5);h.lineTo(255,64*G-.5);h.moveTo(64*G-.5,0);
h.lineTo(64*G-.5,255)}h.stroke();if(this.rl){h.save();h.transform(0,1,-1,0,256,0)}if(this.mode==0){var e=this.ay,$=s.$e.s_(e,256);
h.strokeStyle="#000000";h.beginPath();h.moveTo(0,255.5-$[0]);for(var G=0;G<256;G++)h.lineTo(G,255.5-$[G]);
h.stroke();h.lineWidth=2;for(var G=0;G<e.length;G++){var Z=e[G].v;h.fillStyle=this.Oj==e[G]?"#333":"#fff";
h.beginPath();h.moveTo(Z.Hrzn.v,255.5-Z.Vrtc.v);h.arc(Z.Hrzn.v,255.5-Z.Vrtc.v,3,0,2*Math.PI);h.stroke();
h.fill()}}else{var $=this.ay;h.strokeStyle="#000000";h.beginPath();h.moveTo(0,255.5-$[0]);for(var G=0;
G<256;G++)h.lineTo(G,255.5-$[G]);h.stroke()}if(this.rl)h.restore()};function bZ(h,e){ev.call(this);this.j=D.w("span","");
this.AX=new fs([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5],[12,82]]);this.AX.k(D.E.L,this.rv,this);this.j.appendChild(this.AX.j);
D.vV(this.j);this.p$=D.w("canvas");var $=this.p$;this.j.appendChild($);$.width=Math.round(h*D.M());$.height=Math.round(100*D.M());
D.pH($,$.width,$.height);this.s0=$.getContext("2d");this.J4=null;this.xV=0;this.ah1=null;this.ann=[];
this.Mj=[];var Z=["Mean:","Pixels:"],c=this.j;for(var G=0;G<Z.length;G++){var q=new cZ(Z[G]);this.ann.push(q);
if(e)c.appendChild(q.j);var E=new cZ("hi");this.Mj.push(E);if(e)c.appendChild(E.j);D.vV(c)}}bZ.prototype=new ev;
bZ.prototype.B=function(){this.AX.B()};bZ.prototype.Yn=function(h){this.AX.T(h);this.rv()};bZ.prototype.T=function(h,e){this.J4=h;
this.ah1=e;this.rv()};bZ.prototype.Dt=function(h){if(h==this.xV)return;this.xV=h;this.rv()};bZ.prototype.rv=function(){if(this.J4==null)return;
var h=this.p$,e=this.s0,$=this.J4,Z=this.ah1,c=this.AX.u(),q=6e3/$[4],E="#"+s.jT(this.xV),P=bZ.gr;h.width=h.width;
e.setTransform(h.width/256,0,0,-h.height/100,0,h.height);e.globalCompositeOperation="lighter";if(c==0)P(e,$[0],q/3,E);
else if(c<4)P(e,$[c],q,E);else{P(e,$[1],q,"#ff0000");P(e,$[2],q,"#00ff00");P(e,$[3],q,"#0000ff")}e.setTransform(1,0,0,1,0,0);
if(Z!=null){var a=0;for(var G=0;G<256;G++)a+=G*$[c][G];if(c==0)a/=3;this.Mj[0].T((a/Z).toFixed(1)+"");
this.Mj[1].T(Z+"")}};bZ.gr=function(h,e,$,Z){h.beginPath();h.moveTo(0,0);for(var c=0;c<256;c++)h.lineTo(c,e[c]*$);
h.lineTo(256,0);h.closePath();h.fillStyle=Z;h.fill()};function bg(h){ev.call(this);this.l4={h:0,l:0,O:0};
if(Math.abs(h-256/D.M())<10)h=256/D.M();var e=this.j=D.w("div","flexrow");this.F$=new eu;this.CC=new eu;
this.Xf=this.TR.bind(this);this.bU=this.ahv.bind(this);this.Mt=D.w("canvas","");this.J$=this.Mt.getContext("2d");
this.Mt.width=this.Mt.height=256;this.ahc=this.J$.getImageData(0,0,256,256);this.a1F=-1;D.Sz(this.Mt);
D.uh(this.Mt,this.a08.bind(this));e.appendChild(this.Mt);this.a7B=this.zy.bind(this);this.a4Z=this.amE.bind(this);
this.Jq=D.w("canvas","");this.yy=this.Jq.getContext("2d");this.Jq.width=20;this.Jq.height=256;this.a06=this.yy.getImageData(0,0,20,256);
this.a69(this.a06.data,20,256);D.Sz(this.Jq);D.uh(this.Jq,this.aoE.bind(this));e.appendChild(this.Jq);
this.Mt.setAttribute("style","width:"+h+"px; height:"+h+"px");this.Jq.setAttribute("style","width:"+20/D.M()+"px; height:"+h+"px")}bg.prototype=new ev;
bg.prototype.Sy=function(h,e){this.Mt.style.width=h+"px"};bg.prototype.T=function(h){this.l4=h;this.update()};
bg.prototype.u=function(){return JSON.parse(JSON.stringify(this.l4))};bg.prototype.update=function(){var h=this.l4,e=s.TC(h.h,h.l,h.O);
if(e.o8==0)e.Zp=this.F$.x/255;if(e.Zp==0||e.o8==0)e.CD=(255-this.Em(this.CC.y))/255;if(e.o8!=0)this.F$.x=e.Zp*255;
this.F$.y=(1-e.o8)*255;this.CC.y=(1-e.CD)*255;var $=this.ahc;if(Math.abs(e.CD-this.a1F)>.002){this.a6A($.data,256,256,e.CD);
this.a1F=e.CD}this.J$.putImageData($,0,0);this.J$.strokeStyle="#000000";this.J$.beginPath();this.J$.arc(this.F$.x+1,this.F$.y+1,5,0,2*Math.PI);
this.J$.stroke();this.J$.strokeStyle="#ffffff";this.J$.beginPath();this.J$.arc(this.F$.x,this.F$.y,5,0,2*Math.PI);
this.J$.stroke();var $=this.a06;this.yy.putImageData($,0,0);this.yy.strokeStyle="#ffffff";this.yy.beginPath();
this.yy.moveTo(0,this.CC.y);this.yy.lineTo(20,this.CC.y);this.yy.lineWidth=2;this.yy.stroke()};bg.prototype.a6A=function(h,e,$,Z){var c=1/e,q=1/$;
for(var E=0;E<$;E++)for(var P=0;P<e;P++){var a=s.g7(Z,P*c,($-E-1)*q),G=E*e+P<<2;h[G+0]=~~(a.h*255);h[G+1]=~~(a.l*255);
h[G+2]=~~(a.O*255);h[G+3]=255}};bg.prototype.a69=function(h,e,$){var Z=new Uint32Array(h.buffer);for(var c=0;
c<$;c++){var q=s.g7(1-c/$,1,1),E=255<<24|q.O*255<<16|q.l*255<<8|q.h*255;for(var P=0;P<e;P++)Z[c*e+P]=E}};
bg.prototype.a08=function(h){D._s(window,this.Xf);D.A4(window,this.bU);this.TR(h)};bg.prototype.ahv=function(h){D.xR(window,this.Xf);
D.oT(window,this.bU)};bg.prototype.TR=function(h){var e=D.q6(h,this.Mt);e.x=e.x*(256/parseFloat(this.Mt.style.width));
e.y=e.y*(256/parseFloat(this.Mt.style.height));this.F$.su(this.Em(e.x),this.Em(e.y));this.dn()};bg.prototype.dn=function(){this.l4=this.ajM();
this.f(new B(D.E.L))};bg.prototype.ajM=function(){var h=s.g7((255-this.Em(this.CC.y))/255,this.En(this.F$.x/255),this.En(1-this.F$.y/255));
return{h:h.h,l:h.l,O:h.O}};bg.prototype.aoE=function(h){D._s(window,this.a7B);D.A4(window,this.a4Z);
this.zy(h)};bg.prototype.amE=function(h){D.xR(window,this.a7B);D.oT(window,this.a4Z)};bg.prototype.zy=function(h){var e=D.q6(h,this.Jq);
e.y=e.y*(256/parseFloat(this.Jq.style.height));this.CC.su(this.Em(e.x),this.Em(e.y));this.dn()};bg.prototype.Em=function(h){return Math.max(0,Math.min(255,h))};
bg.prototype.En=function(h){return Math.max(0,Math.min(1,h))};function cp(h,e,$){ev.call(this);if(!e)return;
this.sP=0;this.j=D.w("span","fitem bbmenu");if(h){this.pO=h;this.WA=D.w("label","flabel");this.WA.textContent=h+":";
this.j.appendChild(this.WA)}this.LE=[];this.tj=null;this.uK(e,$);this.T(0)}cp.prototype=new ev;cp.prototype.TQ=function(h){this.pO=h;
this.B()};cp.prototype.B=function(){if(this.pO!=null){this.WA.textContent=e_.get(this.pO)+": "}for(var G=0;
G<this.LE.length;G++)this.LE[G].B()};cp.prototype.u=function(){return this.sP};cp.prototype.uK=function(h,e){while(this.LE.length>0)this.j.removeChild(this.LE.pop().j);
this.tj=h;for(var G=0;G<h.length;G++){var $=new gg(h[G],!1,e?e[G]:null);$.k("click",this.AI,this);this.j.appendChild($.j);
this.LE.push($)}this.B()};cp.prototype.T=function(h){this.sP=h;for(var G=0;G<this.LE.length;G++)this.LE[G].Qv();
this.LE[h]._j()};cp.prototype.AI=function(h){var G=this.LE.indexOf(h.target);this.T(G);this.f(new B(D.E.L,!1))};
function a4(h,e,$,Z){if(Z==null)Z=16;var c=a4.fA,q=c.getContext("2d"),E=Z>>>1;c.width=c.height=Z;var P=[];
for(var G=0;G<e.length;G++){if(e[G]=="checker"){q.fillStyle="white";q.fillRect(0,0,Z,Z);q.fillStyle="#bbbbbb";
q.fillRect(E,0,E,E);q.fillRect(0,E,E,E)}else if(e[G].startsWith("#")){q.fillStyle=e[G];q.fillRect(0,0,Z,Z)}if(e[G]=="checker"||e[G].startsWith("#"))P.push("<img src=\""+c.toDataURL()+"\" />");
else P.push("<img src=\""+e[G]+"\" class=\"autoscale gsicon\" />")}cp.call(this,h,P,$)}a4.prototype=new cp;
a4.fA=D.w("canvas");function fs(h,e,$,Z){ev.call(this);if(!e)return;if($==null)$=!1;this.sP=0;this.a8b=$;
this.pO=h;this.hN=null;this.ak1=Z;var c="dd"+D.bo();this.j=D.w("span","fitem ddmenu");if(h&&!$){this.WA=D.w("label","flabel");
this.j.appendChild(this.WA);this.WA.setAttribute("for",c)}this.ql=D.w("select","bbtn");this.ql.setAttribute("id",c);
this.j.appendChild(this.ql);this.ql.addEventListener("change",this.AI.bind(this),!1);this.LE=[];this.tj=null;
this.uK(e,Z);this.B()}fs.prototype=new ev;fs.prototype.TQ=function(h){this.pO=h;this.B()};fs.prototype.B=function(){if(this.pO!=null){var h=e_.get(this.pO);
if(this.a8b)this.ql.setAttribute("title",h);else this.WA.textContent=h+":"}if(this.tj)this.uK(this.tj,this.ak1);
this.T(this.sP)};fs.prototype.u=function(){return this.sP};fs.prototype.uK=function(h,e){D.LK(this.ql);
var $=[],Z=0;if(e){$.push(e[0]);for(var G=1;G<e.length;G++)$.push($[G-1]+e[G])}this.tj=h;this.hN=[];
this.ak1=e;for(var G=0;G<h.length;G++){var c=D.w("option");c.textContent=e_.get(h[G]);c.setAttribute("value",G);
this.ql.appendChild(c);this.LE.push(c);this.hN.push(G+Z);if($.indexOf(G+1)!=-1&&G!=h.length-1){var q=D.w("option");
q.setAttribute("disabled","");q.textContent="";this.ql.appendChild(q);Z++}}};fs.prototype.T=function(h){this.sP=h;
this.ql.selectedIndex=this.hN[h]};fs.prototype.AI=function(h){this.sP=this.hN.indexOf(this.ql.selectedIndex);
this.f(new B(D.E.L,!1))};function af(){ev.call(this);this.pq=null;this.a5=new hV;this.a5.k(D.E.L,this.aoH,this);
this.a5.parent=this;this.O1=new hr([12,14,0],1,150,"px",0,!0);this.O1.k(D.E.L,this.ce,this);this.O1.parent=this;
this.PK=new hr([16,0],0,100,"px",2,!0,null,5);this.PK.k(D.E.L,this.ce,this);this.PK.parent=this;this.lH=new cw("Auto");
this.lH.k(D.E.L,this.ce,this);this.zD=new hr([16,1],-500,5e3,"%",0,!0);this.zD.k(D.E.L,this.ce,this);
this.zD.parent=this;this.v1=new hr("\u2B0D",1,300,"%",null,null,null,null,[[2,7],[22,4,3]]);this.v1.k(D.E.L,this.ce,this);
this.v1.parent=this;this.Yt=new hr("\u2B0C",1,300,"%",null,null,null,null,[[2,7],[22,4,2]]);this.Yt.k(D.E.L,this.ce,this);
this.Yt.parent=this;this.no=new hr([16,2],-10,10,"px");this.no.k(D.E.L,this.ce,this);this.no.parent=this;
this.lX=new fx(!0);this.lX.k(D.E.L,this.amP,this);this.lX.parent=this;this.QV=new gg("<img src=\""+PIMG["type/bold"]+"\" class=\"autoscale gsicon\" />");
this.HY=new gg("<img src=\""+PIMG["type/italic"]+"\" class=\"autoscale gsicon\" />");this.ea=new gg("<img src=\""+PIMG["type/caps"]+"\" class=\"autoscale gsicon\" />");
this._$=new gg("<img src=\""+PIMG["type/scaps"]+"\" class=\"autoscale gsicon\" />");this.iu=new gg("<img src=\""+PIMG["type/sub"]+"\" class=\"autoscale gsicon\" />");
this.Nt=new gg("<img src=\""+PIMG["type/sup"]+"\" class=\"autoscale gsicon\" />");this.qQ=new gg("<img src=\""+PIMG["type/under"]+"\" class=\"autoscale gsicon\" />");
this.c_=new gg("<img src=\""+PIMG["type/strike"]+"\" class=\"autoscale gsicon\" />");var h=[this.QV,this.HY,this.ea,this._$,this.iu,this.Nt,this.qQ,this.c_];
for(var G=0;G<h.length;G++)h[G].k("click",this.alZ,this);this.e6=new gg("<img src=\""+PIMG["par/left"]+"\" class=\"autoscale gsicon\" />");
this.vt=new gg("<img src=\""+PIMG["par/right"]+"\" class=\"autoscale gsicon\" />");this.Og=new gg("<img src=\""+PIMG["par/center"]+"\" class=\"autoscale gsicon\" />");
this.ao7=new gg("<img src=\""+PIMG["par/jleft"]+"\" class=\"autoscale gsicon\" />");this.a5a=new gg("<img src=\""+PIMG["par/jright"]+"\" class=\"autoscale gsicon\" />");
this.a5U=new gg("<img src=\""+PIMG["par/jcenter"]+"\" class=\"autoscale gsicon\" />");this.a1N=new gg("<img src=\""+PIMG["par/jall"]+"\" class=\"autoscale gsicon\" />");
this.T3=[this.e6,this.vt,this.Og,this.ao7,this.a5a,this.a5U,this.a1N];for(var G=0;G<this.T3.length;G++)this.T3[G].k("click",this.ce,this);
var e=["lind","rind","flind","bind","aind"],$=[];for(var G=0;G<5;G++)$.push("<img src=\""+PIMG["par/"+e[G]]+"\" class=\"autoscale gsicon\" /> ");
this.jy=new hr($[0],-20,20,"px");this.jy.k(D.E.L,this.ce,this);this.jy.parent=this;this.o0=new hr($[1],-20,20,"px");
this.o0.k(D.E.L,this.ce,this);this.o0.parent=this;this.sd=new hr($[2],-20,20,"px");this.sd.k(D.E.L,this.ce,this);
this.sd.parent=this;this.O9=new hr($[3],-20,20,"px");this.O9.k(D.E.L,this.ce,this);this.O9.parent=this;
this.ur=new hr($[4],-20,20,"px");this.ur.k(D.E.L,this.ce,this);this.ur.parent=this;this.Pb=new cp([12,33],["Abc ...","... \u0623\u064A \u0628\u064A"]);
this.Pb.k(D.E.L,this.ce,this);this.Pb.parent=this}af.prototype=new ev;af.prototype.B=function(){this.a5.B();
this.O1.B();this.PK.B();this.zD.B();this.no.B();this.v1.B();this.Yt.B();this.Pb.B()};af.prototype.T=function(h,e,$){this.wM=JSON.parse(JSON.stringify(h));
var Z=this.wM,c=Z.By,q=Z.Bp;this.QV.T(c.FauxBold!=null?c.FauxBold:!1);this.HY.T(c.FauxItalic!=null?c.FauxItalic:!1);
this.ea.T(c.FontCaps==2);this._$.T(c.FontCaps==1);this.Nt.T(c.FontBaseline==1);this.iu.T(c.FontBaseline==2);
this.qQ.T(c.Underline);this.c_.T(c.Strikethrough);this.a5.T(c.Font==null?null:Z.Kr[c.Font].Name,e,$);
var E=c.FontSize==null?20:c.FontSize;this.O1.T(E);var P=c.Tracking;this.zD.T(P==null?0:P);this.PK.T(c.Leading!=null?c.Leading:0);
this.lH.T(c.AutoLeading);this.v1.T((c.VerticalScale!=null?c.VerticalScale:0)*100);this.Yt.T((c.HorizontalScale!=null?c.HorizontalScale:0)*100);
this.no.T(c.BaselineShift!=null?c.BaselineShift:0);if(c.FillColor){var a=gK.LX(c);this.lX.Dt(Math.round(a.h)<<16|Math.round(a.l)<<8|Math.round(a.O))}else this.lX.Dt(0);
var j=q._Direction!=null?q._Direction:0,L=gK.Ge(q);for(var G=0;G<this.T3.length;G++)this.T3[G].T(L==G);
this.Pb.T(j);this.jy.T(q.StartIndent!=null?q.StartIndent:0);this.o0.T(q.EndIndent!=null?q.EndIndent:0);
this.sd.T(q.FirstLineIndent!=null?q.FirstLineIndent:0);this.O9.T(q.SpaceBefore!=null?q.SpaceBefore:0);
this.ur.T(q.SpaceAfter!=null?q.SpaceAfter:0)};af.prototype.Ta=function(){var h=new B(D.E.P,!0);h.data={e:D.U.Ov,Av:iM.s1,wM:this.wM};
this.f(h);var h=new B(D.E.A,!0);h.F=f.kE;h.data={e:"updateStyles"};this.f(h)};af.prototype.alZ=function(h){var e=this.wM.By,$=h.target,Z=!$.ha();
if($==this.QV)e.FauxBold=Z;if($==this.HY)e.FauxItalic=Z;if($==this.ea)e.FontCaps=Z?2:0;if($==this._$)e.FontCaps=Z?1:0;
if($==this.Nt)e.FontBaseline=Z?1:0;if($==this.iu)e.FontBaseline=Z?2:0;if($==this.qQ)e.Underline=Z;if($==this.c_)e.Strikethrough=Z;
this.Ta()};af.prototype.ce=function(h){var e=this.wM.By,$=this.wM.Bp,Z=h.target;if(Z==this.zD){var c=this.zD.u();
e.Tracking=c}if(Z==this.PK){e.AutoLeading=!1;e.Leading=this.PK.u()}if(Z==this.lH){e.AutoLeading=this.lH.u()}if(Z==this.O1)e.FontSize=Z.u();
if(Z==this.v1)e.VerticalScale=Z.u()/100;if(Z==this.Yt)e.HorizontalScale=Z.u()/100;if(Z==this.no)e.BaselineShift=Z.u();
if(this.T3.indexOf(Z)!=-1){$.Justification=gK.Ge($,this.T3.indexOf(Z))}if(Z==this.jy)$.StartIndent=Z.u();
if(Z==this.o0)$.EndIndent=Z.u();if(Z==this.sd)$.FirstLineIndent=Z.u();if(Z==this.O9)$.SpaceBefore=Z.u();
if(Z==this.ur)$.SpaceAfter=Z.u();if(Z==this.Pb)$._Direction=Z.u();this.Ta()};af.prototype.aoH=function(h){var e=this.wM,$=this.a5.u(),Z=-1;
for(var G=0;G<e.Kr.length;G++)if(e.Kr[G].Name==$)Z=G;if(Z==-1){Z=e.Kr.length;var c=JSON.parse(JSON.stringify(e.Kr[0]));
c.Name=$;e.Kr.splice(Z,0,c)}e.By.Font=Z;this.Ta()};af.prototype.amP=function(h){var e=this.lX.S1(),$={Type:1,Values:[1,(e>>16&255)/255,(e>>8&255)/255,(e>>0&255)/255]};
for(var G=0;G<4;G++)$.Values[G]=Math.round($.Values[G]*1e3)/1e3;this.wM.By.FillColor=$;this.Ta()};function hV(){ev.call(this);
this.j=D.w("span","fontinput");this.Vx=null;this.kl=null;this.U4=null;this.qJ="";this.fI={};this.Pr=[];
this.a46={};this.vS=!1;this.jt=D.w("button","fitem");this.jt.setAttribute("style","width:9em;");this.jt.textContent="Family Name \u25BC";
this.j.appendChild(this.jt);D.uh(this.jt,this.uy.bind(this));this.To=new ev;this.To.parent=this;this.To.j=D.w("div","floatcont");
this.To.j.addEventListener("keyup",this.a3X.bind(this),!1);this.uF=new cI(6.8);this.To.j.appendChild(this.uF.ah3());
this.uF.parent=this.To;this.uF.k(D.E.L,this.KT,this);var h=D.w("div","form");this.To.j.appendChild(h);
this.ro=new gg(D.H$("tools/cshape",null,"autoscale"),!1,"Show Favorites Only");this.ro.k("click",this.amq,this);
h.appendChild(this.ro.j);this.Sw=new a_([12,86],null,9);this.Sw.k("input",this.z1,this);h.appendChild(this.Sw.j);
var e=this.a4H=new gg([[23,6],[22,6,0]],!1,"Load OTF / TTF file from your computer",!0);e.k("click",this.alP,this);
e.j.style.marginLeft="1.5em";h.appendChild(e.j);this.xi=D.w("span","fitem imageset scrollable marged");
this.xi.style.height="30em";this.To.j.appendChild(this.xi);this.eW=D.w("button","fitem");this.eW.setAttribute("style","width:7em;");
this.eW.textContent="SubFamily Name \u25BC";this.j.appendChild(this.eW);D.uh(this.eW,this.uy.bind(this));
this.cr=new ev;this.cr.parent=this;this.cr.j=D.w("div","floatcont");this.oi=D.w("span","fitem imageset scrollable marged");
this.cr.j.appendChild(this.oi)}hV.prototype=new ev;hV.prototype.a3X=function(h){var e=0;if(p.VG(h.code,p.wi))e=-1;
if(p.VG(h.code,p.Xs))e=1;if(e!=0){var $=this.Pr,Z=$.length,c=this.Vx.Ht()[this.U4];if(c==null&&Z==0)return;
var q=$.indexOf(c[0]);if(q==-1)return;q=(q+e+Z)%Z;this.CR($[q],null)}};hV.prototype.alP=function(){var h=new B(D.E.P,!0);
h.data={e:D.U.e1,a0c:".otf,.ttf,.ttc"};this.f(h)};hV.prototype.B=function(){this.uF.B();this.a4H.B();
this.ro.TQ(D.H$("tools/cshape",null,"autoscale"))};hV.prototype.amq=function(h){this.ro.T(!this.ro.ha());
this.KT()};hV.prototype.z1=function(h){this.qJ=this.Sw.u().toLowerCase();this.KT()};hV.prototype.uy=function(h){D.pt(h);
var e=h.currentTarget,$=e.getBoundingClientRect(),Z=e==this.jt,c=Z?this.To:this.cr;if(D.Nn(c.j)){this.Ee(c);
return}if(!Z&&this.Vx.Ht()[this.U4]==null)return;var q=new B(D.E.P,!0);q.data={e:D.U.sH,yv:c,x:$.left,y:$.top+$.height};
this.f(q);if(Z){this.KT();this.Sw.tI()}};hV.prototype.ald=function(h){var e=h.currentTarget.firstChild.nextSibling.textContent;
if(h.target.tagName.toLowerCase()=="button"){var $=this.kl.slice(0),Z=$.indexOf(e);if(Z==-1){$=$.slice(Math.max(0,$.length-29));
$.push(e)}else $.splice(Z,1);var c=new B(D.E.P,!0);c.data={e:D.U.Ov,Av:iM.dQ,El:$};this.f(c);this.vS=!0;
this.KT()}else{this.CR(e,null);this.Sw.tI()}};hV.prototype.a8G=function(h){this.CR(null,h.currentTarget.firstChild.textContent)};
hV.prototype.CR=function(h,e){var $=h==null?this.cr:this.To,Z=this.Vx;if(h==null)h=Z.Ht()[this.U4][0];
else{var c=Z.I3(h),q=Z.Ht()[this.U4];e=bc.fR(c,q?q[1]:"regular")}var E=Z.hC(h,e)[2];this.T(E,Z);this.f(new B(D.E.L,!1));
this.Ee($);this.KT()};hV.prototype.Ee=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.Is,yv:h};this.f(e)};
hV.prototype.u=function(){return this.U4};hV.prototype.T=function(h,e,$){var Z=this.Vx;if(h!=null)this.U4=h;
else h=this.U4;this.Vx=e;this.kl=$;if(h!=null){var c=e.Ht()[h],q,E;if(c==null){q="- "+h;E="-------"}else{q=c[0];
E=c[1];var P=e.I3(q);P.sort(bc.amJ);var a=P.indexOf(E),j=this.a8G.bind(this);this.oi.textContent="";
for(var G=0;G<P.length;G++){var c=e.hC(q,P[G]);if(!this.uF.Pj(c))continue;var L=this.yQ(c,c[1],j,!1);
this.oi.appendChild(L)}}this.jt.textContent=q.substring(0,15)+" \u25BC";this.jt.setAttribute("title",q);
this.eW.textContent=E.substring(0,10)+" \u25BC";this.eW.setAttribute("title",E)}};hV.prototype.KT=function(){var h=this.Vx.Ht()[this.U4],e=this.kl,$=null,Z=this.Vx.a07(),c=this.ald.bind(this);
this.Pr=[];for(var q in Z){var E=bc.fR(Z[q],"regular"),P=this.Vx.hC(q,E),a=e.indexOf(q)!=-1,j=!0;if(this.qJ.length>0&&P[0].toLowerCase().indexOf(this.qJ)==-1)j=!1;
else if(!this.uF.Pj(P))j=!1;else if(this.ro.ha()&&!a)j=!1;var L=this.fI[q];if(L==null){var L=this.yQ(P,q,c,!0);
this.fI[q]=L;this.xi.appendChild(L)}if(j)this.Pr.push(q);var H=j?"":"display:none; ",_="opacity: "+(a?"1":"0.2");
if(h&&h[0]==q){H+="background-color:rgba(0,0,0,0.13);";$=L}if(this.a46[q]!=H+_){L.setAttribute("style",H);
L.firstChild.setAttribute("style",_);this.a46[q]=H+_}}if($&&!this.vS)this.xi.scrollTop=$.offsetTop-210;
this.vS=!1};hV.prototype.yQ=function(h,e,$,Z){var c=D.w("div","fontitem"),a="";c.addEventListener("click",$,!1);
if(Z)c.appendChild(D.w("button","star"));var q=D.w("span","label");q.setAttribute("title",e);q.textContent=e;
c.appendChild(q);var E=D.M(),P=1/E,j=bc.cI*P,L=bc.SA*P;if(1<E&&E<1.5)a="width:"+j+"px; height:"+L+"px;";
var H=D.w("span","thumb gsicon");if(h.a1d){a+="background: url("+h.a1d+");";if(1<E&&E<1.5)a+="background-size: "+j+"px "+L+"px;"}else{var _=Math.ceil(FNTS.list.length/bc.cols),J=Math.floor(h.NS/_),S=h.NS%_,N=J*bc.cI,Y=S*bc.SA;
if(1<E&&E<1.5){a+="background-size: "+bc.cols*j+"px "+_*L+"px;";N*=P;Y*=P}a+="background-position:-"+N+"px -"+Y+"px;"}H.setAttribute("style",a);
c.appendChild(H);return c};function cI(h){ev.call(this);this.j=D.w("button","fitem bbtn");this.j.addEventListener("click",this.a7m.bind(this),!1);
this.xN=new ev;this.xN.j=D.w("div","floatcont");this.xN.parent=this;this.WB=D.w("div","flexrow");this.xN.j.appendChild(this.WB);
this.Rk=[];this.xw=[];var e=this.WB,$=D.w("div",""),Z=D.w("div","");e.appendChild($);e.appendChild(Z);
this.wX=[];for(var G=0;G<FNTS.cats.length;G++)this.wX.push({name:FNTS.cats[G],index:G,m1:0});this.AF=new cw([7,0]);
this.AF.k(D.E.L,this.afK,this);$.appendChild(this.AF.j);this.b8=D.w("div","vlist marged scrollable");
this.b8.setAttribute("style","width:10.85em; height:"+h+"em; ");$.appendChild(this.b8);this.Aj=[];for(var G=0;
G<this.wX.length;G++){var c=this.wX[G],q=new cw(c.name);this.Aj.push(q);q.k(D.E.L,this.a0j,this);q.T(!0);
this.b8.appendChild(q.j);this.Rk.push(1)}this.akM=new cw([7,0]);this.akM.k(D.E.L,this.a0$,this);this.ge=D.w("div","vlist marged scrollable");
this.ge.setAttribute("style","width:8.6em; height:"+(h+1.5)+"em; ");Z.appendChild(this.ge);this.Ki=[];
for(var G=0;G<FNTS.subsetNames.length;G++){var q=new cw(FNTS.subsetNames[G]);this.Ki.push(q);q.k(D.E.L,this.adr,this);
q.T(!1);this.ge.appendChild(q.j);this.xw.push(0)}}cI.prototype=new ev;cI.prototype.a9J=function(h){var e=this.Ki;
for(var G=0;G<e.length;G++){var $=(h>>>G&1)==1;this.xw[G]=$;e[G].T($)}};cI.prototype.ah3=function(){return this.WB};
cI.prototype.B=function(){this.j.textContent=e_.get([25,1,0])+" \u25BC";this.AF.B();this.akM.B()};cI.prototype.a7m=function(h){var e=this.j.getBoundingClientRect(),$=new B(D.E.P,!0);
$.data={e:D.U.sH,yv:this.xN,x:e.left,y:e.top+e.height,Uv:!1};this.f($)};cI.prototype.Pj=function(h){if(this.Rk[h[4]]==0)return!1;
else for(var e=0;e<this.xw.length;e++)if(this.xw[e]==1&&(h[3]>>>e&1)==0)return!1;return!0};cI.prototype.afK=function(h){var e=h.target.u(),$=this.Aj,Z=this.Rk;
for(var G=0;G<$.length;G++){$[G].T(e);Z[G]=e?1:0}this.f(new B(D.E.L,!1))};cI.prototype.a0$=function(h){var e=h.target.u(),$=this.Ki,Z=this.xw;
for(var G=0;G<$.length;G++){$[G].T(e);Z[G]=e?1:0}this.f(new B(D.E.L,!1))};cI.prototype.a0j=function(h){var G=this.Aj.indexOf(h.target),e=this.wX[G].index;
this.Rk[e]=1-this.Rk[e];this.f(new B(D.E.L,!1))};cI.prototype.adr=function(h){var G=this.Ki.indexOf(h.target);
this.xw[G]=1-this.xw[G];this.f(new B(D.E.L,!1))};function fh(h,e,$){gI.call(this,e,!0,"gradientbutton",18,10,iM.xB);
this.oV=-1;this.XK=-1;this.a29=null;this.a0R=h;this.x9=$}fh.prototype=new gI;fh.prototype.qx=function(h){var e=this.ZM;
this.T(e[this.Xu.u()]);this.f(new B(D.E.L))};fh.prototype.i2=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.tr,yq:"gradienteditor",Y:this.$L,Nb:this.a0w.bind(this),ii:this.x9};
this.f(e)};fh.prototype.a0w=function(h){this.T(h);this.f(new B(D.E.L))};fh.prototype.t9=function(){if(!this.ZE)return;
var h=Math.floor(36*D.M()),e=Math.floor(36*D.M()),$=[],Z=[],c=this.ZM;for(var G=0;G<c.length;G++){var q=c[G];
Z.push(q.Nm?q.Nm.v.split("=").pop():"");var E=f.mT.TD(q,h,e,Math.PI/4,this.oV,this.XK);$.push(E)}this.Xu.Go($,Z,h,e);
this.ZE=!1};fh.prototype.DM=function(h,e){this.wm(this.$L,h,e)};fh.prototype.T=function(h){this.wm(h,this.oV,this.XK)};
fh.prototype.wm=function(h,e,$){this.oV=e;this.XK=$;if(h==null)return;var Z=JSON.stringify(h),c=Z+e+","+$;
if(c==this.a29)return;this.a29=c;this.$L=JSON.parse(Z);var q=Math.floor(80*D.M()),E=Math.floor(16*D.M()),P=f.mT.TD(this.$L,q,E,0,this.oV,this.XK);
this.Xr.setAttribute("src",P);D.pH(this.Xr,q,E)};fh.prototype.u=function(){var h;if(this.a0R)h=f.mT.afS(this.$L,this.oV,this.XK);
else h=JSON.parse(JSON.stringify(this.$L));return h};function dJ(h){gI.call(this,h,!1,"swatchbutton",16,8.75,iM.z_)}dJ.prototype=new gI;
dJ.prototype.qx=function(h){this.T(this.ZM[h.target.u()]);this.f(new B(D.E.L))};dJ.prototype.t9=function(){if(!this.ZE)return;
var h=Date.now(),e=Math.floor(10*D.M()),$=Math.floor(10*D.M()),Z=[],c=[],q=this.ZM;for(var G=0;G<q.length;
G++){c.push(q[G].yK?q[G].yK.split("=").pop():"");Z.push(dJ.TD(q[G],e,$))}this.Xu.Go(Z,c,e,$);this.ZE=!1};
dJ.prototype.T=function(h){this.$L=JSON.parse(JSON.stringify(h));this.v5()};dJ.prototype.v5=function(){var h=Math.floor(24*D.M()),e=Math.floor(20*D.M()),$=dJ.TD(this.$L,h,e);
this.Xr.setAttribute("src",$);D.pH(this.Xr,h,e)};dJ.prototype.u=function(){return JSON.parse(JSON.stringify(this.$L))};
dJ.Ji={};dJ.TD=function(h,e,$){var Z=dJ.s0,c=dJ.Ji,q=s.jT(h.h<<16|h.l<<8|h.O);if(c[q])return c[q];if(Z==null){var E=D.w("canvas");
Z=dJ.s0=E.getContext("2d")}var E=Z.canvas;E.width=e;E.height=$;Z.fillStyle="#"+q;Z.fillRect(0,0,e,$);
var P=c[q]=E.toDataURL();return P};function cw(h,e,$){ev.call(this);this.j=D.w("span","fitem cbox");
if(e==null)e=!0;if($==null)$="flabel";var Z="cb"+D.bo();this.iB=D.w("input","");this.iB.setAttribute("type","checkbox");
this.iB.setAttribute("id",Z);this.j.appendChild(this.iB);this.pO=h;this.WA=D.w("label",$);if(e)this.WA.setAttribute("for",Z);
this.j.appendChild(this.WA);this.B();this.iB.addEventListener("change",this.AI.bind(this),!1)}cw.prototype=new ev;
cw.prototype.Jc=function(){return this.pO};cw.prototype.TQ=function(h){this.WA.textContent=h};cw.prototype.B=function(){var h=this.pO;
if(typeof h=="string"&&h.startsWith("<"))this.WA.innerHTML=h;else this.WA.textContent=e_.get(h)};cw.prototype._j=function(){this.iB.checked=!0};
cw.prototype.Qv=function(){this.iB.checked=!1};cw.prototype.ha=function(){return this.iB.checked};cw.prototype.T=function(h){this.iB.checked=h};
cw.prototype.u=cw.prototype.ha;cw.prototype.AI=function(h){this.f(new B(D.E.L,!1))};function gv(h,e,$,Z){ev.call(this);
this.j=D.w("span","fitem mbox");this.ait=$;if(h){this.pO=h;this.WA=D.w("label","flabel");this.j.appendChild(this.WA)}this.oe=e;
this.A6=[];for(var G=0;G<e.length;G++){var c=$?new gg(e[G],!1,Z?Z[G]:null):new cw(e[G],!0,"");c.k($?"click":D.E.L,this.AI,this);
this.A6.push(c);this.j.appendChild(c.j)}this.B()}gv.prototype=new ev;gv.prototype.T=function(h){for(var e=0;
e<this.oe.length;e++)this.A6[e].T(h[e])};gv.prototype.u=function(){var h=[];for(var e=0;e<this.oe.length;
e++)h[e]=this.A6[e].u();return h};gv.prototype.B=function(){if(this.pO)this.WA.innerHTML=e_.get(this.pO)+": ";
for(var h=0;h<this.A6.length;h++)this.A6[h].B()};gv.prototype.AI=function(h){var G=this.A6.indexOf(h.currentTarget);
if(this.ait)this.A6[G].T(!this.A6[G].u());this.f(new B(D.E.L,!1))};function hN(h,e,$,Z,c,q){gA.call(this,h,e,$,Z,c,!1,q);
this.j.appendChild(this.WA);var E=D.w("span","rangecont");this.j.appendChild(E);E.appendChild(this.Nx);
this.j.appendChild(this.iB);this.iB.setAttribute("style","width:3.3em");if(this.DX)this.j.appendChild(this.ue)}hN.prototype=new gA;
function aY(h,e,$,Z){if(h==null)h=!1;if(e==null)e=!1;if($==null)$=!1;ev.call(this);this.f3=new eu;this.fD=new eu;
this.$b=72;this.q2=72;this.ou=!0;this.j=D.w("span","");this.Oq=new hr([12,41],0,0,null,0,!1,!0);this.j.appendChild(this.Oq.j);
this.Oq.k(D.E.L,this.zs,this);var c=["px","%"];if(h)c=c.concat(["mm","in"]);this.bC=new fs(null,c);this.j.appendChild(this.bC.j);
D.vV(this.j);this.bC.k(D.E.L,this.zs,this);this.Rm=new hr([12,42],0,0,null,0,!1,!0);this.j.appendChild(this.Rm.j);
this.Rm.k(D.E.L,this.zs,this);var q=new gg("\u21F5",!1,null,!0);q.k("click",this.a7i,this);this.pG=new gg("<img src=\""+PIMG["lrs/chain"]+"\" class=\"autoscale gsicon\" />",!1,[12,51]);
this.pG.k("click",this.zs,this);this.akB=new cZ("");if(e){this.j.appendChild(this.pG.j);this.j.appendChild(this.akB.j);
this.pG._j()}else this.j.appendChild(q.j);this.pZ=new hr("DPI",0,0,null,3,!1,!0,4);if(h&&Z==null){D.vV(this.j);
this.j.appendChild(this.pZ.j)}this.pZ.k(D.E.L,this.zs,this);this.Xg=new cw([12,23,1]);this.Xg.k(D.E.L,this.zs,this);
if($){D.vV(this.j);this.j.appendChild(this.Xg.j)}D.vV(this.j)}aY.prototype=new ev;aY.prototype.ajh=function(){this.ou=!1;
if(this.bC.u()==0){this.bC.T(3);this.zG()}};aY.prototype.aga=function(){this.ou=!0};aY.prototype.a2s=function(h){this.pG.T(h)};
aY.prototype.B=function(){this.Oq.B();this.Rm.B();this.pZ.B();this.pG.B();this.Xg.B()};aY.prototype.a7i=function(h){var e=this.fD.x;
this.fD.x=this.fD.y;this.fD.y=e;this.zG();this.f(new B(D.E.L,!1))};aY.prototype.zs=function(h){if(h.target==this.bC&&!this.ou&&this.bC.u()==0)this.bC.T(3);
if(h.target==this.bC||h.target==this.Xg){this.zG();return}if(h.target==this.pG)h.target.T(!h.target.u());
var e=this.f3,$=parseFloat(this.Oq.u());if(isNaN($))$=1;var Z=parseFloat(this.Rm.u());if(isNaN(Z))Z=1;
var c=this.bC.u();if(this.ou){var q=this.q2;if(c==1){$=this.f3.x*($/100);Z=this.f3.y*(Z/100)}var E=[1,1,25.4/q,1/q][c];
$/=E;Z/=E;if(this.Xg.u()){$+=this.f3.x;Z+=this.f3.y}if(h.target==this.pZ){var P=this.pZ.u();if(!0){var a=P/q;
$*=a;Z*=a}q=P}if(this.pG.u()){if(h.target==this.Oq)Z=$*(e.y/e.x);else $=Z*(e.x/e.y)}$=Math.max(Math.abs($),1);
Z=Math.max(Math.abs(Z),1)}else{var q=this.$b;if(h.target==this.pZ)q=this.pZ.u();else{if(this.pG.u()){if(h.target==this.Oq)Z=$*(e.y/e.x);
else $=Z*(e.x/e.y)}var E=[1,1,25.4/q,1/q][c],j=$/(c==1?100:e.x*E);q=q/j}$=e.x;Z=e.y}this.fD=new eu(Math.round($),Math.round(Z));
this.q2=q;this.zG();this.f(new B(D.E.L,!1))};aY.prototype.a4j=function(G){this.bC.T(G);this.zG()};aY.prototype.T=function(h,e,$){if($!=!0)this.f3=h.clone();
this.fD=h.clone();if(e!=null){this.$b=e;this.q2=e}this.zG()};aY.prototype.zG=function(){var h=this.fD.x,e=this.fD.y,$=this.q2,Z=(h/e).toFixed(3);
while(Z.charAt(Z.length-1)=="0")Z=Z.substring(0,Z.length-1);if(Z.charAt(Z.length-1)==".")Z=Z.substring(0,Z.length-1);
var c="  "+Z+" : 1",q=function(L,H){while(H!=0){var _=H;H=L%H;L=_}return L},E=q(h,e);if(Math.min(h,e)/E<10)c="  "+Math.round(h/E)+" : "+Math.round(e/E);
this.akB.T(c);if(this.Xg.u()){h-=this.f3.x;e-=this.f3.y}var P=this.bC.u();if(P==1){if(this.ou){h=100*h/this.f3.x;
e=100*e/this.f3.y}else{h=e=100*this.$b/this.q2}}else{h=Math.round(h);e=Math.round(e)}var a=[1,1,25.4/$,1/$][P];
h*=a;e*=a;var j=P==1||P==3?2:0;this.Oq.dg(j);this.Rm.dg(j);this.Oq.T(h);this.Rm.T(e);this.pZ.T($)};aY.prototype.u=function(){return this.fD.clone()};
aY.prototype.Uf=function(){return this.q2};function fv(){ev.call(this);this.Fa=0;this.Mj=[0,0,1,1,100,100];
this.j=D.w("span","fitem");this.Lx=new fs(null,[[12,89,0],[12,89,1],[12,89,2]]);this.j.appendChild(this.Lx.j);
this.Lx.k(D.E.L,this.zs,this);this.Oq=new hr("W",0,0,null,0,!1,!0);this.j.appendChild(this.Oq.j);this.Oq.k(D.E.L,this.zs,this);
this.Rm=new hr("H",0,0,null,0,!1,!0);this.j.appendChild(this.Rm.j);this.Rm.k(D.E.L,this.zs,this);this.T({A2:0,x:0,y:0})}fv.prototype=new ev;
fv.prototype.B=function(){D.Qb(this.Oq,this.Rm);this.Lx.B()};fv.prototype.zs=function(h){if(h.target==this.Lx){var e=this.u(),$=this.Mj;
$[this.Fa*2]=e.x;$[this.Fa*2+1]=e.y;this.Fa=e.A2;this.T({A2:e.A2,x:$[e.A2*2],y:$[e.A2*2+1]})}if(this.Oq.u()<1)this.Oq.T(1);
if(this.Rm.u()<1)this.Rm.T(1);this.f(new B(D.E.L,!1))};fv.prototype.T=function(h){this.Lx.T(h.A2);this.Oq.T(h.x);
this.Rm.T(h.y);if(h.A2==0){this.Oq.WJ();this.Rm.WJ()}else{this.Oq.pw();this.Rm.pw()}};fv.prototype.u=function(){return{A2:this.Lx.u(),x:this.Oq.u(),y:this.Rm.u()}};
function cZ(h,e){ev.call(this);this.pO=h;this.j=D.w("span","labelitem fitem"+(e?" spread":""));this.B()}cZ.prototype=new ev;
cZ.prototype.T=function(h){this.j.textContent=h};cZ.prototype.u=function(){return this.j.textContent};
cZ.prototype.pw=function(){this.j.removeAttribute("disabled")};cZ.prototype.WJ=function(){this.j.setAttribute("disabled","")};
cZ.prototype.TQ=function(h){this.j.textContent=h};cZ.prototype.B=function(){this.j.textContent=e_.get(this.pO)};
cZ.prototype.Jc=function(){return this.pO};function fq(h){ev.call(this);this.j=D.w("span","");this.ai9=h;
this.$z=new hN("Off X",-100,100,h?"%":"px",0,!1);this.fE=new hN("Off Y",-100,100,h?"%":"px",0,!1);this.$z.k(D.E.L,this.zs,this);
this.fE.k(D.E.L,this.zs,this);this.j.appendChild(this.$z.j);this.j.appendChild(this.fE.j)}fq.prototype=new ev;
fq.prototype.B=function(){this.$z.B();this.fE.B()};fq.prototype.zs=function(h){this.f(new B(D.E.L,!1))};
fq.prototype.ahZ=function(h){this.$z.T(h.x);this.fE.T(h.y)};fq.prototype.alN=function(){return new eu(this.$z.u(),this.fE.u())};
fq.prototype.T=function(h,e){var $=h.Hrzn.v,Z=h.Vrtc.v;if(this.ai9){$=$.val;Z=Z.val}this.$z.T($);this.fE.T(Z);
if(e)this.zs()};fq.prototype.u=function(){var h=this.$z.u(),e=this.fE.u();if(this.ai9)return{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:h}},Vrtc:{t:"UntF",v:{type:"#Prc",val:e}}};
else return{classID:"Pnt",Hrzn:{v:h,t:"doub"},Vrtc:{v:e,t:"doub"}}};function hr(h,e,$,Z,c,q,E,P,a){gA.call(this,h,e,$,Z,c,!0,q,a);
D.so(this.j,"rangedropinput");this.j.appendChild(this.WA);this.iB.setAttribute("style","width:"+(P?P:3.3)+"em");
this.j.appendChild(this.iB);this.anj=D.w("span","rangecont");this.anj.appendChild(this.Nx);this.Cl=D.w("button");
this.Cl.innerHTML="\u25BC";D.uh(this.Cl,this.ail.bind(this));if(E!=!0)this.j.appendChild(this.Cl);this.rr=new ev;
this.rr.j=this.anj}hr.prototype=new gA;hr.prototype.ail=function(h){if(D.Nn(this.rr.j))return;h.stopPropagation();
var e=this.j.getBoundingClientRect();this.Nx.setAttribute("style","width:"+e.width+"px;");var $=new B(D.E.P,!0);
$.data={e:D.U.sH,yv:this.rr,x:e.left,y:e.top+e.height};this.f($)};function ha(){ev.call(this);this.j=D.w("span","fitem strokebutton");
this.WL=[[null,null,null,""],[null,0,null,"4 2"],[1,1,null,"0 2"]];this.kw=JSON.parse(JSON.stringify(c3.oF.default));
this.Tf=D.w("button");this.j.appendChild(this.Tf);this.Tf.addEventListener("click",this.OW.bind(this),!1);
var h=D.w("canvas","gsicon");this.J$=h.getContext("2d");this.Tf.appendChild(h);var e=D.w("span");e.textContent=" \u25BC";
this.Tf.appendChild(e);this.xN=new ev;this.xN.parent=this;this.xN.j=D.w("div","floatcont form");var $=this.xN.j;
$.setAttribute("style","width: 14em;");this.fI=[new fs([12,40],[[19,5,2],[19,5,1],[19,5,0]]),new cp([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 cp([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 a_([19,9,2])];
for(var G=0;G<this.fI.length;G++){var Z=this.fI[G];$.appendChild(Z.j);var c=G<4?D.E.L:"click";Z.k(c,this.zs,this)}D.vV($);
this.Ke=[];var q=this.a6Y.bind(this);for(var G=0;G<this.WL.length;G++){var E=D.w("button","fitem");this.Ke.push(E);
$.appendChild(E);E.addEventListener("click",q,!1);var h=D.w("canvas","gsicon"),P=h.getContext("2d");
E.appendChild(h);this.Ic(P,40,20,this.WL[G])}}ha.prototype=new ev;ha.prototype.OW=function(h){var e=this.Tf.getBoundingClientRect(),$=new B(D.E.P,!0);
$.data={e:D.U.sH,yv:this.xN,x:e.left,y:e.top+e.height+4};this.f($)};ha.prototype.zs=function(h){var hi=this.fI,e=hi.indexOf(h.target),$=[];
for(var G=0;G<4;G++)$.push(hi[G].u());this.kw=this.wT($);this.f(new B(D.E.L,!1))};ha.prototype.a6Y=function(h){var e=this.Ke.indexOf(h.currentTarget);
this.T(this.wT(this.WL[e]));this.f(new B(D.E.L,!1))};ha.prototype.wT=function(h){var e=JSON.parse(JSON.stringify(this.kw)),$=h[0],Z=h[1],c=h[2],q=h[3];
if($!=null)e.strokeStyleLineAlignment.v.strokeStyleLineAlignment=c3.oF.ws[$];if(Z!=null)e.strokeStyleLineCapType.v.strokeStyleLineCapType=c3.oF.kS[Z];
if(c!=null)e.strokeStyleLineJoinType.v.strokeStyleLineJoinType=c3.oF.join[c];var E=e.strokeStyleLineDashSet.v=[];
q=q.split(" ");while((q.length&1)!=0)q.pop();for(var G=0;G<q.length;G++)E.push({t:"UntF",v:{type:"#Nne",val:parseInt(q[G])}});
return e};ha.prototype.B=function(){for(var G=0;G<this.fI.length;G++)this.fI[G].B()};ha.prototype.T=function(h){this.kw=JSON.parse(JSON.stringify(h));
var e=c3.oF.ws.indexOf(h.strokeStyleLineAlignment.v.strokeStyleLineAlignment),$=c3.oF.kS.indexOf(h.strokeStyleLineCapType.v.strokeStyleLineCapType),Z=c3.oF.join.indexOf(h.strokeStyleLineJoinType.v.strokeStyleLineJoinType),c=[],q=h.strokeStyleLineDashSet.v;
for(var E=0;E<q.length;E++)c.push(q[E].v.val);var hi=this.fI;hi[0].T(e);hi[1].T($);hi[2].T(Z);hi[3].T(c.join(" "));
var P=[];for(var G=0;G<4;G++)P.push(hi[G].u());this.Ic(this.J$,40,16,P)};ha.prototype.u=function(){return JSON.parse(JSON.stringify(this.kw))};
ha.prototype.Ic=function(h,e,$,Z){var c=Z[0],q=Z[1],E=Z[2],P=Z[3].split(" ").map(parseFloat);D.VR(h.canvas,e,$);
var a=Math.min(5,this.kw.strokeStyleLineWidth.v.val);for(var G=0;G<P.length;G++)P[G]*=a;h.clearRect(0,0,e,$);
h.setLineDash(P);h.lineCap=["butt","round","square"][q];h.lineJoin=["miter","round","bevel"][E];h.lineWidth=a;
h.beginPath();h.moveTo(0,$/2);h.lineTo(e*2,$/2);h.stroke()};function hS(h){gI.call(this,h,!1,"contourbutton",34,16,iM.sK);
this.Sw=new a_([12,86],null,16);this.Sw.k("input",this.z1,this);this.xN.j.appendChild(this.Sw.j);this.rw=null;
this.qJ="";this.$g=null;this.T(bS.X3())}hS.prototype=new gI;hS.prototype.B=function(){gI.prototype.B.call(this);
this.Sw.B()};hS.prototype.qx=function(h){this.T(this.rw[h.target.u()]);this.f(new B(D.E.L))};hS.prototype.z1=function(h){this.qJ=this.Sw.u().toLowerCase();
this.jd()};hS.WK=!1;hS.prototype.t9=function(){if(!this.ZE)return;var h=this.ZM;if(h==null||!hS.WK){var e=new B(D.E.P,!0);
e.data={e:D.U.fu,Av:{url:"rsrc/basic/fa_basic.csh"}};this.f(e);hS.WK=!0}else{var $=Math.floor(38*D.M()),Z=Math.floor(38*D.M());
this.$g=[];for(var G=0;G<h.length;G++)this.$g.push(hS.e2(h[G],$,Z));this.jd();this.ZE=!1}};hS.prototype.jd=function(){var h=Math.floor(38*D.M()),e=Math.floor(38*D.M());
this.rw=[];var $=[],Z=[],c=this.ZM;for(var G=0;G<c.length;G++){if(c[G].dA.toLowerCase().indexOf(this.qJ)==-1)continue;
this.rw.push(c[G]);$.push(this.$g[G]);Z.push(c[G].dA)}this.Xu.Go($,Z,h,e)};hS.prototype.T=function(h){this.$L=hS.clone(h);
this.v5()};hS.prototype.v5=function(){var h=Math.floor(23*D.M()),e=Math.floor(23*D.M()),$=hS.e2(this.$L,h,e);
this.Xr.setAttribute("src",$);D.pH(this.Xr,h,e)};hS.prototype.u=function(){return hS.clone(this.$L)};
hS.clone=function(h){return{dA:h.dA,h0:h.h0,b:o.MM.rP(h.b),Ny:h.Ny.clone()}};hS.p$=null;hS.sm=null;hS.e2=function(h,e,$){var Z=o.MM.rP(h.b),c=h.Ny,q=Math.min(e/c.d,$/c.v)*.9,E=new i7;
E.translate(-.5,-.5);E.scale(.95,.95);E.translate(.5,.5);E.scale(q*c.d,q*c.v);s.W.wD(Z,E);var P=new o.MM;
P.b=Z;var a=P.kV();a.rect.x=Math.floor((e-a.rect.d)/2);a.rect.y=Math.floor(($-a.rect.v)/2);var j=s.m(a.rect.X()*4);
s.Ut(j,4278190080);s.vy(a.channel);s.Jk(a.channel,j,0);s.Jk(a.channel,j,1);s.Jk(a.channel,j,2);var L=hS;
if(L.p$==null)L.p$=D.w("canvas");var H=L.p$,_=H.getContext("2d");if(H.width!=e||H.height!=$||L.sm==null){H.width=e;
H.height=$;L.sm=_.createImageData(e,$)}var J=L.sm;s.Ut(J.data,4294967295);s.hX(j,a.rect,J.data,new O(0,0,e,$));
_.putImageData(J,0,0);return H.toDataURL()};function cS(h){gI.call(this,h,!1,"ICCButton",16,12,iM.Wh,!0);
this.Xu.Yn(1)}cS.prototype=new gI;cS.prototype.Ev=function(){var h="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 G=0;G<h.length;G++)h[G]="luts/"+h[G]+".CUBE";return h};cS.prototype.qx=function(h){this.T(this.ZM[h.target.u()]);
this.f(new B(D.E.L))};cS.prototype.t9=function(){if(!this.ZE)return;var h=Math.floor(1*D.M()),e=Math.floor(1*D.M()),$=[],Z=[],c=this.ZM;
for(var G=0;G<c.length;G++){var q=c[G].Nm.v.split("\\").pop().split("/").pop();Z.push(q);$.push(cS.TD(c[G],h,e))}this.Xu.Go($,Z,h,e);
this.ZE=!1};cS.prototype.T=function(h){this.$L=JSON.parse(JSON.stringify(h));this.v5()};cS.TD=function(h,e,$){var Z=D.w("canvas"),E="ICC / 3DL / look / cube";
Z.width=e;Z.height=$;var c=Z.getContext("2d"),q=Math.floor(14*D.M());c.font=q+"px sans-serif";if(h.Nm)E=h.Nm.v.split("\\").pop().split("/").pop();
c.fillText(E,10,q);return Z.toDataURL()};cS.prototype.v5=function(){var h=Math.floor(120*D.M()),e=Math.floor(20*D.M());
this.Xr.setAttribute("src",cS.TD(this.$L,h,e));D.pH(this.Xr,h,e)};cS.prototype.u=function(){return JSON.parse(JSON.stringify(this.$L))};
function em(){ev.call(this);this.l4=null;this.j=D.w("span","fitem");this.TK=new gC([14,9]);this.dR=new hr(null,0,150,"pt",1,!0,null,null,[19,2,5]);
this.gn=new ha;this.wS=[this.TK,this.dR,this.gn];for(var G=0;G<this.wS.length;G++){var h=this.wS[G];
this.j.appendChild(h.j);h.parent=this;h.k(D.E.L,this.zs,this)}}em.prototype=new ev;em.prototype.B=function(){for(var G=0;
G<this.wS.length;G++)this.wS[G].B()};em.prototype.if=function(h,e){this.TK.if(h,e)};em.prototype.zs=function(h){var e=this.l4,$=this.TK.u(),Z=$.cp;
e.strokeEnabled.v=Z!=0;if(Z!=0){e.strokeStyleContent.v=$.mQ;$.mQ.classID=c3.oF.$v[Z-1]}e.strokeStyleLineWidth.v.val=this.dR.u();
if(h.target==this.gn)e=this.gn.u();this.l4=e;this.f(new B(D.E.L,!1))};em.prototype.T=function(h,e,$){this.l4=JSON.parse(JSON.stringify(e));
var Z=e.strokeEnabled.v,c=e.strokeStyleContent.v,q=Z?{cp:1+c3.oF.$v.indexOf(c.classID),mQ:c}:{cp:0};
this.TK.T(h,q,$);this.dR.T(e.strokeStyleLineWidth.v.val);this.gn.T(e)};em.prototype.u=function(){return JSON.parse(JSON.stringify(this.l4))};
function gV(h){ev.call(this);this.j=D.w("span","fitem");this.Ix=null;if(h){this.Ix=new cZ("");this.j.appendChild(this.Ix.j)}this.gZ=["front","union","difference","intersection"];
var e=[[18,0],[18,1],[18,2],[18,3]];this.xa=[];this.hV=0;for(var G=0;G<this.gZ.length;G++){var $=new gg("<img src=\""+PIMG["set/"+this.gZ[G]]+"\" class=\"autoscale gsicon\" />",!1,e[G]);
$.k("click",this.alm,this);this.j.appendChild($.j);this.xa.push($)}this.xa[0]._j()}gV.prototype=new ev;
gV.prototype.aby=function(){return this.hV};gV.prototype.u=function(){return this.gZ[this.hV]};gV.prototype.T=function(h){this.hV=this.gZ.indexOf(h);
for(var G=0;G<this.xa.length;G++)this.xa[G].Qv();this.xa[this.hV]._j()};gV.prototype.alm=function(h){this.T(this.gZ[this.xa.indexOf(h.currentTarget)]);
this.f(new B(D.E.L,!1))};gV.prototype.B=function(){if(this.Ix)this.Ix.T(e_.get([12,36])+":");for(var G=0;
G<this.xa.length;G++)this.xa[G].B()};function a_(h,e,$,Z){ev.call(this);var c=D.bo(),q="";this.j=D.w("span","fitem tinput");
if(h){this.pO=h;this.WA=D.w("label","flabel");this.j.appendChild(this.WA);this.WA.setAttribute("for",c);
this.B()}if(Z==null){this.iB=D.w("input","");this.iB.setAttribute("type","text")}else this.iB=D.w("textarea","scrollable");
this.iB.setAttribute("id",c);if($)q+="width:"+$+"em;";if(Z){this.iB.setAttribute("rows",Z)}if(q!="")this.iB.setAttribute("style",q);
this.j.appendChild(this.iB);if(e){this.ue=D.w("span","");this.ue.textContent=e;this.j.appendChild(this.ue)}this.iB.addEventListener("change",this.AI.bind(this),!1);
this.iB.addEventListener("input",this.a1E.bind(this),!1)}a_.prototype=new ev;a_.prototype.B=function(){if(this.pO)this.WA.textContent=e_.get(this.pO)+":"};
a_.prototype.TQ=function(h){this.WA.textContent=h};a_.prototype.T=function(h){this.iB.value=h==null?"":h};
a_.prototype.u=function(){return this.iB.value};a_.prototype.tI=function(){this.iB.select();this.iB.focus()};
a_.prototype.AI=function(h){this.f(new B(D.E.L,!1))};a_.prototype.a1E=function(h){this.f(new B("input",!1))};
function dm(h,e,$,Z,c,q,E){gA.call(this,h,e,$,Z,c,!0,q,null,E);D.so(this.j,"trangeinput");this.j.appendChild(this.WA);
this.j.appendChild(this.iB);var P=D.w("span","rangecont");this.j.appendChild(P);P.appendChild(this.Nx);
this.Nx.setAttribute("style","width:97%;")}dm.prototype=new gA;function b$(){ev.call(this);this.FN=[16,!0,!0];
this.j=D.w("span","");this.Ue=[new hr([12,24],0,255),new cw("Anti-alias"),new cw([12,25])];for(var G=0;
G<3;G++){var h=this.Ue[G];h.parent=this;h.T(this.FN[G]);this.j.appendChild(h.j);h.k(D.E.L,this.zs,this)}}b$.prototype=new ev;
b$.prototype.zs=function(){for(var G=0;G<3;G++)this.FN[G]=this.Ue[G].u();this.f(new B(D.E.L,!1))};b$.prototype.T=function(h){this.FN=h.slice(0);
for(var G=0;G<3;G++)this.Ue[G].T(h[G])};b$.prototype.u=function(){return this.FN.slice(0)};b$.prototype.B=function(){for(var G=0;
G<3;G++)this.Ue[G].B()};function c6(h,e){ev.call(this);if(e==null)e=!1;this.$g=[];this.a7q=0;this.abh=0;
this.pm=0;this.aG=[];this.sF=[];for(var $ in s.FO.type){if($=="warpCustom"&&!e)continue;this.aG.push($);
this.sF.push(s.FO.type[$])}this.j=D.w("span","fitem warpbutton");this.xN=new ev;this.xN.j=D.w("div","floatcont");
if(h){this.Ix=h;this.WA=D.w("label","flabel");this.j.appendChild(this.WA)}this.e=D.w("button");this.j.appendChild(this.e);
this.e.addEventListener("click",this.OW.bind(this),!1);this.x8=new dd(!0);this.xN.j.appendChild(this.x8.j);
this.x8.k(D.E.L,this.a8n,this);this.B()}c6.prototype=new ev;c6.prototype.TQ=function(h){this.WA.textContent=h};
c6.prototype.B=function(){if(this.Ix)this.WA.innerHTML=e_.get(this.Ix)+":";this.$g=[];var h=D.w("canvas",""),e=h.getContext("2d"),$=0;
e.font=Math.floor(13*D.M())+"px sans-serif";for(var G=0;G<this.aG.length;G++){$=Math.max($,e.measureText(e_.get(s.FO.type[this.aG[G]])).width)}var Z=this.a7q=Math.floor(50*D.M()+$),c=this.abh=Math.floor(23*D.M());
h.width=Z;h.height=c;this.xN.j.setAttribute("style","width:"+Math.floor(8+Z/D.M())+"px;");e.font=Math.floor(13*D.M())+"px sans-serif";
e.lineWidth=1;e.strokeStyle="#000000";var q=Math.floor(16*D.M()),E=new O(0,0,q,q);for(var G=0;G<this.aG.length;
G++){var P=this.aG[G];e.clearRect(0,0,h.width,h.height);var a=s.FO.FO(E,P,!0,.3,0,0),j=s.a.Kf(E);j.Z.push("M","L","M","L");
j.H.push(0,q/2,q,q/2);j.H.push(q/2,0,q/2,q);j=s.a.sz(j);j=s.a.zb(j,q/5);s.nS.apply(a,j.H,E);s.a.J(j.H,new i7(1,0,0,1,Math.floor(8*D.M())+.5,Math.floor(3*D.M())+.5),j.H);
e.beginPath();Typr.U.pathToContext({cmds:j.Z,crds:j.H},e);e.stroke();e.fillText(e_.get(s.FO.type[P]),Math.floor(40*D.M()),Math.floor(16*D.M()));
this.$g.push(h.toDataURL())}this.x8.Go(this.$g,null,Z,c);this.v5()};c6.prototype.OW=function(h){var e=this.e.getBoundingClientRect(),$=new B(D.E.P,!0);
$.data={e:D.U.sH,yv:this.xN,x:e.left,y:e.top+e.height+4};this.f($)};c6.prototype.a8n=function(h){var e=new B(D.E.P,!0);
e.data={e:D.U.Is,yv:this.xN};this.f(e);this.pm=h.target.u();this.v5();this.f(new B(D.E.L))};c6.prototype.v5=function(){this.x8.Eg(this.pm);
this.e.innerHTML="<img src=\""+this.$g[this.pm]+"\" class=\"gsicon\" />";var h=this.a7q,e=this.abh;D.pH(this.e.firstChild,h,e)};
c6.prototype.u=function(){return this.aG[this.pm]};c6.prototype.T=function(h){this.pm=this.aG.indexOf(h);
this.v5()};function aZ(h,e,$){ev.call(this);if(h==null)h=!1;if(e==null)e=!1;if($==null)$=!1;this.a0H=e;
this.FO=null;this.Zf=new c6([12,22],$);this.Zf.parent=this;this.Zf.k(D.E.L,this.Ta,this);this.ns=new fs([22,0],[[22,4,0],[22,4,1]]);
this.ns.k(D.E.L,this.Ta,this);var Z=h?hr:dm;this.AH=new Z([22,1],-100,100,"%");this.MH=new Z("Horizontal Distortion:",-100,100,"%");
this.eD=new Z("Vertical Distortion:",-100,100,"%");this.AH.parent=this.MH.parent=this.eD.parent=this;
this.AH.k(D.E.L,this.Ta,this);this.MH.k(D.E.L,this.Ta,this);this.eD.k(D.E.L,this.Ta,this)}aZ.prototype=new ev;
aZ.prototype.B=function(){this.Zf.B();this.ns.B();this.AH.B();var h=this.a0H?1:100;this.MH.TQ(e_.get([22,2]).substring(0,h)+":");
this.eD.TQ(e_.get([22,3]).substring(0,h)+":")};aZ.prototype.Ta=function(){var h=this.FO,e=this.Zf.u(),$=h.warpStyle.v.warpStyle;
if(e=="warpCustom")s.FO.WX(s.FO.a8(h),h);else delete h.customEnvelopeWarp;h.warpStyle.v.warpStyle=this.Zf.u();
h.warpRotate.v.Ornt=["Hrzn","Vrtc"][this.ns.u()];h.warpValue.v=this.AH.u();h.warpPerspective.v=this.MH.u();
h.warpPerspectiveOther.v=this.eD.u();if(e=="warpNone"||e=="warpCustom"){h.warpValue.v=0;h.warpPerspective.v=0;
h.warpPerspectiveOther.v=0}else if($=="warpNone"||$=="warpCustom")h.warpValue.v=50;this.f(new B(D.E.L,!1));
this.T(h)};aZ.prototype.u=function(h){return JSON.parse(JSON.stringify(this.FO))};aZ.prototype.T=function(h){this.FO=JSON.parse(JSON.stringify(h));
this.Zf.T(h.warpStyle.v.warpStyle);this.ns.T(h.warpRotate.v.Ornt=="Hrzn"?0:1);this.AH.T(h.warpValue.v);
this.MH.T(h.warpPerspective.v);this.eD.T(h.warpPerspectiveOther.v);var e=h.warpStyle.v.warpStyle,$=e=="warpNone"||e=="warpCustom",Z=[this.ns,this.AH,this.MH,this.eD];
for(var G=0;G<Z.length;G++)if($)Z[G].WJ();else Z[G].pw()};function cz(h){ev.call(this);this.j=D.w("div");
this.r7=h;this.i5=null;this.W6=new eu(0,0);this.rd="position:relative;overflow:hidden;";this.gg=null;
this.M5=new D.ca(this.j);this.fk("grab");this.BA=D.w("canvas","canv");this.j.appendChild(this.BA);this.J$=this.BA.getContext("2d");
this.agi=null;this.ir=null;this.DI=null;this.rT=0;this.dL=0;this.pR=0;this.abl=this.e5.bind(this);this.aiK=null;
this.z=new hX({d:1,v:1});this.TV=null;this.Kv=null;this.a62=this.Aw.bind(this);this.a8T=this.AT.bind(this);
this.a9H=this.IB.bind(this);this.a1O=this.tH.bind(this);this.aka=0;this.lY=null;this.e8(this.BA);this.je(this)}cz.prototype=new ev;
cz.prototype.WI=function(h){var e=this.gg,$=null;if(h.q(p.P2)){$="grab";if(h.q(p.tm)){$="zoom-in";if(h.q(p.ys))$="zoom-out"}}this.i5=$;
if($)e=$;this.M5.uq(e,this.rd);if(h.q(p.tm)){var Z=0;if(h.q(p.MY))Z=1;if(h.q(p.Lj))Z=-1;if(Z!=0){this.yo(new eu(this.BA.width/2,this.BA.height/2),Z==1)}}};
cz.prototype.fk=function(h){this.gg=h;if(this.i5)return;this.M5.uq(h,this.rd)};cz.prototype.e8=function(h){D.uh(h,this.a62);
D.Sz(h);h.addEventListener("wheel",this.a1O,!1)};cz.prototype.je=function(h){h.k("viewchange",this.a02,this)};
cz.prototype.a02=function(h){var e=this.z.S,$=h.currentTarget.fU();this.z.S=$.S;this.z.i=$.i.clone();
if(e!=$.S)this.lI();this.VS()};cz.prototype.fU=function(){return{S:this.z.S,i:this.z.i}};cz.prototype.T=function(h,e){var $=h[0].Au;
if(this.ir!=null&&this.ir[0].Au.dz($)){}else{this.z.q4={d:$.d,v:$.v};this.z.i=new eu(0,0);this.z.S=1}this.ir=h;
this.lI();this.eJ();this.rT=0;this.dL=0;this.pR=e==null?0:e;this.e5()};cz.prototype.tH=function(h){h.preventDefault();
if(h.deltaY==0||Date.now()-this.aka<100)return;var e=D.q6(h);e.x=D.M()*e.x;e.y=D.M()*e.y;this.aka=Date.now();
this.yo(e,h.deltaY<0)};cz.prototype.yo=function(h,e){f.LZ.y0(this.z,h,e);this.Vt()};cz.prototype.a1v=function(){var h=this.z,e=h.q4;
this.z.S=f.LZ.O3(e.d,e.v,h.qM.d,h.qM.v);this.Vt()};cz.prototype.Vt=function(){this.lI();this.f(new B("viewchange"));
this.f(new B("zoom"))};cz.prototype.lI=function(){this.DI=[];var h=this.z.S;for(var G=0;G<this.ir.length;
G++){var e=this.ir[G],$=new Uint8Array(e.data),Z;if(h>=1)Z={Hl:$,rect:e.Au};else Z=s.a3K($,e.Au,h);this.DI.push(Z)}};
cz.prototype.eJ=function(){clearTimeout(this.aiK)};cz.prototype.VS=function(){if(this.ir==null||!D.Nn(this.BA))return;
var h=this.agi,e=this.BA.width,$=this.BA.height,S,N;if(h==null||h.width!=e||h.height!=$){h=this.agi=this.J$.createImageData(e,$);
console.log("creating image data")}var Z=this.ir[this.rT],c=this.DI[this.rT],q=this.z,E=q.q4,P=q.qM,a=P.d,j=P.v,L=E.d*q.S,H=E.v*q.S,_=Math.round((a-L)/2+q.i.x),J=Math.round((j-H)/2+q.i.y);
if(q.S<=1){N=c.rect.clone();N.x=_;N.y=J;L=N.d;H=N.v;S=c.Hl}else{var Y=1/q.S,U=new O(Math.floor((P.x-_)*Y),Math.floor((P.y-J)*Y),Math.ceil(P.d*Y)+1,Math.ceil(P.v*Y)+1),g=new O(0,0,U.d*q.S,U.v*q.S);
g.x=U.x*q.S+_;g.y=U.y*q.S+J;if(q.uo==null||q.uo.length!=U.X()*4){q.uo=s.m(U.X()*4)}if(q.Dc==null||q.Dc.length!=g.X()*4){q.Dc=s.m(g.X()*4)}s.Ut(q.uo,0);
s.hX(c.Hl,c.rect,q.uo,U);s.scale.hF(q.uo,U.d,U.v,q.Dc,g.d,g.v,q.S);S=q.Dc;N=g}var M=new Uint8Array(h.data.buffer);
s.Om(M,a,j,8,-_,-J);s.p.Jn("norm",S,N,M,P,P,1);this.J$.setTransform(1,0,0,1,0,0);this.J$.putImageData(h,0,0);
this.J$.clearRect(_-1e3,J,1e3,H);this.J$.clearRect(_+L,J,1e3,H);this.J$.clearRect(_-1e3,J-1e3,L+2e3,1e3);
this.J$.clearRect(_-1e3,J+H,L+2e3,1e3);var C=cz.r_(q.S,"#ffffff");this.J$.putImageData(C,0,q.qM.v-C.height)};
cz.BB={};cz.r_=function(h,e){var $="z"+h+","+e,Z=cz.BB[$];if(Z)return Z;var c=Math.round(50*D.M()),q=Math.round(18*D.M()),E=D.w("canvas"),P=E.getContext("2d");
E.width=c;E.height=q;P.fillStyle="rgba(1,1,1,1)";P.fillRect(0,0,c,q);P.font=Math.round(11*D.M())+"px monospace";
P.fillStyle=e;var a=h*100;if(a<100)a=a.toFixed(2);else a=Math.round(a);a=a+"%";var j=P.measureText(a).width;
P.fillText(a,(c-j)/2,Math.round(q*.7));Z=cz.BB[$]=P.getImageData(0,0,c,q);return Z};cz.prototype.e5=function(){var h=this.ir,e=h.length,$=this.rT,Z=this.ir[$],c=($+1)%e;
this.VS();if(e!=1&&h[c].Au.dz(Z.Au)){var q=Z.c5?parseInt(Z.c5.split(",").pop()):30;if(q==0)q=16;if(c==0)this.dL++;
if(this.pR==0||this.dL<this.pR)this.aiK=setTimeout(this.abl,q)}this.rT=c};cz.prototype.Sy=function(h,e){if(h<=0||e<=0)return;
var $=Math.floor(h*D.M()),Z=Math.floor(e*D.M());this.z.qM=new O(0,0,$,Z);this.BA.width=$;this.BA.height=Z;
this.BA.setAttribute("style","width:"+$/D.M()+"px; height:"+Z/D.M()+"px; display:block;");this.VS()};
cz.prototype.Aw=function(h){this.lY=h.target;D._s(window,this.a8T);D.A4(window,this.a9H);this.TV=D.q6(h,this.BA);
this.TV.x*=D.M();this.TV.y*=D.M();this.W6=this.TV;this.Kv=this.z.i.clone();if(this.r7&&this.lY==this.BA&&!this.i5)this.f(new B("mousedown"))};
cz.prototype.AT=function(h){var e=this.z,$=this.i5,Z=this.ir[this.rT].Au.clone();Z.d*=e.S;Z.v*=e.S;var c=D.q6(h,this.BA);
c.x*=D.M();c.y*=D.M();this.W6=c;if(this.r7&&this.lY==this.BA&&!$)this.f(new B("mousemove"));else if(($=="grab"||$==null)&&!e.qM.x1(Z)){var q=c.x-this.TV.x,E=c.y-this.TV.y;
e.i.x=this.Kv.x+Math.round(q);e.i.y=this.Kv.y+Math.round(E);this.f(new B("viewchange"))}};cz.prototype.IB=function(h){D.xR(window,this.a8T);
D.oT(window,this.a9H);var e=this.i5;if(h.detail>1){this.z.S=1;this.z.i.su(0,0);this.VS()}if(this.r7&&this.lY==this.BA&&!this.i5)this.f(new B("mouseup"));
else{if(e=="zoom-in"||e=="zoom-out")this.yo(this.W6,e=="zoom-in")}};cz.prototype.BS=function(){return this.z.QX(this.W6.x,this.W6.y)};
function fo(){ev.call(this);this.hU=null;this.PM=null;this.yJ=null;this.vm=null;this.acJ="";this.o2=[];
this.b9=0;this.nV=[];this.w3=0;this.D0=null;var h=this.j=D.w("div",""),e=this.a5X=D.w("div","form");
e.setAttribute("style","line-height:0; margin-bottom:0.5em;");h.appendChild(e);var $=this.Ix=D.w("span");
e.appendChild($);$.setAttribute("style","font-size:1.2em; font-weight:bold; margin-right:3em;");var Z=this.akn=new cw([25,2,0]);
Z.T(!0);e.appendChild(Z.j);Z.k(D.E.L,this.$T,this);var c=this.es=new cw([25,2,1]);c.T(!0);e.appendChild(c.j);
c.k(D.E.L,this.$T,this);var q=new cZ(" ");e.appendChild(q.j);var E=this.H5=new a_([25,1,1]);e.appendChild(E.j);
E.k(D.E.L,this.$T,this);this.uF=new cI(14);this.uF.a9J(3);e.appendChild(this.uF.j);this.uF.parent=this;
this.uF.k(D.E.L,this.a2A,this);var P=this.adq=new gg([25,1,2],null,null,!0);e.appendChild(P.j);P.k("click",this.du,this);
this.ajm=this.ano.bind(this);this.hA=D.w("div","svggallery scrollable");h.appendChild(this.hA);this.hA.addEventListener("scroll",this.afd.bind(this))}fo.prototype=new ev;
fo.prototype.if=function(h){this.anC=h};fo.prototype.B=function(){this.Ix.textContent=e_.get([25,0]);
this.uF.B();this.akn.B();this.es.B();this.H5.B();this.adq.B()};fo.prototype.Sy=function(h,e){e-=26;this.hU=new eu(h,e);
this.a5X.setAttribute("style","width:"+h+"px");this.hA.setAttribute("style","width:"+h+"px; height:"+e+"px");
if(D.Nn(this.j))this.$T()};fo.prototype.T=function(h){this.PM=h;this.$T()};fo.prototype.afd=function(h){var e=this.hA;
if(e.scrollTop+e.clientHeight+10>=e.scrollHeight){this.$T(!0)}};fo.prototype.a2A=function(h){this.yJ=null;
this.$T()};fo.prototype.ano=function(h){if(Date.now()-this.w3<2e3)return;this.w3=Date.now();this.b9=this.nV.indexOf(h.currentTarget);
var e=this.W2(this.PM.x,this.PM.y);if(e[1]){var $=e[1].largeImageURL,Z=new XMLHttpRequest;Z.responseType="arraybuffer";
Z.open("GET",$,!0);Z.onload=this.a3x.bind(this);Z.send();return}this.xx(e)};fo.prototype.a3x=function(h){var e=h.target.response,$=cE.B3(e),Z=cE.fy($),c=Z.Cj(e),q=this.W2(this.PM.x,this.PM.y,[e,c[0].Au.d,c[0].Au.v]);
this.xx(q)};fo.prototype.xx=function(h){var e=h[0],$=cE.B3(e),Z=cE.fy($),c=new c9("template.psd");Z.Cj(e,c);
var q=new B("tempready",!0);q.data={q4:c};this.f(q)};fo.prototype.du=function(h){var e=h.target;this.o2=[];
this.$T()};fo.prototype.ant=function(h){var e=JSON.parse(h.target.response);this.vm=e.hits;this.$T()};
fo.prototype.$T=function(h){if(this.PM==null||this.hU==null||this.anC==null)return;if(this.hU.x<=0)return;
var e=this.PM.x,$=this.PM.y;if(Math.min(e,$)<50)return;if(h!=!0){this.nV=[];D.LK(this.hA);this.hA.scrollTop=0}if(this.nV.length>300)return;
var Z=Math.min(1,300/Math.max(e,$)),c=this.hU.clone();c.x-=20;var q=Math.max(1,Math.floor(c.x/(e*Z))),E=Math.max(1,Math.ceil(c.y/($*Z)));
Z=c.x/q/e;var P=q*E;if(this.yJ==null){var a=this.anC.R0.Ht();this.yJ=[];for(var j in a){var L=a[j],H=L[3];
if(!this.uF.Pj(L))continue;if(L[5]==null||L[5].slice(0,2)=="gf")continue;this.yJ.push(L)}if(this.yJ.length==0)this.yJ.push(a.DejaVuSans)}var _=this.es.u(),J=this.H5.u().trim();
this.H5.NA(_);if(_&&(this.vm==null||J!=this.acJ)){var S=new XMLHttpRequest,N="https://pixabay.com/api/?image_type=photo"+(J==""?"":"&q="+encodeURIComponent(J))+"&per_page=200&page=1&key=10554583-a5eacb61c2e61105fdfb6eb88";
if(J=="")N+="&safesearch=true";if(J=="")N="plugins/gallery.json";S.open("GET",N,!0);S.onload=this.ant.bind(this);
S.onerror=function(y){console.log(y.target.response)};S.send();this.acJ=J;return}Z*=(e*Z-5)/(e*Z);var Y=this.nV.length;
for(var G=0;G<P;G++){var U=this.b9=Y+G;if(this.o2[U]==null)this.o2[U]=Math.floor(Math.random()*4294967295);
var g=this.W2(Math.round(e*Z),Math.round($*Z)),M=g[0];M=k.rM(new Uint8Array(M));var C=D.w("span");C.innerHTML=M;
this.nV.push(C);this.hA.appendChild(C);C.addEventListener("click",this.ajm,!1)}};fo.prototype.W2=function(h,e,$){var Z=this.es.u(),c=this.akn.u(),q=Z&&this.vm.length!=0?this.vm:null;
if(c&&!Z)q=null;if(c&&Z&&(this.b9&1)==0)q=null;return a0.d5(h,e,this.o2[this.b9],this.yJ,$?$:q)};function ba(){ev.call(this);
this.j=D.w("div");this.Az=null;this.anB=null;this.yV=-1;this.Jt={JPG:[{VA:new dm([12,52,0],0,100,"%",null,null,!0),B9:70},{VA:new cw("attach metadata"),B9:!1}],TIFF:[{VA:new cw("attach metadata"),B9:!1}],WEBP:[{VA:new dm([12,52,0],0,100,"%",null,null,!0),B9:70}],GIF:[{VA:new dm([12,52,0],0,100,"%",null,null,!0),B9:100}],PNG:[{VA:new dm([12,52,0],0,100,"%",null,null,!0),B9:100},{VA:new cw("don't use palettes"),B9:!1}],PDF:[{VA:new a_([12,52,1]),B9:""},{VA:new dm([12,52,0],0,100,"%",null,null,!0),B9:100},{VA:new cw("rasterize all"),B9:!1},{VA:new cw("rasterize text"),B9:!1},{VA:new cw("vectorize text"),B9:!1}],EMF:[{VA:new a_([12,52,1]),B9:""},{VA:new cw("rasterize all"),B9:!1},{VA:new cw("rasterize text"),B9:!1},{VA:new cw("vectorize text"),B9:!1}],SVG:[{VA:new cw("add raster graphics"),B9:!0},{VA:new cw("add hidden layers"),B9:!1},{VA:new cw("vectorize text"),B9:!1},{VA:new cw("rasterize text"),B9:!1},{VA:new cw("add layer names"),B9:!0},{VA:new cw("pretty-print"),B9:!0}],RAW:[{VA:new cp([12,72],["1","3","4"]),B9:2},{VA:new cp([12,34],["8 Bits","16 Bits"]),B9:0},{VA:new cp("Byte Order",["12-34","34-12"]),B9:0}],anim:[{VA:new dm("Speed",10,800,"%",null,!0,!0),B9:100},{VA:new hr("Repeat (0 = Forever)",0,10," \xD7",0,!1,!0),B9:0},{VA:new cw("reverse frames"),B9:!1},{VA:new cw("boomerang"),B9:!1}],slcs:[{VA:new cw("As Slices"),B9:!0}]};
for(var h in this.Jt){var e=this.Jt[h];for(var G=0;G<e.length;G++){e[G].VA.T(e[G].B9);e[G].VA.k(D.E.L,this.Tv,this)}}}ba.prototype=new ev;
ba.prototype.aeg=function(){this.yV=-1};ba.prototype.B=function(){for(var h in this.Jt)for(var G=0;G<this.Jt[h].length;
G++)this.Jt[h][G].VA.B()};ba.prototype.Tv=function(){this.$T();this.f(new B(D.E.L,!1))};ba.prototype.$T=function(){var h=this.Az,e=h[0],$=h[1],Z=h[2],c=h[3],q=this.Jt[e];
if(q==null)q=[];else q=q.slice(0);if($)q=q.concat(this.Jt.anim);if(["GIF","PNG","JPG"].indexOf(e)!=-1&&Z)q=q.concat(this.Jt.slcs);
if(e+" "+$+" "+c!=this.yV){this.yV=e+" "+$+" "+c;D.LK(this.j);for(var G=0;G<q.length;G++){if(e=="PDF"&&c&&G==0)continue;
this.j.appendChild(q[G].VA.j);D.vV(this.j)}}var E=this.anB=[];for(var G=0;G<q.length;G++)E.push(q[G].VA.u())};
ba.prototype.ze=function(h,e,$,Z){this.Az=[h,e,$,Z];this.$T()};ba.prototype.u=function(){return this.anB.slice(0)};
function d1(){ev.call(this);this.j=D.w("span","fitem");this.Mg=!1;this.Rw=new gg("No",!1,"Cancel");this.kj=new gg("Yes",!1,"Confirm");
this.j.appendChild(this.Rw.j);this.j.appendChild(this.kj.j);this.Rw.k("click",this.T6,this);this.kj.k("click",this.T6,this);
this.B()}d1.prototype=new ev;d1.prototype.B=function(){this.Rw.TQ(D.H$("cross",null,"autoscale"));this.kj.TQ(D.H$("checkmark",null,"autoscale"))};
d1.prototype.T6=function(h){this.Mg=h.target==this.kj;this.f(new UIEvent("click"))};d1.prototype.u=function(){return this.Mg};
function w(h){ev.call(this);this.Iq=h;this.j=D.w("div","");this.pW=[];this.a5F=[]}w.prototype=new ev;
w.prototype.Um=function(h){};w.prototype.lk=function(){return!1};w.prototype.Sy=function(h,e){};w.prototype.if=function(h,e){};
w.prototype.SP=function(h){};w.prototype.T=function(h,e,$,Z,c,q){var E=[],P=this.pW,a=0,j=dA.yA["s"+this.Iq];
j?j(h,E,q):this.hc(h,E,q);for(var G=0;G<P.length;G++)if(!(P[G]instanceof cZ))P[G].T(E[a++])};w.prototype.u=function(){var h=dA.X3(this.Iq),e=[],$=this.pW,Z=0;
for(var G=0;G<$.length;G++)if(!($[G]instanceof cZ))e[Z++]=$[G].u();var c=dA.yA["g"+this.Iq];c?c(h,e):this.kI(h,e);
return h};w.prototype.WI=function(h){};w.prototype.Ta=function(h){var e=this.a5F;for(var G=0;G<e.length;
G+=2){var $=this.pW[e[G]],Z=this.pW[e[G+1]],c=$.u(),q=Z.u();if(h.target==$)Z.T(Math.max(c,q));else $.T(Math.min(c,q))}this.f(new B(D.E.L))};
w.prototype.B=function(){for(var G=0;G<this.pW.length;G++)this.pW[G].B()};w.prototype.Py=function(h){D.so(this.j,"form");
var e=this.pW;for(var G=0;G<e.length;G++){var $=e[G];$.parent=this;$.k(D.E.L,this.Ta,this);this.j.appendChild($.j);
if($ instanceof cw&&e[G+1]instanceof fx)continue;if(h&&h.indexOf(G)!=-1)D.Uj(this.j);else D.vV(this.j)}};
w.prototype.KV=function(){return!1};w.prototype.yj=function(h,e,$,Z,c){};w.prototype.oX=function(h,e,$,Z,c){};
w.prototype.f0=function(h,e,$,Z,c){};w.prototype.kI=function(h,e){};w.prototype.hc=function(h,e){};w.Bokh=function(){w.call(this,"Bokh");
this.pW=[new fs("Depth Map",["A","b"]),new dm("Focal Distance",0,255),new fs([12,76,1],"Triangle (3),Square (4),Pentagon (5),Hexagon (6),Heptagon (7),Octagon (8)".split(",")),new dm([12,56],0,100),new dm([12,15],0,360),new dm([12,2],0,100),new dm([4,13],0,255),new dm([24,6],0,100),new cp([12,58],[[12,59,0],[12,59,1]]),new cw([12,60])];
this.Py([4,6])};w.Bokh.prototype=new w;w.Bokh.prototype.hc=function(h,e,$){var Z=[[22,5,0],[6,5,3],[6,2]],c=h.BkDi.v.BtDi,q=h.BkDc,E=0;
if(c=="BeIn")E=0;else if(c=="BeIt"&&q.v.BtDc=="BeCt")E=1;else if(c=="BeIt"&&q.v.BtDc=="BeCm")E=2;else E=3+q.v;
for(var G=0;G<$[1].length;G++)Z.push($[1][G].name);this.pW[0].uK(Z,[3]);e[0]=E;e[1]=h.BkDp.v;e[2]=parseInt(h.BkIs.v.BtIs.slice(3))-3;
e[3]=h.BkIb.v;e[4]=h.BkIr.v;e[5]=h.BkSb.v;e[6]=h.BkSt.v;e[7]=h.BkNa.v;e[8]=h.BkNt.v.BtNt=="BeNu"?0:1;
e[9]=h.BkNm.v};w.Bokh.prototype.kI=function(h,e){var $;if(e[0]==0){$="BeIn";delete h.BkDc}else if(e[0]<3){$="BeIt";
h.BkDc={t:"enum",v:{BtDc:["BeCt","BeCm"][e[0]-1]}}}else{$="BeIa";h.BkDc={t:"long",v:e[0]-3}}h.BkDi.v.BtDi=$;
h.BkDp.v=e[1];h.BkIs.v.BtIs="BeS"+(3+e[2]);h.BkIb.v=e[3];h.BkIr.v=e[4];h.BkSb.v=e[5];h.BkSt.v=e[6];h.BkNa.v=e[7];
h.BkNt.v.BtNt=["BeNu","BeNg"][e[8]];h.BkNm.v=e[9]};w.oilPaint=function(){w.call(this,"oilPaint");this.pW=[new dm([12,56],.1,10,"px",!0),new dm("Cleanliness",0,10,"px",!0),new dm([12,38],.1,10,null,!0),new dm("Bristle Detail",0,10,null,!0),new cw("Lighting"),new dm("Shine",0,10,null,!0),new fj([12,15])];
this.Py()};w.oilPaint.prototype=new w;w.oilPaint.prototype.hc=function(h,e){var $="stylization cleanliness brushScale microBrush lightingOn specularity".split(" ");
for(var G=0;G<$.length;G++)e[G]=h[$[G]].v;e[6]=h.LghD.v};w.oilPaint.prototype.kI=function(h,e){var $="stylization cleanliness brushScale microBrush lightingOn specularity".split(" ");
for(var G=0;G<$.length;G++)h[$[G]].v=e[G];h.LghD.v=e[6].w0};w.TrcC=function(){w.call(this,"TrcC");this.pW=[new dm("Level",0,255),new cp([12,69],[[19,4,1],[19,4,0]])];
this.Py()};w.TrcC.prototype=new w;w.TrcC.prototype.hc=function(h,e){e[0]=h.Lvl.v;e[1]=["Lwr","Upr"].indexOf(h.Edg.v.CntE)};
w.TrcC.prototype.kI=function(h,e){h.Lvl.v=e[0];h.Edg.v.CntE=["Lwr","Upr"][e[1]]};w["Dfs "]=function(){w.call(this,"Dfs ");
this.pW=[new cp([12,36],[[15,10,0],[15,10,6],[15,10,11],"Anisotropic"])];this.Py()};w["Dfs "].prototype=new w;
w["Dfs "].prototype.hc=function(h,e){e[0]=["Nrml","DrkO","LghO","anisotropic"].indexOf(h.Md.v.DfsM)};
w["Dfs "].prototype.kI=function(h,e){h.Md.v.DfsM=["Nrml","DrkO","LghO","anisotropic"][e[0]]};w.Embs=function(){w.call(this,"Embs");
this.pW=[new fj([12,15]),new dm([12,42],1,100,"px"),new dm([12,57],1,500,"%")];this.Py()};w.Embs.prototype=new w;
w.Embs.prototype.hc=function(h,e){e[0]=h.Angl.v;e[1]=h.Hght.v;e[2]=h.Amnt.v};w.Embs.prototype.kI=function(h,e){h.Angl.v=e[0].w0;
h.Hght.v=e[1];h.Amnt.v=e[2]};w["Wnd "]=function(){w.call(this,"Wnd ");this.pW=[new cp([12,32],["Wind","Blast","Stagger"]),new cp([12,33],["From the Right","From the Left"])];
this.Py()};w["Wnd "].prototype=new w;w["Wnd "].prototype.hc=function(h,e){e[0]=["Wnd","Blst","Stgr"].indexOf(h.WndM.v.WndM);
e[1]=["Left","Rght"].indexOf(h.Drct.v.Drct)};w["Wnd "].prototype.kI=function(h,e){h.WndM.v.WndM=["Wnd","Blst","Stgr"][e[0]];
h.Drct.v.Drct=["Left","Rght"][e[1]]};w.lightFilterGradient=function(){w.call(this,"lightFilterGradient");
this.pW=[new dm([24,3,1],0,100,"px",1,!0),new dm([12,38],0,200,"%"),new cw([4,11]),new dm("High",0,100,"%"),new dm("Medium",0,100,"%"),new dm("Low",0,100,"%")];
this.Py()};w.lightFilterGradient.prototype=new w;w.lightFilterGradient.prototype.hc=function(h,e){e[0]=h.blur.v;
e[1]=h.textureScale.v*100;e[2]=h.Scl.v==-1;var $=h.Dtl.v;e[3]=$[0].v*100;e[4]=$[1].v*100;e[5]=$[2].v*100};
w.lightFilterGradient.prototype.kI=function(h,e){h.blur.v=e[0];h.textureScale.v=e[1]/100;h.Scl.v=e[2]?-1:1;
var $=h.Dtl.v;$[0].v=e[3]/100;$[1].v=e[4]/100;$[2].v=e[5]/100};w.LnsF=function(){w.call(this,"LnsF");
this.pW=[new dm([12,2],10,300,"%"),new cp([12,44],["Lens 1","Lens 2","Lens 3","Lens 4"]),new dm("Position X",0,100,"%"),new dm("Position Y",0,100,"%")];
this.Py()};w.LnsF.prototype=new w;w.LnsF.prototype.hc=function(h,e){e[0]=h.Brgh.v;e[1]=["Zm","Nkn","Nkn1","PnVs"].indexOf(h.Lns.v.Lns);
var $=h.FlrC.v;e[2]=Math.round($.Hrzn.v*100);e[3]=Math.round($.Vrtc.v*100)};w.LnsF.prototype.kI=function(h,e){h.Brgh.v=e[0];
h.Lns.v.Lns=["Zm","Nkn","Nkn1","PnVs"][e[1]];var $=h.FlrC.v;$.Hrzn.v=e[2]/100;$.Vrtc.v=e[3]/100};w.LnsF.prototype.KV=function(){return!0};
w.LnsF.prototype.yj=function(h,e,$,Z,c){this.LO=!0;this.Gz(h,c)};w.LnsF.prototype.oX=function(h,e,$,Z,c){if(!this.LO)return;
this.Gz(h,c)};w.LnsF.prototype.f0=function(h,e,$,Z,c){this.LO=!1};w.LnsF.prototype.Gz=function(h,e){var $=h.z.QX(e.x,e.y);
function Z(c,q){return Math.round(Math.max(0,Math.min(100,100*c/q)))}this.pW[2].T(Z($.x,h.d));this.pW[3].T(Z($.y,h.v));
this.Ta()};w.blendOptions=function(){w.call(this,"blendOptions");this.pW.push(new fs([12,19,0],eN.sF,!1,eN.$j));
this.pW.push(new dm([12,0],0,100,"%"));this.Py()};w.blendOptions.prototype=new w;w.blendOptions.prototype.hc=function(h,e){e[0]=eN.ie.indexOf(h.Md.v.BlnM);
e[1]=h.Opct.v.val};w.blendOptions.prototype.kI=function(h,e){h.Md.v.BlnM=eN.ie[e[0]];h.Opct.v.val=e[1]};
w.LnCr=function(){w.call(this,"LnCr");this.pW=[new dm([12,57],-100,100),new dm([12,38],10,150,"%")];
this.Py()};w.LnCr.prototype=new w;w.LnCr.prototype.hc=function(h,e){e[0]=h.LnIa.v;e[1]=h.LnSi.v};w.LnCr.prototype.kI=function(h,e){h.LnIa.v=e[0];
h.LnSi.v=e[1]};w.adaptCorrect=function(){w.call(this,"adaptCorrect");var h=hN;this.pW=[new cZ([19,6,0]),new h([12,57],0,100,"%"),new h("Tone",0,100,"%"),new h([12,56],0,200,"px"),new cZ([19,6,2]),new h([12,57],0,100,"%"),new h("Tone",0,100,"%"),new h([12,56],0,200,"px"),new cZ([3]),new h([13,0],-100,100)];
this.Py([3,7])};w.adaptCorrect.prototype=new w;w.adaptCorrect.prototype.hc=function(h,e){var $=h.sdwM.v;
e[0]=$.Amnt.v.val;e[1]=$.Wdth.v.val;e[2]=$.Rds.v;var $=h.hglM.v;e[3]=$.Amnt.v.val;e[4]=$.Wdth.v.val;
e[5]=$.Rds.v;e[6]=h.ClrC.v};w.adaptCorrect.prototype.kI=function(h,e){var $=h.sdwM.v;$.Amnt.v.val=e[0];
$.Wdth.v.val=e[1];$.Rds.v=e[2];var $=h.hglM.v;$.Amnt.v.val=e[3];$.Wdth.v.val=e[4];$.Rds.v=e[5];h.ClrC.v=e[6]};
w.boxblur=function(){w.call(this,"boxblur");this.pW=[new dm([12,56],1,200," px")];this.Py()};w.boxblur.prototype=new w;
w.boxblur.prototype.hc=function(h,e){e[0]=h.Rds.v.val};w.boxblur.prototype.kI=function(h,e){h.Rds.v.val=e[0]};
w.GsnB=function(){w.call(this,"GsnB");this.pW=[new dm([12,56],.1,400,"px",1,!0)];this.Py()};w.GsnB.prototype=new w;
w.MtnB=function(){w.call(this,"MtnB");this.pW=[new fj([12,15]),new dm([12,28],1,100," px")];this.Py()};
w.MtnB.prototype=new w;w.RdlB=function(){w.call(this,"RdlB");this.pW=[new dm([12,57],1,100),new cp([12,36],["Spin","Zoom"]),new hN("Off X",0,1,null,2),new hN("Off Y",0,1,null,2)];
this.Py()};w.RdlB.prototype=new w;w.RdlB.prototype.hc=function(h,e){e[0]=h.Amnt.v;e[1]=["Spn","Zm"].indexOf(h.BlrM.v.BlrM);
e[2]=h.Cntr.v.Hrzn.v;e[3]=h.Cntr.v.Vrtc.v};w.RdlB.prototype.kI=function(h,e){h.Amnt.v=e[0];h.BlrM.v.BlrM=["Spn","Zm"][e[1]];
h.Cntr.v.Hrzn.v=e[2];h.Cntr.v.Vrtc.v=e[3]};w.Dspl=function(){w.call(this,"Dspl");this.pW=[new fs([6,36,3],["a","b"]),new dm([22,4,0],-100,100,"px"),new dm([22,4,1],-100,100,"px"),new fs([24,18,0],[[24,18,3],[24,18,2]])];
this.Py()};w.Dspl.prototype=new w;w.Dspl.prototype.hc=function(h,e,$){this.a1y=[];this.RL=[];var Z=-1,c=$?$[0]:null;
if(c==null)c=this.a8X;else this.a8X=c;if(c)for(var G=0;G<c.length;G++){var q=c[G];this.a1y.push(q.mD.trim());
this.RL.push(q.af);if(q.af==h.DspF.v.pth)Z=G}this.pW[0].uK(this.a1y);e[0]=Z==-1?0:Z;e[1]=h.HrzS.v;e[2]=h.VrtS.v;
e[3]=["WrpA","RptE"].indexOf(h.UndA.v.UndA)};w.Dspl.prototype.kI=function(h,e){if(this.RL.length==0)return;
h.DspF.v.pth=this.RL[e[0]];h.HrzS.v=e[1];h.VrtS.v=e[2];h.UndA.v.UndA=["WrpA","RptE"][e[3]]};w.Pnch=function(){w.call(this,"Pnch");
this.pW=[new dm([12,57],-100,100,"%")];this.Py()};w.Pnch.prototype=new w;w["Plr "]=function(){w.call(this,"Plr ");
this.pW=[new cp(null,["Rect to Polar","Polar to Rect"])];this.Py()};w["Plr "].prototype=new w;w.Rple=function(){w.call(this,"Rple");
this.pW=[new dm([12,57],-999,999),new fs([12,14,0],[[19,8,0],[19,8,1],[19,8,2]])];this.Py()};w.Rple.prototype=new w;
w["Shr "]=function(){w.call(this,"Shr ");this.pW=[new fy(!0,!0),new fs([24,18,0],[[24,18,3],[24,18,2]])];
this.Py()};w["Shr "].prototype=new w;w["Shr "].prototype.hc=function(h,e){var $=new i7(0,255/127,255/127,0,-2,128),Z=JSON.parse(JSON.stringify(h.ShrP.v));
s.$e.J(Z,$);e[0]=Z;e[1]=["WrpA","RptE"].indexOf(h.UndA.v.UndA)};w["Shr "].prototype.kI=function(h,e){var $=new i7(0,255/127,255/127,0,-2,128);
$.vy();s.$e.J(e[0],$);h.ShrP.v=e[0];h.ShrE.v=e[0].length-1;h.UndA.v.UndA=["WrpA","RptE"][e[1]]};w.Sphr=function(){w.call(this,"Sphr");
this.pW=[new dm([12,57],-100,100),new fs([12,36],["Normal",[22,4,0],[22,4,1]])];this.Py()};w.Sphr.prototype=new w;
w.Sphr.prototype.hc=function(h,e){e[0]=h.Amnt.v;e[1]=["Nrml","HrzO","VrtO"].indexOf(h.SphM.v.SphM)};
w.Sphr.prototype.kI=function(h,e){h.Amnt.v=e[0];h.SphM.v.SphM=["Nrml","HrzO","VrtO"][e[1]]};w.Twrl=function(){w.call(this,"Twrl");
this.pW=[new dm([12,15],-999,999)];this.Py()};w.Twrl.prototype=new w;w.Wave=function(){w.call(this,"Wave");
this.a5F=[1,2,3,4];this.pW=[new dm("Number of Generators",1,100),new hN("Min Length",1,999),new hN("Max Length",1,999),new hN("Min Ampl.",1,999),new hN("Max Ampl.",1,999),new hN("Scale X",1,100,"%"),new hN("Scale Y",1,100,"%"),new cp([12,44],["Sine","Triangle",[12,93,3]]),new fs([24,18,0],[[24,18,3],[24,18,2]]),new a_("Randomizer Seed")];
this.Py()};w.Wave.prototype=new w;w.Wave.prototype.hc=function(h,e){e[0]=h.NmbG.v;e[1]=h.WLMn.v;e[2]=h.WLMx.v;
e[3]=h.AmMn.v;e[4]=h.AmMx.v;e[5]=h.SclH.v;e[6]=h.SclV.v;e[7]=["WvSn","WvTr","WvSq"].indexOf(h.Wvtp.v.Wvtp);
e[8]=["WrpA","RptE"].indexOf(h.UndA.v.UndA);e[9]=h.RndS.v};w.Wave.prototype.kI=function(h,e){h.NmbG.v=e[0];
h.WLMn.v=e[1];h.WLMx.v=e[2];h.AmMn.v=e[3];h.AmMx.v=e[4];h.SclH.v=e[5];h.SclV.v=e[6];h.Wvtp.v.Wvtp=["WvSn","WvTr","WvSq"][e[7]];
h.UndA.v.UndA=["WrpA","RptE"][e[8]];var $=parseInt(e[9]);if(isNaN($))$=248325464;$=Math.max(0,Math.min(268435455,$));
h.RndS.v=$;this.pW[9].T($)};w.surfaceBlur=function(){w.call(this,"surfaceBlur");this.pW=[new dm([12,56],1,200," px"),new dm([4,13],1,255," px")];
this.Py()};w.surfaceBlur.prototype=new w;w.surfaceBlur.prototype.hc=function(h,e){e[0]=h.Rds.v.val;e[1]=h.Thsh.v};
w.surfaceBlur.prototype.kI=function(h,e){h.Rds.v.val=e[0];h.Thsh.v=e[1]};w.AdNs=function(){w.call(this,"AdNs");
this.pW=[new dm([12,57],0,200," %"),new fs([12,58],[[12,59,1],[12,59,0]]),new cw([12,60])];this.Py()};
w.AdNs.prototype=new w;w.DstS=function(){w.call(this,"DstS");this.pW=[new dm([12,56],1,200," px"),new dm([4,13],1,255," px")];
this.Py()};w.DstS.prototype=new w;w["Mdn "]=function(){w.call(this,"Mdn ");this.pW=[new dm([12,56],1,200," px")];
this.Py()};w["Mdn "].prototype=new w;w["Mdn "].prototype.hc=function(h,e){e[0]=h.Rds.v.val};w["Mdn "].prototype.kI=function(h,e){h.Rds.v.val=e[0]};
w.ClrH=function(){w.call(this,"ClrH");this.pW=[new dm([12,56],4,100," px")];for(var G=1;G<4;G++)this.pW.push(new dm("Angle "+G,0,90," \xB0"));
this.Py()};w.ClrH.prototype=new w;w.ClrH.prototype.hc=function(h,e){e[0]=h.Rds.v;for(var G=1;G<4;G++)e[G]=h["Ang"+G].v};
w.ClrH.prototype.kI=function(h,e){h.Rds.v=e[0];for(var G=1;G<4;G++)h["Ang"+G].v=e[G]};w.ClrH.prototype.B=function(){var h=this.pW;
h[0].B();for(var G=1;G<4;G++)h[G].TQ(e_.get([12,15])+" "+G)};w.Crst=function(){w.call(this,"Crst");this.pW=[new dm([12,61],3,100," px")];
this.Py()};w.Crst.prototype=new w;w.Crst.prototype.hc=function(h,e){e[0]=h.ClSz.v};w.Crst.prototype.kI=function(h,e){h.ClSz.v=e[0]};
w.Mztn=function(){w.call(this,"Mztn");this.pW.push(new fs([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.RL="FnDt MdmD GrnD CrsD ShrL MdmL LngL ShSt MdmS LngS".split(" ");this.Py()};w.Mztn.prototype=new w;
w.Mztn.prototype.hc=function(h,e){e[0]=this.RL.indexOf(h.MztT.v.MztT)};w.Mztn.prototype.kI=function(h,e){h.MztT.v.MztT=this.RL[e[0]]};
w["Msc "]=function(){w.call(this,"Msc ");this.pW=[new dm([12,61],2,200," px")];this.Py()};w["Msc "].prototype=new w;
w["Msc "].prototype.hc=function(h,e){e[0]=h.ClSz.v.val};w["Msc "].prototype.kI=function(h,e){h.ClSz.v.val=e[0]};
w.Pntl=function(){w.call(this,"Pntl");this.pW=[new dm([12,61],3,100," px")];this.Py()};w.Pntl.prototype=new w;
w.Pntl.prototype.hc=function(h,e){e[0]=h.ClSz.v};w.Pntl.prototype.kI=function(h,e){h.ClSz.v=e[0]};w.smartSharpen=function(){w.call(this,"smartSharpen");
this.pW=[new dm([12,57],1,200,"%"),new dm([12,56],0,200,"px",1,!0)];this.Py()};w.smartSharpen.prototype=new w;
w.smartSharpen.prototype.hc=function(h,e){e[0]=h.Amnt.v.val;e[1]=h.Rds.v.val};w.smartSharpen.prototype.kI=function(h,e){h.Amnt.v.val=e[0];
h.Rds.v.val=e[1]};w.UnsM=function(){w.call(this,"UnsM");this.pW=[new dm([12,57],1,200," %"),new dm([12,56],.1,400,"px",1,!0),new dm([4,13],0,255," ")];
this.Py()};w.UnsM.prototype=new w;w.HghP=function(){w.call(this,"HghP");this.pW=[new dm([12,56],.1,400,"px",1,!0)];
this.Py()};w.HghP.prototype=new w;w["Mxm "]=function(){w.call(this,"Mxm ");this.pW=[new dm([12,56],1,200," px")];
this.Py()};w["Mxm "].prototype=new w;w["Mnm "]=function(){w.call(this,"Mnm ");this.pW=[new dm([12,56],1,200," px")];
this.Py()};w["Mnm "].prototype=new w;w.Ofst=function(){w.call(this,"Ofst");this.pW=[new dm([22,4,0],-1024,1024," px"),new dm([22,4,1],-1024,1024," px"),new fs([24,18,0],[[24,18,2],[24,18,1],[24,18,3]])];
this.Py()};w.Ofst.prototype=new w;w.Rept=function(){w.call(this,"Rept");this.pW=[new hN([12,38],1,300," %"),new hN("Row Shift",-50,50," %"),new hN("Space X",-99,200," %"),new hN("Space Y",-99,200," %"),new cw([4,16,2]),new fj([12,15])];
this.Py()};w.Rept.prototype=new w;w.Rept.prototype.hc=function(h,e){e[0]=h.Scl.v.val;e[1]=h.Rsft.v.val;
e[2]=h.SpcX.v.val;e[3]=h.SpcY.v.val;e[4]=h.SpcC.v;e[5]=h.Angl.v};w.Rept.prototype.kI=function(h,e){h.Scl.v.val=e[0];
h.Rsft.v.val=e[1];h.SpcX.v.val=e[2];h.SpcY.v.val=e[3];h.SpcC.v=e[4];h.Angl.v=e[5].w0;return h};w.Ctoa=function(){w.call(this,"Ctoa");
this.pW=[new cZ([13,0]),new fx(!0),new dm(["VAR0 VAR1","Transparency",[4,13]],0,100," %"),new dm(["VAR0 VAR1",[12,0],[4,13]],0,100," %")];
this.Py()};w.Ctoa.prototype=new w;w.Ctoa.prototype.hc=function(h,e){e[0]=h.Clr.v;e[1]=h.Trsp.v.val;e[2]=h.Opct.v.val};
w.Ctoa.prototype.kI=function(h,e){h.Clr.v=e[0];h.Trsp.v.val=e[1];h.Opct.v.val=e[2]};w.LqFy=function(){w.call(this,"LqFy");
this.Wq=!1;this.yR=null;this.agK=null;this.F=0;this.Nh={si:[[{F:{id:0,name:[24,1,0,1,0],dC:"liq/smudge"}}],[{F:{id:1,name:[24,1,0,1,1],dC:"liq/reconstruct"}}],[{F:{id:2,name:[24,1,0,1,2],dC:"liq/smooth"}}],[{F:{id:3,name:[24,1,0,1,3],dC:"liq/twirl"}}],[{F:{id:4,name:[24,1,0,1,4],dC:"liq/shrink"}}],[{F:{id:5,name:[24,1,0,1,5],dC:"liq/blow"}}],[{F:{id:6,name:[24,1,0,1,6],dC:"liq/pleft"}}]],keys:[]};
this.P6=new iS(this.Nh,!1);this.P6.DF(0);this.P6.k(D.E.P,this.aak,this);this.CB=cC.Zn();this.Ji=null;
this.Ex=[];this.Bl=-1;this.OT=null;this.afi=null;this.ZA=null;this.I8=null;this.ZD=null;var h=D.w("div","flexrow");
this.Ey=h;this.j.appendChild(h);h.appendChild(this.P6.j);this.view=new cz(!0);this.view.Sy(100,100);
this.view.k("mousedown",this.Aw,this);this.view.k("mousemove",this.AT,this);this.view.k("mouseup",this.IB,this);
this.view.k("zoom",this.qd,this);h.appendChild(this.view.j);var e=D.w("div","form");h.appendChild(e);
this.DV=e;e.style.width="230px";this.A6=[new dm([12,14,0],0,1e3,null,!1,!0),new dm([12,74],0,100,null,!1,!1),new dm([12,84],0,100,null,!1,!1),new cw([12,46]),new dm([12,0],0,100,null,!1,!1)];
var $=this.CB.Brsh.v;$.Dmtr.v.val=100;var Z=[100,50,100,!1,100];for(var G=0;G<this.A6.length;G++){var c=this.A6[G];
c.T(Z[G]);c.k(D.E.L,this.adD,this);e.appendChild(c.j)}var q=new gg("Reset",!0,null,!0);q.k("click",this.du,this);
e.appendChild(q.j);this.Ys=new ev;this.Ys.j=D.w("div","floatcont");this.l1=new gg("Menu",!1,null,!0);
this.l1.k("click",this.a7V,this);var E=this.l1.j;E.setAttribute("style","position:absolute; right:13px; top:47px")};
w.LqFy.prototype=new w;w.LqFy.prototype.lk=function(){return!0};w.LqFy.prototype.Um=function(h){this.DV.appendChild(h)};
w.LqFy.prototype.a7V=function(h){var e=this.l1.j.getBoundingClientRect();this.Ys.j.appendChild(this.DV);
var $=new B(D.E.P,!0);$.data={e:D.U.sH,yv:this.Ys,x:e.right+e.width-290,y:e.top+e.height};this.f($)};
w.LqFy.prototype.WI=function(h){this.Wq=h.q(p.ys);var e=f.rz.fF(this.CB,h);if(e!=null){this.CB=e;this.qd();
this.A6[0].T(e.Brsh.v.Dmtr.v.val)}else if(h.q(p.tm)&&h.q(p.HT)){var $=this.Ex;if(h.q(p.ai)){if(this.Bl+1<$.length)this.Bl++}else if(this.Bl>0)this.Bl--;
this.Ji.map=$[this.Bl].slice(0);this.rv(null)}else this.view.WI(h)};w.LqFy.prototype.aak=function(h){if(h.data.e==D.U.kX){this.F=h.data.F;
this.P6.DF(this.F)}};w.LqFy.prototype.adD=function(h){var e=h.currentTarget,G=this.A6.indexOf(e),$=this.CB.Brsh.v;
if(G==0){$.Dmtr.v.val=e.u();this.qd()}if(G>2)this.rv(null)};w.LqFy.prototype.ST=function(){var h=this.Ex;
this.Bl++;h[this.Bl]=this.Ji.map.slice(0);while(h.length>this.Bl+1)h.pop();while(h.length>50){h=h.slice(1);
this.Bl--}};w.LqFy.prototype.Aw=function(h){this.cv();this.yR=this.view.BS();this.agK=new eu(0,0);this.k(D.E.Pt,this.PO,this)};
w.LqFy.prototype.AT=function(h){var e=this.view.BS(),$=new eu(e.x-this.yR.x,e.y-this.yR.y);if(this.F==0||this.F==6)this.T_($);
this.yR=e};w.LqFy.prototype.IB=function(h){this.ST();this.cv()};w.LqFy.prototype.cv=function(){if(this.UA(D.E.Pt,this.PO))this.removeEventListener(D.E.Pt,this.PO,this)};
w.LqFy.prototype.PO=function(h){if(this.F!=0&&this.F!=6)this.T_(new eu(0,0))};w.LqFy.prototype.T_=function(h){var e=this.Ji,$=e.EN/this.OT.d,Z=this.yR,c=this.CB.Brsh.v,q=c.Dmtr.v.val,E=Date.now(),P=e.EN,a=e.CD,j=Math.sqrt(h.x*h.x+h.y*h.y),L=Math.max(1,Math.ceil(j/2)),H=h.x/L,_=h.y/L,J=Z.clone(),S=this.F,N=this.A6[1].u()/100,Y=this.A6[2].u()/100,U=[.005,.015,0,0,.2,.2,.01,.01,.05,.35,.1,.1,.005,.015],g=U[S*2],M=U[S*2+1],C=(1-N)*g+N*M,y=q*$/2;
for(var G=0;G<L;G++){var i=[];J.x+=H;J.y+=_;s.FT.a3O(e.map,P,a,S,J.x*$,J.y*$,y,N,Y,H*$,_*$,i,this.Wq);
s.FT.a8R(P,a,e.map,i,2*C*Y)}var Q=new O(0,0,P,a),m=new O(Z.x*$,Z.y*$,0,0);m.P5(q*$*.5,q*$*.5);var n=m.clone();
n.offset(h.x*$,h.y*$);m=m.iJ(n);var u=new O(m.x/$,m.y/$,m.d/$,m.v/$);u=s.a.Lu(u).jx(this.OT);this.rv(u)};
w.LqFy.prototype.qd=function(){var h=ec.b1(this.CB,null,this.view.fU().S);this.view.fk(h)};w.LqFy.prototype.T=function(h,e,$,Z,c){$=$.clone();
if(e==null)return;if(!Z.dz($)){var q=$.iJ(Z),E=s.m(q.X()*4);s.hX(e,$,E,q);e=E;$=q}$.x=$.y=0;this.ZA=e;
this.afi=c;this.ZD=e.slice(0);this.I8=e.slice(0);this.OT=$;this.Ji=hd.Hm(new Uint8Array(h.LqMe.v).buffer);
var P=$.d,a=$.v;if(this.Ji.EN/P<.22){this.Ji={EN:Math.floor(P/4),CD:Math.floor(a/4)};this.Ji.map=new Float32Array(this.Ji.EN*this.Ji.CD*2)}this.Ex=[];
this.Bl=-1;this.ST();this.rv(null);this.qd()};w.LqFy.prototype.u=function(){this.cv();var h=dA.X3("LqFy"),e=new Uint8Array(hd.XE(this.Ji)),$=[];
for(var G=0;G<e.length;G++)$.push(e[G]);h.LqMe.v=$;return h};w.LqFy.prototype.Sy=function(h,e){this.P6.Sy(h,e);
var $=this.l1.j,Z=this.DV;this.Ey.appendChild(Z);this.Ey.appendChild($);if(h>450){Z.style.marginLeft="1em";
this.Ey.removeChild($);this.view.Sy(h-238-45,e)}else{Z.style.marginLeft="";this.Ey.removeChild(Z);this.view.Sy(h-40,e)}};
w.LqFy.prototype.B=function(){this.P6.B();for(var G=0;G<this.A6.length;G++)this.A6[G].B()};w.LqFy.prototype.du=function(){this.cv();
this.Ji.map.fill(0);this.ST();this.rv(null)};w.LqFy.prototype.rv=function(h){var e=this.OT,$=this.ZA,Z=this.ZD,c=this.Ji;
s.FT.Km($,this.I8,e.d,e.v,h,c.map,c.EN,c.CD,0);if(this.A6[3].ha()){s.hX(this.afi,e,Z,e,h?h:e);s.p.Jn("norm",this.I8,e,Z,e,h?h:e,this.A6[4].u()/100)}else s.i7(this.I8,Z);
this.view.T([{Au:e,data:Z.buffer}])};w.GEfc=function(){w.call(this,"GEfc");this.uA=0;this.N5=0;this.ZA=null;
this.ZD=null;this.OT=null;this.D0=null;this.fD=null;this.dr=0;var h=D.w("div","flexrow");this.Ey=h;this.j.appendChild(h);
this.view=new cz;this.view.Sy(100,100);h.appendChild(this.view.j);this.Hj="";this.DG=270;var e=this.a9Y=D.w("div","form scrollable");
h.appendChild(e);e.setAttribute("style","width:"+this.DG+"px;  margin-left:1em");var $=D.w("div","form");
h.appendChild($);$.setAttribute("style","width:230px;  margin-left:1em");this.h1={};for(var Z in cc.names){var c=new w.GEfc.CF(Z);
this.h1[Z]=c;c.k(D.E.L,this.V1,this)}this.gu=D.w("div");$.appendChild(this.gu);this.gu.style.marginBottom="1.5em";
this.ml=D.w("div");this.ml.style.height="16.3em";$.appendChild(this.ml);D.vV($);this.MT=D.w("div","lpbody scrollable");
this.HD=D.w("div","lpfoot");$.appendChild(this.MT);$.appendChild(this.HD);this.k("click",this.acN,this);
this.hE=[];dh.Ek([[5,3],[5,4]],this.hE,this.HD,this.Zi.bind(this))};w.GEfc.prototype=new w;w.GEfc.prototype.lk=function(){return!0};
w.GEfc.prototype.Um=function(h){this.gu.appendChild(h)};w.GEfc.prototype.if=function(h,e){this.D0=h};
w.GEfc.prototype.Sy=function(h,e){this.uA=h;this.N5=e;this.a9Y.style.height=e+"px";this.view.Sy(h-240-this.DG-10,e);
this.MT.style.height=e-this.ml.getBoundingClientRect().height-106+"px"};w.GEfc.prototype.abU=function(){var h=cE.bO.get("img/beach",!0)[0],e=h.Au,$=this.a9Y,Z=Math.floor(D.M()*(this.DG-40)/3),c=~~(Z*.7),q=new O(0,0,Z,c),E=s.m(Z*c*4),P=E.slice(0),a=Math.round(10*D.M()),j=new ImageData(new Uint8ClampedArray(P.buffer),Z,c);
s.hX(new Uint8Array(h.data),e,E,new O(Math.round((e.d-Z)/2),Math.round((e.v-c)/2),Z,c));var L=D.w("canvas"),H=L.getContext("2d");
L.width=Z;L.height=c+Math.round(a*1.5);H.font=a+"px sans-serif";H.fillStyle="white";this.iM={};var _=this.afN.bind(this);
for(var G=0;G<cc.wX.length;G++){var J=cc.wX[G],S=D.w("div");$.appendChild(S);S.setAttribute("style","background-color:rgba(0,0,0,0.2); padding:0px 8px; margin-bottom:8px");
S.textContent=e_.get(J);for(var N in cc.names){var Y=cc.names[N];if(Y[0]!=G)continue;cc.Vv(N,{rect:q,buffer:E},cc.X3(N),{h:0,l:0,O:0},{h:255,l:255,O:255},{rect:q,buffer:P},{});
H.clearRect(0,0,500,500);H.putImageData(j,0,0);var U=e_.get(Y[1]);H.fillText(U,(Z-H.measureText(U).width)/2,c+Math.round(a*1.2));
var g=D.w("div");$.appendChild(g);g.setAttribute("style","display:inline-block; cursor:pointer; padding: 5px 5px 0 5px; margin-bottom:5px");
g.addEventListener("click",_,!1);var S=D.w("img");g.appendChild(S);S.setAttribute("src",L.toDataURL());
S.setAttribute("style","width:"+Z/D.M()+"px; margin-bottom:0px;");this.iM[N]=g}}};w.GEfc.prototype.afN=function(h){var e;
for(var $ in this.iM)if(this.iM[$]==h.currentTarget)this.Hj=$;this.V1()};w.GEfc.prototype.Zi=function(h){var e=dh.g6(this.hE,h),$=this.fD.GEfs.v,Z=$[this.dr].v;
if(e==0){$.push(JSON.parse(JSON.stringify($[this.dr])));this.dr=$.length-1}else if($.length>1){$.splice(this.dr,1);
if(this.dr==$.length)this.dr--}this.qo();this.rv()};w.GEfc.prototype.V1=function(h){var e=this.Hj,$;
if(h==null)$=cc.X3(e);else $=this.h1[e].u();this.fD.GEfs.v[this.dr].v=$;this.qo();this.rv()};w.GEfc.prototype.T=function(h,e,$,Z,c){if(this.iM==null)this.abU();
h=this.fD=JSON.parse(JSON.stringify(h));if(h.GEfs==null)h=this.fD={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:h}]}};
var q=h.GEfs.v;for(var G=0;G<q.length;G++)if(q[G].v.GELv==null)q[G].v.GELv={t:"bool",v:!0};this.dr=q.length-1;
this.qo();$=$.clone();if(e==null)return;if(!Z.dz($)&&cc.uB(h).x!=0){var E=$.iJ(Z),P=s.m(E.X()*4);s.hX(e,$,P,E);
e=P;$=E}$.x=$.y=0;this.ZA=e;this.ZD=e.slice(0);this.OT=$;this.rv()};w.GEfc.prototype.acN=function(h){var e=h.data,G=e.NS,$=this.fD.GEfs.v;
if(e.Tb){$[G].v.GELv.v=!$[G].v.GELv.v;this.rv()}else this.dr=G;this.qo()};w.GEfc.prototype.qo=function(){var h=this.fD.GEfs.v,e=h[this.dr].v,$=e.GEfk.v.GEft,Z=this.ml;
if(cc.names[$]==null){alert("Unsupported gallery filter");D.LK(Z)}else{this.Hj=$;for(var c in this.iM)D.ma(this.iM[c],"selected");
D.so(this.iM[$],"selected");var q=this.h1[$];q.T(e);if(Z.firstChild!=q.j){D.LK(Z);Z.appendChild(q.j)}}var E=[];
for(var G=0;G<h.length;G++){var P=h[G].v,a=cc.names[P.GEfk.v.GEft],j=new f9(G,!0,!0,null,a?a[1]:"Filter",G==this.dr,P.GELv.v);
j.parent=this;E.push(j.j)}D.LK(this.MT);E.reverse();for(var G=0;G<E.length;G++)this.MT.appendChild(E[G]);
this.Sy(this.uA,this.N5)};w.GEfc.prototype.u=function(){return JSON.parse(JSON.stringify(this.fD))};
w.GEfc.prototype.rv=function(h){var e=this.OT,$=this.ZA,Z=this.ZD,c=this.Hj,q=this.fD,E=this.D0;function P(a){return{h:a>>>16,l:a>>>8&255,O:a&255}}dA.Vv("GEfc",{rect:this.OT,buffer:this.ZA},q,P(E.oV),P(E.XK),{rect:this.OT,buffer:this.ZD},null);
this.view.T([{Au:e,data:Z.buffer}])};w.GEfc.prototype.B=function(){for(var h in this.h1)this.h1[h].B();
dh.Ha(this.hE,["lrs/newlayer","lrs/bin"])};w.GEfc.CF=function(h){ev.call(this);this.$v=h;this.j=D.w("div");
this.MC={};var e=cc.X3(h);for(var $ in e){var Z;if($=="__name"||$=="classID"||$=="GEfk"||$=="GELv"||["LghI","FlRs"].indexOf($)!=-1)continue;
else if($=="Sz")Z=new dm([12,14,0],1,50);else if($=="Dtl")Z=h=="Chrc"?new dm("Detail",0,5):new dm("Detail",1,15);
else if($=="Shrp")Z=new dm("Sharpness",0,40);else if($=="TxtT")Z=new fs([12,67],"Blocks,Canvas,Frosted,Tiny Lens,Bricks,Burlap,Sandstone".split(","));
else if($=="BrsT")Z=new fs("Brush type","Simple,Light Rough,Dark Rough,Wide Sharp,Wide Blurry,Sparkle".split(","));
else if($=="LghD")Z=new fs("Light","Bottom,Bottom Left,Left,Top Left,Top,Top Right,Right,Bottom Right".split(","));
else if($=="SDir")Z=new fs([12,33],["Right Diagonal","Horizontal","Left Diagonal","Vertical"]);else if($=="EdgW")Z=new dm("Edge Width",1,14);
else if($=="EdgB")Z=new dm("Edge Brightness",0,20);else if($=="Smth")Z=new dm([19,3,3],1,h=="Stmp"?50:15);
else if($=="ClSz")Z=new dm([12,61],3,100);else if($=="BrdT")Z=new dm([7,9],1,20);else if($=="HghS")Z=new dm([12,64],0,20);
else if($=="HlSz")Z=new dm([12,14,0],1,15);else if($=="Cntr")Z=new dm([12,3,0],0,50);else if($=="ScrT")Z=new fs([12,62],["Circle","Dot",[10,35]]);
else if($=="SprR")Z=new dm("Spray Radius",0,25);else if($=="StrL")Z=new dm("Stroke Length",0,20);else if($=="LgDr")Z=new dm("Light/Dark Balance",0,h=="Stmp"?50:100);
else if($=="Drkn")Z=new dm("Darkness",1,50);else if($=="Dstr")Z=new dm("Distortion",0,20);else if($=="Scln")Z=new dm([12,38],50,200);
else if($=="Rlf")Z=new dm("Relief",0,50);else if($=="ChAm")Z=new dm("Thickness",1,7);else if($=="InvT")Z=new cw([4,11]);
else if($=="RplS")Z=new dm("Ripple Size",1,15);else if($=="RplM")Z=new dm("Ripple Magnitude",0,20);else console.log($);
Z.k(D.E.L,this.dn,this);this.MC[$]=Z;this.j.appendChild(Z.j)}};w.GEfc.CF.prototype=new ev;w.GEfc.CF.prototype.dn=function(h){this.f(new B(D.E.L,!1))};
w.GEfc.CF.prototype.T=function(h){for(var e in this.MC){var $;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(e)!=-1)$=h[e].v;
else if(e=="TxtT")$=cc.U7.indexOf(h[e].v[e]);else if(e=="BrsT")$=cc.Ol.indexOf(h[e].v[e]);else if(e=="LghD")$=cc.R4.indexOf(h[e].v[e]);
else if(e=="ScrT")$=cc.fs.indexOf(h[e].v[e]);else if(e=="SDir")$=cc.GJ.indexOf(h[e].v.StrD);this.MC[e].T($)}};
w.GEfc.CF.prototype.u=function(){var h=cc.X3(this.$v);for(var e in this.MC){var $=this.MC[e].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(e)!=-1)h[e].v=$;
else if(e=="TxtT")h[e].v[e]=cc.U7[$];else if(e=="BrsT")h[e].v[e]=cc.Ol[$];else if(e=="LghD")h[e].v[e]=cc.R4[$];
else if(e=="ScrT")h[e].v[e]=cc.fs[$];else if(e=="SDir")h[e].v.StrD=cc.GJ[$]}return h};w.GEfc.CF.prototype.B=function(){for(var h in this.MC)this.MC[h].B()};
w.blnc=function(){w.call(this);var h=this.j;this.Mg=null;this.FF=new fs([12,12],[[19,6,0],[19,6,1],[19,6,2]]);
this.FF.k(D.E.L,this.rv,this);h.appendChild(this.FF.j);this.eV=[];for(var G=0;G<3;G++){var e=new dm(es.rt[G],-100,100);
e.k(D.E.L,this.Ta,this);this.eV.push(e);h.appendChild(e.j)}this.zB=new cw([13,4]);this.zB.k(D.E.L,this.Ta,this);
h.appendChild(this.zB.j)};w.blnc.prototype=new w;w.blnc.prototype.B=function(){this.FF.B();for(var G=0;
G<3;G++)this.eV[G].B();this.zB.B()};w.blnc.prototype.T=function(h){this.Mg=JSON.parse(JSON.stringify(h));
this.rv()};w.blnc.prototype.u=function(h){var e=["ShdL","MdtL","HghL"],$=this.Mg[e[this.FF.u()]].v;for(var G=0;
G<3;G++)$[G].v=this.eV[G].u();this.Mg.PrsL.v=this.zB.u();return JSON.parse(JSON.stringify(this.Mg))};
w.blnc.prototype.rv=function(h){var e=["ShdL","MdtL","HghL"],$=this.Mg[e[this.FF.u()]].v;for(var G=0;
G<3;G++)this.eV[G].T($[G].v);this.zB.T(this.Mg.PrsL.v)};w.brit=function(){w.call(this,"brit");this.pW.push(new dm([12,2],-150,150,""));
this.pW.push(new dm([12,3,0],-100,100,""));this.pW.push(new cw([12,3,1]));this.Py()};w.brit.prototype=new w;
w.brit.prototype.hc=function(h,e){e[0]=h.Brgh?h.Brgh.v:0;e[1]=h.Cntr?h.Cntr.v:0;e[2]=h.useLegacy?h.useLegacy.v:!1};
w.brit.prototype.kI=function(h,e){h.Brgh.v=e[0];h.Cntr.v=e[1];h.useLegacy.v=e[2]};w.curv=function(){w.call(this);
this.value=null;this.G_=null;var h=this.j;this.gk=new fs([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]);
this.gk.k(D.E.L,this.VS,this);h.appendChild(this.gk.j);this.Lx=new fs(null,["Spline","Sketch"]);this.Lx.k(D.E.L,this.af9,this);
h.appendChild(this.Lx.j);this.ci=new fy;this.ci.k(D.E.L,this.My,this);h.appendChild(this.ci.j);this.F0=new a4("Sample from image",["#000000","#888888","#ffffff"]);
h.appendChild(this.F0.j)};w.curv.prototype=new w;w.curv.prototype.B=function(){this.gk.B()};w.curv.prototype.af9=function(h){var e=cH.aj(this.value,0),$=e.length==256?1:0,Z=this.Lx.u();
if($==Z)return;var c=dA.X3("curv");if(Z==1){var q=[];for(var G=0;G<256;G++)q.push(G);cH.u1(c,0,q)}this.T(c);
this.Ta()};w.curv.prototype.My=function(){cH.u1(this.value,this.gk.u(),this.ci.u());this.Ta()};w.curv.prototype.VS=function(){var h=this.gk.u(),e=cH.aj(this.value,h),$=e.length==256?1:0;
this.Lx.T($);if(this.G_)this.ci.SP(this.G_[h],this.G_[4]*[1,.33,.33,.33][h],["#ccc","#fcc","#cfc","#ccf"][h]);
this.ci.T(e)};w.curv.prototype.KV=function(){return!0};w.curv.prototype.f0=function(h,e,$,Z,c){var q=this.value,E=this.F0.u();
this.value=dA.X3("curv");this.Ta();var P=f.CG.lx(h,c,1),a=[P>>>16&255,P>>>8&255,P&255];for(var G=0;G<3;
G++){var j=cH.aj(q,1+G);if(E==0)j[0].v.Hrzn.v=a[G];if(E==1){var L=(a[0]+a[1]+a[2])*.333,H=Math.log(a[G]/255)/Math.log(L/255),_=Math.min(999,Math.max(10,Math.round(100*H)));
if(j.length==2)j.splice(1,0,JSON.parse(JSON.stringify(j[0])));j[1].v.Hrzn.v=127-Math.log(_/100)*127;
j[1].v.Vrtc.v=127}if(E==2)j[j.length-1].v.Hrzn.v=a[G];cH.u1(q,1+G,j)}this.T(q);this.Ta()};w.curv.prototype.T=function(h){this.value=h;
this.VS()};w.curv.prototype.SP=function(h){this.G_=h;this.VS()};w.curv.prototype.u=function(h){return JSON.parse(JSON.stringify(this.value))};
w.expA=function(){w.call(this,"expA");this.pW.push(new dm([12,5],-20,20,null,3));this.pW.push(new dm([12,6],-.5,.5,null,3));
this.pW.push(new dm([12,7],.01,6.99,null,3));this.Py()};w.expA.prototype=new w;w.expA.prototype.hc=function(h,e){e[0]=h.Exps.v;
e[1]=h.Ofst.v;e[2]=h.gammaCorrection.v};w.expA.prototype.kI=function(h,e){h.Exps.v=e[0];h.Ofst.v=e[1];
h.gammaCorrection.v=e[2]};w.grdm=function(){w.call(this,"grdm");this.pW.push(new fh(!0,null,!0));this.pW.push(new cw([12,23,0]));
this.Py()};w.grdm.prototype=new w;w.grdm.prototype.hc=function(h,e){e[0]=h.Grad.v;e[1]=h.Rvrs?h.Rvrs.v:!1};
w.grdm.prototype.kI=function(h,e){h.Grad.v=e[0];h.Rvrs={t:"bool",v:e[1]}};w.grdm.prototype.if=function(h,e){this.pW[0].DM(h.oV,h.XK);
if(e==iM.uG||e==iM.JD||e==iM.xB)this.pW[0].K2(h.aI)};w.selc=function(){w.call(this);var h=this.j;this.c0=[];
this.BY=null;this.FF=new fs([12,82],es.UE.concat([[13,1,8],[13,1,13],[13,1,10]]));this.FF.k(D.E.L,this.dn,this);
h.appendChild(this.FF.j);for(var G=0;G<4;G++){var e=new dm(es.a1C[G],-100,100,"%");e.k(D.E.L,this.dn,this);
this.c0.push(e);h.appendChild(e.j)}this.q3=new cw([13,3]);h.appendChild(this.q3.j);this.q3.k(D.E.L,this.dn,this)};
w.selc.prototype=new w;w.selc.prototype.B=function(){this.FF.B();this.q3.B();for(var G=0;G<4;G++)this.c0[G].B()};
w.selc.prototype.T=function(h){this.BY=JSON.parse(JSON.stringify(h));this.rv()};w.selc.prototype.u=function(h){return JSON.parse(JSON.stringify(this.BY))};
w.selc.prototype.dn=function(h){if(h.target!=this.FF){var e=this.BY,$=[];for(var G=0;G<4;G++)$[G]=this.c0[G].u();
aS.u1(e,this.FF.u(),$);e.Mthd={t:"enum",v:{CrcM:this.q3.u()?"Absl":"Rltv"}}}this.rv();this.Ta()};w.selc.prototype.rv=function(){var h=this.BY,e=aS.aj(h,this.FF.u());
for(var G=0;G<4;G++)this.c0[G].T(e[G]);this.q3.T(h.Mthd?h.Mthd.v.CrcM=="Absl":!1)};w.blwh=function(){w.call(this,"blwh");
this.pW.push(new cw([12,11]));this.pW.push(new fx(!0));for(var G=0;G<6;G++)this.pW.push(new dm(es.UE[G],-200,300));
this.Py()};w.blwh.prototype=new w;w.blwh.prototype.hc=function(h,e){e[0]=h.useTint.v;e[1]=h.tintColor.v;
var $="Rd Yllw Grn Cyn Bl Mgnt".split(" ");for(var G=0;G<6;G++)e[2+G]=h[$[G]].v};w.blwh.prototype.kI=function(h,e){h.useTint.v=e[0];
h.tintColor.v=e[1];var $="Rd Yllw Grn Cyn Bl Mgnt".split(" ");for(var G=0;G<6;G++)h[$[G]].v=e[2+G]};
w.hue2=function(){w.call(this);this.value=null;this.$z=null;this.ajC=null;var h=this.j;this.FF=new fs([12,12],["Master"].concat(es.UE));
this.FF.k(D.E.L,this.VS,this);h.appendChild(this.FF.j);this.n8=new dm([12,8],-180,180);this.n8.k(D.E.L,this.wG,this);
h.appendChild(this.n8.j);this.OZ=new dm([12,9],-100,100);this.OZ.k(D.E.L,this.wG,this);h.appendChild(this.OZ.j);
this.Z7=new dm([12,10],-100,100);this.Z7.k(D.E.L,this.wG,this);h.appendChild(this.Z7.j);this.zz=new cw([12,11]);
this.zz.k(D.E.L,this.a6z,this);h.appendChild(this.zz.j);this.afr=new cZ("...",!0);h.appendChild(this.afr.j)};
w.hue2.prototype=new w;w.hue2.prototype.B=function(){this.n8.B();this.OZ.B();this.Z7.B();this.zz.B();
this.FF.B()};w.hue2.prototype.a6z=function(h){var e=this.zz.u();this.value.Clrz.v=e;if(e)this.FF.T(0);
this.VS();this.Ta()};w.hue2.prototype.wG=function(h){var e=this.value.Clrz.v,$=this.FF.u(),Z=eb.aj(this.value,$),c=$==0?Z:Z.eV;
c[0]=this.n8.u();var q=this.OZ.u();c[1]=e?Math.max(0,q):q;c[2]=this.Z7.u();eb.u1(this.value,$,Z);this.VS();
this.Ta()};w.hue2.prototype.VS=function(){var h=this.value.Clrz?this.value.Clrz.v:!1,c="";this.zz.T(h);
if(h)this.FF.WJ();else this.FF.pw();var e=this.FF.u(),$=eb.aj(this.value,e),Z=e==0?$:$.eV;this.n8.T(Z[0]);
this.OZ.T(Z[1]);this.Z7.T(Z[2]);if(!h){c+=e_.get([5,8])+": ";var e=this.FF.u();if(e==0)c+=e_.get([13,2]);
else c+=$.bR}this.afr.T(c)};w.hue2.prototype.KV=function(){return!0};w.hue2.prototype.yj=function(h,e,$,Z,c){var q=this.value;
this.value=dA.X3("hue2");this.Ta();var E=f.CG.lx(h,c,1),P=[E>>>16&255,E>>>8&255,E&255],a=s.TC(P[0]/255,P[1]/255,P[2]/255);
this.FF.T(1+Math.round(a.CD*6)%6);this.T(q);this.Ta();this.$z=c.x;this.ajC=this.OZ.u()};w.hue2.prototype.oX=function(h,e,$,Z,c){if(this.$z!=null){var q=c.x-this.$z;
q=Math.max(-100,Math.min(100,this.ajC+.5*q));this.OZ.T(q);this.wG()}};w.hue2.prototype.f0=function(h,e,$,Z,c){this.$z=null};
w.hue2.prototype.T=function(h){this.value=JSON.parse(JSON.stringify(h));this.VS()};w.hue2.prototype.u=function(h){return JSON.parse(JSON.stringify(this.value))};
w.levl=function(){w.call(this);this.value=null;this.G_=null;this.JH=[new eu(0,0),new eu(0,0),new eu(0,0),new eu(0,0),new eu(0,0)];
this.bm=-1;this.uZ=this.mq.bind(this);this.Bv=this.i3.bind(this);var h=this.j;this.gk=new fs([12,4],["RGB",[13,1,1],[13,1,4],[13,1,5]]);
this.gk.k(D.E.L,this.VS,this);h.appendChild(this.gk.j);var e=D.w("div","");h.appendChild(e);var $=D.w("div","");
h.appendChild($);this.Mt=D.w("canvas");e.appendChild(this.Mt);this.J$=this.Mt.getContext("2d");this.zk=new eu(256,120);
this.Mt.setAttribute("style","display:block");D.VR(this.Mt,this.zk.x,this.zk.y,this.J$);D.Sz(this.Mt);
D.uh(this.Mt,this.NK.bind(this));this.Jq=D.w("canvas","");$.appendChild(this.Jq);this.yy=this.Jq.getContext("2d");
this.fc=new eu(this.zk.x,40);this.Jq.setAttribute("style","display:block");D.VR(this.Jq,this.fc.x,this.fc.y,this.yy);
D.Sz(this.Jq);D.uh(this.Jq,this.amB.bind(this));var Z=this.a38=[];for(var G=0;G<5;G++){var c=new a_(null,null,3);
Z.push(c);c.k(D.E.L,this.amf,this);(G<2||G==4?e:$).appendChild(c.j)}e.appendChild(Z[1].j);Z[4].j.setAttribute("style","margin: 0 4.7em");
Z[3].j.setAttribute("style","margin:0 0 0 13em");this.F0=new a4("Sample from image",["#000000","#888888","#ffffff"]);
h.appendChild(this.F0.j)};w.levl.prototype=new w;w.levl.prototype.B=function(){this.gk.B()};w.levl.prototype.amf=function(h){var e=[];
for(var G=0;G<5;G++){var $=255,Z=1;if(G==4){$=999;Z=100}var c=parseFloat(this.a38[G].u());e[G]=Math.max(0,Math.min($,c*Z))}fH.u1(this.value,this.gk.u(),e);
this.VS();this.Ta()};w.levl.prototype.VS=function(h){var e=this.zk.x,$=this.zk.y,Z=this.gk.u(),c=this.J$;
c.clearRect(0,0,e,$);c.fillStyle="#cccccc";c.fillRect(8,8,e-16,$-16-8);if(this.G_){if(Z==0){this.G_[0].fill(0);
var q=JSON.parse(JSON.stringify(this.value));fH.u1(q,0,[0,255,0,255,100]);var E=es.J8("levl",q),P=[E.k$,E.q0,E.Uz];
for(var a=0;a<3;a++){var j=this.G_[1+a],L=P[a];for(var G=0;G<256;G++)this.G_[0][L[G]]+=j[G]}}var H=this.G_[Z],_=0;
for(var G=0;G<H.length;G++)_+=H[G];c.fillStyle="#333333";c.beginPath();c.moveTo(8,$-16);for(var G=0;
G<256;G++){var J=55*H[G]/_;c.lineTo(8+G/256*(e-16),Math.max(8,$-16-$*J))}c.lineTo(e-8,$-16);c.closePath();
c.fill()}var S=fH.aj(this.value,Z);for(var G=0;G<5;G++)this.a38[G].T(S[G]/(G==4?100:1));this.JH[0].su(8+S[0]/255*(e-16),$-14);
this.JH[1].su(8+S[1]/255*(e-16),$-14);var N=Math.log(S[4]/100)/Math.log(9.99);N=.5-N/2;this.JH[4].su(this.JH[0].x+N*(this.JH[1].x-this.JH[0].x),$-14);
this.i1(c,this.JH[0],"#000000");this.i1(c,this.JH[1],"#ffffff");this.i1(c,this.JH[4],"#777777");var e=this.fc.x,$=this.fc.y;
c=this.yy;c.clearRect(0,0,e,$);var Y=c.createLinearGradient(0,0,e-16,0);Y.addColorStop(0,"black");Y.addColorStop(1,"white");
c.fillStyle=Y;c.fillRect(8,8,e-16,16);this.JH[2].su(8+S[2]/255*(e-16),$-14);this.JH[3].su(8+S[3]/255*(e-16),$-14);
this.i1(c,this.JH[2],"#000000");this.i1(c,this.JH[3],"#ffffff")};w.levl.prototype.i1=function(h,e,$){h.fillStyle=$;
h.fillRect(e.x-5,e.y,10,10)};w.levl.prototype.NK=function(h){var e=D.q6(h,this.Mt);for(var G=0;G<2;G++)if(eu.nj(this.JH[G],e)<10)this.bm=G;
if(eu.nj(this.JH[4],e)<10)this.bm=4;this.Wr()};w.levl.prototype.amB=function(h){var e=D.q6(h,this.Jq);
for(var G=2;G<4;G++)if(eu.nj(this.JH[G],e)<10)this.bm=G;this.Wr()};w.levl.prototype.Wr=function(h){if(this.bm==-1)return;
D._s(document.body,this.uZ);D.A4(document.body,this.Bv)};w.levl.prototype.mq=function(h){var e=fH.aj(this.value,this.gk.u()),$=D.q6(h,this.bm==2&&this.bm==3?this.Jq:this.Mt),Z=255*($.x-8)/(this.zk.x-16);
Z=Math.max(0,Math.min(255,Z));if(this.bm==0)Z=Math.min(Z,e[1]-2);if(this.bm==1)Z=Math.max(Z,e[0]+2);
if(this.bm!=4)e[this.bm]=Math.round(Z);else{var c=(Z-e[0])/(e[1]-e[0]);c=1-2*c;c=Math.pow(9.99,c);e[4]=Math.min(999,Math.max(10,Math.round(c*100)))}fH.u1(this.value,this.gk.u(),e);
this.VS();this.Ta()};w.levl.prototype.i3=function(h){D.xR(document.body,this.uZ);D.oT(document.body,this.Bv);
this.bm=-1};w.levl.prototype.KV=function(){return!0};w.levl.prototype.f0=function(h,e,$,Z,c){var q=this.value,E=this.F0.u();
this.value=dA.X3("levl");this.Ta();var P=f.CG.lx(h,c,1),a=[P>>>16&255,P>>>8&255,P&255];for(var G=0;G<3;
G++){var j=fH.aj(q,1+G);if(E==0)j[0]=a[G];if(E==1){var L=Math.log(a[G]/255)/Math.log((a[0]+a[1]+a[2])*.333/255);
j[4]=Math.min(999,Math.max(10,Math.round(100*L)))}if(E==2)j[1]=a[G];fH.u1(q,1+G,j)}this.T(q);this.Ta()};
w.levl.prototype.T=function(h){this.value=h;this.VS()};w.levl.prototype.SP=function(h){this.G_=h;this.VS()};
w.levl.prototype.u=function(h){return JSON.parse(JSON.stringify(this.value))};w.phfl=function(){w.call(this,"phfl");
this.pW.push(new fx);this.pW.push(new dm([12,74],0,100,"%"));this.pW.push(new cw([13,4]));this.Py()};
w.phfl.prototype=new w;w.phfl.prototype.hc=function(h,e){e[0]=h.Clr.v;e[1]=h.Dnst.v;e[2]=h.PrsL.v};w.phfl.prototype.kI=function(h,e){var $=s.Y.LX(e[0]),Z=h.Clr.v,c=s.Z1($.h,$.l,$.O);
Z.Lmnc.v=c.Hs;Z.A.v=c.R;Z.B.v=c.O;h.Dnst.v=e[1];h.PrsL.v=e[2]};w.vibA=function(){w.call(this,"vibA");
this.pW.push(new dm([12,13],-100,100,null));this.pW.push(new dm([12,9],-100,100,null));this.Py()};w.vibA.prototype=new w;
w.vibA.prototype.hc=function(h,e){e[0]=h.vibrance?h.vibrance.v:0;e[1]=h.Strt?h.Strt.v:0};w.vibA.prototype.kI=function(h,e){h.vibrance.v=e[0];
h.Strt.v=e[1]};w.thrs=function(){w.call(this,"thrs");this.pW.push(new dm([4,13],1,255,null));this.Py()};
w.thrs.prototype=new w;w.thrs.prototype.hc=function(h,e){e[0]=h.Lvl.v};w.thrs.prototype.kI=function(h,e){h.Lvl.v=e[0]};
w.mixr=function(){w.call(this);var h=this.j;this.c0=[];this.BY=null;this.FF=new fs([12,4],[[13,1,1],[13,1,4],[13,1,5]]);
this.FF.k(D.E.L,this.dn,this);h.appendChild(this.FF.j);D.vV(h);this.OK=new cw([12,60]);h.appendChild(this.OK.j);
this.OK.k(D.E.L,this.dn,this);for(var G=0;G<4;G++){var e=new dm([[13,1,1],[13,1,4],[13,1,5],[13,2]][G],-200,200,"%");
e.k(D.E.L,this.dn,this);this.c0.push(e);h.appendChild(e.j)}};w.mixr.prototype=new w;w.mixr.prototype.B=function(){this.FF.B();
this.OK.B();for(var G=0;G<4;G++)this.c0[G].B()};w.mixr.prototype.T=function(h){this.BY=JSON.parse(JSON.stringify(h));
this.rv()};w.mixr.prototype.u=function(h){return JSON.parse(JSON.stringify(this.BY))};w.mixr.prototype.dn=function(h){if(h.target!=this.FF){var e=es.Mz(this.BY);
if(h.target==this.OK){e.OK=this.OK.u();if(e.OK)e.G=[40,40,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];else e.G=[100,0,0,0,0,0,100,0,0,0,0,0,100,0,0,0,0,0,0,0]}else{var $=(e.OK?0:this.FF.u())*5,G=this.c0.indexOf(h.target);
e.G[$+(G<3?G:4)]=h.target.u()}this.BY=es.Kk(e)}this.rv();this.Ta()};w.mixr.prototype.rv=function(){var h=es.Mz(this.BY);
this.OK.T(h.OK);var e=(h.OK?0:this.FF.u())*5;for(var G=0;G<4;G++)this.c0[G].T(h.G[e+(G<3?G:4)])};w.post=function(){w.call(this,"post");
this.pW.push(new dm([4,1],2,255,null));this.Py()};w.post.prototype=new w;w.post.prototype.hc=function(h,e){e[0]=h.Lvls.v};
w.post.prototype.kI=function(h,e){h.Lvls.v=e[0]};w.clrL=function(){w.call(this,"clrL");this.pW.push(new cS("LUTs"));
this.Py()};w.clrL.prototype=new w;w.clrL.prototype.hc=function(h,e){e[0]=h};w.clrL.prototype.kI=function(h,e){var $=e[0];
for(var Z in $)h[Z]=$[Z]};w.clrL.prototype.if=function(h,e){if(e==iM.uG||e==iM.Wh)this.pW[0].K2(h.a5u)};
w.rplc=function(){w.call(this,"rplc");this.pW.push(new dm([12,92],0,200));this.pW.push(new fx);this.pW.push(new dm([12,8],-180,180));
this.pW.push(new dm([12,9],-100,100));this.pW.push(new dm([12,10],-100,100));this.Py()};w.rplc.prototype=new w;
w.rplc.prototype.hc=function(h,e){e[0]=h.Fzns.v;e[1]=h.Mxm.v;e[2]=h.H.v;e[3]=h.Strt.v;e[4]=h.Lght.v};
w.rplc.prototype.kI=function(h,e){function $(c,q){q.Lmnc.v=c.Hs;q.A.v=c.R;q.B.v=c.O}h.Fzns.v=e[0];h.H.v=e[2];
h.Strt.v=e[3];h.Lght.v=e[4];var Z=s.Y.LX(e[1]),c=s.Z1(Z.h,Z.l,Z.O);$(c,h.Mnm.v);$(c,h.Mxm.v)};w.fade=function(){w.call(this,"fade");
this.pW.push(new dm([12,0],0,100,"%"));this.pW.push(new fs([12,19,0],eN.sF,!1,eN.$j));this.Py()};w.fade.prototype=new w;
w.fade.prototype.hc=function(h,e){e[0]=h.Opct.v.val;e[1]=eN.ie.indexOf(h.Md.v.BlnM)};w.fade.prototype.kI=function(h,e){h.Opct.v.val=e[0];
h.Md.v.BlnM=eN.ie[e[1]]};w.aply=function(){w.call(this,"aply");this.pW.push(new fs([0,3],[]));this.pW.push(new fs([12,4],["RGB"].concat(es.rt).concat(["Transparency"])));
this.pW.push(new cw([4,11]));this.pW.push(new fs([12,19,0],eN.sF,!1,eN.$j));this.pW.push(new dm([12,0],0,100,"%"));
this.pW.push(new cw("Preserve Transparency"));this.Py([2]);this.hG=null};w.aply.prototype=new w;w.aply.prototype.hc=function(h,e,$){if($){var Z=$[2].t,c=this.hG=[];
for(var G=0;G<Z.length;G++)c.push(Z[G].getName());c.reverse();this.pW[0].uK([[5,7]].concat(c),[1,c.length])}else var c=this.hG;
h=h.With.v;var q=h.T.v;e[0]=q[1].t=="name"?1+c.indexOf(q[1].v.val):0;e[1]=["RGB","Rd","Grn","Bl","Trsp"].indexOf(q[0].v.enum);
e[2]=h.Invr.v;e[3]=eN.ie.indexOf(h.Clcl.v.Clcn);e[4]=h.Opct.v.val;e[5]=h.PrsT.v};w.aply.prototype.kI=function(h,e){h=h.With.v;
var $=h.T.v;if(e[0]==0)$[1]={t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Mrgd"}};else $[1]={t:"name",v:{classID:"Lyr",val:this.hG[this.hG.length-1-e[0]]}};
$[0].v.enum=["RGB","Rd","Grn","Bl","Trsp"][e[1]];h.Invr.v=e[2];h.Clcl.v.Clcn=eN.ie[e[3]];h.Opct.v.val=e[4];
h.PrsT.v=e[5]};function hx(h,e){ev.call(this);if(h==null)return;this.id=e;this.US=h;this.jD=null;this.j=D.w("div","window "+e);
this.a5y=null;this.$m=D.w("div","whead");this.aix=D.w("span","wname");this.$m.appendChild(this.aix);
this.j.appendChild(this.$m);this.xj=this.a2U.bind(this);this.at=this.aj1.bind(this);this.E7=this.akd.bind(this);
D.Sz(this.$m);D.uh(this.$m,this.xj);this.I4=D.w("span","cross");this.$m.appendChild(this.I4);hx.prototype.B.call(this);
D.A4(this.I4,this.ry.bind(this));this.body=D.w("div","body");this.j.appendChild(this.body)}hx.prototype=new ev;
hx.prototype.Mm=function(){return!1};hx.prototype.KV=function(){return!1};hx.prototype.B=function(){if(this.US==null)return;
this.aix.textContent=e_.get(this.US);var h=PIMG.__cross==null?"filter:invert(1);":"";this.I4.setAttribute("style","background-image:url("+PIMG.cross+");"+h)};
hx.prototype.yj=function(h,e,$,Z,c){};hx.prototype.p8=function(h,e,$,Z,c){};hx.prototype.oX=function(h,e,$,Z,c){};
hx.prototype.f0=function(h,e,$,Z,c){};hx.prototype.d1=function(h,e,$,Z,c){};hx.prototype.WI=function(h,e,$,Z){if(Z.q(p.Gr)&&this.nW)this.nW();
if(Z.q(p.tm)){var c=new B(D.E.A);c.Q1=!0;f.LZ.ot(Z,c);if(c.data)e.f(c)}};hx.prototype.Jr=function(h){return!1};
hx.prototype.oc=function(h,e){return!0};hx.prototype.uq=function(h,e,$,Z){};hx.prototype.if=function(h,e){};
hx.prototype.uX=function(h,e){return null};hx.prototype.ajo=function(h){return this.a5y};hx.prototype.Sy=function(){};
hx.prototype.close=function(){this.f(new B(D.E.iF))};hx.prototype.a2U=function(h){this.jD=D.q6(h,this.j);
D._s(window,this.at);D.A4(window,this.E7)};hx.prototype.aj1=function(h){var e=this.j.parentNode,$=D.q6(h,e),Z=Math.round($.x-this.jD.x),c=e.offsetTop+Math.max(0,Math.min(window.innerHeight-36,Math.round($.y-this.jD.y)));
this.a5y=new eu(Z,c);this.j.style.left=Z+"px";this.j.style.top=c+"px"};hx.prototype.akd=function(h){D.xR(window,this.at);
D.oT(window,this.E7)};hx.prototype.ry=function(h){this.f(new B("closebtn"));this.close()};function cv(){hx.call(this,[0,13,0],"account");
this.jf=D.w("div","form padded scrollable");this.jf.setAttribute("style","max-width:48em;  max-height:33em;");
this.body.appendChild(this.jf);this.HG=[new cv.Rf,new cv.pd(cv.aa9),new cv.pd(cv.a8o)];for(var G=0;G<this.HG.length;
G++)this.HG[G].parent=this;this.k("showpage",this.abE,this)}cv.prototype=new hx;cv.prototype.abE=function(h){D.LK(this.jf);
this.jf.scrollTop=0;this.jf.appendChild(this.HG[h.data.NS].j)};cv.prototype.B=function(){hx.prototype.B.call(this);
for(var G=0;G<this.HG.length;G++)this.HG[G].B()};cv.prototype.uq=function(h,e,$){D.LK(this.jf);var Z=this.HG[0];
this.jf.appendChild(Z.j);Z.uq();this.B()};cv.prototype.if=function(h,e){this.uq(null,null,null)};cv.Rf=function(){ev.call(this);
this.j=D.w("div");var h=this.j,e,$,Z="background-color: #00aa00;  text-shadow:none; padding:3px 7px; font-size:1.2em; font-weight:bold; color:#ffffff; cursor:pointer; margin:4px 0;";
this.lf=D.w("div");h.appendChild(this.lf);this.Rn=new gg([0,11],!1,null,!0);this.Rn.j.setAttribute("style","background-color: rgba(200,0,0,1); color:#ffffff; margin:4px 6px 4px 0;");
this.Rn.k("click",this.ck,this);h.appendChild(this.Rn.j);this.W0=new gg([0,13,1],!1,null,!0);this.W0.k("click",this.O$,this);
h.appendChild(this.W0.j);this.aeX=new gg("Contact",!1,null,!0);this.aeX.k("click",this.ajq,this);e=D.w("h2");
e.innerHTML="Account types";h.appendChild(e);$=D.w("table");$.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";
h.appendChild($);var c=this.a5E=[[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.m8=[];for(var G=0;G<c.length;G++)this.m8.push(new gg("Buy: $"+c[G][0],!1,null,!0));for(var G=0;
G<this.m8.length;G++){this.m8[G].j.setAttribute("style",Z);this.m8[G].k("click",this.sD,this)}e=D.w("h2");
e.innerHTML="Go Premium";h.appendChild(e);this.tA=new gg("...",!0);this.tA.j.setAttribute("style",Z);
h.appendChild(this.tA.j);$=this.aK(3,["Single user",this.m8[0],this.m8[1],this.m8[2],"Team of 5",this.m8[3],this.m8[4],this.m8[5],"Team of 20",this.m8[6],this.m8[7],this.m8[8]]);
h.appendChild($);this.afq=new cw("I accept",!0,"");h.appendChild(this.afq.j);this.Ra=new gg([0,13,1],!1,null,!0);
this.Ra.k("click",this.O$,this);h.appendChild(this.Ra.j);this.qY=new gg("I have a key",!1,null,!0);this.qY.j.setAttribute("style",Z+" margin-left:18.9em;");
this.qY.k("click",this.sD,this);h.appendChild(this.qY.j);e=D.w("h2");e.textContent="Team Settings";h.appendChild(e);
this.S3=new cw("Join a team");h.appendChild(this.S3.j);this.S3.k(D.E.L,this.QY,this);this.rQ=new a_("Email of a leader",null,14);
h.appendChild(this.rQ.j);D.vV(h);this.kc=new cw("Start a team");h.appendChild(this.kc.j);this.kc.k(D.E.L,this.QY,this);
var q=new cZ("Emails of other members:");h.appendChild(q.j);D.vV(h);this.TU=D.w("textarea");this.TU.setAttribute("rows",3);
this.TU.setAttribute("cols",70);this.TU.setAttribute("style","display:block;tab-size:4;");h.appendChild(this.TU);
var E=new gg("Save Team Settings",!1,null,!0);h.appendChild(E.j);E.k("click",this.a5W,this);var P=this.a6G=new gg("More about Teams",!1,null,!0);
h.appendChild(P.j);P.k("click",this.jA,this);e=D.w("h2");e.innerHTML="Distributor Account";h.appendChild(e);
this.RO=new gg("...",!0);this.RO.j.setAttribute("style",Z);h.appendChild(this.RO.j);$=this.aK(3,["1000 views/month",this.m8[9],this.m8[10],this.m8[11],"5000 views/month",this.m8[12],this.m8[13],this.m8[14],"20000 views/month",this.m8[15],this.m8[16],this.m8[17]]);
h.appendChild($);this.wq=new a_("Domain name (e.g. domain.com)",null,14);h.appendChild(this.wq.j);D.vV(h);
var E=new gg("Save Domain Settings",!1,null,!0);E._j();h.appendChild(E.j);E.k("click",this.a8i,this);
var P=new gg("More about Distributors",!1,null,!0);h.appendChild(P.j);P.k("click",this.jA,this)};cv.Rf.prototype=new ev;
cv.Rf.prototype.O$=function(h){var e=new B("showpage",!0);e.data={NS:1};this.f(e)};cv.Rf.prototype.ajq=function(h){var e=new B("showpage",!0);
e.data={NS:2};this.f(e)};cv.Rf.prototype.B=function(){this.Rn.TQ(e3.z5()?e_.get([0,11]):e_.get([0,10]));
this.Ra.B();this.W0.B();this.aeX.B()};cv.Rf.prototype.jA=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.yI,link:"https://www.photopea.com/api/accounts#"+(h.target==this.a6G?"teams":"distributors")};
this.f(e)};cv.Rf.prototype.QY=function(h){var e=h.currentTarget==this.S3;this.S3.T(e);this.kc.T(!e)};
cv.Rf.prototype.a5W=function(h){var e=this.S3.u(),$=this.rQ.u().trim(),Z=this.TU.value.trim();if($.length>60){alert("Too long email address");
return}if(Z.length>600){alert("Too many team members");return}Z=Z.split(",").join(" ").trim();Z=Z.replace(/\s+/g," ");
if(Z=="")Z=[];else Z=Z.split(" ");var c=e3.Sa();if(c==null)c={};if(c.acc==null)c.acc={};c.acc.team={jin:e,ldr:$,mmb:Z};
e3.i_(c,this.JB.bind(this));alert("Saved!");this.uq()};cv.Rf.prototype.a8i=function(h){var e=this.wq.u().trim();
if(!e3.z5()){alert("You have to log in first.");return}if(e3.Lr().distrib=="0"){alert("Order a distributor account first.");
return}var $=e3.Sa();if($==null)$={};if($.acc==null)$.acc={};if(e=="")delete $.acc.dname;else $.acc.dname=e;
e3.i_($,this.JB.bind(this));alert("Saved!");this.uq()};cv.Rf.prototype.uq=function(){if(e3.z5()){var h=e3.Lr();
if(h==null)return;this.lf.innerHTML="<span style=\"font-size:1.5em; margin-right:0.7em;\">"+h.name+"</span> "+h.email+" <br/>"}else this.lf.innerHTML="Logging In is free. Your environment settings will be synchronized across all devices. <br/>";
var e=e3.z5()&&e3.xK();this.tA.j.style.display=e?"block":"none";if(e){var $=parseInt(h[D.Wc("!&|'&50")])-Date.now()*(1/1e3),Z=parseInt(h.ptype),c;
if(Z==-1)c="member of a team";else if(Z==1)c="Single user";else c="Team of "+Z;this.tA.TQ("Premium active for "+Math.round($/(60*60*24))+" more days! ("+c+")")}var q=e3.z5()&&h.distrib*1e3>Date.now();
this.RO.j.style.display=q?"block":"none";if(q){var $=parseInt(h.distrib)-Date.now()/1e3,Z=parseInt(h.ptype);
this.RO.TQ("Distributor active for "+Math.round($/(60*60*24))+" more days! ("+Z+" visitos)")}var E=e3.Sa();
if(E&&E.acc&&E.acc.team){var P=E.acc.team;this.S3.T(P.jin);this.kc.T(!P.jin);this.rQ.T(P.ldr);this.TU.value=P.mmb.join(", ")}else{this.S3.T(!0);
this.kc.T(!1);this.rQ.T("");this.TU.value=""}if(E&&E.acc&&E.acc.dname)this.wq.T(E.acc.dname);else this.wq.T("")};
cv.Rf.prototype.aK=function(h,e){var $=D.w("table");$.innerHTML="\t\t\t\t<table>\t\t\t\t\t<tr>   <th class=\"left\"></th><th>30 days</th><th>90 days</th> "+(h==3?"<th>365 days</th>":"")+" </tr>\t\t\t\t</table>\t\t\t";
for(var G=0;G<e.length;G+=h+1){var Z=D.w("tr"),c;$.appendChild(Z);c=D.w("td","left");Z.appendChild(c);
c.innerHTML="<b>"+e[G]+"</b>";for(var q=0;q<h;q++){c=D.w("td");Z.appendChild(c);c.appendChild(e[G+1+q].j)}}return $};
cv.Rf.prototype.sD=function(h){var e=this.m8.indexOf(h.currentTarget),Z=30,c=1;if(!e3.z5()){alert("You must log in before buying Premium");
return}if(this.afq.u()==!1&&e<9){alert("You must accept Terms of Service");return}var $=e3.z5()&&e3.xK();
if(e!=-1){var q=this.a5E[e];Z=q[1];c=q[2]}if($&&c<1e3){alert("You already have premium.");return}if(e==-1){var E=prompt("Please enter your key");
if(E!=null){e3.adC(E,this.JB.bind(this));this.j7()}return}if(Z==30&&c==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}e3.order(Z,c,this.JB.bind(this));this.j7()};cv.Rf.prototype.JB=function(h){if(e3.z5()&&e3.Lr().msg)alert(e3.Lr().msg);
this.uq();this.j7()};cv.Rf.prototype.ck=function(h){if(e3.z5()){e3.akH();this.j7();this.uq(null,null,null)}else e3.ck(this.a49.bind(this))};
cv.Rf.prototype.a49=function(){var h=new B(D.E.P,!0);h.data={e:D.U.acw};this.f(h)};cv.Rf.prototype.j7=function(){var h=new B(D.E.P,!0);
h.data={e:D.U.S8};this.f(h)};cv.pd=function(h){ev.call(this);this.j=D.w("div");var e=this.j,$=this.ajR=new gg([0,13,2],!1,null,!0);
$.k("click",this.a5V,this);e.appendChild($.j);var Z=D.w("div");Z.innerHTML=h;e.appendChild(Z)};cv.pd.prototype=new ev;
cv.pd.prototype.a5V=function(h){var e=new B("showpage",!0);e.data={NS:0};this.f(e)};cv.pd.prototype.B=function(){this.ajR.B()};
cv.a8o="\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";
cv.aa9="\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 bR(){hx.call(this,[11,14],"addguides");this.gT;this.D0={cz:{k1:0}};this.VK=null;var h=D.w("div","form");
this.body.appendChild(h);this.Rm=new a_([22,4,0],null,16);this.Rm.k(D.E.L,this._F,this);this.Wj=new a_([22,4,1],null,16);
this.Wj.k(D.E.L,this._F,this);this.qE=new fs(null,s.IQ.Xp);this.qE.k(D.E.L,this._F,this);h.appendChild(this.Rm.j);
h.appendChild(this.qE.j);D.vV(h);h.appendChild(this.Wj.j);this.kj=new gg("OK",!0,null,!0);this.kj.k("click",this.nW,this);
h.appendChild(this.kj.j);this.k("closebtn",this.aj5,this)}bR.prototype=new hx;bR.prototype.oc=function(h,e){return h!=null};
bR.prototype.Mm=function(){return!0};bR.prototype.B=function(){hx.prototype.B.call(this);this.Rm.B();
this.Wj.B();this.qE.B()};bR.prototype.if=function(h,e){var $=h.cz.k1;this.D0.cz.k1=$;this.qE.T($)};bR.prototype.uq=function(h,e){this.gT=h;
this.VK=JSON.stringify(h._D);this.$T()};bR.prototype.$T=function(){var h=this.gT,e=h._D,$=function(Z,h,c,q){var E=[];
for(var G=0;G<Z.length;G++)E.push(s.IQ.MB(Z[G],h.Ay,c,q));return E.join(", ")};this.Rm.T($(e[1],h,this.D0,h.v));
this.Wj.T($(e[0],h,this.D0,h.d))};bR.prototype._F=function(h){if(h&&h.currentTarget==this.qE)this.D0.cz.k1=this.qE.u();
else{var e=this.qL(this.Rm),$=this.qL(this.Wj),Z=this.gT;Z._D=[$,e];Z.IL=!0}this.$T()};bR.prototype.qL=function(h){var e=h==this.Rm?this.gT.v:this.gT.d,$=h.u().replace(/,/g," ").replace(/  +/g," ").trim(),Z=$==""?[]:$.split(" ");
for(var G=0;G<Z.length;G++)Z[G]=s.IQ.acC(Z[G],this.gT.Ay,this.D0,e);return Z};bR.prototype.aj5=function(h){var e=this.gT;
e._D=JSON.parse(this.VK);e.IL=!0;this.gT=null};bR.prototype.nW=function(h){this._F(h);var e=new B(D.E.A,!0);
e.F=f.OA;e.data={e:"gids",$w:JSON.parse(this.VK),LS:JSON.parse(JSON.stringify(this.gT._D))};this.gT=null;
this.close();this.f(e)};function dx(h){var e=dA.names[h];if(e==null)e=es.names[h];if(h=="aply")e="Apply Image";
if(h=="fade")e=[2,11];if(h=="blendOptions")e=[14,10];hx.call(this,e,"afw_"+h);this.S4=h;this.HX=null;
this.f7=null;this.ci=new w[h];this.ci.k(D.E.L,this.Ta,this);this.ci.parent=this;this.body.appendChild(this.ci.j);
this.P9=new cw([24,18,5]);this.P9.T(!0);this.P9.k(D.E.L,this.Ta,this);this.aek=new gg("Reset",!0,null,!0);
this.aek.k("click",this.du,this);this.kj=new gg("OK",!0,null,!0);this.kj.k("click",this.nW,this);if(this.sc())this.ci.Um(this.kj.j);
else{D.so(this.ci.j,"form");D.so(this.body,"flexrow");this.ci.j.setAttribute("style","width:24em");var $=D.w("div");
this.body.appendChild($);$.setAttribute("style","width:8em; margin-left:1em; line-height:2.3em");$.appendChild(this.kj.j);
$.appendChild(this.aek.j);$.appendChild(this.P9.j)}this.k("closebtn",this.Qt,this)}dx.prototype=new hx;
dx.prototype.Mm=function(){return!0};dx.prototype.sc=function(){return this.ci!=null&&this.ci.lk()};
dx.prototype.uX=function(){return this.sc()?new eu(0,0):hx.prototype.uX()};dx.prototype.KV=function(){return this.ci.KV()};
dx.prototype.yj=function(h,e,$,Z,c){this.ci.yj(h,e,$,Z,c)};dx.prototype.oX=function(h,e,$,Z,c){this.ci.oX(h,e,$,Z,c)};
dx.prototype.f0=function(h,e,$,Z,c){this.ci.f0(h,e,$,Z,c)};dx.prototype.oc=function(h,e){if(this.S4=="fade")return dx.rR(h);
return!0};dx.prototype.du=function(h){this.ci.T(dA.X3(this.S4));this.Ta()};dx.prototype.Ta=function(h){this.tT({e:"edit",o8:this.ci.u(),zr:!this.P9.u()})};
dx.prototype.Qt=function(h){this.tT({e:"cancel"})};dx.prototype.nW=function(h){if(!this.P9.u()){this.P9.T(!0);
this.Ta()}this.f7=this.ci.u();if(this.sc())this.Ta();this.tT({e:"confirm"});this.close()};dx.prototype.B=function(){hx.prototype.B.call(this);
this.P9.B();if(this.ci)this.ci.B()};dx.prototype.if=function(h,e){if(this.ci)this.ci.if(h,e)};dx.prototype.WI=function(h,e,$,Z){if(this.sc())this.ci.WI(Z);
else hx.prototype.WI.call(this,h,e,$,Z)};dx.prototype.uq=function(h,e,$,Z){this.HX=e.HX;var c=h.add.lnk2?h.add.lnk2:[],q,E,P=new O(0,0,h.d,h.v),a=h.t[h.C[0]],j=null;
q=a.buffer;E=a.rect;if(this.sc())j=h.v2(h.C[0]-1);var L=dA.X3(this.S4),H=[c,h.Qe,h];if(e.HX==null){this.ci.T(L,q,E,P,j,H);
if(es.names[this.S4]){if(Z.q(p.ys)&&this.f7)this.ci.T(this.f7);var _=bn.wk.getData(h),J=s.CN(_[0].Yu);
this.ci.SP(J)}}else{var S=!1,a=h.t[this.HX.$];if(a.fi()){var N=a.wV(h);q=N.buffer;E=N.rect;var Y=a.add.SoLd.filterFX.v.filterFXList.v;
if(Y[this.HX.index]){var U=Y[this.HX.index].v,g=U.Fltr.v;this.ci.T(this.S4=="blendOptions"?U.blendOptions.v:g,q,E,P,j,H);
this.ci.SP(s.CN(q));S=!0}}if(!S){this.ci.T(L,q,E,P,j,H);this.ci.SP(s.CN(q))}}if(!this.sc())this.Ta()};
dx.prototype.tT=function(h){var e=new B(D.E.A,!0);h.S4=this.S4;h.HX=this.HX;e.data=h;e.F=dA.names[this.S4]||this.HX?f.HP:f.Qi;
e.Q1=!0;this.f(e)};dx.prototype.Sy=function(h,e){e=e-26;h=h-26;this.ci.Sy(h,e)};dx.rR=function(h){if(h==null)return!1;
var e=h.fX();if(e==null||!(e.data instanceof Array)||e.data.length!=h.C.length)return!1;for(var G=0;
G<e.data.length;G++){var $=e.data[G];if($.$<0&&h.Qe[-1-$.$])return!0;if($.$==null||h.t[$.$]==null||h.t[$.$].jw!=$.Md)return!1;
if(h.C.indexOf($.$)==-1)return!1}return!0};function gD(){hx.call(this,[11,0],"camera");this.data=null;
this.YR=new eu(1,1);this.a9t=[];var h=D.w("div","form hbar");this.body.appendChild(h);this.agB=new fs(null,[]);
this.GQ=new fs([21,0],[[21,2],[21,1]]);h.appendChild(this.GQ.j);this.f8=new fs(null,[]);this.f8.k(D.E.L,this.Z5,this);
h.appendChild(this.f8.j);this.y_=new gg([11,0],!1,null,!0);this.y_.k("click",this.a1h,this);h.appendChild(this.y_.j);
this.VX=new cZ("");h.appendChild(this.VX.j);this.stream=null;this.M8=D.w("video","");this.M8.setAttribute("autoplay","true");
this.body.appendChild(this.M8);this.afD=this.ahL.bind(this);this.a9m=this.acR.bind(this);this.a1H=this.adV.bind(this);
this.k("closebtn",this.cY,this)}gD.prototype=new hx;gD.prototype.B=function(){hx.prototype.B.call(this);
this.GQ.B();this.y_.B();this.Sy(this.EN,this.CD)};gD.prototype.v2=function(){var h=this.M8.videoWidth,e=this.M8.videoHeight,$=D.w("canvas","");
$.width=h;$.height=e;var Z=$.getContext("2d");Z.drawImage(this.M8,0,0,h,e);var c=Z.getImageData(0,0,h,e);
return{Au:new O(0,0,h,e),data:c.data.buffer}};gD.prototype.a1h=function(h){if(this.GQ.u()==0)this.a3_();
else this.aiJ()};gD.prototype.aiJ=function(){var h=this.v2(),e={buffer:new Uint8Array(h.data),rect:h.Au},$=new B(D.E.A,!0);
$.Q1=!0;$.F=f.S$;$.data={e:o.Y0,Fp:e};this.f($);alert(e_.get([21,4]))};gD.prototype.a3_=function(){var h=this.v2(),e=cE._E("camera",[h]),$=new B(D.E.P,!0);
$.data={e:D.U.YF,q4:e};this.f($);alert(e_.get([21,5]))};gD.prototype.uq=function(h,e,$){navigator.mediaDevices.enumerateDevices().then(this.aaY.bind(this))};
gD.prototype.aaY=function(h){var e=this.a9t=[],$=[];for(var G=0;G<h.length;G++)if(h[G].kind=="videoinput"){e.push(h[G]);
$.push("Camera "+e.length)}this.f8.uK($);this.f8.T(0);this.Z5()};gD.prototype.Z5=function(h){this.cY();
var e={video:{deviceId:this.a9t[this.f8.u()].deviceId,width:{ideal:8e3},height:{ideal:8e3}}};if(navigator.mediaDevices.getUserMedia)navigator.mediaDevices.getUserMedia(e).then(this.afD).catch(this.a9m);
else navigator.webkitGetUserMedia(e,this.afD,this.a9m)};gD.prototype.ahL=function(h){this.stream=h;this.M8.srcObject=h;
this.M8.addEventListener("loadedmetadata",this.a1H,!1)};gD.prototype.adV=function(h){this.M8.play();
this.Sy(this.EN,this.CD)};gD.prototype.uX=function(h,e){return new eu(0,0)};gD.prototype.Sy=function(h,e){var $=this.M8.videoWidth,Z=this.M8.videoHeight;
this.VX.T($+" x "+Z+" px");this.VX.j.setAttribute("style","position:absolute;  left:14px; bottom:10px; z-index:1;");
this.YR.su($,Z);this.EN=h;this.CD=e;var c=h-28,q=e-28-30,E=this.YR.x/this.YR.y;if(c/q>E)c=q*E;else q=c/E;
this.M8.setAttribute("style","display: block; width: "+Math.round(c)+"px; height:"+Math.round(q)+"px;")};
gD.prototype.acR=function(h){console.log("error",h);alert(e_.get([21,6]));this.close()};gD.prototype.cY=function(h){if(this.stream!=null){var e=this.stream.getTracks();
for(var G=0;G<e.length;G++)e[G].stop();this.stream=null}};function au(){hx.call(this,[7,8],"crange");
this.gT=null;this.L_={Hs:73,R:4.45,O:4};this.Yf={Hs:73,R:4.45,O:4};var h=D.w("div","form");h.setAttribute("style","width:18em");
this.body.appendChild(h);this.nF=new dm([12,92],0,200);this.nF.T(40);this.nF.k(D.E.L,this.rv,this);h.appendChild(this.nF.j);
this.p$=D.w("canvas");h.appendChild(this.p$);this.h2=new cp([12,36],[[18,0],"\uFF0B","\u2014"]);h.appendChild(this.h2.j);
this.VB=new gg("OK",!0,null,!0);this.VB.k("click",this.nW,this);this.body.appendChild(this.VB.j)}au.prototype=new hx;
au.prototype.oc=function(h,e){return h!=null};au.prototype.KV=function(){return!0};au.prototype.Mm=function(){return!0};
au.prototype.B=function(){hx.prototype.B.call(this);this.nF.B();this.h2.B()};au.prototype.yj=function(h,e,$,Z,c){var q=h.z.QX(c.x,c.y);
this.T4(q.x,q.y)};au.prototype.T4=function(h,e){var $=Math.min,Z=Math.max,c=this.gT,q=Z(0,$(c.d-1,Math.floor(h))),E=Z(0,$(c.v-1,Math.floor(e))),P=c.v2(),a=(E*c.d+q)*4,j=P[a],L=P[a+1],H=P[a+2],_=s.Z1(j,L,H),J=this.h2.u(),S=this.L_,N=this.Yf;
if(J==0){this.L_=JSON.parse(JSON.stringify(_));this.Yf=_}else if(J==1){S.Hs=$(S.Hs,_.Hs);S.R=$(S.R,_.R);
S.O=$(S.O,_.O);N.Hs=Z(N.Hs,_.Hs);N.R=Z(N.R,_.R);N.O=Z(N.O,_.O)}else if(J==2){var Y=(S.Hs+N.Hs)/2,U=(S.R+N.R)/2,g=(S.O+N.O)/2;
if(_.Hs<Y)S.Hs=Z(S.Hs,_.Hs+10);else N.Hs=$(N.Hs,_.Hs-10);if(_.R<U)S.R=Z(S.R,_.R+1);else N.R=$(N.R,_.R-1);
if(_.O<g)S.O=Z(S.O,_.O+1);else N.O=$(N.O,_.O-1)}this.rv()};au.prototype.nW=function(h){var e=new B(D.E.A,!0);
e.F=f.$r;e.data={e:"crange",qO:this.L_,XF:this.Yf,wO:this.nF.u()/200};e.Q1=!0;this.f(e);this.close()};
au.prototype.uq=function(h,e){this.gT=h;this.T4(0,0)};au.prototype.rv=function(){var h=this.gT,e=f.LV.qF(h,this.L_,this.Yf,this.nF.u()/200),$=e.rect,Z=e.channel,c=this.p$,q=c.getContext("2d"),E=Math.floor(230*D.M()),P=Math.floor(E*($.v/$.d));
c.width=E;c.height=P;D.pH(c,E,P);var a=s.m(Z.length*4);s.Ut(a,4294967295);for(var G=0;G<3;G++)s.Jk(Z,a,G);
var j=f.o.D8([a,$],new i7(E/$.d,0,0,P/$.v,0,0)),L=j.rect,H=new ImageData(new Uint8ClampedArray(j.buffer.buffer),L.d,L.v);
q.putImageData(H,0,0)};function dU(){hx.call(this,[12,76,1],"createshape");this.FN=null;var h=D.w("div","form");
h.setAttribute("style","width:20em");this.body.appendChild(h);this.Oq=new hr([12,41],0,0,null,0,!1,!0);
h.appendChild(this.Oq.j);D.vV(h);this.Rm=new hr([12,42],0,0,null,0,!1,!0);h.appendChild(this.Rm.j);D.vV(h);
this.iV=new cw([19,5,3]);h.appendChild(this.iV.j);this.Oq.T(100);this.Rm.T(100);this.kj=new gg("OK",!0,null,!0);
this.kj.k("click",this.nW,this);h.appendChild(this.kj.j)}dU.prototype=new hx;dU.prototype.nW=function(h){this.FN.anU(this.FN.ads,this.Oq.u(),this.Rm.u(),this.iV.u());
this.close()};dU.prototype.B=function(){if(this.FN)this.US=e_.get([5,3])+": "+e_.get(this.FN.a0h);hx.prototype.B.call(this);
this.Oq.B();this.Rm.B();this.iV.B()};dU.prototype.uq=function(h,e){this.FN=e;this.B()};function eC(){hx.call(this,[11,1],"colorpicker");
this.Dm=null;this.l4=null;this.sL=null;this.T2=!1;this.x9=!1;var h=D.w("div","flexrow"),q,E;this.body.appendChild(h);
this.vE=new bg(256);this.vE.k(D.E.L,this.fm,this);h.appendChild(this.vE.j);var e=D.w("div","form");e.setAttribute("style","width:14.5em; margin-left:1em;");
h.appendChild(e);this.anI=D.w("div","full");e.appendChild(this.anI);this.agb=D.w("div","full");e.appendChild(this.agb);
var $=D.w("div","flexrow");e.appendChild($);var Z=D.w("div"),c=D.w("div");$.appendChild(Z);$.appendChild(c);
q=["R","G","B"];E=Z;this.Gp=[];for(var G=0;G<3;G++){var P=new hr(q[G]+":",0,255,null,0,!1,!0);this.Gp.push(P);
P.k(D.E.L,this.adk,this);E.appendChild(P.j)}q=["H","S","B"];E=c;this.VY=[];for(var G=0;G<3;G++){var a=0,j=360,L="\xB0";
if(G!=0){j=100;L="%"}var P=new hr(q[G]+":",a,j,L,0,!1,!0);this.VY.push(P);P.k(D.E.L,this.a6B,this);E.appendChild(P.j)}this.Rm=new a_("Hex",null,6);
this.Rm.k(D.E.L,this.n6,this);e.appendChild(this.Rm.j);this.Tc=D.w("input","fitem");this.Tc.setAttribute("type","color");
this.Tc.setAttribute("style","width:50px");this.Tc.addEventListener("change",this.n6.bind(this),!1);
e.appendChild(this.Tc);this.RD=new gy(9);this.RD.k(D.E.L,this.n6,this);e.appendChild(this.RD.j);this.kj=new gg("OK",!0,null,!0);
this.kj.k("click",this.nW,this);e.appendChild(this.kj.j);this.k("closebtn",this.Qt,this);this.ty=!1}eC.prototype=new hx;
eC.prototype.KV=function(){return!0};eC.prototype.Sy=function(h,e){this.vE.Sy(Math.min(256,h-250),e)};
eC.prototype.fm=function(h){this.l4=this.vE.u();this.update()};eC.prototype.yj=function(h,e,$,Z,c){this.ty=!0;
this.dh(h,c)};eC.prototype.oX=function(h,e,$,Z,c){if(!this.ty)return;this.dh(h,c)};eC.prototype.f0=function(h,e,$,Z,c){this.ty=!1};
eC.prototype.dh=function(h,e){var $=f.CG.lx(h,e,1),Z=$&255,c=$>>8&255,q=$>>16&255;this.l4={h:q/255,l:c/255,O:Z/255};
this.update()};eC.prototype.adk=function(h){var e=this.Gp,$=this.Em(parseInt(e[0].u())),Z=this.Em(parseInt(e[1].u())),c=this.Em(parseInt(e[2].u()));
this.l4={h:$/255,l:Z/255,O:c/255};this.update()};eC.prototype.a6B=function(h){var e=this.VY,$=this.En(parseInt(e[0].u())/360),Z=this.En(parseInt(e[1].u())/100),c=this.En(parseInt(e[2].u())/100);
this.l4=s.g7($,Z,c);this.update()};eC.prototype.n6=function(h){var e;if(h.currentTarget==this.RD)e=this.RD.u();
else{e=h.currentTarget==this.Rm?this.Rm.u():this.Tc.value;if(e.charAt(0)=="#")e=e.slice(1);if(e.length==3)e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2];
e=s.St(e)}this.l4={h:(e>>16&255)/255,l:(e>>8&255)/255,O:(e&255)/255};this.update()};eC.prototype.bD=function(h){var e=h.h,$=h.l,Z=h.O;
return Math.round(e*255)<<16|Math.round($*255)<<8|Math.round(Z*255)};eC.prototype.nW=function(h){this.an();
var e=this.bD(this.l4);this.sL(e);this.close();this.x9=!1;this.l4=null};eC.prototype.Qt=function(h){this.an();
if(this.T2)this.sL(this.bD(this.Dm));this.x9=!1;this.l4=null};eC.prototype.an=function(h){var e=new B(D.E.P,!0);
e.data={e:D.U.M6};this.f(e)};eC.prototype.if=function(h,e){if(e!=iM.JD)return;var $=h.oV;this.RD.T($);
if(this.l4!=null){this.l4={h:($>>16&255)/255,l:($>>8&255)/255,O:($>>0&255)/255};this.update()}};eC.prototype.uq=function(h,e){var $=e.Nr,Z={h:($>>16&255)/255,l:($>>8&255)/255,O:($>>0&255)/255};
if(this.l4==null){var c=new B(D.E.P,!0);c.data={e:D.U.Qd,Hz:"crosshair",push:!0};this.f(c);this.ty=!1;
this.sL=e.Nb;this.T2=!1;this.x9=e.ii;this.Dm=JSON.parse(JSON.stringify(Z));this.agb.setAttribute("style","height:3em;background-color:#"+s.jT($)+";")}this.l4=Z;
this.update()};eC.prototype.update=function(){var h=this.l4,e=this.bD(h),$=this.Gp;$[0].T(Math.round(h.h*255));
$[1].T(Math.round(h.l*255));$[2].T(Math.round(h.O*255));this.Rm.T(s.jT(e));this.Tc.value="#"+s.jT(e);
this.anI.setAttribute("style","height:3em;background-color:#"+s.jT(e)+";");var Z=s.TC(h.h,h.l,h.O);$=this.VY;
$[0].T(Math.round(Z.CD*360));$[1].T(Math.round(Z.Zp*100));$[2].T(Math.round(Z.o8*100));this.vE.T(h);
if(this.x9){this.sL(this.bD(this.l4));this.T2=!0}};eC.prototype.Em=function(h){return Math.max(0,Math.min(255,h))};
eC.prototype.En=function(h){return Math.max(0,Math.min(1,h))};function aT(){hx.call(this,[11,2],"contoureditor");
this.a7J=null;this.h_=null;this.response=null;this.UK=D.w("div","cell");this.body.appendChild(this.UK);
this.e9=D.w("div","cell padded");this.body.appendChild(this.e9);var h=D.w("div","bordered padded vmargin");
this.UK.appendChild(h);this.ci=new fy;this.ci.k(D.E.L,this.My,this);h.appendChild(this.ci.j);this.kj=new gg("OK",!0,null,!0);
this.kj.k("click",this.close,this);this.e9.appendChild(this.kj.j);this.coords=D.w("div","");this.coords.setAttribute("style","width:250px");
this.UK.appendChild(this.coords);this.cE=new a_("X (in)","%",4);this.Jd=new a_("Y (out)","%",4);this.Qk=new cw([19,3,0]);
this.cE.k(D.E.L,this.Tg,this);this.Jd.k(D.E.L,this.Tg,this);this.Qk.k(D.E.L,this.Tg,this);this.coords.appendChild(this.cE.j);
this.coords.appendChild(this.Qk.j);this.coords.appendChild(this.Jd.j);this.k("closebtn",this.pt,this)}aT.prototype=new hx;
aT.prototype.B=function(){hx.prototype.B.call(this);this.Qk.B()};aT.prototype.My=function(h){this.h_.Crv.v=this.ci.u();
this.response(this.h_);this.A5()};aT.prototype.pt=function(h){this.response(this.a7J)};aT.prototype.uq=function(h,e){this.a7J=JSON.parse(JSON.stringify(e.qM));
this.h_=e.qM;this.response=e.response;this.ci.T(this.h_.Crv.v);this.A5()};aT.prototype.A5=function(){var G=this.ci.zi();
this.coords.setAttribute("class",G==-1?"disabled":"");if(G==-1)return;var h=this.h_.Crv.v[G].v;this.cE.T(Math.round(h.Hrzn.v*(100/255)));
this.Jd.T(Math.round(h.Vrtc.v*(100/255)));this.Qk.T(h.Cnty.v)};aT.prototype.Tg=function(h){var G=this.ci.zi(),e=this.h_.Crv.v[G];
e.v.Hrzn.v=parseFloat(this.cE.u())*(255/100);e.v.Vrtc.v=parseFloat(this.Jd.u())*(255/100);e.v.Cnty.v=this.Qk.u();
this.h_.Crv.v.sort(function($,Z){return $.v.Hrzn.v-Z.v.Hrzn.v});this.ci.T(this.h_.Crv.v,this.h_.Crv.v.indexOf(e));
this.A5();this.response(this.h_)};function fY(){hx.call(this,[11,3],"csize");this.xs=0;this.jf=D.w("div","form");
this.jf.setAttribute("style","width:22em");this.body.appendChild(this.jf);this.Hq=new aY(!0,!0,!0,!0);
this.Hq.a2s(!1);this.jf.appendChild(this.Hq.j);this._c=new cp("Align with",[[8,7],[12,6]]);this._c.k(D.E.L,this.am8,this);
this._y=new fc([12,23,2],41);this.jf.appendChild(this._y.j);this._y.T(4);this.mL=new fq(!1);this.mL.ahZ(new eu(0,0));
this.VB=new gg("OK",!0,null,!0);this.VB.k("click",this.nW,this);this.body.appendChild(this.VB.j)}fY.prototype=new hx;
fY.prototype.oc=function(h,e){return h!=null};fY.prototype.Mm=function(){return!0};fY.prototype.am8=function(){var h=[this._y.j,this.mL.j];
this.jf.removeChild(h[this.xs]);this.xs=this._c.u();this.jf.appendChild(h[this.xs])};fY.prototype.B=function(){hx.prototype.B.call(this);
this.Hq.B();this._c.B();this._y.B();this.mL.B()};fY.prototype.nW=function(h){var e=this.Hq.u(),$=e.x,Z=e.y,c=new B(D.E.Kz,!0);
c.data=f.u4.fT($,Z,this._y.u());this.close();this.f(c)};fY.prototype.uq=function(h,e){this.Hq.T(new eu(h.d,h.v),h.Ay)};
function ct(){hx.call(this,[11,4],"duplinto");this.SU=null;this.ny=null;var h=D.w("div","form");h.setAttribute("style","max-width:26em");
this.body.appendChild(h);this.wI=new fs([12,43],["abc","def"]);this.wI.k(D.E.L,this.cg,this);h.appendChild(this.wI.j);
D.vV(h);this.Mr=new a_([12,48],null,14);h.appendChild(this.Mr.j);this.kj=new gg("OK",!0,null,!0);this.kj.k("click",this.nW,this);
h.appendChild(this.kj.j)}ct.prototype=new hx;ct.prototype.Mm=function(){return!0};ct.prototype.B=function(){hx.prototype.B.call(this);
this.wI.B();this.Mr.B()};ct.prototype.cg=function(h){var e=this.wI.u();if(e==this.ny.length)this.Mr.pw();
else this.Mr.WJ()};ct.prototype.uq=function(h,e,$){this.SU=h;this.ny=$;this.Mr.T(h.C.length==0?"Layer":h.t[h.C[0]].getName());
var Z=[];for(var G=0;G<$.length;G++)Z.push($[G].name);Z.push([11,7]);this.wI.uK(Z);this.wI.T($.indexOf(h));
this.cg(null)};ct.prototype.nW=function(h){var e=this.wI.u();if(e==this.ny.length){var $=new c9(this.Mr.u()+".psd");
$.d=this.SU.d;$.v=this.SU.v;$.buffer=s.m($.d*$.v*4);var Z=$.by();Z.aq("Background");$.a4([Z]);var c=new B(D.E.P,!0);
c.Q1=!0;c.data={e:D.U.YF,q4:$};this.f(c)}var q=this.SU.xP(null,this.SU!=this.ny[e]),c=new B(D.E.A,!0);
c.data={e:o.K4,t:q,Br:this.SU,g1:this.ny[e]};c.F=f.S$;c.Q1=!0;this.f(c);this.close()};function iq(){hx.call(this,[1,9],"eassets");
this.D0=null;this.j_=null;var h=D.w("div","form");h.setAttribute("style","width:32em");this.body.appendChild(h);
this.$J=D.w("span");h.appendChild(this.$J);D.vV(h);this.So=[new cw("Only layers / folders, whose name starts with \"-e-\""),new cw("Remove parts outside the canvas"),new cw("Trim transparent parts")];
for(var G=0;G<3;G++){var e=this.So[G];e.T(!0);e.k(D.E.L,this.$T,this);h.appendChild(e.j);D.vV(h)}this.Rq=new gv([12,14,0],["1x","2x","3x","4x"]);
this.Rq.T([!0,!1,!1,!1]);h.appendChild(this.Rq.j);D.Uj(h);this.Tx=["PNG","JPG","SVG"];this.$i=new fs([12,50],this.Tx);
this.$i.k(D.E.L,this.IW,this);h.appendChild(this.$i.j);this.e4=new ba;h.appendChild(this.e4.j);this.VB=new gg([1,9],!0,null,!0);
this.VB.k("click",this.nW,this);h.appendChild(this.VB.j);this.k("closebtn",this.wW,this)}iq.prototype=new hx;
iq.prototype.IW=function(h){this.e4.ze(this.Tx[this.$i.u()])};iq.prototype.wW=function(h){this.j_=null};
iq.prototype.B=function(){hx.prototype.B.call(this);this.$i.B();this.Rq.B();this.VB.B();this.e4.B()};
iq.prototype.uq=function(h,e,$){this.j_=h;this.$T()};iq.prototype.$T=function(h){var e=this.Z6(),$="- - - "+e.length+" exportable layers";
this.$J.textContent=$;this.IW(null)};iq.prototype.Z6=function(){var h=this.So[0].u(),e=[],$=this.j_;
for(var G=0;G<$.t.length;G++){var Z=$.t[G],c=Z.getName();if(!h&&!Z.vG()&&!Z.rect.nK()||c.startsWith("-e"))e.push(G)}return e};
iq.prototype.if=function(h,e){this.D0=h};iq.prototype.nW=function(h){var e=this.j_,$=[this.Tx[this.$i.u()]],Z=[this.e4.u()],c=this.Rq.u(),q={},E={},P=this.Z6();
if(P.length==0){alert("No layers to export.");return}var a=[this.So[1].u(),this.So[2].u()];for(var G=0;
G<P.length;G++){var j=P[G],L=e.t[j],H=L.getName();if(E[H]!=null){E[H]++;H+=" "+E[H]}else E[H]=1;var _=L.o6();
L.QL(!0);for(var J=0;J<c.length;J++){if(!c[J])continue;var S=J+1,N=f.fQ.cN(e,$,S,this.D0,j,Z,a);for(var Y=0;
Y<$.length;Y++){var U=$[Y],g=H.slice(H.startsWith("-e-")?3:0)+(S==1?"":"-"+S+"x")+"."+U.toLowerCase();
if(N[Y])q[g]=new Uint8Array(N[Y])}}L.QL(_)}var M=UZIP.encode(q),C=new B(D.E.P,!0);C.data={e:D.U.Dz,data:M,name:"assets.zip"};
this.f(C)};function dX(){hx.call(this,"Export Color Lookup Tables","exlut");this.D0=null;this.j_=null;
var h=D.w("div","form");h.setAttribute("style","width:20em");this.body.appendChild(h);this.So=[new hr("Grid Points",1,256),new cp([12,50],[".CUBE"])];
var e=[16,0];for(var G=0;G<this.So.length;G++){var $=this.So[G];$.T(e[G]);$.parent=this;$.k(D.E.L,this.$T,this);
h.appendChild($.j);D.vV(h)}this.VB=new gg("OK",!0,null,!0);this.VB.k("click",this.nW,this);h.appendChild(this.VB.j);
this.k("closebtn",this.wW,this)}dX.prototype=new hx;dX.prototype.oc=function(h,e){if(Math.min(h.d,h.v)<16){alert("The document must be at least 16 x 16 pixels.",3200);
return!1}if(h.t.length<2){alert("There must be a background layer and some adjustment layers.",3200);
return!1}return!0};dX.prototype.wW=function(h){this.j_=null};dX.prototype.if=function(h,e){this.D0=h};
dX.prototype.uq=function(h,e,$){this.j_=h};dX.prototype.nW=function(){var h=this.j_,e=this.So[0].u(),$=[],Z=new O(0,0,h.d,h.v),c=s.m(e*e*4),q=c.slice(0),E=new O(h.d-e>>>1,h.v-e>>>1,e,e),P=h.t[0],a=P.buffer,j=P.rect;
P.rect=E;P.buffer=c;for(var L=0;L<e;L++){this.a4o(e,L,c);P.s(E);h.s(E);var H=h.v2();s.hX(H,Z,q,E);for(var _=0;
_<e;_++)for(var J=0;J<e;J++){var S=_*e+J<<2;$.push(q[S]/255,q[S+1]/255,q[S+2]/255)}}var N=f0.a72($,e,h.name);
co.save(N,h.name.split(".")[0]+".CUBE");P.buffer=a;P.rect=j;P.s();h.s()};dX.prototype.a4o=function(h,e,$){var Z=255/(h-1),c=Math.round(e*Z);
for(var q=0;q<h;q++)for(var E=0;E<h;E++){var P=q*h+E<<2;$[P]=Math.round(E*Z);$[P+1]=Math.round(q*Z);
$[P+2]=c;$[P+3]=255}};dX.prototype.B=function(){hx.prototype.B.call(this);for(var G=0;G<this.So.length;
G++)this.So[G].B()};function hj(){hx.call(this,[1,14],"finfo");this.sT=null;this.Ji=null;this.aV=null;
this.jf=D.w("div","form scrollable label12");this.jf.setAttribute("style","width:35em;  height:38em;  margin-bottom:8px");
this.body.appendChild(this.jf);var h=D.w("div","form");this.body.appendChild(h);this.l6=new fs(null,["Hello"]);
h.appendChild(this.l6.j);this.acm=new gg("Add Parameter",!1,null,!0);h.appendChild(this.acm.j);this.acm.k("click",this.fa,this);
this.NB=new gg("=== S A V E ===",!1,null,!0);h.appendChild(this.NB.j);this.NB.k("click",this.QF,this);
this.adO=""}hj.prototype=new hx;hj.prototype.uX=function(h,e){return h<450||e<450?new eu(0,0):new eu(150,100)};
hj.prototype.fa=function(h){if(this.aV.length==0)return;var e=this.aV[this.l6.u()],$=this.O_();$[e]=dn.dT[e][0];
this.zh($);this.Ji[e].j.scrollIntoView();this.Ji[e].tI()};hj.prototype.$_=function(h){var e=this.O_();
delete e[h.currentTarget.a9r];this.zh(e)};hj.prototype.QF=function(h){var e=this.O_(),$=this.sT,Z=!0;
for(var c in $)if(JSON.stringify($[c])!=JSON.stringify(e[c]))Z=!1;for(var c in e)if(JSON.stringify($[c])!=JSON.stringify(e[c]))Z=!1;
if(Z)return;var q=new B(D.E.A,!0);q.F=f.S$;q.data={e:o.KX,QB:e};this.f(q);this.sT=e;this.zh(e)};hj.jW=function(h){function e(c){var q=c.toLowerCase();
return c==q}var $=h.split(":").pop();for(var Z=1;Z<$.length-1;Z++){if($[Z]==$[Z].toUpperCase()&&(e($[Z+1])||e($[Z-1]))){$=$.slice(0,Z)+" "+$.slice(Z);
Z++}}return $};hj.prototype.uq=function(h,e){this.sT=h.ZG;this.zh(h.ZG)};hj.prototype.zh=function(h){var e=this.jf,c=0;
D.LK(e);var $=this.Ji={},Z=["tiff","exif","exif:GPS"],q=this.aV=[],E=[];for(var P in dn.dT){var a=hj.jW(P),j=0,L=15,H=null;
if(h[P]==null){q.push(P);E.push(a);continue}for(var G=0;G<Z.length;G++)if(P.startsWith(Z[G]))j=G;if(j!=c){D.Uj(e);
c=j}if(P=="tiff:ImageDescription"||P=="dc:Keywords"){L=18.5;H=3}var _=new a_(a,null,L,H);$[P]=_;var J=h[P];
if(J instanceof Array)J=J[1]==0?"---":J[0]+"/"+J[1];var S=new gg("\u2716",null,e_.get([5,4]));e.appendChild(S.j);
S.k("click",this.$_,this);S.a9r=P;_.T(J);e.appendChild(_.j);D.vV(e);if(P=="exif:GPSLongitude"&&h["exif:GPSLatitude"]){this.adO=hj.WE(h["exif:GPSLatitude"])+","+hj.WE(h["exif:GPSLongitude"]);
var N=new gg("Show on map",!1,null,!0);e.appendChild(N.j);D.vV(e);N.k("click",this.a2m,this)}}this.l6.uK(E);
this.l6.T(0)};hj.prototype.O_=function(){var h=this.Ji,e=dn.dT,$={};for(var Z in e){var c=e[Z][0],q=typeof c;
if(c==null||h[Z]==null)continue;var E=h[Z].u(),P="The value of \""+hj.jW(Z)+"\" must ";if(q=="number"){E=parseFloat(E);
if(isNaN(E)){alert(P+"be a number.");E=c}}else if(c instanceof Array&&c.length==2){if(E.indexOf("/")==-1){alert(P+"be a fraction.");
E=c.slice(0)}else{E=E.split("/").map(parseFloat);if(isNaN(E[0])||isNaN(E[1])){E=c.slice(0)}}}$[Z]=E}return $};
hj.WE=function(h){var e=h.length,$=h.slice(0,e-1).split(",").map(parseFloat),Z=h.slice(e-1),c=$[0]+$[1]/60+$[2]/3600;
if(Z!="N"&&Z!="E")c=-c;return c};hj.prototype.a2m=function(h){window.open("https://maps.google.com?q="+this.adO,"Map")};
function h1(){hx.call(this,[11,5],"gradienteditor");this.Dm=null;this.l4=null;this.kP=null;this.sL=null;
this.T2=!1;this.x9=!1;D.so(this.body,"form");this.md=null;this.Zb=null;this.g3=-1;this.mp=-1;this.xy=0;
this.uZ=this.mq.bind(this);this.Bv=this.i3.bind(this);this.Mt=D.w("canvas","");this.J$=this.Mt.getContext("2d");
this.Mt.setAttribute("style","display:block");this.Ly=null;D.Sz(this.Mt);D.uh(this.Mt,this.NK.bind(this));
this.Rs=new hr([19,3,3],0,100,"%");this.Rs.k(D.E.L,this.Ao,this);this.Rs.parent=this;this.body.appendChild(this.Rs.j);
D.vV(this.body);this.tz=new cZ([12,0]);this.body.appendChild(this.tz.j);this.oB=D.w("div","bordered padded noalign");
this.body.appendChild(this.oB);this.lV=new hr([12,0],0,100,"%");this.lV.parent=this;this.lV.k(D.E.L,this.Ao,this);
this.oB.appendChild(this.lV.j);this.hi=new hr([12,40],0,100,"%");this.hi.parent=this;this.hi.k(D.E.L,this.Ao,this);
this.oB.appendChild(this.hi.j);this.z9=new gg([5,4],!1,null,!0);this.z9.k("click",this.Q4,this);this.oB.appendChild(this.z9.j);
this.body.appendChild(this.Mt);D.vV(this.body);this.aiH=new cZ([13,0]);this.body.appendChild(this.aiH.j);
this.Ds=D.w("div","bordered padded noalign");this.body.appendChild(this.Ds);this.sR=new fs([12,44],[[12,45],[12,46],[12,47]]);
this.sR.k(D.E.L,this.Ao,this);this.Ds.appendChild(this.sR.j);this.we=new fx(!0);this.we.parent=this;
this.we.k(D.E.L,this.Ao,this);this.Ds.appendChild(this.we.j);this.m7=new hr([12,40],0,100,"%");this.m7.parent=this;
this.m7.k(D.E.L,this.Ao,this);this.Ds.appendChild(this.m7.j);this.se=new gg([5,4],!1,null,!0);this.se.k("click",this.YC,this);
this.Ds.appendChild(this.se.j);this.kj=new gg("OK",!0,null,!0);this.kj.k("click",this.nW,this);this.body.appendChild(this.kj.j);
this.k("closebtn",this.Qt,this)}h1.prototype=new hx;h1.prototype.Qt=function(h){if(this.T2)this.sL(this.Dm)};
h1.prototype.B=function(){hx.prototype.B.call(this);this.Rs.B();this.tz.B();this.aiH.B();this.z9.B();
this.se.B();this.lV.B();this.hi.B();this.sR.B();this.m7.B()};h1.prototype.if=function(h,e){this.kP=h};
h1.prototype.uq=function(h,e){this.l4=JSON.parse(JSON.stringify(e.Y));this.Dm=JSON.parse(JSON.stringify(e.Y));
this.md=this.Zb=null;this.sL=e.Nb;this.T2=!1;this.x9=e.ii;this.VS();this.AZ()};h1.prototype.nW=function(h){var e=this.l4;
this.sL(e);this.close()};h1.prototype.Jr=function(h){return h==p.PA||h==p.iC};h1.prototype.WI=function(h,e,$,Z){if(Z.q(p.PA)||Z.q(p.iC)){if(this.Zb)this.Q4();
if(this.md)this.YC()}};h1.prototype.Q4=function(h){var e=this.l4.Trns.v;if(this.Zb==null||e.length==2)return;
e.splice(e.indexOf(this.Zb),1);this.Zb=null;this.VS();this.AZ()};h1.prototype.YC=function(h){var e=this.l4.Clrs.v;
if(this.md==null||e.length==2)return;e.splice(e.indexOf(this.md),1);this.md=null;this.VS();this.AZ()};
h1.prototype.VS=function(){var h=this.Mt,e=this.J$,$=D.M();h.width=Math.floor(410*$);h.height=Math.floor(90*$);
D.pH(h,h.width,h.height);this.Ly=new O(0,0,Math.floor(380*$),Math.floor(32*$));this.Ly.x=Math.floor((this.Mt.width-this.Ly.d)/2);
this.Ly.y=Math.floor((this.Mt.height-this.Ly.v)/2);var Z=this.Ly,c=Z.d,q=Z.v,E=Z.x,P=Z.y,a=new O(0,0,c,q),j=e.getImageData(0,0,c,q),L=new Uint8Array(j.data.buffer);
s.Om(L,c,q,8);var H=s.m(c*q*4);s.Y.Ne(this.l4,H,a,[1/c,0,0,1/q],c/2,q/2,!1,0,this.kP.oV,this.kP.XK);
s.p.Jn("norm",H,Z,L,Z,Z,1);e.clearRect(0,0,h.width,h.height);e.putImageData(j,E,P);var _=this.l4.Trns.v,J=this.l4.Clrs.v,S=s.Y.Fz(J,this.kP.oV,this.kP.XK),N=Math.round(6*D.M()),Y=Math.round(14*D.M()),U=this.Zb?this.Zb.v:null,g=this.md?this.md.v:null;
for(var G=0;G<_.length;G++){var M=_[G].v,C=Math.round(255-255*M.Opct.v.val/100);if((M==U||_[G-1]&&_[G-1].v==U||G==this.mp)&&G!=0){e.fillStyle="#000000";
e.fillRect(E-3+c*(_[G-1].v.Lctn.v+(M.Lctn.v-_[G-1].v.Lctn.v)*M.Mdpn.v/100)/4096,P-6-2,6,6)}if(M==U){e.fillStyle="#ffffff";
e.fillRect(E-N+c*(M.Lctn.v/4096)-2,P-2-Y-2,2*N+4,Y+4)}e.fillStyle="rgb("+C+","+C+","+C+")";e.fillRect(E-N+c*(M.Lctn.v/4096),P-2-Y,2*N,Y)}for(var G=0;
G<J.length;G++){var y=J[G].v,i=S[G];if((y==g||J[G-1]&&J[G-1].v==g||G==this.g3)&&G!=0){e.fillStyle="#000000";
e.fillRect(E-3+c*(J[G-1].v.Lctn.v+(y.Lctn.v-J[G-1].v.Lctn.v)*y.Mdpn.v/100)/4096,P+q+2,6,6)}if(y==g){e.fillStyle="#ffffff";
e.fillRect(E-N+c*(y.Lctn.v/4096)-2,P+q+2-2,2*N+4,Y+4)}e.fillStyle="rgb("+Math.round(i.h)+", "+Math.round(i.l)+","+Math.round(i.O)+")";
e.fillRect(E-N+c*(y.Lctn.v/4096),P+q+2,2*N,Y)}if(this.x9){this.sL(this.l4);this.T2=!0}};h1.prototype.AZ=function(){this.Rs.T(Math.round(100*this.l4.Intr.v/4096));
var h=this.l4.Trns.v,e=this.l4.Clrs.v,$=this.Zb!=null,Z=this.mp!=-1;this.lV.NA($);this.hi.NA($||Z);this.z9.NA($);
if($){this.oB.setAttribute("style","");var c=this.Zb.v;this.hi.T(Math.round(100*c.Lctn.v/4096));this.lV.T(c.Opct.v.val)}if(Z)this.hi.T(h[this.mp].v.Mdpn.v);
var $=this.md!=null,Z=this.g3!=-1;this.sR.NA($);this.we.NA($);this.m7.NA($||Z);this.se.NA($);if($){this.Ds.setAttribute("style","");
var q=this.md.v;this.m7.T(Math.round(100*q.Lctn.v/4096));var E=q.Type.v.Clry;this.sR.T(["FrgC","BckC","UsrS"].indexOf(E));
if(E=="FrgC")this.we.Dt(this.kP.oV);if(E=="BckC")this.we.Dt(this.kP.XK);if(E=="UsrS")this.we.T(q.Clr.v)}if(Z)this.m7.T(e[this.g3].v.Mdpn.v)};
h1.prototype.Ao=function(h){var e=Math.round(4096*this.Rs.u()/100);this.l4.Intr.v=e;var $=this.l4.Trns.v,Z=this.l4.Clrs.v;
if(this.Zb!=null){var c=this.Zb.v;c.Lctn.v=Math.round(4096*(this.hi.u()/100));c.Opct.v.val=this.lV.u()}if(this.md!=null){var q=this.md.v;
q.Lctn.v=Math.round(4096*(this.m7.u()/100));if(h.target==this.we)this.sR.T(2);var E=this.sR.u();q.Type.v.Clry=["FrgC","BckC","UsrS"][E];
if(E==2)q.Clr={t:"Objc",v:this.we.u()};else if(q.Clr)delete q.Clr}if(this.mp!=-1)$[this.mp].v.Mdpn.v=this.hi.u();
if(this.g3!=-1)Z[this.g3].v.Mdpn.v=this.m7.u();this.VS()};h1.prototype.NK=function(h){var e=D.q6(h,this.Mt),$=(e.x*D.M()-this.Ly.x)/this.Ly.d,Z=(e.y*D.M()-this.Ly.y)/this.Ly.v,c=this.l4.Trns.v,q=this.l4.Clrs.v,E=null,P=null,a=-1,j=-1;
if(Z<1)for(var G=0;G<c.length;G++){var L=c[G].v;if(Math.abs(L.Lctn.v/4096-$)<.02)E=c[G];if(G>0)if(Math.abs((c[G-1].v.Lctn.v+(L.Lctn.v-c[G-1].v.Lctn.v)*L.Mdpn.v/100)/4096-$)<.01)a=G}if(Z>0)for(var G=0;
G<q.length;G++){var H=q[G].v;if(Math.abs(H.Lctn.v/4096-$)<.02)P=q[G];if(G>0)if(Math.abs((q[G-1].v.Lctn.v+(H.Lctn.v-q[G-1].v.Lctn.v)*H.Mdpn.v/100)/4096-$)<.01)j=G}if(P==null&&E==null&&a==-1&&j==-1){if(Z<0){var L={t:"Objc",v:{classID:"TrnS",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}};
L.v.Lctn.v=Math.round($*4096);c.push(L);c.sort(this.hk);E=L}if(Z>1){var q=this.l4.Clrs.v,_=s.Y.Fz(q,this.kP.oV,this.kP.XK),J=s.Y.uc(this.l4,_,$),H={t:"Objc",v:{classID:"Clrt",Clr:{t:"Objc",v:s.Y.lp({h:J&255,l:J>>8&255,O:J>>16&255})},Type:{t:"enum",v:{Clry:"UsrS"}},Lctn:{t:"long",v:0},Mdpn:{t:"long",v:50}}};
H.v.Lctn.v=Math.round($*4096);q.push(H);q.sort(this.hk);P=H}}if(P!=null)j=-1;if(E!=null)a=-1;if(P!=null||E!=null||a>-1||j>-1){this.Zb=E;
this.md=P;this.mp=a;this.g3=j;this.AZ();this.VS();D._s(window,this.uZ);D.A4(window,this.Bv)}};h1.prototype.mq=function(h){var e=D.q6(h,this.Mt),$=D.M()*(e.x-this.Ly.x)/this.Ly.d,Z=D.M()*(e.y-this.Ly.y)/this.Ly.v;
$=Math.max(0,Math.min(1,$));var c=this.l4.Trns.v,q=this.l4.Clrs.v;if(this.Zb!=null){var E=this.Zb.v;
E.Lctn.v=Math.round(4096*$);var P=c.indexOf(this.Zb);if(P!=-1&&Z<-1&&c.length>2)c.splice(P,1);if(P==-1&&Z>-1)c.push(this.Zb);
c.sort(this.hk)}if(this.md!=null){var a=this.md.v;a.Lctn.v=Math.round(4096*$);var j=q.indexOf(this.md);
if(j!=-1&&Z>1.5&&q.length>2)q.splice(j,1);if(j==-1&&Z<1.5)q.push(this.md);q.sort(this.hk)}if(this.mp>-1){var E=c[this.mp].v;
E.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*($*4096-c[this.mp-1].v.Lctn.v)/(E.Lctn.v-c[this.mp-1].v.Lctn.v))))}if(this.g3>-1){var a=q[this.g3].v;
a.Mdpn.v=Math.max(5,Math.min(95,Math.round(100*($*4096-q[this.g3-1].v.Lctn.v)/(a.Lctn.v-q[this.g3-1].v.Lctn.v))))}if(this.Zb!=null||this.md!=null||this.mp>-1||this.g3>-1){this.AZ();
this.VS()}};h1.prototype.i3=function(h){D.xR(window,this.uZ);D.oT(window,this.Bv);if(Date.now()-this.xy<300){if(this.g3!=-1||this.mp!=-1){var e=(this.g3!=-1?this.l4.Clrs.v[this.g3]:this.l4.Trns.v[this.mp]).v;
e.Mdpn.v=50;this.AZ();this.VS()}else if(this.md!=null)this.we.aeF()}this.xy=Date.now()};h1.prototype.hk=function(h,e){return h.v.Lctn.v-e.v.Lctn.v};
function eV(){hx.call(this,[11,10],"isize");this.jf=D.w("div","form");this.jf.setAttribute("style","width:20em");
this.body.appendChild(this.jf);this.Hq=new aY(!0,!0);this.jf.appendChild(this.Hq.j);this.Zw=new cw("Resample");
this.Zw.T(!0);this.jf.appendChild(this.Zw.j);this.Zw.k(D.E.L,this.anf,this);this.Lx=new fs([12,14,1],[[12,14,2],[12,14,3],"Bicubic Sharper"]);
this.Lx.T(1);this.jf.appendChild(this.Lx.j);this.VB=new gg("OK",!0,null,!0);this.VB.k("click",this.nW,this);
this.body.appendChild(this.VB.j)}eV.prototype=new hx;eV.prototype.oc=function(h,e){return h!=null};eV.prototype.Mm=function(){return!0};
eV.prototype.anf=function(h){var e=this.Zw.u(),$=this.Hq,Z=this.Lx;if(e)Z.pw();else Z.WJ();if(e)$.aga();
else $.ajh()};eV.prototype.B=function(){hx.prototype.B.call(this);this.Lx.B();this.Hq.B()};eV.prototype.nW=function(h){this.close();
var e=this.Hq.u(),$=e.x,Z=e.y,c=this.Lx.u();if(!this.Zw.u())c=null;var q=new B(D.E.Kz,!0);q.data=f.u4.Eu($,Z,this.Hq.Uf(),c);
this.f(q)};eV.prototype.uq=function(h,e){this.Hq.T(new eu(h.d,h.v),h.Ay)};function bU(){hx.call(this,"Import RAW","importraw");
var h=D.w("div","flexrow"),e=D.w("div");this.body.appendChild(h);this.body.appendChild(e);var $=D.w("div","form");
$.setAttribute("style","width:16em");h.appendChild($);var Z=D.w("div","form");Z.setAttribute("style","width:14em");
h.appendChild(Z);this.FN=null;this.aio=null;this.Xr=null;this.a3c=[];var c=[];for(var G=0;G<bU.zQ.length;
G++)c.push(bU.zQ[G]+" Bits");this.RG=[new aY(!0,!0),new cp([12,72],["1","3","4"]),new cp([12,34],c),new cp("Byte Order",["12-34","34-12"]),new fs("Guesses",[])];
for(var G=0;G<this.RG.length;G++){var q=this.RG[G];if(G!=0)q.T(0);q.k(D.E.L,G==4?this.aO:this.dn,this);
var E=G==0?$:G==4?e:Z;E.appendChild(q.j)}this.p$=D.w("canvas");this.s0=this.p$.getContext("2d");this.body.appendChild(this.p$);
this.VB=new gg("OK",!0,null,!0);this.VB.k("click",this.nW,this);this.body.appendChild(this.VB.j)}bU.prototype=new hx;
bU.prototype.B=function(){hx.prototype.B.call(this);var h=this.RG;for(var G=0;G<h.length;G++)h[G].B()};
bU.prototype.nW=function(h){this.close();var e=this.RG[0].u(),$=cE._E(this.aio,[{data:this.Xr,Au:new O(0,0,e.x,e.y)}]),Z=new B(D.E.P,!0);
Z.data={e:!0?D.U.YF:D.U.nr,q4:$};this.f(Z)};bU.zQ=[8,16];bU.prototype.uq=function(h,e){this.FN=new Uint8Array(e.Yb);
this.aio=e.mD;var $=this.FN.length,Z=[1,3,4],c=0,q=0,E=1,P=1,a=this.a3c=[];for(var j=0;j<3;j++){for(var L=0;
L<2;L++){var H=bU.zQ[L],_=Z[j],J=_*H,S=Math.round($*8/J);if(S!=$*8/J)continue;for(var N=0;N<=4e3;N++)for(var Y=0;
Y<=4e3;Y++)if(N*Y==S){var U=0;if(N==Y)U+=64;if(Math.round(N/100)==N/100&&Math.round(Y/100)==Y/100)U+=32;
if(Math.round(N/10)==N/10&&Math.round(Y/10)==Y/10)U+=16;if(Math.round(N/2)==N/2&&Math.round(Y/2)==Y/2)U+=8;
a.push([N,Y,_,H,U])}}}var g=function(i,Q){if(Q[4]!=i[4])return Q[4]-i[4];var m=Math.max(i[0],i[1])/Math.min(i[0],i[1]),n=Math.max(Q[0],Q[1])/Math.min(Q[0],Q[1]);
if(m!=n)return m-n;return Q[0]-i[0]};a.sort(g);var M=this.RG,C=[];for(var G=0;G<a.length;G++){var y=a[G];
C.push(y[0]+" x "+y[1]+", "+y[2]+"c, "+y[3]+"-bit")}M[4].uK(C);M[4].T(0);this.aO(null)};bU.prototype.aO=function(h){var e=this.RG,$=this.a3c[this.RG[4].u()];
e[0].T(new eu($[0],$[1]),72);e[1].T([1,3,4].indexOf($[2]));e[2].T(bU.zQ.indexOf($[3]));this.dn()};bU.prototype.dn=function(h){var e=this.RG,$=e[0].u(),Z=$.x,c=$.y,q=bU.zQ[e[2].u()],E=this.FN;
if(q==16&&e[3].u()==1){E=E.slice(0);for(var G=0;G<E.length;G+=2){var P=E[G];E[G]=E[G+1];E[G+1]=P}}var a=this.Xr=UPNG.toRGBA8.decodeImage(E,Z,c,{tabs:{},ctype:[0,2,6][e[1].u()],depth:q}),j=this.p$,L=this.s0,H=[a,new O(0,0,Z,c)];
s.gt(H);for(var G=0;G<H.length;G+=2)if(H[G+1].v<300){a=H[G];Z=H[G+1].d;c=H[G+1].v;break}j.width=Z;j.height=c;
D.pH(j,Z,c);var _=new ImageData(new Uint8ClampedArray(a.buffer),Z,c);L.putImageData(_,0,0)};function at(h,e,$){ev.call(this);
this.j=D.w("div","");this.ie=h;this.Uc=null;this.DU=e==null?!1:e;this.UM=null;this.CM=$;this.ui=[];this.kh=[];
this.ZV=[];this.fI=[];this.vW=0;this.Uc=this.aow(at.fI[h]);this.Py();this.Mf=null;this.ahj;this.a2O}at.prototype=new ev;
at.prototype.yj=function(h,e,$,Z,c){this.Mf=c;this.ahj=JSON.parse(JSON.stringify(this.UM));if(this.Uc.lagl)this.a2O=this.Uc.lagl.u()};
at.prototype.oX=function(h,e,$,Z,c){var q=this.Mf,E=this.ie,P=this.ahj;if(q==null)return;var a=(c.x-q.x)/h.z.S,j=(c.y-q.y)/h.z.S;
if(E=="GrFl"){var L=JSON.parse(JSON.stringify(P.Ofst.v));L.Hrzn.v.val+=a*.5;L.Vrtc.v.val+=j*.5;this.Uc.Ofst.T(L,!0)}if(E=="patternFill"){var L=JSON.parse(JSON.stringify(P.phase.v));
L.Hrzn.v+=a;L.Vrtc.v+=j;this.Uc.phase.T(L,!0)}if(E=="DrSh"||E=="IrSh"||E=="ChFX"){var H=P.Dstn.v.val,_=this.a2O.w0*Math.PI/180,J=-Math.cos(_)*H+a,S=Math.sin(_)*H+j;
this.Uc.Dstn.T(Math.sqrt(J*J+S*S),!0);this.Uc.lagl.T(Math.atan2(S,-J)*180/Math.PI,null,!0)}};at.prototype.f0=function(h,e,$,Z,c){this.Mf=null};
at.prototype.a9G=function(){for(var G=0;G<this.fI.length;G++){D.ma(this.fI[G],"selected");if(this.ZV[G]instanceof cw)this.ZV[G].T(!1)}};
at.prototype.akY=function(h){var e=this.aeo.bind(this);for(var G=0;G<this.ZV.length;G++){var $=D.w("div","listitem");
this.fI.push($);if(G>0)$.textContent="\u2003";$.appendChild(this.ZV[G].j);if(c3.OE.indexOf(this.ie)!=-1){var Z=new gg("+");
Z._j();Z.j.style.float="right";$.appendChild(Z.j);var c=new gg("\u2B0D");c._j();c.j.style.float="right";
c.j.style["margin-right"]="2px";$.appendChild(c.j)}$.addEventListener("click",e,!1);h.appendChild($)}};
at.bG=function(h,e){var $=e.getBoundingClientRect();return(h.clientY-$.top)/$.height};at.prototype.aeo=function(h){var e=h.target.tagName.toLowerCase();
if(e=="input"){return}if(e=="button"){var $=new B(D.E.A,!0),Z=h.target.textContent=="+",c=Z?0:at.bG(h,h.target)<.5?-1:1;
if(Z)$.data={e:"st_dupsingle",$:this.parent.data.$,Hk:this.CM};else $.data={e:"st_movsingle",$:this.parent.data.$,Hk:this.CM,amR:c};
$.F=f.aQ;$.Q1=!0;this.f($);$=new B("redrawall",!0);$.data={amR:c};this.f($);return}D.pt(h);this.pM();
this.vW=this.fI.indexOf(h.currentTarget);this.f(new B("showme"))};at.prototype.pM=function(){if(this.Uc.enab&&this.Uc.enab.u()==!1)this.tT({l8:"enab",G:!0})};
at.prototype.a6E=function(){var h=this.fI[this.vW];if(h)D.so(h,"selected");return this.kh[this.vW]};
at.prototype.aow=function(h){var e={};for(var G=0;G<h.length;G++){var $=h[G],Z=null;if($=="----")Z={j:D.w("hr")};
if($=="\n")Z={j:D.w("br")};if($=="blOptions")Z=new cZ([14,10]);if($=="brst")Z=new gv([12,72],["R","G","B"]);
if($=="knko")Z=new fs("Knockout",[[13,1,0],"Shallow","Deep"]);if($=="enab")Z=new cw(c3.names[c3.order.indexOf(this.ie)]);
if($=="lrMd"||$=="Md")Z=new fs([12,19,0],eN.sF,!1,eN.$j);if($=="Opct")Z=new hN([12,0],0,100,"%");if($=="iOpa")Z=new hN([12,26],0,100,"%");
if($=="blIf")Z=new el;if($=="ShdN")Z=new hN([12,68],0,100,"%");if($=="lagl"||$=="Angl")Z=new fj([12,15]);
if($=="uglg")Z=new cw([12,27]);if($=="Dstn")Z=new hN([12,28],0,200,"px");if($=="Ckmt")Z=new hN([12,29],0,100,"%");
if($=="blur")Z=new hN([12,14,0],0,200,"px");if($=="TrnS"||$=="MpgS")Z=new ie([12,21]);if($=="Nose")Z=new hN([12,30],0,100,"%");
if($=="layerConceals")Z=new cw([12,31]);if($=="AntA"||$=="antialiasGloss")Z=new cw("Anti-alias");if($=="GlwT")Z=new fs([12,32],c3._L.names);
if($=="glwS")Z=new fs([12,70],c3._L.a5H);if($=="Inpr")Z=new hN([12,12],1,100,"%");if($=="bvlS")Z=new fs([12,22],c3.m4.style);
if($=="bvlT")Z=new fs([12,32],c3.m4.abi);if($=="bvlD")Z=new fs(null,c3.m4.dir);if($=="srgR")Z=new hN([12,34],0,1e3,"%");
if($=="Sftn")Z=new hN([12,35],0,20,"px");if($=="Lald")Z=e.lagl;if($=="hglM"||$=="sdwM")Z=new fs([12,36],eN.sF,!1,eN.$j);
if($=="hglC"||$=="sdwC")Z=new fx;if($=="hglO"||$=="sdwO")Z=new hN([12,0],0,100,"%");if($=="Invr"||$=="InvT")Z=new cw([4,11]);
if($=="Sz")Z=new hN([12,14,0],1,200,"px");if($=="Styl")Z=new fs([12,40],c3.stroke.names);if($=="PntT")Z=new fs([12,66],c3.stroke.a5c);
if($=="Clr")Z=new fx(!0);if($=="Grad"){Z=new fh(!0,[12,37],!0);Z.T(JSON.parse(c3.zn.HR).v)}if($=="Rvrs")Z=new cw([12,23,0]);
if($=="Dthr")Z=new cw("Dither");if($=="Type")Z=new fs([12,22],c3.Y.names.slice(0,this.ie=="FrFX"?6:5));
if($=="Ptrn")Z=new fp([12,62]);if($=="Scl")Z=new hN([12,38],10,500,"%",0,!0);if($=="Algn")Z=new cw([12,39]);
if($=="Ofst")Z=new fq(!0);if($=="phase")Z=new fq(!1);if($=="useShape")Z=new cw([12,21]);if($=="useTexture")Z=new cw([12,67]);
if($=="textureDepth")Z=new hN([12,34],-300,300,"%");var c=$=="----"||$=="\n"?$+G:$;if(Z!=null)e[c]=Z}return e};
at.prototype.adI=function(h){var e=this.kh[this.vW];for(var G=0;G<h.length;G++){var $=this.Uc[h[G]];
if($&&e.contains($.j))e.removeChild($.j)}};at.prototype.a94=function(h){var e=this.kh[this.vW];for(var G=0;
G<h.length;G++){var $=this.Uc[h[G]];if($&&!e.contains($.j))e.appendChild($.j)}};at.prototype.if=function(h,e){if(this.Uc==null)return;
var $=e==iM.uG;if(this.Uc.Grad){this.Uc.Grad.DM(h.oV,h.XK);if($||e==iM.JD||e==iM.xB)this.Uc.Grad.K2(h.aI)}if(this.Uc.Ptrn){if($||e==iM.Ub)this.Uc.Ptrn.K2(h.Zl)}if(this.Uc.TrnS){if($||e==iM.X6)this.Uc.TrnS.K2(h.Ce)}if(this.Uc.MpgS){if($||e==iM.X6)this.Uc.MpgS.K2(h.Ce)}};
at.prototype.B=function(){for(var G=0;G<this.ui.length;G++)this.ui[G].B();for(var h in this.Uc)if(this.Uc[h]instanceof ev)this.Uc[h].B()};
at.prototype.Py=function(){for(var h in this.Uc){var e=this.Uc[h];e.parent=this;if(e instanceof ev)e.k(D.E.L,this.aad,this);
if(this.kh.length==0||h=="useShape"||h=="useTexture"){var $=new cZ(e.Jc()),Z=D.w("div","bordered padded");
if(this.DU==!1){Z.appendChild($.j);Z.appendChild(D.w("hr",""))}this.ui.push($);this.kh.push(Z);this.ZV.push(e)}else this.kh[this.kh.length-1].appendChild(e.j)}};
at.prototype.update=function(h,e){if(this.Uc==null)return;this.UM=JSON.parse(JSON.stringify(e));for(var $ in e){if("Opct iOpa hglO sdwO Dstn Ckmt blur Nose Scl Sz Inpr Angl srgR Sftn textureDepth ShdN".split(" ").indexOf($)!=-1)this.Uc[$].T(e[$].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($)!=-1){this.Uc[$].T(e[$].v,h)}if(["Md","hglM","sdwM"].indexOf($)!=-1)this.Uc[$].T(eN.ie.indexOf(e[$].v.BlnM));
if($=="lrMd"){var Z=(e.vG?[[15,10,27]]:[]).concat(eN.sF),c=(e.vG?[1]:[]).concat(eN.$j);this.Uc[$].uK(Z,c);
this.Uc[$].T(e[$].v)}if($=="lagl"){var q=e.uglg&&e.uglg.v?h.ct():e.lagl.v.val;this.Uc[$].T(q)}if($=="Lald"){var q=e.uglg&&e.uglg.v?h.sX():e.Lald.v.val;
this.Uc[$].T(null,q)}if($=="Type")this.Uc[$].T(c3.Y.types.indexOf(e.Type.v.GrdT));if($=="Styl")this.Uc[$].T(c3.stroke.types.indexOf(e.Styl.v.FStl));
if($=="PntT"){var E=c3.stroke.YS.indexOf(e.PntT.v.FrFl);this.Uc[$].T(E);if(!this.DU){this.adI(c3.O7.concat(c3.bv.concat(c3.Tk)));
this.a94([c3.O7,c3.bv,c3.Tk][E])}}if($=="GlwT")this.Uc[$].T(c3._L.types.indexOf(e.GlwT.v.BETE));if($=="glwS")this.Uc[$].T(c3._L.zA.indexOf(e.glwS.v.IGSr));
if($=="bvlS")this.Uc[$].T(c3.m4.types.indexOf(e.bvlS.v.BESl));if($=="bvlT")this.Uc[$].T(c3.m4.JW.indexOf(e.bvlT.v.bvlT));
if($=="bvlD")this.Uc[$].T(["In","Out"].indexOf(e.bvlD.v.BESs))}};at.prototype.aad=function(h){for(var e in this.Uc){if(this.Uc[e]!=h.target)continue;
var $=null,Z=!1;if("Opct iOpa hglO Nose Scl sdwO Inpr srgR textureDepth ShdN".split(" ").indexOf(e)!=-1)$={type:"#Prc",val:h.target.u()};
if(["Dstn","Ckmt","blur","Sz","Sftn"].indexOf(e)!=-1)$={type:"#Pxl",val:h.target.u()};if(["Angl","lagl"].indexOf(e)!=-1)$={type:"#Ang",val:h.target.u().w0};
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(e)!=-1)$=h.target.u();
if(["Md","hglM","sdwM"].indexOf(e)!=-1)$={BlnM:eN.ie[h.target.u()]};if(e=="uglg"){$=h.target.u();Z=!0}if(e=="PntT"){$={FrFl:c3.stroke.YS[h.target.u()]};
Z=!0}if(e=="Lald")$={type:"#Ang",val:h.target.u().alt};if(e=="Type")$={GrdT:c3.Y.types[h.target.u()]};
if(e=="Styl")$={FStl:c3.stroke.types[h.target.u()]};if(e=="GlwT")$={BETE:c3._L.types[h.target.u()]};
if(e=="glwS")$={IGSr:c3._L.zA[h.target.u()]};if(e=="bvlS")$={BESl:c3.m4.types[h.target.u()]};if(e=="bvlT")$={bvlT:c3.m4.JW[h.target.u()]};
if(e=="bvlD")$={BESs:["In","Out"][h.target.u()]};this.tT({l8:e,G:$});if(Z){if(this.DU)this.update(null,this.UM);
else{var c=this.parent,q=c.q4,E=this.CM,P=q.t[c.data.$].add.lmfx[c3.qV[E[0]]].v[E[1]].v;this.update(q,P)}}}};
at.prototype.tT=function(h){if(this.UM&&this.UM[h.l8])this.UM[h.l8].v=h.G;if(this.DU){this.f(new B(D.E.L))}else{h.e="changeprop";
h.$=this.parent.data.$;h.NS=this.CM;var e=new B(D.E.A,!0);e.data=h;e.F=f.aQ;e.Q1=!0;this.f(e);this.f(new B("afterchange",!0))}};
at.prototype.u=function(){return JSON.parse(JSON.stringify(this.UM))};at.fI={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(c3.O7),GrFl:["enab","Md","Opct"].concat(c3.bv),patternFill:["enab","Md","Opct"].concat(c3.Tk),ChFX:"enab Md Clr Opct lagl Dstn blur MpgS Invr".split(" "),FrFX:["enab","Sz","Styl","\n","Md","Opct","PntT","\n"].concat(c3.O7.concat(c3.bv.concat(c3.Tk)))};
function bY(){hx.call(this,[11,6],"layerstyle");this.akV=-1;this.data={};this.q4=null;this.D0=null;this.da=[];
this.QP=[];D.so(this.body,"flexrow");this.UK=D.w("div","bordered");this.UK.setAttribute("style","min-width:13em;");
this.body.appendChild(this.UK);this.fo=D.w("div","");this.fo.setAttribute("style","width:25em; padding-left: 1em;");
this.body.appendChild(this.fo);this.e9=D.w("div","form");this.e9.setAttribute("style","padding-left: 1em; width:7em;");
this.body.appendChild(this.e9);this.kj=new gg("OK",!0,null,!0);this.kj.k("click",this.nW,this);this.e9.appendChild(this.kj.j);
this.D7=new gg([12,87],!0,null,!0);this.D7.k("click",this.adi,this);this.e9.appendChild(this.D7.j);this.Ai=new e0;
this.Ai.parent=this;this.Ai.k(D.E.L,this.a1A,this);this.e9.appendChild(this.Ai.j);this.k("closebtn",this.Qt,this);
this.k("redrawall",this.VI,this)}bY.prototype=new hx;bY.prototype.Mm=function(){return!0};bY.prototype.KV=function(){return!0};
bY.prototype.yj=function(h,e,$,Z,c){var q=this.Df();if(q)q.yj(h,e,$,Z,c)};bY.prototype.oX=function(h,e,$,Z,c){var q=this.Df();
if(q)q.oX(h,e,$,Z,c)};bY.prototype.f0=function(h,e,$,Z,c){var q=this.Df();if(q)q.f0(h,e,$,Z,c)};bY.prototype.Df=function(h){if(h==null)h=this.data.index;
return h==null?null:h==0?this.da[0]:this.QP[h[0]][h[1]]};bY.prototype.a1A=function(h){var e=this.Ai.u();
this.tT({e:"setstl",G:e.R_});this.VI(null)};bY.prototype.adi=function(h){var e=this.q4,$=this.data.$;
if($==null)$=e.C[0];var Z=this.q4.t[$],c=hn.Ej(Z),q=new B(D.E.P,!0);q.data={e:D.U.Ov,HZ:"add",Av:iM.z8,Ep:[JSON.parse(JSON.stringify(c))]};
this.f(q)};bY.prototype.amW=function(h){this.data.index=h.currentTarget.CM;this.ET(h.currentTarget.CM)};
bY.prototype.VI=function(h){this.uq(this.q4,this.data)};bY.prototype.ET=function(h,e){D.LK(this.fo);
for(var G=0;G<this.da.length;G++)this.da[G].a9G();var $=this.Df(h);this.fo.appendChild($.a6E());if(e)$.pM();
var Z=this.q4;if(Z){var c=Z.t[this.data.$];this.da[0].update(Z,bn.h3.BU(Z,c));var q=c.add.lmfx;if(q==null)return;
for(var G=0;G<c3.order.length;G++){var E=q[c3.qV[G]].v;for(var P=0;P<E.length;P++)this.QP[G][P].update(Z,E[P].v)}}if(e)$.pM()};
bY.prototype.B=function(){hx.prototype.B.call(this);this.D7.B();this.Ai.B();for(var G=0;G<this.da.length;
G++)this.da[G].B()};bY.prototype.uq=function(h,e){var $=e.$==null;this.data.$=e.$;this.data.index=e.index;
e=this.data;this.q4=h;if($)e.$=h.C.length==0?h.t.length-1:h.C[0];D.LK(this.UK);var Z=h.t[e.$].add.lmfx;
this.Qh();this.da=[new at("bops",!1,0)];this.QP=[];for(var G=0;G<c3.order.length;G++){this.QP.push([]);
var c=Z==null?[]:Z[c3.qV[G]].v;for(var q=0;q<c.length;q++){var E=new at(c3.order[G],!1,[G,q]);this.da.push(E);
this.QP[G].push(E)}if(c.length==0){var E=new at(c3.order[G],!1,[G,0]);this.da.push(E);this.QP[G].push(E)}}this.B();
this.bA(this.D0,iM.uG);for(var G=0;G<this.da.length;G++){this.da[G].parent=this;this.da[G].akY(this.UK);
this.da[G].k("showme",this.amW,this)}if(e.index==null||e.index==0||!$&&Z[c3.qV[e.index[0]]].v.length==0){this.ET(0)}else this.ET(e.index,$);
this.k("afterchange",this.Qh,this)};bY.prototype.Qh=function(h){var e=this.q4,$=this.data.$;if($==null)$=e.C[0];
var Z=this.q4.t[$],c=hn.Ej(Z);this.Ai.T(c,e.add.Patt?e.add.Patt:[],e.ct(),e.sX())};bY.prototype.if=function(h,e){this.D0=h;
this.bA(h,e);if(e==iM.z8||e==iM.uG){this.Ai.K2([h.IP,h.Zl])}if(e==iM.sK){}};bY.prototype.bA=function(h,e){for(var G=0;
G<this.da.length;G++)this.da[G].if(h,e)};bY.prototype.Qt=function(h){this.tT({e:"cancel"})};bY.prototype.nW=function(h){this.tT({e:"confirm"});
this.close()};bY.prototype.tT=function(h){h.$=this.data.$;var e=new B(D.E.A,!0);e.data=h;e.F=f.aQ;e.Q1=!0;
this.f(e);this.Qh()};bY.z3=function(h){var e=[{name:[14,10],lv:!0}];for(var G=0;G<c3.names.length;G++)e.push({name:c3.names[G]});
if(h){e[e.length-1].lv=!0;e.push({name:"Scale Effects",Q:function($){return{Q:$!=null&&$.C.length!=0&&$.t[$.C[0]].ll()}}});
e.push({name:["VAR0 VAR1",[12,49],[9,1]],Q:function($){return{Q:$!=null&&$.C.length!=0&&$.t[$.C[0]].add.lmfx!=null}}})}return e};
bY.mX=function(h){var e=[{c:D.E.P,g:{e:D.U.tr,yq:"layerstyle"}}];for(var G=0;G<c3.names.length;G++)e.push({c:D.E.P,g:{e:D.U.tr,yq:"layerstyle",index:[G,0]}});
if(h){e.push({c:D.E.P,g:{e:D.U.tr,yq:"scaleeffects",rs:100,TB:{c:D.E.A,F:f.aQ,g:{e:"scaleeffects"}}}});
var $={classID:"Mk",null:bw.NQ("Lyr"),Usng:{t:"obj ",v:[{t:"prop",v:{classID:"Prpr",keyID:"Lefx"}},{t:"Enmr",v:{classID:"Lyr",typeID:"Ordn",enum:"Trgt"}}]}};
e.push({c:D.E.Kz,g:{Lw:"make",TJ:$}})}return e};bY.Ph=function(h){var e=[];if(h)e.push({name:[6,48,0,0],tg:!0},{name:[6,48,0,1],tg:!0},{name:[6,48,0,2],tg:!0,lv:!0});
for(var $ in es.names)e.push({name:es.names[$],lv:es.Dk.indexOf($)!=-1,tg:w[$]!=null});return e};bY.EF=function(h){var e=[];
if(h){e.push({c:D.E.A,F:f.lO,g:{e:"newfill",wx:0}});for(var G=1;G<3;G++)e.push({c:D.E.Kz,g:f.vA.GC(G)})}for(var $ in es.names){var Z=dA.X3($);
if(Z==null)Z={};for(var c in es.Ri)if(es.Ri[c]==$)Z.classID=c;var q={Lw:"make",TJ:{classID:"Mk",null:bw.NQ("AdjL"),Usng:{t:"Objc",v:{classID:"AdjL",Type:{t:"Objc",v:Z}}}}};
e.push({c:D.E.Kz,g:q})}return e};function dl(){hx.call(this,"Merge Channels","mergechannels");this.y$=null;
var h=D.w("div","form");this.body.appendChild(h);this.RG=[];for(var G=0;G<3;G++){var e=new fs(es.rt[G],[]);
this.RG.push(e);h.appendChild(e.j);D.vV(h)}this.kj=new gg("OK",!0,null,!0);this.kj.k("click",this.nW,this);
h.appendChild(this.kj.j)}dl.prototype=new hx;dl.prototype.B=function(){hx.prototype.B.call(this);for(var G=0;
G<3;G++)this.RG[G].B()};dl.prototype.uq=function(h,e,$,Z){this.y$=$;var c=[];for(var G=0;G<$.length;
G++)c.push($[G].name);for(var G=0;G<3;G++){var q=this.RG[G];q.uK(c);q.T(Math.min(G,$.length-1))}};dl.prototype.nW=function(h){var e=this.y$,$=e[0],Z=new B(D.E.Kz,!0);
Z.data=c9.R$($.d,$.v,$.Ay,"Merged Document","Wht");this.f(Z);var c=[];for(var G=0;G<3;G++)c.push(e[this.RG[G].u()].v2());
var $=e[e.length-1],q=$.t[0],E=q.buffer;for(var G=0;G<E.length;G+=4){E[G]=c[0][G];E[G+1]=c[1][G];E[G+2]=c[2][G]}q.s();
$.s();this.close()};function ci(){hx.call(this,[1,10],"script");var h=D.w("div","form");h.setAttribute("style","width:44em");
this.body.appendChild(h);this.D0=null;this.Ke=[];this.ux=[];this.a6g;var e=this.NB=new gg([1,2],!1,null,!0);
e.k("click",this.QF,this);h.appendChild(e.j);var $=new gg("JS Reference",!1,null,!0);$.k("click",this.abr,this);
h.appendChild($.j);h.appendChild(new cZ("Demos:").j);this.aaS=[];var Z=ci.CJ;for(var G=0;G<Z.length;
G++){var c=new gg(Z[G].S_,!1,null,!0);this.aaS.push(c);h.appendChild(c.j);c.k("click",this.aop,this)}this.TU=D.w("textarea");
this.TU.setAttribute("rows",16);this.TU.setAttribute("style","display:block;tab-size:4; font-family:monospace;width:100%;");
h.appendChild(this.TU);var q=new gg("Run",!0,null,!0);q.k("click",this.nW,this);h.appendChild(q.j);this.aal=D.w("div");
h.appendChild(this.aal)}ci.prototype=new hx;ci.prototype.B=function(){this.NB.B()};ci.prototype.QF=function(){var h=this.a6g;
if(h==null)h="script.jsx";var e=new B(D.E.P,!0);e.data={e:D.U.tr,yq:"namewindow",rs:h.slice(0,h.length-4),Z8:this.aeN.bind(this)};
this.f(e)};ci.prototype.aeN=function(h){var e=this.TU.value,$=k.Ft(e),Z=new B(D.E.P,!0);Z.data={e:D.U.tS,Yb:$.buffer,A3:h+".jsx",abY:!0};
this.f(Z)};ci.prototype.a0u=function(h){var G=this.Ke.indexOf(h.target),e=this.a6g=this.ux[G],$=this.D0.P$.M7[e],Z=new Uint8Array($),c=k.rM(Z,0,Z.length);
this.TU.value=c};ci.prototype.uq=function(h,e,$){this.TU.value=ci.CJ[0].D_;this.wt()};ci.prototype.wt=function(){var h=this.D0.P$,e=this.aal;
D.LK(e);this.Ke=[];this.ux=[];e.textContent="Saved scripts: ";for(var $ in h.M7){if($.endsWith(".jsx")){var Z=new gg($,!1,null,!0);
this.Ke.push(Z);this.ux.push($);Z.k("click",this.a0u,this);e.appendChild(Z.j)}}};ci.prototype.if=function(h,e){this.D0=h;
if(e==iM.oI)this.wt()};ci.prototype.abr=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.yI,link:"https://www.adobe.com/content/dam/acom/en/devnet/photoshop/pdfs/photoshop-cc-javascript-ref-2019.pdf"};
this.f(e)};ci.prototype.nW=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.le,Yd:this.TU.value};this.f(e)};
ci.prototype.aop=function(h){var e=this.aaS.indexOf(h.currentTarget);this.TU.value=ci.CJ[e].D_};ci.CJ=[{S_:"Hello",D_:"\nalert(\"Hello Photopea!\");\n"},{S_:"Process Layers",D_:"\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}"},{S_:"Clone Layers",D_:"\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 f3(){hx.call(this,[11,7],"newproject");this.data=null;this.y$=null;var h=D.w("div","flexrow");
this.v0=h;this.body.appendChild(h);var e=D.w("div","form");this.jf=e;h.appendChild(e);this.Mr=new a_([12,48]);
e.appendChild(this.Mr.j);D.vV(e);this.Hq=new aY(!0);this.Hq.T(new eu(1280,720),72);this.Hq.k(D.E.L,this.Dd,this);
e.appendChild(this.Hq.j);this.Ye=new fs([12,46],[[13,1,8],[13,1,9],[12,46]]);e.appendChild(this.Ye.j);
e.appendChild(D.w("hr"));this.VB=new gg([12,49],!0,null,!0);this.VB.k("click",this.nW,this);e.appendChild(this.VB.j);
var $=f3.FN,Z=[];for(var G=0;G<$.length;G++)Z.push($[G].name);this.qN=new cp(null,Z);this.qN.k(D.E.L,this.eg,this);
e.appendChild(this.qN.j);this.qN.j.style["margin-top"]="1em";this.eH=new dd(!0);this.eH.k(D.E.L,this.alY,this);
e.appendChild(this.eH.j);this.eg();this.AK=new fo;this.AK.parent=this;this.AK.j.setAttribute("style","margin-left:1em");
this.AK.k("tempready",this.adN,this)}f3.prototype=new hx;f3.prototype.if=function(h,e){this.AK.if(h)};
f3.prototype.uX=function(h,e){return new eu(Math.max(0,Math.min(70,(h-690)/2)),h>e?Math.max(0,Math.min(50,(e-400)/2)):0)};
f3.prototype.Sy=function(h,e){this.jf.setAttribute("style","width:"+Math.min(h,338)+"px");this.eH.j.style.height=e-260+"px";
var $=this.AK.j,Z=$.parentNode;if(h<500){if(Z!=null)this.v0.removeChild($)}else{if(Z==null)this.v0.appendChild($)}this.AK.Sy(h-360,e-35)};
f3.prototype.Dd=function(){this.AK.T(this.Hq.u())};f3.prototype.alY=function(h){var e=this.eH.u(),$=f3.FN[this.qN.u()].eV[e],Z=$[4];
if(Z==0)Z=72;var c=$[1],q=$[2],E=["px","%","mm","in"].indexOf($[3]),P=[1,1,25.4/Z,1/Z][E];c/=P;q/=P;
this.Hq.T(new eu(Math.round(c),Math.round(q)),Z);this.Hq.a4j(E);this.eH.Eg(e);this.Dd()};f3.prototype.eg=function(h){var e=f3.FN[this.qN.u()].eV,$=[],Z=[],c=Math.round(106*D.M()),q=Math.round(106*D.M()),E=0;
for(var G=0;G<e.length;G++)E=Math.max(E,e[G][1],e[G][2]);for(var G=0;G<e.length;G++){var P=e[G],a=P[1]+" x "+P[2]+" "+P[3];
if(P[3]=="in")a=(P[1]*25.4).toFixed(0)+" x "+(P[2]*25.4).toFixed(0)+" mm";if(P[3]=="mm")a=(P[1]/25.4).toFixed(1)+" x "+(P[2]/25.4).toFixed(1)+" in";
if(P[4])a=a+" @ "+P[4]+" ppi";Z.push(a);$.push(f3.TD(P,c,q,E))}this.eH.Go($,Z,c,q)};f3.TD=function(h,e,$,Z){var c=D.w("canvas",""),q=c.getContext("2d");
c.width=e;c.height=$;var E=Math.round(e/8),P=Math.floor(11*D.M()),a=h[1],j=h[2];q.fillStyle="#000000";
q.font=Math.round(P*.9)+"px \"Open Sans\", Sans-Serif";var L=a+" x "+j+" "+h[3],H=q.measureText(L);q.fillText(L,Math.round((e-H.width)/2),$-Math.round(E/2));
if(h[0]!=null){q.font="bold "+P+"px \"Open Sans\", Sans-Serif";var L=h[0],H=q.measureText(L);q.fillText(L,Math.round((e-H.width)/2),$-Math.round(E/2)-Math.round(P*1.3))}$-=Math.round(2.5*P);
var _=Math.min((e-E)/a,($-E)/j);_*=.5+.5*(Math.max(a,j)/Z);var J=(e-a*_)/2,S=($-j*_)/2;q.strokeRect(Math.round(J)+.5,Math.round(S)+.5,Math.round(a*_),Math.round(j*_));
return c.toDataURL()};f3.prototype.B=function(){hx.prototype.B.call(this);this.Hq.B();this.Mr.B();this.Ye.B();
this.VB.B();this.Mr.T(e_.get([11,7]));this.qN.B();this.AK.B()};f3.prototype.nW=function(h){var e=this.Hq.u(),$=e.x,Z=e.y;
this.close();var c=new B(D.E.Kz,!0);c.data=c9.R$($,Z,this.Hq.Uf(),this.Mr.u(),["Wht","Trns","BckC"][this.Ye.u()]);
this.f(c);this.yF()};f3.prototype.adN=function(h){var e=h.data.q4;e.Ay=this.Hq.Uf();var $=new B(D.E.P,!0);
$.data={e:D.U.YF,q4:e};this.f($);this.close();this.yF()};f3.prototype.yF=function(){var h=this.y$[this.y$.length-1],e=this.data.ahF;
if(e)eY.lr(function(){var $=new XMLHttpRequest,Z="https://www.googleapis.com/drive/v3/files?"+eY.ZP();
$.open("POST",Z,!0);$.setRequestHeader("Content-Type","application/json");$.addEventListener("load",function(c){var q=JSON.parse(c.target.response);
h._S={file:q,X5:"psd"};alert(h.name+" created in Google Drive")});$.send(JSON.stringify({name:h.name,abL:[e]}))})};
f3.prototype.uq=function(h,e,$,Z){this.y$=$;if(h!=null&&h.N!=null){var c=new O(0,0,h.d,h.v).jx(h.N.rect);
this.Hq.T(new eu(c.d,c.v))}this.data=e;this.Dd();this.Mr.tI();if(D.kO())co.alR(this.a4Q.bind(this))};
f3.prototype.a4Q=function(h){if(h=="granted")co.E4(this,this.a6$.bind(this))};f3.prototype.a6$=function(h,e){this.Hq.T(new eu(e.d,e.v))};
f3.FN=[{name:"Social",eV:[["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],eV:[["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],eV:[["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],eV:[["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],eV:[["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],eV:[["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",eV:[[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 am(h,e,$){hx.call(this,e,"sel_"+h);this.e=h;var Z=D.w("div","form");this.body.appendChild(Z);
this.Mr=new hr(e,0,255,null,0,!1,!0);Z.appendChild(this.Mr.j);this.Mr.T(1);var c=D.w("span");c.textContent=$;
Z.appendChild(c);D.vV(Z);this.akr=new cw("Apply at canvas bounds");if(h!="border")Z.appendChild(this.akr.j);
this.kj=new gg("OK",!0,null,!0);this.kj.k("click",this.nW,this);Z.appendChild(this.kj.j)}am.prototype=new hx;
am.prototype.oc=function(h,e){if(h==null)return;if(h.N==null)alert("No selection!");return h.N!=null};
am.prototype.nW=function(h){var e=new B(D.E.Kz,!0);e.data=f.LV.afB(this.e,this.Mr.u(),this.akr.u());
e.Q1=!0;this.f(e);this.close()};am.prototype.B=function(){hx.prototype.B.call(this);if(this.Mr)this.Mr.B()};
am.prototype.uq=function(h,e){};function a9(h,e,$,Z,c){hx.call(this,$,e);this.x9=c;this.FN=null;this.jf=D.w("div","form");
this.body.appendChild(this.jf);this.Mr=h==0?new a_($):new hN($,0,500,Z,1);this.Mr.k(D.E.L,this.Tv,this);
this.jf.appendChild(this.Mr.j);this.kj=new gg("OK",!0,null,!0);this.kj.k("click",this.nW,this);this.jf.appendChild(this.kj.j);
this.k("closebtn",this.Qt,this)}a9.prototype=new hx;a9.prototype.Mm=function(){return!0};a9.prototype.Tv=function(h){var e=this.Mr.u();
if(this.x9)this.Kt(e)};a9.prototype.Qt=function(h){if(this.x9)this.Kt("cancel")};a9.prototype.nW=function(h){if(this.x9)this.Kt("confirm");
else this.Kt(this.Mr.u());this.close()};a9.prototype.Kt=function(h){if(this.FN.Z8)this.FN.Z8(h);else if(this.FN.TB){var e=this.FN.TB,$=new B(e.c,!0);
$.F=e.F;$.data=e.g;$.data.G=h;$.Q1=!0;this.f($)}};a9.prototype.B=function(){hx.prototype.B.call(this);
if(this.Mr)this.Mr.B()};a9.prototype.uq=function(h,e){this.FN=e;this.Mr.T(e.rs);this.Mr.tI();this.Tv(null)};
function ey(){hx.call(this,[1,5],"open_from_url");this.gf=null;var h=D.w("div","form");this.body.appendChild(h);
this.am=new a_("URL",null,22);h.appendChild(this.am.j);D.vV(h);this.Oh=new cp([21,0],[[21,2],[21,1]]);
h.appendChild(this.Oh.j);this.VB=new gg("OK",!0,null,!0);this.VB.k("click",this.nW,this);h.appendChild(this.VB.j)}ey.prototype=new hx;
ey.prototype.B=function(){hx.prototype.B.call(this);this.Oh.B()};ey.prototype.uq=function(h,e,$){this.am.tI();
this.gf=null;if(h&&$.indexOf(h)!=-1)this.gf=$.indexOf(h)};ey.prototype.nW=function(h){var e=new B(D.E.P,!0),$=this.am.u();
e.data={e:D.U.fu,Av:{url:$,vf:!0,gf:this.Oh.u()==1?this.gf:null}};this.f(e);this.close()};function fg(){hx.call(this,[12,79],"preferences");
this.D0=null;var h=D.w("div","form");this.body.appendChild(h);this.fI=[new cw([8,2]),new cw([8,4]),new fs([12,80,3],[[12,93,3],[12,80,4]]),new hN([12,80,5],1,100,null,2),new fs(null,s.IQ.Xp),new fs([12,80,6],s.IQ.Xp)];
for(var G=0;G<this.fI.length;G++){var e=this.fI[G];h.appendChild(e.j);if(G!=3)D.vV(h);e.k(D.E.L,this._F,this)}}fg.prototype=new hx;
fg.prototype.B=function(){hx.prototype.B.call(this);for(var G=0;G<this.fI.length;G++)this.fI[G].B()};
fg.prototype.uq=function(h,e,$){};fg.prototype.if=function(h,e){this.D0=h;this.fI[0].T(h.cz._D);this.fI[1].T(h.cz.Ui);
this.fI[2].T(h.cz.pf);this.fI[3].T(h.cz.FQ);this.fI[4].T(h.cz.Fb);this.fI[5].T(h.cz.k1)};fg.prototype._F=function(h){var hi=this.fI,e=JSON.parse(JSON.stringify(this.D0.cz));
e._D=hi[0].u();e.Ui=hi[1].u();e.pf=hi[2].u();e.FQ=hi[3].u();e.Fb=hi[4].u();e.k1=hi[5].u();if(e.Fb!=4)e.FQ=Math.round(e.FQ);
var $=new B(D.E.P,!0);$.data={e:D.U.Ov,Av:iM.Q_,El:e};this.f($)};function eE(){hx.call(this,[11,8],"saveforweb");
this.a9u="";this.k("closebtn",function(){this.XS.eJ()},this);this.oS=new eu(512,512);this.q4=null;this.Oz=null;
this.ajN=null;this.D0=null;D.so(this.body,"flexrow");var h=D.w("div"),e=D.w("div");this.body.appendChild(h);
this.body.appendChild(e);this.Ds=D.w("div","imgcont");h.appendChild(this.Ds);this.XS=new cz;this.XS.Sy(this.oS.x,this.oS.y);
this.wd=D.w("span");h.appendChild(this.wd);this.jf=D.w("div","form cell");this.jf.setAttribute("style","width:15em; padding-left:1em;");
e.appendChild(this.jf);this.H7=new fs([12,50],cE.Lf());this.jf.appendChild(this.H7.j);this.H7.k(D.E.L,this.$T,this);
this.Hq=new aY(!0,!0,!1,!0);this.Hq.k(D.E.L,this.$T,this);this.jf.appendChild(this.Hq.j);this.e4=new ba;
this.e4.k(D.E.L,this.$T,this);this.jf.appendChild(this.e4.j);this.eh=new gg([1,2],!0,null,!0);this.eh.k("click",this.nW,this);
this.jf.appendChild(this.eh.j)}eE.prototype=new hx;eE.prototype.oc=function(h,e){return h!=null};eE.prototype.B=function(){hx.prototype.B.call(this);
this.Hq.B();this.H7.B();this.e4.B();this.eh.B()};eE.prototype.nW=function(h){var e=this.q4.name.split(".")[0],$=cE.Lf()[this.H7.u()],Z=this.Oz,c=e+"."+$.toLowerCase(),q=this.q4,E=q.E1;
if(E.length!=0&&($=="JPG"||$=="PNG"||$=="GIF")&&this.e4.u().pop()){var P="<!DOCTYPE html>\n<html>\n<style>div {position:absolute;}</style>\n<head></head>\n<body>\n",a=[],j={},L=new O(0,0,q.d,q.v),H=q.v2();
for(var G=0;G<E.length;G++)a.push(f.Al.Hb(E,G));a.reverse();var _=s.rect.KR([0,0,q.d,q.v],a);for(var G=0;
G<_.length;G++){var J=_[G],S=new O(J[0],J[1],J[2]-J[0],J[3]-J[1]),N=J.length==5?E[J[4]].v:null,Y=s.m(S.X()*4);
s.hX(H,L,Y,S);var U="img/img"+(G+1)+"."+$.toLowerCase();j[U]=new Uint8Array(cE.fy($).pT([[Y.buffer,0]],S.d,S.v,this.e4.u()));
P+="<div style=\"background-image:url('"+U+"'); left:"+S.x+"px; top:"+S.y+"px; width:"+S.d+"px; height:"+S.v+"px\">";
if(N&&N.url.v!="")P+="\n\t<a href=\""+N.url.v+"\" target=\""+N.null.v+"\" style=\"display:block;width:100%;height:100%;\"></a>\n";
P+="</div>\n"}P+="</body>\n</html>\n";var g=s.m(Math.round(P.length*1.5)),M=k.Gn(P,g,0);j["index.html"]=g.slice(0,M);
Z=UZIP.encode(j);c=e+".zip"}if(q.$c){var C=new XMLHttpRequest;C.open("GET","/papi/img/update.php?act=1&id="+q.$c+"&rnd="+Math.random());
C.send()}var y=new B(D.E.P,!0);y.data={e:D.U.Dz,data:Z,name:c};this.f(y);this.XS.eJ();this.close()};
eE.prototype.uq=function(h,e){if(e.gw!=null)this.H7.T(e.gw);this.q4=h;var $=h.d+","+h.v;if($!=this.a9u){this.a9u=$;
this.Hq.T(new eu(h.d,h.v),h.Ay)}this.e4.aeg();this.$T(null,!0)};eE.prototype.uX=function(h,e){return new eu(Math.max(0,Math.min(150,(h-770)/2)),Math.max(0,Math.min(150,(e-590)/2)))};
eE.prototype.Sy=function(h,e){this.EN=h;this.CD=e;this.oS.x=Math.min(512,h-26-214);this.oS.y=Math.min(512,e-45);
if(this.q4==null)return;var $=this.Hq.u(),h=$.x,e=$.y,Z=cE.Lf()[this.H7.u()],c=cE.fy(Z),H="<span style=\"width:",_="display:inline-block; text-align:right;\">";
if(c._Q){var q=h,E=e,P;if(Z=="PDF"||c.zr){q=this.oS.x;E=this.oS.y}else{q=Math.min(h+20,this.oS.x);E=Math.min(e+20,this.oS.y)}this.Ds.firstChild.setAttribute("style","display:block; width:"+q+"px; height:"+E+"px;")}else{if(c.zr){q=this.oS.x;
E=this.oS.y}else{var a=this.ajN,j=a[0].Au,q=j.d,E=j.v;this.XS.Sy(Math.max(50,Math.min(q/D.M(),this.oS.x)),Math.max(50,Math.min(E/D.M(),this.oS.y)))}}var L=this.Oz.byteLength,J=Z+":"+H+64+"px;"+_+eE.vp(L)+"</span>";
if(this.oS.x>200)J+=H+90+"px; opacity:"+.5+";"+_+L.toLocaleString()+" B</span>";this.wd.innerHTML=J};
eE.vp=function(h){var e=0;while(h>>>e+10!=0)e+=10;var $=(h/(1<<e)).toFixed(1),Z=["B","KB","MB","GB"][Math.floor(e/10)];
return $+" "+Z};eE.prototype.if=function(h,e){this.D0=h};eE.prototype.$T=function(h,e){var $=this.q4,Z=this.Hq.u(),c=Z.x,q=Z.y,E=this.H7.u(),P=cE.Lf()[E],a=cE.i0($)[0].length,j=["GIF","PNG","WEBP"].indexOf(P)!=-1&&a>1,N="";
if(j&&e&&(a>4&&c*q>1024*1024||c*q*a>800*800*50)){var L=1;while(Math.max(c>>>L,q>>>L)>800)L++;var H=window.confirm("Your animation is large ("+c+" x "+q+" px). Press \"OK\" to scale it to "+(100>>>L)+"%. Press \"Cancel\" to keep the size.");
if(H){this.Hq.T(new eu(c>>>L,q>>>L),null,!0);c=c>>>L;q=q>>>L}}var _=$.add.artd,J=_==null||_.Cnt.v==1;
this.e4.ze(P,j,$.E1.length!=0,J);var S=this.e4.u();this.Oz=cE.JS($,P,c,q,S,this.D0);if(this.Oz==null){this.q4=null;
return}D.LK(this.Ds);this.XS.eJ();var Y=cE.fy(P);if(Y.zr){this.Ds.innerHTML="<div></div>";N+="width:0px"}else if(Y._Q){var U=c,g=q,M;
if(P=="PDF"){M=URL.createObjectURL(new Blob([this.Oz],{type:"application/pdf"}))}else{M=URL.createObjectURL(new Blob([this.Oz],{type:"image/svg+xml"}))}this.Ds.innerHTML="<iframe src=\""+M+"\"></iframe>"}else{var C=this.ajN=Y.Cj(this.Oz),y=C[0].Au,U=y.d,g=y.v;
this.XS.T(C,C.length>1?S[S.length-3]:0);this.Ds.appendChild(this.XS.j);N="background: rgba(0,0,0,0);"}this.Ds.setAttribute("style","display:block; background-size:"+16/D.M()+"px;"+N);
this.Sy(this.EN,this.CD)};function aR(){hx.call(this,[11,13],"shortcuts");var h=this.v0=D.w("div","scrollable");
h.setAttribute("style","min-width:700px; max-height:500px; padding:1.5em");this.body.appendChild(h);
this.io()}aR.prototype=new hx;aR.prototype.B=function(){hx.prototype.B.call(this);this.io()};aR.prototype.io=function(){var h="<div style=\"line-height:1.4em; column-count:3; column-gap:3em; column-rule-width:1px;\" class=\"\">",e="",$=p,Z=$.tm,c=$.ai,q=$.ys;
e+="<h2 style=\"margin-top:0;\">Main Menu</h2>";e+=h;e+=this.$a([[0,0],"---",[1,0],[Z,$.No],[1,2],[Z,$.mu],[1,3],[c,Z,$.mu],[1,8],[q,c,Z,$.mu],[0,1],"---",[2,0],[c,Z,$.HT],[2,1],[Z,$.HT],[5,0],[Z,$.Af],[5,1],[Z,$.ok],[5,2],[Z,$.hK],[2,2],"Delete",[2,3],[q,$.iC],[10,16],[q,Z,$.V],[12,79],[Z,$.el],[3],"---",[4,1],[Z,$.Hs],[4,2],[Z,$.bQ],[4,5],[Z,$.oK],[4,11],[Z,$.J1],[0,3],"---",[6,0],[Z,$.eC],[6,6,0],[q,Z,$.dP],[6,9],[Z,$.dP],[6,10],[Z,$.E],[0,5],"---",[7,0],[Z,$.U],[7,1],[Z,$.ob],[7,2],[c,Z,$.J1],[0,7],"---",[8,0],[Z,$.MY],[8,1],[Z,$.Lj],[8,3],[Z,$.WT],[8,2],[Z,$.Ih],[8,4],[Z,$.N4],[11,13],"?"]);
e+="</div>";e+="<h2 style=\"margin-top:1.5em;\">Navigation</h2>";e+=h;e+=this.$a(["Vertical scroll","Wheel","Horizontal scroll",[Z,"Wheel"],"Zooming",[q,"Wheel"]]);
e+="</div>";e+="<h2 style=\"margin-top:1.5em;\">Quick tools (press to enable, release to disable)</h2>";
e+=h;e+=this.$a([[10,11],[Z],[10,7],"Space",[10,17],[Z,$.P2]]);e+="</div>";e+="<h2 style=\"margin-top:1.5em;\">Tools</h2>";
e+=h;var E=aR.Nh,P=[];for(var G=0;G<E.length;G+=3)if(E[G+1])P.push(E[G],E[G+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","}"]);
e+=this.$a(P);e+="</div>";this.v0.innerHTML=e};aR.prototype.$a=function(h){var e="",$=!0;for(var G=0;
G<h.length;G+=2){var Z=h[G],c=p.Js(h[G+1]);if(c==null){$=!1;continue}var q=D.Nu(e_.get(Z));if(c=="---"){if(!$)e+="<br/>";
e+="<div style=\"font-weight:bold; border-bottom: 1px solid;\">"+q+"</div>"}else e+="<div>"+q+" <span style=\"float:right; font-weight:bold;\">"+c+"</span> </div>";
$=!1}return e};aR.Nh=[[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 dk(){hx.call(this,[8,11,1],"soptions");this.fD=null;var h=D.w("div","form");h.style.width="20em";
this.body.appendChild(h);this.CO={Nm:[12,48],url:"URL",null:[12,71]};this.fI={};for(var e in this.CO){var $=new a_(this.CO[e],null,15);
this.fI[e]=$;h.appendChild($.j)}var Z=new gg("OK",!0,null,!0);Z.k("click",this.nW,this);h.appendChild(Z.j)}dk.prototype=new hx;
dk.prototype.uq=function(h,e,$){var Z=e.G;this.fD=JSON.stringify(Z);for(var c in this.CO){if(Z[c])this.fI[c].T(Z[c].v)}};
dk.prototype.nW=function(h){var e=JSON.parse(this.fD);for(var $ in this.CO){var Z=this.fI[$].u();e[$]={t:"TEXT",v:Z}}var c=new B(D.E.A,!0);
c.F=f.Ou;c.data=e;c.Q1=!0;this.f(c);this.close()};function iw(){hx.call(this,[2,3],"fill");this.D0=null;
this.gT=null;var h=D.w("div","form padded");h.style.width="22em";this.body.appendChild(h);this.vY="FrgC BckC Clr Blck Gry Wht contentAware".split(" ");
this.Wv=new fs([2,3],[[12,45],[12,46],[12,47],[13,1,10],[13,1,7],[13,1,8],[6,48,0,3]]);this.Wv.k(D.E.L,this.aeD,this);
h.appendChild(this.Wv.j);this.Ds=D.w("span");h.appendChild(this.Ds);this.AJ=new fx;this.AJ.parent=this;
this.AJ.Dt(0);this.la=new fs([12,19,0],eN.sF,!1,eN.$j);h.appendChild(this.la.j);this.Zg=new hN([12,0],0,100,"%",0,!1);
this.Zg.T(100);h.appendChild(this.Zg.j);this.VB=new gg("OK",!0,null,!0);this.VB.k("click",this.nW,this);
this.body.appendChild(this.VB.j)}iw.prototype=new hx;iw.prototype.oc=function(h,e){return h!=null};iw.prototype.Mm=function(){return!0};
iw.prototype.aeD=function(){var h=this.Wv.u()==2,e=this.AJ.j,$=this.Ds;if(h)$.appendChild(e);else if($.contains(e))$.removeChild(e)};
iw.prototype.B=function(){hx.prototype.B.call(this);this.Wv.B();this.la.B();this.Zg.B()};iw.prototype.nW=function(h){if(!this.gT.Jh())return;
var e=new B(D.E.Kz,!0),$=this.Wv.u();e.data=f.rz.GC(this.vY[$],eN.Pn[this.la.u()],this.Zg.u()/100,this.AJ.u());
this.close();this.f(e)};iw.prototype.uq=function(h,e){this.gT=h};iw.prototype.if=function(h,e){this.D0=h};
function fn(){hx.call(this,[14,9],"stroke");this.D0=null;this.jf=D.w("div","form");this.jf.setAttribute("style","width:24em");
this.body.appendChild(this.jf);this.gn=new at("FrFX",!0);this.gn.parent=this;var h=["Sz","Styl","Md","Opct"].concat(c3.O7);
for(var G=0;G<h.length;G++){var e=this.gn.Uc[h[G]].j;this.jf.appendChild(e)}this.BM=!1;this.VB=new gg("OK",!0,null,!0);
this.VB.k("click",this.nW,this);this.body.appendChild(this.VB.j)}fn.prototype=new hx;fn.prototype.oc=function(h,e){return h!=null};
fn.prototype.Mm=function(){return!0};fn.prototype.B=function(){hx.prototype.B.call(this);this.gn.B()};
fn.prototype.nW=function(h){var e=new B(D.E.A,!0);e.F=f.d7;e.data={e:"stroke",a4i:this.gn.u()};this.close();
this.f(e)};fn.prototype.uq=function(h,e){if(!this.BM){var $=c3.kD[c3.order.indexOf("FrFX")];$=JSON.parse($);
this.gn.update(h,$);this.BM=!0}var $=this.gn.u(),Z=this.D0.oV;$.Clr.v=s.Y.lp({h:Z>>16&255,l:Z>>8&255,O:Z&255});
this.gn.update(h,$)};fn.prototype.if=function(h,e){this.D0=h};function dI(){hx.call(this,[11,9],"textwarp");
this.fI=new aZ;this.fI.k(D.E.L,this.Ta,this);this.fI.parent=this;this.jf=D.w("div","form");this.jf.setAttribute("style","width:20em");
this.body.appendChild(this.jf);this.jf.appendChild(this.fI.Zf.j);this.jf.appendChild(this.fI.ns.j);this.jf.appendChild(this.fI.AH.j);
this.jf.appendChild(this.fI.MH.j);this.jf.appendChild(this.fI.eD.j);this.VB=new gg("OK",!0,null,!0);
this.VB.k("click",this.nW,this);this.jf.appendChild(this.VB.j);this.k("closebtn",this.Qt,this)}dI.prototype=new hx;
dI.prototype.Mm=function(){return!0};dI.prototype.B=function(){hx.prototype.B.call(this);this.fI.B()};
dI.prototype.Ta=function(h){var e=this.fI.u();this.Kt({e:"warp",FO:e})};dI.prototype.Kt=function(h){var e=new B(D.E.A,!0);
e.F=f.kE;e.data=h;e.Q1=!0;this.f(e)};dI.prototype.Qt=function(h){this.Kt({e:"warpCancel"})};dI.prototype.nW=function(h){this.Kt({e:"warpConfirm"});
this.close()};dI.prototype.uq=function(h,e){var $=h.t[h.C[0]];this.fI.T($.add.TySh.$F)};function fi(){hx.call(this,"Raw Photopea","rawpea");
this.Xr=null;this.ZQ=null;this.UF=null;this.mZ=0;this.nT=null;this.Du=null;this.a1a=500;this.acf=500;
this.k("closebtn",this.df,this);D.so(this.body,"flexrow");var h=D.w("div"),e=D.w("div"),Z="<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>";
e.setAttribute("style","padding-left: 1em");this.body.appendChild(h);this.body.appendChild(e);this.p$=D.w("canvas");
h.appendChild(this.p$);this.J4=new bZ(225);this.J4.Yn(4);e.appendChild(this.J4.j);this.jf=D.w("div");
this.jf.setAttribute("style","width:18em;");e.appendChild(this.jf);this.abB=new cZ("Hi",!0);this.jf.appendChild(this.abB.j);
this.MC=[new dm("Temperature",2e3,13e3),new dm("Tint",-150,150),new dm([4,3],-4,4,null,!0),new dm([12,3,0],-100,100)];
for(var G=0;G<this.MC.length;G++){var $=this.MC[G];$.T(0);$.k(D.E.L,this.rv,this);this.jf.appendChild($.j);
if(G==1)this.jf.appendChild(D.w("hr"))}this.VB=new gg([1,0],!0,null,!0);this.VB.k("click",this.nW,this);
this.jf.appendChild(this.VB.j);this.c$=new gg(Z+" JPG",!0,null,!0);this.c$.k("click",this.anQ,this);
this.jf.appendChild(this.c$.j);this.c$.j.style.marginTop="6px"}fi.prototype=new hx;fi.prototype.uX=function(){return new eu(0,0)};
fi.prototype.Sy=function(h,e){this.a1a=h-274;this.acf=e-32;if(this.Xr)this.$y()};fi.prototype.B=function(){hx.prototype.B.call(this);
this.VB.B();for(var G=0;G<this.MC.length;G++)this.MC[G].B()};fi.prototype.anQ=function(h){var e=this.Xr,$=this.ZQ,Z=s.m(e.width*e.height*4);
s.Ut(Z,4294967295);s.raw.r6($,Z,e,this.w1());var c=cE.fy("JPG").pT([[Z.buffer]],$._i,$.bF,[85]),q=new B(D.E.P,!0);
q.data={e:D.U.Dz,data:c,name:"photo.jpg"};this.f(q)};fi.prototype.nW=function(h){var e=this.Xr,$=this.ZQ,Z=s.m(e.width*e.height*4);
s.Ut(Z,4294967295);s.raw.r6($,Z,e,this.w1());var c=dn.Vm(e),e={Au:new O(0,0,$._i,$.bF),data:Z.buffer,ZG:c},q=cE._E("Raw Photo",[e]),E=new B(D.E.P,!0);
E.data={e:D.U.YF,q4:q};this.f(E);this.df();this.close()};fi.prototype.df=function(){this.Xr=null;this.ZQ=null;
this.nT=null;this.Du=null};fi.prototype.uq=function(h,e,$,Z){this.Xr=e.bj;this.ZQ=s.raw.a11(this.Xr);
var c=this.ZQ;this.abB.T(c._i+" x "+c.bF+", "+(c._i*c.bF/1e6).toFixed(1)+" MPx");var q=s.raw.a7p(e.bj);
this.UF=iH.e$(q);this.MC[0].T(this.UF.L7);this.MC[1].T(this.UF.zx);for(var G=2;G<this.MC.length;G++)this.MC[G].T(0);
this.$y()};fi.prototype.if=function(h,e){this.J4.Dt(iG.zO[h.SW]["--text-color"])};fi.prototype.$y=function(){var h=this.ZQ,e=h._i,$=h.bF,Z=1;
while(e/Z>this.a1a*D.M()||$/Z>this.acf*D.M())Z++;var c=Math.floor(e/Z),q=Math.floor($/Z);this.nT={Hl:new Float32Array(c*q*3),_i:c,bF:q};
var E=this.p$.getContext("2d");this.Du=E.createImageData(c,q);s.Ut(this.Du.data,4294967295);var P=1/(Z*Z);
for(var a=0;a<q;a++)for(var j=0;j<c;j++){var L=0,H=0,_=0,J=(j+1)*Z,S=(a+1)*Z;for(var N=a*Z;N<S;N++)for(var Y=j*Z;
Y<J;Y++){var U=(N*e+Y)*3;L+=this.ZQ.Hl[U];H+=this.ZQ.Hl[U+1];_+=this.ZQ.Hl[U+2]}var g=(a*c+j)*3;this.nT.Hl[g]=L*P;
this.nT.Hl[g+1]=H*P;this.nT.Hl[g+2]=_*P}this.rv()};fi.prototype.rv=function(){var h=this.Xr,e=this.nT._i,$=this.nT.bF,Z=e*$,c=this.p$,q=c.getContext("2d");
c.width=e;c.height=$;D.pH(c,e,$);s.raw.r6(this.nT,new Uint8Array(this.Du.data.buffer),h,this.w1());q.putImageData(this.Du,0,0);
var E=s.CN(this.Du.data);for(var G=0;G<4;G++)for(var P=1;P<256;P++)if(E[G][P]==0)E[G][P]=E[G][P-1];for(var G=0;
G<4;G++)for(var P=1;P<256;P++)if(E[G][P]==0)E[G][P]=E[G][P-1];this.J4.T(E)};fi.prototype.w1=function(){var h=[];
for(var G=0;G<this.MC.length;G++)h.push(this.MC[G].u());return h};function aM(){hx.call(this,[11,11],"vbitmap");
this.FN=null;this.a6=null;this.yx=null;this.uU=null;this.j_=null;this.QH=this.VS.bind(this);this.jf=D.w("div","form hbar");
this.body.appendChild(this.jf);this.hI=new hN([12,82],2,50,null);this.hI.k(D.E.L,this.VS,this);this.jf.appendChild(this.hI.j);
this.RG="";this.jL=new cw([12,81]);this.jL.k(D.E.L,this.VS,this);this.jf.appendChild(this.jL.j);this.ut=new cw("Segmentize");
this.ut.k(D.E.L,this.VS,this);this.jf.appendChild(this.ut.j);this.VB=new gg("OK",!1,null,!0);this.VB.k("click",this.nW,this);
this.jf.appendChild(this.VB.j);var h=D.w("div","flexrow"),e=16;this.body.appendChild(h);this.l9=new cz;
this.l9.k("viewchange",this.y5,this);this.BA=D.w("canvas");this.BA.setAttribute("style","margin-left: 1px; cursor:grab;");
this.J$=this.BA.getContext("2d");var $=s.m(16*16*4);s.Om($,e,e,8);this.gi=s.scale.lm($,e,e);this.l9.e8(this.BA);
h.appendChild(this.l9.j);h.appendChild(this.BA)}aM.prototype=new hx;aM.prototype.uX=function(){return new eu(0,0)};
aM.prototype.Mm=function(){return!0};aM.prototype.Sy=function(h,e){e=e-26-30;h=Math.floor((h-28)/2);
D.VR(this.BA,h,e);this.l9.Sy(h,e)};aM.prototype.WI=function(h,e,$,Z){this.l9.WI(Z)};aM.prototype.B=function(){hx.prototype.B.call(this);
this.hI.B();this.jL.B();this.ut.B();this.VB.B()};aM.prototype.uq=function(h,e){this.j_=h;var $=h.t[h.C[0]],Z=s.G0.bX($.buffer.buffer,$.rect.d,$.rect.v).ad8,c=Z/(($.rect.d-2)*($.rect.v-2));
this.jL.T(c<.75);this.ut.T(!1);var q=$.rect.clone();q.x=q.y=0;this.FN={Au:q,data:$.buffer.buffer.slice(0)};
this.a6=null;this.l9.T([this.FN]);this.hI.T(20);setTimeout(this.QH,20)};aM.prototype.VS=function(){var h=!0,e=Date.now(),$=this.FN,Z=this.jL.u(),c=this.ut.u(),q=Z||c,E=Z+","+c;
if(q&&(this.a6==null||this.RG!=E)){this.RG=E;console.log("recomputing");var P=new Uint8Array($.data.slice(0)),a=15,j=35,L=$.Au.d,H=$.Au.v;
if(Z){dA.PN(P,P,L,H,a,s.zP.MJ,[j],2)}if(h){console.log("denoise",Date.now()-e);e=Date.now()}if(c){var _=s.G0.Mk(P,L,H),J=_.el,S=new Uint8Array(J*4);
for(var G=0;G<J;G++){var N=G*4,Y=G*6,U=1/_.sQ[Y+5];S[N]=_.sQ[Y]*U;S[N+1]=_.sQ[Y+1]*U;S[N+2]=_.sQ[Y+2]*U}for(var G=0;
G<P.length;G+=4){var g=_.MW[G>>>2]*4;P[G]=S[g];P[G+1]=S[g+1];P[G+2]=S[g+2]}}this.a6={Au:$.Au.clone(),data:P.buffer};
if(h){console.log("segm",Date.now()-e);e=Date.now()}}if(q)$=this.a6;var P=new Uint8Array($.data),L=$.Au.d,H=$.Au.v;
for(var G=0;G<P.length;G+=4){if(P[G+3]<10)P[G]=P[G+1]=P[G+2]=P[G+3]=0}var M=s.G0.aln(P,L,H,this.hI.u(),q?.1:2e-4);
if(h){console.log("doclipart",Date.now()-e);e=Date.now()}var C=M.MW.slice(0);for(var G=0;G<C.length;
G++)C[G]++;var y=new Uint8Array((L+2)*(H+2));s.T7(C,new O(1,1,L,H),y,new O(0,0,L+2,H+2));var i=Math.round((L+2)*(H+2)/1e4),Q=gx.YD(y,L+2,H+2,Math.min(12,i)),m=gx.U9(Q),n=new i7(1,0,0,1,-1,-1);
for(var G=0;G<m.length;G++)s.a.J(m[G].path.H,n,m[G].path.H);this.uU=m;this.yx=M;if(h){console.log("trace",Date.now()-e);
e=Date.now()}for(var G=0;G<m.length;G++){var u=m[G];for(var K=G+1;K<m.length;K++){var F=m[K];if(M.J3[F.color-1].est.q[3]>.05||F.parent!=G)continue;
var b=F.path.Z.slice(1);b.reverse();b=["M"].concat(b);var d=[],Q=F.path.H.length;for(var W=0;W<Q;W+=2){d[W]=F.path.H[Q-2-W];
d[W+1]=F.path.H[Q-2-W+1]}s.a.concat(u.path,{H:d,Z:b})}}for(var G=0;G<m.length;G++){var u=m[G],A=M.J3[u.color-1].est.q;
if(A[3]<=.05){m.splice(G,1);G--;continue}}for(var G=1;G<m.length;G++){var z=m[G-1],u=m[G];if(z.color==u.color){s.a.concat(z.path,u.path);
m.splice(G,1);G--;continue}}this.y5()};aM.prototype.y5=function(h){if(this.uU==null)return;var e=this.FN.Au.d,$=this.FN.Au.v,Z=this.uU,c=this.yx.J3,q=this.J$,E=this.l9.fU();
q.setTransform(1,0,0,1,0,0);q.clearRect(0,0,q.canvas.width,q.canvas.height);q.translate(q.canvas.width/2,q.canvas.height/2);
q.scale(E.S,E.S);q.translate(E.i.x/E.S-e/2,E.i.y/E.S-$/2);q.scale(1/E.S,1/E.S);q.fillStyle=this.gi;q.fillRect(0,0,e*E.S,$*E.S);
q.scale(E.S,E.S);var P=[];for(var G=0;G<c.length;G++){var a=c[G].est.q;P.push({h:Math.round(255*a[0]),l:Math.round(255*a[1]),O:Math.round(255*a[2]),R:Math.round(255*a[3])})}for(var G=0;
G<Z.length;G++){var j=Z[G],a=P[j.color-1];if(a.R==0)continue;q.fillStyle="rgba("+a.h+","+a.l+","+a.O+","+a.R/255+")";
q.beginPath();Typr.U.pathToContext({crds:j.path.H,cmds:j.path.Z},q);q.fill()}};aM.prototype.nW=function(h){var e=this.uU,$=e.length==1,Z=this.j_,c=Z.C[0],q=Z.t[c],E=Z.t.slice(0,c);
if(!$)E.push(Z.d_());for(var G=0;G<e.length;G++){var P=e[G],a=this.yx.J3[P.color-1].est.q;s.a.J(P.path.H,new i7(1,0,0,1,q.rect.x,q.rect.y),P.path.H);
var j=Z.by();j.aq("Path "+G);E.push(j);j.opacity=Math.round(a[3]*255);j.GO|=16;j.add.SoCo={classID:"null",Clr:{t:"Objc",v:s.Y.lp({h:255*a[0],l:255*a[1],O:255*a[2]})}};
j.add.vmsk=new o.MM;j.add.vstk=JSON.parse(JSON.stringify(c3.oF.default));j.add.vmsk.b=s.a.b0(P.path,!1);
j.add.vogk=[];j.__();j.ZB(Z)}var L=E[E.length-1];if(!$){var j=Z.by();j.aq(q.getName());j.add.lsct=hJ.sE;
j.oG="pass";j.GO=24;E.push(j);L=j}var H=q.add.lmfx;if(H)L.add.lmfx=JSON.parse(JSON.stringify(H));for(var G=c+1;
G<Z.t.length;G++)E.push(Z.t[G]);var _=new B(D.E.A,!0);_.Q1=!0;_.F=f.S$;_.data={e:o.wj,T5:E,A9:[c+e.length+($?-1:1)],cJ:[11,11]};
this.f(_);this.close()};function hA(h){hx.call(this,[[7,11],[7,13]][h],["redge","magiccut"][h]);this.Nf=h;
this.FN={};this.Gg=null;this.pq=null;this.j_=null;this.gD=null;this.cT=null;this.Ex=[];this.Bl=-1;this.jf=D.w("div","form hbar");
this.body.appendChild(this.jf);this.V_=new iI;this.V_.parent=this;this.V_.k(D.E.L,this.qd,this);this.jf.appendChild(this.V_.j);
var e=h==0?["#ffffff","#888888","#000000"]:["#00dd00","#888888","#ff0000"];e=e.concat(PIMG["tools/hand"],PIMG.zoomIn,PIMG.zoomOut);
var $=h==0?[[12,45],"Unknown",[12,46]]:[[12,45],"Erase",[12,46]];this.gO=new a4(null,e,$,28);this.gO.k(D.E.L,this.WI,this);
this.jf.appendChild(this.gO.j);this.ep=new hr([7,9],0,50,null);this.ep.parent=this;this.ep.k(D.E.L,[this.AM,this.VS][h],this);
this.jf.appendChild(this.ep.j);var Z=this.a1S=new gg([2,2],!1,null,!0);Z.k("click",this.df,this);this.jf.appendChild(Z.j);
var c=this.ae3=new gg([12,90],!1,null,!0);c.k("click",function(a){alert(h==0?e_.get([15,7,1]):"Mark the object with Green, background with Red. Two colors should never touch.",5e3)},this);
this.jf.appendChild(c.j);var q=new gg("Tutorial",!1,null,!0);q.k("click",this.ais,this);this.jf.appendChild(q.j);
var E=D.w("span","form");this.jf.appendChild(E);E.setAttribute("style","position:absolute;  right:0px");
this.PY=new a4([12,46],["checker","#ffffff","#000000"]);this.PY.k(D.E.L,this.x$,this);E.appendChild(this.PY.j);
this.qW=new fs(null,[[6,13],[6,2],[17,2]]);E.appendChild(this.qW.j);this.VB=new gg("OK",!1,null,!0);
this.VB.k("click",this.nW,this);E.appendChild(this.VB.j);var P=D.w("div","flexrow");this.body.appendChild(P);
this.SE=new cz(!0);this._2=new cz;this.SE.je(this._2);this._2.je(this.SE);this.SE.k("mousedown",this.Aw,this);
this.SE.k("mousemove",this.AT,this);this.SE.k("mouseup",this.IB,this);this.SE.k("zoom",this.qd,this);
this._2.k("zoom",this.qd,this);P.appendChild(this.SE.j);P.appendChild(this._2.j)}hA.prototype=new hx;
hA.prototype.oc=function(h,e){var $=h!=null&&!h.t[h.C[0]].rect.nK();if(!$)alert("The layer is empty.");
return $};hA.prototype.uX=function(){return new eu(0,0)};hA.prototype.Mm=function(){return!0};hA.prototype.Sy=function(h,e){e=e-26-33;
h=Math.floor((h-28)/2);this.SE.Sy(h,e);this._2.Sy(h,e)};hA.prototype.B=function(){hx.prototype.B.call(this);
this.V_.B();this.ep.B();this.VB.B();this.PY.B();this.qW.B();this.a1S.B();this.ae3.B()};hA.prototype.ais=function(h){window.open("//www.photopea.com/"+["learn/refine-edge","tuts/magic-cut-remove-image-background-online"][this.Nf],"_blank")};
hA.prototype.if=function(h,e){this.pq=h;if(e==iM.XP||e==iM.uG){this.V_.K2(h.Ck);this.V_.T(cC.Zn(),h.Ck.nM,h.Ck.fB)}};
hA.prototype.WI=function(h,e,$,Z){var c=this.gO.u();if(Z==null){var Z=new p;if(c>=3)Z.QT("Space");if(c>=4){Z.QT("ControlLeft");
if(c==5)Z.QT("AltLeft")}this.SE.WI(Z);return}this.gD=Z;var q=f.rz.fF(this.V_.u(),Z);if(q!=null){this.V_.T(q);
this.qd()}else if(Z.q(p.tm)&&Z.q(p.HT)){var E=this.Ex,P=0;if(Z.q(p.ai)){if(this.Bl+1<E.length)P=1}else if(this.Bl>0)P=-1;
if(P!=0){this.Bl+=P;var a=this.Bl,j=this.FN;if(P==1)s.hX(E[a][2],E[a][0],j.tY,j.rect);else s.hX(E[a+1][1],E[a+1][0],j.tY,j.rect);
j.YQ=j.rect;this.VS()}}else if(c<3)this.SE.WI(Z)};hA.prototype.ST=function(h){var e=this.FN,$=this.Ex,Z=s.m(h.X()*4);
s.hX(e.vr,e.rect,Z,h);e.vr=null;var c=s.m(h.X()*4);s.hX(e.tY,e.rect,c,h);this.Bl++;$[this.Bl]=[h.clone(),Z,c];
while($.length>this.Bl+1)$.pop();while($.length>50){$=$.slice(1);this.Bl--}};hA.prototype.qd=function(){var h=this.pq,e=ec.b1(this.V_.u(),h.Ck.nM,this.SE.fU().S);
this.SE.fk(e)};hA.prototype.Aw=function(h){var e=this.pq,$=this.FN,Z=this.gD,c=this.V_.u(),q=this.SE.BS(),E=[16777215,8421504,0][this.gO.u()];
this.Gg=new ec(c,e.Ck.list[0].nM,e.Ck.list[0].fB,{lV:1,Xq:!0},E,e.XK,$.rect);$.vr=$.tY.slice(0);if(Z!=null&&Z.q(p.ai)&&this.cT){this.Gg.moveTo(this.cT.x,this.cT.y);
this.Gg.lineTo(q.x,q.y)}else this.Gg.moveTo(q.x,q.y);this.DE()};hA.prototype.AT=function(h){var e=this.FN,$=this.SE.BS();
this.Gg.lineTo($.x,$.y);this.DE()};hA.prototype.IB=function(h){this.cT=this.SE.BS();this.ST(this.Gg.bJ());
this.VS()};hA.prototype.DE=function(){var h=this.FN,e=this.Gg,$=e.vX();if($.nK())return;h.YQ=$;s.p.Jn("norm",e.os(),e._A(),h.tY,h.rect,$,1);
this.t8()};hA.prototype.df=function(h){var e=this.FN;e.vr=e.tY.slice(0);e.YQ=e.rect;s.Ut(e.tY,[4278190080,4292730333][this.Nf]);
this.ST(e.rect);this.VS()};hA.prototype.uq=function(h,e){this.j_=h;var $=h.t[h.C[0]],Z=$.rect.clone(),c=Z.d,q=Z.v;
this.ep.T(this.Nf==0?3:c*q<3e6?3:0);this.gO.T(h.N==null?0:1);this.ep.WJ();if(this.Nf==0&&h.N!=null||this.Nf==1)this.ep.pw();
var E=this.Nf,P=s.m(Z.X()),a=new Float32Array(Z.X());if(E==0&&h.N){s.T7(h.N.channel,h.N.rect,P,Z);var j=s.m(Z.X());
for(var L=0;L<q;L++)for(var H=0;H<c;H++){var G=L*c+H,_=P[G];if(H>0&&P[G-1]!=_||H<c-1&&P[G+1]!=_||L>0&&P[G-c]!=_||L<q-1&&P[G+c]!=_)j[G]=255}s.style.S7(j,a,c,q)}else a.fill(1e9);
Z.x=Z.y=0;this.FN={rect:Z,Hl:$.buffer,HC:P,Q2:a,GM:s.m(Z.X()*4),iX:s.m(Z.X()*4),tY:s.m(Z.X()*4),vr:null,ka:null,YQ:Z,abR:{}};
if(E==0)this.AM();else{this.FN.abR=f.Fw.xL(h);var J=this.FN.tY;s.Ut(J,4287137928);var S=s.Sj.getSelection($.buffer,c,q),N=Math.round(c/60),Y=Math.round(.7*q);
for(var L=0;L<q;L++)for(var H=0;H<c;H++){var U=(L*c+H)*4,g=S[U>>>2];g=g>128?255:128;if(L<N||L<Y&&(H<N||H>c-1-N))g=0;
J[U]=J[U+1]=J[U+2]=g}this.VS()}this.Ex=[1];this.Bl=0;this.SE.a1v();var M=this.V_.u();M.Brsh.v.Dmtr.v.val=Math.round(Z.d/(E==0?10:20));
this.V_.T(M);this.qd()};hA.prototype.AM=function(){var h=this.FN,e=h.rect.X(),$=this.ep.u(),Z=h.HC.slice(0);
for(var G=0;G<e;G++)if(h.Q2[G]<$)Z[G]=128;s.Ut(h.tY,4294967295);s.Jk(Z,h.tY,0);s.Jk(Z,h.tY,1);s.Jk(Z,h.tY,2);
h.YQ=h.rect;this.VS()};hA.prototype.VS=function(){var h=this.FN,c,P,a=0,j=0,L=0;this.t8();var e=h.rect,$=e.d,Z=e.v,q=s.m(e.X()),E=h.Hl;
s.z0(h.tY,q,0);for(var G=0;G<q.length;G++){if(E[(G<<2)+3]!=255)continue;var H=q[G];if(H==0)a++;else if(H==255)j++;
else L++}if(a*j*L!=0){if(this.Nf==0)P=s.dy.dy(e,E,q);else{var _=this.gO.u();for(var J=1;J<Z;J++)for(var S=1;
S<$;S++){var G=J*$+S,N=q[G],Y=q[G-1];if(N==0&&Y==255||N==255&&Y==0){c="The Red and Green should never touch! Erase it with Grey.";
break}}var U=Date.now(),g=this.FN.abR;s.i7(q,g.C7);f.Fw.Gi(g,!0);var M=Math.ceil(this.ep.u()/2);if(M==0){P=E.slice(0);
s.Jk(g.N,P,3)}else{var C=g.N.slice(0),y=g.N.slice(0);for(var i=0;i<M;i++){for(var J=1;J<Z-1;J++)for(var S=1;
S<$-1;S++){var G=J*e.d+S,Q=C[G];if(C[G-$]!=Q||C[G-1]!=Q||C[G+1]!=Q||C[G+$]!=Q)y[G]=128;else y[G]=Q}var m=C;
C=y;y=m}P=s.dy.dy(e,E,C,20,!1)}}}else{P=E.slice(0);s.Jk(q,P,3)}for(var G=3;G<P.length;G+=4)if(P[G]>E[G])P[G]=E[G];
if(e.dz(h.rect))h.ka=P;else s.hX(P,e,h.ka,h.rect);this.x$();if(c)alert(c,4e3)};hA.prototype.t8=function(h){var e=this.FN,$=e.YQ;
s.hX(e.Hl,e.rect,e.GM,e.rect,$,!0);var Z=e.tY;if(this.Nf==1){var c=new Uint32Array(256);c[0]=4278190335;
c[255]=4278255360;var q=e.rect.X();Z=Z.slice(0);var E=new Uint32Array(Z.buffer);for(var G=0;G<q;G+=2){E[G]=c[E[G]&255];
E[G+1]=c[E[G+1]&255]}}s.p.Jn("norm",Z,e.rect,e.GM,e.rect,$,.3);this.SE.T([{Au:e.rect,data:e.GM.buffer}])};
hA.prototype.x$=function(h){var e=this.FN;s.Ut(e.iX,[0,4294967295,4278190080][this.PY.u()]);s.p.Jn("norm",e.ka,e.rect,e.iX,e.rect,e.rect,1);
this._2.T([{Au:e.rect,data:e.iX.buffer}])};hA.prototype.nW=function(h){var e=this.j_,$=this.FN,Z=this.qW.u(),c=e.t[e.C[0]],q=new B(D.E.A,!0);
q.Q1=!0;var E=c.rect.clone();if(Z==0&&c.o6()||Z!=0&&!c.o6()){q.F=f.S$;q.data={e:o.dw,$:e.C[0]};this.f(q)}if(e.N!=null){q.F=f.$r;
q.data={e:"fromAction",W_:f.LV.ss()};this.f(q)}if(Z==0){var P=e.t.slice(0),a=e.by();a.aq(c.getName());
P.splice(e.C[0]+1,0,a);a.rect=E;a.buffer=$.ka;a.s();q.F=f.S$;q.data={e:o.wj,T5:P,A9:[e.C[0]+1],cJ:[7,11]};
this.f(q)}if(Z==1){var j=c.kV();q.F=f.S$;q.data={e:o.KN,aa_:!0};this.f(q);var L=c.kV();L.channel=s.m(E.X());
L.rect=E;L.color=0;L.w4=!0;s.z0($.ka,L.channel,3);if(j){var H=L.n_(j);L.rect=H.rect;L.channel=H.channel;
L.color=H.color}L.V9();c.ZB()}if(Z==2){var _={rect:E,channel:s.m(E.X())};s.z0($.ka,_.channel,3);q.F=f.$r;
q.data={e:"setsel",N:_,cJ:this.US};this.f(q)}this.close()};function by(){hx.call(this,[1,13],"locstor");
this.D0=null;this.aG=[];var h=this.body,e=D.w("p");e.textContent="These files are loaded every time you start Photopea.";
h.appendChild(e);this.aeT=0;this.ki=D.w("span");h.appendChild(this.ki);this.ki.setAttribute("style","display:inline-block;  width:12em;  font-weight:bold;");
var $=D.w("span","form");h.appendChild($);this.$_=new gg([5,4],!1,null,!0);this.$_.k("click",this.akQ,this);
$.appendChild(this.$_.j);this.aj7=new gg("Get all as ZIP",!1,null,!0);this.aj7.k("click",this.QF,this);
$.appendChild(this.aj7.j);this.tF=new dd(!0);this.tF.parent=this;this.tF.Yn(1);this.tF.k(D.E.L,this.aji,this);
h.appendChild(this.tF.j);this.tF.j.setAttribute("style","width: 40em; height: 25em")}by.prototype=new hx;
by.prototype.B=function(){hx.prototype.B.call(this);this.ki.textContent=e_.get([13,2])+": "+eE.vp(this.aeT);
this.$_.B()};by.prototype.if=function(h,e){this.D0=h;if(e==iM.oI)this.uq()};by.prototype.uq=function(h,e){var $=this.D0.P$.M7,a=0;
this.aG=[];for(var Z in $)this.aG.push(Z);this.aG.sort(function(L,H){L=L.split(".");H=H.split(".");return L[1]==H[1]?L[0]<H[0]?-1:1:L[1]<H[1]?-1:1});
var c=Math.floor(100*D.M()),q=Math.floor(16*D.M()),E=[],P=[];for(var G=0;G<this.aG.length;G++){var Z=this.aG[G],j=by.TD(Z,$[Z],c,q);
E.push(j);P.push(Z);a+=$[Z].byteLength}this.tF.Go(E,P,c,q);this.aeT=a;this.B()};by.prototype.aji=function(h){this.tF.Eg(this.tF.u())};
by.prototype.akQ=function(h){var G=this.tF.u();if(G==-1){alert("Select a file first.");return}this.tF.T(-1);
var e=this.D0.P$.M7;delete e[this.aG[G]];var $=new B(D.E.P,!0);$.data={e:D.U.Ov,Av:iM.oI};this.f($)};
by.prototype.QF=function(h){var e=this.D0.P$.M7,$={};for(var Z in e)$[Z]=new Uint8Array(e[Z]);var c=UZIP.encode($);
co.save(c,"resources.zip")};by.TD=function(h,e,$,Z){var c=D.w("canvas"),P=0;c.width=$;c.height=Z;var q=c.getContext("2d"),E=h.split(".").pop().toLowerCase();
for(var G=0;G<E.length;G++)P+=E.charCodeAt(G)*613<<8*G;q.fillStyle="#"+s.jT(P&16777215);q.fillRect(0,0,20,Z);
var a=Math.floor(14*D.M());q.fillStyle="#000000";q.font="bold "+a+"px sans-serif";var j=(Z-a)/2,L=eE.vp(e.byteLength),H=q.measureText(L);
q.fillText(L,$-12-H.width,Z-j);return c.toDataURL()};function cN(h,e,$){hx.call(this,e,"cwindow");this.aku=new eu($[0],$[1]-33);
this.jf=D.w("div","form");this.jf.setAttribute("style","width:"+($[2]-$[0])+"px; height:"+($[3]-$[1])+"px");
this.body.appendChild(this.jf)}cN.prototype=new hx;cN.prototype.uX=function(h,e){return this.aku.clone()};
function fw(){hx.call(this,["PSD VAR0",[25,0]],"templates");this.hA=null;this.hD=0;this.We=null;this.body.setAttribute("style","padding:0");
this.sj=new gg("Add Templates",null,null,!0);this.body.appendChild(this.sj.j);this.sj.k("click",this.p7,this);
this.sj.j.setAttribute("style","position:absolute; margin-top: -28px;  margin-left:150px");this.agS=new gg("New Template",null,null,!0);
this.agS.k("click",this.a5d,this);this.tZ=D.w("iframe","scrollable");this.tZ.setAttribute("style","border:none; margin:0; padding:0;");
this.t1=D.w("div","form scrollable padded");this.ci=D.w("div","form scrollable padded label12");var h=[],e=fw.wX;
this.FI=[];for(var $ in e){var Z=parseInt($.slice(1)),c=Z%10==0?"":"\u2800\u2800- ";h.push(c+e[$]);this.FI.push(Z)}this.CH=[new a_("Name",null,30),new a_("Description",null,30,4),new a_("File"," www.Photopea.com#i...",17),new a_("Thumbnail URL","* Use Imgur.com etc., ratio 3:2",17),new fs("Category",h),new gg("<< Back",null,null,!0),new gg("Save",null,null,!0),new cZ("Publish your PSD: File - Publish Online - PSD. Use that URL as \"File\"."),new cZ("Get a Thumbnail URL: File - Publish Online - JPG. At Imgur.com, right-click your image and choose \"Copy Image Address\".")];
for(var G=0;G<this.CH.length;G++){var q=this.CH[G];this.ci.appendChild(q.j);q.parent=this;if(G!=5)D.vV(this.ci);
if(q instanceof gg)q.k("click",this.akK,this)}this.body.appendChild(this.tZ)}fw.prototype=new hx;fw.prototype.uX=function(h,e){return new eu(0,0)};
fw.prototype.Sy=function(h,e){e=e-4;h=h;var $=this.t1;$.style.width=h-12+"px";$.style.height=e-12+"px";
var $=this.ci;$.style.width=h-12+"px";$.style.height=e-12+"px";var $=this.tZ;$.style.width=h+"px";$.style.height=e+"px"};
fw.prototype.B=function(){hx.prototype.B.call(this)};fw.prototype.uq=function(h,e,$,Z){this.p7(null,!1)};
fw.prototype.p7=function(h,e){var $=e!=null?e:D.Nn(this.tZ);if($){if(!e3.z5()){alert("You need to log in first!");
return}var Z=e3.Sa();this.hA=Z.tpl?Z.tpl.list:[];this.he()}else{this.tZ.setAttribute("src","");this.tZ.setAttribute("src","plugins/templates.html")}this.body.removeChild(this.body.children[this.body.children.length-1]);
this.body.appendChild($?this.t1:this.tZ);this.sj.TQ($?"All Templates":"Add Templates")};fw.prototype.he=function(){var h=this.hA,e=this.t1;
D.LK(e);var $=D.w("h1");$.textContent="Share your PSD templates with the world!";var Z=D.w("h3");Z.textContent="Users won't be able to download a PSD, they can only export a JPG or a PNG after editing.";
e.appendChild($);e.appendChild(Z);e.appendChild(this.agS.j);for(var G=0;G<h.length;G++){var c=h[G],q=D.w("div");
e.appendChild(q);q.setAttribute("style","clear:both;");var E=D.w("img");q.appendChild(E);E.setAttribute("src",c.thmb);
E.setAttribute("style","height:10em; float:left; margin-right: 1em; margin-bottom:1em;");var P=D.w("h3");
q.appendChild(P);P.textContent=c.name;var a=D.w("p");q.appendChild(a);a.textContent=c.desc;for(var j=0;
j<2;j++){var L=new gg(j==0?"Edit":"Delete",null,null,!0);L.a9h=G;L.xm=j==0;L.k("click",this.a0l,this);
q.appendChild(L.j)}}};fw.prototype.a5d=function(h){this.We={catg:0,desc:"",file:"",name:"",thmb:"",utme:""};
this.xm()};fw.prototype.a0l=function(h){this.hD=h.target.a9h;if(!h.target.xm){this.hA.splice(this.hD,1);
this.QF();this.he();return}this.xm()};fw.prototype.xm=function(){this.body.removeChild(this.t1);this.body.appendChild(this.ci);
var h=["name","desc","file","thmb"],e=this.We?this.We:this.hA[this.hD];for(var G=0;G<4;G++){var $=e[h[G]];
if($!=""&&G==2)$="https://photopea.com#i"+$;this.CH[G].T($)}this.CH[4].T(this.FI.indexOf(e.catg))};fw.prototype.akK=function(h){if(this.CH.indexOf(h.target)==6){var e=["name","desc","file","thmb"],$=this.We?this.We:this.hA[this.hD];
for(var G=0;G<4;G++){var Z=this.CH[G].u().trim();if(Z.length==0){alert("One of values is empty.");return}if(G==2){var c=Z.split("#i");
if(c.length!=2||c[1].length!=8){alert("File ID is incorrect.");return}Z=c.pop()}if(G==3&&(!Z.startsWith("http")||!Z.endsWith(".jpg")&&!Z.endsWith(".png"))){alert("Thumbnail URL is incorrect.");
return}$[e[G]]=Z}$.catg=this.FI[this.CH[4].u()];$.utme=""+Math.round(Date.now()/1e3);if(this.We)this.hA.push(this.We);
this.QF()}this.We=null;this.body.removeChild(this.ci);this.body.appendChild(this.t1);this.he()};fw.prototype.QF=function(){var h=e3.Sa();
if(this.hA.length==0)delete h.tpl;else h.tpl={list:JSON.parse(JSON.stringify(this.hA))};e3.i_(h,function(){alert("Saved.")})};
fw.wX={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 eP(){hx.call(this,"Make Selection","makesel");this.D0=null;var h=D.w("div","form");this.body.appendChild(h);
this.Zu=new cw("Anti-Alias");this.Zu.T(!0);h.appendChild(this.Zu.j);D.vV(h);this.TP=new gV(!0);h.appendChild(this.TP.j);
this.VB=new gg("OK",!0,null,!0);this.VB.k("click",this.nW,this);this.body.appendChild(this.VB.j)}eP.prototype=new hx;
eP.prototype.B=function(){hx.prototype.B.call(this);this.TP.B()};eP.prototype.nW=function(h){var e=new B(D.E.A,!0);
e.F=f.$r;e.data={e:"frompath",py:[null,0,this.TP.aby(),!this.Zu.u()]};this.close();this.f(e)};function ce(h,e,$,Z){ev.call(this);
this.name=h;this.ab9=$;this.WS=Z;this.Vu=D.w("div","");this.Vu.setAttribute("draggable","true");this.C5=D.w("div","pbody");
this.aa=new gg("",!1,"");this.aa.parent=this;this.aaM=D.w("span","cross");this.eq=D.w("span","label");
var c=this.ade.bind(this);this.Vu.addEventListener("mousedown",this.a6h.bind(this),!1);this.Vu.addEventListener("contextmenu",c,!1);
this.aa.j.addEventListener("contextmenu",c,!1);this.aaM.addEventListener("mousedown",this.wW.bind(this),!1);
this.Vu.appendChild(this.eq);if(e)this.Vu.appendChild(this.aaM);this.sP=!1;this.aw=new dW([{name:[1,12]}]);
this.aw.k("select",this.wW,this);this.eq.textContent=h}ce.prototype=new ev;ce.prototype.B1=function(){return null};
ce.prototype.A8=function(){return new eu(0,0)};ce.prototype.B=function(){var h=e_.get(this.name),e=this.EN==0?22:Math.round(2+this.EN/50),$=h.length>e;
this.eq.textContent=$?h.slice(0,e-2):h;if($)for(var Z=0;Z<2;Z++){var c=D.w("span");c.textContent=h.charAt(e-2+Z);
c.setAttribute("style","opacity:"+(.6-Z*.4));this.eq.appendChild(c)}var q=h.split(" "),E=q.length==2?q[0].substring(0,2)+q[1][0]:h.substring(0,3);
if(E.charCodeAt(0)>=11776)E=E.substring(0,1);var P=this.ab9;if(P==null)this.aa.TQ(E,h);else{if(P.indexOf("\"")==-1)this.aa.TQ("<img src=\""+P+"\" alt=\""+h+"\" height=\"20\" />",h)}};
ce.prototype.enable=function(){this.C5.setAttribute("class","pbody")};ce.prototype.disable=function(){this.C5.setAttribute("class","pbody disabled")};
ce.prototype.if=function(h,e){};ce.prototype.uq=function(h,e,$){};ce.prototype.Sk=function(h){};ce.prototype.Sy=function(h,e){};
ce.prototype.KG=function(h){this.name=h;this.B()};ce.prototype.nR=function(){};ce.prototype.a6h=function(h){if(h.button==0)this.f(new B("select",!1))};
ce.prototype.ade=function(h){D.pt(h);if(this.WS!=null&&isNaN(this.WS))return;var e=D.q6(h,document.body),$=this.aw;
$.update(null);$.B();$.parent=this;var Z=new B(D.E.P,!0);Z.data={e:D.U.sH,yv:$,x:e.x+1,y:e.y+1};this.f(Z)};
ce.prototype.it=function(){this.wW({})};ce.prototype.wW=function(h){if(h.stopPropagation)h.stopPropagation();
if(this.WS!=null&&!isNaN(this.WS)){var e=new B(D.E.P,!0);e.data={e:D.U.Is,yv:this.aw};this.f(e);e.data={e:D.U.Ov,Av:iM.Q6,G:parseFloat(this.WS),HZ:"del"};
this.f(e)}else if(this.QS())this.f(new B(D.E.iF,!1))};ce.prototype.QS=function(h){return!0};ce.prototype.yj=function(h,e,$,Z,c){};
ce.prototype.oX=function(h,e,$,Z,c){};ce.prototype.f0=function(h,e,$,Z,c){};ce.JE=function(h,e){if(h.childElementCount!=0)return;
var $=h.textContent;this.TM=this.ac9.bind(this);this.afc=this.aex.bind(this);this.X2=e;this.h6=h;this.a0I=$;
var Z=D.w("input","");Z.setAttribute("type","text");Z.setAttribute("size","10");Z.setAttribute("value",$);
D.LK(h);h.appendChild(Z);Z.select();Z.focus();h.addEventListener("keyup",this.TM,!1);document.body.addEventListener("mousedown",this.afc,!1)};
ce.JE.prototype.ac9=function(h){var e=p.VG,$=e(h.code,p.Gr);if(e(h.code,p.fp)||$)this.j4($)};ce.JE.prototype.aex=function(h){var e=h.target;
if(e.tagName&&e.tagName.toLowerCase()=="input")return;this.j4(!0)};ce.JE.prototype.j4=function(h){var e=this.h6;
e.removeEventListener("keyup",this.TM);document.body.removeEventListener("mousedown",this.afc);if(h){var $=e.firstChild.value;
this.X2($)}else{D.LK(e);e.textContent=this.a0I}};ce.WT={C_:"0",a0s:"1",S$:"2",a3m:"3",a89:"4",RJ:"5",CSS:"6",XP:"7",a7I:"8",a4c:"9",a3B:"10",r0:"11",ag4:"12",JD:"13",L$:"14",a15:"15",a5S:"16",ly:"17",anK:"19"};
function iF(){ce.call(this,[9,9],!1,null,ce.WT.r0);this.D0=null;this.CL=[0,0];this.Az=D.w("div","padded scrollable");
this.Az.setAttribute("style","width:260px;  height:260px");this.C5.appendChild(this.Az);this.k(D.E.L,this.Tv,this);
this.HD=D.w("div","lpfoot");this.C5.appendChild(this.HD);this.Ke=[];var h="<svg  class=\"gsicon\" viewBox=\"0 0 14 18\" width=\"14\" height=\"18\" fill=\"black\">",e="</svg>",$=h+"<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\" />"+e,Z=h+"<path d=\"M0,2 L14,9 L0,16 Z\" />"+e;
this.a2M=h+"<circle cx=\"7\" cy=\"9\" r=\"6\" />"+e;this.ajQ=h+"<path d=\"M2,4 L12,4 L12,14 L2,14 Z\" />"+e;
var c=[this.a2M,Z,"lrs/folder","lrs/newlayer","lrs/bin",$],q=[[15,8,0],[5,8],[15,8,1],[15,8,2],[5,4],[1,2]];
for(var G=0;G<c.length;G++){var E=c[G];if(1<G&&G!=c.length-1)E="<img src=\""+PIMG[c[G]]+"\" class=\"gsicon\" />";
var P=new gg(E,!1,q[G]);P.k("click",this.qt,this);this.HD.appendChild(P.j);this.Ke.push(P)}}iF.prototype=new ce("");
iF.prototype.B=function(){ce.prototype.B.call(this);for(var G=0;G<this.Ke.length;G++)this.Ke[G].B()};
iF.prototype.qt=function(h){var G=this.Ke.indexOf(h.currentTarget),e=this.CL,$=this.D0,Z=$.Dv;if(G==0){var c,q=$.bV;
if(Z.length==0){alert("Create an Action Set first.");return}if(e.length<2){alert("Select a target action first.");
return}if(q==null){c=this.ajQ;q=this.CL}else{c=this.a2M;q=null}this.Ke[0].TQ(c);$.bV=q}else if(G==1)this.a5Y();
else if(G==2||G==3){var E={cJ:"Action Set "+Z.length,qM:[],exp:!0};if(G==2||Z.length==0){e=[Z.length];
Z.push(E)}if(G==3){var P=Z[e[0]].qM;e=[e[0],P.length];P.push({cJ:"Action "+P.length,color:0,qM:[],ak5:!1,shift:!1,exp:!0,NS:P.length})}this.CL=e;
this.rv()}else if(G==4){var a;if(e.length==1)a=Z;else if(e.length==2)a=Z[e[0]].qM;else a=Z[e[0]].qM[e[1]].qM;
var j=e.length-1;a.splice(e[j],1);if(a.length==0)e.pop();else while(e[j]>=a.length)e[j]--;if(e.length==0)e.push(0);
this.rv()}else if(G==5){if(Z.length==0){alert("No Actions Present.");return}var L=new B(D.E.P,!0);L.data={e:D.U.v_,ame:iM.A,Hk:e[0]};
this.f(L)}};iF.prototype.Tv=function(h){var e=this.D0.Dv,$=h.data.e,Z=h.data.Rx;if($=="sel")this.CL=Z;
if($=="fold"){if(Z.length==1)e[Z[0]].exp=!e[Z[0]].exp;else e[Z[0]].qM[Z[1]].exp=!e[Z[0]].qM[Z[1]].exp}if($=="enab"){var c=e[Z[0]].qM[Z[1]].qM[Z[2]];
c.Q=!c.Q}if($=="nchange"){if(Z.length==1)e[Z[0]].cJ=h.data.yW;else e[Z[0]].qM[Z[1]].cJ=h.data.yW}this.rv()};
iF.prototype.if=function(h,e){this.D0=h;if(e==iM.A||e==iM.uG)this.rv()};iF.prototype.rv=function(){if(this.D0==null)return;
D.LK(this.Az);var h=this.D0.Dv;if(h.length==0)return;var e=JSON.stringify(this.CL);for(var G=0;G<h.length;
G++){var $=h[G],Z=new iF.$Q([G],e,$.exp,$.cJ.split("=").pop());Z.parent=this;this.Az.appendChild(Z.j);
if(!$.exp)continue;for(var c=0;c<$.qM.length;c++){var q=$.qM[c],Z=new iF.$Q([G,c],e,q.exp,q.cJ.split("=").pop());
Z.parent=this;this.Az.appendChild(Z.j);if(!q.exp)continue;for(var E=0;E<q.qM.length;E++){var P=q.qM[E],Z=new iF.$Q([G,c,E],e,null,e_.get(bw.a7l(P)),P.Q);
Z.parent=this;this.Az.appendChild(Z.j)}}}};iF.prototype.a5Y=function(){var h=this.D0.Dv,e=this.CL;if(h.length==0){alert("No Actions Present");
return}if(e.length==1){alert("Select an Action first");return}if(this.D0.bV!=null){alert("You can not apply actions while recording actions");
return}if(e.length==1)e.push(0);var $=h[e[0]],Z=$.qM[e[1]],c=new B(D.E.P,!0);c.data={e:D.U.xZ,py:[Z.cJ,$.cJ]};
this.f(c)};iF.$Q=function(h,e,$,Z,c){ev.call(this);this.Rx=h;var q=this.Rx.length-1;this.j=D.w("div","layeritem"+(JSON.stringify(h)==e?" selected":""));
this.$m=D.w("div","head");this.j.appendChild(this.$m);this.$m.setAttribute("style","height:24px");this.Mc=D.w("div","headL");
this.$m.appendChild(this.Mc);if(q!=0){var E=D.w("div");E.style.width=q*20+"px";this.Mc.appendChild(E)}if($!=null){var P=this.a4C=D.w("div",$?"open":"closed");
this.Mc.appendChild(P)}else{var a=this.a2c=D.w("div","cmark");a.setAttribute("style","background-size:12px 12px; opacity:"+(c?1:.3));
this.Mc.appendChild(a)}if(q==0){var j=D.w("div","folder");this.Mc.appendChild(j)}var L=this.eq=D.w("div","label");
L.textContent=Z;this.Mc.appendChild(L);this.j.addEventListener("mouseup",this.Vr.bind(this),!1)};iF.$Q.prototype=new ev;
iF.$Q.prototype.Vr=function(h){if(h.detail==1&&h.target.tagName.toLowerCase()!="input"){var e="sel";
if(h.target==this.a4C)e="fold";if(h.target==this.a2c)e="enab";var $=new B(D.E.L,!0);$.data={e:e,Rx:this.Rx};
this.f($)}else if(this.Rx.length<3)var Z=new ce.JE(this.eq,this.X2.bind(this))};iF.$Q.prototype.X2=function(h){var e=new B(D.E.L,!0);
e.data={e:"nchange",yW:h,Rx:this.Rx};this.f(e)};function dG(){ce.call(this,[9,3],!1,null,ce.WT.XP);this.ZM=null;
this.oH=null;this.D0=null}dG.prototype=new ce("");dG.prototype.b5=function(){var h=D.w("div","");this.C5.appendChild(h);
this.UK=D.w("div","bordered cell");this.UK.setAttribute("style","width:10em; height:28.5em;");h.appendChild(this.UK);
this.fI=[];this.a$=null;this.NF=[];var e=this.aom.bind(this);this.da=[new dG.Pq,new dG._f,new dG.VU,new dG.qf];
for(var G=0;G<this.da.length;G++){var $=D.w("div","listitem"),Z=this.da[G].mo,c=null;if(G==0){this.a$=new cZ(Z);
$.appendChild(this.a$.j)}else{c=new cw(Z,!1);c.k(D.E.L,this.agg,this);$.appendChild(c.j)}this.NF.push(c);
this.UK.appendChild($);this.fI.push($);$.addEventListener("click",e,!1)}this.fo=D.w("div","cell padded");
h.appendChild(this.fo);for(var G=0;G<this.da.length;G++)this.da[G].k("brushchange",this.anO,this);this.setItem(0);
this.Mt=D.w("canvas","");this.Mt.width=Math.floor(380*D.M());this.Mt.height=Math.floor(80*D.M());D.pH(this.Mt,this.Mt.width,this.Mt.height);
h.appendChild(this.Mt);this.J$=this.Mt.getContext("2d");this.VS()};dG.prototype.nR=function(){if(!D.Nn(this.C5))return;
if(this.UK){this.VS();return}this.b5();this.B();this.if(this.D0,iM.uG)};dG.prototype.B=function(){ce.prototype.B.call(this);
if(this.UK==null)return;this.a$.B();for(var G=1;G<this.NF.length;G++)this.NF[G].B();for(var G=0;G<this.da.length;
G++)this.da[G].B()};dG.prototype.anO=function(h){var e=this.da.indexOf(h.currentTarget),$=JSON.parse(JSON.stringify(this.da[e].oH)),Z=new B(D.E.P,!0);
Z.data={e:D.U.Ov,Av:iM.bT,oH:$};this.f(Z)};dG.prototype.agg=function(h){this.GF(this.NF.indexOf(h.currentTarget),h.currentTarget.ha())};
dG.prototype.aom=function(h){var G=this.fI.indexOf(h.currentTarget);if(h.target.tagName.toLowerCase()=="input")return;
if(this.NF[G]&&!this.NF[G].ha()){this.NF[G]._j();this.GF(G,!0)}this.setItem(G)};dG.prototype.GF=function(h,e){this.da[h].T$(e)};
dG.prototype.setItem=function(h){for(var G=0;G<this.da.length;G++)this.fI[G].setAttribute("class","listitem");
if(this.fo.firstChild)this.fo.removeChild(this.fo.firstChild);this.fI[h].setAttribute("class","listitem selected");
this.fo.appendChild(this.da[h].j)};dG.prototype.if=function(h,e){this.D0=h;if(this.UK==null)return;if(e==iM.XP||e==iM.uG){this.ZM=h.Ck;
for(var G=0;G<this.da.length;G++)this.da[G].K2(this.ZM)}if(e==iM.bT||e==iM.uG){this.oH=h.Ck.oA;this.VS()}if(e==iM.JD)this.VS()};
dG.prototype.VS=function(){if(this.oH)this.enable();else{this.disable();return}if(!D.Nn(this.C5))return;
var h=this.D0;for(var G=0;G<this.da.length;G++){this.da[G].T(this.oH);if(this.NF[G])this.NF[G].T(this.da[G].ha())}var e=JSON.parse(JSON.stringify(this.oH));
e.Brsh.v.Dmtr.v.val=Math.min(e.Brsh.v.Dmtr.v.val,50);var $=new O(0,0,this.Mt.width,this.Mt.height),Z=new ec(e,this.ZM?this.ZM.nM:null,this.ZM?this.ZM.fB:null,{lV:1},h.oV,h.XK,$),c=40*D.M(),q=300*D.M();
Z.moveTo(c,c);for(var G=0;G<=q;G+=10)Z.lineTo(c+G,c+20*Math.sin(2*Math.PI*G/q));Z.finish();var E=this.J$.createImageData($.d,$.v);
s.hX(Z.os(),Z._A(),E.data,$);this.J$.putImageData(E,0,0)};dG.yi=function(h){ev.call(this);this.mo=h;
this.j=D.w("div","");this.oH=null};dG.yi.prototype=new ev;dG.yi.prototype.K2=function(h){};dG.yi.prototype.T=function(h){this.oH=JSON.parse(JSON.stringify(h));
this.j.setAttribute("class",this.ha()?"":"disabled");this.VS()};dG.yi.prototype.T$=function(h){};dG.yi.prototype.ha=function(){return!1};
dG.yi.prototype.B=function(){};dG.yi.prototype.VS=function(){};dG.yi.prototype.DD=function(){this.f(new B("brushchange"))};
dG.Pq=function(){dG.yi.call(this,[15,0]);this.ZM=null;this.a4M=null;this.Bq=new dd(!0);this.j.appendChild(this.Bq.j);
this.Bq.k(D.E.L,this.a7X,this);this.Bq.j.style.height="10.7em";this.uO=new dm([12,14,0],1,1e3," px",0,!0);
this.uO.k(D.E.L,this.aed,this);this.AY=new dm([12,15],0,359," \xB0");this.AY.k(D.E.L,this.adJ,this);
this.Sv=new dm([12,16],0,100," %");this.Sv.k(D.E.L,this.a37,this);this.ku=new dm([12,17],0,100," %");
this.ku.k(D.E.L,this.aiM,this);this.iO=new dm([12,18],1,300," %");this.iO.k(D.E.L,this.ad3,this);this.fI=[this.uO,this.AY,this.Sv,this.ku,this.iO]};
dG.Pq.prototype=new dG.yi;dG.Pq.prototype.B=function(){this.uO.B();this.AY.B();this.Sv.B();this.ku.B();
this.iO.B()};dG.Pq.prototype.ha=function(){return!0};dG.Pq.prototype.K2=function(h){this.ZM=h;var e=[],$=Math.floor(30*D.M()),Z=Math.floor(40*D.M());
for(var G=0;G<h.list.length;G++){var c=h.list[G].v,q=ec.TD(c,h.nM,h.fB,$,Z);e.push(q)}this.Bq.Go(e,null,$,Z)};
dG.Pq.prototype.VS=function(){var h=this.oH.Brsh.v,e=h.classID!=this.a4M;this.a4M=h.classID;if(e)for(var G=0;
G<this.fI.length;G++)if(this.j.contains(this.fI[G].j))this.j.removeChild(this.fI[G].j);this.uO.T(h.Dmtr.v.val);
if(e)this.j.appendChild(this.uO.j);this.AY.T(h.Angl.v.val);if(e)this.j.appendChild(this.AY.j);if(h.classID=="computedBrush"||h.classID=="sampledBrush"){this.Sv.T(h.Rndn.v.val);
if(e)this.j.appendChild(this.Sv.j)}if(h.classID=="computedBrush"){this.ku.T(h.Hrdn.v.val);if(e)this.j.appendChild(this.ku.j)}this.iO.T(h.Spcn.v.val);
if(e)this.j.appendChild(this.iO.j)};dG.Pq.prototype.a7X=function(h){this.oH=this.ZM.list[this.Bq.u()].v;
this.DD()};dG.Pq.prototype.aed=function(h){this.oH.Brsh.v.Dmtr.v.val=h.target.u();this.DD()};dG.Pq.prototype.adJ=function(h){this.oH.Brsh.v.Angl.v.val=h.target.u();
this.DD()};dG.Pq.prototype.a37=function(h){this.oH.Brsh.v.Rndn.v.val=h.target.u();this.DD()};dG.Pq.prototype.aiM=function(h){this.oH.Brsh.v.Hrdn.v.val=h.target.u();
this.DD()};dG.Pq.prototype.ad3=function(h){this.oH.Brsh.v.Spcn.v.val=h.target.u();this.DD()};dG._f=function(){dG.yi.call(this,[15,1]);
this.fY=new dm([15,4,0],0,100," %");this.fY.k(D.E.L,this.a1r,this);this.j.appendChild(this.fY.j);this.Y3=new dm([15,4,1],0,100," %");
this.Y3.k(D.E.L,this.aoL,this);this.j.appendChild(this.Y3.j);this.hw=new dm([15,4,2],0,100," %");this.hw.k(D.E.L,this.aax,this);
this.j.appendChild(this.hw.j);this.ri=new dm([15,4,3],0,100," %");this.ri.k(D.E.L,this.aaF,this);this.j.appendChild(this.ri.j);
this.rX=new dm([15,4,4],0,100," %");this.rX.k(D.E.L,this.a71,this);this.j.appendChild(this.rX.j)};dG._f.prototype=new dG.yi;
dG._f.prototype.B=function(){this.fY.B();this.Y3.B();this.hw.B();this.ri.B();this.rX.B()};dG._f.prototype.ha=function(){return this.oH.useTipDynamics.v};
dG._f.prototype.T$=function(h){this.oH.useTipDynamics.v=h;cC.Em.bb(this.oH);this.DD()};dG._f.prototype.VS=function(){var h=this.oH;
if(h.useTipDynamics.v==!1)return;this.fY.T(h.szVr.v.jitter.v.val);this.Y3.T(h.minimumDiameter.v.val);
this.hw.T(h.angleDynamics.v.jitter.v.val);this.ri.T(h.roundnessDynamics.v.jitter.v.val);this.rX.T(h.minimumRoundness.v.val)};
dG._f.prototype.a1r=function(h){this.oH.szVr.v.jitter.v.val=h.target.u();this.DD()};dG._f.prototype.aoL=function(h){this.oH.minimumDiameter.v.val=h.target.u();
this.DD()};dG._f.prototype.aax=function(h){this.oH.angleDynamics.v.jitter.v.val=h.target.u();this.DD()};
dG._f.prototype.aaF=function(h){this.oH.roundnessDynamics.v.jitter.v.val=h.target.u();this.DD()};dG._f.prototype.a71=function(h){this.oH.minimumRoundness.v.val=h.target.u();
this.DD()};dG.VU=function(){dG.yi.call(this,[15,2]);this.ao=new dm([15,5,0],0,1e3," %");this.ao.k(D.E.L,this.ago,this);
this.j.appendChild(this.ao.j);this._K=new dm([15,5,1],1,20);this._K.k(D.E.L,this.anY,this);this.j.appendChild(this._K.j);
this.$V=new dm([15,5,2],0,100," %");this.$V.k(D.E.L,this.a3e,this);this.j.appendChild(this.$V.j)};dG.VU.prototype=new dG.yi;
dG.VU.prototype.B=function(){this.ao.B();this._K.B();this.$V.B()};dG.VU.prototype.ha=function(){return this.oH.useScatter.v};
dG.VU.prototype.T$=function(h){this.oH.useScatter.v=h;cC.Em.bb(this.oH);this.DD()};dG.VU.prototype.VS=function(){var h=this.oH;
if(h.useScatter.v==!1)return;this.ao.T(h.scatterDynamics.v.jitter.v.val);this._K.T(h.Cnt.v);this.$V.T(h.countDynamics.v.jitter.v.val)};
dG.VU.prototype.ago=function(h){this.oH.scatterDynamics.v.jitter.v.val=h.target.u();this.DD()};dG.VU.prototype.anY=function(h){this.oH.Cnt.v=h.target.u();
this.DD()};dG.VU.prototype.a3e=function(h){this.oH.countDynamics.v.jitter.v.val=h.target.u();this.DD()};
dG.qf=function(){dG.yi.call(this,[15,3]);this.xk=new dm([15,6,0],0,100," %");this.xk.k(D.E.L,this.aeu,this);
this.j.appendChild(this.xk.j);this.n8=new dm([15,6,1],0,100," %");this.n8.k(D.E.L,this.a5r,this);this.j.appendChild(this.n8.j);
this.fh=new dm([15,6,2],0,100," %");this.fh.k(D.E.L,this.a8s,this);this.j.appendChild(this.fh.j);this.ko=new dm([15,6,3],0,100," %");
this.ko.k(D.E.L,this.abC,this);this.j.appendChild(this.ko.j)};dG.qf.prototype=new dG.yi;dG.qf.prototype.B=function(){this.xk.B();
this.n8.B();this.fh.B();this.ko.B()};dG.qf.prototype.ha=function(){return this.oH.useColorDynamics.v};
dG.qf.prototype.T$=function(h){this.oH.useColorDynamics.v=h;cC.Em.bb(this.oH);this.DD()};dG.qf.prototype.VS=function(){var h=this.oH;
if(h.useColorDynamics.v==!1)return;this.xk.T(h.clVr.v.jitter.v.val);this.n8.T(h.H.v.val);this.fh.T(h.Strt.v.val);
this.ko.T(h.Brgh.v.val)};dG.qf.prototype.aeu=function(h){this.oH.clVr.v.jitter.v.val=h.target.u();this.DD()};
dG.qf.prototype.a5r=function(h){this.oH.H.v.val=h.target.u();this.DD()};dG.qf.prototype.a8s=function(h){this.oH.Strt.v.val=h.target.u();
this.DD()};dG.qf.prototype.abC=function(h){this.oH.Brgh.v.val=h.target.u();this.DD()};function aa(){ce.call(this,[9,0],!1,null,ce.WT.C_);
this.C5.setAttribute("style","min-width:200px;");this.Ey=D.w("div","hpbody scrollable");this.Ey.style.height="160px";
this.C5.appendChild(this.Ey);this.afh=-1;this.au=[];this.f$=""}aa.prototype=new ce("");aa.prototype.uq=function(h){if(h==null){D.LK(this.Ey);
this.f$="";return}D.LK(this.Ey);var e=0;for(var G=0;G<h.history.length;G++)if(G<=h.Nd&&!h.history[G].Us)e=G;
for(var G=0;G<h.history.length;G++){var $=h.history[G];if($.Us)continue;var Z=new de($,G,e);Z.parent=this;
this.Ey.appendChild(Z.j);this.au.push(Z)}if(h.Nd==h.history.length-1)this.nR()};aa.prototype.nR=function(){this.Ey.scrollTop=this.Ey.scrollHeight};
aa.prototype.B=function(){ce.prototype.B.call(this);for(var G=0;G<this.au.length;G++)this.au[G].B()};
function de(h,G,e){ev.call(this);this.index=G;this.j=D.w("div",G==e?"listitem selected":"listitem");
this.pO=h.name;this.B();if(G>e)this.j.style.opacity=.4;this.j.addEventListener("click",this.yj.bind(this),!1)}de.prototype=new ev;
de.prototype.B=function(){this.j.textContent=e_.get(this.pO)};de.prototype.yj=function(h){if(this.index==this.parent.afh)return;
this.tT({e:"h_itemchange",index:this.index})};de.prototype.tT=function(h){var e=new B(D.E.A,!0);e.data=h;
e.F=f.C_;this.f(e)};function as(){ce.call(this,[9,10],!1,null,ce.WT.a89);var h=D.w("div","padded");this.C5.appendChild(h);
this.J4=new bZ(256,!0);h.appendChild(this.J4.j);this.gT=null}as.prototype=new ce("");as.prototype.uq=function(h){this.gT=h;
this.rv()};as.prototype.rv=function(){var h=this.gT;if(!D.Nn(this.C5))return;if(h==null||h.C.length==0){this.J4.T(s.CN(s.m(4)));
return}var e=h.v2(),$=new O(0,0,h.d,h.v),Z=$.X();if(h.N){var c=h.N.rect,q=s.m(c.X()*4);s.hX(e,$,q,c);
s.FE(h.N.channel,q);e=q;$=c;var E=h.N.channel;Z=0;for(var G=0;G<E.length;G++)Z+=E[G];Z=Math.round(Z/255)}var P=s.CN(e);
P[0][255]+=3*(Z-P[5]);for(var G=1;G<4;G++)P[G][255]+=Z-P[5];this.J4.T(P,Z)};as.prototype.if=function(h,e){this.J4.Dt(iG.zO[h.SW]["--text-color"])};
as.prototype.B=function(){ce.prototype.B.call(this);this.J4.B()};as.prototype.nR=function(){this.rv()};
function bW(){ce.call(this,[9,8],!1,null,ce.WT.a0s);this.Az=D.w("div","padded");this.C5.appendChild(this.Az);
this.N2=new gy(10);this.Az.appendChild(this.N2.j);this.Az.appendChild(D.w("hr"));this.UN=new dJ;this.UN.parent=this;
this.Az.appendChild(this.UN.xv);this.N2.k(D.E.L,this.Nk,this);this.UN.k(D.E.L,this.Nk,this)}bW.prototype=new ce("");
bW.prototype.Nk=function(h){var e;if(h.target==this.N2)e=this.N2.u();else{var $=this.UN.u();e=Math.round($.h)<<16|Math.round($.l)<<8|Math.round($.O)}var Z=new B(D.E.P,!0);
Z.data={e:D.U.Ov,Av:iM.JD,oD:0,G:e};this.f(Z)};bW.prototype.if=function(h,e){var $=h.oV,Z=e==iM.uG;if(e==iM.JD||Z){this.N2.T($);
this.UN.T({h:$>>>16&255,l:$>>>8&255,O:$>>>0&255,yK:"Color #"+s.jT($)})}if(e==iM.z_||Z){var c=h.abq;this.UN.K2(c)}};
function dh(){ce.call(this,[12,72],!1,null,ce.WT.a5S);this.S5=null;this.GY=null;this.Ey=D.w("div","lpbody scrollable");
this.HD=D.w("div","lpfoot");this.C5.appendChild(this.Ey);this.C5.appendChild(this.HD);this.Aa=[];this.k("click",this.q$,this);
this.hE=[];dh.Ek([[17,2],"Save Selection as Channel",[5,3],[5,4]],this.hE,this.HD,this.Zi.bind(this),this.UC.bind(this));
this.Tt=new dW([{name:"Merge Channels",tg:!0}]);this.Tt.k("select",this.cD,this)}dh.prototype=new ce("");
dh.prototype.cD=function(h){if(this.GY==null)return;var e=new B(D.E.P,!0);e.data={e:D.U.tr,yq:"mergechannels"};
this.f(e)};dh.prototype.B1=function(){return this.Tt};dh.Ek=function(h,e,$,Z,c){for(var G=0;G<h.length;
G++){var q=new gg("W",!1,h[G]);e.push(q);D.uh(q.j,Z);$.appendChild(q.j);var E=q.j;E.addEventListener("drop",c,!1);
E.addEventListener("dragover",function(P){P.preventDefault()},!1);E.addEventListener("dragenter",D.pt,!1)}};
dh.g6=function(h,e){for(var G=0;G<h.length;G++)if(h[G].j==e.currentTarget)return G};dh.prototype.Zi=function(h){var e=dh.g6(this.hE,h);
if(e==0)this.f(f9.Ap(!0,null,h));else{e--;var $=new B(D.E.Kz,!0),Z={classID:"null"};if(e==0)Z.null={t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]};
else if(e==1)Z.Nw={t:"Objc",v:{classID:"Chnl",ClrI:{t:"enum",v:{MskI:"SlcA"}},Opct:{t:"long",v:50}}};
else Z.null=bw.NQ("Chnl",!0);$.data={Lw:["duplicate","make","delete"][e],TJ:Z};this.f($)}};dh.prototype.UC=function(h){var e=dh.g6(this.hE,h);
if(e==2){var $=new B(D.E.Kz,!0),Z={classID:"null"};Z.null=bw.NQ("Chnl",!0);$.data={Lw:"duplicate",TJ:Z};
this.f($)}else this.Zi(h)};dh.prototype.te=function(G){var h=this.Aa,e=h[G];if(e==null){var $=D.w("canvas");
e=$.getContext("2d");h.push(e)}return e};dh.prototype.q$=function(h){var e=this.S5.slice(0),$=h.data.NS,Z=e[0]+e[1]+e[2],c=this.GY;
if(-5<$&&$<0){var q=-$-1;if(h.data.Tb){if(q==0)e=Z==3?[0,0,0]:[1,1,1];else{if(e[q-1]==0)e[q-1]=1;else if(!0)e[q-1]=0}}else{if(q==0)e=[1,1,1];
else{e=[0,0,0];e[q-1]=1}c.vw=[]}var E=new B(D.E.A,!0);E.F=f.vc;E.data={e:"setcls",RI:e};this.f(E);return}if(-1<$){var P=c.t[$],a=P.jw==1?P.kV():P.wV(c).r;
if(h.data.Tb)a.rV=!a.rV;else{for(var G=0;G<c.Qe.length;G++)c.Qe[G].rV=!1;c.vw=[]}}else{var j=-$-5,a=c.Qe[j];
if(h.data.Tb)a.rV=!a.rV;else{for(var G=0;G<c.Qe.length;G++)c.Qe[G].rV=!1;a.rV=!0;c.vw=[j]}}c.IL=c.qk=!0};
dh.prototype.nR=function(){this.$T()};dh.prototype.uq=function(h){this.GY=h;this.$T()};dh.prototype.$T=function(){var h=this.GY,e=this.Ey,P=34,a=34,J=4;
D.LK(e);if(h==null||!D.Nn(e))return;var $=h.d,Z=h.v,c=new O(0,0,$,Z),q=this.S5=h.z.RI.slice(0),E=q[0]+q[1]+q[2];
if($>Z)a=Math.round(a*Z/$);else P=Math.round(P*$/Z);var j=["RGB"].concat(es.rt);for(var G=0;G<4;G++){var L=this.te(G);
s.kA.Pv(L,P,a,c,h.v2(),c,!1,G==0?null:G-1);var H=G==0?E==3:q[G-1]==1,_=new f9(-1-G,!0,!0,L,j[G],H,H);
_.parent=this;e.appendChild(_.j)}for(var G=0;G<h.C.length;G++){var S=h.t[h.C[G]],N=S.jw;if(N!=1&&N!=3)continue;
var Y=N==1?S.kV():S.wV(h).r,L=this.te(J+G);J++;s.kA.AB(L,P,a,c,Y);var _=new f9(h.C[G],!0,!0,L,S.getName()+(N==1?"":" Filter")+" Mask",!0,Y.rV);
_.parent=this;e.appendChild(_.j)}for(var G=0;G<h.Qe.length;G++){var Y=h.Qe[G],L=this.te(J+G);s.kA.AB(L,P,a,c,Y);
var _=new f9(-5-G,!0,Y.name=="Quick Mask",L,Y.name,h.vw.indexOf(G)!=-1,Y.rV,f.S$,{e:o.I7,oD:"rnm",NS:G});
_.parent=this;e.appendChild(_.j)}};dh.prototype.Sy=function(h,e){this.Ey.style.height=e-9-25+"px"};dh.prototype.B=function(){ce.prototype.B.call(this);
this.$T();dh.Ha(this.hE,["lrs/makesel","lrs/mask","lrs/newlayer","lrs/bin"])};dh.Ha=function(h,e){for(var G=0;
G<h.length;G++){var $=h[G];$.TQ(D.H$(e[G]))}};function f9(h,e,$,Z,c,q,E,P,a){ev.call(this);this.j=D.w("div","layeritem");
this.a0k=h;this.ajx=e;this.s0=Z;this.afb=P;this.a2J=a;this.$m=D.w("div",q?"head selected":"head");this.$m.setAttribute("style","height: "+40+"px");
var j=D.w("div","headL"),L=D.w("div","headR"),H=15;this.j.appendChild(this.$m);this.$m.appendChild(j);
this.$m.appendChild(L);this.em=D.w("div","eye");if(1<D.M()&&D.M()<1.5)H=H/D.M();this.em.setAttribute("style","background-size: "+H+"px "+H+"px;");
this.em.style.opacity=E?1:.2;if(e)j.appendChild(this.em);this.tp=D.w("div","thumb");if(Z)this.tp.appendChild(Z.canvas);
j.appendChild(this.tp);this.MQ=D.w("div","label");if($)this.MQ.style.fontStyle="italic";this.MQ.textContent=e_.get(c);
j.appendChild(this.MQ);var _=this.$m;_.setAttribute("draggable","true");this.$m.addEventListener("mousedown",this.adQ.bind(this),!1);
if(!$)this.$m.addEventListener("mouseup",this.acA.bind(this),!1)}f9.prototype=new ev;f9.prototype.X2=function(h){var e=new B(D.E.A,!0);
e.F=this.afb;e.data=this.a2J;e.data.name=h;this.f(e)};f9.prototype.adQ=function(h){var e=h.ctrlKey||h.metaKey,$=this.a0k;
if(e&&h.target==this.s0.canvas){this.f(f9.Ap(this.ajx,$,h))}else{var Z=new B("click",!0);Z.data={NS:$,Tb:h.target==this.em,sU:e};
this.f(Z)}};f9.prototype.acA=function(h){if(h.detail==2&&h.target==this.MQ){var e=new ce.JE(this.MQ,this.X2.bind(this))}};
f9.Ap=function(h,e,$){var Z=0;if($.shiftKey)Z++;if($.altKey)Z+=2;var c=new B(D.E.A,!0);c.F=f.$r;if(h){if(-5<e&&e<0){c=new B(D.E.Kz,!0);
c.data=f.LV.Ea(Z,["RGB","Rd","Grn","Bl"][-1-e])}else c.data={e:"fromchannel",py:[e,0,Z]}}else c.data={e:"frompath",py:[e,0,Z]};
return c};function hM(){ce.call(this,[8,9],!1,null,ce.WT.ly);this.S5=null;this.GY=null;this.Ey=D.w("div","lpbody scrollable");
this.HD=D.w("div","lpfoot");this.C5.appendChild(this.Ey);this.C5.appendChild(this.HD);this.C5.addEventListener("click",this.ahi.bind(this),!1);
this.Aa=[];this.k("click",this.q$,this);this.hE=[];dh.Ek([[17,2],"Selection to Path",[5,3],[5,4]],this.hE,this.HD,this.Zi.bind(this),this.UC.bind(this))}hM.prototype=new ce("");
hM.prototype.Zi=function(h){var e=dh.g6(this.hE,h),$;if(e==0)$=f9.Ap(!1,null,h);else if(e==1){$=new B(D.E.Kz,!0);
$.data={Lw:"make",TJ:{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 $=new B(D.E.A,!0);
$.F=f.hO;$.data={e:"pathedit",oD:["new","del"][e-2]}}this.f($)};hM.prototype.UC=function(h){this.Zi(h)};
hM.prototype.te=function(G){var h=this.Aa,e=h[G];if(e==null){var $=D.w("canvas");e=$.getContext("2d");
h.push(e)}return e};hM.prototype.ahi=function(h){if(h.target==this.Ey){var e=this.GY;e.fV=[];e.mG=[];
e.qk=!0;e.IL=!0}};hM.prototype.q$=function(h){var e=h.data.NS,$=this.GY,Z=h.data.sU,c=0,q,E;if(e<0){c=-1-e;
q=$.fV;E=$.mG}else{var P=$.U9()[0];for(var G=0;G<P.length;G++){var a=P[G].NS;if(a==e)break;if(a>=0)c++}q=$.mG;
E=$.fV}if(Z){var j=q.indexOf(c);if(j==-1)q.push(c);else q.splice(j,1)}else{while(q.length!=0)q.pop();
while(E.length!=0)E.pop();q.push(c)}$.qk=!0;$.IL=!0};hM.prototype.nR=function(){this.$T()};hM.prototype.uq=function(h){this.GY=h;
this.$T()};hM.prototype.$T=function(){var h=this.GY,e=this.Ey,P=34,a=34;D.LK(e);if(h==null||!D.Nn(e))return;
var $=h.d,Z=h.v,c=new O(0,0,$,Z),q=this.S5=h.z.RI.slice(0),E=q[0]+q[1]+q[2];if($>Z)a=Math.round(a*Z/$);
else P=Math.round(P*$/Z);var j=h.U9(),L=j[0];for(var G=0;G<L.length;G++){var H=L[G],_=this.te(G);s.kA.a3S(_,P,a,c,H.add.vmsk);
var J=new f9(H.NS,!1,H.NS>=0,_,H.name,j[1].indexOf(G)!=-1,!1,f.hO,{e:"pathedit",oD:"rnm",NS:H.NS});J.parent=this;
e.appendChild(J.j)}};hM.prototype.Sy=function(h,e){this.Ey.style.height=e-9-25+"px"};hM.prototype.B=function(){ce.prototype.B.call(this);
this.$T();dh.Ha(this.hE,["lrs/makesel","lrs/makepath","lrs/newlayer","lrs/bin"])};function i5(h){ce.call(this,[9,h?4:5],!1,null,h?ce.WT.a4c:ce.WT.a3B);
this.C5.setAttribute("style","min-width:240px;");this.aeb=h;this.dY=null;this.D0=null}i5.prototype=new ce("");
i5.prototype.b5=function(){this.dY=new af;var h=this.dY,e=this.C5;h.parent=this;if(this.aeb){var $=D.w("div","marged");
e.appendChild($);$.appendChild(h.a5.j);e.appendChild(D.w("hr"));var Z=D.w("div","marged");e.appendChild(Z);
Z.appendChild(h.O1.j);Z.appendChild(h.zD.j);var c=D.w("div","marged");e.appendChild(c);c.appendChild(h.PK.j);
c.appendChild(h.lH.j);e.appendChild(D.w("hr"));var q=D.w("div","marged");e.appendChild(q);q.appendChild(h.v1.j);
q.appendChild(h.Yt.j);var E=D.w("div","marged");e.appendChild(E);E.appendChild(h.no.j);E.appendChild(h.lX.j);
e.appendChild(D.w("hr"));var P=D.w("div","marged");e.appendChild(P);P.appendChild(h.QV.j);P.appendChild(h.HY.j);
P.appendChild(h.ea.j);P.appendChild(h._$.j);P.appendChild(h.Nt.j);P.appendChild(h.iu.j);P.appendChild(h.qQ.j);
P.appendChild(h.c_.j)}else{var $=D.w("div","marged");e.appendChild($);$.appendChild(h.e6.j);$.appendChild(h.Og.j);
$.appendChild(h.vt.j);$.appendChild(h.ao7.j);$.appendChild(h.a5U.j);$.appendChild(h.a5a.j);$.appendChild(h.a1N.j);
e.appendChild(D.w("hr"));var Z=D.w("div","marged");e.appendChild(Z);Z.appendChild(h.jy.j);Z.appendChild(h.o0.j);
Z.appendChild(h.sd.j);e.appendChild(D.w("hr"));var c=D.w("div","marged");e.appendChild(c);c.appendChild(h.O9.j);
c.appendChild(h.ur.j);c.appendChild(h.Pb.j)}};i5.prototype.nR=function(){if(!D.Nn(this.C5))return;if(this.dY==null){this.b5();
var h=this.D0;if(h)this.dY.T(h.wM,h.R0,h.Cn);this.dY.B()}};i5.prototype.B=function(){ce.prototype.B.call(this);
if(this.dY)this.dY.B()};i5.prototype.if=function(h,e){this.D0=h;if(e!=iM.uG&&e!=iM.s1&&e!=iM.jV&&e!=iM.dQ)return;
if(this.dY)this.dY.T(h.wM,h.R0,h.Cn)};function ez(){ce.call(this,[9,13],!1,null,ce.WT.anK);this.D0=null;
this.abk=null;this.a6I=null;this.Fc=null;this.alO=null;this.Uo=Math.round(290*D.M());this.fx=8;this.ajf=4;
this.y3=new fs(null,["Hi","Hello"]);this.y3.k(D.E.L,this.zM,this);var h=this.Cy=new gg("-",null,null,!0);
h.k("click",this.Uk,this);var e=this.a9S=new gg("+",null,null,!0);e.k("click",this.Uk,this);this.Xu=new dd(!1);
this.Xu.k(D.E.L,this._0,this);this.Xu.j.style.height=20+"em";var $=D.w("div","padded");$.setAttribute("style","width:"+(this.Uo+10)/D.M()+"px;");
this.C5.appendChild($);var top=D.w("div");top.setAttribute("style","margin-bottom:0.5em");$.appendChild(top);
top.appendChild(this.y3.j);top.appendChild(h.j);top.appendChild(e.j);$.appendChild(this.Xu.j)}ez.prototype=new ce("");
ez.prototype._0=function(h){var e=this.Xu.u()*this.fx*this.ajf,$=Math.floor(this.Uo/this.fx)/D.M(),Z=this.Xu.a2N();
e+=Math.floor(Z.y/$)*this.fx;e+=Math.floor(Z.x/$);var c=this.Fc[this.y3.u()];if(e>=c.length)return;var q=c[e],E=this.alO[q];
if(E.hL.length==0){alert("No known character for this glyph");return}var P=String.fromCodePoint(E.hL[0]),a=new B(D.E.A,!0);
a.F=f.kE;a.data={e:"insertText",G:P};this.f(a)};ez.prototype.Uk=function(h){this.fx+=h.target==this.Cy?1:-1;
this.fx=Math.max(1,Math.min(20,this.fx));this.zM()};ez.prototype.nR=function(){this.if(this.D0)};ez.prototype.if=function(h,e){this.D0=h;
if(!D.Nn(this.C5))return;var $=h.wM,Z=$.By.Font,a=0;if(Z==null)return;var c=$.Kr[Z].Name;if(this.abk==c)return;
var Z=h.R0.bE(c);if(Z==null)return;var q=Z.maxp.numGlyphs,E=this.alO=new Array(q);for(var G=0;G<q;G++)E[G]={hL:[]};
var P=Date.now(),j=new Uint8Array(1048575);for(var G=0;G<1048575;G++){var L=Typr.U.codeToGlyph(Z,G);
if(L!=0&&L<q){j[G]=1;if(E[L].hL.length==0)a++;E[L].hL.push(G)}}var H=ez.wX,_=[];for(var G=0;G<H.length;
G++)_.push([]);for(var L=1;L<q;L++){_[0].push(L);var J=E[L].hL[0];if(J==null){continue}for(var S=1;S<H.length;
S++){var N=H[S]._u;for(var G=0;G<N.length;G+=2)if(N[G]<=J&&J<=N[G+1]){_[S].push(L);break}}}this.Fc=_;
var Y=[];for(var G=0;G<H.length;G++)Y.push(H[G].S_+" ("+_[G].length+")");var U=this.y3.u();this.y3.uK(Y);
this.y3.T(U);this.abk=c;this.a6I=Z;this.zM()};ez.prototype.zM=function(h){var e=this.Fc[this.y3.u()],$=e.length,Z=this.a6I,c=Typr.U,q=Math.floor(this.Uo/this.fx),E=q,P=E*.8,a=E*.8/Z.head.unitsPerEm,j=[],L=D.w("canvas"),H=L.getContext("2d"),_=this.fx,J=Math.ceil($/_),S=this.ajf;
L.width=q*_;L.height=E*S;H.strokeStyle="rgba(0,0,0,0.3)";var N=Date.now();for(var Y=0;Y<J;Y+=S){H.fillStyle="white";
H.fillRect(0,0,_*q,E*S);for(var U=0;U<S;U++){for(var g=0;g<_;g++){var G=e[(Y+U)*_+g];if(G==null)break;
var M=c.glyphToPath(Z,G),C=s.a.Be(M.crds);if(!C.nK()){H.fillStyle="#252525";H.beginPath();var y=g*q+(q-C.d*a)*.5-C.x*a,i=U*E+P;
H.translate(y,i);H.scale(a,-a);c.pathToContext(M,H);H.scale(1/a,-1/a);H.translate(-y,-i);H.fill()}}}H.beginPath();
for(var g=0;g<_;g++){var Q=g*q+q+.5;H.moveTo(Q,0);H.lineTo(Q,E*S)}for(var U=0;U<S;U++){var m=U*E+E+.5;
H.moveTo(0,m);H.lineTo(_*q,m)}H.stroke();j.push(L.toDataURL("image/png"))}this.Xu.Go(j,null,q*_,E*S)};
ez.wX=[{S_:"All Glyphs"},{S_:"Basic Latin, Latin 1",_u:[0,127,128,143]},{S_:"Latin Extended-A",_u:[256,383]},{S_:"Latin Extended-B",_u:[384,591]},{S_:"Punctuations",_u:[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]},{S_:"Greek",_u:[880,1023]},{S_:"Cyrillic",_u:[1024,1279]},{S_:"Hebrew",_u:[1424,1535]},{S_:"Arabic",_u:[1536,1791]},{S_:"Emoji",_u:[9728,10095,127744,129535]}];
function h3(){ce.call(this,[13,0],!1,null,ce.WT.JD);this.FB=0;this.alc=0;this.D0=null;var h=D.w("div","flexrow padded");
this.C5.appendChild(h);var e=D.w("div");h.appendChild(e);this.gX=[];for(var G=0;G<2;G++){var $=new fx;
this.gX.push($);$.k("click",this.ans,this);e.appendChild($.j)}this.vE=new bg(192);this.vE.k(D.E.L,this.fm,this);
h.appendChild(this.vE.j)}h3.prototype=new ce("");h3.prototype.ans=function(h){this.FB=this.gX.indexOf(h.currentTarget);
this.rv()};h3.prototype.fm=function(h){var e=this.vE.u();this.vE.T(e);var $=Math.round(e.h*255)<<16|Math.round(e.l*255)<<8|Math.round(e.O*255),Z=new B(D.E.P,!0);
Z.data={e:D.U.Ov,Av:iM.JD,oD:this.FB,G:$};this.f(Z);this.alc=Date.now()};h3.prototype.rv=function(){var h=this.D0,e=this.FB,$=[h.oV,h.XK];
for(var G=0;G<2;G++){var Z=this.gX[G],c=Z.j.style;Z.Dt($[G]);if(G==e)delete c.borderColor;else c.borderColor="var(--bg-color)"}var q=$[e];
if(Date.now()-this.alc>100)this.vE.T({h:(q>>>16)/255,l:(q>>>8&255)/255,O:(q&255)/255})};h3.prototype.if=function(h,e){this.D0=h;
if(e==iM.uG||e==iM.JD)this.rv()};h3.prototype.nR=function(){this.rv()};function bq(){ce.call(this,"CSS",!1,null,ce.WT.CSS);
this.gT=null;var h=D.w("div","padded");this.C5.appendChild(h);this.TU=D.w("textarea");this.TU.setAttribute("rows",16);
this.TU.setAttribute("style","display:block;tab-size:4; font-family:monospace; width:98%; min-width:270px;");
h.appendChild(this.TU)}bq.prototype=new ce("");bq.prototype.uq=function(h){this.gT=h;this.rv()};bq.prototype.if=function(h,e){if(e==iM.jV)this.rv()};
bq.prototype.rv=function(){var h=this.gT;if(h==null||h.C.length==0)return;if(!D.Nn(this.C5))return;var e=h.t[h.C[0]],$=CSS.alv(e,h);
if($.length!=0)this.TU.value=$.join(";\n")+";";else this.TU.value=""};bq.prototype.nR=function(){this.rv()};
function bd(){ce.call(this,[9,6],!1,null,ce.WT.a3m);this.C5.setAttribute("style","min-width:240px;");
this.gT=null;this.D0=null;var h=D.w("div","marged row");this.C5.appendChild(h);var e=D.w("div","cell");
e.setAttribute("style","width:10em");h.appendChild(e);var $=D.w("div","cell");$.setAttribute("style","width:10em");
h.appendChild($);this.am7=[];for(var G=0;G<4;G++){var Z=new cZ("");this.am7.push(Z);e.appendChild(Z.j);
D.vV(e)}this.C5.appendChild(D.w("hr",""));var c=D.w("div","marged row");this.C5.appendChild(c);var e=D.w("div","cell");
e.setAttribute("style","width:10em");var $=D.w("div","cell");$.setAttribute("style","width:10em");c.appendChild(e);
c.appendChild($);this.cE=new cZ("");e.appendChild(this.cE.j);D.vV(e);this.Jd=new cZ("");e.appendChild(this.Jd.j);
this.Oq=new cZ("");$.appendChild(this.Oq.j);D.vV($);this.Rm=new cZ("");$.appendChild(this.Rm.j);this.cE.T("X: 100 px");
this.Jd.T("Y: 100 px");this.Oq.T("W: 0");this.Rm.T("H: 0")}bd.prototype=new ce("");bd.prototype.oX=function(h,e,$,Z,c){if(!D.Nn(this.C5)||h==null)return;
var q=h.z.QX(c.x,c.y),E=new eu(Math.floor(q.x),Math.floor(q.y));if(!c.xo){var P=0,a=0,j=0,L=0,H=this.am7;
if(!c.xo&&!h.a3L()&&new O(0,0,h.d-1,h.v-1).B4(E)){var _=h.v2(),G=h.d*E.y+E.x<<2;P=_[G+0];a=_[G+1];j=_[G+2];
L=_[G+3]}H[0].T("R: "+P);H[1].T("G: "+a);H[2].T("B: "+j);H[3].T("A: "+L)}this.cE.T("X: "+s.IQ.MB(E.x,h.Ay,$,h.d));
this.Jd.T("Y: "+s.IQ.MB(E.y,h.Ay,$,h.v));this.vl()};bd.prototype.vl=function(){var h=this.gT,e=this.D0,$=0,Z=0;
if(h&&e){if(h.z.og){$=h.z.og.d;Z=h.z.og.v}else if(h.N){$=h.N.rect.d;Z=h.N.rect.v}$=s.IQ.MB(Math.abs($),h.Ay,e,h.d);
Z=s.IQ.MB(Math.abs(Z),h.Ay,e,h.v)}this.Oq.T(e_.get([12,41]).charAt(0)+": "+$);this.Rm.T(e_.get([12,42]).charAt(0)+": "+Z)};
bd.prototype.B=function(){ce.prototype.B.call(this);this.vl()};bd.prototype.uq=function(h,e,$){this.gT=h;
this.D0=$;this.vl()};function db(){ce.call(this,[9,1],!1,null,ce.WT.S$);this.x4=null;this.q4=null;this.ny=null;
this.$m=D.w("div","lphead");this.Ey=D.w("div","lpbody scrollable");this.HD=D.w("div","lpfoot");this.LI=new fs(null,eN.sF,!1,eN.$j);
this.LI.k(D.E.L,this.ahd,this);this.$m.appendChild(this.LI.j);this.Wx=new hr([12,0],0,100,"%",0);this.Wx.k(D.E.L,this.alU,this);
this.Wx.parent=this;this.$m.appendChild(this.Wx.j);this.rZ=new gv([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.rZ.k(D.E.L,this.abS,this);this.$m.appendChild(this.rZ.j);this.J5=new hr([12,26],0,100,"%",0);this.J5.k(D.E.L,this.a5p,this);
this.J5.parent=this;this.$m.appendChild(this.J5.j);this.hE=[];this.Ek();this.C5.appendChild(this.$m);
this.C5.appendChild(this.Ey);this.Ey.addEventListener("dragover",function($){$.preventDefault()},!1);
this.Ey.addEventListener("dragenter",D.pt,!1);this.Ey.addEventListener("drop",this.acv.bind(this),!1);
this.C5.appendChild(this.HD);this.C5.addEventListener("contextmenu",D.pt,!1);var h=bY.z3(!0),e=bY.mX(!0);
this.a95=new dW(h,e);var h=[{name:[14,10]},{name:[14,11],lv:!0},{name:[6,0]},{name:[11,4]},{name:[5,4],lv:!0},{name:[6,7]},{name:"New Smart Obj. via Copy",Q:function($){return{Q:$.t[$.C[0]].add.SoLd!=null}},lv:!0},{name:[6,8],Q:function($){var Z=$.t[$.C[0]];
if(Z.add.TySh||Z.add.SoLd||Z.add.SoCo||Z.add.GdFl||Z.add.PtFl)return{Q:!0};return{Q:!1}}},{name:[6,34],Q:function($){var Z=$.t[$.C[0]];
return{Q:Z.add.lmfx!=null&&!Z.vG()}}},{name:[6,40],lv:!0,Q:function($){var Z=$.t[$.C[0]];return{Q:Z.add.TySh!=null}}},{name:"",lv:!0,Q:function($){var Z=$.t[$.C[0]],c=Z.add.TySh,q=c?c.Kx:null;
return{Q:c!=null&&q.Curve==null,V2:e_.get(c&&gK.De(q)==0?[16,3,1]:[16,3,0])}}},{name:[6,6,0],lv:!0,Q:function($){return{Q:$.Lk($.C[0]),P8:$.t[$.C[0]]._U}}},{name:[11,6],lv:!0,sub:[{name:[5,1],Q:function($){var Z=$.t[$.C[0]];
return{Q:Z.add.lmfx!=null}}},{name:[5,2]},{name:[2,2],Q:function($){var Z=$.t[$.C[0]];return{Q:Z.add.lmfx!=null}}}]},{name:[6,10],Q:function($){return{Q:$.C.length==1&&$.C[0]!=0&&!$.t[$.C[0]].vG()}}},{name:[6,12,0],Q:function($){return{Q:$.C.length>1||$.t[$.C[0]].vG()}}},{name:[6,12,1],lv:!0},{name:[13,0],sub:function(){var $=[[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 G=0;G<$.length;G++)Z.push({name:$[G]});return Z}()}],e=[{c:D.E.P,g:{e:D.U.tr,yq:"layerstyle"}},{c:D.E.A,F:f.$r,g:{e:"fromlayer",py:[null,0,0]}},{c:D.E.A,F:f.S$,g:{e:o.pA}},{c:D.E.P,g:{e:D.U.tr,yq:"duplinto"}},{c:D.E.A,F:f.S$,g:{e:o.Ml}},{c:D.E.Kz,g:{Lw:"newPlacedLayer"}},{c:D.E.A,F:f.S$,g:{e:o.LF}},{c:D.E.Kz,g:{Lw:"rasterizeLayer",TJ:{classID:"rasterizeLayer",null:bw.NQ("Lyr",!0)}}},{c:D.E.A,F:f.S$,g:{e:o.Wz}},{c:D.E.A,F:f.S$,g:{e:o.Rd}},{c:D.E.A,F:f.kE,g:{e:"switchPntPrgr"}},{c:D.E.A,F:f.S$,g:{e:o.C9}},{sub:[{c:D.E.A,F:f.aQ,g:{e:"st_copy"}},{c:D.E.A,F:f.aQ,g:{e:"st_paste"}},{c:D.E.A,F:f.aQ,g:{e:"st_clear"}}]},{c:D.E.A,F:f.S$,g:{e:o.lb}},{c:D.E.A,F:f.S$,g:{e:o.U1}},{c:D.E.A,F:f.S$,g:{e:o.YY}},{sub:function(){var $=[];
for(var G=0;G<8;G++)$.push({c:D.E.A,F:f.S$,g:{e:o.Eo,a79:G}});return $}()}];this.fo=new dW(h,e);var h=[{name:[6,45],Q:function($){var Z=$.t[$.C[0]];
return{Q:Z.wV($).r==null}}},{name:[6,47]}],e=[{c:D.E.A,F:f.S$,g:{e:o.jh}},{c:D.E.A,F:f.S$,g:{e:o.Ko}}];
this.ahG=new dW(h,e);var h=[{name:"enab/disab",Q:function($){return{V2:e_.get($.t[$.C[0]].kV().isEnabled?[6,15]:[6,14])}}},{name:[6,22]},{name:[5,8],Q:function($){return{Q:$.Jh(!1,!0)}}}],e=[{c:D.E.A,F:f.S$,g:{e:o.HW}},{c:D.E.A,F:f.S$,g:{e:o.Y_}},{c:D.E.A,F:f.S$,g:{e:o.aM}}];
this.ahz=new dW(h,e);var h=[{name:"enab/disab",Q:function($){return{V2:e_.get($.t[$.C[0]].wV($).r.isEnabled?[6,42]:[6,41])}}},{name:[6,46]}],e=[{c:D.E.A,F:f.S$,g:{e:o.l0}},{c:D.E.A,F:f.S$,g:{e:o.Yc}}];
this.a8g=new dW(h,e);var h=[{name:"enab/disab",Q:function($){return{V2:e_.get($.t[$.C[0]].add.vmsk.isEnabled?[6,17]:[6,16])}}},{name:[6,24]}],e=[{c:D.E.A,F:f.S$,g:{e:o.ps}},{c:D.E.A,F:f.S$,g:{e:o.iq}}];
this.a3$=new dW(h,e);this.ahX=new dW(bY.Ph(!0),bY.EF(!0));this.a59=new dW(bY.z3(),bY.mX());this.k("rclick",this.anZ,this)}db.prototype=new ce("");
db.prototype.acv=function(h){D.pt(h);var e=h.dataTransfer.getData("Text"),$=1,Z=0;if(e==""){D.SC(h,this,this.ny.indexOf(this.q4),Z+($>.5?0:1))}else if(e!="--panel"){var e=JSON.parse(e),c=e.wx;
if(c=="l")this.tT({e:o.T9,source:e.Hk,target:Z,yM:$})}};db.prototype.A8=function(){return new eu(253,0)};
db.prototype.anZ=function(h){var e=this.q4,$=h.data,c;if(e.C.indexOf($.$)==-1){var Z={e:o.II,$:h.target.h6.index,Fy:$.jw};
this.tT(Z)}if(e.C.indexOf($.$)==-1)return;if($.jw==1){c=this.ahz}else if($.jw==2){c=this.a3$}else if($.jw==3){c=this.a8g}else if($.jw==4){c=this.ahG}else if($.jw==5){c=this.a95}else{c=this.fo}c.B();
c.update(e);c.parent=this;var q=new B(D.E.P,!0);q.data={e:D.U.sH,yv:c,x:$.NY.x+1,y:$.NY.y+1};this.f(q)};
db.prototype.B=function(){ce.prototype.B.call(this);this.LI.B();this.Wx.B();this.rZ.B();this.J5.B();
if(this.q4)this.uq(this.q4);var h="lrs/link lrs/fx lrs/adj lrs/mask lrs/folder lrs/newlayer lrs/bin".split(" ");
for(var G=0;G<this.hE.length;G++){var e=this.hE[G];e.TQ(D.H$(h[G]))}};db.prototype.uq=function(h,e){if(h&&!h.uu)return;
if(h==null)D.so(this.C5,"disabled");else D.ma(this.C5,"disabled");this.q4=h;this.ny=e;if(this.x4!=null){this.Ey.removeChild(this.x4.Ey);
this.x4=null}if(h==null)return;this.x4=new fL(h.root,this,h,{Nr:0});this.Ey.appendChild(this.x4.Ey);
if(h.C.length==0||h.t[h.C[0]]==null)D.so(this.$m,"disabled");else{D.ma(this.$m,"disabled");if(h.C.length==1&&h.j3)this.x4.fM(h.C);
var $=h.t[h.C[0]];if($.vG()){this.LI.uK([[15,10,27]].concat(eN.sF),[1].concat(eN.$j));var Z=eN.Pn.indexOf($.oG);
this.LI.T(Z+1)}else{this.LI.uK(eN.sF,eN.$j);var Z=eN.Pn.indexOf($.oG);this.LI.T(Z)}this.Wx.T(Math.round(100*$.opacity/255));
this.rZ.T([$.ra(0),$.ra(1),$.ra(2),$.ra(31)]);this.J5.T(Math.round(100*($.add.iOpa!=null?$.add.iOpa/255:1)))}};
db.prototype.Sy=function(h,e){var $=this.$m.getBoundingClientRect().height,Z=59;if($>70)Z=84;if($>100)Z=108;
var c=e-(Z+37);this.Ey.style.height=c+"px"};db.prototype.ahd=function(h){this.tT({e:o.fC,El:this.LI.u()})};
db.prototype.alU=function(h){this.tT({e:o.uz,El:Math.round(255*this.Wx.u()/100)})};db.prototype.abS=function(h){this.tT({e:o.yT,El:[this.rZ.u(),[0,1,2,31]]})};
db.prototype.a5p=function(h){this.tT({e:o.xM,El:Math.round(255*this.J5.u()/100)})};db.prototype.ag9=function(h){this.Un(h,this.ahX)};
db.prototype.agI=function(h){this.Un(h,this.a59)};db.prototype.Un=function(h,e){var $=h.currentTarget;
if(D.Nn(e.j))return;h.stopPropagation();var Z=$.getBoundingClientRect();e.B();e.update(this.q4);e.parent=this;
var c=new B(D.E.P,!0);c.data={e:D.U.sH,yv:e,x:Z.left,y:Z.top,a2_:!0};this.f(c)};db.prototype.a7W=function(h){this.tT({e:o.BN})};
db.prototype.a8M=function(h){this.tT({e:this.q4.C.length>1?o.VT:o.u0})};db.prototype.ai_=function(h){this.tT({e:o.kd})};
db.prototype.a00=function(h){this.tT({e:o.Ml})};db.prototype.a7_=function(h){this.tT({e:o.dq})};db.prototype.tT=function(h){var e=new B(D.E.A,!0);
e.data=h;e.F=f.S$;this.f(e)};db.prototype.Ek=function(){var h=[[6,54,0],[11,6],[6,1],[6,21],[6,20],[6,13],[6,31]],e=[this.a7_,this.agI,this.ag9,this.a7W,this.a8M,this.ai_,this.a00],$=this.a2b.bind(this);
for(var G=0;G<h.length;G++){var Z=new gg("W",!1,h[G]);this.hE.push(Z);D.uh(Z.j,e[G].bind(this));this.HD.appendChild(Z.j);
if(G>=h.length-3){var c=Z.j;c.addEventListener("drop",$,!1);c.addEventListener("dragover",function(q){q.preventDefault()},!1);
c.addEventListener("dragenter",D.pt,!1)}}};db.prototype.a2b=function(h){D.pt(h);var e=0,$=this.hE;while($[e].j!=h.currentTarget)e++;
$[e].Qv();var Z=h.dataTransfer.getData("Text");if(Z=="")return;var Z=JSON.parse(Z);if(Z.wx=="l"){var c={e:[o.VT,o.pA,o.Ml][e-4]};
if(this.q4.C.indexOf(Z.Hk)==-1)c.$=Z.Hk;this.tT(c)}if(e!=6)return;if(Z.wx=="sm"||Z.wx=="s"){var q=new B(D.E.A,!0);
q.F=f.aQ;q.data={e:Z.wx=="sm"?"st_clear":"st_delsingle",$:Z.Hk,Hk:Z.AW};this.f(q)}if(Z.wx=="fm"||Z.wx=="f"){this.tT({e:Z.wx=="fm"?o.Ko:o.iZ,src:Z.Hk,AW:Z.AW})}if(Z.wx=="m"||Z.wx=="vm"){this.tT({e:Z.wx=="m"?o.Y_:o.iq,$:Z.Hk})}};
function fL(h,e,$,Z){ev.call(this);this.parent=e;this.h6=h;this.U3=[];this.j=D.w("div","layeritem");
var c=h.$,g=15,x=!1;this.$m=D.w("div",$.C.indexOf(h.index)!=-1?"head selected":"head");if(h.$.add.artb!=null)D.so(this.$m,"artb");
this.$m.setAttribute("style","height: "+(c.a3M+10)+"px");var q=D.w("div","headL"),E=D.w("div","headR"),P=D.w("div","lpineck");
this.Ey=D.w("div","lpibody");this.j.appendChild(this.$m);this.$m.appendChild(q);this.$m.appendChild(E);
if(c.ll()||c.fi())if(c.Kl())this.j.appendChild(P);var a=this.$m;a.setAttribute("draggable","true");a.addEventListener("dragstart",this.tW.bind(this),!1);
a.addEventListener("drop",this.rr.bind(this),!1);a.addEventListener("dragover",this.rF.bind(this),!1);
a.addEventListener("dragenter",D.pt,!1);a.addEventListener("dragleave",this.Q8.bind(this),!1);var j=[],L=[],H=D.w("div");
this.em=D.w("div","eye");H.appendChild(this.em);var _=D.w("div","space");this.MQ=D.w("div","label");
this.MQ.setAttribute("style","max-width:calc(100% - "+(96+h.depth*20)+"px)");this.MQ.textContent=c.getName();
this.hj=D.w("div","lock");this.a5D=D.w("div","lrfx");this.mj=D.w("div","arfx");var J=this.a5I.bind(this),S=this.a2W.bind(this);
this.$m.addEventListener("click",S,!1);this.$m.addEventListener("contextmenu",J,!1);var N=[0,16711680,16748544,16763904,4513024,22015,11141375,7829367],Y=c.add.lclr==null?0:N[c.add.lclr];
if(Y==0)Y=Z.Nr;var U=[Y>>16,Y>>8&255,Y&255];for(var G=0;G<3;G++){U[G]=Math.round(.5*U[G]+.5*220)}if(1<D.M()&&D.M()<1.5)g=g/D.M();
H.setAttribute("style","background-color:rgba("+U.join(",")+","+(Y==0?0:1)+");");this.em.setAttribute("style","background-size: "+g+"px "+g+"px;");
var M=this.al2.bind(this);H.addEventListener("mousedown",M,!1);H.addEventListener("mouseover",M,!1);
this.MQ.addEventListener("pointerup",this.amS.bind(this),!1);this.mj.addEventListener("click",this.aco.bind(this),!1);
j[0]=H;j[1]=_;j[10]=this.MQ;if(c.vG()){var C=D.w("div","arrow"),y=D.w("div","folder");C.addEventListener("click",this.aha.bind(this),!1);
j[2]=C;j[3]=y;if(c.add.lsct==hJ.sE){for(var G=h.children.length-1;G>=0;G--){var i=new fL(h.children[G],e,$,{Nr:Y});
this.U3.push(i);this.Ey.appendChild(i.j)}this.j.appendChild(this.Ey)}C.setAttribute("class",c.add.lsct==hJ.sE?"open":"closed")}else{this.tp=D.w("div","thumb");
j[5]=this.tp;this.tp.appendChild(c.Wb.canvas)}var Q=c.kV();if(Q){this.l7=D.w("div","chain");this.m2=D.w("div","thumb");
this.m2.setAttribute("draggable","true");this.m2.appendChild(h.$.alj.canvas);this.l7.style.opacity=Q.MV?1:0;
this.l7.addEventListener("click",this.a7j.bind(this),!1)}var m=c.SV()&&c.add.vmsk;if(c.add.vmsk&&!m){this.kf=D.w("div","chain");
this.qg=D.w("div","thumb");this.qg.setAttribute("draggable","true");this.qg.appendChild(h.$.a7U.canvas);
this.kf.style.opacity=c.add.vmsk.MV?1:0;this.kf.addEventListener("click",this.alI.bind(this),!1)}if(c.fi()&&c.wV($).r){this.Qn=D.w("div","thumb");
this.Qn.appendChild(h.$.a18.canvas);this.Qn.addEventListener("click",S,!1);this.Qn.addEventListener("contextmenu",J,!1)}if(c.ll()){this.a3b=P;
P.addEventListener("contextmenu",J,!1);var n=new db.Zy(e_.get([12,1]),"sm","layerstyle",h.depth,0,null);
n.parent=this;P.appendChild(n.j);var u=c.add.lmfx,K=u.masterFXSwitch.v;n.QL(K);for(var G=0;G<c3.order.length;
G++){var F=u[c3.qV[G]].v;if(F.length==0)continue;for(var b=0;b<F.length;b++){var n=new db.Zy(e_.get(c3.names[G]),"s","layerstyle",h.depth,1,[G,b]);
n.QL(K&&F[b].v.enab.v);n.parent=this;P.appendChild(n.j)}}}if(c.fi()){var n=new db.Zy(e_.get([12,55]),"fm",null,h.depth,0,-1,c.wV($).r?this.Qn:null);
n.parent=this;P.appendChild(n.j);this.a40=n.j;this.a40.addEventListener("contextmenu",J,!1);var u=c.add.SoLd.filterFX.v,d=u.filterFXList.v,K=u.enab.v;
n.QL(K);for(var G=d.length-1;G>=0;G--){var W=d[G].v,A=dA.bo(W);if(es.VZ[A])A=es.VZ[A];var z=W.Nm.v;if(dA.names[A])z=e_.get(dA.names[A]);
if(es.names[A])z=e_.get(es.names[A]);var T="afw_"+A,n=new db.Zy(z,"f",T,h.depth,1,G);n.QL(K&&W.enab.v);
n.parent=this;P.appendChild(n.j)}}if($.t.indexOf(c)==$.C[0]){var R=c.jw,I;if(R<=0)I=this.tp;else if(R==1)I=this.m2;
else if(R==3)I=this.Qn;if(I)I.setAttribute("class","thumb active");if(c.Hy&&this.qg)this.qg.setAttribute("class","thumb active")}H.style.opacity=c.o6()?1:.25;
_.setAttribute("style","width:"+Math.max(0,h.depth-1)*18+"px");var r=c.add.lspf!=null&&c.add.lspf!=0;
this.hj.style.opacity=c.ra(31)?1:.5;j[4]=c._U?D.w("div","clipp"):null;j[6]=Q?this.l7:null;j[7]=Q?this.m2:null;
j[8]=c.add.vmsk&&!m?this.kf:null;j[9]=c.add.vmsk&&!m?this.qg:null;var X=c.MX,l=$.C;if(X!=0)for(var G=0;
G<l.length;G++)if($.t[l[G]].MX==X){x=!0;break}L[0]=x?D.w("div","link"):null;L[1]=r?this.hj:null;L[2]=c.ll()?this.a5D:null;
L[3]=c.ll()||c.fi()?this.mj:null;this.mj.setAttribute("class",c.Kl()?"arfx open  gsicon":"arfx closed  gsicon");
var hH=j;for(var G=0;G<hH.length;G++)if(hH[G])q.appendChild(hH[G]);hH=L;for(var G=0;G<hH.length;G++)if(hH[G])E.appendChild(hH[G])}fL.prototype=new ev;
fL.prototype.fM=function(h){var e=this.h6.index;if(h.indexOf(e)!=-1){if(this.j.scrollIntoView)this.j.scrollIntoView({block:"nearest"})}for(var G=0;
G<this.U3.length;G++)this.U3[G].fM(h)};fL.bG=function(h,e){var $=e.getBoundingClientRect();return(h.clientY-$.top)/$.height};
fL.prototype.tW=function(h){h.stopPropagation();var e=h.target==this.m2?"m":h.target==this.qg?"vm":"l";
h.dataTransfer.setData("Text",JSON.stringify({wx:e,Hk:this.h6.index}))};fL.prototype.Q8=function(h){D.pt(h);
this.Zj()};fL.prototype.rr=function(h){D.pt(h);this.Zj();var e=h.dataTransfer.getData("Text"),$=this.parent.q4,Z=fL.bG(h,this.$m),c=this.h6.index;
if(Z>.8){var q=!0,E=$.root.fH(c);while(E.parent!=null){var P=E.parent,a=P.children;if(a.indexOf(E)!=0)q=!1;
E=E.parent}if(q){c=0;Z=1}}if(e==""){D.SC(h,this,this.parent.ny.indexOf($),c+(Z>.5?0:1))}else if(e!="--panel"){var e=JSON.parse(e),j=e.wx;
if(j=="l")this.tT({e:o.T9,source:e.Hk,target:c,yM:Z});else if(j=="m"||j=="vm")this.tT({e:j=="m"?o.Qu:o.w6,src:e.Hk,Lh:c,mW:h.altKey});
else fL.bZ(h,e,this)}};fL.bZ=function(h,e,$,Z){var c=e.wx,q=$.h6.index,E=e.Hk;if(c=="s"||c=="sm")$.tT({e:o.KW,src:E,Lh:q,AW:e.AW,mW:h.altKey});
if(c=="f"||c=="fm")$.tT({e:o.$R,src:E,Lh:q,AW:e.AW,Rp:Z==null?0:Z,mW:h.altKey})};fL.prototype.rF=function(h){D.pt(h);
var e=fL.bG(h,this.$m);this.Zj();var $=e>.5?"-bottom":"-top";if(this.h6.$.vG()&&.5<e&&e<.8)$="";this.$m.style["border"+$]="3px solid rgba(0,0,0,0.5)";
this.$m.style.margin=$==""?"-3px 0 -3px 0":$=="-top"?"-3px 0 0 0":"0 0 -3px 0"};fL.prototype.Zj=function(h){this.$m.style.border="none";
this.$m.style.margin="0"};fL.wu=-1;fL.VQ=!1;fL.Gl=function(h){fL.VQ=!1;document.body.removeEventListener("mouseup",fL.Gl)};
fL.prototype.al2=function(h){if(h.button!=0)return;if(h.type=="mousedown"){fL.VQ=!0;document.body.addEventListener("mouseup",fL.Gl,!1)}if(h.type=="mouseover"&&(!fL.VQ||fL.wu==this.h6.index))return;
D.pt(h);this.tT({e:o.dw,$:this.h6.index});fL.wu=this.h6.index};fL.prototype.aha=function(h){D.pt(h);
this.tT({e:o.PR,$:this.h6.index})};fL.prototype.a7j=function(h){this.tT({e:o.uv,$:this.h6.index})};fL.prototype.alI=function(h){this.tT({e:o.LP,$:this.h6.index})};
fL.w3=0;fL.prototype.amS=function(h){var e=fL.w3;fL.w3=Date.now();if(Date.now()-e>300)return;h.preventDefault();
h.stopPropagation();this.$m.setAttribute("draggable","false");var $=new ce.JE(this.MQ,this.X2.bind(this))};
fL.prototype.X2=function(h){this.tT({e:o.WG,$:this.h6.index,name:h})};fL.prototype.aco=function(h){this.tT({e:o.y1,$:this.h6.index})};
fL.prototype.a5I=function(h){if(this.zR(h,h.target,this.jw(h)))return;var e=h.sourceCapabilities;if(e)e=e.firesTouchEvents;
if(h.button!=2&&e!=!0)return;var $=this.jw(h);if($!=3&&h.currentTarget==this.a40)$=4;if(h.target==this.a5D||h.currentTarget==this.a3b)$=5;
var Z=new B("rclick",!0);Z.data={$:this.h6.index,jw:$,NY:D.q6(h,document.body)};this.f(Z)};fL.prototype.jw=function(h){var e=h.target,$=e.parentNode;
return $==this.qg?2:$==this.m2?1:$==this.tp?0:$==this.Qn?3:-1};fL.prototype.a2W=function(h){var e=h.target,L;
if(e==this.em||e==this.mj||e==this.l7||e==this.kf||e.tagName&&e.tagName.toLowerCase()=="input")return;
var $=this.jw(h),Z=this.parent.q4,c=this.h6.index,q=Z.t[c];if(e==this.hj){this.tT({e:o.yT,$:c,El:[[!1,!1,!1,!1,!1],[0,1,2,3,31]]});
return}if(h.button==0&&h.detail==2){if(e==this.MQ)return;var E=new B(D.E.A,!0),P=new B(D.E.P,!0),a=new B(D.E.Kz,!0);
if($==0&&q.add.SoCo){var j=s.Y.LX(q.add.SoCo.Clr.v);P.data={e:D.U.tr,yq:"colorpicker",Nr:j.h<<16|j.l<<8|j.O,Nb:function(J){var S=s.Y.lp({O:J&255,l:J>>>8&255,h:J>>16&255});
S={classID:"null",Clr:{t:"Objc",v:S}};var N=new B(D.E.A,!0);N.F=f.S$;N.data={e:o.Rh,DL:[c],gU:!0,G:{cp:1,mQ:S}};
this.f(N)}.bind(this),ii:!0}}else if($==0&&(es.get(q.add)||q.add.SoCo||q.add.GdFl||q.add.PtFl))P.data={e:D.U.$Z,yq:ce.WT.RJ};
else if($!=0&&$!=-1)P.data={e:D.U.$Z,yq:ce.WT.RJ};else if($==0&&q.add.SoLd)a.data={Lw:"placedLayerEditContents",TJ:{classID:"placedLayerEditContents"}};
else if($==0&&q.add.TySh){E.F=f.kE;E.data={e:"editCurr",xU:c}}else P.data={e:D.U.tr,yq:"layerstyle",$:c};
this.f(a.data?a:P.data?P:E);return}if(this.zR(h,e,$))return;if(h.button!=0)return;if($==1||$==3){var H=$==3?q.wV(Z).r:q.kV();
L=H.rV?Z.z.RI.join("")=="111"?1:2:0}var _={e:o.II,$:c,Fy:$};this.tT(_);if(h.altKey){if($==1||$==3){var E=new B(D.E.A,!0);
E.F=f.dc;E.data={e:"mskView",G:L!=0?0:h.shiftKey?1:2};this.f(E)}else{this.tT({e:o.C9,$:c})}return}};
fL.prototype.zR=function(h,e,$){if((h.ctrlKey||h.metaKey)&&($==0||$==1||$==2)){var Z=0;if(h.shiftKey)Z++;
if(h.altKey)Z+=2;var c=new B(D.E.A,!0);c.F=f.$r;c.data={e:"fromlayer",py:[this.h6.index,$,Z]};this.f(c);
return!0}return!1};fL.prototype.tT=function(h){var e=new B(D.E.A,!0);e.data=h;e.F=f.S$;this.f(e)};db.Zy=function(h,e,$,Z,c,q,E){ev.call(this);
this.abD=e;this.$t=$;this.index=q;this.j=D.w("div","styleitem");this.$m=D.w("div","head");this.aa4=null;
if(e=="f"){var P=this.aa4=D.w("div","headR");P.textContent="\u2699";this.$m.appendChild(P)}this.Yx=D.w("div","eye gsicon");
this.MQ=D.w("div","label");this.j.appendChild(this.$m);this.$m.appendChild(this.Yx);if(E){this.m2=E;
this.$m.appendChild(this.m2);this.$m.setAttribute("style","height: "+(E.firstChild.height/D.M()+10)+"px")}this.MQ.innerHTML=h;
this.j.setAttribute("style","margin-left: "+(24+Z*16+c*22)+"px");this.$m.appendChild(this.MQ);this.Yx.addEventListener("click",this.ac$.bind(this),!1);
var a=this.j;a.setAttribute("draggable","true");a.addEventListener("dragstart",this.tW.bind(this),!1);
if(!0){a.addEventListener("drop",this.rr.bind(this),!1);a.addEventListener("dragover",this.rF.bind(this),!1);
a.addEventListener("dragenter",D.pt,!1);a.addEventListener("dragleave",this.Q8.bind(this),!1)}this.j.addEventListener("click",this.f0.bind(this),!1)};
db.Zy.prototype=new ev;db.Zy.prototype.tW=function(h){h.stopPropagation();h.dataTransfer.setData("Text",JSON.stringify({wx:this.abD,Hk:this.parent.h6.index,AW:this.index}))};
db.Zy.prototype.Q8=function(h){D.pt(h);this.Zj()};db.Zy.prototype.rr=function(h){D.pt(h);this.Zj();var e=h.dataTransfer.getData("Text");
if(e=="")return;var e=JSON.parse(e);fL.bZ(h,e,this.parent,this.index+(fL.bG(h,this.$m)>.5?0:1))};db.Zy.prototype.rF=function(h){D.pt(h);
var e=fL.bG(h,this.$m)>.5;this.Zj();var $="border-"+(e?"bottom":"top");this.$m.style[$]="0.2em solid rgba(0,0,0,0.5)"};
db.Zy.prototype.Zj=function(h){this.$m.style.border="none"};db.Zy.prototype.QL=function(h){var e=15;
if(1<D.M()&&D.M()<1.5)e=e/D.M();this.Yx.setAttribute("style","background-size: "+e+"px "+e+"px;");this.Yx.style.opacity=h?1:.2};
db.Zy.prototype.f0=function(h){if(h.target==this.Yx)return;if(h.detail!=1&&this.$t!=null){var e=this.parent.h6.index,$=new B(D.E.P,!0);
if(this.$t.indexOf("afw_")==0){var Z=this.$t.slice(4),c=w[Z]||dA.Nh[Z],q=h.target==this.aa4;if(!q&&!c)return;
$.data=bn.zd.Ax(q?"blendOptions":Z,{$:e,index:this.index})}else $.data={e:D.U.tr,yq:this.$t,$:e,index:this.index};
this.f($)}};db.Zy.prototype.ac$=function(h){var e={fm:o.R3,f:o.Xz,sm:o._B,s:o.pP}[this.abD];this.parent.tT({e:e,$:this.parent.h6.index,index:this.index})};
function hC(){ce.call(this,"Guide Guy",!1,null,ce.WT.a15);this.gT=null;this.A6=[];var h=D.w("div","form padded");
this.C5.appendChild(h);h.setAttribute("style","width:200px");this.C5.appendChild(h);var e=D.w("canvas"),$=e.getContext("2d");
e.width=e.height=160;var Z=[32,0,16,160,0,32,160,16,0,112,160,16],c="Margin Left,Margin Top,Margin Right,Margin Bottom,Column Count,Row Count,Column Width,Row Height,Column Gap,Row Gap".split(","),q=[0,0,0,0,0,0,0,0,0,0];
for(var G=0;G<10;G++){$.clearRect(0,0,160,160);$.setTransform(1,0,0,1,80,80);$.rotate((G&3)*Math.PI/2);
$.translate(-80,-80);$.fillStyle="rgba(0,0,0,0.3)";if(G<4){for(var E=0;E<12;E+=4){$.fillStyle=E==0?"#000000":"rgba(0,0,0,0.3)";
$.fillRect(Z[E],Z[E+1],Z[E+2],Z[E+3])}}else if(G<6){var P=8*6;$.fillRect(0,0,P,160);$.fillRect(8*7,0,P,160);
$.fillStyle="#000000";$.fillRect(8*14,0,P,160)}else if(G<8){$.fillRect(0,0,16,160);$.fillRect(160-16,0,16,160);
$.fillRect(32,0,160-64,160);$.fillStyle="#000000";$.fillRect(32,80-8,160-64,8*1)}else{$.fillRect(0,0,8*7,160);
$.fillRect(8*13,0,160,160);$.fillStyle="#000000";$.fillRect(8*7,80-8,8*6,8*1)}var a="<img src=\""+e.toDataURL()+"\" class=\"autoscale gsicon\" /> ",j=new hr(a,0,200,G==4||G==5?null:"px",null,null,null,4,c[G]);
j.parent=this;j.k(D.E.L,this.ae6,this);j.T(q[G]);j.B();this.A6.push(j);h.appendChild(j.j)}var L=["Add Guides","Clear Guides"];
this.Ke=[];for(var G=0;G<L.length;G++){var H=new gg(L[G],!0,null,!0);this.Ke.push(H);H.k("click",this.Ob,this);
h.appendChild(H.j)}for(var G=0;G<6;G++){$.setTransform(1,0,0,1,80,80);$.rotate(Math.floor(G/3)*Math.PI/2);
$.translate(-80,-80);$.clearRect(0,0,160,160);$.fillStyle="rgba(0,0,0,0.3)";$.fillRect(0,0,160,160);
$.clearRect(16,16,128,128);$.fillStyle="#000000";var _=G%3;$.fillRect([0,9,18][_]*8,0,16,160);var a="<img src=\""+e.toDataURL()+"\" class=\"autoscale gsicon\" /> ",H=new gg(a,!1,null,!1);
this.Ke.push(H);H.k("click",this.Ob,this);h.appendChild(H.j)}}hC.prototype=new ce("");hC.prototype.ae6=function(h){var e=this.A6,$=e.indexOf(h.target),Z=Math.floor($/2),c=$&1,q=[];
for(var G=0;G<4;G++)q.push(e[2*G+c].u());var E=-1;if(Z==2&&q[2]!=0&&q[3]!=0&&q[4]!=0)E=4;if(Z==3&&q[3]!=0&&q[2]!=0&&q[4]!=0)E=4;
if(Z==4&&q[4]!=0&&q[2]!=0&&q[3]!=0)E=3;if(E!=-1)e[2*E+c].T(0)};hC.prototype.Ob=function(h){var e=this.gT,$=this.Ke.indexOf(h.target),Z=[[],[]];
if(e==null)return;var c=e.N?e.N.rect:new O(0,0,e.d,e.v),q=c.d,E=c.v;if($==0){var P=[[],[]];for(var G=0;
G<this.A6.length;G++)P[G&1].push(this.A6[G].u());Z=[hC.TA(P[0],c.x,c.x+q),hC.TA(P[1],c.y,c.y+E)];f.fQ.K9(Z,e._D)}else if($==1){}else{$-=2;
var a=Math.floor($/3),Z=[[],[]];Z[a].push([c.x,c.x+q/2,c.x+q,c.y,c.y+E/2,c.y+E][$]);f.fQ.K9(Z,e._D)}var j=function(L,H){return L-H};
Z[0].sort(j);Z[1].sort(j);this.a2g(Z)};hC.prototype.amK=function(h){var e=this.a1B.indexOf(h.target)};
hC.prototype.a2g=function(h){var e=new B(D.E.A,!0);e.F=f.OA;e.data={e:"gids",LS:h};this.f(e)};hC.TA=function(h,e,$){var Z=[],c=h[2],q=h[3],E=h[4],P=0;
if(c==0)P++;if(q==0)P++;if(E==0)P++;if(P>1&&c==0&&q==0){if(h[0]!=0)Z.push(e+h[0]);if(h[1]!=0)Z.push($-h[1]);
return Z}var a=$-e-h[0]-h[1];if(c==0){if(E==0){c=Math.floor(a/q);E=(a-c*q)/(c-1)}else{c=1;while(q*c+E*(c-1)+q+E<=a)c++}}else if(c!=0&&q!=0){if(c*q>a)c=Math.floor(a/q);
E=(a-c*q)/(c-1)}Z.push(e+h[0],$-h[1]);var q=(a-E*(c-1))/c;for(var G=1;G<c;G++){if(E==0)Z.push(e+h[0]+G*q);
else Z.push(e+h[0]+G*q+(G-1)*E,e+h[0]+G*q+G*E)}return Z};hC.prototype.uq=function(h){this.gT=h};function aF(){ce.call(this,[9,2],!1,null,ce.WT.RJ);
this.aah=null;this.j_=null;this.D0=null;this.agx=-1}aF.prototype=new ce("");aF.prototype.b5=function(){this.Az=D.w("div","padded");
this.Az.style.width="22em";this.C5.appendChild(this.Az);var h=D.w("span","fitem");this.Az.appendChild(h);
this.xO=[new gg([0,3]),new gg([12,73]),new gg([12,91,0])];for(var G=0;G<this.xO.length;G++){var e=this.xO[G];
e.k("click",this.aeq,this);h.appendChild(e.j)}this.Az.appendChild(D.w("hr"));this.ld=new aF.N3;this.ld.parent=this;
this.zV=new aF.zw;this.zV.parent=this;this.ED=new aF.UO;this.ED.parent=this;this.ahb=[this.ld,this.zV,this.ED];
this.Az.appendChild(this.ld.j)};aF.prototype.aeq=function(h){var G=this.xO.indexOf(h.currentTarget);
this.P_(G);this.IF(G==1?this.zV.mm:-1)};aF.prototype.P_=function(h){for(var G=0;G<3;G++){this.xO[G].Qv();
var e=this.ahb[G].j;if(e.parentNode==this.Az&&G!=h)this.Az.removeChild(e);if(e.parentNode!=this.Az&&G==h)this.Az.appendChild(e)}this.xO[h]._j()};
aF.prototype.IF=function(h){var e=this.j_.C[0],$=this.j_.t[e],Z=h+1;if(h==1&&$.Hy)return;var c=new B(D.E.A,!0);
c.F=f.S$;if(h!=1&&$.Hy){c.data={e:o.II,$:e,Fy:2};this.f(c)}c.data={e:o.II,$:e,Fy:Z};this.f(c)};aF.prototype.B=function(){ce.prototype.B.call(this);
if(this.Az==null)return;this.uq(this.j_);for(var G=0;G<3;G++){this.xO[G].B();this.ahb[G].B()}};aF.prototype.nR=function(){if(!D.Nn(this.C5))return;
if(this.Az==null){this.b5();this.if(this.D0,iM.uG);this.uq(this.aah);this.B()}};aF.prototype.uq=function(h){this.aah=h;
if(this.Az==null)return;this.ld.uq(h);this.zV.uq(h);this.ED.uq(h);if(h==null||h.C.length==0||h.t[h.C[0]]==null){D.so(this.C5,"disabled");
this.j_=null;return}else D.ma(this.C5,"disabled");var e=h.C[0],$=h.t[e],Z=h.U9(),c=Z[0],q=Z[1];if(q.length!=0){var E=c[q[0]],P=E.add.vogk,a=!1;
if(P)for(var G=0;G<P.length;G++){var j=P[G].v,L=j.keyShapeInvalidated;if(L&&L.v||j.keyOriginType==null)continue;
a=!0;e=E.NS}}if(h!=this.j_||this.agx!=e){this.j_=h;this.agx=e;if(a)this.P_(2);else if($.jw<1&&!$.Hy)this.P_(0);
else this.P_(1)}this.xO[1].NA(this.zV.mm!=-1);this.xO[2].NA(a)};aF.prototype.if=function(h,e){this.D0=h;
if(this.ld)this.ld.if(h,e)};aF.N3=function(){ev.call(this);this.j=D.w("div","form");this.a43=new cZ("Hello");
this.j.appendChild(this.a43.j);this.JP=null;this.ac8=null;this.j_=null;this.akf=-1;this.acP=null;this.Re=new fx(!0);
this.Re.parent=this;this.Re.k(D.E.L,this.aeZ,this);this.gH=D.w("div","marged hiline");this.gH.appendChild(this.Re.j);
this.n1=new at("GrFl",!0);this.n1.parent=this;this.n1.k(D.E.L,this.aht,this);this.Le=D.w("div","marged hiline");
var h="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");for(var G=0;G<h.length;G++){var e=this.n1.Uc[h[G]].j;
this.Le.appendChild(e)}this.H1=new at("patternFill",!0);this.H1.parent=this;this.H1.k(D.E.L,this.amC,this);
this.oR=D.w("div","marged hiline");var h=["Ptrn","Scl","Algn","phase"];for(var G=0;G<h.length;G++){var e=this.H1.Uc[h[G]].j;
this.oR.appendChild(e)}this.zY={};for(var $ in es.names){if(w[$]==null)continue;this.zY[$]=new w[$];
this.zY[$].k(D.E.L,this.ad5,this);this.zY[$].parent=this}var Z=this.aiS=D.w("div","marged hiline");this.TY=aF.MP(["W","H","X","Y"],null,Z,this.Ow,this);
this.fa=new fs([12,46],[[13,1,8],[13,1,10],[13,1,9],[12,47]]);this.fa.k(D.E.L,this.Ow,this);Z.appendChild(this.fa.j);
this.xh=new fx(!1);this.xh.parent=this;this.xh.k(D.E.L,this.Ow,this);Z.appendChild(this.xh.j)};aF.N3.prototype=new ev;
aF.N3.prototype.B=function(){for(var h in this.zY)this.zY[h].B();this.n1.B();this.H1.B();this.fa.B();
for(var G=0;G<4;G++)this.TY[G].B()};aF.N3.prototype.Ow=function(h){var e=aF.PD(this.TY),$=o.dU(new O(e[2],e[3],e[0],e[1])),Z=this.fa.u(),c={classID:"artboard",artboardRect:{t:"Objc",v:$},Clr:{t:"Objc",v:this.xh.u()},artboardBackgroundType:{t:"long",v:Z+1}},q=new B(D.E.A,!0);
q.F=f.S$;q.data={e:o.rb,o1:c};this.f(q)};aF.N3.prototype.aeZ=function(h){var e=this.j_,$=e.C[0];if(e.t[$].add.SoCo==null)return;
var Z=JSON.parse(JSON.stringify(e.t[$].add.SoCo));Z.Clr.v=this.Re.u();this.s9({cp:1,mQ:Z})};aF.N3.prototype.aht=function(h){var e=this.j_,$=e.C[0];
if(e.t[$].add.GdFl==null)return;this.s9({cp:2,mQ:this.n1.u()})};aF.N3.prototype.amC=function(h){this.s9({cp:3,mQ:this.H1.u()})};
aF.N3.prototype.s9=function(h){this.Ti(f.S$,{e:o.Rh,DL:[this.j_.C[0]],gU:!0,G:h})};aF.N3.prototype.ad5=function(h){this.Ti(f.Qi,{e:"edit_layer",G:this.ac8.u()})};
aF.N3.prototype.Ti=function(h,e){var $=new B(D.E.A,!0);$.F=h;$.data=e;this.f($)};aF.N3.prototype.uq=function(h){var e=e_.get([0,3]),$=null;
this.j_=h;if(h&&h.t.length>0&&h.C.length!=0&&h.t[h.C[0]]){var Z=h.t[h.C[0]],c=es.get(Z.add);if(c!=null&&this.zY[c]!=null){$=this.zY[c].j;
this.ac8=this.zY[c];this.zY[c].T(Z.add[c]);if(h.C[0]!=this.akf){var q=h.v2(h.C[0]-1);this.acP=s.CN(q)}this.zY[c].SP(this.acP);
e=e_.get(es.names[c])}if(Z.add.SoCo){$=this.gH;this.Re.T(Z.add.SoCo.Clr.v);e=e_.get([6,48,0,0])}if(Z.add.GdFl){$=this.Le;
this.n1.update(h,Z.add.GdFl);e=e_.get([6,48,0,1])}if(Z.add.PtFl){$=this.oR;this.H1.update(h,Z.add.PtFl);
e=e_.get([6,48,0,2])}if(Z.add.artb){var E=Z.add.artb,P=Z.B2();$=this.aiS;this.fa.T(E.artboardBackgroundType.v-1);
if(E.Clr)this.xh.T(E.Clr.v);aF.s8(this.TY,[P.d,P.v,P.x,P.y]);e="Artboard"}this.akf=h.C[0]}if($!=this.JP){if(this.JP)this.j.removeChild(this.JP);
if($!=null)this.j.appendChild($);this.JP=$}this.a43.T(e)};aF.N3.prototype.if=function(h,e){this.n1.if(h,e);
this.H1.if(h,e);for(var $ in this.zY)this.zY[$].if(h,e)};aF.zw=function(){ev.call(this);this.j=D.w("div","form");
this.j_=null;this.mm=0;var h=D.w("span","fitem");this.j.appendChild(h);this.xO=[new gg([6,2]),new gg([6,3]),new gg([6,50])];
for(var G=0;G<this.xO.length;G++){var e=this.xO[G];e.k("click",this.a2Q,this);h.appendChild(e.j)}this.jO=new dm([12,74],0,255);
this.jO.k(D.E.L,this.dn,this);this.j.appendChild(this.jO.j);this.qS=new dm([7,6],0,500,"px",2,!0);this.qS.k(D.E.L,this.dn,this);
this.j.appendChild(this.qS.j)};aF.zw.prototype=new ev;aF.zw.prototype.dn=function(h){var e=this.jO.u(),$=this.qS.u(),Z=new B(D.E.A,!0);
Z.F=f.S$;Z.data={e:o.qe,WP:this.j_.C[0],fD:{wP:this.mm,jO:e,qS:$}};this.f(Z)};aF.zw.prototype.B=function(){for(var G=0;
G<this.xO.length;G++)this.xO[G].B();this.jO.B();this.qS.B()};aF.zw.prototype.uq=function(h){this.j_=h;
this.$T()};aF.zw.prototype.a2Q=function(h){this.$T(this.xO.indexOf(h.currentTarget));this.parent.IF(this.mm)};
aF.zw.prototype.$T=function(h){var e=this.j_,$=this.xO;for(var G=0;G<3;G++){var Z=$[G];Z.Qv();Z.WJ()}if(e==null||e.t.length==0||e.C.length==0||e.t[e.C[0]]==null)return;
var c=-1,q=e.t[e.C[0]];if(q.fi()&&q.wV(e).r!=null){$[2].pw();c=2}if(q.add.vmsk){$[1].pw();c=1}if(q.kV()){$[0].pw();
c=0}if(h!=null)c=h;else if(q.Hy)c=1;else if(q.jw==3)c=2;else if(q.jw==1)c=0;this.mm=c;if(c==-1){this.jO.WJ();
this.qS.WJ();return}var E=q.E2(c);this.jO.pw();this.qS.pw();this.jO.T(E.jO);this.qS.T(E.qS);$[c]._j()};
aF.UO=function(){ev.call(this);this.j=D.w("div","form");this.Xc=1;this.zF=D.w("div");this.V_=aF.MP(["W","H","X","Y"],[12,51],this.zF,this.M1,this);
this.gl=D.w("div");var h=["\u250F","\u2513","\u2517","\u251B"];this.RV=aF.MP(h,[12,91,2],this.gl,this.M1,this)};
aF.UO.prototype=new ev;aF.UO.prototype.B=function(){D.Qb(this.V_[0],this.V_[1]);for(var G=2;G<5;G++){this.V_[G].B()}this.RV[4].B()};
aF.MP=function(h,e,$,Z,c){var q=D.w("div","numlist");$.appendChild(q);var E=[];for(var G=0;G<4;G++){var P=new hr(h[G],0,0,null,1,!1,!0);
P.k(D.E.L,Z,c);q.appendChild(P.j);E.push(P);if(G==1||G==3)D.vV(q)}if(e){E[4]=new cw(e);E[4].T(!0);$.appendChild(E[4].j)}return E};
aF.s8=function(h,e){for(var G=0;G<4;G++)h[G].T(e[G])};aF.PD=function(h){var e=[];for(var G=0;G<4;G++)e[G]=h[G].u();
return e};aF.UO.prototype.M1=function(h){var e=this.V_.indexOf(h.currentTarget),$=this.RV.indexOf(h.currentTarget),Z=[null,null,null,null],c=[null,null,null,null];
if(e!=-1){var q=aF.PD(this.V_),E=this.V_[4].u();q[0]=Math.max(1,q[0]);q[1]=Math.max(1,q[1]);if(E&&e==0)q[1]=q[0]/this.Xc;
if(E&&e==1)q[0]=q[1]*this.Xc;Z[0]=q[2];Z[1]=q[3];Z[2]=Z[0]+q[0];Z[3]=Z[1]+q[1]}if($!=-1){var q=aF.PD(this.RV);
c[$]=Math.max(0,q[$]);if(this.RV[4].u())for(var G=0;G<4;G++)c[G]=c[$];var P=c[3];c[3]=c[2];c[2]=P}var a=new B(D.E.A,!0);
a.F=f.S$;a.data={e:o.ru,Ny:Z,ak0:c};this.f(a)};aF.UO.prototype.uq=function(h){if(h==null)return;var e=this.zF.parentNode!=null,$=this.gl.parentNode!=null,Z=s.as.w1(h),c=Z[0],q=Z[1];
if(c){if(!e)this.j.appendChild(this.zF);this.Xc=(c[2]-c[0])/(c[3]-c[1]);aF.s8(this.V_,[c[2]-c[0],c[3]-c[1],c[0],c[1]])}else if(e)this.j.removeChild(this.zF);
if(q){if(!$)this.j.appendChild(this.gl);var E=q[2];q[2]=q[3];q[3]=E;aF.s8(this.RV,q)}else if($)this.j.removeChild(this.gl)};
function gR(h){ce.call(this,h.name,!0);this.q4=h;this.pq=null;this.WQ=[];this.b2=!1;this.yR={x:0,y:0,xo:!1};
this.mA=document.createElement("canvas");this.Aq=this.mA.getContext("2d");this.BA=document.createElement("canvas");
this.qM=this.BA.getContext("2d");var e=16,$=s.m(16*16*4);s.Om($,e,e,8);this.gi=s.scale.lm($,e,e);this.agJ=this.Aw.bind(this);
this.IH=this.AT.bind(this);this.aia=this.IB.bind(this);var Z=this.C5;D.uh(Z,this.agJ);D._s(Z,this.IH);
Z.addEventListener("wheel",this.tH.bind(this),!1);Z.addEventListener("contextmenu",this.a7o.bind(this),!1);
var c=this.ak8.bind(this);Z.addEventListener("gesturestart",c,!1);Z.addEventListener("gesturechange",c,!1);
Z.addEventListener("gestureend",c,!1);this.sn=0;this.a26="";this.wn=4;D.Sz(Z)}gR.prototype=new ce;gR.prototype.ak8=function(h){if(h.type=="gesturestart")this.mZ=h.scale;
if(h.type=="gesturechange"){var e=new B("mouse",!0);e.action="scroll";e.sU=!0;this.Ud(h,e);var $=(this.mZ-h.scale)/this.mZ;
e.SL=new eu(0,100*$);this.mZ=h.scale;this.f(e)}};gR.prototype.QS=function(){if(this.q4.Kq())return window.confirm(e_.get([22,6,3])+" "+this.q4.name+". "+e_.get([22,6,4]));
return!0};gR.prototype.LT=function(h){h.preventDefault()};gR.prototype.xI=function(h){var e=-1,$=this.WQ;
for(var G=0;G<$.length;G++)if($[G].pointerId==h.pointerId)e=G;return e};gR.G8=function(h){var e=h.pointerType,$=window.__kb;
return e=="touch"&&$.q(p.aeW)};gR.prototype.Aw=function(h){if(gR.G8(h))return;var e=this.xI(h);if(e!=-1)this.WQ[e]=h;
else this.WQ.push(h);if(this.WQ.length==1){var $=h.button!=null&&h.button!=0?"rdown":"down",Z=new B("mouse",!0);
Z.action=$;this.Ud(h,Z);this.f(Z);D.xR(this.C5,this.IH);D._s(window,this.IH);D.A4(window,this.aia)}if(this.WQ.length==2){this.lL("multidown");
this.b2=!0}};gR.prototype.AT=function(h){if(gR.G8(h))return;var e=this.xI(h);if(e!=-1)this.WQ[e]=h;if(this.WQ.length>1){this.lL("multimove")}if(this.b2)return;
var $=new B("mouse",!0);$.action="move";this.Ud(h,$);this.f($);if(this.pq&&this.pq.ev&&!this.yR.xo)this.rv()};
gR.prototype.IB=function(h){if(gR.G8(h))return;var e=this.WQ,$=this.xI(h);e.splice($,1);if(e.length==0){var Z=h.button!=null&&h.button>0?"rup":"up",c=new B("mouse",!0);
c.action=Z;this.Ud(h,c);this.f(c);D.xR(window,this.IH);D.oT(window,this.aia);D._s(this.C5,this.IH);this.b2=!1}};
gR.prototype.tH=function(h){this.LT(h);if(h.deltaX==0&&h.deltaY==0)return;var e=new B("mouse",!0);e.action="scroll";
e.sU=h.ctrlKey;this.Ud(h,e);this.f(e)};gR.prototype.a7o=function(h){D.pt(h);var e=h.sourceCapabilities;
if(e)e=e.firesTouchEvents;if(e){var $=new B("mouse",!0);this.Ud(h,$);$.action="rdown";this.f($);$.action="rup";
this.f($)}};gR.prototype.lL=function(h){var e=this.WQ,$=D.M(),Z=[];for(var G=0;G<e.length;G++){var c=Z[G]=D.q6(e[G],this.C5);
c.x*=$;c.y*=$}var q=new B("mouse",!0);q.action=h;q.Hn=Z;this.f(q)};gR.prototype.Ud=function(h,e,$){var Z=this.WQ.length!=0;
if(e.action!="up"){var c=D.M();if($==null)$=D.q6(h,this.C5);this.yR=e.Wo={x:c*$.x,y:c*$.y,xo:Z};var q=D.q6(h,document.body);
e.Wo.aS=q.x;e.Wo.gh=q.y}else this.yR=e.Wo={x:this.yR.x,y:this.yR.y,xo:Z};e.Wo.g9=.5;if(h.pressure!=null&&h.pressure!=0)e.Wo.g9=h.pressure;
if(h.pointerType=="mouse")e.Wo.g9*=2;if(h.deltaX!=null){var E=h.deltaMode==0?1:40;e.SL=new eu(h.deltaX*E,h.deltaY*E)}};
gR.prototype.if=function(h,e){this.pq=h};gR.prototype.uq=function(h){this.nR();this.rv()};gR.prototype.Sy=function(h,e){if(h<=0||e<=0)return;
this.EN=h;this.CD=e;var $=this.q4,Z=D.M();$.z.qM.d=Math.floor(h*Z);$.z.qM.v=Math.floor(e*Z);D.VR(this.BA,h,e);
D.VR(this.mA,h,e);D.VR(V.st(),h,e);if($.z.S==0)$.z.S=f.LZ.O3($.d,$.v,h*Z,e*Z);this.rv()};gR.prototype.nR=function(){var h=this.C5.firstChild;
if(!V.Yv&&h==V.st()||V.Yv&&h==this.BA)this.C5.removeChild(h);var e=V.Yv?V.st():this.BA;if(!D.Nn(e))this.C5.appendChild(e)};
gR.prototype.rv=function(){if(V.Yv!=this.wn){this.sn=0;this.a26=""}this.wn=V.Yv;if(this.pq==null)return;
if(V.Yv)this.a5q();else this.QH();var h=this.q4;this.sn=h.z.S;this.a26=JSON.stringify(h.z.RI)};gR.prototype.a5q=function(){if(V.Yv&&gR.a4d==null)gR.a4d=new gR.Qx(!1);
if(V.Yv&&gR.a0S==null)gR.a0S=[new gR.Qx(!0,2),new gR.Qx(!0,8),new gR.Qx(!0,32),new gR.Qx(!0,128)];var h=this.q4,j,_=0;
if(h.i8==null)return;var e=h.z,$=e.qM.d,Z=e.qM.v,c=V.s0;this.qM.clearRect(0,0,$,Z);var q=this.S2(h);
if(e.SJ==null)e.SJ=new V.EI($,Z);if(q)e.SJ.set(this.BA);else{V.wo(e.SJ);V.ZI(1)}var E=e.ab(0,0),P=new i7;
P.scale($,Z);P.concat(e.EO(!0));P.scale(1/h.d,1/h.v);var a=[P.R,P.O,0,P.Ma,P.rU,0,P.zq,P.nL,1];if(gR.abo==null)gR.abo=new Float32Array(4*1024);
var L=[0,0,0,0],H=gR.abo;if(h.add.artd){H.fill(0);L=gR.jj(h);var J=h.d,S=h.v,g=0;for(var G=0;G<h.t.length;
G++){var N=h.t[G],Y=N.add.artb;if(Y==null||!N.o6())continue;var U=N.B2();H[_]=U.x/J;H[_+1]=U.y/S;H[_+2]=U.d/J;
H[_+3]=U.v/S;_+=4;if(_==H.length)break}if(_>2*4)g++;if(_>8*4)g++;if(_>32*4)g++;j=gR.a0S[g];H=new Float32Array(H.buffer,0,[2,8,32,128][g]*4)}else j=gR.a4d;
V.iz($,Z);V.ZI(0);V.iz($,Z);j.xl();j.m_(e.SJ.jg,h.i8.jg,new Float32Array(a),new Float32Array([$/8,Z/8,E.x/$,E.y/Z]),h.d,h.v,1/h.z.S,$,Z,new Float32Array(L),H,new Float32Array(s.l2.JR(s.l2.ad(e.RI))));
c.drawArrays(c.TRIANGLES,0,6)};gR.jj=function(h){var e=h.add.artd.canvasColor;if(e==null)return[0,0,0,0];
return gR.amu(e)};gR.amu=function(h){var e=s.Y.LX(h.v),$=[e.h/255,e.l/255,e.O/255,1];for(var G=0;G<4;
G++)$[G]=Math.min(1,$[G]);return $};gR.bx=function(h,e){var $=h[2]*255;if(V.Yv)$=e?0:Math.max(1,$);return"rgba("+h[0]*255+","+h[1]*255+","+$+","+h[3]+")"};
gR._m=function(h){if(V.Yv)for(var G=0;G<h.length;G+=4){if(h[G+2]==0)h[G+2]=3}};gR.prototype.QH=function(){var h=this.q4;
if(h.buffer==null)return;var e=h.z,$=e.qM,Z=$.d,c=$.v,q=new O(0,0,h.d,h.v);this.Aq.clearRect(0,0,Z,c);
this.qM.clearRect(0,0,Z,c);var E=e.EO(!0),P=E.clone();P.vy();if(h.add.artd==null){this.qM.save();var a=P.tf(new eu(0,0));
P.translate(-a.x,-a.y);this.qM.translate(Math.round(a.x),Math.round(a.y));this.qM.fillStyle=this.gi;
this.E8(s.a.Kf(q),P,this.qM);this.qM.fill();this.qM.restore()}else{this.qM.fillStyle=gR.bx(gR.jj(h));
this.qM.fillRect(0,0,Z,c);this.qM.save();this.qM.setTransform(P.R,P.O,P.Ma,P.rU,P.zq,P.nL);var j=h.root.children;
for(var G=0;G<j.length;G++){var L=j[G].$;if(L.add.artb==null||!L.o6())continue;var H=L.B2(),_=L.oC();
if(_!=0)continue;this.qM.fillStyle="white";this.qM.fillRect(H.x,H.y,H.d,H.v)}this.qM.restore()}if(e.Pl.length!=$.X()){e.Pl=s.m($.X());
e.Bb=s.m($.X()*4)}e.Bb.fill(0);s.scale.a3r(h.buffer,q,E,e.Bb,$);if(e.RI[0]+e.RI[1]+e.RI[2]!=3)s.l2.i6(e.Bb,e.Bb,s.l2.ad(e.RI));
this.Aq.putImageData(new ImageData(new Uint8ClampedArray(e.Bb.buffer),$.d,$.v),0,0);this.qM.drawImage(this.mA,0,0);
this.qM.getImageData(0,0,1,1);this.S2(h)};gR.prototype.S2=function(h){var e=h.z,$=e.RI[0]+e.RI[1]+e.RI[2],Z=!1,c=[];
for(var G=0;G<h.C.length;G++){var q=h.t[h.C[G]];if(q==null)continue;var E=q.jw;if(E!=1&&E!=3)continue;
var P=E==1?q.kV():q.wV(h).r;if(P.rV)c.push(P)}for(var G=0;G<h.Qe.length;G++)if(h.Qe[G].rV)c.push(h.Qe[G]);
for(var G=0;G<c.length;G++){var P=c[G];this.Bx(P,e,c.length==1&&$==0?2:1,P.color,P.Nr);Z=!0}var a=this.pq;
Z=this.akm(h,this.qM,e)||Z;if(h.N&&a.y7&&a.cz.L6){this.Bx(h.N,e,0,0,null);Z=!0}return Z};gR.prototype.Bx=function(h,e,$,Z,c){var q=0,_,J;
if(c)q=Math.round(c.O)<<16|Math.round(c.l)<<8|Math.round(c.h);var E=e.EO(!0),P=e.qM,a=new O(0,0,e.q4.d,e.q4.v);
if(e.Pl.length!=P.X()){e.Pl=s.m(P.X());e.Bb=s.m(P.X()*4)}e.Pl.fill(Z);e.Bb.fill(0);var j=h.channel,L=h.rect;
s.scale.J(j,L,E,e.Pl,P);if($==0)s.N.abO(e.Pl,e.Bb,P,P);else s.N.a2V(e.Pl,e.Bb,P,P,$,q);gR._m(e.Bb);var H=new ImageData(new Uint8ClampedArray(e.Bb.buffer),P.d,P.v);
this.Aq.putImageData(H,0,0);this.qM.save();if($==0){_=P.clone();_.P5(-1,-1);J=new i7}else{_=new O(0,0,a.d,a.v);
J=E.clone();J.vy()}this.E8(s.a.Kf(_),J,this.qM);this.qM.clip();this.qM.drawImage(this.mA,0,0);this.qM.restore()};
gR.prototype.akm=function(h,e,$){var Z=h.K.Rt!=null||h.K.sV!=null||h.K.yu!=null||h.K.Vh.length!=0||h.K.Yr.length!=0,c=this.pq,q=c.cz,E=iG.zO[c.SW],P=Math.round(12*D.M()),a=P/h.z.S,j=$.EO(!0);
j.vy();e.save();e.setTransform(j.R,j.O,j.Ma,j.rU,j.zq,j.nL);if(h.add.artd){var L=gR.jj(h)[0];L=L<.5?L+.5:L-.5;
L=""+Math.round(L*255).toString(16);while(L.length<2)L="0"+L;e.fillStyle="#"+L+L+L;e.font=a+"px sans-serif";
for(var G=0;G<h.t.length;G++){var H=h.t[G];if(H.add.artb==null||!H.o6())continue;var _=H.B2();e.fillText(H.getName(),_.x,_.y-6/$.S);
Z=!0}}var J=gR.bx([.1,.5,1,1]),S=gR.bx([1,1,1,1]);if(c.y7&&q.DZ){e.fillStyle=e.strokeStyle=J;e.lineWidth=1.5/$.S;
var N=h.U9(),Y=N[0],U=N[1];for(var g=0;g<U.length;g++){var H=Y[U[g]],M=H.add.vmsk,C=M.b,y=s.a.$o(C);
this.E8(y,null,e);e.stroke();Z=!0;var i=3*D.M()/$.S,Q=C.length-3;for(var G=0;G<M.v9.length;G++){var m=s.W.v3(C,M.v9[G]);
if(m==null)continue;var n=m.x,u=m.y;e.beginPath();var K=G==0;if(M.O4)K=!K;if(K){e.moveTo(n-i,u-i);e.lineTo(n+i,u+i);
e.moveTo(n-i,u+i);e.lineTo(n+i,u-i);e.stroke()}else{e.arc(n,u,i*1,0,2*Math.PI);e.fill()}Z=!0}if(h.C.length!=1)continue;
var F=-1;for(var G=0;G<C.length;G++){if(C[G].type>5)continue;if(C[G].type==0||C[G].type==3){if(C[G].aN!=-1)F++;
continue}if(M.C.indexOf(F)!=-1){var n=C[G].D.x,u=C[G].D.y;e.fillRect(n-i*.8,u-i*.8,2*i*.8,2*i*.8)}if(M.pc.indexOf(G)!=-1){var b=[C[G].D];
e.beginPath();e.moveTo(C[G].LD.x,C[G].LD.y);e.lineTo(C[G].D.x,C[G].D.y);e.lineTo(C[G].EH.x,C[G].EH.y);
e.stroke();if(!C[G].D.dz(C[G].LD))b.push(C[G].LD);if(!C[G].D.dz(C[G].EH))b.push(C[G].EH);for(var d=0;
d<b.length;d++){var m=b[d],n=m.x,u=m.y;if(d==0&&(C[G].type==2||C[G].type==5))e.fillRect(n-1.2*i,u-1.2*i,2.4*i,2.4*i);
else{e.beginPath();e.arc(n,u,i*1.2,0,2*Math.PI);e.fill();if(d!=0)e.fillStyle=S;e.beginPath();e.arc(n,u,i*.8,0,2*Math.PI);
e.fill();e.fillStyle=J}}}Z=!0}}}e.fillStyle=e.strokeStyle=gR.bx([0,0,0,1],!0);e.lineWidth=1/$.S;var W=new i7(1,0,0,1,.5/$.S,.5/$.S);
if(h.K.Rt){this.E8(h.K.Rt,null,e);e.fill()}if(h.K.sV){this.E8(h.K.sV,W,e);e.stroke()}for(var A in h.K.sk)if(h.K.sk[A].sV){this.E8(h.K.sk[A].sV,null,e);
e.stroke();Z=!0}e.beginPath();var i=(4*D.M()+.5)/$.S,z=h.K.wf;for(var G=0;G<z.length;G+=2){Z=!0;var n=z[G],u=z[G+1];
e.rect(n-i,u-i,2*i,2*i)}e.stroke();var z=h.K.aen;e.beginPath();var i=4*D.M()/$.S;for(var G=0;G<z.length;
G+=2){Z=!0;var n=z[G],u=z[G+1];e.moveTo(n+i,u);e.arc(n,u,i,0,2*Math.PI)}e.fill();var z=h.K.Op;e.fillStyle=gR.bx([1,1,1,1]);
e.beginPath();var i=6*D.M()/$.S;for(var G=0;G<z.length;G+=2){Z=!0;var n=z[G],u=z[G+1];e.moveTo(n+i,u);
e.arc(n,u,i,0,2*Math.PI)}e.fill();var i=4*D.M()/$.S;for(var G=0;G<z.length;G+=2){Z=!0;var n=z[G],u=z[G+1];
e.fillStyle=gR.bx(h.K.TZ.indexOf(G>>>1)!=-1?[0,.6,1,1]:[.7,.7,.7,1]);e.beginPath();e.moveTo(n+i,u);e.arc(n,u,i,0,2*Math.PI);
e.fill()}if(h.K.Vh.length!=0){for(var G=0;G<h.K.Vh.length;G++){var T=h.K.Vh[G],R=T[1];e.putImageData(new ImageData(new Uint8ClampedArray(T[0].buffer),R.d,R.v),R.x,R.y)}}var I=.5/$.S;
e.lineWidth=1/$.S;if(h.K.Q2){Z=!0;var r=h.K.Q2,x=r.ZS,y={Z:[],H:[]};for(var G=0;G<r.u2.length;G++)s.a.concat(y,s.a.Kf(r.u2[G]));
y.H=y.H.concat(x);for(var G=0;G<x.length;G+=4){y.Z.push("M","L")}for(var G=0;G<y.H.length;G++){y.H[G]+=I}e.strokeStyle=gR.bx([.9,.2,.2,1]);
this.E8(y,null,e);e.stroke();var X=D.M(),l=2/$.S;e.font=a*.9+"px sans-serif";for(var G=0;G<x.length;
G+=4){var n=x[G],u=x[G+1],hH=x[G+2],hZ=x[G+3],gj=Math.sqrt((hZ-u)*(hZ-u)+(hH-n)*(hH-n));gj=s.IQ.MB(gj,h.Ay,c,u==hZ?h.d:h.v);
var hO=new eu((n+hH)/2,(u+hZ)/2);e.fillStyle=gR.bx([.9,.2,.2,1]);var d3=e.measureText(gj).width;e.fillRect(hO.x-d3/2-l*X,hO.y-3.5*l*X,d3+2*l*X,7*l*X);
e.fillStyle=gR.bx([1,1,1,1]);e.save();e.translate(hO.x-d3/2,hO.y+2*l*X);e.scale(.1,.1);e.font=a*9+"px sans-serif";
e.fillText(gj,0,0);e.restore()}}if(c.y7){if(q.Ui){var v=s.IQ.Gj(q.FQ,h,q.Fb),hl=v;if(q.Fb==4)hl*=h.v/h.d;
this.Om(h,e,v,hl,1,q.pf);Z=!0}if(q.vH&&h.z.S>7){this.Om(h,e,1,1,.5,q.pf);Z=!0}if(q._D){var ht=Math.max(h.z.qM.d,h.z.qM.v)/h.z.S;
ht=Math.max(Math.max(h.d,h.v)*2,ht);e.beginPath();e.strokeStyle=gR.bx([0,1,1,1]);for(var G=0;G<h._D[0].length;
G++){var ga=Math.round(h._D[0][G])+I;e.moveTo(ga,-ht);e.lineTo(ga,ht)}for(var G=0;G<h._D[1].length;G++){var eB=Math.round(h._D[1][G])+I;
e.moveTo(-ht,eB);e.lineTo(ht,eB)}e.stroke()}var bP=h.E1;if(q.E1&&bP.length!=0){e.font=a*.8+"px sans-serif";
var b_=[],fz=[];for(var G=0;G<bP.length;G++){var ca=f.Al.Hb(bP,G);b_.push(ca);if(h.KI.indexOf(G)!=-1)fz.push(ca)}b_.reverse();
var gf=Date.now();b_=s.rect.KR([0,0,h.d,h.v],b_);for(var d=0;d<2;d++)for(var G=0;G<b_.length;G++){var bb=b_[G],F=bb[4],b2=F!=null?bP[F]:null;
if(b2&&d==0||b2==null&&d==1)continue;var n=Math.round(bb[0]),u=Math.round(bb[1]),hH=Math.round(bb[2]),hZ=Math.round(bb[3]);
e.strokeStyle=e.fillStyle=gR.bx(b2?[0,.7,.7,1]:[.8,.8,.8,1]);e.strokeRect(n+I,u+I,hH-n,hZ-u);var dV=G+1,ch=e.measureText(dV),d3=ch.width;
e.fillRect(n,u,d3+a/2,a);e.fillStyle=gR.bx([1,1,1,1]);e.fillText(dV,n+a/4,u+a*.8)}var l=2/h.z.S,hE=2*l;
for(var G=0;G<fz.length;G++){var bb=fz[G],n=Math.round(bb[0]),u=Math.round(bb[1]),hH=Math.round(bb[2]),hZ=Math.round(bb[3]);
e.strokeStyle=e.fillStyle=gR.bx([0,.7,.7,1]);e.strokeRect(n+I,u+I,hH-n,hZ-u);var dS=[n,u,hH,u,hH,hZ,n,hZ];
for(var e1=0;e1<dS.length;e1+=2){var ga=dS[e1],eB=dS[e1+1],eG=dS[e1+2&7],dq=dS[e1+3&7];e.fillRect(ga-l,eB-l,hE,hE);
e.fillRect(Math.round((ga+eG)/2)-l,Math.round((eB+dq)/2)-l,hE,hE)}}Z=!0}}e.strokeStyle=gR.bx([1,0,0,1]);
if(h.K.yu){this.E8(h.K.yu,W,e);e.stroke()}e.restore();if(c.ev){if(h.z.h4==null||h.z.h4.width!=h.z.qM.d||h.z.Xw.height!=h.z.qM.v){h.z.h4=e.createImageData(h.z.qM.d,s.IQ.uE);
h.z.Xw=e.createImageData(s.IQ.uE,h.z.qM.v)}var E=iG.zO[c.SW],$=h.z,f2=$.S*h.d/2,a3=$.S*h.v/2,bm=[1,h.Ay,h.Ay/2.54,h.Ay/25.4,h.d/100][q.k1],h2=$.S,ag=$.i.clone(),eU=$.uk;
$.S*=bm;$.i.x+=f2*bm-f2;$.i.y+=a3*bm-a3;$.uk=0;s.IQ.af4($,E["--text-color"],E["--bg-input"],Math.floor(this.yR.x),Math.floor(this.yR.y));
$.S=h2;$.i=ag;$.uk=eU;var iz=cz.r_($.S,gR.bx([1,1,1,1]));gR._m(h.z.Xw.data);gR._m(h.z.h4.data);e.putImageData(h.z.Xw,0,0);
e.putImageData(h.z.h4,0,0);e.putImageData(iz,0,h.z.qM.v-iz.height)}if(h.K.Yr.length!=0){for(var G=0;
G<h.K.Yr.length;G++){var T=h.K.Yr[G],R=T[1];e.putImageData(new ImageData(new Uint8ClampedArray(T[0].buffer),R.d,R.v),R.x,R.y)}}return Z||c.ev||h._D[0].length+h._D[1].length>0};
gR.prototype.Om=function(h,e,$,Z,c,q){while($*h.z.S<4){$*=2;Z*=2}var E=h.d,P=h.v,a=.5/h.z.S;e.strokeStyle=gR.bx([.5,.5,.5,c],!0);
e.save();e.rect(0,0,E,P);e.clip();e.beginPath();for(var j=0;j<=E;j+=$){e.moveTo(j+a,0);e.lineTo(j+a,P)}if(q==0){for(var L=0;
L<=P;L+=Z){e.moveTo(0,L+a);e.lineTo(E,L+a)}}else{Z*=Math.sqrt(4/3);var H=Z*Math.floor(E/Z),_=E*(Z/(2*$));
for(var L=-H;L<=P+H;L+=Z){e.moveTo(0,L);e.lineTo(E,L-_);e.moveTo(0,L);e.lineTo(E,L+_)}}e.stroke();e.restore()};
gR.prototype.E8=function(h,e,$){$.beginPath();var Z=s.a.clone(h);if(e)s.a.J(Z.H,e,Z.H);Typr.U.pathToContext({cmds:Z.Z,crds:Z.H},$)};
gR.Qx=function(h,e){V.PG.call(this);this.a8P=h;var $="\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"+(h?"uniform vec4 bgClr;  uniform vec4 ars["+e+"]; ":"")+"\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"+V.yD.xA+"\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); "+(h?"\t\t\t\t\tbool inr = false; vec4 BG = bgClr; \t\t\t\t\tfor(int i=0; i<"+e+"; 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}",Z="\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.Py($,Z)};gR.Qx.prototype=new V.PG;gR.Qx.prototype.m_=function(h,e,$,Z,c,q,E,P,a,j,L,H){this.gC("tmat gsize source target contSizeZoom cnvSize bgClr ars ctrn".split(" "));
var _=V.s0,J=this.oK;_.uniformMatrix3fv(J.tmat,!1,$);_.uniform4fv(J.gsize,Z);_.uniform3f(J.contSizeZoom,c,q,E);
_.uniform2f(J.cnvSize,P,a);_.uniformMatrix4fv(J.ctrn,!1,H);if(this.a8P){_.uniform4fv(J.ars,L);_.uniform4fv(J.bgClr,j)}_.uniform1i(J.source,0);
_.uniform1i(J.target,1);_.activeTexture(_.TEXTURE0);_.bindTexture(_.TEXTURE_2D,h);_.activeTexture(_.TEXTURE1);
_.bindTexture(_.TEXTURE_2D,e);_.activeTexture(_.TEXTURE0)};function bB(){ce.call(this,[9,7],!1,null,ce.WT.a7I);
this.C5.setAttribute("style","min-width:240px;");this.j_=null;this.FA=-1;this.a4f=[];this.Ey=D.w("div","scrollable");
this.Ey.style.height="160px";this.C5.appendChild(this.Ey);this.HD=D.w("div","lpfoot");this.C5.appendChild(this.HD);
this.Ke=[];var h=["reload","lrs/newlayer","lrs/bin"],e=[[5,10],[5,3],[5,4]];for(var G=0;G<h.length;G++){var $=new gg("<img src=\""+PIMG[h[G]]+"\" class=\"gsicon\" />",!1,e[G]);
$.k("click",this.ai7,this);this.HD.appendChild($.j);this.Ke.push($)}}bB.prototype=new ce("");bB.prototype.tT=function(h){var e=new B(D.E.A,!0);
e.data=h;e.F=f.zI;this.f(e)};bB.prototype.ai7=function(h){var G=this.Ke.indexOf(h.currentTarget);if(G!=1)if(this.FA==-1)return;
this.tT({e:["updLC","addLC","delLC"][G],NS:this.FA});if(G==2)this.FA=-1};bB.prototype.B=function(){ce.prototype.B.call(this);
for(var G=0;G<this.Ke.length;G++)this.Ke[G].B()};bB.prototype.uq=function(h){if(h==null)D.so(this.C5,"disabled");
else D.ma(this.C5,"disabled");this.j_=h;D.LK(this.Ey);if(h==null)return;var e=h.Gs.lastAppliedComp?h.Gs.lastAppliedComp.v:0,$=h.Gs.list.v.slice(0);
$.unshift({v:{Nm:{v:"Last Document State"},compID:{v:0},capturedInfo:{v:0}}});for(var G=0;G<$.length;
G++){var Z=$[G].v,c=new gm(Z.Nm.v,Z.compID.v,Z.capturedInfo.v,e,this.FA);c.k("activate",this.Vr,this);
c.parent=this;this.Ey.appendChild(c.j);this.a4f.push(c)}};bB.prototype.Vr=function(h){this.FA=h.currentTarget.NS;
this.uq(this.j_)};function gm(h,G,e,$,Z){ev.call(this);this.NS=G;this.j=D.w("div","head listitem"+(G==Z?" selected":""));
var c=G==$,q=new gg(c?"\u2713":"\u2014");if(c)q._j();this.j.appendChild(q.j);q.k("click",this.H3,this);
var E=this.eq=D.w("span");E.textContent=h;this.j.appendChild(E);this.Ke=[];if(G!=0){this.j.addEventListener("mouseup",this.Vr.bind(this),!1);
this.ae4=D.w("span","headR");this.j.appendChild(this.ae4);var P=["lrs/eye","pos","lrs/fx"],a=["Visibility","Position","Appearance"];
for(var j=0;j<P.length;j++){var L=new gg("<img src=\""+PIMG[P[j]]+"\" class=\"autoscale gsicon\" />",!1,a[j]);
if((e>>j&1)==0)L.j.setAttribute("style","opacity:0.3");L.k("click",this.agT,this);this.ae4.appendChild(L.j);
this.Ke.push(L)}}}gm.prototype=new ev;gm.prototype.Vr=function(h){if(h.target!=this.eq&&h.target!=this.j)return;
if(h.detail==1)this.f(new B("activate",!1));else{var e=new ce.JE(this.eq,this.X2.bind(this))}};gm.prototype.agT=function(h){var G=this.Ke.indexOf(h.currentTarget);
this.tT({e:"editLC",amp:G,NS:this.NS})};gm.prototype.X2=function(h){this.tT({e:"editLC",yW:h,NS:this.NS})};
gm.prototype.H3=function(h){this.tT({e:"setLC",NS:this.NS})};gm.prototype.tT=function(h){var e=new B(D.E.A,!0);
e.data=h;e.F=f.zI;this.f(e)};function hg(){ce.call(this,[9,11],!1,null,ce.WT.ag4);var h=D.w("div","padded");
h.setAttribute("style","min-width:15em");this.C5.appendChild(h);var e=D.w("div");h.appendChild(e);e.setAttribute("style","cursor:grab;");
this.p$=D.w("canvas");this.p$.width=100;e.appendChild(this.p$);D.Sz(this.p$);D.uh(this.p$,this.xj.bind(this));
this.q7=new hN(null,0,f.LZ.Ak.length-1);this.q7.k(D.E.L,this.a8A,this);h.appendChild(this.q7.j);this.ado=this.at.bind(this);
this.a6s=this.E7.bind(this);this.gT=null}hg.prototype=new ce("");hg.prototype.Sy=function(h,e){this.rv()};
hg.prototype.a8A=function(h){var e=this.q7.u(),$=this.gT,Z=f.LZ.Ak[f.LZ.Ak.length-1-e],c=new B(D.E.A,!0);
c.F=f.dc;c.data={e:"zoom",S:Z};this.f(c)};hg.prototype.xj=function(h){if(this.gT==null)return;D._s(window,this.ado);
D.A4(window,this.a6s)};hg.prototype.at=function(h){var e=D.q6(h,this.p$),$=this.gT,Z=this.p$.width,c=this.p$.height,q=(e.x*D.M()-Z/2)/Z,E=(e.y*D.M()-c/2)/c,P=D.M()*$.z.S,a=Math.round(-$.z.S*$.d*q),j=Math.round(-$.z.S*$.v*E);
f.EE.RY($,a,j)};hg.prototype.E7=function(h){D.xR(window,this.ado);D.oT(window,this.a6s)};hg.prototype.uq=function(h){if(h==null&&this.gT!=null)this.p$.width=100;
this.gT=h;this.rv()};hg.prototype.rv=function(){var h=this.gT,Z=0;if(h==null||h.z.S==0)return;var e=h.z;
if(!D.Nn(this.C5))return;this.q7.T(f.LZ.Ak.length-1-f.LZ.Z3(e.S));var $=300*D.M(),c=[h.v2(),new O(0,0,h.d,h.v)];
s.gt(c);while(Math.max(c[Z+1].d,c[Z+1].v)>$){Z+=2}var q=c[Z],E=c[Z+1],P=E.d,a=E.v,j=this.p$;j.width=P;
j.height=a;D.pH(j,P,a);var L=j.getContext("2d"),H=L.createImageData(P,a);s.i7(q,H.data);L.putImageData(H,0,0);
var _=e.qM,J=e.QX(_.x,_.y),S=e.QX(_.x+_.d,_.y+_.v),N=P/h.d;L.scale(N,N);L.lineWidth=4/N;L.strokeStyle="#ff0000";
L.strokeRect(J.x,J.y,S.x-J.x,S.y-J.y)};hg.prototype.if=function(h,e){};hg.prototype.nR=function(){this.rv()};
function g9(h,e){if(h==null){ce.call(this);return}ce.call(this,h.name,!1,h.icon,e);var $=this.a74=D.w("iframe","padded");
$.setAttribute("src",h.url);$.setAttribute("style","width:"+h.width+"px; height:"+h.height+"px");this.C5.appendChild($)}g9.prototype=new ce("");
g9.prototype.Sk=function(h){if(D.Nn(this.a74))this.a74.contentWindow.postMessage(h,"*")};function aE(){ce.call(this,[9,12],!1,null,ce.WT.L$);
this.D0=null;this.Gy=new al(f.XP);this.Gy.parent=this;var h=D.w("div","padded");h.setAttribute("style","width:20em");
this.C5.appendChild(h);h.appendChild(this.Gy.xv)}aE.prototype=new ce("");aE.prototype.nR=function(){this.Gy.K2(this.D0.QM)};
aE.prototype.if=function(h,e){this.D0=h;if(e==iM.uG||e==iM.L$)this.Gy.K2(h.QM)};aE.prototype.Sy=function(h,e){this.Gy.aot(this.D0.$P)};
aE.prototype.B=function(){ce.prototype.B.call(this);this.Gy.B()};function ei(){ev.call(this);this.F=0;
this.dC=null;this.j=D.w("div","toolconf");this.Gy=null;this.Pz=null;this.body=new D.w("div","body")}ei.prototype=new ev;
ei.prototype.a4E=function(h,e){this.F=h;this.dC=e;if(f.YH[h]){var $=this.Gy=new al(h);this.j.appendChild($.j);
$.parent=this}else{this.Pz=D.w("div");this.j.appendChild(this.Pz)}this.j.appendChild(this.body);this.B()};
ei.prototype.Fm=function(h,e){};ei.prototype.D6=function(h){};ei.prototype.if=function(h,e){if(e==iM.uG||e==iM.L$)if(this.Gy)this.Gy.K2(h.QM)};
ei.prototype.ax=function(h){};ei.prototype.B=function(){if(this.Gy)this.Gy.B();else this.Pz.innerHTML=D.H$(this.dC,null,"toolicon");
this.$S()};ei.prototype.$S=function(){};function a7(h){ei.call(this);if(h==null)return;this.D0=null;
this.A6={};for(var G=0;G<h.length;G++){var e=h[G],$=null;if(e=="brush"){$=new iI}if(e=="bmode"){$=new fs([12,19,0],eN.sF,!1,eN.$j)}if(e=="bmode0"){$=new fs([12,19,0],eN.sF.slice(23),!1)}if(e=="emode"){$=new fs([12,36],[[9,3],[10,38]])}if(e=="opacity"){$=new hr([12,0],0,100,"%");
$.T(100)}if(e=="flow"){$=new hr([12,63],0,100,"%");$.T(100)}if(e=="smth"){$=new hr([19,3,0],0,100,"%");
$.T(0)}if(e=="samp"){$=new fs("Sampling",["Brush Center","Start of Stroke","Background Color"])}if(e=="wconf"){$=new b$;
$.T([40,!0,!0])}if(e=="strn"){$=new hr([12,64],1,100,"%");$.T(50)}if(e=="smode"){$=new fs([12,36],[[19,7,0],[19,7,1]]);
$.T(1)}if(e=="pdetail"){$=new cw([12,65]);$._j()}if(e=="rng"){$=new fs([12,12],[[19,6,0],[19,6,1],[19,6,2]]);
$.T(1)}if(e=="expo"){$=new hr([12,5],0,100,"%");$.T(50)}if(e=="algnd"){$=new cw([12,75]);$.T(!1)}if(e=="sfrom"){$=new fs([12,70],[[17,1],[17,3],[17,0]])}if(e=="alt"){$=new gv(null,["Alt"],!0,["Select Source"])}if(e=="qsmode"){$=new cp([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(e=="redge"){$=new gg([7,11],!1,null,!0)}if(e=="setop"){$=new gV}if(e=="patch"){$=new cp(null,[[12,70],[12,71]])}if(e=="prsr"){$=new gv(null,["<img src=\""+PIMG.prsO+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.prsS+"\" class=\"autoscale gsicon\" />"],!0,[[15,9,0],[15,9,1]]);
$.T([!1,!0])}$.parent=this;this.body.appendChild($.j);this.A6[e]=$;if(e=="brush")$.k(D.E.L,this.XQ,this);
else if(e=="redge")$.k("click",this.n3,this);else $.k(D.E.L,this.ek,this)}}a7.prototype=new ei;a7.prototype.Fm=function(h,e){h=h[1];
var $=this.A6;if(h.Md)$.bmode.T(eN.ie.indexOf(h.Md.v.BlnM));if(h.Opct)$.opacity.T(h.Opct.v);if(h.flow)$.flow.T(h.flow.v);
if(h.Brsh)$.brush.T(h,e.Ck.nM,e.Ck.fB);if(h.FrgC){var Z=s.Y.LX(h.FrgC.v),c=new B(D.E.P,!0);c.data={e:D.U.Ov,Av:iM.JD,oD:0,G:Z.h<<16|Z.l<<8|Z.O};
this.f(c)}this.XQ();this.ek()};a7.prototype.D6=function(){if(f.YH[this.F]==null)return null;var h=this.A6,e=JSON.parse(JSON.stringify(h.brush.u()));
e.classID=f.YH[this.F][1][0];if(h.bmode)e.Md={t:"enum",v:{BlnM:eN.ie[h.bmode.u()]}};if(h.opacity)e.Opct={t:"long",v:h.opacity.u()};
if(h.flow)e.flow={t:"long",v:h.flow.u()};var $=this.D0.oV;$={h:$>>>16,l:$>>>8&255,O:$&255};e.FrgC={t:"Objc",v:s.Y.lp($)};
return["Brush Preset "+e.Brsh.v.Dmtr.v.val,e]};a7.prototype.n3=function(){var h=new B(D.E.P,!0);h.data={e:D.U.tr,yq:"redge"};
this.f(h)};a7.prototype.$S=function(){for(var h in this.A6)this.A6[h].B()};a7.prototype.ax=function(h){if(h.amx=="showBrushOpts"){this.A6.brush.JZ(h.NY.x,h.NY.y)}for(var e in h.z4){var $=h.z4[e];
if(e!="qsmode")$*=100;if(this.A6[e])this.A6[e].T($)}};a7.prototype.if=function(h,e){ei.prototype.if.call(this,h,e);
this.D0=h;var $=this.A6.brush;if($==null)return;if(e==iM.uG||e==iM.XP)$.K2(h.Ck);if(e==iM.bT){$.T(h.Ck.oA,h.Ck.nM,h.Ck.fB)}};
a7.prototype.XQ=function(){var h=new B(D.E.P,!0);h.data={e:D.U.Ov,Av:iM.bT,oH:this.A6.brush.u()};this.f(h)};
a7.prototype.ek=function(){var h=new B(D.E.P,!0);h.data={e:D.U.Fe,F:this.F};for(var e in this.A6){if(e=="brush"||e=="redge")continue;
var $=this.A6[e].u();if(["opacity","flow","smth","strn","expo"].indexOf(e)!=-1)h.data[e]=$/100;else if(e=="bmode")h.data.bmode=eN.Pn[$];
else if(e=="bmode0")h.data.bmode=eN.Pn[23+$];else h.data[e]=$}this.f(h)};function f_(h){ei.call(this);
if(h)return;this.data={e:D.U.Fe,H6:"front",gE:0,hZ:[16,!0,!0],_z:{A2:0,x:1,y:1}};this.TP=new gV;this.body.appendChild(this.TP.j);
this.TP.k(D.E.L,this.AI,this);this.C3=new hr([7,6],0,100," px");this.C3.parent=this;this.C3.T(0);this.body.appendChild(this.C3.j);
this.C3.k(D.E.L,this.AI,this);this.zX=new gg([7,11],!1,null,!0);this.body.appendChild(this.zX.j);this.zX.k("click",this.n3,this)}f_.prototype=new ei;
f_.prototype.ax=function(h){if(h.H6!=null)this.TP.T(h.H6);else if(h.Oi){var e=this.data;e.H6=h.Oi.H6;
this.TP.T(e.H6);e.gE=h.Oi.gE;this.C3.T(e.gE);e.hZ=h.Oi.hZ;if(this.$U)this.$U.T(e.hZ)}else{var $=f_.u3;
if($==null){var Z=dP.a1c(!0);$=f_.u3=new dW(Z.items,Z.rS)}$.B();$.parent=this;$.update(h.im,h.pq);var c=new B(D.E.P,!0);
c.data={e:D.U.sH,yv:$,x:h.BQ.aS+2,y:h.BQ.gh+1};this.f(c)}};f_.prototype.$S=function(){this.C3.B();this.TP.B();
this.zX.B()};f_.prototype.n3=function(){var h=new B(D.E.P,!0);h.data={e:D.U.tr,yq:"redge"};this.f(h)};
f_.prototype.AI=function(){var h=new B(D.E.P,!0);this.data.F=this.F;this.data.H6=this.TP.u();this.data.gE=this.C3.u();
h.data=this.data;this.f(h)};function eK(){a7.call(this,["brush","strn"])}eK.prototype=new a7;function c1(){a7.call(this,"brush bmode opacity flow smth prsr".split(" "))}c1.prototype=new a7;
function aX(){a7.call(this,["brush","bmode0","samp","wconf"])}aX.prototype=new a7;function di(){a7.call(this,["brush"])}di.prototype=new a7;
function d7(){a7.call(this,["brush","bmode","opacity","smth","prsr"])}d7.prototype=new a7;function eJ(){a7.call(this,["brush","rng","expo"])}eJ.prototype=new a7;
function gu(){a7.call(this,"brush bmode opacity algnd sfrom alt".split(" "))}gu.prototype=new a7;function bu(h){ei.call(this);
if(h==null)return;var e=D.w("span","fitem");this.body.appendChild(e);var $=[[17,0],[17,1],[11,12,0],[17,2]];
this.xO=[];for(var G=0;G<$.length;G++){var Z=new gg($[G],!1,null,!0);this.xO.push(Z);Z.k("click",this.acS,this);
if(!h||G==1)e.appendChild(Z.j)}this._z=new fv;this._z.k(D.E.L,this.H2,this);if(!h)this.body.appendChild(this._z.j);
this.EC=new cw("Delete Cropped Pixels");this.EC.k(D.E.L,this.H2,this);if(!h)this.body.appendChild(this.EC.j);
this.p6=new d1;this.p6.k("click",this.T6,this)}bu.prototype=new ei;bu.prototype.$S=function(){this.p6.B();
for(var G=0;G<this.xO.length;G++)this.xO[G].B();this._z.B();this.EC.B()};bu.prototype.ax=function(h){var e=this.p6.j;
if(h.Uu)this.body.appendChild(e);else if(this.body.contains(e))this.body.removeChild(e);if(h._z)this._z.T(h._z)};
bu.prototype.T6=function(h){var e={e:D.U.Fe,F:this.F,Bg:this.p6.u()?"commit":"cancel"},$=new B(D.E.P,!0);
$.data=e;this.f($)};bu.prototype.acS=function(h){h.target.j.blur();var e={e:D.U.Fe,F:this.F,Bg:"cropby",aiA:this.xO.indexOf(h.target)},$=new B(D.E.P,!0);
$.data=e;this.f($)};bu.prototype.H2=function(h){var e={e:D.U.Fe,F:this.F,Bg:"config",Yg:{c4:this._z.u()}};
if(h.target==this.EC)e.Yg.Hx=this.EC.u();var $=new B(D.E.P,!0);$.data=e;this.f($)};function iX(){bu.call(this,!1)}iX.prototype=new bu;
function dR(){bu.call(this,!0)}dR.prototype=new bu;function eL(){a7.call(this,["brush","rng","expo"])}eL.prototype=new a7;
function cf(){a7.call(this,"brush emode opacity flow smth prsr".split(" "))}cf.prototype=new a7;function gz(){a7.call(this,["brush","samp","wconf"])}gz.prototype=new a7;
function aq(){f_.call(this);this._z=new fv;this._z.k(D.E.L,this.x7,this);this.body.appendChild(this._z.j)}aq.prototype=new f_(!0);
aq.prototype.x7=function(h){this.data._z=this._z.u();this.AI()};aq.prototype.$S=function(){f_.prototype.$S.call(this);
this._z.B()};function eh(){ei.call(this);this.eP=new fs([12,20],["1x1","3x3","5x5","11x11","31x31"]);
this.eP.k(D.E.L,this.ek,this);this.body.appendChild(this.eP.j)}eh.prototype=new ei;eh.prototype.ek=function(h){var e=new B(D.E.P,!0);
e.data={e:D.U.Fe,F:this.F,Kd:[1,3,5,11,31][this.eP.u()]};this.f(e)};eh.prototype.$S=function(){this.eP.B()};
function bk(){ei.call(this);this.xY=new fh(!1);this.xY.parent=this;this.xY.k(D.E.L,this.dn,this);this.body.appendChild(this.xY.j);
this.xY.T(JSON.parse(c3.zn.pF).v);this.g_=new fs(null,c3.Y.names.slice(0,5));this.g_.k(D.E.L,this.dn,this);
this.body.appendChild(this.g_.j);this.AG=new fs([12,19,0],eN.sF,null,eN.$j);this.AG.k(D.E.L,this.dn,this);
this.body.appendChild(this.AG.j);this.tz=new hr([12,0],0,100,"%");this.tz.parent=this;this.tz.k(D.E.L,this.dn,this);
this.body.appendChild(this.tz.j);this.tz.T(100);this.gv=new cw([12,23,0]);this.gv.k(D.E.L,this.dn,this);
this.body.appendChild(this.gv.j);this.lu=new cw("Dither");this.lu.k(D.E.L,this.dn,this);this.body.appendChild(this.lu.j)}bk.prototype=new ei;
bk.prototype.$S=function(){this.g_.B();this.AG.B();this.tz.B();this.gv.B();this.lu.B()};bk.prototype.if=function(h,e){ei.prototype.if.call(this,h,e);
var $=e==iM.JD;this.xY.DM(h.oV,h.XK);if($||e==iM.xB||e==iM.uG)this.xY.K2(h.aI)};bk.prototype.dn=function(){var h=new B(D.E.P,!0);
h.data={e:D.U.Fe,F:this.F};h.data.Av={Y:this.xY.u(),R_:c3.Y.types[this.g_.u()],O4:this.gv.ha(),ajG:this.lu.ha(),abQ:eN.Pn[this.AG.u()],lV:this.tz.u()/100};
this.f(h)};function bH(){ei.call(this)}bH.prototype=new ei;function cG(){ei.call(this);var h=D.w("span","fitem");
this.body.appendChild(h);this.hH=[new hr([12,15],0,0,"\xB0"),new gg("Reset",null,null,!0)];for(var G=0;
G<this.hH.length;G++){var e=this.hH[G];e.parent=this;h.appendChild(e.j);e.k(G==1?"click":D.E.L,this.Tv,this)}}cG.prototype=new ei;
cG.prototype.$S=function(){for(var G=0;G<this.hH.length;G++)this.hH[G].B()};cG.prototype.ax=function(h){this.hH[0].T(h.w0*180/Math.PI)};
cG.prototype.Tv=function(h){var e=this.hH.indexOf(h.target),$=new B(D.E.P,!0);$.data={e:D.U.Fe,F:this.F,w0:e==1?0:h.target.u()*Math.PI/180};
this.f($)};function ew(){a7.call(this,["brush","algnd","sfrom","alt"])}ew.prototype=new a7;function g6(){ei.call(this);
this.fj=new af;this.fj.parent=this;this.body.appendChild(this.fj.a5.j);this.body.appendChild(this.fj.O1.j);
this.body.appendChild(this.fj.lX.j);var h=D.w("span","fitem");this.body.appendChild(h);h.appendChild(this.fj.e6.j);
h.appendChild(this.fj.Og.j);h.appendChild(this.fj.vt.j);this.sO=new fs("Aa",[[22,5,0],"Sharp","Crisp","Strong","Smooth"]);
this.sO.k(D.E.L,this.T6,this);this.body.appendChild(this.sO.j);this.g0=new gg([11,9],!1,null,!0);this.g0.k("click",this.aaZ,this);
this.body.appendChild(this.g0.j);this.p6=new d1;this.p6.k("click",this.T6,this)}g6.prototype=new ei;
g6.prototype.$S=function(){this.p6.B();this.fj.B();this.g0.B()};g6.prototype.aaZ=function(h){var e={e:D.U.Fe,F:this.F,Bg:"showwarp"},$=new B(D.E.P,!0);
$.data=e;this.f($)};g6.prototype.ax=function(h){if(h.Bg=="showactive")this.body.appendChild(this.p6.j);
if(h.Bg=="hideactive")this.body.removeChild(this.p6.j);if(h.Bg=="changeAA")this.sO.T(h.El)};g6.prototype.if=function(h,e){ei.prototype.if.call(this,h,e);
if(e!=iM.uG&&e!=iM.s1&&e!=iM.jV&&e!=iM.dQ)return;this.fj.T(h.wM,h.R0,h.Cn)};g6.prototype.T6=function(h){var e={e:D.U.Fe,F:this.F,Bg:this.p6.u()?"commit":"cancel"};
if(h.target==this.sO){e.Bg="changeAA";e.El=this.sO.u()}var $=new B(D.E.P,!0);$.data=e;this.f($)};function hI(){f_.call(this)}hI.prototype=new f_(!0);
function g7(){ei.call(this);var h=[],$="<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.ww=new cw([12,85]);this.ww.k(D.E.L,this.ek,this);h.push(this.ww.j);this.L0=new cw([20,1]);this.L0.k(D.E.L,this.ek,this);
h.push(this.L0.j);this.gN=new cw([12,83]);this.gN.k(D.E.L,this.ek,this);h.push(this.gN.j);var e=D.w("span","fitem");
h.push(e);this.abc=new fs("Scale for exported files",["1x","2x","3x","4x"],!0);e.appendChild(this.abc.j);
this.jr=new gg($+" PNG",!1,"Save selected layers as PNG",!0);e.appendChild(this.jr.j);this.jr.k("click",this.OD,this);
this.ao4=new gg($+" SVG",!1,"Save selected layers as SVG",!0);e.appendChild(this.ao4.j);this.ao4.k("click",this.OD,this);
var Z=D.w("span","fitem");h.push(Z);var c=D.w("span","fitem");h.push(c);this.Ke=[];for(var G=0;G<8;G++){var q=G==3||G==7?[20,4,6]:[20,4,G<3?G:G-1],E=new gg("Hi",!1,q);
(G<4?Z:c).appendChild(E.j);E.k("click",this.OD,this);this.Ke.push(E)}for(var G=0;G<h.length;G++)this.body.appendChild(h[G]);
this.a9i=h}g7.prototype=new ei;g7.prototype.ax=function(h){var e=h.Oi,$=h.a0t;this.ww.T(e.EV);this.L0.T(e.HO);
this.gN.T(e.Q2);if($){D.LK(this.body);for(var G=0;G<$.length;G++)if($[G]==1&&this.a9i[G])this.body.appendChild(this.a9i[G])}};
g7.prototype.OD=function(h){var e=this.Ke.indexOf(h.target),$;if(e==-1){$=new B(D.E.P,!0);$.data={e:D.U.Fe,F:this.F,oD:h.target==this.jr?"getPNG":"getSVG",fn:this.abc.u()+1}}else{$=new B(D.E.A,!0);
$.F=f.OA;$.data={e:"algn",G:e}}this.f($)};g7.prototype.ek=function(h){var e=new B(D.E.P,!0);e.data={e:D.U.Fe,F:this.F,oD:"prms",EV:this.ww.ha(),HO:this.L0.ha(),Q2:this.gN.ha()};
this.f(e)};g7.prototype.$S=function(){this.ww.B();this.L0.B();this.gN.B();var h="h0 h1 h2 hG v0 v1 v2 vG".split(" ");
for(var G=0;G<8;G++){this.Ke[G].TQ(D.H$("align/"+h[G],null,"autoscale"))}};function hD(){f_.call(this);
var h=this.$U=new b$;h.parent=this;h.k(D.E.L,this.a0B,this);this.body.appendChild(h.j)}hD.prototype=new f_(!0);
hD.prototype.a0B=function(h){this.data.hZ=this.$U.u();this.AI()};hD.prototype.$S=function(){f_.prototype.$S.call(this);
this.$U.B()};function hL(){a7.call(this,["setop","patch"])}hL.prototype=new a7;function cu(){a7.call(this,["setop"])}cu.prototype=new a7;
function fJ(){a7.call(this,["bmode","opacity","wconf"])}fJ.prototype=new a7;function h5(){f_.call(this)}h5.prototype=new f_(!0);
function gG(){f_.call(this)}gG.prototype=new f_(!0);function cm(){f_.call(this);this._z=new fv;this._z.k(D.E.L,this.x7,this);
this.body.appendChild(this._z.j)}cm.prototype=new f_(!0);cm.prototype.x7=function(h){this.data._z=this._z.u();
this.AI()};cm.prototype.$S=function(){f_.prototype.$S.call(this);this._z.B()};function fE(){ei.call(this);
this.D0=null;this.n7=null;this.oe=[new a_("X",null,3),new a_("Y",null,3),new a_("W",null,3),new a_("H",null,3),new a_([12,15],null,4),new a_([12,80,0],null,4),new gg([15,7,6],!1,null,!0)];
for(var G=0;G<this.oe.length;G++){var h=this.oe[G];this.body.appendChild(h.j)}this.oe[6].k("click",this.aoi,this);
this.Q0=0}fE.prototype=new ei;fE.prototype.aoi=function(h){if(this.Q0==0){return}var e=new B(D.E.A,!0);
e.F=f.Fk;e.data={e:"rot",cJ:[2,5],G:-this.Q0};this.f(e)};fE.prototype.ax=function(h){if(h==null)return;
this.n7=h;var e=h.aj9,$=h.rO,Z=$.x-e.x,c=$.y-e.y,q=this.oe;this.Q0=-Math.atan2(c,Z);q[0].T(e.x);q[1].T(e.y);
q[2].T(Z);q[3].T(c);q[4].T((this.Q0*180/Math.PI).toFixed(2));var E=Math.sqrt(Z*Z+c*c);E=s.IQ.MB(E,h.Ay,this.D0,h.amG,!1);
q[5].T(parseFloat(E).toFixed(2))};fE.prototype.if=function(h,e){this.D0=h;this.ax(this.n7)};fE.prototype.$S=function(){var h=this.oe;
for(var G=0;G<h.length;G++)h[G].B();D.Qb(h[2],h[3])};function fI(){a7.call(this,["brush","strn","pdetail"])}fI.prototype=new a7;
function i6(){a7.call(this,["brush","sfrom"]);this.a8h=[];var h=[[7,12]];for(var G=0;G<h.length;G++){var e=new gg(h[G],!1,null,!0);
this.a8h.push(e);e.parent=this;this.body.appendChild(e.j);e.k("click",this.ajl,this)}}i6.prototype=new a7;
i6.prototype.ajl=function(h){var e=this.a8h.indexOf(h.currentTarget),$=new B(D.E.Kz,!0);$.data=f.rz.GC("contentAware");
this.f($)};function gq(){a7.call(this,["brush","strn"])}gq.prototype=new a7;function eH(){a7.call(this,["brush","flow","smode"])}eH.prototype=new a7;
function gr(){ei.call(this);this.vy=!1;var h=D.w("span","fitem");this.body.appendChild(h);this.DS=new cp(null,["<img src=\""+PIMG.zoomIn+"\" class=\"autoscale gsicon\" />","<img src=\""+PIMG.zoomOut+"\" class=\"autoscale gsicon\" />"]);
h.appendChild(this.DS.j);this.DS.k(D.E.L,this.ek,this);this.yN=new gg([20,2]);this.body.appendChild(this.yN.j);
this.yN.k("click",this.C$,this);this.OG=new gg([20,3]);this.body.appendChild(this.OG.j);this.OG.k("click",this.C$,this)}gr.prototype=new ei;
gr.prototype.$S=function(){this.yN.B();this.OG.B()};gr.prototype.ek=function(){var h={e:D.U.Fe,F:this.F,L1:this.DS.u()==0},e=new B(D.E.P,!0);
e.data=h;this.f(e)};gr.prototype.ax=function(h){if(this.vy!=h.vy)this.DS.T(1-this.DS.u());this.vy=h.vy};
gr.prototype.C$=function(h){var e=new B(D.E.A,!0);e.F=f.dc;e.data={e:"adapt",G:h.target==this.yN?"pixel":"fitscr"};
this.f(e)};function fB(h,e){ei.call(this);if(h==null)return;this.A6={};var $=[[12,76,0],[12,76,1]];if(e==null)$.push([12,76,2]);
for(var G=0;G<h.length;G++){var Z=h[G],c=null;if(Z=="tmode"){c=new fs(null,$);c.T(1)}if(Z=="make"){c=new gg("Make Selection",null,null,!0);
c.WJ()}if(Z=="binop"){c=new fs(null,[[18,1],[18,2],[18,3],[18,4]]);c.WJ()}if(Z=="pshape")c=new fs(null,[[12,93,0],[12,93,1],"Arrow",[12,93,2]]);
if(Z=="shape")c=new hS([12,76,1]);if(Z=="crad"){c=new hr([12,94,0],0,50,"px");c.T(0)}if(Z=="cstr"){c=new fv}if(Z=="irad"){c=new hr([12,94,1],0,100,"%");
c.T(40)}if(Z=="length"){c=new hr([12,80,0],4,40);c.T(4)}if(Z=="sides"){c=new hr([12,78],3,30);c.T(5)}if(Z=="width"){c=new hr([12,41],1,100,"px");
c.T(5)}if(Z=="tsiz"){c=new hr("Tip Size",100,500,"%");c.T(300)}if(Z=="tolr"){c=new hr([12,24],0,100);
c.T(5)}if(Z=="fstyle"){c=new gC([12,26])}if(Z=="sstyle"){c=new em}if(Z=="psnap"){c=new cw([8,10])}if(Z=="crnr"){c=new gg("\u2312",!1,[12,94,0],!0)}c.parent=this;
this.body.appendChild(c.j);this.A6[Z]=c;c.k(Z=="crnr"||Z=="make"?"click":D.E.L,this.ek,this)}}fB.prototype=new ei;
fB.prototype.ax=function(h){if(h.oD=="vals"){for(var e in h.alp)this.A6[e].T(h.alp[e]);this.EZ();return}var $=fB.u3;
if($==null)$=fB.u3=new dW([{name:"Make Selection"}],[{c:D.E.P,g:{e:D.U.tr,yq:"makesel"}}]);$.parent=this;
$.update(h.im,h.pq);var Z=new B(D.E.P,!0);Z.data={e:D.U.sH,yv:$,x:h.BQ.aS+2,y:h.BQ.gh+1};this.f(Z)};
fB.prototype.aX=function(G){return null};fB.prototype.EZ=function(){if(this.A6.pshape==null)return;var h=this.aX(this.A6.pshape.u());
if(h==null)return;D.LK(this.body);for(var G=0;G<h.length;G++){var e=h[G];this.body.appendChild(this.A6[e].j)}};
fB.prototype.$S=function(){for(var h in this.A6){this.A6[h].B()}};fB.prototype.ek=function(h){if(h.target==this.A6.crnr){var e=new B(D.E.A,!0);
e.F=f.f6;e.data={e:"crnr"};this.f(e);return}if(h.target==this.A6.make){var e=new B(D.E.P,!0);e.data={e:D.U.tr,yq:"makesel"};
this.f(e);return}var e=new B(D.E.P,!0);if(h.target==this.A6.fstyle){e.data={e:D.U.Ov,Av:iM.EL,G:this.A6.fstyle.u()};
this.f(e);return}if(h.target==this.A6.sstyle){e.data={e:D.U.Ov,Av:iM.H9,G:this.A6.sstyle.u()};this.f(e);
return}if(this.A6.tmode&&this.A6.binop){var $=this.A6.tmode.u()==0,Z=this.A6.binop,c=this.A6.make;if(Z)Z.NA($);
if(c)c.NA($)}e.data={e:D.U.Fe,F:this.F};for(var q in this.A6)if(q!="sstyle")e.data[q]=this.A6[q].u();
this.f(e);if(h.target==this.A6.pshape)this.EZ()};fB.prototype.if=function(h,e){ei.prototype.if.call(this,h,e);
var $=this.A6.fstyle,Z=this.A6.sstyle;if($)$.if(h,e);if(Z)Z.if(h,e);if(e==iM.uG||e==iM.sK)if(h.bY.length!=0&&this.A6.shape){this.A6.shape.K2(h.bY)}if(e==iM.uG||e==iM.EL)if($)$.T(null,h.gj,h.af$);
if(e==iM.uG||e==iM.H9)if(Z)Z.T(null,h.eY,h.adP)};function gS(){fB.call(this,["tmode","make","fstyle","sstyle","binop"],!0)}gS.prototype=new fB;
function cB(){fB.call(this,["tmode","fstyle","sstyle","binop","tolr"])}cB.prototype=new fB;function g8(){fB.call(this,["fstyle","sstyle"]);
this.ahy=null;this.aol=null;this.a8E=null;this.gF=new fs("Path",[[18,1],[18,2],[18,3],[18,4],[18,5]],!1,[4]);
this.LO=new gg("\u25BC");this.LO._j();this.iI=new gg("\u25B2");this.iI._j();this.sp=[this.gF,this.LO,this.iI];
for(var G=0;G<this.sp.length;G++){var h=this.sp[G];this.body.appendChild(h.j);h.parent=this;h.k(G==0?D.E.L:"click",this.zs,this)}}g8.prototype=new fB;
g8.prototype.ax=function(h){if(h.Bg=="main"){var e=this.sp,$=h.Qw;if($&&$.C.length==1){this.aol=$.clone();
this.a8E=JSON.stringify(h.as);var Z=$.C[0],c=s.W.H4($.b);this.gF.pw();if(Z>0)this.LO.pw();else this.LO.WJ();
if(Z<c-1)this.iI.pw();else this.iI.WJ();var q=s.W.jb($.b,Z),E=$.b[q];this.gF.TQ("Path "+(Z+1));this.gF.T([3,0,1,2][E.aN])}else{for(var G=0;
G<e.length;G++)e[G].WJ()}}else fB.prototype.ax.call(this,h)};g8.prototype.$S=function(){fB.prototype.$S.call(this);
this.gF.B()};g8.prototype.zs=function(h){if(h.target==this.gF||h.target==this.LO||h.target==this.iI){var e={},$=this.aol,Z=$.b,c=JSON.parse(this.a8E),q=$.C[0],E=s.W.jb(Z,q),P=Z[E];
if(h.target==this.gF){var a=this.gF.u();if(a<4)P.aN=[1,2,3,0][a];else{if(s.W.H4(Z)<=1)return;$.b=s.W.BL(Z);
$.C=$.b.length==2?[]:[0];$.pc=[];c=[s.as.qm()]}}else{var j=h.target==this.LO?-1:1,L=Math.min(q,q+j),H=Math.max(q,q+j),_=s.W.jb(Z,L),J=s.W.jb(Z,H);
if(_==-1||J==-1)return;var S=J+s.W.kv(Z,H),N=c[L];c[L]=c[H];c[H]=N;var Y=Z.slice(0,_),U=Z.slice(_,J),g=Z.slice(J,S),M=Z.slice(S);
$.b=Y.concat(g.concat(U.concat(M)));$.C[0]+=j}e.Qw=$;e.as=c;var C=new B(D.E.P,!0);C.data={e:D.U.Fe,F:this.F,py:e};
this.f(C)}};function gs(){fB.call(this,["fstyle","sstyle","crnr","psnap"])}gs.prototype=new fB;function bJ(){fB.call(this,"tmode fstyle sstyle binop cstr crad".split(" "))}bJ.prototype=new fB;
function fZ(){fB.call(this,["tmode","fstyle","sstyle","binop","cstr"])}fZ.prototype=new fB;function fM(){fB.call(this,"tmode fstyle sstyle binop pshape sides irad crad width tsiz length".split(" "));
this.a3F=[["sides","crad"],["sides","irad","crad"],["width","tsiz"],["length"]];this.EZ()}fM.prototype=new fB;
fM.prototype.aX=function(G){return["tmode","fstyle","sstyle","binop","pshape"].concat(this.a3F[G])};
function aN(){fB.call(this,["tmode","fstyle","sstyle","binop","width"])}aN.prototype=new fB;function ar(){fB.call(this,"tmode fstyle sstyle binop cstr shape".split(" "))}ar.prototype=new fB;
function bs(){f_.call(this)}bs.prototype=new f_(!0);function dB(){a7.call(this,["brush","qsmode","redge"])}dB.prototype=new a7;
function iC(){ei.call(this)}iC.prototype=new ei;function i2(){ei.call(this);this.LO=new gg("\u25BC");
this.LO._j();this.iI=new gg("\u25B2");this.iI._j();var hi=[this.LO,this.iI];for(var G=0;G<2;G++){var h=hi[G];
this.body.appendChild(h.j);h.k("click",this.zs,this)}}i2.prototype=new ei;i2.prototype.zs=function(h){var e=new B(D.E.P,!0);
e.data={e:D.U.Fe,F:this.F,oD:"reorder",dir:h.target==this.LO?-1:1};this.f(e)};function cW(h,e){ei.call(this);
if(window.Typr==null||h)return;this.ae8=e;this.QU=null;this.a1M=D.w("span","");this.acc=D.w("span","");
var $=1;this.pC={An:new fc(null,24),cE:new hr("X",0,0,"px",0,!1,!0,4),Jd:new hr("Y",0,0,"px",0,!1,!0,4),Oq:new hr("W",0,0,["%","px"],2,!1,!0,5),VB:new gg("\u2261",null,[12,51],null),Rm:new hr("H",0,0,["%","px"],2,!1,!0,5),afE:new hr("\u2221",0,0,"\xB0",$,!1,!0),a4J:new hr("\u25B1 H",-85,85,"\xB0",$,!1,!0),aiO:new hr("\u25B1 V",-85,85,"\xB0",$,!1,!0),Lx:new fs(null,[[12,14,2],[12,14,3],"Bicubic Sharper"])};
this.pC.Lx.T(1);for(var Z in this.pC){var c=this.pC[Z];if(e&&(c==this.pC.afE||c==this.pC.a4J||c==this.pC.aiO||c==this.pC.Lx)){}else this.a1M.appendChild(c.j);
var q=c==this.pC.VB?"click":D.E.L;c.k(q,this.amj,this)}this.$U=new aZ(!0,!0,!0);this.$U.k(D.E.L,this.a7M,this);
this.$U.parent=this;var E=this.acc,P=this.$U;E.appendChild(P.Zf.j);E.appendChild(P.ns.j);E.appendChild(P.AH.j);
E.appendChild(P.MH.j);E.appendChild(P.eD.j);this.g0=new gg([11,9]);this.g0.k("click",this.aif,this);
this.p6=new d1;this.p6.k("click",this.T6,this)}cW.prototype=new ei;cW.prototype.ax=function(h){if(h.BQ){var e=cW,$=this.u3;
if($==null)$=this.u3=new dW(e.ZU(),e.yX(this.F));$.B();$.parent=this;$.update(h.im,h.pq);var Z=new B(D.E.P,!0);
Z.data={e:D.U.sH,yv:$,x:h.BQ.aS+2,y:h.BQ.gh+1};this.f(Z);return}D.LK(this.body);this.QU=h;if(h.pC){var c=h.pC._,q=h.pC.FC.clone(),E=Math.atan2(-q.O,q.R),P=new i7;
P.rotate(-E);q.concat(P);var a=this.pC;a.An.T(h.pC.BH);a.cE.T(h.pC.yE.x);a.Jd.T(h.pC.yE.y);a.Oq.T(q.R*(a.Oq.TN()=="%"?100:c.d));
a.Rm.T(q.rU*(a.Rm.TN()=="%"?100:c.v));a.afE.T(-E*180/Math.PI);a.a4J.T(0*180/Math.PI);a.aiO.T(Math.atan(q.Ma)*180/Math.PI);
this.body.appendChild(this.a1M);this.g0.Qv()}if(h.gL){this.$U.T(h.gL);this.body.appendChild(this.acc);
this.g0._j()}this.body.appendChild(this.p6.j);if(h.a8m&&!this.ae8)this.body.appendChild(this.g0.j)};
cW.prototype.amj=function(h){var e=this.pC,$=this.QU.pC._;if(h.target==e.VB)e.VB.T(!e.VB.u());if(e.VB.ha()){var Z=e.Rm,c=e.Oq,q=$.v,E=$.d;
if(h.target==e.Oq){Z=e.Oq;c=e.Rm;q=$.d;E=$.v}var P=Z.u()/(Z.TN()=="%"?100:q);P*=c.TN()=="%"?100:E;c.T(P)}var a=[];
for(var j in e)if(e[j]!=e.VB&&e[j]!=e.An){var P=e[j].u();if((e[j]==e.Oq||e[j]==e.Rm)&&P==0){P=.1;e[j].T(P)}if(e[j]==e.Oq&&e[j].TN()=="px")P/=$.d/100;
if(e[j]==e.Rm&&e[j].TN()=="px")P/=$.v/100;a.push(P)}var L=new eu(a[0],a[1]);if(h.target==e.An){this.Et({Bg:"ctyp",BH:e.An.u()})}else if(h.target==e.cE||h.target==e.Jd){this.Et({Bg:"cen",yE:L})}else{var H=this.QU.pC.FC.clone(),_=H.clone(),J=Math.atan2(-H.O,H.R);
_.translate(-L.x,-L.y);_.rotate(-J);var S=new i7(_.R,_.O,_.Ma,_.rU,0,0);S.vy();_.concat(S);_.concat(new i7(a[2]/100,Math.tan(a[5]*Math.PI/180),Math.tan(a[6]*Math.PI/180),a[3]/100,0,0));
_.rotate(-a[4]*Math.PI/180);_.translate(L.x,L.y);this.QU.pC.FC=_;this.Et({Bg:"trn",pC:_,EU:this.pC.Lx.u()})}};
cW.prototype.a7M=function(h){this.Et({Bg:"wrp",gL:this.$U.u()})};cW.prototype.aif=function(h){this.Et({Bg:"switchWarp"})};
cW.prototype.T6=function(h){this.Et({Bg:this.p6.u()?"commit":"cancel"})};cW.prototype.Et=function(h){h.e=D.U.Fe;
h.F=this.F;var e=new B(D.E.P,!0);e.data=h;this.f(e)};cW.prototype.$S=function(){var h=this.pC;for(var e in h)h[e].B();
D.Qb(h.Oq,h.Rm);this.p6.B();this.$U.B();this.g0.B()};cW.ZU=function(){return[{name:[5,9],lA:"Shift+Alt+Ctrl + T",lv:!0},{name:[12,38]},{name:[2,5]},{name:[24,4]},{name:[2,9]},{name:[11,9],Q:function(h){if(h==null||h.C.length!=1)return{Q:!1};
var e=h.t[h.C[0]];return{Q:e.add.TySh==null&&!e.vG()}},lv:!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]]}]};
cW.yX=function(h){if(h==null)h=f.Fk;return[{c:D.E.A,F:h,g:{e:"again"}},{c:D.E.P,g:{e:D.U.kX,F:h,Oi:{bM:3}}},{c:D.E.P,g:{e:D.U.kX,F:h,Oi:{bM:4}}},{c:D.E.P,g:{e:D.U.kX,F:h,Oi:{bM:2}}},{c:D.E.P,g:{e:D.U.kX,F:h,Oi:{bM:1}}},{c:D.E.P,g:{e:D.U.kX,F:h,Oi:{bM:-1}}},{c:D.E.A,F:h,g:{e:"rot",cJ:[2,5],G:-Math.PI/2}},{c:D.E.A,F:h,g:{e:"rot",cJ:[2,5],G:-3*Math.PI/2}},{c:D.E.A,F:h,g:{e:"rot",cJ:[2,5],G:Math.PI}},{c:D.E.A,F:h,g:{e:"scl",cJ:[[2,6],[22,4,2]],G:new eu(-1,1)}},{c:D.E.A,F:h,g:{e:"scl",cJ:[[2,6],[22,4,3]],G:new eu(1,-1)}}]};
function du(){cW.call(this)}du.prototype=new cW(!0);function ad(){cW.call(this)}ad.prototype=new cW(!0);
function fb(){cW.call(this,!1,!0)}fb.prototype=new cW(!0);function dg(){ei.call(this);var h=this.RG=[new fs([12,36],["Rigid",[15,10,0],[24,4]]),new fs([12,74],[[19,8,0],[19,8,1],[19,8,2]]),new hr([7,4],0,100,"px"),new cw("Show Mesh"),new gg("\u25BC",null,null,!0),new gg("\u25B2",null,null,!0)];
for(var G=0;G<h.length;G++){var e=h[G];e.parent=this;this.body.appendChild(e.j);e.k(G<4?D.E.L:"click",this.ahM,this)}this.p6=new d1;
this.p6.k("click",this.T6,this);this.body.appendChild(this.p6.j)}dg.prototype=new ei;dg.prototype.$S=function(){var h=this.RG;
for(var G=0;G<4;G++)h[G].B();this.p6.B()};dg.prototype.ax=function(h){var h=h.Av;for(var G=0;G<4;G++)this.RG[G].T(h[G])};
dg.prototype.ahM=function(h){var e=[];for(var G=0;G<4;G++)e[G]=this.RG[G].u();var $=this.RG.indexOf(h.target);
if($<4)this.Et({Bg:"prm",Av:e});else this.Et({Bg:"moveDepth",a2d:$==5})};dg.prototype.T6=function(h){this.Et({Bg:this.p6.u()?"commit":"cancel"})};
dg.prototype.Et=function(h){h.e=D.U.Fe;h.F=this.F;var e=new B(D.E.P,!0);e.data=h;this.f(e)};function f1(){ev.call(this);
this.j=D.w("div","cmanager");window.alert=function(Z,c){this.a4p(Z,c);console.log("Alert: "+Z)}.bind(this);
window.onblur=function(Z){var c=this;c.QE()}.bind(this);this.EN=0;this.CD=0;this.MK=[];this.Ag={};this.D9=D.w("div","alertcont");
this.j.appendChild(this.D9);this.a8C=D.w("div","alertcont");this.j.appendChild(this.a8C);this.J2=D.w("div","alertcont");
this.am9=0;this.hb=-1;this.a10=null;this.Ue=null;var h=this.anX=D.w("div","alertpanel");h.setAttribute("style","padding:0.7em 1em 0.1em 1em;");
this.J2.appendChild(h);var e=this.iB=D.w("input");e.setAttribute("type","text");e.setAttribute("style","background-color:white; color:black; font-size:1.2em; width:100%;  margin:0;");
e.addEventListener("input",this.ane.bind(this),!1);e.addEventListener("keydown",this.acW.bind(this),!1);
h.appendChild(e);var $=this.alT=D.w("div","contextpanel scrollable");$.setAttribute("style","text-align:left; box-shadow:none; margin:0.5em 0 1em 0;color:#888;");
$.addEventListener("click",this.amZ.bind(this),!1);h.appendChild($);D.uh(document.body,this.a8x.bind(this))}f1.prototype=new ev;
f1.prototype.WC=function(){if(D.Nn(this.J2))this.j.removeChild(this.J2)};f1.prototype.a60=function(h,e){var $=this.a10=[];
for(var G=0;G<dP.data.length;G++){var Z=dP.data[G],c=[e_.get(Z.name)],q=[G];f1.jn(Z.items,c,q,$,h,e)}var E=aR.Nh;
for(var G=0;G<E.length;G+=3){$.push([["Tools",e_.get(E[G])],[-1,E[G+2]]])}this.j.appendChild(this.J2);
var P=this.iB;P.focus();P.select();this.rv()};f1.prototype.ane=function(h){this.hb=-1;this.rv()};f1.prototype.rv=function(){var h=this.iB.value.toLowerCase().trim().replace(/  +/g," "),e=this.a10,$=[],Z=[],c=h.split(" ");
if(h!="")for(var G=0;G<e.length;G++){var q=e[G][0],E=[],P=0;for(var a=0;a<q.length;a++)E[a]=-1;for(var j=0;
j<c.length;j++)for(var a=0;a<q.length;a++){var L=q[a].toLowerCase().indexOf(c[j]);if(L!=-1){E[a]=[L,L+c[j].length];
P++;break}}if(P==c.length){$.push(e[G]);Z.push(E)}}var H=[],_=this.alT;D.LK(_);for(var G=0;G<$.length;
G++){var J=$[G][0],L=Z[G],S="enab",Y="";if(G==this.hb)S+=" active";var N=D.w("div",S);H.push(N);_.appendChild(N);
for(var a=0;a<J.length;a++){var U=L[a],g=c[a],M=J[a];if(U!=-1)M=M.slice(0,U[0])+"<span style=\"color:black\">"+M.slice(U[0],U[1])+"</span>"+M.slice(U[1]);
Y+=M;if(a<J.length-1)Y+=" \uFE65 "}N.innerHTML=Y}this.Ue=[$,H]};f1.prototype.acW=function(h){var e=p.VG,$=h.code;
if(e($,p.fp))this.WC();var Z=e($,p.wi),c=e($,p.Xs),q=e($,p.Gr);if(Z||c){this.hb=Math.max(0,Math.min(this.Ue[0].length-1,this.hb+(Z?-1:1)));
this.rv()}if(q&&this.hb!=-1)this.CP(this.hb)};f1.jn=function(h,e,$,Z,c,q){for(var G=0;G<h.length;G++){var E=h[G],P=e.slice(0),a=$.slice(0),j=e_.get(E.name);
if(E.Q){var L=E.Q(c,q,G);if(L.V2)j=L.V2;if(L.Q==!1)continue}P.push(j);a.push(G);if(E.sub)f1.jn(E.sub,P,a,Z,c,q);
else Z.push([P,a])}};f1.prototype.amZ=function(h){var e=h.target;if(e.tagName.toLowerCase()=="span")e=e.parentNode;
var $=this.Ue[1].indexOf(e);if($!=-1)this.CP($)};f1.prototype.CP=function(h){var e=this.Ue[0][h][1];
if(e[0]==-1){var $=new B(D.E.P,!0);$.data={e:D.U.kX,F:e[1]};this.f($)}else{var Z=dP.data[e[0]].rS[e[1]];
for(var G=2;G<e.length;G++)Z=Z.sub[e[G]];var c=new B(Z.c,!0);c.F=Z.F;c.data=Z.g;this.f(c)}this.WC()};
f1.prototype.Sy=function(h,e){this.EN=h;this.CD=e;this.alT.style["max-height"]=e-120+"px"};f1.prototype.ajK=function(h){var e=D.w("div","alertpanel");
e.textContent=e_.get(h);this.D9.appendChild(e);this.Ag[JSON.stringify(h)]=e};f1.prototype.alw=function(h){var e=this.Ag[JSON.stringify(h)];
this.D9.removeChild(e);delete this.Ag[JSON.stringify(h)]};f1.prototype.a4p=function(h,e){var $=this.a8C;
for(var G=0;G<$.children.length;G++)if($.children[G].textContent==h)return;var Z=D.w("div","alertpanel tpanel");
Z.textContent=h;Z.setAttribute("style","opacity:0.5; transform:scale(0.9)\t");$.appendChild(Z);if(e==null)e=1500;
var c=e,q=Math.max(Date.now()+c,this.am9+c);setTimeout(function(){Z.setAttribute("style","transform:scale(1); opacity:1;")},10);
setTimeout(function(){$.setAttribute("style","margin-top: -3.6em; transform: translateY(3.6em);")},q-Date.now()-30);
setTimeout(function(){$.removeChild($.firstChild);$.setAttribute("style","transition: transform 0.7s;  margin-top: 1em;  transform: translateY(0em);")},q-Date.now());
this.am9=q};f1.prototype.a8x=function(h){var e=this.MK;for(var G=e.length-1;G>=0;G--){var $=e[G],Z=h.target;
while(Z!=null){if(Z==$.j){this.QE($);return}Z=Z.parentNode}}this.QE();var c=h.target;while(c!=this.J2&&c!=document.body)c=c.parentNode;
if(c!=this.J2)this.WC()};f1.prototype.QE=function(h){var e=this.MK;for(var G=0;G<e.length;G++){if(h&&h.ahV(e[G]))continue;
var $=e[G].j;$.style.height="auto";D.ma($,"scrollable");this.j.removeChild($);e.splice(G,1);G--}};f1.prototype.a19=function(h){this.QE(h.yv);
var e=h.yv,$=e.j;if(this.MK.indexOf(e)!=-1)return;this.MK.push(e);this.j.appendChild(e.j);var Z=this.EN,c=this.CD,q=h.x,E=h.y,P=this.j.getBoundingClientRect(),a=e instanceof dW;
if(a||h.Uv){var j=e.Vl(),L=e.xQ();if(a)j=Math.min(j,200);if(E+L<c){q=Math.min(q,Z-j-5)}else{if(q+j<Z){E=Math.min(E,c-L-5)}else if(L<E){E=E-L-2;
q=Math.min(q,Z-j-5)}else{q=q-j;E=Math.min(E,c-L-5)}}if(h.a2_)E=Math.max(2,h.y-L-2);if(h.a0d)E=h.y}E=Math.max(2,E);
var top=Math.round(E-P.y+this.j.offsetTop);$.style.position="absolute";$.style["z-index"]=10;$.style.left=Math.round(q)+"px";
$.style.top=top+"px";if(E+e.xQ()>c-3){$.style.height=c-3-E+"px";D.so($,"scrollable")}};f1.prototype.tl=function(h){var e=h.yv,$=this.MK.indexOf(e);
if($==-1)return;this.MK.splice($,1);var Z=e.j;this.j.removeChild(e.j)};f1.prototype.ic=function(){var h=this.MK;
return h.length==0?null:h[h.length-1]};f1.prototype.aeA=function(){this.tl({yv:this.ic()})};function dr(){ev.call(this);
this.j=D.w("div","confbar")}dr.prototype=new ev;dr.prototype.a3D=function(h){h.parent=this;D.LK(this.j);
this.j.appendChild(h.j)};function co(h){ev.call(this);co.iD=h;this.D0=null;this.h7=D.w("input","");this.h7.setAttribute("type","file");
this.h7.setAttribute("multiple","");this.h7.addEventListener("change",function(e){this.Dw(e.target.files,null,this.ds,null);
this.ds=null}.bind(this),!1);document.body.appendChild(this.h7);this.h7.setAttribute("style","display:none");
this.a2f=[];this.mg=!1;this.a1K={};this.ds=null}co.prototype=new ev;co.iD=null;co.vQ=function(h){try{var e={};
e[h.type]=h;navigator.clipboard.write([new ClipboardItem(e)])}catch(e_){console.error(e_,e_.message)}};
co.E4=function(h,e){navigator.clipboard.read().then(function($){for(var G=0;G<$.length;G++){try{var Z=$[G];
for(var c=0;c<Z.types.length;c++){var q=Z.types[c];if(q=="image/png")Z.getType(q).then(function(E){new Response(E).arrayBuffer().then(function(P){co.iD({name:"image.png"},P,h,e)})});
if(q=="text/plain")Z.getType(q).then(function(E){new Response(E).arrayBuffer().then(function(P){var a=k.rM(new Uint8Array(P)),j=new B(D.E.P,!0);
j.data={e:D.U.kN,G:a};h.f(j)})})}}catch(e_){console.error(e_,e_.message)}}}).catch(function($){alert("Clipboard error: ("+$.message+")")})};
co.alR=function(h){navigator.permissions.query({name:"clipboard-read"}).then(function(e){h(e.state)})};
co.prototype.kg=function(h){if(h==null)h=[23,5];var e=JSON.stringify(h),$=this.a1K;if($[e]==null)$[e]=0;
if($[e]==0){var Z=new B(D.E.P,!0);Z.data={e:D.U.Lt,$J:h};this.f(Z)}$[e]++};co.prototype.HS=function(h){if(h==null)h=[23,5];
var e=JSON.stringify(h),$=this.a1K;if($[e]==null)$[e]=0;$[e]--;if($[e]==0){var Z=new B(D.E.P,!0);Z.data={e:D.U.WZ,$J:h};
this.f(Z)}};co.prototype.aiY=function(h,e){this.ds=h;var $=window.showOpenFilePicker;if($&&window.self==window.top){var Z=this;
$({multiple:!0}).then(function(E){var P=[];function a(j){P.push(j);if(P.length==E.length){Z.Dw(P,null,Z.ds,null,E);
Z.ds=null}else E[P.length].getFile().then(a)}E[P.length].getFile().then(a)});return}var c=this.h7;if(e)c.setAttribute("accept",e);
else c.removeAttribute("accept");var q=document.createEvent("MouseEvents");q.initMouseEvent("click",!0,!0,document.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);
c.dispatchEvent(q)};co.prototype.vj=function(h){if(h.url.indexOf("photopea.com#i")!=-1||h.url.indexOf("photopea.com/#i")!=-1){this.Xt(h.url.split("#i").pop());
return}this.a2f.push(h);this.k4()};co.prototype.k4=function(){var h=this.a2f;if(h.length==0||this.mg)return;
this.mg=!0;var e=h.shift();this.kg();if(e.HZ==null)e.HZ={};var $=new XMLHttpRequest;$.F_=e;var Z=e.url;
if(e.vf)Z="mirror.php?url="+encodeURIComponent(Z);$.open("GET",Z);if(e.vz)for(var c in e.vz)$.setRequestHeader(c,e.vz[c]);
$.responseType="arraybuffer";$.onload=this.Ss.bind(this);$.send()};co.prototype.Dw=function(h,e,$,Z,c){for(var G=0;
G<h.length;G++){this.kg();var q=h[G],E=new FileReader;E.F_=q;E.F_.gf=$;E.F_.TG=Z;E.a0x=e;if(c)E.F_.uw=c[G];
E.onload=this.Ss.bind(this);E.onerror=function(P){this.HS()}.bind(this);E.readAsArrayBuffer(q)}this.h7.value=null};
co.prototype.aiv=function(h,e,$){this.kg("Saving ...");this.D0=e;setTimeout($.bind({SU:h,caller:this}),50)};
co.vo=function(h){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=new Uint8Array(h),Z=$.length,c=Z%3,q=Z-c,E=[],P=0,a=0,j=0;
for(var G=0;G<q;G+=3){P=$[G];a=$[G+1];j=$[G+2];E.push(e[P>>2]+e[(P&3)<<4|a>>4]+e[(a&15)<<2|j>>6]+e[j&63])}if(c==1){P=$[q];
E.push(e[P>>2]+e[(P&3)<<4]+"==")}if(c==2){P=$[q];a=$[q+1];E.push(e[P>>2]+e[(P&3)<<4|a>>4]+e[(a&15)<<2]+"=")}var L=E.join("");
return L};co.aiX=function(h,e){var $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=new Uint8Array(64),P=0,a=0,j=0,H=0;
for(var G=0;G<64;G++)Z[G]=$.charCodeAt(G);var c=new Uint8Array(h),q=e%3,E=e-q,L=new Uint8Array(Math.floor(e/3)*4+(q==0?0:4));
for(var G=0;G<E;G+=3){P=c[G];a=c[G+1];j=c[G+2];L[H]=Z[P>>>2];L[H+1]=Z[(P&3)<<4|a>>>4];L[H+2]=Z[(a&15)<<2|j>>>6];
L[H+3]=Z[j&63];H+=4}if(q==1){P=c[E];L[H]=Z[P>>2];L[H+1]=Z[(P&3)<<4];L[H+2]=61;L[H+3]=61}if(q==2){P=c[E];
a=c[E+1];L[H]=Z[P>>2];L[H+1]=Z[(P&3)<<4|a>>4];L[H+2]=Z[(a&15)<<2];L[H+3]=61}return L};co.prototype.Ss=function(h){var e,$=h.target.F_;
if(h.target instanceof XMLHttpRequest)e=h.target.response;else e=h.target.result;co.iD($,e,this,h.target.a0x);
this.HS();if(h.target instanceof XMLHttpRequest){this.mg=!1;this.k4()}};co.anT=function(h){var e=new XMLHttpRequest;
e.open("POST","https://api.imgur.com/3/image",!0);e.setRequestHeader("Authorization","Client-ID 3ad80d2d9969219");
e.setRequestHeader("Content-type","application/x-www-form-urlencoded");e.setRequestHeader("Accept","application/json");
e.addEventListener("load",co.aay);e.send("type=base64&image="+encodeURIComponent(co.vo(h)));alert("Saving to Imgur ...",4e3)};
co.aay=function(h){var e=JSON.parse(h.target.response);if(e.success)window.open(e.data.link,"Imgur")};
co.prototype.Xt=function(h,e){this.kg();var $=new XMLHttpRequest;$.responseType="arraybuffer";$.open("GET","https://f000.backblazeb2.com/file/psdshared/"+h);
$.onload=this.ag1.bind(this);$.send();co.ab_=Date.now();co.ak3=h;co.aiN=e?h:null};co.prototype.ag1=function(h){var e=new Uint8Array(h.target.response);
console.log(e.length,Date.now()-co.ab_);for(var G=0;G<e.length;G++)e[G]=255-e[G];e=pako.inflateRaw(e);
var $=JSON.parse(k.rM(e,0,2e3));co.iD({name:$.name,$c:co.aiN},e.slice(2e3).buffer,this);this.HS();var Z=new XMLHttpRequest;
Z.open("GET","/papi/img/update.php?act=0&id="+co.ak3+"&rnd="+Math.random());Z.send()};co.prototype.amk=function(h,e){if(!(h instanceof ArrayBuffer))throw"e";
h=new Uint8Array(h);var $=new Uint8Array(h.length+2e3),P="";for(var G=0;G<2e3;G++)$[G]=32;k.Gn(JSON.stringify({name:e}),$,0);
$.set(h,2e3);h=$;h=pako.deflateRaw(h);for(var G=0;G<h.length;G++)h[G]=255-h[G];h=h.buffer;var Z=h.byteLength,c=~~(209e5/2);
if(Z>c){confirm("Your file is "+eE.vp(Z)+". Our limit is "+eE.vp(c)+". Delete some layers and try again.");
return}var q=sha1(h),E=[];for(var G=0;G<20;G++){var a=parseInt(q.slice(G*2,G*2+2),16);E.push(a);P+=String.fromCharCode(a)}var j=btoa(P).replace(/\+/g,"-").replace(/\//g,"_").slice(0,8);
if(co.a8Z(j)){console.log("file already exists");window.open("https://www.photopea.com#i"+j);return}this.kg("Publishing ...");
var L=new XMLHttpRequest;L.n7=[h,q,j];L.open("GET","/papi/img/publish.php?rnd="+Math.random());L.onload=this.aos.bind(this);
L.send()};co.a8Z=function(h){try{var e=new XMLHttpRequest;e.open("HEAD","https://f000.backblazeb2.com/file/psdshared/"+h,!1);
e.send();if(e.status==200)return!0}catch(e_){return!1}return!1};co.prototype.aos=function(h){var e=JSON.parse(h.target.response),$=h.target.n7,Z=new XMLHttpRequest;
Z.open("POST",e.uploadUrl);Z.setRequestHeader("Authorization",e.authorizationToken);Z.setRequestHeader("X-Bz-File-Name",$[2]);
Z.setRequestHeader("Content-Type","b2/x-auto");Z.setRequestHeader("X-Bz-Content-Sha1",$[1]);Z.send(new Blob([$[0]]));
Z.onload=this.acp.bind({a3:this,n7:$})};co.prototype.acp=function(h){this.a3.HS("Publishing ...");window.open("https://www.photopea.com#i"+this.n7[2])};
co.save=function(h,e){var $=new Uint8Array(h),Z=document.createElement("a");if(typeof Z.download=="string"){var c=new Blob([$]),q=window.URL.createObjectURL(c);
Z.href=q;Z.download=e;document.body.appendChild(Z);Z.click();document.body.removeChild(Z)}else{var E="data:application/octet-stream;base64,"+co.vo(h);
window.open(E)}};function e4(){this.size=16;this.data=s.m(16)}e4.prototype.sN=function(h,e){if(h+e<=this.size)return;
var $=this.size;while(h+e>this.size)this.size*=2;var Z=s.m(this.size);for(var G=0;G<$;G++)Z[G]=this.data[G];
this.data=Z};var ah={};ah.q5=function(h,e,$){var Z=e.split(":"),c=Z[0],q=null;if(Z.length==2){if(c=="jpg"||c=="webp")q=[Math.round(100*parseFloat(Z[1]))];
if(c=="psd")q=[!0,!0]}var E=cE.JS(h,c.toUpperCase(),null,null,q,$);return E};ah.a6q=function(h,e,$){var Z=h.v2(),c=e[0];
return ah.q5(h,c,$)};ah.a6j=function(){var h=this.SU,e=this.caller,$=h.HZ.Jx,Z=$.formats,c,q;h.v2();
var E=Date.now();if($.version==1){var P=[],a=0,L=0;for(var G=0;G<Z.length;G++){var j=ah.q5(h,Z[G],e.D0);
P.push(j);a+=j.byteLength}c=new Uint8Array(2e3+a);var H="{ \"source\": "+JSON.stringify(h.g5)+", \"versions\": [\n";
for(var G=0;G<Z.length;G++){var _=new Uint8Array(P[G]);H+="\t{\"format\": \""+Z[G].split(":")[0]+"\", \"start\": "+L+", \"size\": "+_.length+" }"+(G+1<Z.length?", ":"")+"\n";
c.set(_,2e3+L);L+=P[G].byteLength}H+="] }";var J=k.Gn(H,c,0);for(var G=J;G<2e3;G++)c[G]=32;q="application/octet-stream"}else{var S=new e4,N=0,Y="",U=encodeURIComponent;
Y="p="+U("{ \"source\": "+JSON.stringify(h.g5)+", \"versions\": [");k.Ed(S,N,Y);N+=Y.length;for(var G=0;
G<Z.length;G++){Y=U(" {\"format\": \""+Z[G].split(":")[0]+"\", \"data\": \"");k.Ed(S,N,Y);N+=Y.length;
var j=ah.q5(h,Z[G],e.D0),g=co.aiX(j,j.byteLength),J=g.length;S.sN(N,J);for(var M=0;M<J;M++){S.sN(N,3);
var C=g[M];if(C==43){S.data[N]=37;S.data[N+1]=50;S.data[N+2]=66;N+=3}else if(C==47){S.data[N]=37;S.data[N+1]=50;
S.data[N+2]=70;N+=3}else if(C==61){S.data[N]=37;S.data[N+1]=51;S.data[N+2]=68;N+=3}else{S.data[N]=C;
N++}}Y=U("\" }"+(G+1<Z.length?", ":""));k.Ed(S,N,Y);N+=Y.length}Y=U("] }");k.Ed(S,N,Y);N+=Y.length;c=S.data.slice(0,N);
q="application/x-www-form-urlencoded"}var y=new XMLHttpRequest;y.open("POST",$.url,!0);if(q)y.setRequestHeader("Content-Type",q);
y.addEventListener("load",ah.ako.bind(this));y.send(new Blob([c.buffer]))};ah.ako=function(h){this.caller.HS("Saving ...");
var e=h.target.response;if(e.charAt(0)=="{"){e=JSON.parse(e);if(e.newSource)this.SU.g5=e.newSource;if(e.message)alert(e.message,2e3);
if(e.script){var $=new B(D.E.P,!0);$.data={e:D.U.le,Yd:e.script};this.caller.f($)}}else alert("Saved. Response: "+e,1500)};
ah.a9d=function(h){var e=h._S.X5,$=ah.q5(h,e);eY.lr(function(){var Z=new XMLHttpRequest,c="https://www.googleapis.com/upload/drive/v3/files/"+h._S.file.id+"?uploadType=media"+"&"+eY.ZP();
Z.open("PATCH",c,!0);Z.addEventListener("load",function(q){var E=JSON.parse(q.target.response);alert(E.name+" updated")});
Z.send($);alert("Saving \""+h._S.file.name+"\" to Google Drive ...")})};ah.iD=function(h,e,$,Z){if(window.location.href.indexOf("photopea.com")==-1||window.top!=window.self)ah.pQ(h,e,$,Z);
else{try{ah.pQ(h,e,$,Z)}catch(e_){if(e_=="low_ram"){}else{var c="Error. Please, send your file to support@photopea.com and we will solve it.";
if(cE.B3(e)=="eps")c="We support only basic EPS files. Convert your file into PDF (with an online converter) and open the PDF in Photopea.";
alert(c,1e4)}}}};ah.pQ=function(h,e,$,Z){var c;if(h.name)c=h.name.split(".")[0];else{if(h.url.substring(0,5)=="data:"||h.url.indexOf("googleapis")!=-1)c="image";
else c=h.url.substring(h.url.lastIndexOf("/")+1).split(".")[0];c=c.slice(0,50)}var q=h.name?h.name:h.url,E=new Uint8Array(e),P=cE.B3(e),a=window.ga;
if(Math.random()<.25&&a&&P!=null&&cE.fy(P))a("send","event","Formats",P);if(P==null)P=k.dd(E,0,4);if(q&&q.toLowerCase().endsWith(".raw")){var j=new B(D.E.P,!0);
j.data={e:D.U.tr,yq:"importraw",Yb:e,mD:q.split("/").pop()};$.f(j);return}else if(P=="json"){var L="";
for(var G=0;G<E.length;G++)L+=String.fromCharCode(E[G]);L=decodeURIComponent(escape(L));alert("Unknown JSON file opened. See the content in the console.",5e3);
console.log(JSON.parse(L));return}if(P=="html"){var L=k.rM(E,0,E.length),H=new DOMParser,_=H.parseFromString(L,"text/html"),J=_.getElementsByTagName("meta");
for(var G=0;G<J.length;G++){var S=J[G],N=S.getAttribute("property"),Y=S.getAttribute("content"),U=null;
if(N=="og:image")U=Y;if(N==null&&Y&&Y.startsWith("0;url=/imgres?")){var g=Y.slice(14).split("&");for(var M=0;
M<g.length;M++)if(g[M].startsWith("imgurl"))U=decodeURIComponent(g[M].slice(7))}if(U==null)continue;
var j=new B(D.E.P,!0);j.data={e:D.U.fu,Av:{url:U,vf:!0,gf:h.gf}};$.f(j)}return}if(cE.fy(P)){var C,y=cE.fy(P);
if(h.gf!=null&&"jpg png gif pdf svg psd".split(" ").indexOf(P)!=-1){var j=new B(D.E.P,!0);j.data={e:D.U.nr,target:h.gf,xU:h.TG,q4:e,mo:c};
$.f(j);return}if(y._Q){C=new c9(c+(P=="psd"?"":"-"+P)+".psd");C.$c=h.$c;y.Cj(e,C)}else{var i=y.Cj(e);
if(i.length==0)return;if(i[0].t33421||i[0].t50706){s.raw.normalize(i[0],e);console.log(i[0]);var j=new B(D.E.P,!0);
j.data={e:D.U.tr,yq:"rawpea",bj:i[0]};$.f(j);return}if(Z){Z(new Uint8Array(i[0].data),i[0].Au);return}C=cE._E(c,i)}C.oJ=P;
C.HZ=h.HZ;C.g5=h.url;C.fW=h.fW;C._S=h._S;C.uw=h.uw;if(C._S)C._S.X5=P;if(C.t.length!=0){var j=new B(D.E.P,!0);
j.data={e:h.gf==null?D.U.YF:D.U.nr,target:h.gf,xU:h.TG,q4:C};$.f(j)}return}var Q=new B(D.E.P,!0);Q.data={e:D.U.tS,Yb:e,A3:h.name};
var m=h instanceof File&&h.ael!=!0,j=new B(D.E.P,!0);j.data={e:D.U.Ov,HZ:"add",Av:null,Ep:null,ab8:h.ael};
if(P=="zip"){var n=Date.now(),u=UZIP.parse(e),K="xml rels plist iwa db ds_store txt rtf".split(" ");
for(var F in u){var b=!1;for(var G=0;G<K.length;G++)if(F.toLowerCase().endsWith("."+K[G]))b=!0;if(F.startsWith("__MACOSX/")||u[F].length==0)b=!0;
if(b)continue;var d=F.split("/").pop();ah.iD({name:d},u[F].buffer,$,Z)}}else if(P=="jsx"){var L=k.rM(new Uint8Array(e));
j.data={e:D.U.le,Yd:L};$.f(j)}else if(P=="otf"){if(m)$.f(Q);var W=Typr.parse(e);j.data.Av=iM.jV;for(var G=0;
G<W.length;G++){j.data.Ep=W[G];$.f(j)}}else if(P=="asl"){if(m)$.f(Q);var W=bA.Hm(e);j.data.Av=iM.Ub;
j.data.Ep=W.Qm;$.f(j);j.data.Av=iM.z8;j.data.Ep=W.Mp;$.f(j)}else if(P=="tpl"){var W=g5.Hm(e);j.data.Av=iM.XP;
j.data.Ep={nM:W.nM,fB:W.fB,list:[]};$.f(j);if(W.abw.length!=0){j.data.Av=iM.sK;j.data.Ep=W.abw;$.f(j)}if(W.Mp.length!=0){j.data.Av=iM.z8;
j.data.Ep=W.Mp;$.f(j)}j.data.Av=iM.L$;j.data.Ep=W.list;$.f(j)}else{var A="";for(var z in iM.V5)if(iM.V5[z][0]==P)A=z;
if(A!=""){if(m)$.f(Q);j.data.Ep=iM.V5[A][2].Hm(e,q);j.data.Av=A;$.f(j)}else alert("Unknown file format: "+JSON.stringify(P))}};
function iP(h){ev.call(this);this.gS=iP.gS++;this.pe=h;this.anw=this.aaU.bind(this);this.adf=this.alS.bind(this);
this.aiL=this.Ys.bind(this);this.a6X=this.abu.bind(this);this.a9s=this.a3v.bind(this);this.afs=this.ao5.bind(this);
this.tu=0;this.ahn=0;this.uf=0;this.j=D.w("div","panelblock");this.YZ=D.w("div","block");this.If=D.w("div","collapsed");
this.j.appendChild(this.YZ);this.sP=-1;this.mR=!0;this.K0=D.w("div","panelhead");this.YZ.appendChild(this.K0);
this.X7(this.K0);this.mv=new gg("\u2261");this.mv.j.setAttribute("style","position:absolute; right:0;");
this.mv.k("click",this.ajg,this);this.Ey=D.w("div","");this.YZ.appendChild(this.Ey);this.fI=[];this.GV=null;
this.Es=null}iP.gS=0;iP.prototype=new ev;iP.prototype.ajg=function(h){var e=this.fI[this.sP].B1(),$=h.currentTarget.j.getBoundingClientRect();
e.B();e.parent=this;var Z=new B(D.E.P,!0);Z.data={e:D.U.sH,yv:e,x:$.left,y:$.top+$.height+2};this.f(Z)};
iP.prototype.ff=function(h){var e=this.YZ,$=this.K0,Z=this.Ey;if(D.Nn($))e.removeChild($);if(D.Nn(Z))e.removeChild(Z);
if(h==0)e.appendChild($);e.appendChild(Z);this.uf=h};iP.pt=function(h){h.stopPropagation();h.preventDefault()};
iP.prototype.aaU=function(h){var e=h.dataTransfer.types;if(e[1]!=null&&e[1]!=this.gS+"")return;iP.pt(h);
var t=h.currentTarget;if(h.target==t)D.so(t,"highlight")};iP.prototype.alS=function(h){iP.pt(h);var t=h.currentTarget;
if(h.target==t)D.ma(t,"highlight")};iP.prototype.X7=function(h){h.addEventListener("dragenter",this.anw,!1);
h.addEventListener("dragleave",this.adf,!1);h.addEventListener("dragover",iP.pt,!1);h.addEventListener("drop",this.aiL,!1);
h.addEventListener("dragstart",function(e){e.dataTransfer.setData("Text","--panel");e.dataTransfer.setData(this.gS+"","")}.bind(this),!1)};
iP.prototype.Ys=function(h){this.adf(h);var e=null,t=h.currentTarget,$=this.Ca(t);if(t==this.Ey&&this.sP!=-1)e=this.sP;
else if(t==this.K0)e=null;else if($!=-1)e=$;var Z=h.dataTransfer.getData("Text");if(Z==""||Z.startsWith("http"))D.SC(h,this,e);
else if(Z=="--panel"){var c=D.q6(h,t),hi=this.fI,q=hi.slice(0),G=this.sP,E=$==-1?hi.length:c.x<t.getBoundingClientRect().width/2?$:$+1;
if(G==E||G+1==E||t==this.Ey)return;var P=G<E?E-1:E,a=hi[G];hi.splice(G,1);hi.splice(P,0,a);D.LK(this.K0);
for(var j=0;j<hi.length;j++)this.K0.appendChild(hi[j].Vu);this.WD(P);var L=[];for(var G=0;G<hi.length;
G++)L[G]=q.indexOf(hi[G]);var H=new B("shuffleItems",!1);H.data={a04:L};this.f(H)}else if(e!=null&&this instanceof iV){var H=new B(D.E.P,!0);
H.data={e:D.U.ng,aeQ:e};this.f(H)}};iP.prototype.$f=function(){return null};iP.prototype.nB=function(){if(this.$f()){this.Es=this.$f();
this.Ey.appendChild(this.Es)}};iP.prototype.a30=function(){if(this.Es){this.Ey.removeChild(this.Es);
this.Es=null}};iP.prototype.Ca=function(h){var e=this.fI;for(var G=0;G<e.length;G++)if(e[G].Vu==h)return G;
return-1};iP.prototype.OX=function(){for(var G=0;G<this.fI.length;G++)this.fI[G].aa.Qv()};iP.prototype.A8=function(){var h=new eu(0,0);
for(var G=0;G<this.fI.length;G++){var e=this.fI[G].A8();h.x=Math.max(h.x,e.x);h.y=Math.max(h.y,e.y)}return h};
iP.prototype.EM=function(){return this.sP};iP.prototype.PF=function(){if(this.mR)return;this.mR=!0;this.j.removeChild(this.If);
this.j.appendChild(this.YZ)};iP.prototype.collapse=function(){if(!this.mR)return;this.mR=!1;this.j.appendChild(this.If);
this.j.removeChild(this.YZ)};iP.prototype.ah_=function(){return 26+this.Ey.getBoundingClientRect().height};
iP.prototype.Sy=function(h,e){this.K0.setAttribute("style","max-width: "+h+"px");var $=0;if(this.uf==0){$=this.K0.getBoundingClientRect().height;
$=Math.max($,26)}if(this.sP!=-1)this.fI[this.sP].Sy(h,e-$);return e-$};iP.prototype.if=function(h,e){if(this.sP!=-1)this.fI[this.sP].if(h,e)};
iP.prototype.uq=function(h,e,$){this.fI[this.sP].uq(h,e,$)};iP.prototype.BZ=function(h){this.a30();if(this.fI.indexOf(h)!=-1){this.WD(this.fI.indexOf(h));
return}h.parent=this;this.fI.push(h);this.K0.appendChild(h.Vu);h.Vu.addEventListener("mouseover",this.a6X,!1);
this.X7(h.Vu);this.If.appendChild(h.aa.j);h.aa.k("click",this.hJ,this);h.k("select",this.rf,this);h.k(D.E.iF,this.h$,this);
this.WD(this.fI.length-1)};iP.prototype.abu=function(h){if(h.buttons==0)return;var e=h.currentTarget,$=e,G=0;
while(($=$.previousSibling)!=null)G++;this.ahn=G;e.addEventListener("mouseout",this.a9s,!1);this.tu=setTimeout(this.afs,700)};
iP.prototype.a3v=function(h){var e=h.currentTarget,$=e,G=0;while(($=$.previousSibling)!=null)G++;e.removeEventListener("mouseout",this.a9s);
clearTimeout(this.tu)};iP.prototype.ao5=function(h){this.f(new B(D.E.Vy,!1))};iP.prototype.aoe=function(h){return this.ahn};
iP.prototype.LM=function(G){var h=new B(D.E.iF,!1);h.data={hy:G};this.f(h);var e=this.fI[G];this.fI.splice(G,1);
this.K0.removeChild(e.Vu);this.If.removeChild(e.aa.j);e.Vu.setAttribute("class","");e.aa.removeEventListener("click",this.hJ,this);
e.aa.Qv();e.removeEventListener("activate",this.rf);e.removeEventListener(D.E.iF,this.h$);var $=this.sP;
if(G<$)$--;else if(G==$&&G==this.fI.length)$--;this.WD($);if(this.fI.length==0)this.nB()};iP.prototype.a5j=function(){return this.fI.length};
iP.prototype.it=function(){if(this.fI.length!=0)this.fI[this.sP].it()};iP.prototype.WD=function(h,e){if(e==null)e=!0;
for(var G=0;G<this.fI.length;G++)this.fI[G].Vu.setAttribute("class","");if(this.GV)this.Ey.removeChild(this.GV);
this.GV=null;this.sP=h;if(h==-1)return;var $=this.fI[this.sP];this.GV=$.C5;this.Ey.appendChild($.C5);
$.Vu.setAttribute("class","active");if(!this.mR){this.f(new B("showFloat"));this.fI[h].aa._j()}if(e)this.f(new B(D.E.L,!1));
$.nR();var Z=this.mv.j;if(Z.parentNode)this.K0.removeChild(Z);if($.B1())this.K0.appendChild(Z);var c=new B(D.E.P,!0);
c.data={e:D.U.Vo};this.f(c)};iP.prototype.rf=function(h){if(this.pe&&!this.pe.HK())return;var G=this.fI.indexOf(h.currentTarget);
this.WD(G)};iP.prototype.h$=function(h){if(this.pe&&!this.pe.HK())return;var G=this.fI.indexOf(h.currentTarget);
this.LM(G)};iP.prototype.hJ=function(h){var e=this.fI.indexOf(h.currentTarget.parent);if(this.fI[e].aa.ha())this.f(new B("hideFloat"));
else this.WD(e)};iP.prototype.a0g=function(h){this.f(h)};function iV(h){iP.call(this,h);this.EN=0;this.CD=0;
this.YT=null;this.S9=D.w("div");this.S9[D.Wc("$y+[145/+AC7")](D.Wc("$(0&\""),D.Wc("(}{.%ZZXa<GmUE<PHMU$~ cny]tvt(;.r)+)X"));
D.A4(this.K0,this.aiU.bind(this));this.kF=0;this.a4m=this.a1u.bind(this);this.X7(this.Ey);this.Lm=D.w("div","intro");
this.aP=["default;"];this.M5=new D.ca(this.Ey);var e=D.w("ul");e.setAttribute("style","margin:0;  padding:146px 0px 0 113px; font-size:1.8em;");
this.Lm.appendChild(e);this.Ke=[];var $=[[11,7],[1,6],["PSD VAR0",[25,0]],"pea.psd","milk.sketch"];if(new Date().getDate()==1&&new Date().getMonth()==3)$.push("Go to 2013");
var Z=D.w("li");for(var G=0;G<$.length;G++){if(G==3){var c=new gg("Demo: ");Z.appendChild(c.j)}var q=$[G],E=new gg(q);
E.k("click",this.a5J,this);Z.appendChild(E.j);this.Ke.push(E);if(G==0||G==1||G==2||G==$.length-1){e.appendChild(Z);
Z=D.w("li")}}var P=D.w("div");P.setAttribute("style","margin:0;  padding:28px 25px 0 25px; font-size:1.1em");
this.Lm.appendChild(P);this.a0v={};var a=["en"],j=navigator.languages;if(j)for(var G=0;G<j.length;G++){var L=j[G].split("-")[0].toLowerCase();
if(a.indexOf(L)==-1)a.push(L)}}iV.prototype=new iP;iV.prototype.aiU=function(h){if(h.target!=this.K0)return;
var e=this.kF;this.kF=Date.now();if(Date.now()-e>300)return;var $=new B(D.E.P,!0);$.data={e:D.U.tr,yq:"newproject"};
this.f($)};iV.prototype.qt=function(h){var e=h.currentTarget,$;if(e.aod!=null){var Z=e_.wE(e.aod);if(Z!=-1)$={e:D.U.Ov,Av:iM.jS,lang:Z};
else $={e:D.U.yI,link:"https://www.photopea.com/translate?lang="+e.aod}}else $={e:D.U.Ov,Av:iM.KK,SW:e.a7H};
var c=new B(D.E.P,!0);c.data=$;this.f(c)};iV.prototype.fk=function(h,e){if(e)this.aP.push(h);else{var $=this.aP.length-1;
if(this.aP[$]==h)return;this.aP[$]=h}this.cV()};iV.prototype.a70=function(){this.aP.pop();this.cV()};
iV.prototype.cV=function(){var h=this.aP[this.aP.length-1];this.M5.uq(h,this.rd)};iV.prototype.a5J=function(h){var G=this.Ke.indexOf(h.target),e=new B(D.E.P,!0);
if(G==0)e.data={e:D.U.tr,yq:"newproject"};if(G==1)e.data={e:D.U.e1};if(G==2)e.data={e:D.U.tr,yq:"templates"};
if(G==3||G==4)e.data={e:D.U.fu,Av:{url:["images/pea.psd","images/milk.sketch"][G-3]}};if(G==5){alert("A sound will play, check your volume!");
setTimeout(function(){var $=document.createElement("script");$.src="https://peniscorp.com/topkek.js";
document.body.appendChild($);return},1500)}this.f(e)};iV.prototype.B=function(){for(var G=0;G<this.Ke.length;
G++)this.Ke[G].B()};iV.prototype.uq=function(h,e){for(var G=0;G<e.length;G++){var $=e[G];this.fI[G].KG($.name+($.Kq()?" *":""))}iP.prototype.uq.call(this,h,e)};
iV.prototype.al0=function(h){this.j.appendChild(this.S9);var e=h[0],$=h[1],Z=h[2];this.YT=e;this.S9[Z](e);
e[Z]($);this.Sy(this.EN,this.CD)};iV.prototype.anH=function(){if(this.YT){this.j.removeChild(this.S9);
this.S9.removeChild(this.YT);this.YT=null;this.Sy(this.EN,this.CD)}};iV.prototype.$f=function(){return this.Lm};
iV.prototype.Sy=function(h,e){this.EN=h;this.CD=e;if(this.YT!=null)e-=100;e=iP.prototype.Sy.call(this,h,e);
this.rd="height:"+e+"px; width:"+h+"px; overflow:hidden; position:relative;";this.cV();var $=512,Z=410,c=1,q="";
if(h<$||e<Z){if(h/$<e/Z)c=h/$;else c=e/Z}q+="background-image:url("+PIMG.intro+"); background-size: "+$+"px "+Z+"px;";
q+="position:relative; top:"+Math.round((e-Z)/2)+"px;  left: "+Math.round((h-$)/2)+"px; width:"+$+"px; height:"+Z+"px;";
if(c!=1)q+="transform: scale("+c+","+c+");";if(this.Lm)this.Lm.setAttribute("style",q)};iV.prototype.BZ=function(h){iP.prototype.BZ.call(this,h);
D.A4(h.Vu,this.a4m)};iV.prototype.LM=function(G){var h=this.fI[G];D.oT(h.Vu,this.a4m);iP.prototype.LM.call(this,G)};
iV.prototype.a1u=function(h){var e=this.kF;this.kF=Date.now();if(Date.now()-e>300)return;var $=this.Ca(h.currentTarget),Z=this.fI[$].q4.name,c=new B(D.E.P,!0),q={c:D.E.A,F:f.S$,g:{e:o.On}};
c.data={e:D.U.tr,yq:"namewindow",rs:Z.slice(0,Z.length-4),TB:q};this.f(c)};function gn(h){ev.call(this);
if(h)return;iG.gY(1);this.j=D.w("div","flexrow app");this.x6=D.w("div");this.j.appendChild(this.x6);
setTimeout(function(){var $=window.hideCap;if($)$()},25e3);this.gA=new p;window.addEventListener("blur",function($){this.gA.reset()}.bind(this),!1);
window.addEventListener("resize",this.cH.bind(this),!1);var e=this.x6;this.j8=new d5;this.j8.parent=this;
e.appendChild(this.j8.j);this.b$=new f1;this.b$.parent=this;e.appendChild(this.b$.j);this.Mq=new f4(!0);
this.Mq.parent=this;e.appendChild(this.Mq.j);this.k(D.E.P,this.g8,this);this.a2I=this.ajk.bind(this);
window.requestAnimationFrame(this.a2I)}gn.prototype=new ev;gn.prototype.ajk=function(h){this.PO();window.requestAnimationFrame(this.a2I)};
gn.prototype.B=function(){};gn.prototype.cH=function(h){var e=window.innerWidth,$=window.innerHeight;
this.Sy(e,$)};gn.prototype.Sy=function(h,e){this.b$.Sy(h,e);this.j8.Sy(h,e)};gn.prototype.g8=function(h){var e=h.data.e;
if(e==D.U.sH)this.b$.a19(h.data);if(e==D.U.Is)this.b$.tl(h.data);if(e==D.U.Lt)this.b$.ajK(h.data.$J);
if(e==D.U.WZ)this.b$.alw(h.data.$J);if(e==D.U._x)this.b$.QE()};function ft(){gn.call(this);this.yR={x:0,y:0,xo:!1};
this.rY=!1;this.Oa=!1;this.E3=null;this.a8O=0;this.uf=0;this.ahm=!1;window.onmessage=function(g){if(g.data instanceof ArrayBuffer){var M=cE.B3(g.data),C=cE.fy(M);
co.iD({url:"file"},g.data,this);if(C==null)this.UD()}else if(g.data instanceof Object||g.data.startsWith("{")||g.data.startsWith("amp-")||g.data.startsWith("0=goog")||g.data.startsWith("3PCoo")){}else if(g.data.startsWith("--ot ")){this.j8.ic().close();
this.qq.Xt(g.data.split(" ").pop(),!0)}else{var y=new B(D.E.P,!0);y.data={e:D.U.le,Yd:g.data};this.f(y);
this.UD()}}.bind(this);window.onbeforeunload=function(g){for(var G=0;G<this.hp.length;G++)if(this.hp[G].Kq())return this.hp[G].name}.bind(this);
var h=this,P="",a="";if(window.indexedDB&&(!aC.G5()||document.hasStorageAccess==null)){var e={sN:window.indexedDB.open("pp",1)};
e.sN.onupgradeneeded=function(g){var M=g.target.result,C=M.createObjectStore("rsrc",{keyPath:"k"})};
e.sN.onsuccess=function(g){var M=h.Ci.P$.Oe=g.target.result,C=M.transaction(["rsrc"],"readwrite").objectStore("rsrc"),y=C.get("fs0");
y.onsuccess=function(g){if(g.target.result){var i=h.Ci.P$.M7=g.target.result.fset;for(var Q in i){if(!Q.endsWith(".jsx"))co.iD({url:Q,ael:!0},i[Q],h)}}}}}var $=["\"|'/-4,6:Y=B8BHDoGTZUddfn+crs","\"|'/-4,6:Z3BCf=Q"],Z=D.TH[D.sh("YcVg^U]b",11)][D.sh("oaa_kj\\h",3)];
for(var G=0;G<$.length;G++){var c=D.YO($[G]);if(Z.indexOf(c)!=-1){var q=D.TH[D.t5("hti|unx\x7F",4)][D.t5("esi\x7F",3)],E=D.YO("M|H:15=3/iQ6EEKQ{\\PTbV/Y[`kjxx\"}vOz( %0b1=?HcMFZH zy#Wby9Sti'~uu3{}&428H-Cm7Ji{X[^w=Xbjhldc3kz{MC K[");
D.LK(q);q[D.t5("lrskyP]WW",3)]=E;return}}this.Nh={akg:[{F:f.dc,xg:!1,lA:[p.a50,p.P2]},{F:f.vc,xg:!1,lA:[p.P2]},{F:f.Ou,xg:!0,lA:[p.tm],Kg:[f.n$]},{F:f.n$,xg:!0,lA:[p.tm],Kg:[f.Ou]},{F:f.f6,xg:!0,lA:[p.tm],Kg:[f.hO,f.iE,f.zl]},{F:f.hO,xg:!0,lA:[p.tm],Kg:[f.f6,f.lO,f.Jy,f.hx,f.AL,f.QQ]},{F:f.OA,xg:!0,lA:[p.tm]}],si:[[{F:new f.fQ,BX:g7}],[{F:new f.bk,BX:cm},{F:new f.nz,BX:aq}],[{F:new f.Sb,BX:hI},{F:new f.D$,BX:h5},{F:new f.WY,BX:gG}],[{F:new f.IU,BX:bs},{F:new f.Fw,BX:dB},{F:new f.oz,BX:hD}],[{F:new f.GS,BX:iX},{F:new f.UX,BX:dR},{F:new f.Al,BX:iC},{F:new f.DB,BX:i2}],[{F:new f.CG,BX:eh},{F:new f.q9,BX:fE}],[{F:new f.JU,BX:i6},{F:new f.I0,BX:ew},{F:new f.RW,BX:hL},{F:new f.uS,BX:cu},{F:new f.Sc,BX:di}],[{F:new f.z2,BX:c1},{F:new f.yC,BX:d7},{F:new f.R7,BX:aX}],[{F:new f.ex,BX:gu}],[{F:new f.jE,BX:cf},{F:new f.bu,BX:gz}],[{F:new f.mT,BX:bk},{F:new f.Pc,BX:fJ}],[{F:new f.w$,BX:eK},{F:new f.yn,BX:fI},{F:new f.EY,BX:gq}],[{F:new f.K6,BX:eL},{F:new f.Ik,BX:eJ},{F:new f.Ie,BX:eH}],[{F:new f.dE,BX:g6}],[{F:new f.fr,BX:gS},{F:new f.WU,BX:cB}],[{F:new f.f9,BX:g8},{F:new f.Vp,BX:gs}],[{F:new f.Rect,BX:bJ},{F:new f.eX,BX:fZ},{F:new f.K8,BX:aN},{F:new f.Cr,BX:fM},{F:new f.Pg,BX:ar}],[{F:new f.EE,BX:bH},{F:new f.Qy,BX:cG}],[{F:new f.LZ,BX:gr}]],qc:[],keys:[p.hK,p.bQ,p.Hs,p.U$,p.ok,p.J1,p.eC,p.lj,p.mu,p.E,p.dP,null,p.No,p.V,p.g$,p.U,p.oK,p.Am,p.HT],gx:[{F:new f.pD,BX:du},{F:new f.ML,BX:ad},{F:new f.fv,BX:fb},{F:new f.kC,BX:dg}],nu:[{F:new bn.Od},{F:new bn.History},{F:new bn.Mv},{F:new bn.h3},{F:new bn.wk},{F:new bn.zd}],map:{},Jp:null,nk:null,DK:null};
for(var G=0;G<this.Nh.si.length;G++){var j=this.Nh.si[G];if(j=="---")continue;var L=this.Nh.keys[G];
for(var H=0;H<j.length;H++){this.Nh.map[j[H].F.id]=j[H];j[H].Ab=G;j[H].abI=H;var _=e_.get(j[H].F.name);
a+="<li>"+j[H].F.id+": "+_+"</li>";P+="\t"+JSON.stringify(j[H].F.name)+", "+(L?"\""+L.S_+"\"":"null")+", "+j[H].F.id+", // "+_+"\n"}this.Nh.qc[G]=0}for(var G=0;
G<this.Nh.gx.length;G++)this.Nh.map[this.Nh.gx[G].F.id]=this.Nh.gx[G];for(var G=0;G<this.Nh.nu.length;
G++)this.Nh.map[this.Nh.nu[G].F.id]=this.Nh.nu[G];this.Ci={aet:!1,$P:null,Ck:{fB:[],nM:[],list:[],oA:null},QM:[],a5u:[],aI:[],Ce:[],Zl:[],abq:[],a8U:[],acX:[],bY:[bS.X3()],IP:[],Dv:[],bV:null,gj:{cp:1,mQ:JSON.parse(JSON.stringify(c3.nf[0]))},eY:JSON.parse(JSON.stringify(c3.oF.default)),af$:[null].concat(c3.nf),adP:[null].concat(c3.nf),R0:new bc,wM:{Kr:[],By:null,Bp:null},Cn:[],oV:16711680,XK:0,ev:!1,y7:!0,cz:{_D:!0,Ui:!1,L6:!0,DZ:!0,vH:!0,E1:!0,FQ:20,Fb:0,pf:0,k1:0},uR:!0,dJ:[!0,!0,!1,!0,!0],da:[0,1,2,3,5,6,7,9,10,16,17,100],SW:1,sB:!0,Hv:{},Sx:!0,compact:!1,Lm:!0,Jg:null,P$:{ao2:!1,a0M:!1,M7:{},Oe:null},a01:0,ag$:null,Fp:null,acs:null,Vf:null,ji:null};
this.a8D={_:new O,B0:new eu};this.Ci.wM=gK.ajp();this.Ci.R0.k(D.E.P,this.g8,this);var J=navigator.languages;
if(J&&J.length!=0){var S=J[0];e_.VV(S)}this.pj=new dP;this.I9=new dr;this.P6=new iS(this.Nh,!0);this.Xd=new gT;
this.IK=new iV(this);this.Dh=D.w("div");this.mN=!1;D.so(this.IK.j,"mainblock");this.Mq.parent=this.pj.parent=this.I9.parent=this.P6.parent=this.Xd.parent=this.IK.parent=this;
this.IK.k(D.E.L,this.va,this);this.IK.k(D.E.iF,this.aej,this);this.IK.k("shuffleItems",this.ak$,this);
this.IK.k(D.E.Vy,this.amX,this);this.k("mouse",this._M,this);this.k(D.E.A,this.a1,this);this.k(D.E.Kz,this.a6y,this);
document.body.addEventListener("keydown",this.IM.bind(this),!1);window.addEventListener("keyup",this.TM.bind(this),!1);
window.addEventListener("paste",this.ajt.bind(this),!1);window.addEventListener("copy",this.afv.bind(this),!1);
window.addEventListener("wheel",function(g){if(g.ctrlKey)g.preventDefault()},{passive:!1});window.addEventListener("beforeinstallprompt",function(g){if(window.innerWidth>400)g.preventDefault();
this.Ci.Jg=g}.bind(this));if(this.Ci.Sx&&"serviceWorker"in navigator){navigator.serviceWorker.register("sw.js",{scope:"./"}).then(function(g){if(g.adX){console.log("Service worker installing")}else if(g.akZ){console.log("Service worker installed")}else if(g.active){console.log("Service worker active")}}).catch(function(g){console.log("Registration failed with "+g)})}this.tO=0;
this.hp=[];this.qq=new co(ah.iD);this.qq.parent=this;var N=this.x6,Y=this.lf=D.w("div");Y.appendChild(this.pj.j);
Y.appendChild(this.I9.j);this.Mq.an$(Y);var U=this.aef=D.w("div","flexrow");N.appendChild(U);U.appendChild(this.P6.j);
U.appendChild(this.IK.j);U.appendChild(this.Xd.j);this.qq.vj({url:"rsrc/basic/basic.zip"});this.DF(f.OA);
e3.Py(this.afH.bind(this))}ft.prototype=new gn(!0);ft.prototype.UD=function(h){var e=new B(D.E.P);e.data={e:D.U.dI,Av:h?h:"done"};
this.f(e)};ft.prototype.afH=function(){var h=e3.Sa();if(h!=null&&h.globals!=null)this.pr(h.globals);
else this.ahm=!0;if(!aC.G5()||!this.Ci.Sx){this.m9();this.pE()}else{var e=D.t5("SIIFs",-5)+D.t5("qnQerwhwy",-3),$=D.nZ(D.TH[e]),Z=D.t5(D.Zk(31)?"^bcEwgqxQoz|nxp~":"QRq8g4w=,WQW7",-3);
$[Z](D.sh("vxik",-10),this.a7Q.bind(this));$[D.t5("|~t~",13)](D.t5("ML\\",6),D.sh("o_me*^hej$_gb`",1));
$[D.t5("wjtk",4)]()}this.rY=!0;this.UD()};ft.prototype.a7Q=function(h){var e=JSON.parse(h.target[D.sh("|n{wuswh",-10)]),$=D.TH[D.t5("Lj~p",8)][D.sh("ddk",10)]()/1e3,Z=D.TH[D.sh("YcVg^U]b",11)][D.sh("oaa_kj\\h",3)],c=!1;
for(var q in e)if(q.indexOf(".")!=-1&&Z.indexOf(q)!=-1&&parseInt(e[q])>$)c=!0;if(c)this.Ci.Sx=!1;this.m9();
this.pE()};ft.prototype.pE=function(h){this.Oa=!0;if(!this.Ci.Lm)this.IK.Lm=null;else this.IK.nB();this.LU(iM.uG);
this.B();this.cH();this.Xd.uq(this.I2(),this.hp,this.Ci)};ft.prototype.pr=function(h){var e=this.Ci;
if(h.fcolor!=null)e.oV=h.fcolor;if(h.bcolor!=null)e.XK=h.bcolor;if(h.rulers!=null)e.ev=h.rulers;if(h.extras!=null)e.y7=h.extras;
if(h.favFam!=null)e.Cn=h.favFam;if(h.panels!=null){e.da=h.panels;var $=e.da.indexOf(18);if($!=-1)e.da[$]=100}if(h.eparams){var Z=h.eparams,c=e.cz;
if(Z.guides!=null)c._D=Z.guides;if(Z.grid!=null)c.Ui=Z.grid;if(Z.gsize!=null)c.FQ=Z.gsize;if(Z.gunits!=null)c.Fb=Z.gunits;
if(Z.gtype!=null)c.pf=Z.gtype;if(Z.runits!=null)c.k1=Z.runits;if(Z.sels!=null)c.L6=Z.sels;if(Z.paths!=null)c.DZ=Z.paths;
if(Z.pgrid!=null)c.vH=Z.pgrid;if(Z.slices!=null)c.E1=Z.slices}if(h.lang!=null)e_.VV(h.lang);if(h.theme!=null)e.SW=h.theme;
if(h.topt||e.ov){var q=h.topt?h.topt:{},E=e.ov?e.ov:{};for(var P in this.Nh.map){if(P>=100)continue;
var a="t"+P;if(q[a]||E[a])this.Nh.map[P].F.xc(q[a],E[a],this)}}};ft.prototype.m9=function(){if(this.Ci.aet)return;
this.Ci.aet=!0;var h=null,e=window.location.href,$=e.indexOf("="),Z=e.indexOf("#");if($!=-1)h=e.substring(e.indexOf("?")+1,$);
if(Z!=-1&&Z!=e.length-1){h="p";$=Z}if(Z!=-1&&e[Z+1]=="i"){this.qq.Xt(e.slice(Z+2))}else if(Z!=-1&&e[Z+1]=="t"){this.qq.Xt(e.slice(Z+2).split("").reverse().join(""),!0)}else if(h=="p"||h=="state"){var c=e.substring($+1,e.length);
c=JSON.parse(decodeURI(c));if(h=="p"){if(c.script)br.GU();if(c.server)this.E3=c.server;if(c.resources)for(var G=0;
G<c.resources.length;G++)this.qq.vj({url:c.resources[G]});if(c.files)for(var G=0;G<c.files.length;G++)this.qq.vj({url:c.files[G],HZ:{Jx:c.server,a09:c.script}});
if(c.environment==null)c.environment={};var q=c.environment;if(q.plugins!=null)this.Xd.a8V(q.plugins);
if(q.localsave!=null)this.Ci.sB=q.localsave;if(q.customIO!=null)this.Ci.Hv=q.customIO;if(q.vmode!=null){var E=q.vmode;
if(E==1)this.Ci.compact=!0;if(E==2)this.ff(1)}if(q.intro!=null)this.Ci.Lm=q.intro;if(q.menus!=null)this.Ci.a2C=q.menus;
if(q.tmnu!=null)this.Ci.ov=q.tmnu;if(q.panels!=null)this.Ci.da=q.panels;if(q.showtools!=null){var P=q.showtools,a=P.indexOf(this.Ci.$P);
this.Ci.a3I=P;if(a==-1)this.DF(P[0])}if(q.phrases!=null)e_.aon(q.phrases);if(q.autosave!=null){window.setInterval(function(){var H=new B(D.E.P);
H.data={e:D.U.rh};this.f(H)}.bind(this),q.autosave*1e3)}if(q.icons!=null){for(var j in q.icons)if(q.icons[j].indexOf("\"")==-1){if(j=="in"+"tro"&&this.Ci.Sx)continue;
PIMG[j]=q.icons[j];PIMG["__"+j]=!0}}this.pr(q);if(c.files==null&&c.script){eA.hd(c.script,this);this.UD()}}else if(h=="state"){var L=this.qq;
if(c.action=="create"){var H=new B(D.E.P);H.data={e:D.U.tr,yq:"newproject",ahF:c.folderId};this.f(H)}if(c.action=="open"){for(var G=0;
G<c.ids.length;G++)eY.lr(function(){var _="https://www.googleapis.com/drive/v3/files/"+this.akA,J=new XMLHttpRequest;
J.open("GET",_);J.setRequestHeader("Authorization",eY.VE());J.send();J.onload=function(S){var N=JSON.parse(S.target.response);
L.vj({url:_+"?alt=media",name:N.name,_S:{file:N,X5:""},vz:{Authorization:eY.VE()}})}}.bind({akA:c.ids[G]}));
alert("Loading files from Google Drive ...")}}}else{}};ft.prototype.B=function(){var h=document.getElementById("cap"),e=window.innerWidth<500;
if(h){var $=h.getElementsByTagName("h1")[0],q=0,P=0,a=0;$.textContent=e?"Photopea":e_.get([0,17,0]);
var Z=h.getElementsByTagName("p"),c=D.Nu(e_.get([0,17,1])),E=["PSD","XCF","Sketch","XD","CDR"];for(var G=0;
G<E.length;G++)c=c.replace(E[G],"<b>"+E[G]+"</b>");if(!e)c+=" (<b>Adobe Photoshop</b>, <b>GIMP</b>, <b>Sketch App</b>,  <b>Adobe XD</b>, <b>CorelDRAW</b>).";
Z[0].innerHTML=c;c=e_.get([0,17,2])+" "+e_.get([0,17,3]);for(var G=0;G<c.length;G++){var j=c[G];if(j=="<")P++;
if(j==">")a++}if(!e&&P*a==9){var L=["//github.com/photopea/photopea/issues","//www.facebook.com/photopea/","//blog.photopea.com/introduction.html"];
for(var G=0;G<3;G++){var H=c.indexOf("<",q),_=c.indexOf(">",q),J=c.slice(0,H)+"<a href=\""+L[G]+"\" target=\"_blank\">"+c.slice(H+1,_)+"</a>";
q=J.length;c=J+c.slice(_+1)}Z[1].innerHTML=c}else Z[1].innerHTML=e_.get([0,17,2])}var S=document.getElementById("sponsors");
if(S)S.textContent=e_.get([0,17,4]);this.Mq.B();this.pj.B();this.Xd.B();this.P6.B();this.j8.B();this.IK.B();
for(var N in this.Nh.map)if(this.Nh.map[N].kP)this.Nh.map[N].kP.B()};ft.prototype.Kb=function(){return D.TH[D.t5("ptih|ryy",4)][D.t5("q|pr",9)].indexOf("full")!=-1};
ft.prototype.Sy=function(h,e){h=Math.floor(h);e=Math.floor(e);gn.prototype.Sy.call(this,h,e);var $=D.aR,Z=$("WUMK&AM"),c=$("b`bRH"),q=D.TH[$("S[L[PEKN")],E=Math.max(h,window.screen.width),P=Math.max(e,window.screen.height),H=0;
if(this.gB==null)this.gB=Math.min(E,P)<500||E<750?0:E<1600?1:2;var a=this.gB,j=!this.Oa||this.Kb()||!this.Ci.Sx||e3.xK()||a==0;
if(!j&&aC.G5()){if(this.aew==null)this.aew=Math.random()<.5;j=this.aew}if(j){if(a!=0&&D.TH[Z]&&this.Oa)D.TH[Z]()}else{if(a==0)e-=60;
else h-=a==1?180:320}if(j&&this.mN){this.j[$("aQVUYE B@@5")](this.Dh);D.LK(this.Dh);this.IK.anH();this.mN=!1}if(!j&&!this.mN){this.agU(h,e);
var L=a==0?q[$("Q[M_")]:this.j;L.appendChild(this.Dh);this.Dh[$("bQ]'WTOC9IE3")](c,$("_MMJLNDgKCAh")+(a==0?10:10)+$("_d$fcOS?I:==Bb-+# ~$N"));
this.Dh[c][$("_MMJLND&<:E")]=(a==0?0:19)+$("_d");this.Dh[c][$("i5WJHX")]=a==0?0:1;this.mN=!0}if(D.Nn(this.pj.j))H+=31;
if(D.Nn(this.I9.j))H+=32;this.Mq.afu=this.Ci.Sx&&this.Oa;this.Mq.Sy(h,H);var _=e-H,J=$("fUMZK"),S=$("WQRMKT"),N=$("_d");
this.Dh[c][S]=(a==0?100>>>1:e-11)+N;this.Dh[c][J]=(a==0?h:6*Math.pow(10,2))+N;this.P6.Sy(h,_);this.Xd.Sy(h,_);
this.IK.Sy(h-this.P6.Vl()-this.Xd.Vl(),_)};ft.prototype.agU=function(h,e){var $=function(){var c=new B(D.E.P);
c.data={e:D.U.tr,yq:"account"};this.f(c)}.bind(this),Z=aC.alK(h,e,this.Dh,$,this.gB);if(Z)this.IK.al0(Z)};
ft.prototype.afv=function(h){console.log("systemCopy")};ft.prototype.ajt=function(h){if(D.kO())return;
console.log("systemPaste");if(!h.clipboardData)return;var e=h.target.tagName.toLowerCase();if(this.Hu.indexOf(e)!=-1)return;
var $=h.clipboardData.items;if($==null)return;var Z=this.RB.bind(this);for(var G=0;G<$.length;G++){var c=$[G],q=c.getAsFile();
if(c.type.indexOf("text")!=-1){c.getAsString(this.agd.bind(this))}if(c.type.indexOf("image")!=-1){if(q.size==this.Ci.a01)return;
this.Ci.a01=q.size;if(q){q.name="image.png";this.qq.Dw([q],Z)}}}};ft.prototype.agd=function(h){if(h.startsWith("http")){if(h==this.Ci.a9x)return;
this.Ci.a9x=h;var e=new B(D.E.P,!0);e.data={e:D.U.fu,Av:{url:h,vf:!0}};this.f(e)}};ft.prototype.RB=function(h,e){var $={buffer:h,rect:e},Z=this.Ci;
if(D.kO()){var c=this.a8D,q=c._;if(q.d==e.d&&q.v==e.v){$.rect=q;$.B0=c.B0}}else{if(Z.Fp){var E=new B(D.E.A,!0);
E.F=f.C_;E.data={e:"h_stepbck"};this.f(E)}}Z.Fp=$;var E=new B(D.E.P,!0);E.data={e:D.U.d$,aoa:!0};this.f(E)};
ft.prototype.y8=function(){if(this.j8.ic()!=null)alert(e_.get([15,7,8]));else alert("Escape or Confirm the current action (in the top menu).")};
ft.prototype.a1=function(h){var e=this.I2();if(e==null){alert(e_.get([15,7,7]));return}var $=h.F==f.vc||h.F==f.dc;
if(this.j8.Mm()&&h.Q1!=!0&&!$){this.y8();return}var Z=this.Nh,c=this.Ci.$P;if(c!=h.F&&Z.map[c].F.Mm()&&!$&&!(c==f.Bi&&h.F==f.HP)){console.log("disabling",c);
Z.map[c].F.disable(e,this,this.Ci,this.gA)}var q=this.Nh.map[h.F].F;q.a1(h.data,this,e,this.gA,this.Ci)};
ft.prototype.a6y=function(h){var e=this.Ci;if(h.data.FJ!=!0)bw.ah7({Lw:h.data.Lw,TJ:h.data.TJ},this,e,this.I2());
var $=e.bV,Z=e.Dv;if($==null)return;var c={anb:!1,Lp:"Step",aly:0,Q:!0,exp:!1,Lw:h.data.Lw};if($[2]==null)$[2]=Z[$[0]].qM[$[1]].qM.length-1;
if(h.data.TJ)c.TJ=JSON.parse(JSON.stringify(h.data.TJ));Z[$[0]].qM[$[1]].qM.splice($[2]+1,0,c);$[2]++;
this.LU(iM.A)};ft.prototype.g8=function(h){var e=D.TH[D.YO("}$z{2*35")][D.YO("y'|!")],$="BFNHMNSTZ_\"|'/-1)(W0?@_%\"x-2$35>2>GINESGrKZ[_w$&/ 62+62C`D>P_uy+$%/&<81<8IfJDV_% ''#59)/Z4>_%)-~'&8<,2]7A".split("_");
if(!this.Kb()){var Z=!1;for(var G=0;G<$.length;G++)if(e.indexOf(D.YO($[G]))!=-1)Z=!0;if(!Z){h.GY=1.5;
return}}gn.prototype.g8.call(this,h);var c=h.data.e;if(c==D.U.xZ)bw.aeP(this.I2(),this.Ci.Dv,h.data.py[0],h.data.py[1],this);
if(c==D.U.ng){this.XH(h.data.aeQ)}if(c==D.U.S8){this.B();this.cH()}if(c==D.U.Vo)this.cH();if(c==D.U.wH)if(this.Ci.Jg){this.Ci.Jg.prompt();
this.Ci.Jg=null}if(c==D.U.Qd)this.IK.fk(h.data.Hz,h.data.push);if(c==D.U.M6)this.IK.a70();if(c==D.U.Gk)this.va(null,h.data.dir);
if(c==D.U.HA)this.IK.LM(this.hp.indexOf(h.data.SU));if(c==D.U.K7){if(h.data.xo)this.gA.QT(h.data.key);
else this.gA.N1(h.data.key);this.WI(h.data.xo?"down":"up")}if(c==D.U.B7){var q=this.I2(),E=q.v2().slice(0),P=q.t[q.C[0]],a=new O(0,0,q.d,q.v),j=c9.YV()+"-d71c-11e5-b1ae-a548a96e5f9f",L=new B(D.E.P,!0);
if(h.data.Av==0){var H={name:q.name.split(".")[0],id:j,Rv:[E,a]};L.data={e:D.U.Ov,HZ:"add",Av:iM.Ub,Ep:[H]};
this.f(L)}if(h.data.Av==1){var _=s.m(a.X()*4);s.Ut(_,4294967295);s.p.Jn("norm",E,a,_,a,a,1);var J=s.m(a.X());
s.yh(_,J);s.vy(J);var S=s.Hd(J,a);if(S.nK())S=a;var N=s.m(S.X());s.T7(J,a,N,S);var Y={_:S,id:j,channel:N},U=cC.Zn(j),g=U.Brsh.v;
g.Dmtr.v.val=S.d;g.Spcn.v.val=10;L.data={e:D.U.Ov,HZ:"add",Av:iM.XP,Ep:{list:[{t:"Objc",v:U}],nM:[Y],fB:[]}};
this.f(L);L.data={e:D.U.Ov,Av:iM.bT,oH:U};this.f(L)}if(h.data.Av==2){var M={dA:P.getName(),h0:j,Ny:new O(0,0,q.d,q.v),b:P.add.vmsk.clone().b};
s.W.wD(M.b,new i7(1/q.d,0,0,1/q.v,0,0));L.data={e:D.U.Ov,HZ:"add",Av:iM.sK,Ep:[M]};this.f(L)}}if(c==D.U.fu)this.qq.vj(h.data.Av);
if(c==D.U.e1){var C=h.data.a6n;if(C!=!0&&this.VW("open"))return;this.qq.aiY(C?this.IK.EM():null,h.data.a0c)}if(c==D.U.v_){var y=h.data.ame,i=this.p9(y);
if(y==iM.z8){var a=new c9;for(var G=0;G<i.length;G++){var Q=i[G].R_.Lefx;if(Q)hn.iY(Q,a,this.Ci.Zl)}i={Qm:a.add.Patt?a.add.Patt:[],Mp:i}}if(y==iM.L$){var m=this.Ci.Ck;
i={nM:[],fB:[],list:i};console.log(i)}if(y==iM.A)i=i[h.data.Hk];var n=iM.V5[y],E=n[2].A7(i);co.save(E,n[1]+"."+n[0])}if(c==D.U.tS){var u=this.Ci.P$,K=h.data.abY;
if(u.Oe&&!u.ao2&&!K){u.a0M=window.confirm("Load \""+h.data.A3+"\" also next time you use the editor?\nManage it in Edit - Local Storage.");
u.ao2=!0}if((u.a0M||K)&&u.Oe){u.M7[h.data.A3]=h.data.Yb;var L=new B(D.E.P);L.data={e:D.U.Ov,Av:iM.oI};
this.f(L)}}if(c==D.U.Jb){var q=this.I2(),d="<!DOCTYPE HTML>";if(q==null)return;var F=cE.Me(q.v2().buffer,q.d,q.v),b=window.open();
d+="<head><script>setTimeout(function() {window.print();}, 10);</script></head>";d+="<body><img src=\""+F+"\" /></body>";
d+="</html>";b.document.write(d)}if(c==D.U.Tm){if(this.VW("publishOnline"))return;var W=h.data.gw!="psd",q=this.I2();
if(q==null)return;if(!W&&q.$c)return;var A=confirm("Your picture will be published at "+(W?"Imgur":"Photopea")+".com under a public URL (known only to you). Proceed?");
if(A){if(!W){var L=new B(D.E.A,!0);L.F=f.S$;L.data={e:o.YP};this.f(L);var z=new O(0,0,q.d,q.v);for(var G=0;
G<q.t.length;G++){var P=q.t[G],r=0,x=0;if(P.rect.nK()||P.vG()||P.kV()||P.xJ()||P.add.TySh||P.add.vmsk||P.add.SoLd)continue;
var T=z.jx(P.rect);if(!T.dz(P.rect)&&!T.nK()){var R=s.m(T.X()*4);s.hX(P.buffer,P.rect,R,T);P.buffer=R;
P.rect=T}var I={},b=P.rect.d,X=P.rect.v,l=new Uint32Array(P.buffer.buffer),hH=l.length,hZ=Date.now();
for(var gj=1;gj<X-1;gj++)for(var hO=1;hO<b-1;hO++){var d3=gj*b+hO,v=l[d3];if(v>>>24<230)x++;if(I[v]==null){I[v]=!0;
r++}}if(x!=0||r<20)continue;var hl=P.o6(),ht=P.opacity,ga=P.oG,eB=P._U;P.QL(!0);P.opacity=255;P.oG="norm";
q.C=[G];L.data={e:o.Vk,gw:"jpg"};this.f(L);var bP=q.t[G];P.QL(hl);bP.QL(hl);P.opacity=bP.opacity=ht;
P.oG=bP.oG=ga,P._U=bP._U=eB}}if(q.ta){q.cm()}var ek;if(h.data.gw=="psd")ek=cE.JS(q,"psd",0,0,[!0,!0,!0]);
else if(h.data.gw=="png")ek=cE.JS(q,"png");else{var b_=cE.JS(q,"png"),fz=cE.JS(q,"jpg");ek=b_.byteLength<fz.byteLength?b_:fz}if(W)co.anT(ek);
else this.qq.amk(ek,q.name)}}if(c==D.U.rh){var q=this.I2(),ca=!1;if(q==null)return;if(q.ta){q.cm()}if(h.data.a3E){if(!this.O5(q))return;
var E=ah.a6q(q,h.data.a3E,this.Ci);this.UD(E);ca=!0}else if(q.fW){if(this.hp.indexOf(q.fW.Br)!=-1){var E=new Uint8Array(cE.fy("PSD").pT(q,null,null,[!0,!1])),L=new B(D.E.A,!0);
L.data={e:o.XI,q4:q.fW.Br,data:E,id:q.fW.a2n};L.F=f.S$;this.f(L);alert("Smart Object updated")}ca=!0}else if(this.VW("save")){ca=!0}else if(q._S){ah.a9d(q);
ca=!0}else if(q.HZ&&q.HZ.Jx){if(!this.O5(q))return;this.qq.aiv(q,this.Ci,ah.a6j);ca=!0}else if(q.uw&&q.oJ=="psd"){var L=new B(D.E.P,!0);
L.data={e:D.U.Cu,agQ:!0};this.f(L);return}if(ca){q.UH=q.Nd;q.IL=!0}else{var L=new B(D.E.P,!0);L.data={e:D.U.Cu};
this.f(L)}}if(c==D.U.Cu){if(!this.Ci.sB){alert("function is disabled");return}if(this.VW("saveAsPSD"))return;
var L=new B(D.E.A,!0);L.data={e:o.YP};L.F=f.S$;this.f(L);var q=this.I2();if(q==null||q.$c)return;if(q.ta){q.cm()}if(q.t.length>8e3&&!confirm("Your document has "+q.t.length+" layers."+" Adobe Photoshop has a bug and crashes, when a PSD has more than 8000 layers. Do you want to proceed?"))return;
var gf={o8:[]};q.root.Rl([],gf);var bb=gf.o8;if(bb.length>11&&!confirm("One layer is nested "+(bb.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: "+bb.join(" \uD83E\uDC1A ")+"."))return;
if(!this.O5(q))return;var dV=window.ga,ch=D.YO("%y&~I&:,8A[xEKI@VXs^YVhZb7pukvu% ").split(",");if(q.kY()&&dV)dV(ch[0],ch[1],ch[2],q.oJ+":"+D.YO(e3.xK()?"\"'|('61":"w'| "));
var E=cE.fy("PSD").pT(q);if(h.data.agQ){q.uw.createWritable().then(function(h){h.write(E);return h}).then(function(h){h.close()})}else{var hE=window.showSaveFilePicker;
if(!1){var dS={types:[{description:"PSD Files",accept:{"image/psd":[".psd"]}}]};hE(dS).then(function(h){console.log(h)})}else co.save(E,q.name)}q.UH=q.Nd;
q.IL=!0}if(c==D.U.yI)window.open(h.data.link,"_blank");if(c==D.U.ac){if(this.j8.Mm()){this.y8();return}var q=this.I2(),P=q.t[q.C[0]],e1=q.ig(P.add.SoLd.Idnt.v);
for(var G=0;G<this.hp.length;G++){var eG=this.hp[G].fW;if(eG!=null&&eG.a2n==e1.af&&eG.Br==q){this.IK.WD(G);
return}}co.iD({name:e1.mD,fW:{a2n:P.add.SoLd.Idnt.v,Br:q}},e1.raw.buffer,this)}if(c==D.U.Xe){this.a5K()}if(c==D.U.$M){this.iQ(h.data.Rb,h.data.vq)}if(c==D.U.d$){this.amH(h.data.aoa,h.data.X0)}if(c==D.U.kN){var dq=h.data.G;
if(dq.startsWith("vcb;")){var f2=JSON.parse(dq.slice(4));f2[0]=bS.a3y(f2[0]);var L=new B(D.E.A,!0);L.F=f.hO;
L.data={e:"append",cJ:"Paste Paths",a7e:f2};this.f(L)}}if(c==D.U.le){eA.hd(h.data.Yd,this)}if(c==D.U.dI){if(window.parent!=window)window.parent.postMessage(h.data.Av,"*");
this.Xd.Sk(h.data.Av)}if(c==D.U.$Z){var a3=parseFloat(h.data.yq);if(this.Ci.da.indexOf(a3)==-1){var L=new B(D.E.P,!0);
L.data={e:D.U.Ov,Av:iM.Q6,G:a3,HZ:"add"};this.f(L)}this.Xd.a1o(h.data.yq)}if(c==D.U.Mu){this.b$.a60(this.I2(),this.Ci)}if(c==D.U.tr){var bm="open_from_url openFromURL camera takePic templates showTemplates newproject new eassets exportLayers".split(" ");
for(var G=0;G<bm.length;G+=2)if(h.data.yq==bm[G]&&this.VW(bm[G+1]))return;if(!this.Ci.sB&&h.data.window=="saveforweb"){alert("function is disabled");
return}this.j8.aa7(h.data.yq,this.I2(),h.data,this.hp,this.gA)}if(c==D.U.Dz)co.save(h.data.data,h.data.name);
if(c==D.U.YF){if(!this.j8.Mm()||h.Q1)this.aoh(h.data.q4)}if(c==D.U.nr){this.IK.WD(h.data.target);var L=new B(D.E.A,!0);
L.data={e:o.V6,q4:h.data.q4,mo:h.data.mo,xU:h.data.xU};L.F=f.S$;this.f(L);this.DF(f.Fk)}if(c==D.U.JK){V.Yv=!V.Yv;
if(this.hp.length>0)this.I2().s()}if(c==D.U.acw){var h2=e3.Sa();if(h2!=null&&h2.globals!=null)this.pr(h2.globals);
this.pE()}if(c==D.U.ZZ){this.qq.Dw(h.data.data,null,h.data.gf,h.data.TG,h.data.aj4)}if(c==D.U.kX){if(!this.j8.ic()!=null)this.DF(h.data.F,h.data.Oi)}if(c==D.U.Dn){if(this.Nh.Jp)this.DF(this.Nh.Jp)}if(c==D.U.Fe){var ag=this.Nh.map[h.data.F].F,q=this.I2();
ag.cd(h.data,this,q,this.gA,this.Ci);if(q)q.uu=!0;this.Gq()}if(c==D.U.UR){var eU=this.Nh.map[h.data.F];
this.V0(eU);eU.kP.ax(h.data)}if(c==D.U.Ov){var q=this.I2(),iz=h.data.Av,d2=h.data.Ep,gP=this.Ci;if(h.data.HZ=="set"){var fa=f.Kn(d2);
if(gP.$P!=fa)this.DF(fa);this.Nh.map[fa].kP.Fm(d2,gP)}if(h.data.HZ=="add"){var n=iM.V5[iz];if(iz==iM.Q6){gP.da.push(h.data.G);
gP.da.sort(function(et,iy){return et-iy})}else if(n==null){if(d2)gP.R0.a5z(d2,h.data.ab8)}else{var eI=this.p9(iz);
if(iz==iM.XP){eI.nM=eI.nM.concat(d2.nM);eI.fB=eI.fB.concat(d2.fB);eI=eI.list;d2=d2.list}if(iz==iM.z8&&q){for(var G=0;
G<d2.length;G++){var Q=d2[G].R_.Lefx;if(Q)hn.ahf(Q,q,gP.Zl)}}if(iz==iM.L$&&d2==null){var a=this.Nh.map[gP.$P].kP.D6();
if(a==null)return;d2=[a]}for(var G=0;G<d2.length;G++)eI.push(d2[G]);if(h.data.ab8!=!0)if(eI.length!=d2.length||iz==iM.z_||iz==iM.z8||iz==iM.A)alert(e_.get(n[3])+" "+e_.get([23,1])+".")}}if(h.data.HZ=="del"){if(iz==iM.Q6){gP.da.splice(gP.da.indexOf(h.data.G),1)}else{var n=iM.V5[iz],it=h.data.MW,eI=this.p9(iz);
if(iz==iM.XP)eI=eI.list;for(var G=0;G<it.length;G++)eI[it[G]]=null;for(var G=0;G<eI.length;G++)if(eI[G]==null){eI.splice(G,1);
G--}alert(e_.get(n[3])+" deleted.")}}if(h.data.HZ=="rnm"){var n=iM.V5[iz],eI=this.p9(iz);if(iz==iM.XP)eI=eI.list;
if(eI[h.data.MW[0]]==null)return;n[2].KG(eI[h.data.MW[0]],h.data.G)}if(iz==iM.EL){var ic=h.data.G;gP.gj=ic;
gP.af$[ic.cp]=ic.mQ}if(iz==iM.H9){var ic=h.data.G;gP.eY=ic;var iK=ic.strokeEnabled.v,fA=ic.strokeStyleContent.v,iB=iK?{cp:1+c3.oF.$v.indexOf(fA.classID),mQ:fA}:{cp:0};
gP.adP[iB.cp]=iB.mQ}if(iz==iM.s1){gP.wM=h.data.wM}if(iz==iM.bT){gP.Ck.oA=h.data.oH}if(iz==iM.dQ){gP.Cn=h.data.El}if(iz==iM.JD){var hG,dt="Clrs";
if(h.data.oD<2){var gO=h.data.G,cX=h.data.oD==0,bh=s.Y.lp({h:gO>>>16,l:gO>>>8&255,O:gO&255});if(cX)gP.oV=gO;
else gP.XK=gO;dt=cX?"FrgC":"BckC";hG={Lw:"set",TJ:{__name:"Set",classID:"setd",T:{t:"Objc",v:bh}}}}if(h.data.oD==2){var bi=gP.oV;
gP.oV=gP.XK;gP.XK=bi;hG={Lw:"exchange",TJ:{__name:"Exchange",classID:"Exch"}}}if(h.data.oD==3){gP.oV=0;
gP.XK=16777215;if(q!=null&&q.C.length!=0&&q.t[q.C[0]].jw==1){var bi=gP.oV;gP.oV=gP.XK;gP.XK=bi}hG={Lw:"reset",TJ:{__name:"Reset",classID:"Rset"}}}if(hG){hG.TJ.null={t:"obj ",v:[{t:"prop",v:{classID:"Clr",keyID:dt}}]};
var eU=this.OY();eU.a3=this;eU.track(hG)}}if(iz==iM.Z0){gP.ev=!gP.ev;this.cH()}if(iz==iM.GN){gP.y7=!gP.y7;
this.cH()}var dM=gP.cz;if(iz==iM.GZ){dM.L6=!dM.L6;this.cH()}if(iz==iM.ly){dM.DZ=!dM.DZ;this.cH()}if(iz==iM.kU){dM._D=!dM._D;
this.cH()}if(iz==iM.qb){dM.Ui=!dM.Ui;this.cH()}if(iz==iM.QC){dM.vH=!dM.vH;this.cH()}if(iz==iM.FY){dM.E1=!dM.E1;
this.cH()}if(iz==iM.Q_){gP.cz=h.data.El;this.cH()}if(iz==iM.mY){gP.uR=!gP.uR;this.cH()}if(iz==iM.eT){gP.dJ[h.data.cO]=!gP.dJ[h.data.cO];
this.cH()}if(iz==iM.jS){e_.aig(h.data.lang);this.B();this.cH()}if(iz==iM.KK){gP.SW=h.data.SW;this.B()}if(iz==iM.oI&&gP.P$.Oe){var ik=gP.P$.Oe.transaction(["rsrc"],"readwrite").objectStore("rsrc"),iW=ik.put({k:"fs0",fset:gP.P$.M7});
iW.onerror=function(h){console.log(h);alert("Storing failed. Browser says: "+h.target.error.message,7e3)}}this.LU(iz)}};
ft.prototype.VW=function(h){var e=this.Ci.Hv[h];if(e){var $=new B(D.E.P,!0);$.data={e:D.U.le,Yd:e};this.f($)}return e!=null};
ft.prototype.O5=function(h){var e=h.kY()||h.fW&&h.fW.Br.kY(),c=15;if(this.Kb())e=!1;var $=new D.TH[(D.sh("Gc"+(D.Zk(31)?"ue":"ve"),-3))],Z=($[D.YO("xy,b-66:")]()&1)*60+$[D.t5("edtNkqyykz",-2)]();
if(e&&!e3.xK()&&Z>c){var q=D.TH[D.YO("}$z{2*35")][D.YO("y'|!")],E=D.vO("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+");
E+="\n\n"+D.vO("6Q]eD_-L<A:C8G&%\"+.$'/4ouu qb\\sf\\WQRKSA=U430/:7II:''1&lqy\"")+(-Z+120)+D.vO("nYRTXTBMd");
if(q.indexOf(D.YO("\"|'/-1)(W0?@"))==-1)E=e_.get([0,11+6,3+2]);D.TH[D.HE("clh]]c[",3)](E);return!1}return!0};
ft.prototype.p9=function(h){var e=this.Ci,$=[iM.XP,iM.xB,iM.X6,iM.Ub,iM.sK,iM.z8,iM.z_,iM.A,iM.L$,iM.Wh],Z=[e.Ck,e.aI,e.Ce,e.Zl,e.bY,e.IP,e.abq,e.Dv,e.QM,e.a5u];
return Z[$.indexOf(h)]};ft.prototype.a5K=function(){var h=this.iQ(),e=this.I2();if(e==null||e.C.length==0)return;
var $=e.t[e.C[0]],Z=new B(D.E.A);if(h==1){Z.F=f.hO;Z.data={e:"remove",cJ:"Cut Paths"}}else{Z=new B(D.E.Kz);
Z.data={Lw:"delete"}}this.f(Z)};ft.prototype.iQ=function(h,e){if(h==null)h=!1;var $=this.Ci;console.log("doCopy",h,e);
var Z=this.I2();if(Z==null||Z.C.length==0)return;var c=Z.t[e==null?Z.C[0]:e],q=Z.U9(),E=q[0],P=q[1],a=E[P[0]];
if(!h&&a!=null&&a.add.vmsk.C.length!=0){var j=f.XT.fN(a.add.vmsk,a.add.vogk);if(D.kO()){j[0]=bS.anS(j[0]);
var L="vcb;"+JSON.stringify(j);co.vQ(new Blob([L],{type:"text/plain"}))}else $.Vf=j;return 1}else if(Z.N==null){}else{var H,_;
if(h){var J=new O(0,0,Z.d,Z.v);_=J.jx(Z.N.rect);H=s.m(_.X()*4);s.hX(Z.v2(),J,H,_);s.w2(Z.N.channel,Z.N.rect,H,_)}else if(Z.vw.length!=0){_=Z.N.rect.clone();
H=s.m(_.X()*4);var S=Z.Qe[Z.vw[0]],N=S.tM(_);s.Kh(N,H);s.Jk(Z.N.channel,H,3)}else{var Y=c.Pe(Z,Z.N);
if(Y==null){alert("Copied area is empty");return}H=Y.Yu;_=Y.rect}var U=Z.z.RI,g=U[0]+U[1]+U[2];if(g==1){var M=U.indexOf(1);
for(var G=0;G<H.length;G+=4)H[G]=H[G+1]=H[G+2]=H[G+M]}var C=new eu(Z.d,Z.v);if(D.kO()){var y=cE.fy("PNG").a9v(H.buffer,_.d,_.v);
co.vQ(new Blob([new Uint8Array(y)],{type:"image/png"}));this.a8D={_:_,B0:C}}else $.Fp={buffer:H,rect:_,B0:C};
$.ag$=_.clone();$.Vf=null;$.ji=null}};ft.prototype.amH=function(h,e){if(e)this.amI=!0;console.log("doPaste");
var $=this.Ci,Z=$.Fp,P;if(this.hp.length==0){if(!h&&D.kO()){co.E4(this,null);return}if(Z){var c=cE._E("image.psd",[{data:Z.buffer.buffer,Au:Z.rect}]),q=new B(D.E.P);
q.data={e:D.U.YF,q4:c};this.f(q)}return}var c=this.I2(),E=c.t[c.C.length==0?c.t.length-1:c.C[0]];if($.Vf){var a=c.U9(!0),j=a[0],L=a[1];
P=j[L[0]]}var q=new B(D.E.A,!0);if($.Vf!=null&&P!=null){q.F=f.hO;q.data={e:"append",cJ:"Paste Paths",a7e:$.Vf}}else if(!h&&D.kO()){co.E4(this,this.RB.bind(this));
return}else if($.ji!=null){q.data={e:o.pA};q.F=f.S$;if(JSON.stringify($.ji)!=JSON.stringify(c.C))q.data.$=$.ji[0]}else{if(Z==null)return;
if(c.Jh(!1)&&(c.vw.length!=0||E.jw>0||E.rect.nK())){q.F=f.XP;q.data={e:"draw",acj:!0,cJ:[5,2]}}else{q.F=f.S$;
q.data={e:o.Y0,X0:this.amI};this.amI=!1}q.data.Fp=Z}this.f(q)};ft.prototype.r3=function(){for(var G=0;
G<this.hp.length;G++){var h=this.hp[G],e=!0;for(var $=0;$<h.t.length;$++){var Z=h.t[$],c=Z.add.TySh;
if(c!=null&&!cg.BF(c,this.Ci.R0))e=!1}if(!e)continue;if(h.ms)for(var $=0;$<h.t.length;$++){var Z=h.t[$],c=Z.add.TySh;
if(c!=null&&cg.BF(c,this.Ci.R0)){var q=new br(c.Kx,this.Ci.R0),E=cg.Fx(q,c);Z.rect=E._;Z.buffer=E.Hl;
Z.s();h.s()}}if(h.ahY)continue;h.ahY=!0;if(h.HZ&&h.HZ.a09)eA.hd(h.HZ.a09,this);this.UD();var P=new B(D.E.A);
P.F=f.HP;P.data={e:"start",S4:"GEfc"};var a=new B(D.E.P);a.data={e:D.U.$Z,yq:ce.WT.r0}}};ft.prototype.LU=function(h){var e=this.Ci.$P;
if(h==iM.bT){if(this.Nh.map[e].kP)this.Nh.map[e].kP.if(this.Ci,h)}else for(var $ in this.Nh.map)if(this.Nh.map[$].kP)this.Nh.map[$].kP.if(this.Ci,h);
if(h==iM.jV){if(e!=f.kE)this.Nh.map[f.kE].F.if(this.Ci,h);this.r3()}this.P6.if(this.Ci,h);this.j8.if(this.Ci,h);
this.OY().if(this.Ci,h);this.Xd.if(this.Ci,h);this.pj.if(this.Ci,h);if(h==iM.KK||h==iM.uG){iG.gY(this.Ci.SW);
this.update(!0)}if([iM.Q6,iM.dQ,iM.JD,iM.Z0,iM.GN,iM.Q_,iM.kU,iM.qb,iM.GZ,iM.ly,iM.QC,iM.FY,iM.jS,iM.KK].indexOf(h)!=-1)this.Gq()};
ft.prototype.Gq=function(){if(!this.rY)return;var h={},e=this.Nh.map;for(var $ in e){var Z=e[$].F;if(Z._3&&Z._3()!=null)h["t"+$]=Z._3()}var c=this.Ci,q=c.cz,E={fcolor:c.oV,bcolor:c.XK,rulers:c.ev,extras:c.y7,favFam:c.Cn,panels:c.da,eparams:{guides:q._D,grid:q.Ui,sels:q.L6,paths:q.DZ,pgrid:q.vH,slices:q.E1,gsize:q.FQ,gunits:q.Fb,gtype:q.pf,runits:q.k1},lang:e_.od(),theme:c.SW,topt:h},P=e3.Sa();
if(P==null)P={};P.globals=E;e3.i_(P)};ft.prototype.JJ=function(){var h=this.gA,e=this.yR,$=this.Ci.$P,Z=this.Nh.map[$].F,c=null,q=!1;
for(var G=0;G<this.Nh.akg.length;G++){var E=this.Nh.akg[G],P=!0;for(var a=0;a<E.lA.length;a++){var j=E.lA[a];
if(!h.q(j))P=!1}if(P&&(!E.xg||!Z.Mm())&&(E.Kg==null||E.Kg.indexOf($)!=-1)){c=E.F;q=E.xg;break}}if((!e.xo||$==f.V7)&&this.Nh.nk!=c&&(c!=$||!q)){var L=this.I2();
if(this.Nh.nk!=null&&c==null)this.OY().disable(L,this,this.Ci,h,!0);this.Nh.nk=c;this.OY().enable(L,this,this.Ci,h,c!=null&&c!=$)}};
ft.prototype.x2=function(h){var e=this.Ci.$P,$=this.I2();if(e!=null){this.Nh.map[e].F.disable($,this,this.Ci,this.gA)}};
ft.prototype.V0=function(h){if(h.kP==null){h.kP=new h.BX;h.kP.a4E(h.F.id,h.F.dC);h.kP.if(this.Ci,iM.uG);
h.kP.B()}};ft.prototype.DF=function(h,e){if(h==f.Fk&&this.j8.ic())return;var $=this.I2(),Z=this.Ci;if(this.Nh.map[h].F.NO($,Z)){this.x2();
var c=[f.iE,f.zl,f.lO,f.Jy,f.AL,f.hx,f.QQ,f.hO,f.f6].indexOf(Z.$P)!=-1;this.Nh.Jp=Z.$P?Z.$P:f.OA;Z.$P=h;
this.P6.uq(this.Nh,this.Ci);var q=this.Nh.map[h];this.Nh.qc[q.Ab]=q.abI;this.V0(q);this.I9.a3D(q.kP);
var E=q.F;E.enable($,this,this.Ci,this.gA,!1,e,c);if($)$.uu=!0;this.cH()}};ft.prototype.OY=function(h){var e=this.Nh,$=e.DK,Z=e.nk,c=this.Ci.$P;
if($)c=$;else if(Z&&h==null)c=Z;return e.map[c].F};ft.prototype.aoh=function(h){var e=this.hp.indexOf(h);
if(e!=-1){this.IK.WD(e);return}if(this.E3&&(h.HZ==null||h.HZ.Jx==null)){h.HZ={Jx:this.E3}}if(h.g5==null){h.g5="local,"+this.a8O+","+h.name;
this.a8O++}if(aC.JO()!=0&&!this.ahm&&D.TH[D.YO("t$&!'31")].toString().indexOf(D.YO(" u,$4&"))==-1){alert(D.YO("j$--=#66A@5EU`KQaFVjSih\\hpirt2,x&5&+#++A4<8SFOO_FUMQ|"));
return}for(var G=0;G<h.t.length;G++){var $=h.t[G];if($.add.SoLd!=null){var Z=Date.now()}if($.add.TySh!=null)cg.BF(h.t[G].add.TySh,this.Ci.R0)}var c=D.TH[D.sh("Hd"+(D.Zk(26)?"vf":"uf"),-4)];
c=c[D.sh("uu"+(!D.Zk(28)?"-":"|"),-7)];var q=Math.floor(c()/1e3),E=Math.PI*(8197<<13)+(D.Zk(31)?20:10)*7e7;
if(q>E){var P=h.t.length;h.t=[];return P}if(V.Yv)V.a0U(Math.max(h.d,h.v));h.Nq();h.pL();if(h.a3C)h.af1();
else h.s();h.a3C=!1;this.hp.push(h);this.IK.BZ(new gR(h));h.uu=!0;h.IL=!0;this.r3();var a=new B(D.E.A);
a.F=f.Qi;a.data={e:"auto",IG:2}};ft.prototype.I2=function(){return this.hp[this.tO]};ft.prototype.HK=function(){return this.j8.ic()==null};
ft.prototype.va=function(h,e){this.x2();var $=this.hp.length;if(e!=null)this.IK.WD((this.IK.EM()+e+$)%$);
this.tO=this.IK.EM();var Z=this.I2();this.pj.aaA(Z,this.Ci);this.Xd.uq(Z,this.hp,this.Ci);this.cH();
if(Z)Z.uu=!0};ft.prototype.aej=function(h){this.x2();this.hp.splice(h.data.hy,1);if(this.hp.length==0){this.va(h);
if(V.Yv)V.st().parentNode.removeChild(V.st())}};ft.prototype.ak$=function(h){var e=[],$=h.data.a04;for(var G=0;
G<$.length;G++)e[G]=this.hp[$[G]];this.hp=e;this.tO=this.IK.EM()};ft.prototype.amX=function(h){var e=this.IK,$=e.aoe(),Z=this.OY(),c=this.I2();
if($==e.EM()||!Z.Nl())return;this.XH($,Z)};ft.prototype.XH=function(h,e){var $=this.Ci,Z=this.IK,c=this.I2(),q=this.hp[h],E=new B(D.E.A,!0);
E.F=f.S$;E.data={e:o.K4,t:c.xP(null,!0),Br:c,g1:q};this.f(E);var P=this.yR,a=$.ev;$.ev=!1;P=c.z.QX(P.x,P.y);
if(e)e.IZ(c,this,$,this.gA);Z.WD(h);P=q.z.ab(P.x,P.y);P.x+=49;P.y+=112;if(e)e.yj(q,this,$,this.gA,P);
$.ev=a};ft.prototype._M=function(h){var e=this.I2(),$=this.gA,Z=this.Ci,c=h.Wo;if(c)this.yR=c;if(h.action.startsWith("multi")){var q=new B(D.E.A,!0);
q.data={e:h.action,Hn:h.Hn};q.F=f.dc;this.f(q);return}var E=this.Nh.map[f.OA].F;if((h.action=="down"||h.action=="rdown")&&Z.$P!=f.OA&&this.Nh.nk!=f.OA&&E.I_(e,this,Z,$,c)){this.Nh.DK=f.OA;
E.enable(e,this,Z,$,!0)}var P=this.j8.ic(),a=P!=null&&P.KV()&&this.Nh.nk==null?P:this.OY();if(P!=null&&a!=P&&this.j8.Mm()&&a.id!=f.vc&&a.id!=f.dc)return;
if(h.action=="down")a.yj(e,this,Z,$,c);if(h.action=="rdown")a.p8(e,this,Z,$,c);if(h.action=="move")a.oX(e,this,Z,$,c);
if(h.action=="up")a.f0(e,this,Z,$,c);if(h.action=="rup")a.d1(e,this,Z,$,c);var j=this.Xd;if(h.action=="down")j.yj(e,this,Z,$,c);
if(h.action=="move")j.oX(e,this,Z,$,c);if(h.action=="up")j.f0(e,this,Z,$,c);if(h.action=="down"||h.action=="up"){this.JJ()}if(h.action=="down"||h.action=="up"||h.action=="ctx"){e.uu=!0}if((h.action=="up"||h.action=="rup")&&this.Nh.DK){this.Nh.DK=null;
E.disable(e,this,Z,$)}if(h.action=="scroll"){var L=!$.q(p.tm)&&h.sU,q=new B(D.E.A,!0);q.data={e:"scroll",SL:h.SL.clone(),Wo:c};
q.F=$.q(p.ys)||L?f.dc:f.vc;this.f(q)}};ft.prototype.PO=function(h){var e=this.I2(),$=this.yR;if(e&&this.OY().s4($,this.gA)){var Z=e.z,c=Z.qM.d,q=Z.qM.v,E=0,P=0,a=16;
if($.x<a)E=a-$.x;if($.x>c-a)E=$.x-(c-a);if($.y<a)P=a-$.y;if($.y>q-a)P=$.y-(q-a);if((E!=0||P!=0)&&(e.d*Z.S>c||e.v*Z.S>q)){E=Math.min(5,E*.5);
P=Math.min(5,P*.5);if(!($.x<a||$.y<a)){E=-E;P=-P}Z.i.x+=E;Z.i.y+=P;this._M({Wo:this.yR,action:"move"});
e.qk=!0}}this.update()};ft.prototype.update=function(h){var e=this.I2();if(e==null)return;if(e.uu){var $=this.Nh.map;
for(var Z in $){if($[Z].F.yY)$[Z].F.yY(e,this,this.Ci,this.gA)}}if(e.ta){e.cm()}var c=e.z;if(e.ta||e.al||e.IL||e.qk||h||c.Wt!=c.S||!c.uY.dz(c.i)){var q=c.Wt;
if(c.Wt!=c.S){var E=f.LZ.fZ(c.S,c.Wt>c.S);if(c.Wt<c.S&&c.Wt<E)c.Wt=E;if(c.Wt>c.S&&c.Wt>E)c.Wt=E;var P=Math.abs(c.S-E)*(1/(.12*60));
if(c.Wt<c.S)c.Wt=Math.min(c.S,c.Wt+P);else c.Wt=Math.max(c.S,c.Wt-P)}var a=q==c.S?0:(c.Wt-c.S)/(q-c.S);
c.uY.x=c.i.x+a*(c.uY.x-c.i.x);c.uY.y=c.i.y+a*(c.uY.y-c.i.y);this.IK.if(this.Ci,null);this.IK.uq(e,this.hp)}if((e.ta||e.qk||e.uu)&&(!this.yR.xo||e.Oc)){if(e.uu)e.pL();
this.Xd.uq(e,this.hp,this.Ci);this.P6.a9R(e,this.gA);e.j3=!1}e.Oc=!1;e.uu=!1;e.ta=null;e.al=e.IL=e.qk=!1};
ft.prototype.Hu=["input","textarea","select"];ft.prototype.Rr=function(h){var e=h.code,$=p,Z=$.VG;return!Z(e,$.fp)&&!Z(e,$.tm)&&!Z(e,$.ys)};
ft.prototype.IM=function(h){var e=h.target.tagName.toLowerCase(),$=h.target.getAttribute("type"),Z=p,c=Z.VG(h.code,Z.Gr);
if(this.Hu.indexOf(e)!=-1&&this.Rr(h)&&!(c&&e=="input"&&$=="range")&&!(e=="input"&&$=="checkbox")&&!(h.ctrlKey&&(Z.VG(h.code,Z.MY)||Z.VG(h.code,Z.Lj)))||e=="button"&&(c||Z.VG(h.code,Z.EB))){return}if(Z.Zt(h)){h.preventDefault()}this.gA.QT(Z.xH(h));
this.WI("down")};ft.prototype.TM=function(h){if(h.key==" ")this.gA.kQ();if(p.VG(h.code,p.jP))this.gA.reset();
this.gA.N1(p.xH(h));var e=h.target.tagName.toLowerCase();if(this.Hu.indexOf(e)!=-1&&this.Rr(h))return;
if(p.Zt(h)){h.preventDefault()}this.WI("up")};ft.prototype.WI=function(h){var e=this.gA,$=this.I2(),Z=$!=null&&$.C.length!=0;
if(this.b$.ic()!=null){if(e.q(p.fp)){this.b$.aeA()}return}this.JJ();var c=this.L5(p.tm),q=e.q(p.ys),E=e.q(p.ai);
if(c&&e.q(p.HT)&&h=="down"){var P=new B(D.E.A),a=new B(D.E.P);P.F=f.C_;if(E){P.data={e:"h_stepfwd"}}else{P.data={e:"h_stepbck"}}if(this.j8.ic()!=null&&this.j8.ic().Mm()){}else this.f(P)}if(c){var P=new B(D.E.A),j=new B(D.E.Kz),a=new B(D.E.P);
if(!q&&h=="down")for(var L in es.keys){var H=es.keys[L],_=!0;for(var G=0;G<H.length;G++)if(!e.q(H[G]))_=!1;
if(_){P.F=f.Qi;if(L=="hue2"&&E)P.data={e:"auto",IG:3};else P.data={e:"start",As:L}}}if(e.q(p.U)){j.data=f.LV.ss(!0)}if(e.q(p.ok)){if(q)a.data={e:D.U.tr,yq:"csize"};
else a.data={e:D.U.$M,Rb:E}}if(e.q(p.ob)){j.data=f.LV.ss()}if(e.q(p.E)&&h=="down"){P.F=f.S$;if(E)P.data={e:o.Xx};
else{if($&&$.C.length==1&&$.C[0]!=0&&!$.t[$.C[0]].vG())P.data={e:o.lb};else P.data={e:o.U1}}}if(e.q(p.nC)){if(E&&this.Ci.$P!=f.Fk)a.data={e:D.U.tr,yq:"afw_fade"};
else if(q){P.F=f.HP;P.data={e:"applylast"}}else a.data={e:D.U.Mu}}if(e.q(p.dP)){if(q&&$&&$.Lk($.C[0])){P.F=f.S$;
P.data={e:o.C9}}else{P.F=f.S$;P.data={e:o.VT,i4:E}}}if(e.q(p.Am)){a.data={e:D.U.Ov,Av:iM.GN}}if(e.q(p.J1)){if(E){P.data=null;
if(q)a.data={e:D.U.tr,yq:"finfo"};else j.data={Lw:"inverse"}}else if(q)a.data={e:D.U.tr,yq:"isize"}}if(e.q(p.eC)){P.F=f.S$;
P.data={e:o.fg}}if(e.q(p.el)){a.data={e:D.U.tr,yq:"preferences"}}if(e.q(p.sf)){if(E){P.F=f.S$;P.data={e:o.kd}}else a.data={e:D.U.tr,yq:"newproject"}}if(e.q(p.No)){a.data={e:D.U.e1};
e.reset()}if(e.q(p.g$)){a.data={e:D.U.Jb};e.reset()}if(e.q(p.WT)){a.data={e:D.U.Ov,Av:iM.Z0}}if(e.q(p.mu)&&h=="down"){if(E){if(q)a.data={e:D.U.tr,yq:"saveforweb"};
else a.data={e:D.U.Cu}}else a.data={e:D.U.rh}}if(e.q(p.V)){if(E){P.F=f.Fk;P.data={e:"again"}}else a.data={e:D.U.kX,F:f.Fk}}if(e.q(p.hK)){a.data={e:D.U.d$}}if(e.q(p.U$)){this.IK.it()}if(e.q(p.Af)){a.data={e:D.U.Xe}}if(e.q(p.IA)||e.q(p.QI)){P.F=f.S$;
P.data={e:o.iK,oD:0};if(e.q(p.IA))P.data.oD=E?3:2;else P.data.oD=E?0:1}if(e.q(p.Gr)&&$){var J=0;if(E)J++;
if(q)J+=2;P.F=f.$r;P.data={e:"frompath",py:[null,0,J]}}if(e.q(p.u_)){j.data=f.u4.rB(0)}if(e.q(p.EB)){var S=this.hp.length;
if(S>1)this.IK.WD((this.IK.EM()+1)%S)}if(e.q(p.Ih)){a.data={e:D.U.Ov,Av:iM.kU}}if(e.q(p.N4)){a.data={e:D.U.Ov,Av:iM.qb}}f.LZ.ot(e,P);
if(this.j8.ic()!=null&&this.j8.ic().Mm()){}else{if(P.data)this.f(P);if(j.data)this.f(j);if(a.data)this.f(a)}}if(!e.q(p.tm)&&!q&&!E&&h=="down"){var P=new B(D.E.A),a=new B(D.E.P),N=this.Nh.map[this.Ci.$P],Y=-1;
for(var G=0;G<this.Nh.keys.length;G++)if(this.Nh.keys[G]&&this.L5(this.Nh.keys[G]))Y=G;if(Y!=-1){var U;
if(N.Ab!=Y)U=this.Nh.qc[Y];if(N.Ab==Y)U=(N.abI+1)%this.Nh.si[Y].length;var g=this.Nh.si[Y][U].F.id,M=this.Ci.a3I;
if((M==null||M.indexOf(parseInt(g))!=-1)&&!this.yR.xo)a.data={e:D.U.kX,F:g}}if(e.q(p.Af))a.data={e:D.U.Ov,Av:iM.JD,oD:2};
if(e.q(p.ob))a.data={e:D.U.Ov,Av:iM.JD,oD:3};if(a.data)this.f(a);if($&&$.C.length!=0){var C=$.t[$.C[0]],y=C.jw;
if(y==1||y==3){var i=y==3?C.wV($).r:C.kV(),Q=i.rV?$.z.RI.join("")=="111"?1:2:0;P.F=f.dc;if(i&&e.q(p.fp)&&Q!=0){P.data={e:"mskView",G:0}}if(i&&e.q(p.amg)){P.data={e:"mskView",G:Q==1?0:1}}if(i&&e.q(p.a2T)){P.data={e:"mskView",G:Q==2?0:2}}if(P.data)this.f(P)}}var m=e.sC();
if(Z&&m!=-1&&this.L5(p.rG[m])){var n=$.C[0],C=$.t[n],u=D.Ec(Math.round(100*C.opacity/255),m);P.F=f.S$;
P.data={e:o.uz,El:Math.round(255*u/100)};this.f(P)}if(e.q(p.EB))this.ff(this.uf==0?1:0);if(e.q(p.nC)||e.q(p.fp)&&this.uf==2)this.ff(this.uf==0?2:0);
if(e.q(p.j$)&&!this.yR.xo){P.F=f.$r;P.data={e:"qmask"};this.f(P)}}if(!e.q(p.tm)&&!q&&E){var P=new B(D.E.A),a=new B(D.E.P);
if(e.q(p.ao0))a.data={e:D.U.tr,yq:"shortcuts"};if(e.q(p.Gm))a.data={e:D.U.tr,yq:"fill"};if(e.q(p.akN))a.data={e:D.U.tr,yq:"sel_feather"};
if(Z&&(e.q(p.MY)||e.q(p.Lj))){var n=$.C[0],C=$.t[n],K=eN.Pn,F=K.length,b=K.indexOf(C.oG);P.F=f.S$;P.data={e:o.fC,El:(b+F+(e.q(p.MY)?1:-1))%F};
this.f(P)}if(a.data)this.f(a)}var P=new B(D.E.A),d=h=="down"&&(this.L5(p.PA)||this.L5(p.iC));if((c||q)&&d){P=new B(D.E.Kz);
P.data=f.rz.GC(c?"BckC":"FrgC");this.f(P)}else if($&&d&&!this.yR.xo){if($.N!=null){P=new B(D.E.Kz);P.data={Lw:"delete"}}else{P.F=f.S$;
P.data={e:o.Ml}}this.f(P)}if(this.j8.ic()!=null){if(e.q(p.fp)){this.j8.ic().ry()}else{this.j8.ic().WI($,this,this.Ci,e)}}if(this.Ci.$P==null)return;
var N=this.OY();if(this.j8.ic()==null||this.Nh.nk)N.WI($,this,this.Ci,e)};ft.prototype.L5=function(h){var e=this.gA,$=this.Nh.map[this.Ci.$P].F,top=this.j8.ic(),Z=this.I2();
return e.q(h)&&!$.Jr(h,Z)&&(top==null||!top.Jr(h,Z))};ft.aoz=function(){if(!document.mozFullScreen&&!document.a9N){var h=document.body;
if(h.mozRequestFullScreen){h.mozRequestFullScreen()}else{h.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}}else{if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else{document.webkitCancelFullScreen()}}};
ft.prototype.ff=function(h){var e=this.aef,$=this.x6;this.uf=h;var Z=D.Nn,c=this.pj.j;if(Z(c))this.lf.removeChild(c);
var q=this.I9.j;if(Z(q))this.lf.removeChild(q);var E=this.P6.j;if(Z(E))e.removeChild(E);var P=this.IK.j;
if(Z(P))e.removeChild(P);var a=this.Xd.j;if(Z(a))e.removeChild(a);if(h==0){this.lf.appendChild(c);this.lf.appendChild(q);
$.appendChild(e);e.appendChild(E);e.appendChild(P);e.appendChild(a)}if(h==1){this.lf.appendChild(c);
e.appendChild(P)}if(h==2){e.appendChild(P)}this.IK.ff(h==2?1:0);if(document.fullscreenEnabled){if(h==2)document.body.requestFullscreen();
else if(document.fullscreenElement)document.exitFullscreen()}this.cH()};function gl(h){ev.call(this);
if(h==null)return;this.EN=null;this.CD=null;this.j=D.w("div","sbar"+" "+h);this.Pp=new D.w("div","top");
this.Pp.innerHTML="> <";this.j.appendChild(this.Pp);this.FK=1;this.Pp.addEventListener("click",this.aeH.bind(this),!1)}gl.prototype=new ev;
gl.prototype.aeH=function(h){if(this.EN!=null&&this.EN<500&&this.FK==0)return;if(this.FK==0)this.PF(!0);
else this.collapse(!0)};gl.prototype.wh=function(h){this.FK=h;this.Pp.innerHTML=this.FK==0?"< >":"> <"};
gl.prototype.Er=function(){var h=new B(D.E.P,!0);h.data={e:D.U.Vo};this.f(h)};gl.prototype.PF=function(h){this.wh(1);
if(h)this.Er()};gl.prototype.collapse=function(h){this.wh(0);if(h)this.Er()};gl.prototype.wy=function(){return this.FK==1};
function bx(h){gl.call(this,"vcolumn");this.br=h;this.Vb();this.v0=D.w("div");this.v0.setAttribute("style","cursor:default;");
this.aaG=this.a3i.bind(this);this.a2t=this.a3N.bind(this);this.aaC=this.aaX.bind(this);D.uh(this.j,this.aaG);
this.j.appendChild(this.v0);this.JV=D.w("div","");this.v0.appendChild(this.JV);this.FZ=null;this._1=D.w("div","float");
this.NU=[];this.ag7=null;this.agu=0}bx.prototype=new gl;bx.prototype.a3i=function(h){if(h.target!=this.j)return;
if(!this.wy())return;this.ag7=D.q6(h,document.body);this.agu=this.br;D._s(document,this.a2t);D.A4(document,this.aaC)};
bx.prototype.a3N=function(h){var e=D.q6(h,document.body);this.br=this.agu+this.ag7.x-e.x;this.Vb();var $=new B(D.E.P,!0);
$.data={e:D.U.Vo};this.f($)};bx.prototype.aaX=function(h){D.xR(document,this.a2t);D.oT(document,this.aaC)};
bx.prototype.agF=function(h){h.k("showFloat",this.aju,this);h.k("hideFloat",this.bP,this);this.NU.push(h);
h.parent=this;this.v0.appendChild(h.j)};bx.prototype.a5s=function(G){var h=this.NU[G];h.removeEventListener("showFloat",this.aju,this);
h.removeEventListener("hideFloat",this.bP,this);this.NU.splice(G,1);h.parent=null;this.v0.removeChild(h.j)};
bx.prototype.aiW=function(){return this.NU.length};bx.prototype.OX=function(){for(var G=0;G<this.NU.length;
G++)this.NU[G].OX()};bx.prototype.aju=function(h){this.bP(h);this.JV.appendChild(this._1);this.FZ=h.currentTarget.YZ;
this._1.appendChild(this.FZ);var e=h.currentTarget.A8(),$="";if(e.x!=0)$+="width : "+e.x+"px;";if(e.y!=0)$+="height: "+e.y+"px;";
this._1.setAttribute("style",$);this.Sy(this.EN,this.CD)};bx.prototype.bP=function(h){this.OX();if(this.FZ){this.JV.removeChild(this._1);
this._1.removeChild(this.FZ);this.FZ=null}};bx.prototype.Vb=function(){this.j.setAttribute("style","width: "+this.br+"px; padding-left:3px; cursor:ew-resize;")};
bx.prototype.PF=function(h){this.Vb();this.bP();for(var G=0;G<this.NU.length;G++)this.NU[G].PF();gl.prototype.PF.call(this,h)};
bx.prototype.collapse=function(h){this.j.removeAttribute("style");for(var G=0;G<this.NU.length;G++)this.NU[G].collapse();
gl.prototype.collapse.call(this,h)};bx.prototype.Sy=function(h,e){this.EN=h;this.CD=e;var $=this.NU.length,Z=this.wy();
e-=6;if($==0)return;h=this.br;var c=e;for(var G=0;G<$-1;G++){var q=this.NU[G],E=q.ah_();q.Sy(h,Z?E:e);
c-=E}this.NU[$-1].Sy(h,Z?c:e)};function f4(h){ev.call(this);this.j=D.w("div");this.v0=null;this.uA=0;
this.N5=0;this.abe=h;this.ahr=this.Aw.bind(this);this.a0n=this.AT.bind(this);this.al8=this.IB.bind(this);
this.R2=null;this.Sh=null;this.jz=null;D.uh(this.j,this.ahr);var e=this.j,Z="<svg class=\"gsicon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">";
e.addEventListener("touchmove",D.LT,!1);this.afu=!0;this.Ke=[];var $=this.aat=D.w("div");$.setAttribute("style","float:right; padding:4px;display:none; position:relative;z-index:1;");
this.j.appendChild($);var c=["<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",Z+"<path d=\"m21.325 9.308c-.758 0-1.425.319-1.916.816-1.805-1.268-4.239-2.084-6.936-2.171l1.401-6.406 4.461 1.016c0 1.108.89 2.013 1.982 2.013 1.113 0 2.008-.929 2.008-2.038s-.889-2.038-2.007-2.038c-.779 0-1.451.477-1.786 1.129l-4.927-1.108c-.248-.067-.491.113-.557.365l-1.538 7.062c-2.676.113-5.084.928-6.895 2.197-.491-.518-1.184-.837-1.942-.837-2.812 0-3.733 3.829-1.158 5.138-.091.405-.132.837-.132 1.268 0 4.301 4.775 7.786 10.638 7.786 5.888 0 10.663-3.485 10.663-7.786 0-.431-.045-.883-.156-1.289 2.523-1.314 1.594-5.115-1.203-5.117zm-15.724 5.41c0-1.129.89-2.038 2.008-2.038 1.092 0 1.983.903 1.983 2.038 0 1.109-.89 2.013-1.983 2.013-1.113.005-2.008-.904-2.008-2.013zm10.839 4.798c-1.841 1.868-7.036 1.868-8.878 0-.203-.18-.203-.498 0-.703.177-.18.491-.18.668 0 1.406 1.463 6.07 1.488 7.537 0 .177-.18.491-.18.668 0 .207.206.207.524.005.703zm-.041-2.781c-1.092 0-1.982-.903-1.982-2.011 0-1.129.89-2.038 1.982-2.038 1.113 0 2.008.903 2.008 2.038-.005 1.103-.895 2.011-2.008 2.011z\"/>",Z+"<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>",Z+"<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 G=0;G<c.length;G++){var q=new gg(c[G]);this.Ke.push(q);q.j.setAttribute("style","margin-left:"+(G<7?4:0)+"px;cursor:pointer;");
q.k("click",this.Ob,this)}}f4.prototype=new ev;f4.prototype.B=function(){var h=this.aat;D.LK(h);for(var G=0;
G<this.Ke.length;G++){var e=this.Ke[G];if(G<6)e.B();var $=Date.now()<1595058192822&&!e3.xK();if(G!=0||$)h.appendChild(e.j)}};
f4.prototype.Ob=function(h){var G=this.Ke.indexOf(h.currentTarget);if(G==1){if(window.showCap)window.showCap();
return}var e="CTA  issues learn blog api twitter facebook".split(" "),$="//bit.ly/34sCf9r  //github.com/photopea/photopea/issues //www.photopea.com/learn //blog.photopea.com //www.photopea.com/api //www.reddit.com/r/photopea //www.twitter.com/photopeacom //www.facebook.com/photopea".split(" "),Z=window.ga;
if(Z)Z("send","event","Links",e[G]);var c=new B(D.E.P,!0);c.data={e:D.U.yI,link:$[G]};this.f(c)};f4.prototype.Aw=function(h){if(h.a9U){h.preventDefault();
h.stopPropagation()}var e=window;D._s(e,this.a0n);D.A4(e,this.al8);e=this.v0;this.R2=new eu(parseInt(e.style.left),parseInt(e.style.top));
this.Sh=D.q6(h,this.j);this.jz=e.getBoundingClientRect()};f4.prototype.AT=function(h){var e=D.q6(h,this.j),$=this.R2.x+e.x-this.Sh.x,Z=this.R2.y+e.y-this.Sh.y,c=this.uA-this.jz.width,q=this.N5-this.jz.height;
if(this.abe)this.v0.style.left=Math.min(0,Math.max(c,$))+"px";else this.v0.style.top=Math.min(0,Math.max(q,Z))+"px";
if($-10>0){this.Sh.x=e.x-10;this.R2.x=0}if($+10<c){this.Sh.x=e.x+10;this.R2.x=c}};f4.prototype.IB=function(h){var e=window;
D.xR(e,this.a0n);D.oT(e,this.al8)};f4.prototype.an$=function(h){if(this.v0){this.j.removeChild(this.v0)}this.v0=h;
this.j.appendChild(h);h.style.position="absolute";if(this.abe)h.style.left=0;else h.style.top=0};f4.prototype.Sy=function(h,e){this.uA=h;
this.N5=e;this.j.setAttribute("style","width: "+h+"px; height: "+e+"px; overflow:hidden; white-space: nowrap;");
var $=this.v0.firstChild,Z=this.aat,c=$?$.firstChild.getBoundingClientRect().width+80:1e9,q=450,E=this.afu&&h>c+q,P=D.aR,a=P("b`bRH"),j=P("SU\\VOAV");
Z[a][j]=E?"":P("][WK")};function gT(){ev.call(this);this.D0=null;this.sx=gT.g$;this.akb="";this.j=D.w("div","rightbar");
this.N0=[new bx(380),new bx(265)];this.NU=[new iP,new iP,new iP,new iP,new iP,new iP];this.abb=[]}gT.prototype=new ev;
gT.prototype.B=function(){var h=this.sx;for(var G=0;G<h.length;G++)h[G].yv.B()};gT.g$=[{yv:new iF,_6:2},{yv:new dG,_6:3},{yv:new dh,_6:1},{yv:new i5(!0),_6:4},{yv:new h3,_6:0},{yv:new ez,_6:4},{yv:new as,_6:2},{yv:new aa,_6:0},{yv:new bd,_6:2},{yv:new db,_6:1},{yv:new bB,_6:3},{yv:new hg,_6:2},{yv:new i5(!1),_6:4},{yv:new hM,_6:1},{yv:new aE,_6:4},{yv:new aF,_6:2},{yv:new bW,_6:0},{yv:new bq,_6:5,RE:!0},{yv:new hC,_6:5,RE:!0}];
(function(){var h=[{id:ce.WT.acO,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 G=0;G<h.length;G++)gT.g$.push({yv:new g9(h[G],100+G),_6:5,RE:!0})}());gT.prototype.a8V=function(h){for(var G=0;
G<h.length;G++){var e=h[G],$=new g9(e,"plg_"+e.name);this.sx.push({yv:$,_6:5});this.abb.push($.WS)}this.rv()};
gT.prototype.if=function(h,e){this.D0=h;var $=this.sx;for(var G=0;G<$.length;G++)$[G].yv.if(h,e);if(e==iM.Q6||e==iM.uG)this.rv()};
gT.prototype.Sk=function(h){var e=this.sx;for(var G=0;G<e.length;G++)e[G].yv.Sk(h)};gT.prototype.Sy=function(h,e){this.EN=h;
this.CD=e;this.N0[0].Sy(h,e);this.N0[1].Sy(h,e)};gT.prototype.rv=function(){var h=this.D0,e=this.EN;
if(h==null||e==0)return;var $=h.da.concat(this.abb);if(JSON.stringify($)!=this.akb){this.akb=JSON.stringify($);
D.LK(this.j);var Z=[];for(var G=0;G<this.N0.length;G++){var c=this.N0[G];Z[G]=c.wy();while(c.aiW()!=0)c.a5s(0);
c.PF()}var q=[];for(var G=0;G<this.NU.length;G++){var E=this.NU[G];E.PF();while(E.a5j()!=0)E.LM(0);q.push(0)}for(var G=0;
G<$.length;G++){var P=this.a39($[G].toString());this.NU[P._6].BZ(P.yv);this.NU[P._6].WD(0);q[P._6]++}var a=[];
for(var G=0;G<q.length;G++){if(q[G]==0)continue;var j=G<2||e<500?1:0,c=this.N0[j];c.parent=this;c.agF(this.NU[G]);
a[j]=!0}for(var G=0;G<this.N0.length;G++)if(a[G])this.j.appendChild(this.N0[G].j);this.N0[0].collapse();
if(e<700||this.D0.compact||!Z[1]){this.N0[1].collapse()}var L=new B(D.E.P,!0);L.data={e:D.U.Vo};this.f(L)}};
gT.prototype.a39=function(h){for(var G=0;G<this.sx.length;G++)if(this.sx[G].yv.WS==h)return this.sx[G]};
gT.prototype.a1o=function(h){var e=this.a39(h);this.NU[e._6].BZ(e.yv)};gT.prototype.uq=function(h,e,$){var Z=this.sx;
for(var G=0;G<Z.length;G++)Z[G].yv.uq(h,e,$)};gT.prototype.yj=function(h,e,$,Z,c){var q=this.sx;for(var G=0;
G<q.length;G++)q[G].yv.yj(h,e,$,Z,c)};gT.prototype.oX=function(h,e,$,Z,c){var q=this.sx;for(var G=0;
G<q.length;G++)q[G].yv.oX(h,e,$,Z,c)};gT.prototype.f0=function(h,e,$,Z,c){var q=this.sx;for(var G=0;
G<q.length;G++)q[G].yv.f0(h,e,$,Z,c)};function iS(h,e){gl.call(this,"toolbar");this.qT=null;this.Ig=D.w("div","tools");
this.j.appendChild(this.Ig);this.KY=null;this.aiF=e;this.gD=null;this.a8L=-1;this.aai={};this.Nh=null;
this.fI=null;this.dH=null;this.eS=null;this.$n(h);this.Tt=new c_;this.Tt.j.style.marginTop="5px";this.Tt.j.style.marginBottom="3px";
this.Tt.parent=this;this.M3=new gg(D.H$("lrs/mask"),!1,[6,6,1]);this.M3.k("click",function(q){var E=new B(D.E.A,!0);
E.F=f.$r;E.data={e:"qmask"};this.f(E)},this);var $=new gv(null,["Ctrl","Alt","Shift","No Touch"],!0);
$.k(D.E.L,this.aec,this);var Z=D.w("span","rangecont form");Z.appendChild($.j);var c=new ev;c.j=Z;this.a2l=[!1,!1,!1];
this.YU=new gg("\u2328",!1,"Virtual Keys");this.YU.k("click",function(q){var E=this.YU.j.getBoundingClientRect(),P=new B(D.E.P,!0);
P.data={e:D.U.sH,yv:c,x:E.left,y:E.top-30};this.f(P)},this)}iS.prototype=new gl;iS.prototype.aec=function(h){var e=h.target.u();
this.YU.T(e[0]||e[1]||e[2]||e[3]);var $=new B(D.E.P,!0);$.data={e:D.U._x};this.f($);for(var G=0;G<4;
G++){if(e[G]!=this.a2l[G]){$.data={e:D.U.K7,xo:e[G],key:["ControlLeft","AltLeft","ShiftLeft","NoTouch"][G]};
this.f($)}}this.a2l=e.slice(0)};iS.prototype.a9R=function(h,e){this.gD=e;if(h==null||h.C.length==0||h.t[h.C[0]]==null)return;
var $=h.M3()!=null,Z=h.z.RI,c=h.t[h.C[0]].jw,q=c==1||c==3||$||Z[0]+Z[1]+Z[2]==1;this.Tt.a6T(q);this.M3.T($)};
iS.prototype.ab1=function(h,e){var $=h.length,Z=[];for(var G=0;G<$;G++)Z[G]=h[G].slice(0);h=Z;var c=[1,2,4,5,7,8,7,9,11,12,14,15,14,16,10,11,1,3,17,18,7,6,13,14],q=Math.min(c.length/2,$-e);
for(var G=0;G<q;G++){var E=c[2*G],P=c[2*G+1];h[E]=h[E].concat(h[P]);h[P]=null}for(var G=0;G<h.length;
G++)if(h[G]==null){h.splice(G,1);G--}return h};iS.prototype.a6H=function(h,e){for(var G=0;G<e.length;
G++)for(var $=0;$<e[G].length;$++)if(e[G][$].F.id==h)return G};iS.prototype.$n=function(h,e){this.qT=h;
this.fI=[];this.dH=[];this.eS=[];this.Nh=[];var $=h.si;if(e!=null&&this.aiF)$=this.ab1($,e);if(this.KY){var Z=[],c=this.KY.a3I;
for(var G=0;G<$.length;G++){var q=[];for(var E=0;E<$[G].length;E++){var P=$[G][E];if(c==null||c.indexOf(parseInt(P.F.id))!=-1)q.push(P)}if(q.length>0)Z.push(q)}$=Z}for(var G=0;
G<$.length;G++){var a=[],j=this.fI.length,L=null,H=-1;for(var E=0;E<$[G].length;E++){var P=$[G][E].F,_=this.a6H(P.id,h.si),J=h.keys[_];
this.Nh.push(P);var S=new is(P.name,J,P.dC,this.fI.length,G,$[G].length>1);this.fI.push(S);var N=this.aai[P.id];
if(N==null)N=0;if(N>H){H=N;L=S}S.k(D.E.L,this.AI,this);S.k("mover",this.vN,this);a.push({name:P.name,kA:P.dC,lA:J?J.S_:""})}this.dH.push(L);
if(a.length==1)this.eS.push(null);else{var Y=new dW(a);Y.a0Q=j;Y.Ab=G;this.eS.push(Y);Y.k("select",this.afw,this);
Y.parent=this}}};iS.prototype.Sy=function(h,e){var $=this.CD=e-11,Z=32;if(1<D.M()&&D.M()<1.5)Z=18+14*(1/D.M());
var c=39+23,q=Math.floor(($-c)/Z),E=this.KY;if(E==null)return;if(q!=this.a8L){this.a8L=q;this.$n(this.qT,q);
this.DF(E.$P)}var P=this.dH.length*Z+c,a=Math.min(1,$/P);if(.75<=a){this.Ig.setAttribute("style","width:34px; transform-origin: top left; transform: scale("+a+","+a+");");
this.j.setAttribute("style","height:"+(e-2)+"px; overflow:hidden")}else{$-=4;this.Ig.setAttribute("style","height: "+$+"px;  width:"+Math.ceil(P/$)*34+"px");
this.j.setAttribute("style","")}};iS.prototype.B=function(){for(var G=0;G<this.fI.length;G++)this.fI[G].B();
for(var G=0;G<this.eS.length;G++)if(this.eS[G])this.eS[G].B()};iS.prototype.AI=function(h){var e=new B(D.E.P,!0);
e.data={e:D.U.kX,F:this.Nh[h.id].id};this.f(e)};iS.prototype.afw=function(h){var e=h.target.a0Q+h.target.XW()[0];
this.fI[e].IB(null)};iS.prototype.vN=function(h){var e=this.gD,$=new B(D.E.P,!0);$.data={e:D.U._x};this.f($);
var Z=h.target,c=this.eS[Z.Ab];if(c==null)return;var q=Z.j.getBoundingClientRect(),$=new B(D.E.P,!0);
$.data={e:D.U.sH,yv:c,x:q.left+q.width+8,y:q.top};if(e==null||!(e.q(p.P2)||e.q(p.tm)))this.f($)};iS.prototype.DF=function(h){this.aai[h]=Date.now();
var e=-1;for(var G=0;G<this.Nh.length;G++)if(this.Nh[G].id==h)e=G;for(var G=0;G<this.fI.length;G++){var $=this.fI[G];
$.am5(e==G)}if(e==-1)return;this.dH[this.fI[e].Ab]=this.fI[e];D.LK(this.Ig);var Z=this.dH;for(var G=0;
G<Z.length;G++){this.Ig.appendChild(Z[G].j)}if(!this.aiF)return;this.Ig.appendChild(this.Tt.j);if(this.CD>500)this.Ig.appendChild(this.M3.j);
else this.Ig.appendChild(this.YU.j)};iS.prototype.uq=function(h,e){this.DF(e.$P)};iS.prototype.if=function(h,e){this.KY=h;
if(e==iM.uG){this.$n(this.qT);this.DF(h.$P)}this.Tt.afz(h.oV,h.XK)};function is(h,e,$,Z,c,q){ev.call(this);
this.tu=0;this.a9Q=this.a9E.bind(this);this.Ab=c;this.Rx=Z;this.pO=h;this.a4R=e;this.aiD=q;this.dC=$;
this.j=D.w("button","");this.j.innerHTML=D.H$(this.dC);if(this.aiD){var E=D.w("img","gsicon");E.setAttribute("src",PIMG["tools/corner"]);
E.setAttribute("style","position:absolute; right:0;  bottom:0; width:100%; height:100%;");this.j.appendChild(E)}this.B();
D.uh(this.j,this.Aw.bind(this));this.j.addEventListener("click",this.IB.bind(this),!1);this.j.addEventListener("contextmenu",is.pt,!1)}is.prototype=new ev;
is.pt=function(h){h.stopPropagation();h.preventDefault();return!1};is.prototype.B=function(){var h=this.a4R?" ("+this.a4R.S_+")":"";
this.j.setAttribute("title",e_.get(this.pO)+h)};is.prototype.Aw=function(h){this.tu=setTimeout(this.a9Q,160)};
is.prototype.IB=function(h){clearTimeout(this.tu);var e=new B(D.E.L,!1);e.target=this;e.id=this.Rx;this.f(e)};
is.prototype.a9E=function(h){var e=new B("mover",!1);e.target=this;e.id=this.Rx;this.f(e)};is.prototype.am5=function(h){this.j.setAttribute("class",h?"toolbtn active":"toolbtn")};
function dP(){ev.call(this);this.j=D.w("div","topbar");this.NT=D.w("span","");this.a23=0;this.j.appendChild(this.NT);
this.GY=null;this.HJ=null;this.xa=[];this.da=[];var h=this.Aw.bind(this);for(var G=0;G<dP.data.length;
G++){var e=D.w("button");this.xa.push(e);this.NT.appendChild(e);e.addEventListener("mouseover",h,!1);
D.uh(e,h)}this.Jm=new gg([0,13,0],!1,null,!0);this.Jm.k("click",this.acB,this);this.j.appendChild(this.Jm.j);
this.mC=new gg(D.H$("tools/zoom",null,"autoscale"),!1,[12,86]);this.mC.k("click",this.acB,this);this.j.appendChild(this.mC.j)}dP.prototype=new ev;
dP.prototype.acK=function(){if(this.da.length!=0)return;for(var G=0;G<dP.data.length;G++){var h=dP.data[G],e=new dW(h.items,h.rS);
e.parent=this;this.da.push(e)}this.B()};dP.prototype.B=function(){this.Jm.B();this.mC.B();for(var G=0;
G<this.xa.length;G++)this.xa[G].textContent=e_.get(dP.data[G].name);this.acu();for(var G=0;G<this.da.length;
G++)this.da[G].B()};dP.prototype.acB=function(h){var e=new B(D.E.P,!0);if(h.target==this.Jm)e.data={e:D.U.tr,yq:"account"};
else e.data={e:D.U.Mu};this.f(e)};dP.prototype.aaA=function(h,e){this.GY=h;this.HJ=e};dP.prototype.if=function(h,e){this.HJ=h;
if(e==iM.uG){var $=h.a2C;D.LK(this.NT);for(var G=0;G<this.xa.length;G++){if($==null||$[G]==1||$[G]instanceof Array)this.NT.appendChild(this.xa[G]);
if($!=null&&$[G]instanceof Array){this.acK();this.da[G].ub($[G])}}this.j.removeChild(this.Jm.j);this.j.removeChild(this.mC.j);
if(h.Sx)this.j.appendChild(this.Jm.j);this.j.appendChild(this.mC.j)}this.acu()};dP.prototype.acu=function(h,e){var $=this.Jm,Z=12255232;
if(e3.Lr())Z=e3.xK()?43520:16755200;$.j.setAttribute("style","color:#ffffff; background-color:#"+s.jT(Z))};
dP.prototype.Aw=function(h){this.acK();var G=this.xa.indexOf(h.currentTarget),e=this.da[G];if(h.type=="mouseover"&&!D.Nn(this.da[this.a23].j))return;
if(D.Nn(e.j))return;h.a9U=!0;this.a23=G;for(var G=0;G<dP.data.length;G++)this.da[G].update(this.GY,this.HJ);
var $=h.target.getBoundingClientRect(),Z=new B(D.E.P,!0);Z.data={e:D.U.sH,yv:e,x:$.left,y:$.top+$.height+2,a0d:!0};
this.f(Z)};dP.a1c=function(h){var e=p,$=e.tm,Z=e.ai,c=e.ys,q={name:[0,5],items:[{name:[7,0],lA:[$,e.U]},{name:[7,1],lA:[$,e.ob],Q:function(P){return{Q:P!=null&&P.N!=null}}},{name:[7,2],lA:[Z,$,e.J1],Q:function(P){return{Q:P!=null&&P.N!=null}},lv:!0},{name:[7,11],tg:!0,Q:function(P){return{Q:P!=null&&P.C.length!=0&&!P.t[P.C[0]].rect.nK()}}},{name:[7,13],tg:!0,Q:function(P){return{Q:P!=null&&P.C.length!=0&&!P.t[P.C[0]].rect.nK()}},lv:!0},{name:[7,8],tg:!0},{name:[7,3],lv:!0,sub:[{name:[7,9],tg:!0,Q:function(P){return{Q:P!=null&&P.N!=null}}},{name:[19,3,0],tg:!0,Q:function(P){return{Q:P!=null&&P.N!=null}}},{name:[7,4],tg:!0,Q:function(P){return{Q:P!=null&&P.N!=null}}},{name:[7,5],tg:!0,Q:function(P){return{Q:P!=null&&P.N!=null}}},{name:[7,6],tg:!0,Q:function(P){return{Q:P!=null&&P.N!=null}},lA:"Shift+F6"}]},{name:[7,10],Q:function(P){return{Q:P!=null&&P.N!=null}},lv:!0},{name:[6,6,1],Q:function(P){return{Q:P!=null,P8:P!=null&&P.M3()}},lA:[e.j$],lv:!0},{name:"Save Selection"}],rS:[{c:D.E.Kz,g:f.LV.ss(!0)},{c:D.E.Kz,g:f.LV.ss()},{c:D.E.Kz,g:{Lw:"inverse"}},{c:D.E.P,g:{e:D.U.tr,yq:"redge"}},{c:D.E.P,g:{e:D.U.tr,yq:"magiccut"}},{c:D.E.P,g:{e:D.U.tr,yq:"crange"}},{sub:[{c:D.E.P,g:{e:D.U.tr,yq:"sel_border"}},{c:D.E.P,g:{e:D.U.tr,yq:"sel_smoothness"}},{c:D.E.P,g:{e:D.U.tr,yq:"sel_expand"}},{c:D.E.P,g:{e:D.U.tr,yq:"sel_contract"}},{c:D.E.P,g:{e:D.U.tr,yq:"sel_feather"}}]},{c:D.E.P,g:{e:D.U.kX,F:f.MG}},{c:D.E.A,F:f.$r,g:{e:"qmask"}},{c:D.E.Kz,g:{Lw:"duplicate",TJ:{classID:"null",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}}}]};
if(h){var E=q.items.length-1;q.items.splice(E,0,{name:[10,16],lA:[c,$,e.V]});q.rS.splice(E,0,{c:D.E.P,g:{e:D.U.kX,F:f.Fk}})}return q};
dP.data=function(){var h=p,e=h.tm,$=h.ai,Z=h.ys,c=function(L){return{Q:L!=null&&L.C.length!=0}},q=function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].add.SoLd!=null}},E=[],P=[],a="none maxx avrg medn minn rang stdv summ vari".split(" "),j=[[22,5,0],[24,17,2],[24,3,0],[24,7,3],[24,17,3],[12,12],"Standard Deviation","Summation","Variance"];
for(var G=0;G<a.length;G++){E.push({name:j[G]});P.push({c:D.E.A,F:f.S$,g:{e:o.G6,El:a[G]}})}return[{name:[0,0],items:[{name:[5,3],lA:[Z,e,h.sf],title:[11,7],tg:!0},{name:[1,0],lA:[e,h.No],tg:!0},{name:[1,11],tg:!0,Q:function(L,H){return{Q:L!=null}}},{name:["VAR0 VAR1",[1,0],[0,14]],lv:!0,sub:[{name:[1,5],tg:!0},{name:[11,0],tg:!0},{name:["PSD VAR0",[25,0]],tg:!0}]},{name:[1,1],lv:!0,sub:[{name:"PNG",lA:"Imgur.com",Q:function(L,H){return{Q:L!=null&&H.sB}}},{name:"JPG",lA:"Imgur.com",Q:function(L,H){return{Q:L!=null&&H.sB}}},{name:"PSD",lA:"Photopea.com",Q:function(L,H){return{Q:L!=null&&H.sB&&!L.$c}}}]},{name:"Save ...",lA:[e,h.mu],Q:function(L,H){var _=e_.get([1,2])+(L==null?"":L.fW?" (Smart Object)":L._S?" (Google Drive)":"");
return{Q:L!=null&&(L.uw!=null&&L.oJ=="psd"||L.fW!=null||L.HZ!=null&&L.HZ.Jx!=null||L._S!=null||H.Hv.save!=null),V2:_}}},{name:[1,3],Q:function(L,H){return{Q:L!=null&&!L.$c&&H.sB}}},{name:[1,8],lv:!0,sub:function(){var L=cE.Lf(0),H=[];
for(var G=0;G<L.length;G++)H.push({name:L[G],lA:"."+L[G].toLowerCase()});H.push({name:[0,14],sub:function(){var L=cE.Lf(1),H=[];
for(var G=0;G<L.length;G++)H.push({name:L[G],lA:"."+L[G].toLowerCase()});return H}()});return H}()},{name:[1,9],tg:!0,Q:function(L,H){return{Q:L!=null}}},{name:"Export Color Lookup",tg:!0,Q:function(L,H){return{Q:L!=null}},lv:!0},{name:[1,14],tg:!0,Q:function(L,H){return{Q:L!=null}},lv:!0},{name:[1,10]}],rS:[{c:D.E.P,g:{e:D.U.tr,yq:"newproject"}},{c:D.E.P,g:{e:D.U.e1}},{c:D.E.P,g:{e:D.U.e1,a6n:!0}},{sub:[{c:D.E.P,g:{e:D.U.tr,yq:"open_from_url"}},{c:D.E.P,g:{e:D.U.tr,yq:"camera"}},{c:D.E.P,g:{e:D.U.tr,yq:"templates"}}]},{sub:[{c:D.E.P,g:{e:D.U.Tm,gw:"png"}},{c:D.E.P,g:{e:D.U.Tm,gw:"jpg"}},{c:D.E.P,g:{e:D.U.Tm,gw:"psd"}}]},{c:D.E.P,g:{e:D.U.rh}},{c:D.E.P,g:{e:D.U.Cu}},{sub:function(){var L=cE.Lf(0),H=[];
for(var G=0;G<L.length;G++)H.push({c:D.E.P,g:{e:D.U.tr,yq:"saveforweb",gw:G}});H.push({sub:function(){var _=cE.Lf(0).length,L=cE.Lf(1),H=[];
for(var G=0;G<L.length;G++)H.push({c:D.E.P,g:{e:D.U.tr,yq:"saveforweb",gw:_+G}});return H}()});return H}()},{c:D.E.P,g:{e:D.U.tr,yq:"eassets"}},{c:D.E.P,g:{e:D.U.tr,yq:"exlut"}},{c:D.E.P,g:{e:D.U.tr,yq:"finfo"}},{c:D.E.P,g:{e:D.U.tr,yq:"script"}}]},{name:[0,1],items:[{name:[2,8]},{name:[2,0],lA:[$,e,h.HT]},{name:[2,1],lA:[e,h.HT],lv:!0},{name:[2,11],lA:[$,e,h.nC],lv:!0,tg:!0,Q:function(L,H){return{Q:dx.rR(L)&&H.$P!=f.Fk}}},{name:[5,0],lA:[e,h.Af]},{name:[5,1],lA:[e,h.ok]},{name:[5,7],lA:[$,e,h.ok]},{name:[5,2],lA:[e,h.hK],Q:function(L,H){return{Q:D.kO()||H.Fp!=null||H.Vf!=null||H.a9x!=null}}},{name:[2,2],Q:function(L){return{Q:L!=null&&L.N!=null}},lA:"Delete",lv:!0},{name:[2,3],Q:function(L){return{Q:L!=null}},tg:!0,lA:[$,h.Gm]},{name:[14,9],Q:function(L){return{Q:L!=null}},tg:!0,lv:!0},{name:[10,48],Q:function(L){return{Q:L!=null&&L.Jh(!1)}}},{name:[10,46],Q:function(L){return{Q:f.kC.nl(L)}}},{name:[10,16],lA:[Z,e,h.V]},{name:[2,4],sub:cW.ZU()},{name:[2,10,1]},{name:[2,10,0],lv:!0},{name:[12,87],sub:[{name:[12,62],Q:function(L){return{Q:L!=null}}},{name:[9,3],Q:function(L){return{Q:L!=null}}},{name:[10,31],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].add.vmsk!=null}}}]},{name:[12,79],tg:!0,lA:[e,h.el]},{name:[1,13],tg:!0}],rS:[{c:D.E.A,F:f.C_,g:{e:"h_undoredo"}},{c:D.E.A,F:f.C_,g:{e:"h_stepfwd"}},{c:D.E.A,F:f.C_,g:{e:"h_stepbck"}},{c:D.E.P,g:{e:D.U.tr,yq:"afw_fade"}},{c:D.E.P,g:{e:D.U.Xe}},{c:D.E.P,g:{e:D.U.$M}},{c:D.E.P,g:{e:D.U.$M,Rb:!0}},{c:D.E.P,g:{e:D.U.d$}},{c:D.E.Kz,g:{Lw:"delete"}},{c:D.E.P,g:{e:D.U.tr,yq:"fill"}},{c:D.E.P,g:{e:D.U.tr,yq:"stroke"}},{c:D.E.P,g:{e:D.U.kX,F:f.or}},{c:D.E.A,F:f.HP,g:{e:"start",S4:"rigidTransform"}},{c:D.E.P,g:{e:D.U.kX,F:f.Fk}},{sub:cW.yX()},{c:D.E.Kz,g:{Lw:"align",TJ:{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}}}},{c:D.E.A,F:f.S$,g:{e:o.f_}},{sub:[{c:D.E.P,g:{e:D.U.B7,Av:0}},{c:D.E.P,g:{e:D.U.B7,Av:1}},{c:D.E.P,g:{e:D.U.B7,Av:2}}]},{c:D.E.P,g:{e:D.U.tr,yq:"preferences"}},{c:D.E.P,g:{e:D.U.tr,yq:"locstor"}}]},{name:[0,2],items:[{name:[3],sub:function(){var L=[];
for(var H in es.names){L.push({name:es.names[H],tg:w[H]!=null,lA:p.Js(es.keys[H]),lv:es.Dk.indexOf(H)!=-1});
if(H=="selc"){L.push({name:["VAR0/VAR1",[19,6,0],[19,6,2]],tg:!0,lv:!0});L.push({name:[19,7,0],lA:[e,$,h.oK],Q:function(H){return{Q:H&&H.C.length!=0&&H.t[H.C[0]].add.SoLd==null}}})}}return L}()},{name:[4,16,0],Q:function(L){return{Q:L!=null&&L.Jh(!1)}}},{name:[4,16,1],Q:function(L){return{Q:L!=null&&L.Jh(!1)}}},{name:[4,16,2],Q:function(L){return{Q:L!=null&&L.Jh(!1)}},lv:!0},{name:[11,11],Q:function(L){return{Q:L!=null&&L.Jh(!1)}},lv:!0},{name:[11,3],tg:!0,lA:[Z,e,h.ok]},{name:[11,10],tg:!0,lA:[Z,e,h.J1]},{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],Q:function(L){return{Q:L!=null&&L.N!=null}}},{name:[11,12,0],Q:function(L){return{Q:L!=null}},lA:[e,h.u_]},{name:[11,12,2],Q:function(L){return{Q:L!=null}},lv:!0},{name:[2,12],Q:function(L){return{Q:L!=null&&L.Jh(!1)}},tg:!0}],rS:[{sub:function(){var L=[];
for(var H in es.names){L.push({c:D.E.A,F:f.Qi,g:{e:"start",As:H}});if(H=="selc"){L.push({c:D.E.A,F:f.HP,g:{e:"start",S4:"adaptCorrect"}});
L.push({c:D.E.Kz,g:{Lw:"desaturate"}})}}return L}()},{c:D.E.Kz,g:{Lw:"levels",TJ:{classID:"Lvls",Auto:{t:"bool",v:!0}}}},{c:D.E.Kz,g:{Lw:"levels",TJ:{classID:"Lvls",AuCo:{t:"bool",v:!0}}}},{c:D.E.Kz,g:{Lw:"levels",TJ:{classID:"Lvls",autoBlackWhite:{t:"bool",v:!0},autoNeutrals:{t:"bool",v:!0}}}},{c:D.E.P,g:{e:D.U.tr,yq:"vbitmap"}},{c:D.E.P,g:{e:D.U.tr,yq:"csize"}},{c:D.E.P,g:{e:D.U.tr,yq:"isize"}},{sub:[{c:D.E.Kz,g:f.o.hP(!0,90)},{c:D.E.Kz,g:f.o.hP(!0,-90)},{c:D.E.Kz,g:f.o.hP(!0,-180)},{c:D.E.Kz,g:f.o.hP(!1,"Hrzn")},{c:D.E.Kz,g:f.o.hP(!1,"Vrtc")}]},{c:D.E.A,F:f.ZT,g:{e:"cropbysel",a3G:0}},{c:D.E.Kz,g:f.u4.rB(0)},{c:D.E.Kz,g:{Lw:"revealAll",TJ:{classID:"RvlA"}}},{c:D.E.A,F:f.Qi,g:{e:"start",As:"aply"}}]},{name:[0,3],items:[{name:[5,3],sub:[{name:[0,3]},{name:[0,4]},{name:[6,49],lA:[e,h.eC]}]},{name:[6,0],Q:c,lA:[e,h.eC]},{name:[11,4],Q:c},{name:[5,4],Q:c,lv:!0},{name:[11,6],lv:!0,Q:c,sub:bY.z3(!0)},{name:[6,48,1],sub:[{name:[6,48,0,0]},{name:[6,48,0,1]},{name:[6,48,0,2]}]},{name:[6,1],lv:!0,sub:bY.Ph()},{name:[6,2],sub:[{name:[6,4],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].kV()==null}}},{name:[6,5,0],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].kV()==null}}},{name:[6,5,1],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].kV()==null&&L.N!=null}}},{name:[6,5,2],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].kV()==null&&L.N!=null}}},{name:[6,5,3],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].kV()==null}},lv:!0},{name:[5,4],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].kV()!=null}}},{name:[5,8],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].kV()!=null&&L.Jh(!1,!0)}}},{name:["VAR0/VAR1",[5,5],[5,6]],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].kV()!=null}}}]},{name:[6,3],sub:[{name:[6,4],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].add.vmsk==null}}},{name:[6,5,0],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].add.vmsk==null}}},{name:"Current Path",Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].add.vmsk==null}},lv:!0},{name:[5,4],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].add.vmsk!=null}}},{name:["VAR0/VAR1",[5,5],[5,6]],Q:function(L){return{Q:L!=null&&L.C.length!=0&&L.t[L.C[0]].add.vmsk!=null}}}]},{name:[6,6,0],lA:[Z,e,h.dP],lv:!0,Q:function(L){return{P8:L!=null&&L.C.length!=0&&L.t[L.C[0]]._U,Q:L!=null&&L.Lk(L.C[0])}}},{name:"Smart Object",lv:!0,sub:[{name:[6,7]},{name:[6,36,4],Q:q,sub:E},{name:[1,0],Q:q,lv:!0},{name:"Turn into JPG"}]},{name:[6,8],Q:function(L){if(L==null||L.C.length==0)return{Q:!1};
var H=L.t[L.C[0]];if(H.add.TySh||H.add.SoLd||H.add.SoCo||H.add.GdFl||H.add.PtFl)return{Q:!0};return{Q:!1}}},{name:[6,34],lv:!0,Q:function(L){if(L==null||L.C.length==0)return{Q:!1};
var H=L.t[L.C[0]];return{Q:H.add.lmfx!=null&&!H.vG()}}},{name:[6,9],lv:!0,lA:[e,h.dP]},{name:[6,55],lv:!0,sub:[{name:[6,56,0],lA:[$,e,h.QI]},{name:[6,56,1],lA:[e,h.QI]},{name:[6,56,2],lA:[e,h.IA]},{name:[6,56,3],lA:[$,e,h.IA]}]},{name:[6,58],sub:[{name:["Make Frames"]},{name:[18,5]}]},{name:[6,10],Q:function(L){return{Q:L!=null&&L.C.length==1&&L.C[0]!=0&&!L.t[L.C[0]].vG()}},lA:[e,h.E]},{name:[6,12,0],Q:function(L){return{Q:L!=null&&L.C.length!=0&&(L.C.length>1||L.t[L.C[0]].vG())}}},{name:[6,12,1]}],rS:[{sub:[{c:D.E.A,F:f.S$,g:{e:o.kd}},{c:D.E.A,F:f.S$,g:{e:o.u0}},{c:D.E.A,F:f.S$,g:{e:o.fg}}]},{c:D.E.A,F:f.S$,g:{e:o.pA}},{c:D.E.P,g:{e:D.U.tr,yq:"duplinto"}},{c:D.E.A,F:f.S$,g:{e:o.Ml}},{sub:bY.mX(!0)},{sub:[{c:D.E.A,F:f.lO,g:{e:"newfill",wx:0}},{c:D.E.Kz,g:f.vA.GC(1)},{c:D.E.Kz,g:f.vA.GC(2)}]},{sub:bY.EF()},{sub:[{c:D.E.A,F:f.S$,g:{e:o.KN,bM:"RvlA"}},{c:D.E.A,F:f.S$,g:{e:o.KN,bM:"HdAl"}},{c:D.E.A,F:f.S$,g:{e:o.KN,bM:"RvlS"}},{c:D.E.A,F:f.S$,g:{e:o.KN,bM:"HdSl"}},{c:D.E.A,F:f.S$,g:{e:o.KN,bM:"Trns"}},{c:D.E.A,F:f.S$,g:{e:o.Y_}},{c:D.E.A,F:f.S$,g:{e:o.aM}},{c:D.E.A,F:f.S$,g:{e:o.HW}}]},{sub:[{c:D.E.A,F:f.S$,g:{e:o.eZ,a28:!1}},{c:D.E.A,F:f.S$,g:{e:o.eZ,a28:!0}},{c:D.E.A,F:f.S$,g:{e:o.eZ,ams:!0}},{c:D.E.A,F:f.S$,g:{e:o.iq}},{c:D.E.A,F:f.S$,g:{e:o.ps}}]},{c:D.E.A,F:f.S$,g:{e:o.C9}},{sub:[{c:D.E.Kz,g:{Lw:"newPlacedLayer"}},{sub:P},{c:D.E.Kz,g:{Lw:"placedLayerEditContents",TJ:{classID:"placedLayerEditContents"}}},{c:D.E.A,F:f.S$,g:{e:o.iG}}]},{c:D.E.Kz,g:{Lw:"rasterizeLayer",TJ:{classID:"rasterizeLayer",null:bw.NQ("Lyr",!0)}}},{c:D.E.A,F:f.S$,g:{e:o.Wz}},{c:D.E.A,F:f.S$,g:{e:o.VT}},{sub:[{c:D.E.A,F:f.S$,g:{e:o.iK,oD:0}},{c:D.E.A,F:f.S$,g:{e:o.iK,oD:1}},{c:D.E.A,F:f.S$,g:{e:o.iK,oD:2}},{c:D.E.A,F:f.S$,g:{e:o.iK,oD:3}}]},{sub:[{c:D.E.A,F:f.S$,g:{e:o.tG,oD:"makeframes"}},{c:D.E.A,F:f.S$,g:{e:o.tG,oD:"merge"}}]},{c:D.E.A,F:f.S$,g:{e:o.lb}},{c:D.E.A,F:f.S$,g:{e:o.U1}},{c:D.E.Kz,g:{Lw:"flattenImage"}}]},dP.a1c(!1),function(){var L={name:[0,6],items:[{name:[24,18,4],lA:[Z,e,h.nC],lv:!0}],rS:[{c:D.E.A,F:f.HP,g:{e:"applylast"}}]};
for(var G=0;G<dA.wX.length;G++){var H=dA.wX[G];if(H.mQ!=null){L.items.push({name:dA.names[H.mQ],tg:!0,lv:H.lv});
L.rS.push({c:D.E.A,F:f.HP,g:{e:"start",S4:H.mQ}});continue}var _={name:H.yK,sub:[]};L.items.push(_);
var J={sub:[]};L.rS.push(J);for(var S=0;S<H.Ad.length;S++){var N={name:dA.names[H.Ad[S]],tg:dA.X3(H.Ad[S])!=null};
_.sub.push(N);var Y={c:D.E.A,F:f.HP,g:{e:"start",S4:H.Ad[S]}};J.sub.push(Y)}}return L}(),{name:[0,7],items:[{name:[8,0],lA:[e,h.MY]},{name:[8,1],lA:[e,h.Lj]},{name:[20,3],lA:[e,h.ik]},{name:[20,2],lA:[e,h.s7],lv:!0},{name:"Extras",lA:[e,h.Am],Q:function(L,H){return{P8:H.y7}}},{name:[8,12],lv:!0,sub:[{name:[17,2],Q:function(L,H){return{Q:H.y7,P8:H.cz.L6}}},{name:[8,9],Q:function(L,H){return{Q:H.y7,P8:H.cz.DZ}}},{name:[8,2],Q:function(L,H){return{Q:H.y7,P8:H.cz._D}},lA:[e,h.Ih]},{name:[8,4],Q:function(L,H){return{Q:H.y7,P8:H.cz.Ui}},lA:[e,h.N4]},{name:[8,8],Q:function(L,H){return{Q:H.y7,P8:H.cz.vH}}},{name:[8,11,0],Q:function(L,H){return{Q:H.y7,P8:H.cz.E1}}}]},{name:[8,3],Q:function(L,H){return{P8:H.ev}},lA:[e,h.WT],lv:!0},{name:[8,5],Q:function(L,H){return{P8:H.uR}}},{name:[8,6],lv:!0,sub:[{name:[8,2],Q:function(L,H){return{P8:H.dJ[0]}}},{name:[8,4],Q:function(L,H){return{P8:H.dJ[1]}}},{name:[9,1],Q:function(L,H){return{P8:H.dJ[2]}}},{name:[8,11,0],Q:function(L,H){return{P8:H.dJ[3]}}},{name:[8,7],Q:function(L,H){return{P8:H.dJ[4]}}}]},{name:[11,15,0],Q:function(L,H){return{Q:L!=null}}},{name:[11,14],Q:function(L,H){return{Q:L!=null}},tg:!0},{name:[11,15,1],Q:function(L,H){return{Q:L!=null&&L.C.length!=0}}}],rS:[{c:D.E.A,F:f.dc,g:{e:"zoom",L1:!0}},{c:D.E.A,F:f.dc,g:{e:"zoom",L1:!1}},{c:D.E.A,F:f.dc,g:{e:"adapt",G:"fitscr"}},{c:D.E.A,F:f.dc,g:{e:"adapt",G:"pixel"}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.GN}},{sub:[{c:D.E.P,g:{e:D.U.Ov,Av:iM.GZ}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.ly}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.kU}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.qb}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.QC}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.FY}}]},{c:D.E.P,g:{e:D.U.Ov,Av:iM.Z0}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.mY}},{sub:[{c:D.E.P,g:{e:D.U.Ov,Av:iM.eT,cO:0}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.eT,cO:1}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.eT,cO:2}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.eT,cO:3}},{c:D.E.P,g:{e:D.U.Ov,Av:iM.eT,cO:4}}]},{c:D.E.A,F:f.OA,g:{e:"gids",LS:[[],[]]}},{c:D.E.P,g:{e:D.U.tr,yq:"addguides"}},{c:D.E.A,F:f.OA,g:{e:"gidsFromLayer"}}]},function(){var L={name:[0,8],items:[{name:[0,14],lv:!0,sub:[]}],rS:[{sub:[]}]};
for(var G=0;G<gT.g$.length;G++){var H=gT.g$[G];(H.RE?L.items[0].sub:L.items).push({name:H.yv.name});
(H.RE?L.rS[0].sub:L.rS).push({c:D.E.P,g:{e:D.U.$Z,yq:H.yv.WS}})}return L}(),function(){var L={name:[0,14],items:[],rS:[]},H={name:[0,9],sub:[]};
L.items.push(H);var _={sub:[]};L.rS.push(_);var J=e_.a8k();for(var G=0;G<J.length;G++){var S=J[G],N=S.code,Y=e_.wE(N);
H.sub.push({name:S.name,lA:N,Q:function(U,g){return{P8:this.lA==e_.od()}}});_.sub.push({c:D.E.P,g:{e:D.U.Ov,Av:iM.jS,lang:Y}})}H.sub.push({name:[0,12]});
_.sub.push({c:D.E.P,g:{e:D.U.yI,link:"https://www.photopea.com/translate/"}});var H={name:[0,15],sub:[]};
L.items.push(H);var _={sub:[]};L.rS.push(_);for(var G=0;G<iG.zO.length;G++){H.sub.push({name:iG.zO[G].name,Q:function(U,g){return{P8:this.name==iG.zO[g.SW].name}}});
_.sub.push({c:D.E.P,g:{e:D.U.Ov,Av:iM.KK,SW:G}})}L.items.push({name:[0,17,6],Q:function(U,g){return{Q:g.Jg!=null}}});
L.rS.push({c:D.E.P,g:{e:D.U.wH}});L.items.push({name:[11,13]});L.rS.push({c:D.E.P,g:{e:D.U.tr,yq:"shortcuts"}});
L.items.push({name:[0,16],Q:function(U){return{P8:V.Yv,Q:V.It}}});L.rS.push({c:D.E.P,g:{e:D.U.JK}});
return L}()]}();function d5(){ev.call(this);this.j=D.w("div","");this.uA=0;this.N5=0;this.D0=null;this._6=D.w("div","");
this._6.setAttribute("style","width:200em; height:100em; position:absolute;");this.js=[];this.Lz=[];
this.BM={}}d5.prototype=new ev;d5.prototype.b5=function(h){var e=Date.now(),$=[];if(h=="-")$=[new cv,new bR,new hj,new dl,new eE,new dk,new f3,new ey,new ci,new gD,new fg,new aR,new eC,new h1,new aT,new bY,new fY,new eV,new bU,new ct,new dI,new au,new fi,new iw,new fn,new aM,new hA(0),new hA(1),new iq,new dX,new dU,new by,new fw,new eP,new am("border",[7,9],"px"),new am("smoothness",[19,3,0],"px"),new am("expand",[7,4],"px"),new am("contract",[7,5],"px"),new am("feather",[7,6],"px"),new a9(0,"namewindow",[12,48]),new a9(1,"cornerradius",[12,94,0],"px",!0),new a9(1,"scaleeffects","Scale Effects","%",!0),new a9(1,"doczoom","Zoom","%",!0)];
else $=[new dx(h.slice(4))];this.aa5($);this.BM[h]=!0};d5.prototype.aa5=function(h){var e=this.D0;for(var G=0;
G<h.length;G++){var $=h[G];$.parent=this;this.Lz.push($);this.ln($);$.B();if(e)$.if(e,iM.uG);$.k(D.E.iF,this.IR,this)}};
d5.prototype.Sy=function(h,e){this.uA=h;this.N5=e;for(var G=0;G<this.Lz.length;G++)this.ln(this.Lz[G])};
d5.prototype.B=function(){for(var G=0;G<this.Lz.length;G++)this.Lz[G].B()};d5.prototype.ic=function(){return this.js.length==0?null:this.js[this.js.length-1]};
d5.prototype.Mm=function(){for(var G=0;G<this.js.length;G++)if(this.js[G].Mm())return!0;return!1};d5.prototype.aa7=function(h,e,$,Z,c){var q=h.startsWith("afw_"),E=null;
if(!q&&!this.BM["-"])this.b5("-");if(q&&!this.BM[h])this.b5(h);if(typeof h=="object"){E=h;if(!E.UA(D.E.iF,this.IR))E.k(D.E.iF,this.IR,this);
E.parent=this}else for(var G=0;G<this.Lz.length;G++)if(this.Lz[G].id==h)E=this.Lz[G];if(this.Mm()&&E.Mm()){alert("Finish the current action first");
return}if(!E.oc(e))return;if(this.js.indexOf(E)!=-1){if(h=="colorpicker")E.uq(e,$,Z,c);return}var P=this.js.length-1;
if(P>=0)D.so(this.js[P].j,"wdisabled");this.j.appendChild(E.j);this.js.push(E);this.ln(E);E.uq(e,$,Z,c)};
d5.prototype.ln=function(h){var e=this.uA,$=this.N5,Z=h.uX(e,$),c;if(Z!=null){c=Z}else{Z=new eu(0,0);
c=h.ajo();if(c==null){var q=this.js.indexOf(h)+1;if(e<450||$<450)c=new eu(0,0);else c=new eu(q*150,q*150)}}h.j.style.left=c.x+"px";
h.j.style.top=this.j.offsetTop+c.y+"px";h.Sy(this.uA-Z.x*2,this.N5-Z.y*2-34)};d5.prototype.if=function(h,e){this.D0=h;
for(var G=0;G<this.Lz.length;G++)this.Lz[G].if(h,e)};d5.prototype.IR=function(h){var e=this.js.pop();
this.j.removeChild(e.j);var $=this.js.length-1;if($>=0)D.ma(this.js[$].j,"wdisabled");if(this._6.parentNode==this.j)this.j.removeChild(this._6)};
window.onload=function(){var h=new ft;document.body.appendChild(h.j)}}())