(function(){function dc(){this.tO={};this.ZN={}}dc._G=[];dc.WQ=function($){var o=dc._G;if(o.length!=0){var T=new x(H.E.Oz); for(var f=0;f0};dc.prototype.addEventListener=function($,o){this.B($,o,null)}; dc.prototype.B=function($,o,T){if(this.tO[$]==null){this.tO[$]=[];this.ZN[$]=[]}this.tO[$].push(o);this.ZN[$].push(T); if($==H.E.Oz){var s=dc._G;if(s.indexOf(this)==-1)s.push(this)}};dc.prototype.removeEventListener=function($,o){var T=this.tO[$]; if(T==null)return;var s=T.indexOf(o);if(s<0)return;var E=this.ZN[$];T.splice(s,1);E.splice(s,1);if($==H.E.Oz&&T.length==0){var e=dc._G; e.splice(e.indexOf(this),1)}};dc.prototype.J=function($){$.currentTarget=this;if($.target==null)$.target=this; var o=this.tO[$.type];if(o==null)return;var T=this.ZN[$.type];for(var f=0;f=0; if($==null)return"";var T=[];for(var f=0;f<$.length;f++){var s=$[f].Q0?$[f].Q0:$[f];if(o&&$[f].tw)s=$[f].tw; T.push(s)}if(o||T.length==1)return T.join(" + ");else{var E=T.pop();return T.join("+")+" + "+E}};dN.MS="ZoomToggle BrightnessDown BrightnessUp AudioVolumeMute AudioVolumeDown AudioVolumeUp LaunchApplication1 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Enter Shift Escape KeyV".split(" "); dN.jd=function($){var o=$.code,T=dN.pp;if(T&&T.get(o)){var s={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},E=T.get(o).toLowerCase(),e=E.charCodeAt(0); if(97<=e&&e<=122){var n="Key"+E.toUpperCase();o=n}else if(s[E])o=s[E];return o}var s={"+":"NumpadAdd","-":"NumpadSubtract",".":"Period"},E=$.key.toLowerCase(),e=E.charCodeAt(0); if(E.length==1){if(97<=e&&e<=122){var n="Key"+E.toUpperCase();o=n}else if(s[E])o=s[E]}if(E=="control"&&o!="")o="ControlLeft"; return o};dN.ao0={nm:"No Touch",AF:["NoTouch"]};dN.FT={Q0:"Enter",AF:["Enter","NumpadEnter"]};dN.Et={Q0:"Shift",tw:"\u21E7",AF:["ShiftLeft","ShiftRight"]}; dN.E1={Q0:"Meta",AF:["MetaLeft","MetaRight","OSLeft","OSRight"]};dN.I6={Q0:"Ctrl",tw:"\u2318",AF:"ControlLeft ControlRight MetaLeft MetaRight OSLeft OSRight".split(" ")}; dN.BJ={Q0:"Alt",tw:"\u2325",AF:["AltLeft","AltRight"]};dN.aiP={Q0:"CtrlOrAlt",AF:dN.I6.AF.concat(dN.BJ.AF)}; dN.R5={Q0:"Escape",AF:["Escape"]};dN.Gv={Q0:"Space",AF:["Space"]};dN.E0={Q0:"Tab",AF:["Tab"]};dN.aev={Q0:"Home",AF:["Home"]}; dN.ajc={Q0:"End",AF:["End"]};dN.jo={Q0:"Left",AF:["ArrowLeft"]};dN.du={Q0:"Up",AF:["ArrowUp"]};dN.$D={Q0:"Right",AF:["ArrowRight"]}; dN.ZQ={Q0:"Down",AF:["ArrowDown"]};dN.AZ={Q0:"+",AF:["NumpadAdd","Equal"]};dN.Dd={Q0:"-",AF:["NumpadSubtract","Minus","Slash"]}; dN.VQ={Q0:";",AF:["Semicolon"]};dN.acv={Q0:"Dead",AF:["Dead"]};dN.an$={Q0:"=",AF:["Equal"]};dN.Ln={Q0:"Backspace",AF:["Backspace"]}; dN.sV={Q0:"Delete",AF:["Delete"]};dN.a8Z={Q0:"Backslash",AF:["Backslash","IntlBackslash"]};dN.a3r={Q0:"Backquote",AF:["Backquote"]}; dN.Q7={Q0:"[",AF:["BracketLeft"]};dN.tQ={Q0:"]",AF:["BracketRight"]};dN.ej={Q0:".",AF:["Period"]};dN.a8o={Q0:",",AF:["Comma"]}; dN.eQ={Q0:"'",AF:["Quote"]};dN.V={Q0:"A",AF:["KeyA"]};dN.Ql={Q0:"B",AF:["KeyB"]};dN.Wd={Q0:"C",AF:["KeyC"]}; dN.XQ={Q0:"D",AF:["KeyD"]};dN.E={Q0:"E",AF:["KeyE"]};dN.AE={Q0:"F",AF:["KeyF"]};dN.Vr={Q0:"G",AF:["KeyG"]}; dN.O6={Q0:"H",AF:["KeyH"]};dN.xD={Q0:"I",AF:["KeyI"]};dN.Kb={Q0:"J",AF:["KeyJ"]};dN.BL={Q0:"K",AF:["KeyK"]}; dN.vA={Q0:"L",AF:["KeyL"]};dN.nb={Q0:"M",AF:["KeyM"]};dN.ve={Q0:"N",AF:["KeyN"]};dN.q7={Q0:"O",AF:["KeyO"]}; dN.AW={Q0:"P",AF:["KeyP"]};dN.Q$={Q0:"Q",AF:["KeyQ"]};dN._4={Q0:"R",AF:["KeyR"]};dN.I2={Q0:"S",AF:["KeyS"]}; dN.B4={Q0:"T",AF:["KeyT"]};dN.D5={Q0:"U",AF:["KeyU"]};dN.z1={Q0:"V",AF:["KeyV"]};dN.agV={Q0:"W",AF:["KeyW"]}; dN.Ib={Q0:"X",AF:["KeyX"]};dN.a1q={Q0:"Y",AF:["KeyY"]};dN.Oa={Q0:"Z",AF:["KeyZ"]};dN.MN={Q0:"0",AF:["Numpad0","Digit0"]}; dN.yL={Q0:"1",AF:["Numpad1","Digit1"]};dN.aaM={Q0:"2",AF:["Numpad2","Digit2"]};dN.a7Z={Q0:"3",AF:["Numpad3","Digit3"]}; dN.aa4={Q0:"4",AF:["Numpad4","Digit4"]};dN.a0I={Q0:"5",AF:["Numpad5","Digit5"]};dN.a51={Q0:"6",AF:["Numpad6","Digit6"]}; dN.an4={Q0:"7",AF:["Numpad7","Digit7"]};dN.ace={Q0:"8",AF:["Numpad8","Digit8"]};dN.a02={Q0:"9",AF:["Numpad9","Digit9"]}; dN.__=[dN.MN,dN.yL,dN.aaM,dN.a7Z,dN.aa4,dN.a0I,dN.a51,dN.an4,dN.ace,dN.a02];dN.a6S={Q0:"F1",AF:["F1"]}; dN.abB={Q0:"F2",AF:["F2"]};dN.afX={Q0:"F3",AF:["F3"]};dN.a5o={Q0:"FF",AF:["F4"]};dN.mf={Q0:"F5",AF:["F5"]}; dN.ar0={Q0:"F6",AF:["F6"]};dN.a9q={Q0:"F7",AF:["F7"]};dN.a9d={Q0:"F8",AF:["F8"]};dN.ap4={Q0:"F9",AF:["F9"]}; dN.a9e={Q0:"F10",AF:["F10"]};dN.aiH={Q0:"F11",AF:["F11"]};dN.alW={Q0:"F12",AF:["F12"]};function hx(){dc.call(this); this.j4={};this.lo={};this.aa1=0;this.akN={};this.Mh=[];this.anF=0;hx.CJ=this}hx.prototype=new dc;hx.a6P=function($,o){var f=0,T=hx.lg; while(f>>f&1)==1)break;f++}if(o==0||T[f][1]==""){if((o&15)!=0&&hx.NV($,[33,126])>.7)f=0; else if(o==0)f=0;else{f=0}}return T[f][1]};hx.kC=120;hx.q0=20;hx.cols=16;hx.yX=function($){var o=$.name.postScriptName; if(o==null)return null;return o.replace(/ /g,"-")};hx.qV=function($){var o=$.name,T=o.typoFamilyName?o.typoFamilyName:o.fontFamily,s=o.typoSubfamilyName?o.typoSubfamilyName:o.fontSubfamily,E=hx.al4,e=T.toLowerCase(); for(var f=0;f128)E=this.Dl(o,E);if(this.akN[$]==null){this.akN[$]=1; var b=Date.now()-this.aa1>2e3?2e3:0;this.aa1=Date.now();alert($+" \u27A1 "+E,b)}return this.sU(E,o)}this.lo[$]="a"; var a=new x(H.E.Q,!0);a.data={e:H.V.ZP,M9:{url:"rsrc/fonts/"+T}};this.J(a)};hx.prototype.Dl=function($,o,T){var s=this.j4[o]; if(s&&Typr.U.codeToGlyph(s,$)!=0)return o;var E=this.ts(),e=hx.a27($),n=e[0];if(E[o]&&(E[o][3]&n)==0){if(T)for(var f=0; fA?1:0}for(var f=0;fo[2])return 1;return 0};hx.a3j=function($,o){if($[5]=="fs/"+$[2]+".otf")$[5]=""; else if($[5]=="gf/"+$[2]+".otf")$[5]="a";if($[2]==($[0]+"-"+$[1]).replace(/\s/g,"")){$[2]=""}else if($[2]==$[0].replace(/\s/g,"")){$[2]="a"}if(o){if($[0]==o[0])$[0]=""; if($[1]==o[1])$[1]="";if($[3]==o[3])$[3]="";if($[4]==o[4])$[4]=""}return $.join(",")};hx.aj4=function($,o){$=$.split(","); if($[0]=="")$[0]=o[0];if($[1]=="")$[1]=o[1];if($[3]=="")$[3]=o[3];else $[3]=parseInt($[3]);if($[4]=="")$[4]=o[4]; else $[4]=parseInt($[4]);if($[2]=="")$[2]=($[0]+"-"+$[1]).replace(/\s/g,"");else if($[2]=="a")$[2]=$[0].replace(/\s/g,""); if($[5]=="")$[5]="fs/"+$[2]+".otf";else if($[5]=="a")$[5]="gf/"+$[2]+".otf";return $};hx.a4F={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"}; hx.prototype.ts=function(){if(FNTS.map==null){var $=FNTS.list,o=[];for(var f=0;f<$.length;f++){o[f]=hx.aj4($[f],o[f-1]); o[f].II=f;this.mr(o[f])}}return FNTS.map};hx.prototype.mr=function($){var o=$[0],T=$[1],s=$[5];if(FNTS.map==null)FNTS.map={}; FNTS.map[$[2]]=$;if(FNTS.mapFS==null)FNTS.mapFS={};var E=FNTS.mapFS[o+"---"+T];FNTS.mapFS[o+"---"+T]=$; if(FNTS.mapSub==null)FNTS.mapSub={};var e=FNTS.mapSub[o];if(e==null)e=FNTS.mapSub[o]=[];var n=e.indexOf(T); if(n==-1)e.push(T);else e[n]=T};hx.ar2=function($,o){return hx.h6($)-hx.h6(o)};hx.h6=function($){$=$.toLowerCase(); var o=hx.a8K($)+(hx.aex($)<<1);if($.indexOf("cond")==-1)o+=1<<25;return o};hx.a8K=function($){return $.indexOf("italic")!=-1||$.indexOf("oblique")!=-1?1:0}; hx.al4="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(","); hx.a7j=["two","four","eight","hair","thin","ultralight","extralight","light",["regular","roman","book"],"medium",["semibold","demibold"],"bold","extrabold","heavy","ultra","black","x black"]; hx.aex=function($){var o=hx.a7j,T=-1,s=-1;for(var f=0;fo()/20};bX.Oo=function(){return bX.alF()!=null}; bX.V7=function(){return bX.TX};bX.jq=function($){window.addEventListener("message",bX.ao7,!1);setInterval(bX.xm,5e3); if(bX.Oo()){bX.np=$;bX.rQ()}else setTimeout($,1)};bX.xm=function(){if(bX.Oo()&&bX.yM){bX.H3(bX.x1()); bX.yM=!1}};bX.G6=function($){bX.np=$;var o="https://www.photopea.com/papi/login.php?redirect="+encodeURIComponent(window.location.href); bX.nj=window.open(o,"_blank")};bX.amm=function(){localStorage.removeItem(bX.JC+"_uid");localStorage.removeItem(bX.JC+"_provider"); localStorage.removeItem(bX.JC+"_token");bX.TX=null};bX.ao7=function($){if($.data instanceof ArrayBuffer||$.data instanceof Object)return; if($.data.charAt(0)!="{")return;var o=JSON.parse($.data);if(o.prms==null)return;var T=o.prms.split(","); if(T[0]=="papi_logged_in"){localStorage[bX.JC+"_uid"]=T[1];bX.q8(T[2]);localStorage[bX.JC+"_provider"]=T[3]; bX.nj.close();bX.rQ()}if(T[0]=="payment_complete"){bX.vj.close();bX.rQ()}};bX.alF=function(){var $=localStorage[bX.JC+"_token"]; if($!=null&&Date.now()*.001+10e?1:-1;if(A)return-1;if(u)return 1;return E>e?1:-1},o=LNG.langs.slice(0);o.sort($); return o};aX.a4A=function($){aX.bX=$};aX.Qe=function($){for(var f=0;f")==-1)aX.pW[JSON.stringify($[f])]=$[f+1]}; aX.A4=function($){var o=-1,T=LNG.langs;for(var f=0;f&\x7F"); if(H.$F[b]!=!0){A=1}var a=o[s]($("u}-"));a[u]($("zx"),Y);a[u]($("$(0&\""),$("(}{.%ZXVY5){A=4}T[n](a)}if(aR.iS)A=5; if(aR.Vw)A=6;return A};aR.ajT=function($){var o=H.Xe("y),+1ZRU:.787=mlITWRZVgphaifg}u~!C{+,P5)2328eDPnDJ\\NhYdgbjf2q}"),T={method:"HEAD",mode:"no-cors"},s=new Request(o,T); fetch(s).then(function(E){return E}).then(function(E){$(!1)}).catch(function(E){aR.iS=!0;console.clear(); $(!0)})};aR.a0U=function(){var $=H._K("UU[YW#ECC8"),o=H._K("VQ](RUK>@B8p71*03m}x'"),T=H._K("WQRMKT"),s=this.a8W[$][o](); if(s[T]<4){aR.Vw=!0;this.a80(!0)}};aR.aa9=function(){var $=H.$F._cwY,o=H.$F[H.iq("$y+n&-(5>@")],T="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\\",s=String.fromCharCode(32); $(H._M(T)+s+s+aR.wy());if(!bX.FJ())o(aR.aa9,Math.round(Math.PI*1e4))};aR.BV=function($){var o=H.iq,T=H.$F[o("u#z/*%1:")],s=o("t&|{1%h2.94@I"),E=o("$y+[145/+AC7"),e=o("%y/.`/1:.:C"),n=T[s]($[0]); for(var A in $[1]){if(A=="txt")n[e]=$[1][A];else n[E](A,$[1][A])}return n};aR.aop=function($,o,T,s,E){H.Ft(T); var e=H.iq,n=e("r$'\x7F+$f.283"),A=e("$y+[145/+AC7"),u=e("rx{_3%1:u5BF:F@P"),Y=e("#y'&~#("),b=e("$(0&\""),a=e("$&z"),w=e("r'0( "),X=e("%y/.`/1:.:C"),N=e("u}-"),z=H.Xe("zz*{+&"),i=H.$F[e("u#z/*%1:")],k=e("t&|{1%h2.94@I"),Q=e("$w)#-4"),O=H.Xe("z#+ 05e,0300*300){var p=i[e("xy+_)%0+7@BtN,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;T1P@Id%jeZb[it.juxs{w*y#>>AGFKkSVQFNGU`yVad_gcuen8p}w6V<7,4-;F_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:")];for(var f=0;f=3*270+30)o=3;if($>=4*270+30)o=4;return o};aR.afd=function(){var $=H.iq,o=$("r$'\x7F+$f.283"),T=$("$y+[145/+AC7"),s=$("rx{_3%1:u5BF:F@P"),E=$("#y'&~#("),e=$("$(0&\""),n=$("$&z"),A=$("r'0( "),u=$("%y/.`/1:.:C"),Y=$("u}-"),b=H.Xe("zz*{+&"),a=H.$F[$("u#z/*%1:")],w=$("t&|{1%h2.94@I"),X=$("$w)#-4"),N=H.Xe("z#+ 05e,0B:FPLJGCku+e[mqqp%nlz%yRNiTxA=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")),k=H.$F,Q=-1,O=k[H.Xe("f#!}f")],c=H.Xe("xy'"),B=H.Xe("TU"),G=H.Xe("Vi"),m=0; if(O&&O[c]){var l=O[c];if(l==G)Q=0;if(l==B)Q=1}var v=Q==-1?null:aR.BV(i[Q]),p=this.RT,P=this.af7,h=this.head,j=this.cQ,C=H.Xe("~u*\"'/P)9ADBCrlnR]"),V=[.1,.5,.4],d=Math.random(); while(V[m]rzwc$!$V>CP/l{m|ww(.#'7SZYD7IIILLTPw]a!e\\phmurryz~.HON3*>6;CODBULryxdbff]qinv7>=!|!2.%916>^edSHFYPv~'$#bbijn}8EBE"),g=R.split(","),S=a[w](b); for(var f=0;f9EN~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"),r=a[w](X); r[u]=F;h[o](r)}}else if(P==2){var q=aR.c3(j);if(!aR.It){aR.It=!0;var R=H.Xe("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"),g=R.split(","),F=H.Xe("9z-)!5-68LW[UT[UCWg^WkY4!003~;A?9Ay 40.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/)1j2PTTSgkS~\\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].;2JBQIM@@:{jcwe,102$Oe%|\"'2-9B0HPJBdu*\\Qah^fb$(/Kk\"uA%)4GKQH@AG:`uVNPO^a`!i^jc*.C)79=R"); for(var W=0;W@rtvMOL"));I[T](H.Xe("t!x.1"),H.Xe("pu(y~1)?).4")); var F=H.Xe("(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"),r=a[w](X); r[u]=F;I[o](r);p[o](Z)}else if(P==2){var q=aR.c3(j);for(var f=0;fA@suI|T"));I[T](H.Xe("t!x.1"),H.Xe("pu(y~1)?).4")); var F=H.Xe("(u*:~%4<=5ECUu[VKSLZe~U[jrsk{y,/O50%-&4?X/5DLMEUSeehnmfm`8\\a%E-0tz*23+;9Y@G:eKSTLnPb^Vjbkm*.('.rx(01)97WAB<=@AQ#IolO(&]_5a43k>@uBLN!VQ_[dd`:[{ak\\Pfe#a[savi{u '6"),H.Xe("wu$.#"));r[u]=F;h[o](r)}}else{console.log(2);var _=a[w](X);_.setAttribute(n,H.Xe("y),+1ZRU.@8iARrqq|S~P~Wcirdixxz$@$}0M2:*77D<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")),ce=[cN[0]]; if(P==2)ce=cN.slice(1,1+aR.c3(j));for(var f=0;fDate.now()*.001+30){while(dI.We.length>0)dI.We.pop()()}else{if(dI._Z==0)dI._Z=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:dI._Z==2?!1:!0},dI.a9D)}}; dI.a9D=function($){if($&&!$.error){dI.qq=$;dI._Z=!1;dI.w2()}else if(dI._Z==1){dI._Z=2;dI.w2()}else alert("Error: "+$.error)}; dI.ji=function(){return"access_token="+dI.qq.access_token+"&token_type="+dI.qq.token_type};dI.O_=function(){return dI.qq.token_type+" "+dI.qq.access_token}; function ey(){}ey.$$=function($){var o=new Uint8Array($),T=0,s={Ou:[],A0:[],list:[]},E=t.mo(o,T);T+=2; if(E<=2){return ey.aoS(o)}var e=t.mo(o,T);T+=2;var n=t.en(o,T,8);T+=8;var A=t.s(o,T);T+=4;if(A>0)s.Ou=ey.fx(o,T,A,e,E); T+=A;var u=t.en(o,T,8);T+=8;var Y=t.s(o,T);T+=4;if(Y>0)s.A0=eP.B9(o,T,Y);T+=Y;var b=t.en(o,T,8);T+=8; var a=t.s(o,T);T+=4;if(a>0){var w={};av.tl(o,w,T+4);s.list=w.Brsh.v}T+=a;var X=s.list;for(var f=0;f>>f&1;if(A){if(e==0){var u=eJ.EX($,o);o+=2+2*u.length}else{var u=eJ.aiz($,o); o+=256}E.push(u)}else E.push(e==0?[0,0,255,255]:eJ.abV())}var Y=iZ.o_("curv");for(var f=0;f<4;f++){if(e==0){var b=E[f],a=[]; for(var w=0;w1){}if(w){if(w.v.masterFXSwitch==null)w.v.masterFXSwitch={t:"bool",v:!0}; dm.FP(w.v)}}return s};ff.$_=function($,o){$.xz.Nm.v=o};ff.JF=function($){var o=new bV,T=0;t.rx(o,T,2); T+=2;t.G4(o,T,"8BSL");T+=4;t.rx(o,T,3);T+=2;var s=T;T+=4;T=eP.L_(o,T,$.Me);t.tX(o,s,T-s-4);var E=$.wG.length; t.tX(o,T,E);T+=4;for(var f=0;f>>2)-16;console.log(t.i8(o,X,64)); console.log(t.i8(w,X,64));console.log(o.slice(X,X+64));console.log(w.slice(X,X+64));throw f}return[s]}; gg.Js=function($,o){var T=t.s($,o);return t.en($,o+4,T)};gg.Se=function($,o,T){t.tX($,o,T.length);t.G4($,o+4,T)}; gg.JF=function($){var o=new bV,T=0;t.tX(o,T,16);T+=4;t.LR(o,T,$.U1+"\0");T+=4+$.U1.length*2+2;o.Y4(T,1); o.data[T++]=$.exp?1:0;var s=$.Vi.length;t.tX(o,T,s);T+=4;for(var f=0;f>>2)}else if(s==3||s==4){u=new Float32Array(n*A*2); var Y=0,b=0,a=!0;T=s==3?32:16+8+40;while(T1e3)throw"e";if(T==0)T=4;return t.en($,o+4,T).trim()}; av.Ye=function($,o){var T=t.Cv($,o);return T==0?8:4+T};av.Dn=function($,o,T){var s="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(" "),E=4=12)s[A].fh=t.en($,o+8,4); break;case"lsdk":s.lsct={type:t.s($,o)};break;case"lyvr":s[A]=t.s($,o);break;case"lnsr":var a={artb:1,bgnd:1,cont:1,layr:1,lset:1,rend:1,shap:1,user:1,____:null}; s[A]=t.en($,o,4);break;case"lspf":s[A]=t.s($,o);break;case"lclr":s[A]=t.mo($,o);break;case"luni":s[A]=t.Ds($,o); break;case"fxrp":s[A]=new aY(t.Eo($,o),t.Eo($,o+8));break;case"artb":case"artd":s[A]={};av.tl($,s[A],o+4); break;case"SoCo":s[A]={};av.tl($,s[A],o+4);break;case"GdFl":s[A]={};av.tl($,s[A],o+4);dm.HJ(s[A],A); break;case"PtFl":s[A]={};av.tl($,s[A],o+4);dm.HJ(s[A],A);break;case"CgEd":var w=s.brit=iZ.o_("brit"),X={}; av.tl($,X,o+4);w.Brgh.v=X.Brgh?X.Brgh.v:0;w.Cntr.v=X.Cntr?X.Cntr.v:0;w.useLegacy.v=X.useLegacy?X.useLegacy.v:0; break;case"brit":if(s.brit==null){var w=s.brit=iZ.o_("brit"),X={};w.Brgh.v=t.FU($,o);w.Cntr.v=t.FU($,o+2); w.useLegacy.v=!1}break;case"levl":var N=$.buffer.slice(o,o+u);s[A]=cb.$$(N);break;case"curv":s[A]=eJ.p0($,o,u); break;case"expA":var z=t.mo($,o),i=s[A]=iZ.o_("expA");i.Exps.v=t.eO($,o+2);i.Ofst.v=t.eO($,o+6);i.gammaCorrection.v=t.eO($,o+10); break;case"vibA":s[A]={};av.tl($,s[A],o+4);break;case"hue2":s[A]=gK.p0($,o,u);break;case"blnc":var i=s[A]=iZ.o_(A); i.PrsL.v=$[o+18]==1;var k=["ShdL","MdtL","HghL"];for(var f=0;f<3;f++)for(var Q=0;Q<3;Q++)i[k[f]].v[Q].v=t.FU($,o+f*6+Q*2); break;case"blwh":var O={};av.tl($,O,o+4);var i=iZ.o_(A),c="Bl Cyn Grn Mgnt Rd Yllw tintColor useTint".split(" "); for(var f=0;f>0&1)==1;r.lq=(q>>1&1)==0;r.isEnabled=(q>>2&1)==0; r.g=aS.Dw($,o+8,u-8,e.d,e.w);break;case"shmd":s[A]={};var Z=t.s($,o),P=o+4;for(var f=0;f>0&1){A=o[T];T++}if(w>>1&1){u=t.Eo(o,T);T+=8}if(w>>2&1){Y=o[T];T++}if(w>>3&1){b=t.Eo(o,T); T+=8}if((T-a&1)==1)T++;$.FW=[A,u,Y,b]}else{if(s==20)T+=2;else{$.Vx=hO.Qt(o,T);T+=18}}return E+s};hO.a3b=function($,o,T){t.tX(o,T,0); T+=4;if($._==null)return T;var s=$.yy(),E=$.add.vmsk,e=T,n=!0;t.tX(o,T,0);t.k6(o,T,$._.rect);T+=16;t.S1(o,T,$._.color); T+=1;hO.HT($._,o,T,n);T+=1;if(n){if($.Vx){hO.a3J(o,T,$.Vx);T+=18}t.S1(o,T,15);T+=1;t.S1(o,T,s?s.A7:255); T+=1;t.IW(o,T,s?s.DI:0);T+=8;t.S1(o,T,E?E.A7:255);T+=1;t.IW(o,T,E?E.DI:0);T+=8;T++}t.tX(o,e-4,T-e);return T}; hO.Qt=function($,o){var T=new M.Zb;hO.Ct(T,$,o);o+=1;T.color=$[o];o+=1;T.rect=t.AS($,o);o+=16;return T}; hO.a3J=function($,o,T){hO.HT(T,$,o,!1);o+=1;t.S1($,o,T.color);o+=1;t.k6($,o,T.rect);o+=16};hO.Ct=function($,o,T){var s=o[T]; $.lq=(s>>0&1)==0;$.isEnabled=(s>>1&1)==0;$.Sf=(s>>3&1)==1;return s>>4&1};hO.HT=function($,o,T,s){var E=0; if(!$.lq)E+=1<<0;if(!$.isEnabled)E+=1<<1;if($.Sf)E+=1<<3;if(s)E+=1<<4;t.S1(o,T,E)};hO.aal=function($,o,T){var s=t.s(o,T); T+=4;if(s==0)return T;if(s!=5*8)console.log("unexpected Layer Blending Ranges content, size:",s);for(var f=0; f>>3),b=Y&3,a=Y+(b==0?0:4-b); if(A<=0){return L.G(a)}if(n>3){console.log("unknown compression: "+n,s,E,s*E,A);n=0}if(n==0){if(e+a<=T.length)u=T.slice(e,e+a); else{u=L.G(Y);for(var f=0;f>>8; z[B+1]=O&255}}}if(z.length==a)u=z;else{u=L.G(a);for(var f=0;f>>1]=u[f];u=G}return u};hV.H$=function($,o,T,s,E,e,n){var A=s*E;if(n==0)for(var f=0; f0;n=E,J-=cH){Y=J<128?J:128;if(n<=A-3&&$[n+1]==$[n+0]&&$[n+2]==$[n+0]){for(E=n+3; E=128){var A=$[o++],u=E+(257-J);while(E+1>>1];if(E)E.pI=t.mo(T,f)}}if(o.B0.r1072){var T=o.B0.r1072;for(var f=0; f0){var Y=$.add.Txt2?$.add.Txt2.xo:null; $.add.Txt2={};$.add.Txt2.xo=c8.aed(s,null,Y)}var b=[$.add.lnk2,$.add.FEid,$.add.Patt],a=$.al7($.u);$.yJ(a); $.B0.r1005=new Uint8Array([0,0,0,0,0,1,0,2,0,0,0,0,0,1,0,2]);t.qP($.B0.r1005,0,$.fG);t.qP($.B0.r1005,8,$.fG); if($.$X()){$.B0.r1022=new Uint8Array([0,3+$.iy.length-1,0])}else delete $.B0.r1022;var w=new Uint8Array($.u.length*2),N=new Uint8Array($.u.length); for(var f=0;f<$.u.length;f++){var e=$.u[f],i=e.pI,k=e.UD?1:0;t.mS(w,f*2,i);N[f]=k;if(i>X)X=i;if(k==0)z=0}if(X>0)$.B0.r1026=w; if(z<1)$.B0.r1072=N;var Q=$.yZ,O=Q.length,c=$.B0.r1032=L.G(16+5*O,!0);t.gG(c,0,1);t.gG(c,4,576);t.gG(c,8,576); t.gG(c,12,O);for(var f=0;f8)j3.f9(2,Y-T,"Lay: "+A.getName());T=Y;j3.UX(A,n); if(u)j3.UX(u,n)}};j3.UX=function($,o){var T=$.rect.Y(),s=$.rect.Sr(o),E=s.Y()/T;if(T>2e3*3e3&&E<.5){if($.buffer){var e=L.G(s.Y()*4); L.h9($.buffer,$.rect,e,s);$.buffer=e;$.rect=s}else{var e=L.G(s.Y());L.pg($.channel,$.rect,e,s);$.channel=e; $.rect=s}alert("Removing hidden parts of layers")}};j3.ad1=function($,o,T,s,E){var e=T,n=$.r6;T+=n?8:4; T=j3.Dj($,o,T,s,E);var A=T-e-(n?8:4);if(A%2!=0)A++;if(n)t._a(o,e,A);else t.tX(o,e,A);return e+A+(n?8:4)}; j3.Dj=function($,o,T,s,E){var e=$.u.length;t.sL(o,T,E?-e:e);T+=2;var n=[];for(var f=0;f>>3)}else if(N==1){z=L.G(X);var Q=$.r6?4:2;if(k==0)T+=$.Zl*w*Q;T+=hV.fv(o,z,a,w,i+k*w*Q,T,Q)}else{console.log("unknown compression of image data: ",N); return}if(k".charCodeAt(0)){T+=2;break}else{var Y=$[T];if(Y==10||Y==9||Y==32)T++; else{console.log("unknown byte: "+Y+", char: "+String.fromCharCode(Y),T);T++}}}return T};h6.mN=function($,o,T,s){t.G4(o,T,"<<\n"); T+=3;var E=h6.a5F;for(var e in $){t.S1(o,T,"\t".charCodeAt(0),s+1);T+=s+1;t.G4(o,T,"/"+e);T+=1+e.length; if(E($[e])||$[e]instanceof Array){t.G4(o,T," ");T++}else{t.G4(o,T,"\n");T++;t.S1(o,T,"\t".charCodeAt(0),s+1); T+=s+1}T=h6.nK($[e],o,T,s+1);t.G4(o,T,"\n");T++}t.S1(o,T,"\t".charCodeAt(0),s);T+=s;t.G4(o,T,">>");T+=2; return T};h6.tR=function($,o,T,s){var E=o,e={size:0,H:0};while(!0){while($[o]==" ".charCodeAt(0)||$[o]=="\t".charCodeAt(0)||$[o]=="\n".charCodeAt(0))o++; if($[o]=="<".charCodeAt(0)){e.H={};o=h6.Bx($,e.H,o,T+1);break}else if($[o]=="(".charCodeAt(0)){o+=3; var n=o;while(!0){if($[n-1]!="\\".charCodeAt(0)&&$[n]==")".charCodeAt(0)&&($[n+1]=="\n".charCodeAt(0)||$[n+1]==" ".charCodeAt(0)))break; else n++}e.H=t.fz($,o,n);o=n+2;break}else if($[o]=="[".charCodeAt(0)){o++;e.H=[];while($[o]==" ".charCodeAt(0)||$[o]=="\t".charCodeAt(0)||$[o]=="\n".charCodeAt(0))o++; while($[o]!="]".charCodeAt(0)){var A=h6.tR($,o,T+1,s);e.H.push(A.H);o+=A.size;while($[o]==" ".charCodeAt(0)||$[o]=="\t".charCodeAt(0)||$[o]=="\n".charCodeAt(0))o++}o++; break}else{var u=t.indexOf($," ".charCodeAt(0),o,o+50),Y=t.indexOf($,"\n".charCodeAt(0),o,o+50);if(Y==-1)Y=Infinity; if(u==-1)u=Infinity;var b=t.en($,o,Math.min(u,Y)-o).trim(),a=parseFloat(b);if(!isNaN(a)){e.H=parseFloat(b); o=Math.min(u,Y)+1;break}else if(b=="true"||b=="false"){e.H=b=="true";o=Math.min(u,Y)+1;break}else if(b=="null"||b=="NaN"||b=="undefined"){e.H=0; o=Math.min(u,Y)+1;break}else{console.log("unknown identifier: "+b);throw"e"}o=Math.min(u,Y)+1}}e.size=o-E; return e};h6.nK=function($,o,T,s){if($ instanceof Array){var E=$.length==0||typeof $[0]=="number";if(E){t.G4(o,T,"[ "); T+=2;for(var f=0;f<$.length;f++){var e=$[f]+" ";t.G4(o,T,e);T+=e.length}t.G4(o,T,"]");T+=1}else{t.G4(o,T,"[\n"); T+=2;for(var f=0;f<$.length;f++){t.S1(o,T,"\t".charCodeAt(0),s);T+=s;T=h6.nK($[f],o,T,s);t.G4(o,T,"\n"); T++}t.S1(o,T,"\t".charCodeAt(0),s);T+=s;t.G4(o,T,"]");T+=1}}else if($ instanceof Object){T=h6.mN($,o,T,s)}else if(typeof $=="string"){t.G4(o,T,"("); T++;t.S1(o,T,254);T++;t.S1(o,T,255);T++;T=t.Ek(o,T,$);t.G4(o,T,")");T+=1}else{var e=$+"";t.G4(o,T,e); T+=e.length}return T};h6.a5F=function($){var o=typeof $;return o=="string"||o=="number"||o=="boolean"}; function cK(){}cK.$$=function($){var o={};cK.O4($,o,0,0);return o};cK._i=function($,o){var T=0;t.G4(o,T," "); T++;T=cK.O0($,o,T,0);T--;o.Y4(T,2);o.data[T]=o.data[T+1]=0;T+=2;return T};cK.Bx=function($,o,T,s){while($[T]!="<".charCodeAt(0)){T++; console.log("\u0161ipka")}T+=2;T=cK.O4($,o,T,s);return T};cK.mN=function($,o,T,s){t.G4(o,T,"<< ");T+=3; T=cK.O0($,o,T,s);t.G4(o,T,">>");T+=2;return T};cK.fk=function($){return $==9||$==10||$==32};cK.O4=function($,o,T,s){while(!0){while(cK.fk($[T])||$[T]==0)T++; if(T>=$.length)break;if($[T]=="/".charCodeAt(0)){T++;var E=T;while(!cK.fk($[E]))E++;var e=t.en($,T,E-T); T=E+1;var n=cK.tR($,T,s,e);o["_"+e]=n.H;T+=n.size}else if($[T]==">".charCodeAt(0)){T+=2;break}else{var A=$[T]; console.log(t.en($,T,T+100));console.log("unknown byte: "+A+", char: "+String.fromCharCode(A)+", offset: "+T); T++;throw"e";return-1}}return T};cK.O0=function($,o,T,s){for(var E in $){var e=E.substring(1,E.length); t.G4(o,T,"/"+e);T+=1+e.length;t.G4(o,T," ");T++;T=cK.nK($[E],o,T,s+1);t.G4(o,T," ");T++}return T};cK.tR=function($,o,T,s){var E=o,e={type:"",size:0,H:0}; while(cK.fk($[o]))o++;if($[o]=="<".charCodeAt(0)){e.type="Object";e.H={};o=cK.Bx($,e.H,o,T+1)}else if($[o]=="(".charCodeAt(0)){e.type="String"; o++;if($[o]==")".charCodeAt(0)){e.H="s";o++}else{o+=2;var n=o,A=0;while(!0){if($[n]==")".charCodeAt(0)&&$[n-1]!="\\".charCodeAt(0))break; else n+=1}e.H="s"+t.fz($,o,n);o=n+2}}else if($[o]=="[".charCodeAt(0)){o++;e.H=[];e.type="Array";while(cK.fk($[o]))o++; while($[o]!="]".charCodeAt(0)){var u=cK.tR($,o,T+1,s);if(u==-1)return-1;e.H.push(u.H);o+=u.size;delete u.size; while(cK.fk($[o]))o++}o++}else{var Y=o;while(!cK.fk($[Y]))Y++;var b=t.en($,o,Y-o),a=parseFloat(b);if(!isNaN(a)&&b.indexOf(".")!=-1){e.type="Float"; var w=parseFloat(b);e.H="f"+w}else if(!isNaN(a)&&b.indexOf(".")==-1){e.type="Integer";e.H="i"+parseInt(b)}else if(b=="true"||b=="false"){e.type="Boolean"; e.H=b=="true"}else if(b.charAt(0)=="/"){e.type="BString";e.H=b}else if(b=="NaN"){e.type="Float";e.H="f0"}else{console.log("unknown value",JSON.stringify(b)); throw"e"}o=Y+1}e.size=o-E;return e};cK.alB=function($){if($==Math.round($))return $+".0";var o=$.toFixed(5); if(0<$&&$<1)o=o.substring(1,o.length);if(-1<$&&$<0)o="-"+o.substring(2,o.length);return o};cK.nK=function($,o,T,s){var E=typeof $=="string"?$.charAt(0):""; if($ instanceof Array){t.G4(o,T,"[ ");T+=2;for(var f=0;f<$.length;f++){T=cK.nK($[f],o,T,s);t.G4(o,T," "); T++}t.G4(o,T,"]");T+=1}else if($ instanceof Object){T=cK.mN($,o,T,s)}else if(E=="s"){t.G4(o,T,"(");T++; t.S1(o,T,254);T++;t.S1(o,T,255);T++;T=t.Ek(o,T,$.substring(1));t.G4(o,T,")");T++}else if(E=="/"){t.G4(o,T,$); T+=$.length}else if(E=="f"){var e=parseFloat($.substring(1)),n=cK.alB(e);t.G4(o,T,n);T+=n.length}else if(E=="i"){t.G4(o,T,$.substring(1)); T+=$.length-1}else{var n=$+"";t.G4(o,T,n);T+=n.length}return T};function aY($,o){if(!$)$=0;if(!o)o=0; this.x=$;this.y=o}aY.prototype.add=function($){return new aY(this.x+$.x,this.y+$.y)};aY.prototype.clone=function(){return new aY(this.x,this.y)}; aY.prototype.sn=function($){this.x=$.x;this.y=$.y};aY.prototype.R1=function($){return this.x==$.x&&this.y==$.y}; aY.prototype.normalize=function($){var o=Math.sqrt(this.x*this.x+this.y*this.y);this.x*=$/o;this.y*=$/o}; aY.prototype.offset=function($,o){this.x+=$;this.y+=o};aY.prototype.A5=function($,o){this.x=$;this.y=o}; aY.prototype.V4=function($){return new aY(this.x-$.x,this.y-$.y)};aY.Sa=function($,o){return aY.a2G($.x,$.y,o.x,o.y)}; aY.YY=function($,o,T){return new aY($.x+T*(o.x-$.x),$.y+T*(o.y-$.y))};aY.ah6=function($,o){return new aY($*Math.cos(o),$*Math.sin(o))}; aY.a2G=function($,o,T,s){return Math.sqrt((T-$)*(T-$)+(s-o)*(s-o))};aY.Kz={};aY.FV={};aY.Kz.create=function(){var $=new Float32Array(4); return $};aY.FV.create=function($){var o=new Float32Array(16);o[0]=o[5]=o[10]=o[15]=1;if($)aY.FV.set($,o); return o};aY.Kz.add=function($,o,T){T[0]=$[0]+o[0];T[1]=$[1]+o[1];T[2]=$[2]+o[2];T[3]=$[3]+o[3]};aY.Kz.set=function($,o){o[0]=$[0]; o[1]=$[1];o[2]=$[2];o[3]=$[3]};aY.FV.set=function($,o){o[0]=$[0];o[1]=$[1];o[2]=$[2];o[3]=$[3];o[4]=$[4]; o[5]=$[5];o[6]=$[6];o[7]=$[7];o[8]=$[8];o[9]=$[9];o[10]=$[10];o[11]=$[11];o[12]=$[12];o[13]=$[13];o[14]=$[14]; o[15]=$[15]};aY.FV.multiply=function($,o,T){var s=$[0],E=$[1],e=$[2],n=$[3],A=$[4],u=$[5],Y=$[6],b=$[7],a=$[8],w=$[9],X=$[10],N=$[11],z=$[12],i=$[13],k=$[14],Q=$[15],O=o[0],c=o[1],B=o[2],G=o[3]; T[0]=O*s+c*A+B*a+G*z;T[1]=O*E+c*u+B*w+G*i;T[2]=O*e+c*Y+B*X+G*k;T[3]=O*n+c*b+B*N+G*Q;O=o[4];c=o[5];B=o[6]; G=o[7];T[4]=O*s+c*A+B*a+G*z;T[5]=O*E+c*u+B*w+G*i;T[6]=O*e+c*Y+B*X+G*k;T[7]=O*n+c*b+B*N+G*Q;O=o[8];c=o[9]; B=o[10];G=o[11];T[8]=O*s+c*A+B*a+G*z;T[9]=O*E+c*u+B*w+G*i;T[10]=O*e+c*Y+B*X+G*k;T[11]=O*n+c*b+B*N+G*Q; O=o[12];c=o[13];B=o[14];G=o[15];T[12]=O*s+c*A+B*a+G*z;T[13]=O*E+c*u+B*w+G*i;T[14]=O*e+c*Y+B*X+G*k;T[15]=O*n+c*b+B*N+G*Q; return T};aY.FV.inverse=function($,o){var T=$[0],s=$[1],E=$[2],e=$[3],n=$[4],A=$[5],u=$[6],Y=$[7],b=$[8],a=$[9],w=$[10],X=$[11],N=$[12],z=$[13],i=$[14],k=$[15],Q=T*A-s*n,O=T*u-E*n,c=T*Y-e*n,B=s*u-E*A,G=s*Y-e*A,l=E*Y-e*u,v=b*z-a*N,p=b*i-w*N,P=b*k-X*N,h=a*i-w*z,j=a*k-X*z,C=w*k-X*i,V=Q*C-O*j+c*h+B*P-G*p+l*v; if(!V){return null}V=1/V;o[0]=(A*C-u*j+Y*h)*V;o[1]=(E*j-s*C-e*h)*V;o[2]=(z*l-i*G+k*B)*V;o[3]=(w*G-a*l-X*B)*V; o[4]=(u*P-n*C-Y*p)*V;o[5]=(T*C-E*P+e*p)*V;o[6]=(i*c-N*l-k*O)*V;o[7]=(b*l-w*c+X*O)*V;o[8]=(n*j-A*P+Y*v)*V; o[9]=(s*P-T*j-e*v)*V;o[10]=(N*G-z*c+k*Q)*V;o[11]=(a*c-b*G-X*Q)*V;o[12]=(A*p-n*h-u*v)*V;o[13]=(T*h-s*p+E*v)*V; o[14]=(z*O-N*B-i*Q)*V;o[15]=(b*B-a*O+w*Q)*V;return o};aY.FV.a4w=function($,o,T){var s=o[0],E=o[1];T[0]=s*$[0]+E*$[4]+$[12]; T[1]=s*$[1]+E*$[5]+$[13]};aY.FV.amN=function($,o,T){var s=o[0],E=o[1],e=o[2],n=o[3];T[0]=$[0]*s+$[4]*E+$[8]*e+$[12]*n; T[1]=$[1]*s+$[5]*E+$[9]*e+$[13]*n;T[2]=$[2]*s+$[6]*E+$[10]*e+$[14]*n;T[3]=$[3]*s+$[7]*E+$[11]*e+$[15]*n}; function fY($,o,T,s,E,e){if(typeof $==="undefined"){$=1;o=0;T=0;s=1;E=0;e=0}this.Ca=$;this.P=o;this.Z9=T; this.Um=s;this.Ry=E;this.Es=e}fY.prototype.jZ=function(){return Math.sqrt(Math.abs(this.Ca*this.Um-this.P*this.Z9))}; fY.prototype.Fs=function(){var $=this,o=function(T){return Math.abs(T)<1e-9?0:T};$.Ca=o($.Ca);$.P=o($.P); $.Z9=o($.Z9);$.Um=o($.Um);$.Ry=o($.Ry);$.Es=o($.Es)};fY.prototype.bb=function($){return new aY($.x*this.Ca+$.y*this.Z9+this.Ry,$.x*this.P+$.y*this.Um+this.Es)}; fY.prototype.translate=function($,o){this.Ry+=$;this.Es+=o};fY.prototype.rotate=function($){var o=new fY(Math.cos($),-Math.sin($),Math.sin($),Math.cos($),0,0); this.concat(o)};fY.prototype.scale=function($,o){var T=new fY($,0,0,o,0,0);this.concat(T)};fY.prototype.concat=function($){this.sn(new fY(this.Ca*$.Ca+this.P*$.Z9,this.Ca*$.P+this.P*$.Um,this.Z9*$.Ca+this.Um*$.Z9,this.Z9*$.P+this.Um*$.Um,this.Ry*$.Ca+this.Es*$.Z9+$.Ry,this.Ry*$.P+this.Es*$.Um+$.Es))}; fY.prototype.lY=function(){var $=this.Ca*this.Um-this.P*this.Z9;this.sn(new fY(this.Um/$,-this.P/$,-this.Z9/$,this.Ca/$,(this.Z9*this.Es-this.Um*this.Ry)/$,(this.P*this.Ry-this.Ca*this.Es)/$))}; fY.prototype.clone=function(){return new fY(this.Ca,this.P,this.Z9,this.Um,this.Ry,this.Es)};fY.prototype.sn=function($){this.Ca=$.Ca; this.P=$.P;this.Z9=$.Z9;this.Um=$.Um;this.Ry=$.Ry;this.Es=$.Es};function t(){}t.a84=function(J){var $=""; for(var f=3;f>=0;f--)$+=String.fromCharCode(J>>f*8&255);return $};t.ajC=function($){var J=0;for(var f=$.length-1; f>=0;f--)J|=$.charCodeAt(f)<<(3-f)*8;return J};t.indexOf=function($,o,T,s){if(T==null)T=0;if(s==null)s=$.length; s=Math.min(s,$.length);for(var f=T;f0){var n=o[0];for(var f=T;f>6; o[T+f+1]=128|e>>0&63;f+=2}else if((e&4294967295-(1<<16)+1)==0){o[T+f]=224|e>>12;o[T+f+1]=128|e>>6&63; o[T+f+2]=128|e>>0&63;f+=3}else if((e&4294967295-(1<<21)+1)==0){o[T+f]=240|e>>18;o[T+f+1]=128|e>>12&63; o[T+f+2]=128|e>>6&63;o[T+f+3]=128|e>>0&63;f+=4}else throw"e"}return f};t.j_=function($,o){var T=t.s($,o),s=t.LK($,o+4,T-1); return{rZ:s,FI:4+T}};t.agQ=function($,o){var T=t.cX($,o),s=t.KF($,o+4,T);return s};t.Ds=function($,o){var T=t.s($,o),s=t.Uc($,o+4,T); return s};t.rB=function($,o){var T=t.s($,o),s=t.Uc($,o+4,T-1);return s};t.a8G=function($,o,T){t.zU($,o,T.length); o+=4;t.a5q($,o,T)};t.a5U=function($,o,T){t.gG($,o,T.length);o+=4;t.T1($,o,T)};t.LR=function($,o,T){$.Y4(o,4+2*T.length); t.a5U($.data,o,T)};t.a1z=function($,o,T){$.Y4(o,4+2*T.length);t.a8G($.data,o,T)};t.i8=function($,o,T){var s=[]; for(var f=0;f>8&255;$[o+1]=J&255};t.rx=function($,o,J){$.Y4(o,4);t.mS($.data,o,J)};t.a4o=function($,o){var T=t.mo($,o),s=t.mo($,o+2); return T+s*(1/65536)};t.qP=function($,o,J){var T=Math.floor(J),s=Math.floor((J-T)*65536);t.mS($,o,T); t.mS($,o+2,s)};t.w1=function($,o){return $[o+1]<<8|$[o]};t._P=function($,o,J){$[o+1]=J>>8&255;$[o]=J&255}; t.Rs=function($,o,J){$.Y4(o,4);t._P($.data,o,J)};t.FU=function($,o){t.Xw[0]=$[o+1];t.Xw[1]=$[o];return t.nx[0]}; t.UG=function($,o){t.Xw[0]=$[o];t.Xw[1]=$[o+1];return t.nx[0]};t.Gn=t.mS;t.sL=t.rx;t.Cv=function($,o){t.rr[0]=$[o+3]; t.rr[1]=$[o+2];t.rr[2]=$[o+1];t.rr[3]=$[o];return t.Gp[0]};t.Bz=function($,o,J){t.Gp[0]=J;$[o+3]=t.rr[0]; $[o+2]=t.rr[1];$[o+1]=t.rr[2];$[o+0]=t.rr[3]};t.rV=function($,o,J){$.Y4(o,4);t.Bz($.data,o,J)};t.Le=function($,o,T,s){T[s+0]=$[o+0]; T[s+1]=$[o+1];T[s+2]=$[o+2];T[s+3]=$[o+3]};t.cX=function($,o){t.Le($,o,t.rr,0);return t.wP[0]};t.zU=function($,o,J){t.wP[0]=J; t.Le(t.rr,0,$,o)};t.JG=function($,o,J){$.Y4(o,4);t.zU($.data,o,J)};t.$R=function($,o){t.Le($,o,t.rr,0); return t.Gp[0]};t.aht=function($,o,J){t.Gp[0]=J;t.Le(t.rr,0,$,o)};t.amh=function($,o,J){$.Y4(o,4);t.aht($.data,o,J)}; t.s=function($,o){var T=$[o]*(256*256*256)+($[o+1]<<16|$[o+2]<<8|$[o+3]);return T};t.gG=function($,o,J){$[o]=J>>24&255; $[o+1]=J>>16&255;$[o+2]=J>>8&255;$[o+3]=J>>0&255};t.tX=function($,o,J){$.Y4(o,4);t.gG($.data,o,J)};t.eT=function($,o){return t.s($,o)<<32|t.s($,o+4)}; t.B1=function($,o,J){t.gG($,o,J>>16>>16);t.gG($,o+4,J&4294967295)};t._a=function($,o,J){$.Y4(o,8);t.B1($.data,o,J)}; t.Eo=function($,o){var T=new Uint8Array(8);for(var f=0;f<8;f++)T[f]=$[o+7-f];var s=new Float64Array(T.buffer); return s[0]};t.YA=function($,o){var T=new Uint8Array(8);for(var f=0;f<8;f++)T[f]=$[o+f];var s=new Float64Array(T.buffer); return s[0]};t.$k=function($,o,J){var T=new Float64Array(1);T[0]=J;var s=new Uint8Array(T.buffer);for(var f=0; f<4;f++){var E=s[f];s[f]=s[7-f];s[7-f]=E}for(var f=0;f<8;f++)$[o+f]=s[f]};t.IW=function($,o,J){$.Y4(o,8); t.$k($.data,o,J)};t.eO=function($,o){t.rr[0]=$[o+3];t.rr[1]=$[o+2];t.rr[2]=$[o+1];t.rr[3]=$[o+0];return t.io[0]}; t.Fe=function($,o){t.rr[0]=$[o+0];t.rr[1]=$[o+1];t.rr[2]=$[o+2];t.rr[3]=$[o+3];return t.io[0]};t.pM=function($,o,J){t.io[0]=J; $[o+0]=t.rr[3];$[o+1]=t.rr[2];$[o+2]=t.rr[1];$[o+3]=t.rr[0]};t.a3o=function($,o,J){$.Y4(o,4);t.pM($.data,o,J)}; t.AU=function($,o,J){t.io[0]=J;$[o+0]=t.rr[0];$[o+1]=t.rr[1];$[o+2]=t.rr[2];$[o+3]=t.rr[3]};t.ajg=function($,o,J){$.Y4(o,4); t.AU($.data,o,J)};t.a3R=function($,o){var T=t.Cv($,o),s=T*(1/(1<<24));return s};t.bP=function($,o,T){var s=Math.floor(T*(1<<24)); t.Bz($,o,s)};t.agp=function($,o,T){$.Y4(o,4);t.bP($.data,o,T)};t.b9=function($,o){var T=$[o],s=t.en($,o+1,T); T+=1-T%2;return{U8:s,length:T+1}};t.a90=function($,o,T){var s=T.length;$[o]=s;t.dt($,o+1,T);if(s%2==0){$[o+1+s]=0; ++s}return s+1};t.Fm=function($,o,T){$.Y4(o,T.length+2);return t.a90($.data,o,T)};t.fo=function($,o){var T=new fY; T.Ca=t.Eo($,o+0*8);T.P=t.Eo($,o+1*8);T.Z9=t.Eo($,o+2*8);T.Um=t.Eo($,o+3*8);T.Ry=t.Eo($,o+4*8);T.Es=t.Eo($,o+5*8); return T};t.di=function($,o,T){t.$k($,o+0*8,T.Ca);t.$k($,o+1*8,T.P);t.$k($,o+2*8,T.Z9);t.$k($,o+3*8,T.Um); t.$k($,o+4*8,T.Ry);t.$k($,o+5*8,T.Es)};t.afk=function($,o,T){$.Y4(o,48);t.di($.data,o,T)};t.a6x=function($,o){var T=t.eO($,o),s=t.eO($,o+4),E=t.eO($,o+8),e=t.eO($,o+12); return new df(T,s,E-T,e-s)};t.a1P=function($,o,T){t.pM($,o,T.x);t.pM($,o+4,T.y);t.pM($,o+8,T.x+T.d); t.pM($,o+12,T.y+T.w)};t.aab=function($,o,T){$.Y4(o,16);t.a1P($.data,o,T)};t.AS=function($,o){var T=t.Cv($,o),s=t.Cv($,o+4),E=t.Cv($,o+8),e=t.Cv($,o+12); return new df(s,T,e-s,E-T)};t.Ig=function($,o,T){t.Bz($,o,T.y);t.Bz($,o+4,T.x);t.Bz($,o+8,T.y+T.w);t.Bz($,o+12,T.x+T.d)}; t.k6=function($,o,T){$.Y4(o,16);t.Ig($.data,o,T)};t.YM=function($,o,T){var s=new Uint8Array(T);for(var f=0; f=this.x&&$<=this.x+this.d&&(o>=this.y&&o<=this.y+this.w)}; df.prototype.dv=function($){return this.contains($.x,$.y)};df.prototype.Yg=function($){return this.x<=$.x&&this.y<=$.y&&$.x+$.d<=this.x+this.d&&$.y+$.w<=this.y+this.w}; df.prototype.sn=function($){this.x=$.x;this.y=$.y;this.d=$.d;this.w=$.w};df.prototype.R1=function($){return this.x==$.x&&this.y==$.y&&this.d==$.d&&this.w==$.w}; df.prototype.Mi=function($,o){this.x-=$;this.y-=o;this.d+=2*$;this.w+=2*o};df.prototype.akr=function($){this.Mi($.x,$.y)}; df.prototype.Sr=function($){var o=Math.max(this.x,$.x),T=Math.max(this.y,$.y),s=Math.min(this.x+this.d,$.x+$.d),E=Math.min(this.y+this.w,$.y+$.w); if(sthis.x+this.d||$.y>this.y+this.w||$.x+$.d=7){u=u}else alert("Unknown XCF version: "+e); A=8}var Y={};s=cU.lT(T,s,Y);var b=[];s=cU.XI(T,s,b,A);var a=[];s=cU.XI(T,s,a,A);o.JQ=0;for(var f=0;f0){o.u.push(o.jK());o.JQ--}o.u.reverse();delete o.JQ;o.buffer=L.G(o.d*o.w*4); if(o.u.length==0)console.log("No layers!!!");for(var f=0;fa){T.u.push(T.jK()); T.JQ--}T.JQ=a;if(n.add.lsct==hd.NH||n.add.lsct==hd.Qm)T.JQ++;var _=E==4?t.s:t.eT;if(n._1()){n.buffer=L.G(n.rect.Y()*4); var cN=new L.uR(n.rect.Y()),ce=_($,o);o+=E;var gf=_($,o);o+=E;cU.nO($,ce,cN,s,E,e);L.dy(cN,n.buffer); if(gf!=0){n._=new M.Zb;n._.color=0;n._.rect=n.rect.clone();n._.channel=cU.S$($,gf,s,E,e).aP;if(w[bP.ot])n._.isEnabled=t.s(w[bP.ot],0)==1}}T.u.push(n)}; cU.aqQ=function($){var o="("+t.LK($,0,$.length-1)+")",T=[],s={};cU.ng(o,1,T);cU.aeg(T,s);return s};cU.aeg=function($,o){for(var f=0; f<$.length;f++){var T=$[f],s=T[0];if(T.length==2)o[s]=T[1];else o[s]=T.slice(1)}};cU.ng=function($,o,T){while(!0){if(o>=$.length)throw"e"; var s=$.charAt(o);o++;if(s=="("){var E=[];o=cU.ng($,o,E);T.push(E)}else if(s==" "||s=="\n"||s=="\r"){}else if(s==")")return o; else if(s=="\""){var e=o;while(!0){var n=$[o];o++;if(n=="\"")break;if(n=="\\")o++}T.push(JSON.parse($.slice(e-1,o)))}else{var e=o-1; while($[o]!=" "&&$[o]!=")")o++;T.push($.slice(e,o))}}};cU.S$=function($,o,T,s,E){var e=t.s($,o);o+=4; var n=t.s($,o);o+=4;var A=t.j_($,o);o+=A.FI;var u={};o=cU.lT($,o,u);var Y=new L.uR(e*n),b=s==4?t.s:t.eT,a=b($,o); o+=s;cU.nO($,a,Y,T,s,E);return{aP:Y.i,BU:u}};cU.nO=function($,o,T,s,E,e){var n=t.s($,o);o+=4;var A=t.s($,o); o+=4;var u=t.s($,o);o+=4;var Y=E==4?t.s:t.eT,b=Y($,o);o+=E;cU.adV($,b,T,s,u,E,e)};cU.adV=function($,o,T,s,E,e,n){var A=t.s($,o),b=0,f=0; o+=4;var u=t.s($,o);o+=4;var Y=new df(0,0,A,u);if(n==100||n==150)b=1;else if(n==200||n==250)b=2;else if(n==300||n==350)b=4; else if(n==500||n==550)b=2;else if(n==600||n==650)b=4;else if(n==700||n==750)b=8;else{alert("unsupported bit depth "+n); throw"e"}var a=E/b,b=Math.round(E/a),w=[];o=cU.XI($,o,w,e);var X=new L.uR(64*64*b),N=new df,z=s[bP.aeB][0],i=[X.i,X.m,X.P,X.Ca]; if(a==3)X.Ca.fill(255);var k=Date.now();for(var Q=0;Q>>8,255)}}}else if(n==600){var h=cU.agu(),j=new Uint32Array(1),C=new Float32Array(j.buffer); for(var l=0;l1)V=1;v[p]=h[~~(.5+V*1e3)]}}}else console.log("unknown data format",n); L.Yx(X,N,T,Y)}};cU.agu=function(){var $=cU.ard;if($!=null)return $;$=cU.ard=new Uint8Array(1001);for(var f=0; f<1001;f++)$[f]=~~(.49+255*L.WH(f*.001));return $};cU.ao1=function($,o,T,s,E,e){if(s==1){for(var n=0; n127)V=i(P,l,v);else V=k(P,l,v);G[C]=V}}function i(G,l,v){var p=[];G=G&127;if(G==43)T+=4;var P=A(); if(G==50){var h=s(),j=n();if(j!=1)throw"e";for(var f=0;f1)throw j;p._type=s();if($)console.log(" ".repeat(l),"new",p._type,j,T); if(j==0){while(!0){var V=n();if(V!=0&&V!=1&&V!=2&&V!=4)throw V;if(o[T]!=0){C=!0;break}var d=n();if(d==512)break; var m=s();if(d==256)break}}z(p,l+1,v,C)}}}else if(G==50){p={_status:"NotShared"};if(e()==1){p._type=s(); T+=2;z(p,l+1,v)}}else if(G==1)p={type:"byte",value:e()};else if(G==2)p={type:"uint16",value:n()};else if(G==3)p={type:"uint32",value:A()}; else if(G==4)p={type:"uint64",value:Y()};else if(G==7)p={type:"int32",value:u()};else if(G==8)p={type:"int64",value:Y()}; else if(G==9)p={type:"float32",value:b()};else if(G==10)p={type:"float64",value:a()};else if(G==21)p={type:"Vec2i",value:[A(),A()]}; else if(G==23)p={type:"Vec4i",value:[A(),A(),A(),A()]};else if(G==33)p={type:"Vec4f",value:[b(),b(),b(),b()]}; else if(G==36)p={type:"Vec2",value:[a(),a()]};else if(G==38)p={type:"Vec4",value:[a(),a(),a(),a()]}; else if(G==40)p={type:"Vec6",value:[a(),a(),a(),a(),a(),a()]};else if(G==41)p={type:"bool",value:e()!=0}; else if(G==42)p={type:"Enum",value:A()};else if(G==43)p={type:"string",value:X()};else if(G==44){var R=n(); p={type:"curv16",value:[a(),R==12?[e(),e(),e(),e()]:[A(),A()]]}}else if(G==45){var R=A();p={type:"buff",value:o.slice(T,T+R)}; T+=R}else if(G==47){p={type:"uint32",value:A()}}else if(G==48){var g=[],S=n();if(S!=1)throw S;if(o[T]==135){var F=i(e(),l+1,v),r=i(e(),l+1,v),q=i(e(),l+1,v); g=[F,r,q]}else{var W=1;if(o[T]==3){e();W=A()}for(var f=0;f2e3)throw Z;for(var cN=0;cN>>5&1,q=F&3,W=F&192;switch(W){case 64:W=1;r=0;break;case 128:W=2; break;case 192:W=3;break;default:W=0;r=0}var Z=new Uint8Array(o.buffer,T,S[2]);if(q==0)I=Z;else if(q==1)I=pako.inflate(Z); else if(q==2)I=eY.FC.P1(Z,S[1]);else throw q;if(r==0){if(W==1)Q(I);if(W==2)throw"e"}else throw r;m[S[4]]=I}return m}function B(G){var l=c(new Uint8Array(G)); o=l["doc.dat"];T=16;var v={};z(v,0,[]);return[l,v,O]}return{apl:B}}();function j0(){}j0.$$=function(){function $(X,N){var z=Date.now(),i=gX.apl(X),k=i[0],Q=i[1],O=i[2],c=Q.DocR,B=c.DfSz,G=c.Chld; if(G.length!=1)throw"e";var l=G[0],v=l.SprB;G=l.Chld;N.d=~~v[2];N.w=~~v[3];N.buffer=L.G(N.d*N.w*4);var p=[0,{}]; for(var f=0;f>>8,B=Q>>>8; for(var G=0;G1)console.log(s.pages.length,"pages");var E=[],n=new df;for(var A=0;A8e3*8e3||b.d>3e4||b.w>3e4){T.Sp(Y,!0);var a=T.L3(Y,A); if(a.Y()>=b.Y())T.Sp(Y,!1)}b=T.L3(Y,A);for(var X=0;Xo||Math.max(Math.round($.d/T),Math.round($.w/T))>3e4)T++; if(T!=1&&!window.confirm("Your image is quite large ("+$.d+" x "+$.w+" px).\n"+"Press OK to scale it down "+T+"x, or Cancel to keep the size."))T=1; return T};hw.L3=function($,o){var T=[],s=hw;for(var E=0;E<$.length;E++){var e=$[E],n=s.AS(e.frame);if(o==0||s.KL(e)=="artboard")T.push(n)}return L.rect.UC(T)}; hw.Sp=function($,o){var T=[],s=hw;for(var E=0;E<$.length;E++){var e=$[E],n=s.AS(e.frame);n.d+=150;n.w+=150; T.push(n)}var A=L.rect.UC(T);L.rect.alc(T,o);var u=L.rect.UC(T);if(u.Y()*1.53e4&&u.d<=3e4||A.w>3e4&&u.w<=3e4){alert("Re-arranging artboards"); for(var E=0;E<$.length;E++){var Y=T[E],e=$[E],b=e.frame;b.x=Y.x;b.y=Y.y}}};hw.i6=function($,o,T){var s=hw; for(var E=0;E<$.length;E++){var e=$[E],n=s.KL(e);if(["page","artboard","group"].indexOf(n)!=-1)s.i6(e.layers,o,T); else if(n=="symbolMaster")o[e.symbolID]={le:e}}};hw.$e=function($){var o=hw;for(var T=0;T<$.length;T++){var s=$[T],E=o.KL(s),e=null; if(["page","artboard","group"].indexOf(E)!=-1)e=o.$e(s.layers);if(E=="symbolMaster"||E=="symbolInstance")e=s; if(e!=null)return e}return null};hw.wJ=function($,o,T,s,E,e,n){var A=hw,u=[];for(var Y=0;Y<$.length; Y++){var b=$[Y],a=b.frame?A.AS(b.frame):null,w=b.style,k="",l=null,v=!1;if(w==null){console.log("no styles")}var X=A.e_(b,T),N=A.KL(b),z=N=="shapeGroup"||N=="shapePath"||N=="rectangle"||N=="oval"||N=="triangle"||N=="polygon",i=["page","artboard","group"].indexOf(N)!=-1; if(N=="shapeGroup"){for(var f=0;f1&&p.image!=null)v=!0}if(b.shouldBreakMaskChain){while(u.length!=0)A.wf(u.pop(),o)}if(i){B.add.lsct=b.layerListExpandedType==2?hd.NH:hd.Qm; B.fh="pass";B.Jp=24;B.bC(b.isVisible);o.u.push(o.jK());if(N=="artboard"){var P=a.clone(),h=X.jZ();P.x=-Math.floor(X.Ry/h); P.y=-Math.floor(X.Es/h);P.d=Math.floor(P.d/h);P.w=Math.floor(P.w/h);B.y2(P);var j=b.backgroundColor,C=j?{i:255*j.red,m:255*j.green,P:255*j.blue}:{i:255,m:255,P:255}; B.add.artb.Clr={t:"Objc",v:L.h.wb(C)};B.add.artb.artboardBackgroundType={t:"long",v:4}}A.wJ(b.layers,o,X,s,E,e,n)}else if(z&&!v){B.add.vmsk=new M.PZ; B.add.vstk=JSON.parse(JSON.stringify(ev.ci.default));B.add.vstk.strokeEnabled.v=!1;B.add.vogk=[];var V=l!=null&&l.frameFXMulti.v.length==1,d=w?w.fills:null,m=w?A.sz(s,d,a,X,B.getName(),o,A.p9(n,b.do_objectID+"_image")):[]; if(m.length==0){if(V)B.add.vstk.fillEnabled.v=!1;else B.add.iOpa=0;B.add.SoCo={classID:"null",Clr:{t:"Objc",v:L.h.wb({i:0,m:0,P:0})}}}else{var R=m[0],g=null,S=null; if(R.type=="SoFi"){g="SoCo";S=ev.k9}if(R.type=="GrFl"){g="GdFl";S=ev.cw}if(R.type=="patternFill"){g="PtFl"; S=ev.SZ}if(g!=null){B.add[g]={classID:"null"};for(var f=0;f0)iC/=2;var bh=i8.v.Fltr.v; bh.Brgh.v=Math.round(b5*255);bh.Cntr.v=Math.round(iC*255);bh.useLegacy.v=!0;d.push(i8)}}}if(v){var bD=gf.patternFillType; if(bD==3){var fq=B.rect.d/B.rect.w,fO=a.d/a.w;if(fqdv.length){d3[d3.length-2]--; iz--;if(d3[d3.length-2]==0){d3.pop();d3.pop()}}d3[d3.length-2]+=dv.length-iz}dv=dv.replace(/\u2028/g,"\n"); dv=dv.replace(/\u2029/g,"\n");dv=dv.replace(/\r/g,"\n");var gw=B.add.TySh.h3;g8.YN(gw,0,dv);if(dv!=""){var iI=b.textBehaviour,g2=w.textStyle,bb=g2?g2.verticalAlignment:0,ir=A.a8r(gw,d3,h9,dv),h=hM.jZ(),dG=g8.$Q(gw,0,1),fr=0; if(dG.oH.Font){var gY=dG.Nd[dG.oH.Font].Name;if(gY=="FontAwesome"||gY=="Ionicons")ir*=.87}var e6=dG.oH.AutoLeading?0:dG.oH.Leading*.6,bt=Math.max(ir,e6)*h,cx=a.d,ci=a.w; if(iI==0){g8.I8(gw,0);var gv=g8.KH(dG.CL);if(gv==1)fr=cx*h;if(gv==2)fr=cx*h*.5;if(bb==0)bt*=1;else bt*=.9}else{g8.I8(gw,1); g8.bi(gw,[0,0,Math.round(cx),Math.round(ci)]);if(iI==2&&bb==0)bt=bt*.2;else if(iI==2&&bb==1){bt=h*.5*(ci-dG.oH.FontSize)}else if(iI==1&&bb==0)bt=bt*.2; else bt=bt*.35}B.add.TySh.t.translate(fr,bt)}}else if(N=="symbolInstance"||N=="symbolMaster"){var gu=b.symbolID; if(e[b.do_objectID])gu=e[b.do_objectID].symbolID;var ak=A.p9(n,b.do_objectID+"_symbolID");if(ak)gu=ak.value; if(gu=="")continue;var hP={};for(var F in e)hP[F]=e[F];if(b.overrides)for(var F in b.overrides)hP[F]=b.overrides[F]; var ai=n.slice(0);if(b.overrideValues)ai=ai.concat(b.overrideValues);var hK=E[gu];if(hK==null){console.log("Unknown master master",b.symbolID); continue}var h3=hw.AS(hK.le.frame),e4=h3.d/a.d,co=h3.w/a.w,aO=X.clone();aO.scale(e4,co);B.add.lsct=hd.Qm; B.fh="pass";B.Jp=24;B.bC(b.isVisible);o.u.push(o.jK());var cC=hK.le;if(o.U4.indexOf(cC)==-1){o.U4.push(cC); A.wJ(cC.layers,o,aO,s,E,hP,ai);o.U4.pop()}}else if(N=="slice"){console.log("slice layers are ignored by now"); continue}else{console.log("unknown layer type: "+N,b);continue}if(w&&w.contextSettings){var hm=w.contextSettings,cu=hm.blendMode; if(cu1){u.push(B);o.u.push(o.jK())}}while(u.length!=0)A.wf(u.pop(),o)};hw.p9=function($,o){for(var f=0; f<$.length;f++)if($[f].overrideName.startsWith(o))return $[f]};hw.a1V=function($,o){var T=0,s=[];while(T+1<$.length){var E=$[T]; T++;if(E>127){E+=128*($[T]-1);T++;if($[T-1]>127){E+=128*($[T]-1);T++}}var e=$[T];T++;s.push(E,e)}return s}; hw.a8r=function($,o,T,s){var E=hw,e=0,b=0,a=0;for(var f=0;fs.length/2;for(var f=0;f0; var P=N.NSStrikethrough;if(P==null)P=N.strikethroughStyle;if(P!=null)z.oH.Strikethrough=P>0;if(N.MSAttributedStringTextTransformAttribute==1)z.oH.FontCaps=2; var h=N.NSParagraphStyle;if(h==null)h=N.paragraphStyle;if(h){var j=h.paragraphSpacing;if(j!=null){z.CL.SpaceAfter=j}var C=h.NSAlignment; if(C==null)C=h.alignment;if(C!=null){var V=0;if(!1){}else if(C==1)V=1;else if(C==2)V=2;else if(C==4)V=0; else{V=C;console.log("unknown align",C)}if(Y&&V<2)V=1-V;z.CL.Justification=V}var d=h.NSMinLineHeight; if(d==null)d=h.minimumLineHeight;if(d!=null){z.oH.AutoLeading=!1;z.oH.Leading=d}}z.CL._Direction=Y?1:0; g8.zA($,b,b+w,z);b+=w}return a};hw.aau=function($,o,T,s,E,e,n){var A=hw,u=JSON.parse(ev.default),Y=!1; for(var f=0;f1e6; if(l.type!="text"&&!p){if(v){var b=n.fo(l.transform);b.lY();var P=a.clone();P.concat(b);w.add.vmsk=new M.PZ; w.add.vmsk.g=n.CV(v);P=P.clone();P.lY();L.A.hR(w.add.vmsk.g,P);w.tF(o)}}else if(!p)alert("Clipping by text has been ignored")}w.add.lsct=hd.NH; w.fh="pass";w.Jp=24;if($.visible!=null)w.bC($.visible);o.u.push(o.jK());var h=u.children,j=i;if(j)j=j.color; if(j)j=j.value;if(i){if(A=="artboard"&&k=="solid"){w.y2(new df(0,0,10,10));w.add.artb.Clr={t:"Objc",v:L.h.wb({i:j.r,m:j.g,P:j.b})}; w.add.artb.artboardBackgroundType={t:"long",v:4}}else{var C=o.$f();C.tM("BACKGROUND");C.Jp|=16;C.add.vstk=JSON.parse(JSON.stringify(ev.ci.default)); C.add.vmsk=new M.PZ;C.add.vmsk.g=n.CV({type:"rect",x:e.x,y:e.y,width:e.d,height:e.w});n.cH(i,k,a,e,e,C,o,s,E); C.tF(o);o.u.push(C)}}for(var f=0;f>>16&255)/255,(gT>>>8&255)/255,(gT>>>0&255)/255]}}g8.zA(bh,hM,hM+d3,fq); hM+=d3}if(iC.type=="area"||iC.type=="autoHeight"){var iz=iC.width,gw=iC.height;g8.I8(bh,1);g8.bi(bh,[0,0,iz,gw!=null?gw:iz*2])}}else console.log(A,$); o.u.push(w)};ar.CV=function($){var o=$.type,T=[{type:6},{type:8,all:0}];if(o=="rect"){var s=$.r,E=$.x,e=$.y,n=$.width,A=$.height; if(s==null)T=L.A.XG.Rect(E,e,n,A,0);else{var u=L.A.x7([E,e,E+n,e,E+n,e+A,E,e+A],s,!1);T.push({type:0,m6:1,length:u.length,ZO:0,Eg:0,aq:1}); T=T.concat(u)}}else if(o=="circle"){var s=$.r;T=L.A.XG.Xi($.cx-s,$.cy-s,2*s,2*s)}else if(o=="ellipse"){var Y=$.rx,b=$.ry; T=L.A.XG.Xi($.cx-Y,$.cy-b,2*Y,2*b)}else if(o=="path"||o=="compound"){var a=Typr.U.SVGToPath($.path); T=L.M.Hz({o:a.cmds,I:a.crds},!1)}else if(o=="line"){var w=$.x1,X=$.x2,N=$.y1,z=$.y2;T=T.concat([{type:0,m6:1,length:2,ZO:0,Eg:0,aq:1}]).concat(L.A.x7([w,N,X,z],0,!0))}else if(o=="polygon"){var i=$.points,u=[]; for(var f=0;f8192)X*=.5;o.Nr=!0;o.d=~~(u.d*X);o.w=~~(u.w*X);o.buffer=L.G(o.d*o.w*4); var N=new fY(X,0,0,X,-u.x*X,-u.y*X),z={h2:fA.Jm(A),aoW:n};fA.xy(e,A.children,o,N,z,new fY,0);if(o.u.length==0){var i=o.$f(); i.tM("Layer");o.u.push(i)}};fA.w6=function($){var o=" ";if($.indexOf(",")!=-1)o=",";return $.split(o).map(parseFloat)}; fA.xy=function($,o,T,s,E,e,n){var A=fA,u=["display","opacity","fill-opacity"];for(var Y=0;Y0){if(a=="text")e=A.XB(b,e); var R=b.getAttribute("viewBox"),g=b.getAttribute("width"),S=b.getAttribute("height");if(R&&g&&S){var F=fA.w6(R),r=A.XB(b),q=new fY; q.translate(-F[0],-F[1]);q.scale(parseFloat(g)/F[2],parseFloat(S)/F[3]);q.translate(r.Ry,r.Es);q.concat(i); i=q}var W=b.children.length,Z=E.h2;E.h2=X;var I=a!="text"&&a!="textPath"||W>1;if(I){var _=O.N9();O.add.lsct=n<2&&_&&(w==null||!w.endsWith(":::"))?hd.NH:hd.Qm; O.fh="pass";O.Jp=24;O.bC(_);T.u.push(T.jK())}A.xy($,b.children,T,i,E,e,n+1);if(I)T.u.push(O);else{var cN=T.u[T.u.length-1]; cN.opacity=O.opacity;cN.fh=O.fh}E.h2=Z}else if(a=="use"){var q=A.XB(b);q.concat(i);var ce=A.xu(b),gf=$.getElementById(ce.slice(1)),Z=E.h2; E.h2=X;A.xy($,[gf],T,q,E,e,n+1);E.h2=Z}else if(a=="path"||a=="rect"||a=="circle"||a=="ellipse"||a=="polygon"||a=="polyline"||a=="line"){O.Jp|=16; O.add.vmsk=new M.PZ;O.add.vstk=JSON.parse(JSON.stringify(ev.ci.default));O.add.vstk.strokeEnabled.v=!1; var K=O.add.vstk,j=O.add.vmsk,cv=X.fill,f0=cv=="none"||X["fill-opacity"]&&parseFloat(X["fill-opacity"])==0; j.g=A.CV($,b,X["fill-rule"]=="evenodd",f0);L.A.hR(j.g,i);var i8=L.A.hT(j.g),b5=X.stroke,iC=X["stroke-width"],an=X["stroke-dasharray"],cO=X["stroke-linejoin"],bh=X["stroke-linecap"],bD=X["paint-order"]; if(b5==null||b5=="none"||b5=="null"){}else{var fq=A.Z5($,b5,i,i8),fO=["SoFi","GrFl","patternFill"].indexOf(fq.type),g6=fq.H.v.Opct.v,h9=1; if(g6.val!=100){O.opacity=Math.round(O.opacity*g6.val/100);g6.val=100}var hM=[ev.k9,ev.cw,ev.SZ][fO],d3=K.strokeStyleContent.v={classID:ev.ci.RG[fO]}; for(var f=0;f0){var iz=A.Jm(b.children[0],E.aoW);for(var N in iz)if(u.indexOf(N)==-1)X[N]=iz[N]}var gw=X["xml:space"],iI=b.textContent; if(gw=="preserve")iI=iI.replace(/\t/g," ").replace(/\n/g," ");if(w==null)O.tM(iI);O.add.lnsr="rend"; O.add.TySh=g8.rm(0,0);O.add.TySh.QH=new df(0,0,100,100);O.add.TySh.t=q.clone();var g2=O.add.TySh.h3; g8.YN(g2,0,iI);var cv=X.fill,bb=X["font-weight"],ir=X["font-family"],dG=X["text-decoration"],b5=X.stroke,iC=X["stroke-width"],gY=X["dominant-baseline"]; if(gY=="text-before-edge")e6=z;else if(gY=="middle")e6=z/2;else if(gY=="hanging")e6=z;if(e6!=0)O.add.TySh.t.translate(0,e6); var fr=g8.$Q(g2,0,1);if(cv&&cv!="none"){var bt=CSS.So(cv);fr.oH.FillColor={Type:1,Values:[1,bt.i/255,bt.m/255,bt.P/255]}}if(dG=="underline")fr.oH.Underline=!0; fr.oH.FontSize=Math.round(z);g8.PL(fr,"LiberationSans");if(bb=="bold")g8.PL(fr,"LiberationSans-Bold"); if(ir){ir=ir.split(",")[0].trim();if(ir[0]=="\"")ir=ir.slice(1);if(ir[ir.length-1]=="\"")ir=ir.slice(0,ir.length-1); var cx=ir+":"+(bb?bb:"normal"),ci={"'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(ci[cx])g8.PL(fr,ci[cx]);else g8.PL(fr,ir)}if(X["text-anchor"])fr.CL.Justification=["start","end","middle"].indexOf(X["text-anchor"]); g8.zA(g2,0,iI.length,fr);if(b5==null||b5=="none"){}else{var gv=JSON.parse(ev.Qo[ev.order.indexOf("FrFX")]); gv.Clr.v=L.h.wb(CSS.So(b5));gv.Sz.v.val=Math.round(parseFloat(iC)*D.p.jZ(q));var gu=JSON.parse(ev.default); for(var f=0;f"); var A={Rk:[],Vi:[],oN:0,LD:0,h4:0,TD:{},ZV:{},zW:0,wG:{},PJ:{},pA:0,vv:[]};fA.Dj($,A,$.root.children,1,o,T); if(A.Rk.length!=0){s.push(E._A(1)+"");s=s.concat(A.Rk);s.push(E._A(1)+"")}s.push(E._A(1)+"");s=s.concat(A.Vi);s.push("");s=s.join(o.a23?"\n":"");if(E.ur){console.log(E.ur); var Y="SVGParser.gen.db = [\n";for(var f=0;f");n.Dj($,o,P,s+1,E,e); o.Vi.push(n._A(s)+"")}}else if(b.d5()&&w==null){var h=new df(0,0,$.d,$.w);n.kJ(z,b.add,o,h);if(z.length!=0)O.push("style=\""+z.join(";")+"\""); o.Vi.push(n._A(s)+"")}else if(w&&b.add.SoLd==null){var h=L.A.hT(w.g,null,!0),j=L.A.xw(w.g); if(j._9!=0){O.push("fill-rule=\"evenodd\"")}var C=j.app;n.kJ(z,b.add,o,h);if(z.length!=0){var V=z.join(";"),d=o.PJ[V]; if(d==null){d="shp"+o.pA;o.pA++;o.PJ[V]=d;o.wG[d]=V}c.push(d)}o.Vi.push(n._A(s)+""); if(n.ur&&n.ur[n.ur.length-1]){var m=L.M.Ld(w.g);m.I=m.I.map(Math.round);var R=n.ur[n.ur.length-1];R.YG+=JSON.stringify(m).length; R.kZ.push([z[0].split("#").pop(),m])}}else if(N&&E.al2){var g=N.h3,S=new iq(g,e),F=null;if(v)F=CSS.Jr(v.Clr.v); if(p){var h=b.rect.clone();n.q6(p,o,h);F=" url(#grd"+o.oN+")"}if(F)O.push("fill=\""+F+"\"");u(b,z);if(z.length!=0)O.push("style=\""+z.join(";")+"\""); var r=hA.hv(S,N),q=L.M.ie(r);for(var W in q){if(F==null)O.push("fill=\""+W+"\"");var Z=q[W],C=Typr.U.pathToSVG({crds:Z.I,cmds:Z.o},2); o.Vi.push(n._A(s)+"");if(F==null)O.pop()}}else if(N&&!E.aef){var g=N.h3,I=N.t.clone(),F=null,i8=0,b5=0; if(g8.tb(g)==1){var _=g8.$Q(g,0,0).CL.Justification,cN=0,ce=g8.Hs(g)[2];if(_==2)cN=ce/2;if(_==1)cN=ce; I.translate(cN,0)}z.push("transform: "+n.di(I));var gf=g8.m5(g),K=g.EngineDict.ParagraphRun,cv=K.RunArray,f0=K.RunLengthArray; u(b,z);if(z.length!=0)O.push("style=\""+z.join(";")+"\"");o.Vi.push(n._A(s)+""); if(v)F=CSS.Jr(v.Clr.v);if(p){var h=b.rect.clone();h.x-=I.Ry;h.y-=I.Es;n.q6(p,o,h);F=" url(#grd"+o.oN+")"}for(var f=0; f"+n.U8(cO)+"")}i8+=an}o.Vi.push(n._A(s)+"")}else if(b.add.SoLd&&E.mv){var d3=b.add.SoLd,h9=d3.Idnt.v,cs=0,dv=d3.Crop?d3.Crop.v:null; if(o.ZV[h9]!=null)cs=o.ZV[h9];else{o.zW++;cs=o.zW;o.ZV[h9]=o.zW;var ec=$.Rf(h9,dv),gw="";if(ec==null)return; var gT=ec.wc,iz=eY.RP(ec.raw.buffer);if(iz=="pdf"){var iI=new iG("h");eY.Q1("PDF").yj(ec.raw.buffer,iI); iI.eA();iI.wT();iI.T();iI.ir();if(d3.Crop&&d3.Crop.v==1){D.LY.Mo(iI,iI.root.rX(iI,!0))}var g2=eY.Q1("SVG").tC(iI,iI.d,iI.w,null,{vv:e}); gw="data:image/svg+xml;base64,"+eY.Qj(g2)}else if(iz=="jpg"||iz=="png"||iz=="gif"||iz=="svg"){var bb={jpg:"image/jpg",png:"image/png",jpg:"image/jpg",svg:"image/svg+xml"}; gw="data:"+bb[iz]+";base64,"+eY.Qj(ec.raw.buffer)}else{gw=eY.rv(gT[0].buffer,gT[1].d,gT[1].w)}o.Rk.push(n._A(2)+"")}var ir=L.$.bH(d3),dG=[]; fA.OR(b,w,o,dG);if(dG.length!=0)o.Vi.push(n._A(s)+"");if(z.length!=0)O.push("style=\""+z.join(";")+"\""); var gY=n.Df(O,c);o.Vi.push(n._A(s)+"");if(dG.length!=0)o.Vi.push(n._A(s)+"")}else if(!b.rect.p4()&&(E.mv||N)){if(z.length!=0)O.push("style=\""+z.join(";")+"\""); var gY=n.Df(O,c),e6=b.buffer;if(v)e6=fW.lv(e6,v,b.rect);var fr=b.rect;o.zW++;var gw=eY.rv(e6.buffer,fr.d,fr.w,"png",null,!0); o.Rk.push(n._A(2)+""); o.Vi.push(n._A(s)+"")}}};fA.cE=function($){if($==null)return""; var o=$.h3,T=g8.m5(o);T=T.slice(0,T.length-1).replace(/"/g,""");return"aria-label=\""+T+"\" "}; fA.Df=function($,o){if(o.length!=0)$.push("class=\""+o.join(" ")+"\"");return $.join(" ")};fA.U8=function($){return String($).replace(/&/g,"&").replace(//g,">").replace(/\u0022/g,""")}; fA.di=function($){var o=[$.Ca,$.P,$.Z9,$.Um,$.Ry,$.Es].map(fA.S2);return"matrix("+o.join(",")+")"};fA.OR=function($,o,T,s){var E=fA; if(o||$.add.artb){var e;if(o)e=L.A.xw(o.g).app;else{var n=$.co(),A=L.M.Uo(n);e=Typr.U.pathToSVG({crds:A.I,cmds:A.o},2)}T.h4++; s.push("clip-path=\"url(#cp"+T.h4+")\"");T.Rk.push(E._A(2)+""); T.Rk.push(E._A(3)+"");T.Rk.push(E._A(2)+"")}};fA.kJ=function($,o,T,s){var E=fA,e=o.vstk,n=o.vmsk,A=o.lmfx; if(n&&n.DI!=0){var u=E.S2(n.DI);if(T.TD[u]==null){T.LD++;T.TD[u]=T.LD;T.Rk.push(E._A(2)+" ")}$.push("filter: url(#flt"+T.TD[u]+")")}var Y=fW.l_(A,o),b=Y[0],a=Y[1]; if(e&&!e.fillEnabled.v)$.push("fill: none");else if(b){var w=CSS.Jr(b.Clr.v);$.push("fill: "+w)}else if(a){E.q6(a,T,s); $.push("fill: url(#grd"+T.oN+")")}if(e==null||!e.strokeEnabled.v)e=fW.oU(A);if(e&&e.strokeEnabled.v){var X=e.strokeStyleContent.v,N=X.classID; if(N=="solidColorLayer")$.push("stroke: "+CSS.Jr(X.Clr.v));else{E.q6(X,T,s);$.push("stroke: url(#grd"+T.oN+")")}var z=ev.ci.JZ.indexOf(e.strokeStyleLineCapType.v.strokeStyleLineCapType),i=ev.ci.join.indexOf(e.strokeStyleLineJoinType.v.strokeStyleLineJoinType),k=e.strokeStyleOpacity.v.val/100,Q=e.strokeStyleLineWidth.v.val,O=ev.ci.k0.indexOf(e.strokeStyleLineAlignment.v.strokeStyleLineAlignment); if(O==2){Q*=2;$.push("paint-order:stroke fill markers")}var c=e.strokeStyleLineDashSet.v,B=[];for(var f=0; f"); if(Y==1)o.Rk.push(w+" cx=\""+s.S2(a[0].x)+"\" cy=\""+s.S2(a[0].y)+"\" r=\""+s.S2(aY.Sa(a[0],a[1]))+"\">"); if(u=="Rflc"){for(var X=0;X<2;X++){var N=X==0?e:n;for(var f=N.length-1;f>=0;f--){var z=N[f];z.v.Lctn.v=2048+(z.v.Lctn.v>>>1); var i=JSON.parse(JSON.stringify(z));i.v.Lctn.v=4096-i.v.Lctn.v;N.push(i)}N.sort(function(B,G){return B.v.Lctn.v-G.v.Lctn.v})}}var k=$.Rvrs.v; if(k){e.reverse();n.reverse()}for(var f=0;f")}o.Rk.push(s._A(2)+"")}; fA.XG=function($,o,T,s,E){var e=[],n=fA.XG,A=!1,u={N0:$,cQ:o,LM:[!0,!0,!0],Vy:!1,dh:T,a9S:0};u.nb=Math.round(Math.max($,o)*(.02+n.D9(u)*.03)); u.vD=n.a4C(u);u.Ei=n.akg(u.vD,(n.D9(u)<.5?-1:1)*(.2+n.D9(u)*.3));if(n.D9(u)<.5){var Y=u.vD;u.vD=u.Ei; u.Ei=Y}u.adY=n.D9(u)<.4&&n.aoj(u.Ei,{i:1,m:1,P:1})>.3;u.adK=n.D9(u)<.5?0:1;e.push(""); u.eN=s[Math.floor(n.zz(u)*s.length)];u.xq=s[Math.floor(n.zz(u)*s.length)];e.push(""); var b=[0,0,$,o],a=b;if(E==null)e.push(""); else{u.Vy=!0;n.vt(u,b,e,E)}if(n.D9(u)<.25&&!u.Vy){u.LM[0]=u.LM[2]=!1;n.a1X(b,u,e);a=b}else if(n.D9(u)<.25||u.Vy)a=b; else{var w=.52+n.D9(u)*.2;if(n.D9(u)<.5)w=1-w;var X=b.slice(0),N=b.slice(0);if(n.D9(u)<.5)X[2]=N[0]=Math.round(w*$); else X[3]=N[1]=Math.round(w*o);if(n.D9(u)<.5){var Y=X;X=N;N=Y}a=X;n.ahe(u,N,e,E)}n.aru(u,a,e);e.push(""); e=e.join("\n");var z=L.G(Math.round(e.length*1.5)),i=t.Jq(e,z,0);return[z.buffer.slice(0,i),u.tY]};fA.XG.a1X=function($,o,T){var s=fA.XG,E=$[2]-$[0],e=$[3]-$[1]; if(s.D9(o)<.5){T.push("")}else if(s.D9(o)<-.4){s.alA(o,$,T)}else{var n=s.D9(o)<.5?0:1,A=(n==0?e:E)/4,u=s.Bc(o,n,$,T,A,!0),u=s.Bc(o,n+2,$,T,A,!0,u)}}; fA.XG.aru=function($,o,T){var s=fA.XG,E="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("-"),e=2*Math.floor(s.D9($)*E.length/2),n=o[2]-o[0],A=o[3]-o[1],Y=0,a=0; $.AE=($.N0+n)*.5*(.04+s.D9($)*.05);$.AE=Math.min($.AE,A*.4,n*.12);$.AE=Math.round($.AE);var u=Math.min($.AE*E[e].length*(.35+.3*s.D9($)),n*.9),b=(o[1]+o[3])/2,w=L.Hl($.vD)<.85?{i:1,m:1,P:1}:{i:.1,m:.1,P:.1}; if(s.D9($)<.25&&$.LM[0]){a=0;Y=o[0]+$.nb}else if(s.D9($)<.33&&$.LM[2]){a=2;Y=o[2]-$.nb}else{a=1;Y=(o[0]+o[2])/2}var X=w.i==1?"0,0,0":"255,255,255",N=$.Vy&&s.D9($)<1; if(N){var z=o[0],i=n,k=b-$.AE*1.1,Q=$.AE*2.2,O=.7;if(a==1&&s.D9($)<.5){z=k=.2*Math.min(n,A);i=n-2*k; Q=A-k-k}else if(s.D9($)<.7){z=k=0;i=n;Q=A;O=.25}T.push("")}if(s.D9($)<.4){var c=$.AE*.07; c*=1.5+s.D9($)*1;if(a==-1&&n/A<3&&!N){T.push(""); T.push("")}if(a!=1){T.push(""); Y+=(a==0?1:-1)*$.AE/3}}var B=$.AE*.4;T.push(s.C2(E[e+1],Y,b+B*1.6,B,w,a,$.xq));T.push(s.C2(E[e],Y,b+$.AE*.04,$.AE,w,a,$.eN))}; fA.XG.ahe=function($,o,T,s){var E=o[2]-o[0],e=o[3]-o[1],n=Math.max(E,e),A=Math.min(E,e),u=fA.XG;if(n/A<5&&!$.Vy&&!1){u.vt($,o,T,s)}else if(u.D9($)<0)T.push(""); else{var Y=0;if(o[3]!=$.cQ)Y=0;if(o[2]!=$.N0)Y=3;if(o[0]!=0)Y=1;if(o[1]!=0)Y=2;var b=Y+2&3;if(n/A<3){var a=u.apd(b),w=a[Math.round(u.D9($)*(a.length-1))],X=w.jA.slice(0,4),N=X.indexOf(1); w=JSON.parse(JSON.stringify(w));var z=-1;if(X!="0000"){var i=new fY;if(w.jA[5]=="0"){if(N==3&&Y==1){z=1; i.scale(-1,1)}else z=N}else{var k=b;while(k==b)k=Math.floor(u.D9($)*4)&3;i.rotate((-N+k)*Math.PI/2)}u.t(w,i)}var Q=u.L3(w),O=E-2*$.nb,c=e-2*$.nb; if(z!=-1){if((z&1)==0)c-=$.nb;else O-=$.nb}var B=Math.min(O/Q.d,c/Q.w),G=new fY;G.translate(-Q.x,-Q.y); G.scale(B,B);var l=(E-Q.d*B)/2,v=(e-Q.w*B)/2;if(z!=-1){if(z==3)l=0;if(z==0)v=0;if(z==1)l=E-Q.d*B;if(z==2)v=e-Q.w*B}G.translate(o[0]+l,o[1]+v); u.U5($,w,G,$.Ei,T)}else{u.Bc($,Y,o,T,1e9)}}};fA.XG.vt=function($,o,T,s){var E=o[2]-o[0],e=o[3]-o[1],n=Math.max(E,e),A=Math.min(E,e),u=fA.XG,Y=u.zz($),b,a,w,X=s[0]instanceof ArrayBuffer; if(X){b="data:image/jpg;base64,"+fV.lp(s[0]);a=s[1];w=s[2]}else{var N=Math.floor(Y*s.length),z=s[N]; $.tY=z;b=z.webformatURL;a=z.webformatWidth;w=z.webformatHeight}var i=o[0],k=o[1],Q=E,O=e;if(E/e>a/w){O=Q*w/a; k=k-(O-e)/2}else{Q=O*a/w;i=i-(Q-E)/2}if(X){T.push("");T.push(""); T.push("");var c=Q/a;T.push("")}else{var B="cp"+Math.random(); T.push("");T.push(""); T.push("");T.push("")}}; fA.XG.C2=function($,o,T,s,E,e,n){var A=fA.XG;return""+$+""}; fA.XG.U5=function($,o,T,s,E){var e=fA.XG,n=[];for(var f=0;f"); for(var f=0;f")}E.push("")}; fA.XG.alA=function($,o,T){var s=fA.XG,E=fA.XG.ZH,e=[];for(var f=0;f0){k.w+=k.y; k.y=0}if((o&1)==0){O=z;Q=i}else{Q=z;O=i}var c=Math.min(Math.min(.5+.5*u.D9($))*Math.min(i,z),E)/k.w,B=Math.ceil(Q/(1e3*c)),G=new fY,l=new fY; l.scale(c,c);if(o==0||o==2){l.translate(-(i/2),-(z/2));l.rotate(-o*Math.PI/2);l.translate(i/2+T[0],z/2+T[1])}else{l.rotate(Math.PI/2); l.scale(1,-1);l.translate(T[0],T[1]);if(o==1){l.scale(-1,1);l.translate(i,0)}}s.push(""); for(var f=0;f"); return X};fA.XG.Rect=function($,o,T,s){return Typr.U.pathToSVG({crds:[$,o,$+T,o,$+T,o+s,$,o+s],cmds:["M","L","L","L","Z"]})}; fA.XG.a5n=function($,o,T,s,E){var e=[$,o,$+T,o,$+T,o+s,$,o+s];$+=E;o+=E;T-=2*E;s-=2*E;e.push($,o,$,o+s,$+T,o+s,$+T,o); return Typr.U.pathToSVG({crds:e,cmds:"M L L L Z M L L L Z".split(" ")})};fA.XG.akg=function($,o){var T=L.QZ($.i,$.m,$.P); T.FI=Math.max(.1,Math.min(.9,T.FI+o));return L.AP(T.cQ,T.rZ,T.FI)};fA.XG.a1D=function($,o){var T=L.QZ($.i,$.m,$.P); T.cQ+=o;return L.AP(T.cQ,T.rZ,T.FI)};fA.XG.acQ=function($){var o=L.QZ($.i,$.m,$.P);o.FI=1-o.FI;return L.AP(o.cQ,o.rZ,o.FI)}; fA.XG.aoj=function($,o){var T=$.i-o.i,s=$.m-o.m,E=$.P-o.P;return Math.sqrt(T*T+s*s+E*E)};fA.XG.a4C=function($){var o=fA.XG; return{i:o.D9($),m:o.D9($),P:o.D9($)}};fA.XG.CQ=function($){return CSS.xr({i:$.i*255,m:$.m*255,P:$.P*255})}; fA.XG.L3=function($){var o=$.kZ,T=new df;for(var f=0;f>>8*o&255;return T*(.99999999/255)};fA.XG.zz=function($){var o=fA.XG.fi($.dh); $.dh=fA.XG.fi(o);return o*(1/4294967295)};fA.XG.fi=function($){$=($^61^$>>>16)>>>0;$=$+($<<3)>>>0;$=($^$>>>4)>>>0; $=$*668265261>>>0;$=($^$>>>15)>>>0;return $};fA.XG.ZH=[{jA:"0001-0-bird",kZ:[["4b3c34",{o:"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(" "),I:[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",{o:"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(" "),I:[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",{o:"M C C C C C C C C C C C C L Z".split(" "),I:[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]}]]},{jA:"0001-0-bird2",kZ:[["ff7f2a",{o:"M L L L Z M L L L Z".split(" "),I:[296,0,296,62,335,62,296,0,357,0,357,62,318,62,357,0]}],["b588c1",{o:"M C C C C C C C C C C C L Z".split(" "),I:[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",{o:"M C C C C C C L Z M C C Z".split(" "),I:[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",{o:"M L L L Z M L L L Z".split(" "),I:[326,258,334,315,323,316,326,258,298,262,296,318,286,317,298,262]}],["4b3c34",{o:"M L C C C C C C C C L Z".split(" "),I:[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",{o:"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(" "),I:[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]}]]},{jA:"0000-1-flower",kZ:[["7a59a2",{o:"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(" "),I:[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]}]]},{jA:"0000-1-flower",kZ:[["d13777",{o:"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(" "),I:[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]}]]},{jA:"0000-1-flower",kZ:[["ffac42",{o:"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(" "),I:[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]}]]},{jA:"0000-1-flower",kZ:[["d04040",{o:"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(" "),I:[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]}]]},{jA:"0000-1-flower",kZ:[["ec7272",{o:"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(" "),I:[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",{o:"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(" "),I:[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]}]]},{jA:"0000-0-hearts",kZ:[["d17070",{o:"M C C C C C C C C C L Z".split(" "),I:[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",{o:"M C C C C C C C C C L Z".split(" "),I:[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",{o:"M C C C C C C C C C L Z".split(" "),I:[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]}]]},{jA:"0000-0-anchor",kZ:[["2a3b66",{o:"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(" "),I:[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]}]]},{jA:"0000-1-leaf",kZ:[["fbb600",{o:"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(" "),I:[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]}]]},{jA:"0000-1-acorn",kZ:[["a05a2c",{o:"M C C C C C C C L Z".split(" "),I:[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",{o:"M C C C C C C C C C C C Z".split(" "),I:[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]}]]},{jA:"0000-0-skull",kZ:[["808080",{o:"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(" "),I:[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]}]]},{jA:"0000-0-ghost",kZ:[["e6e6e6",{o:"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(" "),I:[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",{o:"M C C C C Z M C C C C Z".split(" "),I:[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]}]]},{jA:"1001-1-rose",kZ:[["9e1460",{o:"M C C C C C C C C C Z M C C C C C C C C C Z".split(" "),I:[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",{o:"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(" "),I:[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]}]]},{jA:"1001-1-curls",kZ:[["53a7ab",{o:"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(" "),I:[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",{o:"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(" "),I:[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]}]]},{jA:"0111-0-pines",kZ:[["e9e9e9",{o:"M C C C C C C C C L L L Z".split(" "),I:[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",{o:"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(" "),I:[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]}]]},{jA:"0111-0-flowers",kZ:[["8cae40",{o:"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(" "),I:[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",{o:"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(" "),I:[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]}]]},{jA:"1101-1-confetti",kZ:[["e789ff",{o:"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(" "),I:[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",{o:"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(" "),I:[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]}]]},{jA:"1101-1-branch",kZ:[["7f500b",{o:"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(" "),I:[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",{o:"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(" "),I:[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]}]]},{jA:"1101-1-sticks",kZ:[["ec7272",{o:"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(" "),I:[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",{o:"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(" "),I:[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]}]]},{jA:"1101-1-dots",kZ:[["ec7272",{o:"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(" "),I:[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",{o:"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(" "),I:[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",{o:["M","C","C","Z"],I:[389,224,389,224,410,230,410,230,410,230,389,224,389,224]}]]},{jA:"1101-1-strips",kZ:[["ffc88c",{o:"M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[-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",{o:"M L L L L Z M L L L L Z M L L L L Z".split(" "),I:[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",{o:["M","C","C","Z"],I:[407,217,407,217,428,223,428,223,428,223,407,217,407,217]}]]},{jA:"1101-1-circs",kZ:[["ec7272",{o:"M C C C C Z M C C C C Z".split(" "),I:[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",{o:"M C C C C Z M C C C C Z".split(" "),I:[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",{o:["M","C","C","Z"],I:[530,273,530,273,551,279,551,279,551,279,530,273,530,273]}]]},{jA:"1101-1-squares",kZ:[["014ea7",{o:"M L L L L Z M L L L L Z".split(" "),I:[0,120,124,120,124,244,0,244,0,120,497,120,621,120,621,244,497,244,497,120]}],["fc54ff",{o:"M L L L L Z M L L L L Z".split(" "),I:[249,120,373,120,373,244,249,244,249,120,746,120,870,120,870,244,746,244,746,120]}],["88a500",{o:["M","C","C","Z"],I:[389,354,389,354,410,360,410,360,410,360,389,354,389,354]}]]},{jA:"1101-0-christmas",kZ:[["014ea7",{o:"M C C C C Z M C C C C Z M L L L L Z".split(" "),I:[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",{o:"M C C C C Z M C C C C Z M L L L L Z".split(" "),I:[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 hn={};hn.parse=function($){var o=new Uint8Array($),T=null;if(o[0]==80&&o[1]==75){var s=Date.now(),E=UZIP.parse(o.buffer),T=E["document.json"]; T=JSON.parse(t.LK(T,0,T.length));hn.MO(T,E)}else{var e=bk.parse($);T=hn.Wn(e[2][0][1])}return T};hn.MO=function($,o){var T=typeof $; if(T=="string"||T=="number"||T=="boolean")return $;if($ instanceof Array){for(var f=0;f<$.length;f++)$[f]=hn.MO($[f],o); return $}var s=$._class;if(s==null)return $;if(s=="MSJSONFileReference"){var E=$._ref;if(!1){}else if(o[E+".json"]!=null){var e=o[E+".json"],n=e.length; for(var f=0;f0){var O=Math.min(100,k);Q.push(O,0);k-=O}N=new Uint8Array(Q)}z=X.NSAttributes instanceof Array?X.NSAttributes:[X.NSAttributes]; var c={$class:"NSAttributedString",NSString:i,NSAttributes:z};w.attributedString={_class:"MSAttributedString",archivedAttributedString:c}; c.NSAttributeInfo={$class:"NSMutableData","NS.data":N};delete w.storage}return s};hn.M8={mo:function($,o){return $[o+1]<<8|$[o]},s:function($,o){return $[o+3]<<24|$[o+2]<<16|$[o+1]<<8|$[o]},en:function($,o,T){var s=""; for(var f=0;f>4,a=Y&15,X=null; u+=1;if([4,5,6,10,12,13].indexOf(b)!=-1&&a==15){var w=A.Cv($,u);u+=w.YG;a=w.H}if(!1){}else if(b==0)X=a==8?!1:a==9?!0:null; else if(b==1)X=A.Cv($,u-1).H;else if(b==2)X=1<=12&&(n&1)==0){var A=n-13>>1,u=new Uint8Array(A); bk.w0($,T,u,0,A);e.push(u);T+=A}else if(n>=13&&(n&1)==1){var A=n-12>>1;e.push(bk.LK($,T,A));T+=A}else throw"unknonw type "+n}return e},Ij:function($){if(!($[18]==1&&$[19]==1&&$[20]==0&&$[21]==64&&$[22]==32&&$[23]==32))throw"unexpected SQL3 header"; var o={Rw:bk.en($,0,15),uH:bk.mo($,16),a9m:bk.s($,24),size:bk.s($,28),aj5:bk.s($,32),ai5:bk.s($,36),af$:bk.s($,40),anz:bk.s($,44),a6T:bk.s($,48),a1y:bk.s($,52),amb:bk.s($,56),api:bk.s($,60),aje:bk.s($,64)!=0,aoJ:bk.s($,68),afx:bk.s($,92),a9y:bk.s($,96)}; if(o.uH==1)o.uH=65536;if(o.amb!=1)throw"unsupported text encoding "+o.amb;return o},acB:function($,o){return $[o]<<16|$[o+1]<<8|$[o+2]},abn:function($,o){var T=bk.acB($,o),s=T&8388608; return s?-(16777215-T+1):T},a0n:function($,o){bk.fm[0]=$[o];return bk.ajj[0]},Cv:function($,o){var T=bk.fm; for(var f=0;f<4;f++)T[f]=$[o+3-f];return bk.akq[0]},FU:function($,o){var T=bk.fm;T[0]=$[o+1];T[1]=$[o]; return bk.acJ[0]},mo:function($,o){return $[o]<<8|$[o+1]},s:function($,o){return $[o]<<24|$[o+1]<<16|$[o+2]<<8|$[o+3]},a6$:function($,o){var T=bk.fm; for(var f=0;f<8;f++)T[f]=$[o+7-f];return bk.abQ[0]},Nv:function($,o){var T=o,J=0;while(!0){var s=$[o]; o++;J=J*128+(s&127);if(s<128)break}return{ed:J,YG:o-T}},en:function($,o,T){var s="";for(var f=0;f2*8192*8192)A++;e.scale(1/A,1/A);this.a9a=[$,o,T,s];var A=e.jZ();$=Math.round($*A); o=Math.round(o*A);T=Math.round(T*A);s=Math.round(s*A);var Y=this.ZU,b=this.d4;if(b==null){e.Ry=-$}else{var a=b[2]-b[0]+30,w=Math.round(T-$)+30; if(this.zD.x+a+w>8192){e.Ry=-$;this.zD.x=0;this.zD.y+=this.lk+120;this.lk=0}else{e.Ry+=a;this.zD.x+=a}}e.Es=this.zD.y+(this.aoq?s:-o); this.lk=Math.max(this.lk,Math.round(s-o));this.d4=[$,o,T,s];Y.u.push(Y.jK())};cn.prototype.sK=function(){var $=this.ZU,o=$.u[$.u.length-1]; return o};cn.prototype.vq=function(){var $=JSON.parse(JSON.stringify(ev.ci.default));$.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter"; $.strokeEnabled.v=!1;$.fillEnabled.v=!1;return $};cn.prototype.Ox=function(){var $=this.ZU,o=$.$f(); o.tM("Path "+$.u.length);this.ZU.u.push(o);o.Jp|=16;o.add.SoCo={classID:"null",Clr:{t:"Objc",v:L.h.wb({i:0,m:0,P:0})}}; o.add.vmsk=new M.PZ;o.add.vstk=this.vq();return o};cn.prototype.SO=function($){var o={I:$.crds,o:$.cmds},T=L.M.Hz(o,!1); L.A.hR(T,this.OC);return T};cn.a1h=function($,o){for(var f=0;f<$.length;f++)if($[f].m6!=null)$[f].m6=o}; cn.a5k=function($){return Math.sqrt(Math.abs($[0]*$[3]-$[1]*$[2]))};cn.BT=function($){return L.h.wb({i:$[0]*255,m:$[1]*255,P:$[2]*255})}; cn.jt=function($){return new fY($[0],$[1],$[2],$[3],$[4],$[5])};cn.prototype.Stroke=function($){if(this.iE!=-1&&this.iE!=this.P5)return; if($.pth.cmds.length<=1)return;var o=this.SO($.pth);if(o.length<=2)return;this.Lg($);cn.a1h(o,-1);o[2].m6=1; var T=cn.BT($.COLR),s=this.sK(),E=this.vq();cn.qj(E,$,this.OC.jZ(),T);var e=s!=null&&s.add.vmsk!=null&&!s.p3(),n=e&&!s.add.vstk.strokeEnabled.v&&M.PZ.a7S(s.add.vmsk.g,o,!0),A=e&&!s.add.vstk.fillEnabled.v&&JSON.stringify(E)==JSON.stringify(s.add.vstk); if(A){s.add.vmsk.g=s.add.vmsk.g.concat(o.slice(2))}else if(n){s.add.vstk=E;E.fillEnabled.v=!0}else{s=this.Ox(); s.add.vmsk.g=o;s.add.vstk=E}};cn.qj=function($,o,T,s){$.strokeEnabled.v=!0;$.strokeStyleMiterLimit.v=o.mlimit; $.strokeStyleLineDashSet.v=fW.FG(o.dash,1/o.lwidth);$.strokeStyleLineDashOffset.v.val=o.doff;$.strokeStyleLineJoinType.v.strokeStyleLineJoinType=ev.ci.join[o.ljoin]; $.strokeStyleLineCapType.v.strokeStyleLineCapType=ev.ci.JZ[o.lcap];$.strokeStyleLineWidth.v.val=Math.max(.4,o.lwidth*cn.a5k(o.ctm)*T); $.strokeStyleContent.v.Clr.v=s};cn.prototype.Fill=function($,o){if(this.iE!=-1&&this.iE!=this.P5)return; if($.ca==0)return;var T=$.pth.cmds;if(T.length==0)return;if(T.length==2&&JSON.stringify(T)=="[\"M\",\"L\"]")return; var s=L.M.L3($.cpth.crds),E=L.M.L3($.pth.crds);if(E.Sr(s).p4())return;var e=$.pth,n=UDOC.G.isBox(e,[E.x,E.y,E.x+E.d,E.y+E.w]),A=$.cpth,u=UDOC.G.isBox(A,[s.x,s.y,s.x+s.d,s.y+s.w]); if(n&&u&&E.Y()>s.Y()*2){var Y=E.Sr(s),b=Y.x,a=Y.y,w=b+Y.d,X=a+Y.w;e={cmds:["M","L","L","L","Z"],crds:[b,a,w,a,w,X,b,X]}}else if(this.bN==null&&UDOC.G.isBox(e,[E.x,E.y,E.x+E.d,E.y+E.w])&&E.Yg(s)){e=A}else this.Lg($); var N=this.SO(e),z=L.M.Uo(E);L.M.t(z.I,this.OC,z.I);E=L.M.L3(z.I);var i=cn.lX($.colr,this.OC,E),k=this.sK(),Q=k!=null&&k.opacity==Math.round(255*$.ca)&&k.add.vstk!=null&&!k.add.vstk.strokeEnabled.v&&k.add.SoCo&&i.type=="SoFi"&&JSON.stringify(k.add.SoCo.Clr.v)==JSON.stringify(i.H.v.Clr.v); if(Q){var O=!1;for(var f=0;f=0&&$.u[f].add.lsct!=hd.ic)f--;var s=this.MR;if(s){var E=new df,e=o;while(e>f){E=$.u[e].TC(this.ZU,!1,!0); e--}T=s.Yg(E)}if(T){this.WX.splice(f,1);$.u.splice(f,1)}else{$.u.push(this.ajG)}this.bN=null}};cn.lX=function($,o,T){var s,E; if($.length!=null){s="SoFi";var e=JSON.parse(ev.Qo[ev.order.indexOf("SoFi")]);E={t:"Objc",v:e};E.v.Clr.v=cn.BT($)}else{var n=cn.a1g($,o,T); s="GrFl";E={t:"Objc",v:n}}return{type:s,H:E}};cn.a1g=function($,o,T){var s=JSON.parse(ev.Qo[ev.order.indexOf("GrFl")]),E=s.Grad.v; E.Intr.v=0;var e=cn.jt($.mat);e.concat(o);var n=new aY(0,0),A=new aY(T.d,0),u=$.crds;if($.typ=="rad"){s.Type.v.GrdT="Rdl"; var Y=.7;n.x=(1-Y)*u[0]+Y*u[3];n.y=(1-Y)*u[1]+Y*u[4];A.x=n.x;A.y=n.y;A.x+=Math.max(u[2],u[5])}else{s.Type.v.GrdT="Lnr"; n.x=u[0];n.y=u[1];A.x=u[2];A.y=u[3];n.x=A.x+.5*(n.x-A.x);n.y=A.y+.5*(n.y-A.y)}n=e.bb(n);A=e.bb(A);L.h.vV(n,A,T,s); var b=$.grad;L.h.Cw(b,E);return s};cn.prototype.PutText=function($,o,T,s){var E=o.charCodeAt(0),w=null; if(this.iE!=-1&&this.iE!=this.P5)return;if(o.length==0||o.length==1&&(E==0||E==8203))return;this.Lg($); var e=this.ZU,n=$.font,A=cn.jt($.ctm);A.concat(this.OC);var u=cn.jt(n.Tm);u.concat(A);var Y=D.p.jZ(u),b=new fY(1/Y,0,0,-1/Y,0,0); b.concat(u);var a=n.Tfs*Y;if(n.Th!=100||n.Trise!=0){console.log(n)}var X=e.u.length-1;while(X>=0&&e.u[X].add.TySh==null)X--; if(b.P*b.P+b.Z9*b.Z9<.001&&s==null&&X>=0&&e.u[X].add.TySh&&e.u[X].opacity==Math.round(255*$.ca)){var N=e.u[X],z=this.WX[X],i=N.add.TySh.t,k=(i.Ry+z.ER-b.Ry)/a,Q=Math.abs(k),O=o.indexOf(" ")==-1,c=i.Ca==b.Ca&&i.P==b.P&&i.Z9==b.Z9&&i.Um==b.Um,B=c&&Math.abs(z.r8-b.Es)<1e-5&&Q<.6,G=b.Es-z.r8; if(B){w=N;z.ER=b.Ry-i.Ry;if(k>.2&&O&&[".",",","?",":","!"].indexOf(o)==-1)o=" "+o}else if(c&&Math.abs(b.Ry-i.Ry)<1e-5&&0>3]>>7-(f&7)&1)*255; E[n]=A;E[n+1]=A;E[n+2]=A;E[n+3]=255}$=E}return $};cn.prototype.dY=function($,o,T,s,E){if($.length!=o*T*4){var e=eY.RP($.buffer),n=eY.Q1(e); if(n==null||e=="tga")n=eY.Q1("jpg");$=new Uint8Array(n.yj($,s,E)[0].data)}return $};cn.prototype.ShowPage=function(){var $=this.ZU; this.P5++;var o=this.d4;this.JJ();var T=$.$f();$.u.push(T);var s=new df(Math.round(this.zD.x),Math.round(this.zD.y),Math.round(o[2]-o[0]),Math.round(o[3]-o[1])); if(s.p4())s.d=s.w=2e3;this.VM=this.VM.BZ(s);T.y2(s);T.add.artb.artboardBackgroundType.v=3;T.tM("Page "+this.P5); T.add.lsct=hd.Qm;T.fh="pass";T.Jp=24};cn.prototype.Print=function($){console.log("Print:",$)};cn.prototype.Done=function(){var $=this.ZU; if(this.P5==1)$.u[$.u.length-1].add.lsct=hd.NH;$.Mm(this.P5);for(var f=0;f<$.u.length;f++){var o=$.u[f],T=o.add.vmsk,s=o.add.TySh,E=this.WX[f]; o._L();if(T){var e=!1;for(var n=0;n32767)e=!0}if(e){$.u.splice(f,1); f--;continue}}o.tF($);if(s&&E.sT.length!=0){this.Ea(E);var u=s.h3,Y=E.sT.length,b=E.sT[0],a=0,w=0;for(var n=0; nN.length/2){X[n]=N.split("").reverse().join(""); var Q=u.EngineDict.ParagraphRun.RunArray[n].ParagraphSheet.Properties;Q._Direction=1;Q.Justification=g8.KH(Q)}}g8._f(u,X.join("\n"))}}$.Nr=!0; $.d=this.VM.d;$.w=this.VM.w;$.buffer=L.G(this.VM.Y()*4)};var fn={};fn.JF=function($,o,T,s,E,e){if(E==null)E=$.d; if(e==null)e=$.w;var n=!1,A=[$.root],u=$.root.children;if($.add.artd){n=!0;for(var f=0;fA.length){b.splice(f,1); f--}var z=E/$.d,i=e/$.w,k=z*72/$.fG,Q=i*72/$.fG,O=72*o[5],c=72*o[5];for(var f=0;f>>16&255)/255,(gf>>>8&255)/255,(gf&255)/255]; var K=ce[I];L.M.t(K.I,E,K.I);K=L.M.aaC(K);T.pth={cmds:K.o,crds:K.I};s.Fill(T)}}else if(w&&e[3]==!1){var _=w.h3,cv=w.t.clone(),f0=new fY(1,0,0,-1,0,0); f0.concat(cv);f0.concat(E);var i8=g8.m5(_),cN=new iq(_,n);for(var f=0;f=0;f--){var X=ev.order[f];if(X=="GrFl"||X=="SoFi")continue;if($.add.vmsk&&X=="FrFX")continue; var N=s[X],z=f>7||X=="FrFX";if(z!=u)continue;for(var i=0;i$.length)throw"e";if(e){E.sub=[];o+=12;var n=E.l+E.size; while(o$.length)throw"e";if(e.EB=="RIFF"||e.EB=="LIST"&&(e.RG!="cmpr"&&e.RG!="stlt")){e.sub=[]; o+=12;var n=e.l+e.size;while(o$.length)throw"e";if(e){E.sub=[];o+=12;var n=E.l+E.size; while(o=0;f--)cY.Tx(w[f],o,T,s)}else if(e=="obj "&&Y.H&&Y.H.path){a.tM("Object "+T.u.length); var X=o.GW[Y.H.aaJ],N=o.Tt[Y.H.akB],z=a.getName(),i=X&&X.type!=0,k=i&&X.H!=null?X.H:[0,0,0];a.Jp|=16; a.add.vstk=JSON.parse(JSON.stringify(ev.ci.default));var Q=a.add.vstk;Q.strokeEnabled.v=!1;a.add.vmsk=new M.PZ; if(N&&N.aq7!=1){Q.strokeEnabled.v=!0;Q.strokeStyleLineAlignment.v.strokeStyleLineAlignment="strokeStyleAlignCenter"; Q.strokeStyleLineWidth.v.val=N.lineWidth*s.jZ();var O=N.color;Q.strokeStyleContent.v.Clr.v=L.h.wb({i:O[0]*255,m:O[1]*255,P:O[2]*255})}var c=Y.H.path; a.add.vmsk.g=L.M.Hz(c,!1);L.A.hR(a.add.vmsk.g,b);cn.cH(k,a,b,L.A.hT(a.add.vmsk.g));Q.fillEnabled.v=i; a._L();a.tF(T)}else if(e=="obj "&&A){var B=Y.H.aaQ,G=Y.H.alJ,p="";a.add.TySh=g8.rm(0,0);var l=b.jZ(); a.add.TySh.t.translate(b.Ry,b.Es);var v=a.add.TySh.h3,P=A.H.agZ;for(var f=0;f=f.data.length)throw"e";var $=0;while(f.data[f.l+$]!=0)$++; var o=t.en(f.data,f.l,$);f.l+=$+1;return o};cY.acg=function($){if($.Hw<600)return Math.PI*cY.j0($)/1800; return Math.PI*cY.m3($)/18e7};cY.a11=function($){if($.Hw<1500)return cY.Th($);else return cY.Eo($)/254e3}; cY.Th=function($){if($.Hw<600)return cY.j0($)/1e3;else return cY.m3($)/254e3};cY.aaN=function($){if($.Hw<600)return CRDParser.MX($); else return cY.uv($)};cY.a2a=function($){if($.Hw<600)return CRDParser.j0($);else return cY.m3($)};cY.O7=function($,o,T,s){var E=cY,e=E.a2i,n=E.MX,A=E.uv,u=E.a7w,Y=E.j0,b=E.m3,a=E.Eo,w=E.Th,X=E.a11,N=E.acg,z=E.aaN,i=E.a2a; for(var k=0;k=1300);O.H.a7i=cY.hP($);O.H.aqv={};var S=A($);for(var f=0;f1300)$.l+=4;if(Q>=1300){if(A($))$.l+=68;else $.l+=12}else{$.l+=20;if(Q>=1e3)$.l+=8;if(A($))$.l+=8; $.l+=8}}var ce=A($);O.H.aeR={};for(var f=0;f=1300)f0+=4;$.l+=f0*cv;var i8=A($);$.l+=28*i8;if(Q>800){var b5=A($); $.l+=12*b5}O.H.Td={};for(var f=0;f=1200)bh*=2; $.l+=bh;cO.a3z=A($);cO.akY=A($);if(iC>1){cO.a7M=A($);cO.akU=A($);cO.aij=A($);cO.amO=A($);if(Q>800)cO.alf=A($)}if(iC>2){cO.a4d=A($); cO.afq=A($);cO.a0E=A($);cO.akw=A($);cO.ak$=A($)}O.H.Td[an]=cO}}else if(O.EB=="LIST")cY.O7($,O.sub,T,s+1); else if(O.EB=="txsm"){O.H={};if(Q<600)throw"e";if(Q<700)throw"e";if(Q>=1600)throw"e";if(Q>=1500)$.l+=37; else $.l+=36;if(A($)){if(Q<800)$.l+=32}if(Q<800)$.l+=4;O.H.amD=A($);O.H.agZ=[];$.l+=48;if(Q>=800){if(A($)){$.l+=32; if(Q>=1300)$.l+=8}}if(Q>=1500)$.l+=12;var iC=A($),bD=1,fq=!1;if(!iC){if(Q>=800)$.l+=4;if(Q>800)$.l+=2; if(Q>=1400)$.l+=2;$.l+=24;if(Q<800)$.l+=8;bD=A($)}for(var C=0;C=1300&&iC)$.l++; $.l++;var g=A($),g6=[];for(f=0;f=800)h9=e($);var cO={}; if(d3&1){cO.aj6=n($);var cs=n($);if(cs)cO.ah0=cs}if(d3&2)$.l+=4;if(d3&4)cO.abA=w($);if(d3&8)$.l+=4;if(d3&16)$.l+=4; if(d3&32)$.l+=4;if(d3&64){cO.a3z=A($);if(Q>=1500)$.l+=48}if(d3&128){cO.akY=A($)}if(h9&8){if(Q>=1300){var dv=A($); if($.l+dv*2>=$.data.length){fq=!0;break}$.l+=dv*2}else $.l+=4}if(h9&32){var ec=e($);if(ec)$.l+=52}if(hM==2)if(Q>=1300)$.l+=48; g6.push(cO)}if(fq){break}var gT=A($);if($.l+gT*4>$.data.length)break;var iz=[];for(f=0;f=1200)gw=u($)&4294967295;else gw=A($);iz[f]=gw>>16|gw&1}var iI=gT;if(Q>=1200)iI=A($);var g2=cY.Js($); O.H.agZ.push({ahm:fO,text:g2,Td:g6})}}else if(O.EB=="font"){var bb=n($),ir=n($);$.l+=14;var dG=cY.Js($); O.H={id:bb,ak2:ir,name:dG}}else if(["IKEY","ICMT","pfrd","bcfg"].indexOf(O.EB)!=-1){}else if(O.EB=="flgs")O.H=A($); else if(O.EB=="bbox"){var gY=w($),e6=w($),fr=w($),bt=w($);O.H=new df(gY,e6,fr-gY,bt-e6)}else if(O.EB=="fild"){var cx=A($),ci=0,gu; if(Q>=1300){$.l+=4;ci=n($);$.l+=2}var gv=n($);if(gv==0){}else if(gv==1){$.l+=Q>=1300?13:2;gu=cY.So($)}else if(gv==2){$.l+=Q>=1300?8:2; var ak=e($),hP=0;if(Q>=1300){$.l+=17;hP=Y($)}else if(Q>=600){$.l+=19;hP=b($)}else{$.l+=11;hP=Y($)}var ai=N($),hK=.5+i($),h3=.5+i($)-.5; if(Q>=600)$.l+=2;var e4=z($)&255,co=e($)/100;$.l++;var aO=z($)&65535;if(Q>=1300)$.l+=3;var cC=[];for(var f=0; f=1300){if(ci==158||Q>=1600&&ci==150)$.l+=26;else $.l+=5}var cu=z($)/100; if(Q>=1300)$.l+=3;cC.push([cu,hm])}gu={typ:ak==1?"lin":"rad",crds:[hK-Math.cos(ai)/2,h3-Math.sin(ai)/2,hK,h3],grad:cC,mat:[1,0,0,1,0,0]}}else console.log("Unknown fill type",gv); O.H={id:cx,type:gv,H:gu}}else if(O.EB=="outl"){var bF=A($);if(Q>=1300){var fH=0,dX=0;while(fH!=1){$.l+=dX; fH=A($);dX=A($)}}var fk=n($),ix=n($),bx=n($);if(Q<1300&&Q>=600)$.l+=2;var ha=w($),ca=n($)/100;if(Q>=600)$.l+=2; var iX=N($);if(Q>=1300)$.l+=46;else if(Q>=600)$.l+=52;var gu=cY.So($,bF==270963208||bF==276198e3,bF); O.H={id:bF,aq7:fk,abY:ix,ap2:bx,lineWidth:ha,color:gu}}else if(O.EB=="mcfg"){if(1300<=Q)$.l+=12;else if(900<=Q)$.l+=4; else if(600<=Q&&Q<700)$.l+=28;var dp=0,dd=0;if(Q<400)throw"e";else{dp=w($);dd=w($)}O.H={a3L:new aY(dp,dd)}}else if(O.EB=="loda"){var R=$.l,iD=z($),iY=z($),ho=z($),bN=z($),it=z($),j4=[],gy=[]; $.l=R+ho;for(var f=0;f=0;f--)gy[f]=z($);O.H={};for(var f=0; f=1300)$.l+=8; var h7=n($);if(h7==8){var dS,al,gY,aD,bz,e6;if(Q>=600)$.l+=6;if(Q>=500){dS=a($);al=a($);gY=a($)/(Q<600?1e3:254e3); aD=a($);bz=a($);e6=a($)/(Q<600?1e3:254e3)}else throw"e";O.Ak=new fY(dS,aD,al,bz,gY,e6)}else console.log(h7)}}else if(!1){console.log(O); var i1=Math.min(O.size,32);console.log(t.i8(data,O.l,i1));console.log(t.ajk(data,O.l,i1))}}};cY.hP=function($,o){var T=cY.uv,s={},E=T($); for(var f=0;f=500){n=s($);if(n==1&&e>=1300)n=25;if(n==25||n==30){var u=0;if(n==30){n=25;u=30}else{u=s($);$.l+=4}var Y=s($),b=s($)}else if(n==14)throw"e"; else{$.l+=6;A=E($)}}else throw"e";var a=[];if(n==2||n==9||n==17){var w=[A>>>0&255,A>>>8&255,A>>>16&255,A>>>24&255]; if(n==2)for(var f=0;f<4;f++)w[f]=Math.round(255*w[f]/100);for(var f=0;f<4;f++)w[f]/=255;a=UDOC.C.cmykToRgb(w)}else if(n==1||n==5){a=[A>>>0&255,A>>>8&255,A>>>16&255]; for(var f=0;f<3;f++)a[f]=a[f]/255}else console.log("Unknown color model "+n,A,A.toString(16));return a}; var dV=function(){var $,o,T=new ArrayBuffer(4),s=new Uint8Array(T),E=new Uint32Array(T),e=new Float32Array(T); function n(w,X){for(var N=0;N>>0}function u(w,X,N,z,i){$=w;o=X;var k=z[0]=="mesg",Q=z[2],O={},c=1,B=k?1e9:Q.length; while(c<=B){var G=c;if(k){G=A();if(G==0)break}var l=n(Q,G),v=l[2],p=l[1]==1,P=p?A():1,h=new Array(P); if(v==3){if(!p)throw"e";h=$.slice(o,o+P);o+=P}else for(var f=0;f>>1):C>>>1}else if(v==7)j=A();else if(v==9){if($[o]==0){j=0; o++}else{s[0]=$[o];s[1]=$[o+1];s[2]=$[o+2];s[3]=$[o+3];var V=E[0];E[0]=V<<23|V>>>9;j=e[0];o+=4}}else if(v==11){var d=Y($,o); j=d[0];o+=d[1]+1}else throw v}else{var m=N[v>>>1];if(m[0]=="enum"){var R=$[o++];if(R>127)throw"e";j=m[2][R]}else{var g=u($,o,N,m,i+1); j=g[0];o=g[1]}}h[f]=j}O[l[3]]=p?h:h[0];c++}return[O,o]}function Y(w,X){var N=X;while(w[N]!=0)N++;return[t.LK(w,X,N-X),N-X]}function b(w,X){var N=X; while(w[N]!=0)N++;for(var f=X;f127)throw"e";return t.en(w,X,N-X)}function a(w){$=w;o=1; var X=[];while(o2)throw"e";var Q=A(),O=[]; for(var f=0;fs?1:-1};dM.ct=function($){for(var f=1;f<$.length;f++){var o=$[f];if(o.type=="IMAGE"&&o.opacity==1){$=$.slice(f); break}}for(var f=0;f<$.length;f++){var o=$[f],T=o.imageThumbnail;if(o.type=="IMAGE"&&(o.image==null||o.image.dataBlob==null)&&T&&T.dataBlob)o.image=T; if(!o.visible||o.type=="IMAGE"&&o.image.dataBlob==null){$.splice(f,1);f--}}return $};dM.Ud=function($,o,T){if($.PS.xb){o.add.vmsk=$.PS.xb.clone(); o.add.vogk=JSON.parse(JSON.stringify($.PS.qy));o.tF(T)}};dM.oD=function($,o,T,s,E,e,n,A){var u=$.fontSize,Y=$.lineHeight,b=$.fontName,a=$.textAlignHorizontal,w=$.textTracking,X=$.textCase; if(u==null)u=s.oH.FontSize;if(b)g8.PL(s,b.postscript);if(u!=null)s.oH.FontSize=Math.round(u);if(w)s.oH.Tracking=Math.round(w*1e3); if(X)s.oH.FontCaps=X=="UPPER"?2:0;if(Y&&(Y.units!="PERCENT"||Y.value!=100)){if(u==null)u=15;var N=Y.value; if(Y.units=="PERCENT")N=1*u*N/100;if(Y.units=="RAW")N=1*u*N;s.oH.AutoLeading=!1;s.oH.Leading=Math.round(N)}if(a)s.CL.Justification=["LEFT","RIGHT","CENTER"].indexOf(a); var z=$.fillPaints,i=$.inheritFillStyleID;if(i){var k=dM.qw(A.MZ,i);if(k)z=k.fillPaints}if(z&&z[0]){var Q=dM.Jd($,z[0],o,T,e,n,A); if(Q[0]=="SoCo"){var O=L.h.Qc(Q[1].Clr.v);s.oH.FillColor={Type:1,Values:[1,O.i/255,O.m/255,O.P/255]}; dM.KM(Q,E)}}};dM.Jd=function($,o,T,s,E,e,n){var A=dM,u,Y,b=$.size;if(o){var a=o.type,w=["GRADIENT_LINEAR","GRADIENT_RADIAL","GRADIENT_DIAMOND","GRADIENT_ANGULAR"].indexOf(a); if(a=="SOLID"){u="SoCo";var X=o.color;Y=JSON.parse(ev.Qo[ev.order.indexOf("SoFi")]);Y.Clr=A.So(X)}else if(w!=-1){var N=JSON.parse(ev.Qo[ev.order.indexOf("GrFl")]),z=N.Grad.v; z.Intr.v=0;N.Type.v.GrdT=["Lnr","Rdl","Dmnd","Angl"][w];var i=[],k=o.stops;for(var f=0;f1.999*Math.PI)a=L.A.XG.Xi(0,0,u,Y,0);else a=L.A.XG.aqM(u/2,Y/2,Y/2,N,z);if(i!=0&&i!=1){var k=M.PZ.IN(a).slice(3); k.reverse();for(var f=0;f>>24&255)/255,(X>>>16&255)/255,(X>>>8&255)/255,(X>>>0&255)/255]}function E(X,N){var z=N&4278190080|(N&255)<<16|(N>>>8&255)<<8|N>>>16&255; new Uint32Array(X.buffer).fill(z)}function e(X,N){var z=X.TSZ,i=X.WPX,k=X.HPX,Q=X.TIL,O=new df(0,0,i,k),c=L.G(i*k*4),B=0; for(var G=0;G>>24!=0){var _=L.h.wb({i:r>>>16&255,m:r>>>8&255,P:r>>>0&255});W.add.artb.Clr={t:"Objc",v:_}; I=4}W.add.artb.artboardBackgroundType.v=I;W.tM(R.PGN?R.PGN:"Page "+(g+1));W.add.lsct=hd.Qm;W.fh="pass"; W.Jp=24}}function A(X,N,z){var i=X[N];return i instanceof Array?i[z]:i}function u(X,N,z,i,k){var Q=N.$f(); if(X.VIS!=null)Q.bC(X.VIS);if(X.VIF!=null)Q.bC(X.VIF.VIS);if(X.OPA!=null)Q.opacity=Math.round(255*X.OPA/1e3); Q.fh=X.CLL||z=="GRP"?"pass":"norm";if(X.BLD!=null){var O=X.BLD,c={"0":"norm","2":"mul ","4":"over","5":"scrn","7":"diss","9":"dark","10":"lite","37":"idiv","30":"norm","39":"lbrn","41":"vLit"}[O+""]; if(c==null)console.log(X.OBN,O);else Q.fh=c;if(O==30)Q.opacity>>>=1}if(X.CLL){Q.tM(X.LNM);N.u.push(N.jK()); var B=X.CLL.CEL.ELM;for(var f=B.length-1;f>=0;f--)u(B[f][1],N,B[f][0],i,k);Q.add.lsct=X.DIS?hd.NH:hd.Qm; Q.Jp|=24}else if(z=="GRP"){var G=Q.add.lmfx=b(X.EFL),l;N.u.push(N.jK());var B=X.ELM;if(X.MNA){l=B[0][1]; B=B.slice(1)}Q.tM("Group: "+B.length+" objects");for(var f=B.length-1;f>=0;f--)u(B[f][1],N,B[f][0],i,k); if(l){if(X.MRX){var v=e(l,i),p=Q._=new M.Zb;p.rect=v[1].clone();p.rect.x=l.XLC;p.rect.y=l.YLC+k.Es;p.channel=L.G(p.rect.Y()); L.Ge(v[0],p.channel,0);L.lY(p.channel)}else{Y(Q,l,k);Q.tF(N)}}Q.add.lsct=hd.Qm;Q.Jp|=24}else if(z=="IMG"){Q.tM(X.OBN?X.OBN:"Bitmap"); var v=e(X,i);Q.rect=v[1].clone();Q.rect.x=X.XLC;Q.rect.y=X.YLC+k.Es;Q.buffer=v[0]}else if(z=="TXT"){var P=X.TFS,h=P.TRN instanceof Array?P.TRN.length:1,d=""; Q.add.lnsr="rend";Q.add.TySh=g8.rm(0,0);Q.add.TySh.QH=new df(0,0,100,100);var j=new fY(1,0,0,1,X.LFT,X.TOP); if(X.MTX){var C=X.MTX,p=new fY(C.M00,C.M01,C.M10,C.M11,C.M20,C.M21);j.concat(p)}j.concat(k);Q.add.TySh.t=j; var V=Q.add.TySh.h3;for(var f=0;f6e3)f0*=.5;p.d=Math.round(p.d*f0);p.w=Math.round(p.w*f0);p.fG=Math.round(72*f0); p.buffer=L.G(p.d*p.w*4);for(var f=0;f<6;f++)F[f]*=f0;for(var i8=0;i8"))ce=!1}}else if(K){cv+=(cv==""?"":" ")+fq.slice(2);if(cv.endsWith("X#")){K.push(cv.slice(0,cv.length-3)); cv=""}}continue}else if(fq=="/Mesh X!"){K=[];cv="";continue}else if(fq=="/End X!"){T(K,g,v);K=null;continue}fq=fq.trim(); var hM=fq.split(" "),d3=hM[hM.length-1],h9=d3.toLowerCase(),cs=hM.map(parseFloat);if(d3=="m")R.moveTo(g,cs[0],cs[1]); else if(d3=="L"||d3=="l")R.lineTo(g,cs[0],cs[1]);else if(d3=="V"||d3=="v"||d3=="Y"||d3=="y")R.quadCurveTo(g,cs[0],cs[1],cs[2],cs[3]); else if(d3=="C"||d3=="c")R.curveTo(g,cs[0],cs[1],cs[2],cs[3],cs[4],cs[5]);else if(d3=="H"||d3=="h"){if(d3==h9)R.closePath(g); _.push(JSON.parse(JSON.stringify(g.pth)))}else if(d3=="Xy"){S=["norm","mul ","scrn",null,"sLit"][cs[0]]; F=cs[1];if(S==null){S="norm";console.log("unknown blend mode",cs[0])}}else if(d3=="Xd"){var dv=v.u[v.u.length-1]; dv.opacity=Math.round(255*F);dv.fh=dv.p3()&&S=="norm"?"pass":S}else if(d3=="AE")b5=cs[0];else if(d3=="Ae")iC=cs[0]; else if(d3=="Xw")an=cs[0];else if(d3=="*"){var ec=g.pth.crds,gT=g.ctm,iz=ec[0]==ec[2]?0:1;v.yZ.push([iz,ec[iz]]); R.newPath(g)}else if(d3=="Xh")f0=cs;else if(d3=="XN")i8=fq.split(" ")[0];else if(d3=="XI"){if(j.Raster==null){console.log("no Raster"); continue}var gw=j.Raster[d++].Data,iI=gw._begin,g2=gw._end;while(C[iI]!=88)iI++;iI+=3;var bb=C.slice(iI,g2),ir=f0[8],dG=f0[9],gY=ir*dG,e6=L.G(gY*4); e6.fill(255);var fr=p[bD-2];fr=fr.slice(fr.indexOf("]")+2).split(" ").map(parseFloat);var bt=fr[7],cx=fr[8],ci=fr[6],gv=Math.ceil(ir*bt*ci/8); if(bt==1){if(ci==8)for(var f=0;f>>3)]>>>7-(hP&7)&1); else throw ci}else if(bt==3)for(var f=0;f",0,0); v.u.push(co);co.fh=S;co.opacity=Math.round(255*F);co.bC(an==0);var P=new fY;P.scale(1,-1);P.concat(A(f0.slice(1))); P.concat(A(g.ctm));var aO=co.rect.clone();aO.x=aO.y=0;var hM=L.M.Uo(aO).I;L.M.t(hM,P,hM);co.add.SoLd.Trnf=D.p.vP(hM); co.add.SoLd.nonAffineTransform=D.p.vP(hM);co.qI(v,!1)}else if(d3=="Ln"){V=E(fq)}else if(d3=="u"||d3=="q"||d3=="Lb"){cO.push(iC==1); bh.push((d3=="Lb"?1-cs[0]:an)==0);if(Z)continue;v.u.push(v.jK())}else if(d3=="U"||d3=="Q"||d3=="LB"){if(cO.length==0||bh.length==0)throw bD; var cC=cO.pop(),hm=bh.pop();if(d3=="LB")cC=b5==1;if(Z)continue;var co=v.$f();co.tM((d3=="U"?"":"")+m); if(d3=="LB")co.tM(V);if(d3=="Q"&&_.length!=0){var cu=_.pop(),bF=UDOC.G.isBox(cu,[0,0,v.d,v.w]);if(!bF)Y(co,cu,v)}co.add.lsct=cC?hd.NH:hd.Qm; co.fh="pass";co.Jp=24;co.bC(hm);v.u.push(co)}else if(d3=="Bb"||d3=="Bh"||d3=="BB"){}else if(d3=="Bg"){var fH=h.Setup.Gradient[E(fq)]; r="GdFl";q=s(fH.tU,fH.a3c)}else if(d3=="Bm"||d3=="Xm"){var dX=q.Type.v.GrdT;if(dX=="Lnr"&&d3!="Xm"||dX=="Rdl"&&d3!="Bm")continue; var fk=L.M.L3(g.pth.crds),ix=new aY(0,0),bx=new aY(1,0),ha=new fY;ha.concat(A(cs));ha.concat(A(g.ctm)); ix=ha.bb(ix);bx=ha.bb(bx);if(dX=="Lnr"){ix.x=(ix.x+bx.x)/2;ix.y=(ix.y+bx.y)/2}L.h.vV(ix,bx,fk,q)}else if(d3=="p"){var ca=E(fq),iX=h.Setup.Pattern[ca]; if(iX.raw==null){var fk=iX.UK,ir=Math.round(fk[2]-fk[0]),dG=Math.round(fk[3]-fk[1]),fO=new iG;fO.d=ir; fO.w=dG;fO.buffer=L.G(ir*dG*4);o(fO,iX.sT,[1,0,0,-1,-iX.UK[0],dG+iX.UK[1]],h,j,C);iX.raw=new Uint8Array(eY.Q1("PSD").tC(fO))}var dp=fq.slice(fq.indexOf(")")+2),dd=dp.slice(0,dp.indexOf("[")-1).split(" ").map(parseFloat),iD=dp.slice(dp.indexOf("[")+1,dp.indexOf("]")).split(" ").map(parseFloat); r="patt";q=[ca,dd,iD]}else if(d3=="J"||d3=="j"||d3=="w"||d3=="M"||d3=="d"){for(var f=1;f",0,0);var aO=co.rect.clone();aO.x=aO.y=0;var hM=L.M.Uo(aO).I,iD=A(q[2]);iD.Ry=iD.Es=0; L.M.t(hM,iD,hM);co.add.SoLd.Trnf=D.p.vP(hM);co.add.SoLd.nonAffineTransform=D.p.vP(hM);co.qI(v,!1)}else{co=v.$f(); co.Jp|=16;var eN=co.add.vstk=JSON.parse(JSON.stringify(ev.ci.default));eN.strokeEnabled.v=eN.fillEnabled.v=!1; if(r=="SoCo"){co.add.SoCo=JSON.parse(ev.Qo[ev.order.indexOf("SoFi")]);var hX=co.add.SoCo.Clr.v;e(hX,q)}if(r=="GdFl")co.add.GdFl=q; if(h9=="f"||h9=="b"||d3=="*U"&&I&1)eN.fillEnabled.v=!0;if(h9=="s"||h9=="b"||d3=="*U"&&I&2)cn.qj(eN,g,1,cn.BT(W))}co.tM("<"+(d3=="*U"?"Compound ":"")+"Path>"+m); co.fh=S;co.opacity=Math.round(255*F);co.bC(an==0);Y(co,g.pth,v);v.u.push(co);R.newPath(g)}else if(d3==","&&hM[1]=="/StoryIndex"){var fh=h.Setup.TextDocument,dS=null; if(!(fh instanceof Array))fh=h.Setup.TextDocument=w(fh,C);var a5=fh[0],aT=fh[2];if(a5._DocumentResources)a5=fh[0]=iB.amB(a5); else iB.g8(a5);var co=v.$f();co.add.lnsr="rend";co.add.TySh=g8.rm(0,0);var aZ=c8.aps(a5),eA=co.add.TySh.h3=aZ[cs[0]]; if(eA==null){console.log("text not found");continue}co.tM(g8.m5(eA).slice(0,50));co.fh=S;co.opacity=Math.round(255*F); co.bC(an==0);var b4=a5._1._1[cs[0]]._1._0[0]._0;b4=parseInt(b4.slice(1));var c0=a5._0._8._0,h7=c0[b4]._0; if(h7._0)dS=n(h7._0);else if(h7._1)dS=n(h7._1._0);else dS=n(h7._2._2).slice(3);if(dS.length!=2){var fk=L.M.L3(dS); dS=[fk.x,fk.y];if(fk.Y()!=0){g8.I8(eA,1);g8.bi(eA,[0,0,Math.round(fk.d),Math.round(fk.w)])}}var al=new fY,aD=new fY(1,0,0,1,dS[0],dS[1]),bz=new fY(1,0,0,1,-aT[0],-aT[1]),i1=A(g.ctm),bZ=new fY; if(h7._2&&h7._2._2){var P=n(h7._2._2);bZ=new fY(P[0],P[1],P[2],P[3],P[4],P[5])}al.concat(aD);al.concat(bZ); al.concat(bz);al.scale(1,-1);al.concat(i1);co.add.TySh.t=al;v.u.push(co);v.Nr=!0}}}function T(v,p,P){var h=UDOC.G,j=[],C=[],V="/DeviceGray",d,m=[],R=1,ec=0,gT=0,iz=0; for(var g=0;g");var dv=cs.add.vstk=JSON.parse(JSON.stringify(ev.ci.default));dv.strokeEnabled.v=!1; for(var f=0;fiz){iz=dG;ec=f;gT=g6}}var gY=C[ec],e6=C[gT],fr=cs.add.GdFl=s(0,[[0,gY[0]],[1,e6[0]]]),bt=A(p.ctm),cx=bt.bb(new aY(gY[1],gY[2])),ci=bt.bb(new aY(e6[1],e6[2])),gv=L.M.L3(p.pth.crds); cx.x=(cx.x+ci.x)/2;cx.y=(cx.y+ci.y)/2;L.h.vV(cx,ci,gv,fr);Y(cs,p.pth,P);P.u.push(cs);h.newPath(p)}function s(v,p){var P=JSON.parse(ev.Qo[ev.order.indexOf("GrFl")]),h=P.Grad.v; h.Intr.v=0;P.Type.v.GrdT=["Lnr","Rdl"][v];L.h.Cw(p,h);return P}function E(v){return v.slice(v.indexOf("(")+1,v.indexOf(")"))}function e(v,p){v.Rd.v=p[0]*255; v.Grn.v=p[1]*255;v.Bl.v=p[2]*255}function n(v){var p=[];for(var f=0;fm)d=m;P.push(d,m);j-=m-d}}P.push(p._end);var R=new Uint8Array(j); for(var f=0;f>",V),m=t.en(h,V+2,d-V-2).split("/"),R=[];for(var f=0;f")){var g=t.Te(j.join("")),S=FromPS.F.ASCII85Decode({off:0,buff:g}); p.push(S);P.push(!1);top++;j=null}}else if(C!=null){if(m=="X+"){if(V==1){p.push(C);P.push(!1);top++; C=null}else V--}else if(m=="X=")V++;else C.push(m)}else if(m=="/Binary : /ASCII85Decode ,"){j=[]}else if(m=="X="){C=[]; V++}else if(m=="/SVGFilter :"||m=="; /Def ;")continue;else if(m.startsWith("/")&&m[1].toUpperCase()!=m[1].toLowerCase()){if(m.startsWith("/XMLUID")){var F=B(m); if(P[top])throw"e";p[top][F[4]]=F[2]}if(m.startsWith("/GObjRef")){var F=B(m);if(!P[top])throw"e";p[top].push(F[2])}else{var r=m.startsWith("/Array")||m.startsWith("/Document"); p.push(r?[]:{});P.push(r);top++}}else if(m.endsWith(",")){var q,W,F=B(m);F.pop();if(F[0]==";"||F.length==1){W=p.pop(); P.pop();top--;q=P[top]?null:F.pop()}else{q=P[top]?null:F.pop();var Z=F.pop(),I=F[0];if(Z=="/Int")W=parseInt(I); else if(Z=="/Real")W=parseFloat(I);else if(Z=="/Bool")W=I=="1";else if(Z=="/String"||Z=="/UnicodeString")W=F.join(""); else if(Z=="/RealMatrix"||Z=="/RealPoint"||Z=="/RealPointRelToROrigin")W=F.map(parseFloat);else throw Z}if(P[top])p[top].push(W); else p[top][q]=W}else if(m==";"){}else if(m==""){}else{if(m.indexOf("/RealPoint")!=-1){}else if(m.startsWith("(")&&m.endsWith(")")){}else if(m.endsWith("/RealMatrix")){}else throw m; h=h?h+m:m}}return p}function B(v){var p=0,P=[];while(p>>16)+1)};eY.ME={a32:function($,o){fetch($).then(function(T){return T.arrayBuffer()}).then(function(T){var s=new Uint8Array(T),E=0,u=""; if(o){E=s.length;var e={level:9},n=pako.deflateRaw(s,e),A=UZIP.deflateRaw(s,e);console.log(E,n.length,A.length); s=n.length")!=-1)s="icc";else s="svg"}if(T(o,[60,115,118,103],E))s="svg"; if(T(o,[60,33,100,111],E)||T(o,[60,33,68,79],E)){if(t.fe(o," \t\t \t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t",n=" "+e+""; if($==1)n+=""+""+""; n+=""+""+""; var A=new Uint8Array(n.length);t.Jq(n,A,0);var u="data:image/svg+xml;base64,"+eY.Qj(A.buffer);return{tY:u,uL:new df(0,0,128,128),wS:new aY(64,64)}}; eY.Qj=function($){var o=new Uint8Array($),T="";for(var f=0;f>3)]; l=l>>7-(f&7)&1;var v=c*b+G<<2;N[v]=N[v+1]=N[v+2]=(1-l)*255;N[v+3]=255}}if(s=="P5")for(var f=0;f15e7||u==0||u==2){var Y=new PDFJS.JpegImage;Y.parse($);var b=Y.getData({width:E,height:e,forceRGB:!0,isSourcePDF:T}),A=L.G(n*4); for(var f=0;f1&&c<20)k=L.raw.hY(c,E,e)}if(s.xmp){i=e2.Is(s.xmp,i)}var B=o[237],G=[],l=[]; if(B){var v=new Uint8Array(65536),p=0,P=0;for(var f=0;fv.length){var d=new Uint8Array(v.length*2); d.set(v);v=d}var m=new Uint8Array($.buffer,P,V);v.set(m,p);p+=V}P=0;$=v;while(P>>1)*E+gw>>>1),g2=iC[iI],bb=iC[iI+(n>>>2)]; f0[a]=f0[a+1]=f0[a+2]=g2;f0[a+3]=255;gT[a]=gT[a+1]=gT[a+2]=bb;gT[a+3]=255}cN.push({Sg:new df(0,0,E,e),data:f0.buffer},{Sg:new df(0,0,E,e),data:gT.buffer})}else if(an=="edof"){var c=iC[8+7]; console.log(c.toString(16));var P=8+16,ir=t.w1(iC,P),dG=t.w1(iC,P+2),n=ir*dG;P+=4;P+=32+16;var gY=L.G(n*4); for(var f=0;f1){var bt=cN[0].Sg; cN[0].y0="Main";for(var f=1;f>>3)]>>>7-(O&7)&1,B=c*255; i[b]=B;i[b+1]=B;i[b+2]=B;i[b+3]=255}}return[{Sg:new df(0,0,n,e),data:i.buffer}]}else{var X=new PDFJS.JpxImage; X.parse($);var n=X.width,e=X.height,G=X.tiles,l=X.componentsCount,v=new Uint8Array(n*e*4),p=new df(0,0,n,e); for(var X=0;X>>1,X.y>>>1,X.width-1,X.height-1,$[f][1]]; for(var z=0;z<5;z++)n(A,u+3*z,N[z]);u+=15;A.Y4(u,1);A.data[u]=1-w.blend<<1|w.dispose;u++;var i=new Uint8Array(eY.OQ(w.img.buffer,X.width,X.height,"webp",1)),k=hh.$$(i.buffer).sub,Q=t.en(i,12,4); if(Q!="VP8L"&&Q!="VP8 "&&Q!="VP8X")throw"e";var O=Q=="VP8 "?0:Q=="VP8L"?12:30,c=i.length-O;A.Y4(u,c); for(var z=0;z>>14&(1<<14)-1)+1}else throw"e"; var X=[T(s,$,{l:0,size:o.length},b,a)];return X}var N=Y.l,b=1+(t.cX(o,N+4)&16777215),a=1+(t.cX(o,N+7)&16777215),z=[],i=new df(0,0,b,a),k=L.G(b*a*4); for(var f=0;f>>1==0)L.R.xE("norm",v,B,k,i,B,1);else L.h9(v,B,k,i);z.push({y0:"_a_"+z.length+","+G,Sg:i.clone(),data:k.buffer.slice(0)}); if((p&1)==1){L.wr(v,0);L.h9(v,B,k,i)}}return z};eY.B5.ar9=function($,o,T,s,E){var e=eY.B5.exp,n=e.memory,A=5e6+2*T.size+s*E*10; eY.k8(e,A);var u=new Uint8Array(n.buffer),Y=e.malloc(T.size);u.set(new Uint8Array(o,T.l,T.size),Y);var b=e.malloc(8),a=e.WebPDecodeARGB(Y,T.size,b,b+4),w=t.cX(u,b),X=t.cX(u,b+4),N=w*X*4,z=L.G(N); for(var f=0;f256){X=null; break}}}if(X){i=1;while(1<>>16,P=X[f]>>>8&255,h=X[f]&255;l[v]=p;l[v+1]=P;l[v+2]=h}G+=B}c.Y4(G,O*Y); if(i==24)for(var j=0;j>>1)]|=m<<4-(V&1)*4}}else if(i==1)for(var j=0; j>>3)]|=m<<7-(V&7)}}G+=O*Y+2; return c.data.slice(0,G).buffer}function o(A){A=new Uint8Array(A);if(t.cX(A,0)==40)return[T(A.buffer,0)]; var u=0,Y=t.en(A,u,2);u+=2;if(Y!="BM"){alert("Unsupported BMP format: "+Y);return}var b=t.cX(A,u);u+=4; u+=4;var a=t.cX(A,u);u+=4;return[T(A.buffer,u,a)]}function T(A,u,Y){A=new Uint8Array(A);var b=t.cX(A,u),a=e(A,u+4); if(a.kh!=1)alert("unsupported number of color planes: "+a.kh);if(a.i5!=0&&a.i5!=1&&a.i5!=2&&a.i5!=3){alert("Unsupported BMP compression: "+a.i5); return}u+=b;var w=u,X=A;if(Y==null)Y=u;if(a.i5==1||a.i5==2){var N=E(A,Y,a);a.gR=8;A=N;Y=0}var z=4*Math.floor((a.gR*a.N0+31)/32),i=a.N0,k=Math.abs(a.cQ),Q=new Uint8Array(i*k*4); Q.fill(255);if(a.gR==32)for(var O=0;O>>11)*(255/31); Q[G+1]=(l>>>5&63)*(255/63);Q[G+2]=(l&31)*(255/31)}}else if(a.gR==8)for(var O=0;O>1)];v=v>>4-4*(B&1);v=v&15; Q[G]=X[w+4*v+2];Q[G+1]=X[w+4*v+1];Q[G+2]=X[w+4*v+0]}}else if(a.gR==1)for(var O=0;O>3)];p=p>>7-(B&7);p=p&1;Q[G]=X[w+4*p+2];Q[G+1]=X[w+4*p+1]; Q[G+2]=X[w+4*p+0]}}else throw"Unknown bit depth "+a.gR;if(a.cQ<0){var P=new Uint32Array(Q.buffer),h=k>>>1; for(var O=0;O>>4-((f&1)<<2)&15}function E(A,u,Y){var b=Y.N0,a=Math.abs(Y.cQ),w=new Uint8Array(b*a),X=0,N=0,f=0; while(N0){if(Y.gR==4)for(f=0;f>>1)],f)}Q=Math.ceil(i/2)}else{for(f=0; f127?255:0;if(Y==0)u[f]=u[f+1]=u[f+2]=0}E.push(u.buffer); e.push($[A][1])}var b=Math.round(2+254*s[0]/100),a=UPNG.encode.compress(E,o,T,b,[!0,!1,!1,8,!1]),w=a.plte,X=new Uint8Array(4),N=new Uint32Array(X.buffer); for(var f=0;f256||T>256){alert("Maximum ICO size is 256x256 px. Will be cropped.",4e3); var E=Math.min(o,256),e=Math.min(T,256),n=new df(0,0,E,e),A=L.G(n.Y()*4),u=new df(0,0,o,T),Y=new Uint8Array($[0][0]); L.h9(Y,u,A,n);$[0][0]=A.buffer;o=E;T=e}var b=new bV,a=0,w=s&&s[0]==!0;t.Rs(b,a,0);a+=2;t.Rs(b,a,w?2:1); a+=2;t.Rs(b,a,1);a+=2;var X=new Uint8Array(eY.Q1("png").tC($,o,T));b.Y4(a,16);b.data[a]=o==256?0:o;a++; b.data[a]=T==256?0:T;a++;a+=2;t.Rs(b,a,w?Math.round(o/2):1);a+=2;t.Rs(b,a,w?Math.round(T/2):32);a+=2; t.JG(b,a,X.length);a+=4;t.JG(b,a,6+16);a+=4;b.Y4(a,X.length);for(var f=0;fX)X=Q;N+=Q;z++}}w=1/256*65535/(.5*X+.5*(2*N/z))}var O=[]; for(var f=0;f3){N=t.Cv(T,b);b+=4}u.opacity=Math.round(255*T[b]/100);b++;var z=T[b]; b++;u.bC(z!=0);u.fh="norm,lddg,norm,dark,diff,norm,hLit,norm,norm,lite,mul ,over,scrn,fsub".split(",")[T[b]]; b++;var i=T[b];b++;if(i)u.add.lspf=1<<31;if(s>3){var k=t.mo(T,b);b+=2;if(k!=0){var Q=JSON.parse(t.LK(T,b,k)); b+=k;var O=Q.text,c=Q.textSettings,B=c.font,G=c.size,l=c.padding,v=parseInt(c.color.slice(1),16);u.add.lnsr="rend"; u.add.TySh=g8.rm(0,0);u.add.TySh.QH=new df(0,0,100,100);var p=u.add.TySh.t=new fY,P=u.rect.d/2,h=u.rect.w/2; p.translate(-P,-h);p.rotate(-N*Math.PI/180);p.translate(P,h);p.translate(u.rect.x+l,u.rect.y+l);var j=u.add.TySh.h3; g8.I8(j,1);g8.bi(j,[0,0,u.rect.d-l*2,u.rect.w]);g8.YN(j,0,O);var C=g8.$Q(j,0,1);C.oH.FontSize=G;C.oH.FillColor={Type:1,Values:[1,(v>>>16&255)/255,(v>>>8&255)/255,(v>>>0&255)/255]}; if(c.bold)B+="-Bold";g8.PL(C,B);C.CL.Justification=["left","right","center"].indexOf(c.align);g8.zA(j,0,O.length,C)}}var V=t.s(T,b); b+=4;if(V!=u.rect.Y()*4){for(var f=u.rect.d;f>u.rect.d/2;f--){var d=V/(f*4);if(d==Math.round(d)){u.rect.d=f; u.rect.w=d;break}}}u.buffer=L.G(u.rect.Y()*4);if(s>3){R=0;g=1;S=2;F=3}for(var f=0;f3){e+=Y; continue}var q=T[b];b++;var W=t.mo(T,b);b+=2;if(r!=0){u._=new M.Zb;u._.rect=u.rect.clone();u._.channel=L.G(u.rect.Y()); for(var f=0;f>>2]=T[b+f+1];b+=r}if(q!=0){var Z=JSON.parse(ev.default);u.add.lmfx=Z; for(var f=0;f>>4<<1,l=b+a,v=L.G(G*A*l),j,C,V;hV.IE(s,E,O.size,v,0,v.length); var p=b-2,P=(1<>>3]>>>7-(R&7)&1;d|=g<>>b,d=d&(1<>>p!=0){var r=d>>>p,q=(d&P)*h;if(r==1)V=q;else if(r==2)j=q;else if(r==3)C=q}else{var q=X+d*3; j=s[q+0];C=s[q+1];V=s[q+2]}}else{j=d>>>0&255;C=d>>>8&255;V=d>>>16&255}e[F+0]=j;e[F+1]=C;e[F+2]=V;e[F+3]=255}}}return[{Sg:new df(0,0,n,A),data:e.buffer}]}; eY.vF={};eY.vF.or=!1;eY.vF.tC=function($,o,T,s){var E=$[0][4],e=new Uint8Array($[0][0]),n=2,A=E?!0:!1,u=A?4:3,Y=new Uint8Array(o*T*u); for(var b=0;b>>4,i=t.en(o,18,s),k=L.G(a*w*4),T=18+s+(A*u>>>3),Q=new Uint8Array(o.buffer,T); if(e>3){var O=0,c=o,B=new Uint8Array(a*w*X>>>3),G=T,l=0,v=o.length,p=X>>>3;while(l>>3;var h=new Uint8Array(4),j=eY.vF.adw; for(var C=0;C>>3; if(e==1){var q=0;if(X==8)q=Q[r];else throw"e";j(o,18+s+n+(q*u>>>3),u,h);R=h[0];g=h[1];S=h[2];F=h[3]}else if(e==2){j(Q,r,X,h); R=h[0];g=h[1];S=h[2];F=h[3]}else if(e==3){if(X==8)R=g=S=Q[r];else throw"e"}var W=m*4;k[W]=R;k[W+1]=g; k[W+2]=S;k[W+3]=F}var h={Sg:new df(0,0,a,w),data:k.buffer,y0:i};if(L.jh(k)){var Z=L.G(a*w);L.Ge(k,Z,3); L.wr(k,4278190080,16777215);h.iy=[Z]}return[h]};eY.vF.adw=function($,o,T,s){var E,e,n,A=255;if(T==24||T==32){n=$[o]; e=$[o+1];E=$[o+2];if(T==32)A=$[o+3]}else if(T==16){var u=$[o+1]<<8|$[o+0];E=u>>>10&31;e=u>>>5&31;n=u>>>0&31; E=Math.round(E*(255/31));e=Math.round(e*(255/31));n=Math.round(n*(255/31))}else throw"e";s[0]=E;s[1]=e; s[2]=n;s[3]=A};eY.amv=function(){var $,o=[],T=!1;function s(n,A,u,Y){$=u;o.push(n,Y);E()}function E(){if(T||o.length==0)return; T=!0;eY.ari(o.shift(),"image/avif",e)}function e(n){$(null,[n],o.shift());T=!1;E()}return{or:!1,Wl:!0,yj:s}}(); eY.a2V=function(){var $,o=[],T=!1,s,E,e,n,A,u;function Y(X,N,z,i){$=z;o.push(X,i);b()}function b(){if(T||o.length==0)return; T=!0;s=document.createElement("canvas");E=s.getContext("2d");e=document.createElement("video");var X="data:"+"video/mp4"+";base64,"+eY.Qj(o.shift()); e.src=X;e.muted=!0;e.currentTime=0;e.addEventListener("canplay",a,!1);e.addEventListener("timeupdate",w,!1)}function a(X){e.removeEventListener("canplay",a); n=s.width=e.videoWidth;A=s.height=e.videoHeight;u=[];e.play()}function w(X){var N=10;E.drawImage(e,0,0); u.push({y0:"_a_"+u.length+","+Math.round(1e3/N),Sg:new df(0,0,n,A),data:E.getImageData(0,0,n,A).data.buffer}); var z=e.currentTime+1/N;if(z0)Y.push(T+X);T+=X+a}var N=new DOMParser,z=N.parseFromString(u,"image/svg+xml").firstChild.firstChild,i=[]; eY.X9.XL(z,o,Y,i);return i};eY.X9.XL=function($,o,T,s){var E=$.firstChild.firstChild;if(E.tagName=="Image"){var e=E.getElementsByTagName("ImageDescription")[0],n=e.children[0].children,A=e.children[1].children,u=T.shift(),Y=[]; for(var f=0;f3)Y[2]*=Y.pop(); var b=n.length,a=Y[0],w=Y[1],X=Y[2],N=parseInt(A[0].getAttribute("BytesInc"));for(var z=0;z>>2);else throw N; if(k!=3)L.aM(Q,i,k);if(b==1){L.aM(Q,i,1);L.aM(Q,i,2)}u+=a*w*N}s.push({Sg:new df(0,0,a,w),data:i.buffer})}}else{var c=$.children,B=0; while(B>>2); for(var f=0;fa)a=k}var Q=L.G(u*4),O=1/a;for(var c=0;c>>7)}else if(l==305){var p=Math.round(Math.sqrt(v)),P=[]; for(var h=0;h>>3;cv[b5]|=i8>>>16;cv[b5+1]|=i8>>>8;cv[b5+2]|=i8}var cN=X*8/(k*Q);if(cN==16)for(var f=0;f>>12|(gf&4095)<<12;m[f]=gf>>>16&255;m[f+1]=gf>>>8&255;m[f+2]=gf&255}if(d)m=eY.yH.aca(m,k,Q);var K=d?2:1; k*=K;i.t256=[k];i.t257=[Q];i.t258=[R];i.t50719=[c[1],c[0]*K];i.t50720=[c[3],c[2]*K];i.width=k;i.height=Q; i.data=new Uint8Array(m.buffer);return[i]};eY.yH.aca=function($,o,T){$=new Uint16Array($.buffer);var s=new Uint16Array(o*T*2); for(var E=0;E>>1)+e&1)==0){s[A]=u; s[A+2*o+1]=$[n+1]}else{s[A]=$[n-1];s[A+2*o+1]=u}}return s};eY.NG={};eY.NG.ND=!0;eY.NG.tC=function($,o,T,s){var E=new Uint8Array($[0][0]),e=o*T,n=[1,3,4][s[0]],A=8+8*s[1],u=s[2]; if(n==1){var Y=new Uint8Array(o*T);L.Ge(E,Y,0);E=Y}if(n==3){var Y=new Uint8Array(o*T*3);for(var f=0; f>>8;Y[f*2+1-u]=X&255}E=Y}return E.buffer}; eY.In={};eY.In.yj=function($,o){function T(u){return~~(.5+L.WH(Math.max(0,Math.min(1,u)))*255)}var s=EXRLoader.parse($),E=s.width,e=s.height,n=L.G(E*e*4); for(var A=0;A>>31==1){k=k&16777215}if(f>>31==1){Q=Q&268435455;c=E(n,A,A+Q,B,b)}else{var G=o(n,A+Q),l=o(n,A+Q+4),v=o(n,A+Q+8),p=o(n,A+Q+12); if(p!=0)throw"e";if(Gb[0]+b[1])throw"e";var P=b[2]+G-b[0];c=n.slice(P,P+l);var h=eY.RP(c.buffer); if(h&&["bmp","png","ico"].indexOf(h)!=-1){var j=eY.Q1(h);if(!j.or){var C=null;try{C=j.yj(c.buffer)}catch(aX){}if(C){C[0].y0=B[1]; s.push(C[0])}}}else if(h)console.log(h)}i[O]=c;u+=8}return i}function e(n){s=[];var A=new Uint8Array(n),u=0,Y=$(A,u); u+=2;u+=58;var b=o(A,u);u+=4;u=b;var a=T(A,u,4);u+=4;var w=$(A,u);u+=2;var X=$(A,u);u+=2;var N=o(A,u); u+=4;var z=o(A,u);u+=4;var i=o(A,u);u+=4;var k=$(A,u);u+=2;var Q=$(A,u);u+=2;u+=k;var O={};for(var f=0; f0){if(i["o"+r]!=null)throw"e";i["o"+r]=S}return S}function V(g,i){if(g instanceof Array){for(var f=0; fs[f].canvas.width)f++;if(f==s.length){T=s[0];var e=T.canvas;e.width=$;e.height=o}else{T=s[f]; T.clearRect(0,0,$,o)}return T};L.Cl=function($,o,T){var s={},E=0,e=0,n=new Uint32Array($.buffer),A=n.length,u=Date.now(); for(var Y=1;Y>>24<230)e++;if(s[w]==null){s[w]=!0; E++}}if(e!=0||E<20)return!1;return!0};L.qU=function($,o,T,s,E,e){if(E==null)E=e=0;s=Math.log(s)/Math.log(2); s=Math.round(s);for(var f=0;f>>o)+($>>>o)&1)*51};L.B$=function($){var o=$.toString(16); while(o.length<6)o="0"+o;return o};L.oo=function($){return parseInt($,16)};L.Hl=function($){return.3*$.i+.59*$.m+.11*$.P}; L.M3=function($){return Math.max($.i,$.m,$.P)-Math.min($.i,$.m,$.P)};L.DB=function($,o,T){return.3*$+.59*o+.11*T}; L.a73=function($,o,T){return Math.max($,o,T)-Math.min($,o,T)};L.XT=function($,o){var T=o-$,s=Math.abs(T),E=T-1,e=T+1; if(Math.abs(E).5?u/(2-(s+E)):u/(s+E);switch(s){case $:e=(o-T)/u+(o1)T-=1;if(T<1/6)return $+(o-$)*6*T;if(T<1/2)return o;if(T<2/3)return $+(o-$)*(2/3-T)*6;return $}; L.sY=function($,o,T){var s=Math.max($,o,T),E=Math.min($,o,T),e,n,A=s,u=s-E;n=s==0?0:u/s;if(s==E)e=0; else{switch(s){case $:e=(o-T)/u+(o.008856?Math.pow(T,1/3):(903.3*T+16)*(1/116)}return[$,o]}(); L.l1=function($,o,T){var s=L.$w[0],E=L.$w[1];$=s[~~($*(1e3/255))];o=s[~~(o*(1e3/255))];T=s[~~(T*(1e3/255))]; var e=L.tK.ake,n=e[0]*$+e[1]*o+e[2]*T,A=e[4]*$+e[5]*o+e[6]*T,u=e[8]*$+e[9]*o+e[10]*T;n=n*(100/96.72); A=A*(100/100);u=u*(100/81.427);return L.Sc(n,A,u)};L.Sc=function($,o,T){var s=L.$w[1],E=s[~~($*1e3)],e=s[~~(o*1e3)],n=s[~~(T*1e3)]; return{vA:116*e-16,Ca:500*(E-e),P:200*(e-n)}};L.u3=function($,o,T){var s=903.3,E=.008856,e=($+16)/116,n=e*e*e,A=e-T/200,u=A*A*A,Y=o/500+e,b=Y*Y*Y,a=u>E?u:(116*A-16)/s,w=n>E?n:(116*e-16)/s,X=b>E?b:(116*Y-16)/s,N=X*96.72,z=w*100,i=a*81.427,k=L.tK.OG(L.tK.UO,[N/100,z/100,i/100,0]); for(var f=0;f<4;f++)k[f]=Math.max(0,Math.min(255,L.WH(k[f])*255));return{i:k[0],m:k[1],P:k[2]}};L._y=function($,o,T,s,E){var e=$.vA,n=$.Ca,A=$.P,u=(e>2]=~~($[f+0]*E+$[f+1]*e+$[f+2]*n+.5)};L.R6=function($,o){var T=o.length; for(var f=0;f>>2];o[f]=s;o[f+1]=s;o[f+2]=s}};L.dy=function($,o){var T=$.Ca,s=$.i,E=$.m,e=$.P,n=Math.min($.Ca.length,o.buffer.byteLength>>>2),A=4*Math.floor(n/4),u=new Uint32Array(o.buffer),Y=new Uint32Array(T.buffer),b=new Uint32Array(s.buffer),a=new Uint32Array(E.buffer),w=new Uint32Array(e.buffer); for(var f=0;f>2],N=w[f>>2],z=a[f>>2],i=b[f>>2];u[f]=X<<24|(N&255)<<16|(z&255)<<8|i&255; u[f+1]=(X&65280)<<16|(N&65280)<<8|z&65280|(i&65280)>>>8;u[f+2]=(X&16711680)<<8|N&16711680|(z&16711680)>>>8|(i&16711680)>>>16; u[f+3]=X&4278190080|(N&4278190080)>>>8|(z&4278190080)>>>16|(i&4278190080)>>>24}for(var f=A;f>>2),A=4*Math.floor(n/4),u=new Uint32Array($.buffer),Y=new Uint32Array(T.buffer),b=new Uint32Array(s.buffer),a=new Uint32Array(E.buffer),w=new Uint32Array(e.buffer); for(var f=0;f>2]=X&255|(N&255)<<8|(z&255)<<16|i<<24; a[f>>2]=(X&65280)>>8|N&65280|(z&65280)<<8|(i&65280)<<16;w[f>>2]=(X&16711680)>>16|(N&16711680)>>8|z&16711680|(i&16711680)<<8; Y[f>>2]=X>>>24|N>>>24<<8|z>>>24<<16|i&4278190080}for(var f=A;f>0&255;E[f]=k>>8&255; e[f]=k>>16&255;T[f]=k>>24&255}};L.Ge=function($,o,T){var s=new Uint8Array($.buffer),E=Math.min(s.length/4,o.length); for(var f=0;f>>2];s[(f<<2)+T]=n&255;s[(f<<2)+T+4]=n>>>8&255;s[(f<<2)+T+8]=n>>>16&255;s[(f<<2)+T+12]=n>>>24; f+=4}while(f>>2,$=new Uint32Array($.buffer,0,s),o=new Uint32Array(o.buffer,0,s); o.set($)};L.R1=function($,o){var T=$.buffer.byteLength,s=o.buffer.byteLength,E=new Uint32Array($.buffer,0,T>>2),e=new Uint32Array(o.buffer,0,s>>2); if(T!=s)return!1;var n=E.length;for(var f=0;f=2&&s.w>=2){var E=L.tk(T,s); $.push(E._3,E.rect);T=E._3;s=E.rect}};L.Fg=function($){var o=$.length,T=$[o-2],s=$[o-1];while(s.d>=2&&s.w>=2){var E=L.jy(T,s); $.push(E._3,E.rect);T=E._3;s=E.rect}};L.tk=function($,o,T){var s=o.d,E=o.w,e=s>>1,n=E>>1,A=new df(o.x,o.y,e,n),u=T&&T.length==e*n*4?T:L.G(e*n*4),Y=new Uint32Array($.buffer),b=new Uint32Array(u.buffer); for(var a=0;a>>24,c=i>>>24,B=k>>>24,G=Q>>>24,l=O+c+B+G; if(l==1020){var v=(z>>>0&255)+(i>>>0&255)+(k>>>0&255)+(Q>>>0&255)+2>>>2,p=(z>>>8&255)+(i>>>8&255)+(k>>>8&255)+(Q>>>8&255)+2>>>2,P=(z>>>16&255)+(i>>>16&255)+(k>>>16&255)+(Q>>>16&255)+2>>>2; b[X]=255<<24|P<<16|p<<8|v}else if(l==0)b[X]=0;else{var v=(z>>>0&255)*O+(i>>>0&255)*c+(k>>>0&255)*B+(Q>>>0&255)*G,p=(z>>>8&255)*O+(i>>>8&255)*c+(k>>>8&255)*B+(Q>>>8&255)*G,P=(z>>>16&255)*O+(i>>>16&255)*c+(k>>>16&255)*B+(Q>>>16&255)*G,h=1/l; v=~~(v*h+.5);p=~~(p*h+.5);P=~~(P*h+.5);b[X]=l+2>>>2<<24|P<<16|p<<8|v}}return{rect:A,_3:u}};L.gc=function($,o,T){var s=o.d,E=o.w,e=s>>1,n=E>>1,A=new df(o.x,o.y,e,n),u=T&&T.length==e*n*4?T:L.G(e*n*4),Y=new Uint32Array($.buffer),b=new Uint32Array(u.buffer); for(var a=0;a>>0&255)+(i>>>0&255)+(k>>>0&255)+(Q>>>0&255)>>>2,c=2+(z>>>8&255)+(i>>>8&255)+(k>>>8&255)+(Q>>>8&255)>>>2,B=2+(z>>>16&255)+(i>>>16&255)+(k>>>16&255)+(Q>>>16&255)>>>2,G=2+(z>>>24&255)+(i>>>24&255)+(k>>>24&255)+(Q>>>24&255)>>>2; b[X]=G<<24|B<<16|c<<8|O}return{rect:A,_3:u}};L.anx=function($,o,T){var s=o.d,E=o.w,e=2*Math.floor(s/3),n=2*Math.floor(E/3),A=new df(o.x,o.y,e,n),u=T&&T.length==e*n*4?T:L.G(e*n*4),Y=new Uint32Array($.buffer),b=new Uint32Array(u.buffer); for(var a=0;a>>1)*s+(w*3>>>1),z=Y[N],i=Y[N+1],k=Y[N+2],Q=Y[N+s],O=Y[N+1+s],c=Y[N+2+s],B=Y[N+s+s],G=Y[N+1+s+s],l=Y[N+2+s+s],v=z>>>24<<2,p=(z>>>16&255)*v,P=(z>>>8&255)*v,h=(z&255)*v,j=i>>>24<<1,C=(i>>>16&255)*j,V=(i>>>8&255)*j,d=(i&255)*j,m=k>>>24<<2,R=(k>>>16&255)*m,g=(k>>>8&255)*m,S=(k&255)*m,F=Q>>>24<<1,r=(Q>>>16&255)*F,q=(Q>>>8&255)*F,W=(Q&255)*F,Z=O>>>24,I=(O>>>16&255)*Z,_=(O>>>8&255)*Z,cN=(O&255)*Z,ce=c>>>24<<1,gf=(c>>>16&255)*ce,K=(c>>>8&255)*ce,cv=(c&255)*ce,f0=B>>>24<<2,i8=(B>>>16&255)*f0,b5=(B>>>8&255)*f0,iC=(B&255)*f0,an=G>>>24<<1,cO=(G>>>16&255)*an,bh=(G>>>8&255)*an,bD=(G&255)*an,fq=l>>>24<<2,fO=(l>>>16&255)*fq,g6=(l>>>8&255)*fq,hM=(l&255)*fq,d3=v+j+F+Z,h9=m+j+ce+Z,cs=f0+an+F+Z,dv=fq+an+ce+Z,ec=d3==0?0:1/d3,gT=h9==0?0:1/h9,iz=cs==0?0:1/cs,gw=dv==0?0:1/dv,iI=0,g2=0,bb=0,ir=0; iI=~~(.5+(h+d+W+cN)*ec);g2=~~(.5+(P+V+q+_)*ec);bb=~~(.5+(p+C+r+I)*ec);ir=~~(.5+d3*(1/9));b[X]=ir<<24|bb<<16|g2<<8|iI; iI=~~(.5+(S+d+cv+cN)*gT);g2=~~(.5+(g+V+K+_)*gT);bb=~~(.5+(R+C+gf+I)*gT);ir=~~(.5+h9*(1/9));b[X+1]=ir<<24|bb<<16|g2<<8|iI; iI=~~(.5+(iC+bD+W+cN)*iz);g2=~~(.5+(b5+bh+q+_)*iz);bb=~~(.5+(i8+cO+r+I)*iz);ir=~~(.5+cs*(1/9));b[X+e]=ir<<24|bb<<16|g2<<8|iI; iI=~~(.5+(hM+bD+cv+cN)*gw);g2=~~(.5+(g6+bh+K+_)*gw);bb=~~(.5+(fO+cO+gf+I)*gw);ir=~~(.5+dv*(1/9));b[X+e+1]=ir<<24|bb<<16|g2<<8|iI}return{rect:A,_3:u}}; L.abR=function($,o,T){var s=o.d,E=o.w,e=2*Math.floor(s/3),n=2*Math.floor(E/3),A=new df(o.x,o.y,e,n),u=T&&T.length==e*n*4?T:L.G(e*n*4),Y=new Uint32Array($.buffer),b=new Uint32Array(u.buffer); for(var a=0;a>>1)*s+(w*3>>>1),z=Y[N],i=Y[N+1],k=Y[N+2],Q=Y[N+s],O=Y[N+1+s],c=Y[N+2+s],B=Y[N+s+s],G=Y[N+1+s+s],l=Y[N+2+s+s],v=(z>>>16&255)<<2,p=(z>>>8&255)<<2,P=(z&255)<<2,h=(i>>>16&255)<<1,j=(i>>>8&255)<<1,C=(i&255)<<1,V=(k>>>16&255)<<2,d=(k>>>8&255)<<2,m=(k&255)<<2,R=(Q>>>16&255)<<1,g=(Q>>>8&255)<<1,S=(Q&255)<<1,F=O>>>16&255,r=O>>>8&255,q=O&255,W=(c>>>16&255)<<1,Z=(c>>>8&255)<<1,I=(c&255)<<1,_=(B>>>16&255)<<2,cN=(B>>>8&255)<<2,ce=(B&255)<<2,gf=(G>>>16&255)<<1,K=(G>>>8&255)<<1,cv=(G&255)<<1,f0=(l>>>16&255)<<2,i8=(l>>>8&255)<<2,b5=(l&255)<<2,iC=0,an=0,cO=0; iC=~~(.5+(P+C+S+q)*(1/9));an=~~(.5+(p+j+g+r)*(1/9));cO=~~(.5+(v+h+R+F)*(1/9));b[X]=255<<24|cO<<16|an<<8|iC; iC=~~(.5+(m+C+I+q)*(1/9));an=~~(.5+(d+j+Z+r)*(1/9));cO=~~(.5+(V+h+W+F)*(1/9));b[X+1]=255<<24|cO<<16|an<<8|iC; iC=~~(.5+(ce+cv+S+q)*(1/9));an=~~(.5+(cN+K+g+r)*(1/9));cO=~~(.5+(_+gf+R+F)*(1/9));b[X+e]=255<<24|cO<<16|an<<8|iC; iC=~~(.5+(b5+cv+I+q)*(1/9));an=~~(.5+(i8+K+Z+r)*(1/9));cO=~~(.5+(f0+gf+W+F)*(1/9));b[X+e+1]=255<<24|cO<<16|an<<8|iC}return{rect:A,_3:u}}; L.jh=function($){var o=255,T=$.length;T-=T&31;for(var f=3;f>1,n=E>>1,A=new df(o.x,o.y,e,n); if($==null)return{rect:A};var u=T&&T.length>=e*n?T:L.G(e*n);for(var Y=0;Y>>2}}return{rect:A,_3:u}};L.QO=function($,o,T){var s=o.d,E=o.w,e=2*Math.floor(s/3),n=2*Math.floor(E/3),A=new df(o.x,o.y,e,n); if($==null)return{rect:A};var u=T&&T.length>=e*n?T:L.G(e*n);for(var Y=0;Y>>1)*s+(b*3>>>1),X=$[w]<<2,N=$[w+1]<<1,z=$[w+2]<<2,i=$[w+s]<<1,k=$[w+1+s],Q=$[w+2+s]<<1,O=$[w+s+s]<<2,c=$[w+1+s+s]<<1,B=$[w+2+s+s]<<2; u[a]=~~(.5+(X+N+i+k)*(1/9));u[a+1]=~~(.5+(z+N+Q+k)*(1/9));u[a+e]=~~(.5+(O+c+i+k)*(1/9));u[a+e+1]=~~(.5+(B+c+Q+k)*(1/9))}return{rect:A,_3:u}}; L.pg=function($,o,T,s,E){var e=o.Sr(s);if(E)e=e.Sr(E);var n=Math.max(0,e.x-o.x),A=Math.max(0,e.x-s.x),u=Math.max(0,e.y-o.y),Y=Math.max(0,e.y-s.y),b=e.d,a=e.w; for(var f=0;f>>8)>>>8};L.round=function($,o){if(o==null)o=128;var T=$.length;for(var f=0; f>>24)*(n>>>24))<<24|L.Z$((e>>>16&255)*(n>>>16&255))<<16|L.Z$((e>>>8&255)*(n>>>8&255))<<8|L.Z$((e&255)*(n&255))}}; L.EL=function($,o){var T=$.length;for(var f=0;f>>2,n/255]};L.$m=function($,o){var T=new Uint32Array($.buffer),s=T.length; for(var f=0;f>8&255,A=E>>16&255,u=E>>24&255;T[f]=o[e]|o[n]<<8|o[A]<<16|o[u]<<24}}; L.aj2=function($,o,T,s,E,e,n){var A=new Uint32Array($.buffer),u=new Uint32Array(o.buffer),Y=A.length,b=0; while(256<>>8&255)<>>16&255)<>>8&255)<>>16&255)<O){var c=(Q-O)/(255-O);z+=c*(255-z);i+=c*(255-i);k+=c*(255-k)}else if(O==0)z=i=k=0;else{var c=Q/O; z=c*z;i=c*i;k=c*k}}u[f]=z|i<<8|k<<16|a&4278190080}};L.ac=function($,o){var T=o.d,s=o.w,top=0,E=0,e=0,n=0,A=0; A=0;for(var u=0;u=0;u--){var Y=u*T;for(var f=0;f=0;f--){for(var u=top; u=0;w--){var X=w*e;for(var f=0;f=0;f--){for(var w=0;w>2); L.Ge($.buffer,o,3);var T=L.ac(o,$.rect);if(T.R1($.rect))return;var s=new L.G(T.Y()*4);L.h9($.buffer,$.rect,s,T); $.buffer=s;$.rect=T};L.extend=function($,o,T){if($.rect.Yg(o))return;var s=$.rect.BZ(o),E=L.G(s.Y()); if(T!=null)E.fill(T);L.pg($.channel,$.rect,E,s);$.rect=s;$.channel=E};L.a0p=function($,o){if(o.p4()||$.rect.Yg(o))return; var T=$.rect.BZ(o),s=L.G(T.Y()*4);L.h9($.buffer,$.rect,s,T);$.rect=T;$.buffer=s};L.cM=function($,o,T){if(!T.dv($))return!1; var s=Math.floor($.x)-T.x,E=Math.floor($.y)-T.y,f=E*T.d+s;return o[f]>128};L.apb=function($,o,T){if(!T.dv($))return!1; var s=Math.floor($.x)-T.x,E=Math.floor($.y)-T.y,f=E*T.d+s;return o[4*f+3]>128};L.sq=function($){if(L._H.length<$){L._H=L.G($); L._H.fill(255)}return L._H};L._H=L.G(0);L.Ke=function($){if(L.Ch.length<$)L.Ch=L.G($);return L.Ch};L.Ch=L.G(0); L.uR=function($){this.Ca=L.G($);this.i=L.G($);this.m=L.G($);this.P=L.G($)};L.uR.prototype.clone=function(){var $=this.Ca.length,o=new L.uR(1); o.Ca=this.Ca.slice(0);o.i=this.i.slice(0);o.m=this.m.slice(0);o.P=this.P.slice(0);return o};L.j.ab8=function($,o,T,s,E){var e=E[0]+1,n=E[1],A=Math.abs(n-25)/4,u=E[2],Y=u%2+u*u>>1,b=L.j.q; b.jq(o,T);var a=b.se(1),w=b.se(1),X=b.se(1);b.ov($,s,u,u,Y);b.KB(s);b.C7(s,a);b.ff(a,w,e,e,1);b.ff(a,X,e,e,e*e); b.sub(X,w);b.nh(w,A);(n<25?b.sub:b.add)(a,w);b.R_(w,s);b.d8(s)};L.j.aks=function($,o,T,s,E){var e=L.j.q; e.jq(o,T);var n=E[0]*2.55,A=E[1],u=A>>1,Y=E[2]*.25,b=e.se(4),a=e.se(1),w=e.se(1);e.ud($,b,A,1,!0,u); e.ud($,s,A,1,!1,u);e._n($,a);e.gH(a,n);e.wH(a,w,3);e.Sj(s,w,b);e.qS(b,s,Y)};L.j.aq6=function($,o,T,s,E){var e=L.j.q; e.jq(o,T);e.dh(E[3]);var n=E[0]*-3+80,A=E[1]*-3+80,u=E[2]/2+.5,Y=E[4],b=E[5],a=e.se(1),w=e.se(1),X=e.se(1),N=e.se(1),z=e.se(4),i=e.se(4); e._n($,a);e.w0(a,w);e.kf(a,A,5);e.yS(a,.4,0);e.wH(a,X,3);e.bG(X,a,9,3,!0,27);e.w0(w,X);e.lY(X);var k=e.Nz(n,5,X); for(var f=0;f3?(E[1]-3)*10:0;var u=~~(E[2]*.73)+50,Y=Math.min(u+A,128),b=Y-u,a=-255*u; for(var f=0;f<256;f++){var w=f*65;n[f]=e.uo(a/b);a+=255}var X=e.se(1),N=e.se(1),z=e.se(1);e._n($,X); e.w0(X,z);e.wH(X,N,2*E[0]+1);e.sub(N,X);e.nh(X,65);e.bG(X,N,9,3,!0,20);for(var f=0;f0?~~((k*i+(255-k)*128)/255):128}e.wH(X,N,3);e.bG(N,X,15,2,!0,16);e.bG(N,z,15,2,!1,15);e.tE(X,z); e.Dy(z,N,2);e.Ru(N,n);e.wH(N,X,2);e.ZI(X,s)};L.j.ajS=function($,o,T,s,E){var e=L.j.q;e.jq(o,T);var n=2*E[0]+1,A=e.yv[E[1]],u=E[2]*5.1,Y=E[3],b=e.se(1),a=e.se(1),w=e.se(4),X=e.se(4); e.gr(w,Y);e.KB(w,s);e.d6(b,u);e.R_(b,s);e.d8(s,w);e._n($,a);e.wH(a,b,n);e.sub(b,a);e.nh(a,A);e.bG(a,b,9,3,!0,20); e.Sj($,b,w);e.dA(w,s,3);e.ud(s,w,15,2,!0,16);e.ud(s,X,15,2,!1,16);e.tE(w,X);e.qS(X,s,2)};L.j.anB=function($,o,T,s,E){var e=L.j.q; e.jq(o,T);var n=(15-E[0])/4+1,A=(15-E[1])/4+1,u=E[2],Y=E[3],b=e.qJ(E[4]),a=E[5]+1,w=E[6],X=E[7],N=E[8],z=e.se(1),i=e.se(1),k=e.se(1),Q=e.se(1),O=e.se(4),c=e.se(4); e.YR(k,u,Y,w);e._n($,i);e.wH(i,z,5);e.rn(k,z,Q,a,b);e.nh(Q,n);e.L7(Q,2);e.lY(z);e.rn(k,z,i,a,b);e.nh(i,A); e.L7(i,2);e.gr(O,2155905279);e.gr(c,X);e.gr(s,N);e.Sj(O,i,c);e.Sj(c,Q,s)};L.j.a9R=function($,o,T,s,E){var e=L.j.q; e.jq(o,T);e.dh(E[3]);var n=E[0],A=E[1]/10,u=E[2]/10,Y=e.se(1),b=e.se(1),a=e.se(1),w=e.pb(),X=e.pb(),N=e.pb(); e.h_(Y);e.wH(Y,b,11);e.wH(b,Y,11);e.MW(Y,w);e.$s($,Y);e.w0(Y,a);e.wH(Y,b,9);e.wH(b,Y,9);e.MW(Y,X);e.oV(X,N,5); e.oV(N,X,5);e.qk(w,.8);e.ada(w,X,.8,.9);e.Xb(X,Y,n);e.ff(Y,b,2,2,1);e.ff(b,Y,2,2,3);e.ff(Y,b,2,2,3); e.ff(a,Y,5,5,13);e.iN(b,Y,b,A);e.T$(Y,b,b,u);e.rn(b,b,Y,5,1);e.KB($,s);e.R_(Y,s);e.d8(s)};L.j.ahK=function($,o,T,s,E){var e=L.j.q; e.jq(o,T);var n=E[0],A=E[1]/2,u=E[2],Y=n/2,b=e.se(4),a=e.se(4);e.w0($,s);for(var w=0;w>1,i=2*u-100,k=+(Y==9),Q=+(Y==7),O=[4,1][k],c=[3,2][k],B=[1,2][Q],G=[2,1][Q],l=[50,75][k],v=Y<4?b:(b>>1)+50,p=e.R0(l,v),P=e.bY(a),h=e.bY(w),j=e.se(4),C=e.se(4),V=e.se(1),d=e.se(1); function m(s,p){if(v!=50){e.qX(s,p)}}function R($,gf){for(var f=0;f=T||C>=o){return}var G=N[V],d=a-G,m=n.random(),R=m/k+Q; if(z==0||Math.abs(l-G)>O){i=R<=d?v:P;z=~~(n.random()*Y)}else if(.1=o)break;h(B,c-G)}z=0}for(f=1;f=T||B>=o)break; h(G,c-B)}z=0}}else if(w==1){for(f=0;f=o)break;h(B,G)}z=0}for(f=1;f=T||B>=o)break; h(G,B)}z=0}}else{for(f=0;f=0){e.lY(a)}e.w0(a,X);e.wH(a,N,A);e.wH(N,a,A);e.nh(a,Y);e.w0(a,w);e.wH(a,N,u);e.wH(N,a,u); e.nh(a,b);e.gr(k,E[2]);e.gr(Q,E[3]);e.gr(O,E[4]);e.Sj(k,a,Q,z);e.Sj(O,w,z,i);e.Sj(Q,X,i,s);e.C7($,X,3); e.R_(X,s,3)};L.j.a2W=function($,o,T,s,E){var e=L.j.q;e.jq(o,T);e.dh(E[5]);var n=E[0]*5.1,A=E[1]/100,u=e.w$[E[2]],Y=e.se(1),b=e.se(1),a=e.se(1); e._n($,Y);e.d6(b,255);e.h_(a);e.gH(Y,n);e.GI(b,Y,.7);e.GI(a,Y,A);e.rn(Y,Y,b,5,u);e.w0($,s);e.a92(s,n,E[4],E[3]); e.KB(s);e.R_(b,s);e.d8(s)};L.j.a8O=function($,o,T,s,E){var e=L.j.q;e.jq(o,T);var n=E[0],A=4-E[1],u=11-E[2],Y=e.se(1),b=e.se(1),a=e.se(4); e.$s($,b);for(var f=0;f>1)+n%2,u=E[1]/10,Y=E[2],b=(Y*Y>>1)+Y%2,a=e.se(1),w=e.se(1),X=e.se(1),N=e.se(4),z=e.se(4),i=e.se(4); e.h_(X);e.KB($,i);e.C7(i,a);e.GI(a,X,.8);e.wH(X,a,3);e.Dy(a,X,u);e.R_(X,i);e.d8(i,i);e._n(i,X);e.ff(X,a,n,n,A); e.wH(X,w,n);e.sub(a,w);e.gH(w,1);e.ov(i,N,7,7,40);e.ov(i,z,7,7,10);e.Sj(N,w,z);e.ov(z,s,Y,Y,b)};L.j.a0Z=function($,o,T,s,E){var e=L.j.q,A=255,f,Y; e.jq(o,T);var n=E[0];if(n<2)A=n;else if(n<12)A=5*n-5;else if(n<47)A=2*n+28;else if(n<50){f=n-47;A=125+12.5*f+12.5*f*f}var u=new Uint8Array(256); for(f=75,Y=15;f<256;f++,Y+=24)u[f]=Math.min(255,Y);var b=e.se(1),a=e.se(1),w=e.se(1);e._n($,b);e.wH(b,a,11); e.wH(a,w,11);e.sub(w,b);e.nh(b,8);e.sub(w,b);e.gH(b,A);e.lY(b);e.wH(b,a,5);e.gH(a,51);e.wH(a,b,E[1]); e.wH(b,a,E[1]);e.lY(a);e.Ru(a,u);e.ZI(a,s)};L.j.aqB=function($,o,T,s,E){var e=L.j.q;e.jq(o,T);var n=e.yv[E[1]],A=E[2],u=A*1.5,Y=e.se(1),b=e.se(1),a=e.se(1); e.$s($,Y);e.bG(Y,b,15,2,!0,15);e.w0(b,a);e.kf(a,A,u);e.wH(a,Y,3);e.wH(b,a,E[0]);e.sub(a,b);e.nh(b,n); e.sub(Y,b);e.wH(b,Y,3);e.bG(Y,b,3,1,!1,1);e.dA($,s,15);e.KB(s);e.R_(b,s);e.d8(s)};L.j.a4j=function($,o,T,s,E){var e=L.j.q; e.jq(o,T);e.dh(E[3]);var n=E[0]*5.1,A=16-E[1],u=[1,1,1.05,1.1,1.15,1.2,1.25,1.3,1.35,1.4,1.45,1.5,1.6,1.7,1.8,2,2.25,2.5,2.75,3,3.5,4,5,6,8,10][E[2]],Y=e.se(1),b=e.se(1),a=e.se(1); e._n($,Y);e.gH(Y,n);e.wH(Y,b,A);e.wH(b,Y,A);e.h_(a);e.T$(Y,a,a,1);e.iN(Y,a,Y,.75);e.nh(Y,u);e.L7(Y,u); e.ff(Y,b,2,2,2);e.ZI(b,s)};L.j.a6V=function($,o,T,s,E){var e=L.j.q;e.jq(o,T);var n=E[0]+9,A=E[1]+9,u=E[2],Y=E[3],b=e.qJ(E[4]),a=E[5]+1,w=E[6],X=e.se(1),N=e.se(1),z=e.se(1),i=e.se(1),k=e.se(1),Q=e.se(4); e.$s($,X);e.iC(X,z,n,n);e.wH(z,X,A);e.w0(z,k);e.w0(X,i);e.sub(k,i);e.sub(X,k);e.add(k,i);e.nh(i,10); e.YR(N,u,Y,w);e.rn(N,X,k,a,b);e.Ga(k,i,z,.8);e.dA($,Q,9);e.dA(Q,s,9);e.KB(s);e.R_(z,s);e.d8(s)};L.j.a7I=function($,o,T,s,E){var e=L.j.q; e.jq(o,T);var n=16-E[0],A=E[1]*8,u=1-(3-E[2])/10,Y=~~(n*n*u-1),b=~~(n*n*(1-u));if(b==0)b=1;var a=e.se(1),w=e.se(1),X=e.se(1),N=e.se(4); e._n($,X);e.ff(X,a,7,7,25);e.wH(X,w,7);e.sub(a,w);e.gH(w,1);e.ov($,N,n,n,Y);e.ov($,s,n,n,b);e.Sj(N,w,s); e.KB(s);e.C7(s,a);e.ff(a,X,3,3,1);e.ff(a,w,3,3,9);e.sub(w,X);e.w0(X,w);e.sub(a,X);e.sub(X,w);e.ff(w,a,3,3,8); e.kf(a,A,1);e.R_(a,s);e.d8(s)};L.j.a4O=function($,o,T,s,E){var e=L.j.q;e.jq(o,T);e.dh(E[3]);var n=E[0],A=E[1],u=E[2],Y=n>>1,b=Math.max(~~(n/5),1),a=Math.max(~~(n*2/3),1),w=e.R0(A,u),X=e.se(1),N=e.se(1),z=e.se(1),i=e.se(1),k=e.se(4); e.$s($,X);e.SJ(2147483647,4,2,2,0,255,N);e.SJ(4,2147483647,2,2,0,255,i);e.h_(z);e.T$(N,z,N,1);e.T$(i,z,i,1); e.T$(N,X,N,1);e.T$(i,X,i,1);e.dA($,k,Y);e.dA(k,s,Y);e.ff(N,X,1,n,b);e.ff(X,N,3,n,a);e.ff(i,X,n,1,b); e.ff(X,i,n,3,a);e.tE(N,i);e.KB(s);e.R_(i,s);e.d8(s);e.qX(s,w)};L.j.q={};L.j.q.N0=0;L.j.q.cQ=0;L.j.q.YG=0; L.j.q.x2=0;L.j.q.No=0;L.j.q.jq=function($,o){var T=$*o,self=L.j.q;self.N0=$;self.cQ=o;self.YG=T;self.x2=T<<1; self.No=T<<2};L.j.q.dh=function($){L.j.q.random=function(){var o=$+=1831565813;o=Math.imul(o^o>>>15,o|1); o^=o+Math.imul(o^o>>>7,o|61);return((o^o>>>14)>>>0)/4294967296}};L.j.q.se=function($){var o=L.j.q;return new Uint8Array([-1,o.YG,o.x2,-1,o.No][$])}; L.j.q.pb=function(){return new Int32Array(L.j.q.x2)};L.j.q.wH=function($,o,T,s){if(s==null)s=T;var self=L.j.q,E=self.N0,e=self.cQ; L.Ja.es($,o,new df(0,0,E,e),T>>>1);return};L.j.q.oV=function($,o,T,s){var self=L.j.q,E=new Int32Array(self.YG),e=new Int32Array(self.YG); for(var f=0;f<2;f++){self.C7($,E,f,2);self.wH(E,e,T,s);self.R_(e,o,f,2)}};L.j.q.dA=function($,o,T,s){var self=L.j.q,E=self.se(1),e=self.se(1); for(var f=0;f<4;f++){self.C7($,E,f);if(f<3)self.wH(E,e,T,s);else e=E;self.R_(e,o,f)}};L.j.q.MF=function($,o,T,s,E){var self=L.j.q,e=self.N0,n=self.cQ,A=T+s-1,u=T>>1,Y=A>>1,b=0,a=T*s,w=new Int32Array(T); for(var f=0;f=e)c=e-1;if(B<0)B=0;else if(B>=n)B=n-1;var G=e*B+c<<2;X+=$[G];N+=$[G+1]; z+=$[G+2]}}o[b++]=~~(X/a);o[b++]=~~(N/a);o[b++]=~~(z/a);o[b]=$[b];b++;for(var l=1;l=n)B=n-1;if(v<0)v=0;else if(v>=e)v=e-1; if(p<0)p=0;else if(p>=e)p=e-1;var P=B*e+v<<2,h=B*e+p<<2;X=X+$[h]-$[P];N=N+$[h+1]-$[P+1];z=z+$[h+2]-$[P+2]}o[b++]=~~(X/a); o[b++]=~~(N/a);o[b++]=~~(z/a);o[b]=$[b];b++}}};L.j.q.bG=function($,o,T,s,E,e){var self=L.j.q,n=self.N0,A=self.cQ,u=T+s-1,Y=T>>1,b=u>>1,a=0,w=new Int32Array(T),X=new Int32Array(256),N=new Int32Array(16); for(var f=0;f=n)O=n-1;if(c<0)c=0;else if(c>=A)c=A-1; X[$[c*n+O]]++;N[$[c*n+O]>>>4]++}}o[a++]=L.j.q.g7(N,X,e);for(var B=1;B=A)c=A-1;if(G<0)G=0;else if(G>=n)G=n-1;if(l<0)l=0;else if(l>=n)l=n-1; var v=$[c*n+G],p=$[c*n+l];X[v]--;X[p]++;N[v>>>4]--;N[p>>>4]++}o[a++]=L.j.q.g7(N,X,e)}}};L.j.q.ud=function($,o,T,s,E,e){var self=L.j.q,n=self.se(1),A=self.se(1); for(var f=0;f<4;f++){self.C7($,n,f);if(f<3)self.bG(n,A,T,s,E,e);else A=n;self.R_(A,o,f)}};L.j.q.ff=function($,o,T,s,E){E=Math.min(s*T,E); var self=L.j.q,e=self.N0,n=self.cQ,A=s>>1,u=T>>1,Y=0,b=new Int32Array(s),a=new Int32Array(256),w=new Int32Array(16); for(var f=0;f=e)i=e-1;if(k<0)k=0;else if(k>=n)k=n-1;a[$[k*e+i]]++;w[$[k*e+i]>>>4]++}}o[Y++]=L.j.q.g7(w,a,E); for(var Q=1;Q=n)k=n-1; if(c<0)c=0;else if(c>=e)c=e-1;if(B<0)B=0;else if(B>=e)B=e-1;var G=$[k*e+c],l=$[k*e+B];a[G]--;a[l]++; w[G>>>4]--;w[l>>>4]++}o[Y++]=L.j.q.g7(w,a,E)}}};L.j.q.g7=function($,o,T){var s=0,E=0;while(s+$[E>>>4]>>4]; E+=16}for(;E<256;E++){s+=o[E];if(s>=T)break}return E};L.j.q.ov=function($,o,T,s,E){var self=L.j.q,e=self.se(1),n=self.se(1); for(var f=0;f<4;f++){self.C7($,e,f);if(f<3)self.ff(e,n,T,s,E);else n=e;self.R_(n,o,f)}};L.j.q.Dy=function($,o,T){var self=L.j.q,s=self.N0,E=self.cQ,e=0; for(var f=0;f=E)u=n;for(var Y=0;Y=s)a=Y;var w=n+b,X=n+a,N=A+Y,z=u+Y,i=n+Y,k=$[w],Q=$[X],O=$[N],c=$[z],B=$[i],G=B+(B*4*T+.5); G=G-((k+Q+c+O)*T+.5);o[e++]=self.uo(G)}}};L.j.q.qS=function($,o,T){var self=L.j.q,s=self.se(1),E=self.se(1); for(var f=0;f<4;f++){self.C7($,s,f);if(f<3)self.Dy(s,E,T);else E=s;self.R_(E,o,f)}};L.j.q.ahV=function($,o,T){var self=L.j.q,s=self.N0,E=self.cQ,e=0,n=T+4; for(var f=0;f=E)Y=A;for(var b=0;b=s)w=b;var X=A+a<<2,N=A+w<<2,z=u+b<<2,i=Y+b<<2,k=A+b<<2;for(var Q=0;Q<3;Q++){var O=$[X+Q],c=$[N+Q],B=$[z+Q],G=$[i+Q],l=$[k+Q]; o[e++]=(l*T+O+c+G+B)/n}o[e]=$[e];e++}}};L.j.q.iC=function($,o,T,s){var self=L.j.q,E=self.N0,e=self.cQ,n=T>>1,A=s>>1,u=0,Y=new Int32Array(T),b=new Int32Array(256); for(var f=0;f=E)N=E-1;if(z<0)z=0;else if(z>=e)z=e-1;b[$[z*E+N]]++}}var i=0,k=0;for(var Q=0;Q<256;Q++){if(i=e)z=e-1;if(B<0)B=0;else if(B>=E)B=E-1;if(G<0)G=0;else if(G>=E)G=E-1;b[$[z*E+B]]--; b[$[z*E+G]]++}i=0;k=0;for(var Q=0;Q<256;Q++){if(i0?f-1:0)*A,b=f*A,a=(f0?w-1:0,N=wE)E=e;if(n>E)E=n;o[f]=E}};L.j.q.KB=function($,o){if(o==null)o=$; var T=$.length;for(var s=0;sn){E=n}}else{u=2;Y=n}var b=Y-E;if(b!=0){if(u==0){a=~~(43*(e-n)/b)}else if(u==1){a=~~(43*(n+2*b-A)/b)}else{a=43*(A+4*b-e)/b}if(a<0){a=255&a-1}o[s]=a; o[s+1]=~~(255*b/Y)}else{o[s]=b;o[s+1]=b}o[s+2]=Y;o[s+3]=$[s+3]}};L.j.q.d8=function($,o){if(o==null)o=$; var T=$.length;for(var s=0;s>1}}; L.j.q.w0=function($,o){var T=$.length;for(var f=0;fs)n=E;if(e>s)n=e;var A=o[n];if(A){$[f]=~~(A*s/n);$[f+1]=~~(A*E/n);$[f+2]=~~(A*e/n)}else{$[f]=A; $[f+1]=A;$[f+2]=A}}};L.j.q.nh=function($,o){for(var f=0,T=$.length;f=o?s:T}};L.j.q.bY=function($){return[$>>24&255,$>>16&255,$>>8&255,$&255]}; L.j.q.a92=function($,o,T,s){if(T==null)T=255;if(s==null)s=4278190335;var E=L.j.q,e=E.No,n=E.bY(T),A=E.bY(s); for(var f=0;f=o){$[f]=n[0];$[f+1]=n[1];$[f+2]=n[2]}else{$[f]=A[0]; $[f+1]=A[1];$[f+2]=A[2]}}};L.j.q.gr=function($,o){var T=L.j.q,s=T.No,E=T.bY(o);for(var f=0;f5?(100-Math.max(4,$))/100:.95;o=o!=100?Math.max(4,o)/100:.9995;var T=new Uint8Array(256),s=o>.5?.5/(1-o):o*2,E=~~(s*256),e=~~((.5-$*s)*256)<<8; for(var f=0;f<256;f++){T[f]=L.j.q.uo(e>>8);e+=E}return T};L.j.q.h_=function($){for(var f=0,o=L.j.q,T=$.length; f255){b=255;Y=254}var a=255/(b-Y),w=-Y; for(var f=0;f<256;f++){e[f]=self.uo(a*w+.5);w++}return e};L.j.q.kf=function($,o,T){var s=L.j.q;s.Ru($,s.Nz(o,T,$))}; L.j.q.akF=function($,o){var self=L.j.q,T=self.j5($),s=self.YG*o/100,E=0,e=-1;do{E+=T[++e]}while(E<=s); return e};L.j.q.MW=function($,o){var T=0,self=L.j.q,s=self.N0,E=self.cQ,e=1/Math.PI,n=e*255;for(var f=0; f=2&&u%T>=2?255:0}}};L.j.q.SJ=function($,o,T,s,E,e,n){var self=L.j.q,A=self.N0,u=self.cQ,Y=0,b=0,a=0; for(var f=0;f40?[1.25,1.5,1.75,2,2.5,3,4,5,7.5,10][$-41]:$/40}; L.j.q.a4n=function($,o,T){var self=L.j.q,s=self.N0,E=self.cQ,e=T,n=T>>1,A=n-1,u=e*e,Y=0;for(var f=0; f=s)k=s-1; if(Q>=E)Q=E-1;b+=$[Q*s+k<<2];a+=$[(Q*s+k<<2)+1];w+=$[(Q*s+k<<2)+2]}}var O=~~(b/u),c=~~(a/u),B=~~(w/u); o[Y]=O;o[Y+1]=c;o[Y+2]=B;o[Y+3]=$[Y+3];Y+=4;for(var G=1;G=s)v=s-1;if(Q>=E)Q=E-1;var p=Q*s,P=p+v<<2,h=p+l<<2;b+=$[P]-$[h];a+=$[P+1]-$[h+1];w+=$[P+2]-$[h+2]}if(G%T==0){O=~~(b/u); c=~~(a/u);B=~~(w/u)}o[Y]=O;o[Y+1]=c;o[Y+2]=B;o[Y+3]=$[Y+3];Y+=4}}};L.j.q.afN=function($,o,T,s,E){var self=L.j.q,e=self.N0,n=self.cQ,A=0,u=0,Y=0,b=0; for(var f=b;f=s||f=E||w>8)&255;o[f]=o[k]=Q;Q=Q%8;T[f]=T[k]=E[Q]; s[f]=s[k]=e[Q]}}function Y(k){return k*k*k*(k*(k*6-15)+10)}function b(k,Q,O){return(1-O)*k+O*Q}function a(k,Q){return k&Q}function w(k,Q){return k%Q}function X(k,Q,O,c,B){var G=Math.floor(k),l=Math.floor(Q),n,v,p,P,h,j; k=k-G;Q=Q-l;G=G&255;l=l&255;n=G+o[l];P=T[n]*k+s[n]*Q;n=G+o[B(l+1,c)];p=T[n]*k+s[n]*(Q-1);n=B(G+1,O)+o[l]; h=T[n]*(k-1)+s[n]*Q;n=B(G+1,O)+o[B(l+1,c)];j=T[n]*(k-1)+s[n]*(Q-1);v=Y(k);return b(b(P,h,v),b(p,j,v),Y(Q))}function z(k,n,Q){k[n]=Q}function i(k,Q,O,c,B){var G=Math.min(Math.min(Q,256),Math.min(256,O)),l=G==256||G<8,v=8,p=new Uint32Array(v),P=new Uint32Array(v),h=new Float32Array(v),j=new Float32Array(v),C=1,V=1,d=l?a:w,m=z,R; for(var f=0;f>>2),n=new Uint8Array(o.length>>>2),A=new Uint8Array(o.length); for(var f=0;f>>2]=u;A[f]=o[f];A[f+1]=o[f+1]; A[f+2]=o[f+2]}L.TS.er(n,e,T,s);L.TS.ls(o,E,T,s,L.TS.mQ[1],0,!0);for(var f=0;f>>2]}for(var f=0,Y=o.length; f>>8&255,i=X>>>16&255,k=X>>>24&255,Q=~~(Math.random()*8),O=Q%3,c=0,B=0; if(Q<3){B--}else if(Q>4){B++}if(O==0){c--}else if(O==2){c++}var G=w+c,l=f+B;if(G<0)G=0;else if(G>n-1)G=n-1; if(l<0)l=0;else if(l>A-1)l=A-1;var X=b[l*n+G],v=X&255,p=X>>>8&255,P=X>>>16&255,h=X>>>24&255;u[a]=Y(N,v); u[a+1]=Y(z,p);u[a+2]=Y(i,P);u[a+3]=Y(k,h)}}}function o(e,n){return n}function T(e,n){return e>n?n:e}function s(e,n){return e>>2;E[A+1]=a+2>>>2;E[A+2]=w+2>>>2;E[A+3]=X+2>>>2}}}return $}(); L.j.aeP=function(){function $(o,T,s,E){var e=new Uint8Array(o.length),n=new Uint8Array(o.length>>>2),A=new Uint8Array(o.length>>>2); L.TS.ls(o,e,T,s,L.TS.mQ[2],0,!0);for(var f=0;f>>2]=u;E[f+0]=o[f+0];E[f+1]=o[f+1];E[f+2]=o[f+2];E[f+3]=o[f+3]}L.TS.er(n,A,T,s);for(var f=0;f>>2]-50)*(255/205))}for(var f=0,Y=o.length;f.5)return 0;if(Q>.25)return 1;if(Q>.1)return 2;if(Q>.02143)return 3;if(Q>.00445)return 4;if(Q>65e-5)return 5; if(Q>415e-6)return 6;if(Q>55e-6)return 7;return 8}function A(Q,O,c,B,G,l){Q[O]=c[B]+(G[l]-c[B]>>1);Q[O+1]=c[B+1]+(G[l+1]-c[B+1]>>1); Q[O+2]=c[B+2]+(G[l+2]-c[B+2]>>1);Q[O+3]=c[B+3]+(G[l+3]-c[B+3]>>1)}function u(Q,O,c,B,G,l){Q[O]=G[l]+c[B]>>1; Q[O+1]=G[l+1]+c[B+1]>>1;Q[O+2]=G[l+2]+c[B+2]>>1;Q[O+3]=G[l+3]+c[B+3]>>1}function Y(Q,O,c,B,G,l,v,p,P){var h=0,j=0,C=0,f,V=G[l],d; A(p,0,Q,O,Q,c);for(f=0;f0&&B[l-1]0){Y(B,v-4,v,G,h,V,j,C,4)}v+=4}G[O]=G[0];h[O]=h[0];if(G[O-1]0){Y(B,v,p,G,h,O,j,C,4)}}e(B)}function a(){var Q=Math.random(); if(Q>.659755)return 0;if(Q>.1625)return 10;if(Q>.06)return 20;if(Q>.01)return 30;if(Q>.0035)return 40; if(Q>65e-5)return 50;if(Q>415e-6)return 60;if(Q>55e-6)return 70;return 80}function w(Q,O,c,B,G,l){var v=a()+1,p=B[G]; for(var f=1;fG)break;if(B[G-f]c[f]){T(Q,C-l,h,0);c[f-1]=P;j=!1;break}T(Q,C-l,Q,C);c[f-1]=c[f];C+=l}if(j){T(Q,C-l,h,0); c[G-1]=P}v++;B--;O-=l}}function z(Q,O,c,B,G){var l=0,v=0,p=O*4;for(var f=0;f>16}n=E[0];var w=E[1],X=(w+2)/2,N=e.random()*255,z=e.se(1); for(var f=0;f>>1; while(T!=0&&$[f][0]<$[T][0]){var s=$[f];$[f]=$[T];$[T]=s;f=T;T=f>>>1}},aaA:function($){if($.length==2)return $.pop(); var top=$[1],f=1;$[1]=$.pop();var o=$.length;while(!0){var T=f<<1,s=T+1,E=f;if(TT){console.log(f);throw"e"}T=s;o=o>>>1}}}}; L.R={};L.R.eP=new Float64Array(256);L.R.L0=new Uint8Array(256*256);L.R.o9=new Uint8Array(256*256);(function(){for(var f=0; f<256;f++)L.R.eP[f]=255/f;for(var f=0;f<256;f++)for(var $=0;$<256;$++)L.R.L0[f*256+$]=f==0?0:Math.round($*255/f); for(var f=0;f<256;f++)for(var $=0;$<256;$++)L.R.o9[f*256+$]=Math.round(f*(255-$)/255)}());L.R.xE=function($,o,T,s,E,e,n,A){if(A==null)A=fW.gs(); if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf($)==-1){n=n*A.fill;A.fill=1;A.style=!1}var u="norm,dark,mul ,idiv,lbrn,lite,scrn,div ,lddg,over,sLit,hLit,vLit,lLit,pLit,hMix,diff,smud,fsub,fdiv".split(","),Y="dkCl,lgCl,hue ,sat ,colr,lum ".split(","),b=L.R[$+"F"]; if(A.Kf==null&&$=="norm")L.R.aar(o,T,s,E,e,n,b,A.xX?1:0);else if($=="diss")L.R.a0B(o,T,s,E,e,n,b,A.xX?1:0); else if(u.indexOf($)!=-1)L.R.a2L(o,T,s,E,e,n,b,A);else if(Y.indexOf($)!=-1)L.R.a94(o,T,s,E,e,n,b,A)}; L.R.a5$=function($,o,T){var s=$*T+1-T;return s<.001?0:1-Math.min(1,(1-o)/s)};L.R.a47=function($,o,T){return $*T==1?1:Math.min(1,o/(1-$*T))}; L.R.XQ=function($){return $<=.25?((16*$-12)*$+4)*$:Math.sqrt($)};L.R.normF=function($,o,T){return $}; L.R.darkF=function($,o,T){return Math.min($,o)};L.R["mul F"]=function($,o,T){return $*o};L.R.idivF=function($,o,T){var s=$*T+1-T; return o==1?1:1-o>=s?0:1-(1-o)/s};L.R.lbrnF=function($,o,T){return Math.max(0,$*T+o-T)};L.R.dkClF=function($,o,T){var s=L.Hl($)=1-$?1:o/(1-$)};L.R.lddgF=function($,o,T){$*=T;return Math.min(1,$+o)}; L.R.lgClF=function($,o,T){var s=L.Hl($)>L.Hl(o)?$:o;T.i=s.i;T.m=s.m;T.P=s.P;return T};L.R.overF=function($,o,T){return L.R.hLitF(o,$,T)}; L.R.sLitF=function($,o,T){return $<=.5?o-(1-2*$)*o*(1-o):o+(2*$-1)*(L.R.XQ(o)-o)};L.R.hLitF=function($,o,T){return $<=.5?L.R["mul F"](2*$,o,T):L.R.scrnF(2*$-1,o,T)}; L.R.vLitF=function($,o,T){return $<=.5?L.R.a5$(2*$,o,T):L.R.a47(2*$-1,o,T)};L.R.lLitF=function($,o,T){return $<=.5?L.R.lbrnF(2*$,o,T):L.R.lddgF(2*$-1,o,T)}; L.R.pLitF=function($,o,T){return $<=.5?L.R.darkF(2*$,o,T):L.R.liteF(2*$-1,o,T)};L.R.hMixF=function($,o,T){if(T>.99)return $+o<1?0:1; return Math.min(1,Math.max(0,(o+$*T-T)/(1-T+1e-6)))};L.R.diffF=function($,o,T){$*=T;return Math.abs($-o)}; L.R.smudF=function($,o,T){return $+o-2*$*o};L.R.fsubF=function($,o,T){return Math.max(o-$,0)};L.R.fdivF=function($,o,T){return Math.min(o/$,1)}; L.R["hue F"]=function($,o,T){L.R.jn($,L.M3(o),T);L.R.nf(T,L.Hl(o),T)};L.R["sat F"]=function($,o,T){L.R.jn(o,L.M3($),T); L.R.nf(T,L.Hl(o),T)};L.R.colrF=function($,o,T){L.R.nf($,L.Hl(o),T)};L.R["lum F"]=function($,o,T){L.R.nf(o,L.Hl($),T)}; L.R.nf=function($,o,T){var s=o-L.Hl($);T.i=$.i+s;T.m=$.m+s;T.P=$.P+s;L.R.a2X(T)};L.R.a2X=function($){var o=$.i,T=$.m,s=$.P,E=L.DB(o,T,s),J=Math.min(o,T,s),e=Math.max(o,T,s); if(J<0){var n=E/(E-J);o=E+(o-E)*n;T=E+(T-E)*n;s=E+(s-E)*n}if(e>1){var n=(1-E)/(e-E);o=E+(o-E)*n;T=E+(T-E)*n; s=E+(s-E)*n}$.i=o;$.m=T;$.P=s};L.R.jn=function($,o,T){var s=L.R.acs,E=$.i,e=$.m,n=$.P;if(E==e&&e==n){T.i=T.m=T.P=0}else if(E>e){if(E>n){if(e>n){T.i=o; T.m=s(E,e,n,o);T.P=0}else{T.i=o;T.P=s(E,n,e,o);T.m=0}}else{T.P=o;T.i=s(n,E,e,o);T.m=0}}else{if(En){T.m=o; T.P=s(e,n,E,o);T.i=0}else{T.P=o;T.m=s(n,e,E,o);T.i=0}}else{T.m=o;T.i=s(e,E,n,o);T.P=0}}};L.R.acs=function($,o,T,s){return(o-T)*s/($-T)}; L.R.aar=function($,o,T,s,E,e,n,A){var u=o.Sr(s).Sr(E),Y=Math.max(0,u.x-o.x),b=Math.max(0,u.x-s.x),a=Math.max(0,u.y-o.y),w=Math.max(0,u.y-s.y),X=u.d,N=u.w,z=o.d,i=s.d,k=L.R.L0,Q=L.R.o9,O=new Uint32Array($.buffer),c=new Uint32Array(T.buffer); for(var f=0;f>>24==0)continue; if(v>>>24==255&&e==1&&A==0){c[G+l]=O[B+l];continue}var p=c[G+l],P=255*e&255;if(A==0){P=(v>>>24)*e&255; h=p>>>24}var j=Q[h<<8|P],C=P+j,V=v&255,d=v>>>8&255,m=v>>>16&255,R=p&255,g=p>>>8&255,S=p>>>16&255;c[G+l]=A*(p>>>24)+(1-A)*C<<24|k[C<<8|L.Z$(m*P+S*j)]<<16|k[C<<8|L.Z$(d*P+g*j)]<<8|k[C<<8|L.Z$(V*P+R*j)]}}}; L.R.akH=function($,o,T,s,E,e){var n=o.Sr(s).Sr(E),A=Math.max(0,n.x-o.x),u=Math.max(0,n.x-s.x),Y=Math.max(0,n.y-o.y),b=Math.max(0,n.y-s.y),a=n.d,w=n.w,X=o.d,N=s.d,z=L.R.L0,i=L.R.o9,k=new Uint32Array($.buffer),Q=new Uint32Array(T.buffer),O=Math.floor(Math.random()*16777215),c=0; for(var f=0;f>>24==0)continue; if(v>>24==255&&e==1){Q[G+l]=v;continue}var p=Q[G+l],P=(v>>>24)*e*(1/255),h=(p>>>24)*(1/255),j=h*(1-P),C=P+j,V=v&255,d=v>>>8&255,m=v>>>16&255,R=p&255,g=p>>>8&255,S=p>>>16&255; c>>>=8;if((l&3)==0)c=L.R.fi(G+l+O);var F=C==0?0:1/C,r=Math.floor(C*(256*255))+(c&255)>>>8,q=Math.floor((m*P+S*j)*F+.5),W=Math.floor((d*P+g*j)*F+.5),Z=Math.floor((V*P+R*j)*F+.5); Q[G+l]=r<<24|q<<16|W<<8|Z}}};L.R.Lr=function($,o,T,s,E,e,n,A){var u=L.DB($,o,T),Y=L.DB(s,E,e),b=Math.min,a=L.R.agy,w=a(u,A,0); w=b(w,a($,A,8));w=b(w,a(o,A,16));w=b(w,a(T,A,24));var X=a(Y,A,4);X=b(X,a(s,A,12));X=b(X,a(E,A,20));X=b(X,a(e,A,28)); X=Math.max(X,1-n);var N=Math.min(w,X);return N<0?0:N>1?1:N};L.R.agy=function($,o,f){return Math.min(($-o[f])*o[f+1],($-o[f+3])*o[f+2])}; L.R.a2L=function($,o,T,s,E,e,n,A){var u=1/255,Y=u*e,b=A.xX?1:0,a=A.fill,w=A.style,X=o.Sr(s).Sr(E),N=Math.max(0,X.x-o.x),z=Math.max(0,X.x-s.x),i=Math.max(0,X.y-o.y),k=Math.max(0,X.y-s.y),Q=X.d,O=X.w,c=o.d,B=s.d,G=new Uint32Array($.buffer),l=new Uint32Array(T.buffer); for(var f=0;f>>24==0)continue; var j=l[p],C=(h&255)*u,V=(h>>>8&255)*u,d=(h>>>16&255)*u,m=(j&255)*u,R=(j>>>8&255)*u,g=(j>>>16&255)*u,S=e; if(b==0){S=(h>>>24)*Y;F=(j>>>24)*u}if(A.Kf)S*=L.R.Lr(C,V,d,m,R,g,F,A.Kf);var r=F*(1-S),q=S+r,W=q==0?0:255/q,Z=w?1:S,I=((1-F)*S*C+(1-Z)*F*m+Z*F*n(C,m,(1+S-Z)*a))*W,_=((1-F)*S*V+(1-Z)*F*R+Z*F*n(V,R,(1+S-Z)*a))*W,cN=((1-F)*S*d+(1-Z)*F*g+Z*F*n(d,g,(1+S-Z)*a))*W; q=S*a+F*(1-S*a);var ce=~~(q*255+.5);l[p]=b*(j>>>24)+(1-b)*ce<<24|cN<<16|_<<8|I}}};L.R.a94=function($,o,T,s,E,e,n,A){var u=1/255,Y=u*e,b=A.xX?1:0,a=o.Sr(s).Sr(E),w=Math.max(0,a.x-o.x),X=Math.max(0,a.x-s.x),N=Math.max(0,a.y-o.y),z=Math.max(0,a.y-s.y),i=a.d,k=a.w,Q=new Uint32Array($.buffer),O=new Uint32Array(T.buffer),c={i:0,m:0,P:0},B={i:0,m:0,P:0},G={i:0,m:0,P:0}; for(var f=0;f>>8&255)*u,V=(P>>>16&255)*u,d=(h&255)*u,m=(h>>>8&255)*u,R=(h>>>16&255)*u,g=e,S=1; if(b==0){g=(P>>>24)*Y;S=(h>>>24)*u}if(A.Kf)g*=L.R.Lr(j,C,V,d,m,R,S,A.Kf);var F=S*(1-g),r=g+F,q=255/r; c.i=j;c.m=C;c.P=V;B.i=d;B.m=m;B.P=R;n(c,B,G);var W=(((1-S)*j+S*G.i)*g+d*F)*q,Z=(((1-S)*C+S*G.m)*g+m*F)*q,I=(((1-S)*V+S*G.P)*g+R*F)*q,_=b*(h>>>24)+(1-b)*Math.round(r*255); O[v]=_<<24|I<<16|Z<<8|W}}};L.R.Po=function($){$=$^61^$>>>16;$=$+($<<3);$=$^$>>>4;$=$*668265261;$=$^$>>15; return($&16777215)*(1/16777215)};L.R.fi=function($){$=$^61^$>>>16;$=$+($<<3);$=$^$>>>4;$=$*668265261; $=$^$>>>15;return $};L.R.Cp=function($){this.dh=$};L.R.Cp.prototype.get=function(){var $=this.dh=L.R.fi(this.dh); return($&16777215)*(1/16777215)};L.R.a0B=function($,o,T,s,E,e,n,A){var u=1/255,Y=u*e,b=Math.round(e*(256*256*256/255)),a=o.Sr(s).Sr(E),w=Math.max(0,a.x-o.x),X=Math.max(0,a.x-s.x),N=Math.max(0,a.y-o.y),z=Math.max(0,a.y-s.y),i=a.d,k=a.w,Q=new Uint32Array($.buffer),O=new Uint32Array(T.buffer); for(var f=0;f>>24); if((L.R.fi(c)&16777215)>=p*b)continue;O[B]=l&16777215|A*(v>>>24)+(1-A)*255<<24}}};L.R.a4q=function($,o,T){for(var f=0; f<$.length;f+=4){var s=T[f>>>2];if(s==0)continue;var E=s*(1/255),e=1/E,n=o[f],A=o[f+1],u=o[f+2],Y=$[f],b=$[f+1],a=$[f+2]; o[f]=Math.min(255,Math.max(0,Math.round((n-(1-E)*Y)*e)));o[f+1]=Math.min(255,Math.max(0,Math.round((A-(1-E)*b)*e))); o[f+2]=Math.min(255,Math.max(0,Math.round((u-(1-E)*a)*e)));o[f+3]=255}};L.R.Cu=function($,o,T,s,E,e,n,A,u,Y,b){if(Y==null)Y=!1; if(b==null)b=[1,1,1];var a=255<<24|b[2]*16711680|b[1]*65280|b[0]*255,w=~a;if(E&&!o.R1(e)){var X=L.G(o.Y()*4); X.fill(n);L.pg(E,e,X,o);E=X;e=o}if(Y){if(E==null)L.R.aeN($,o,T,s,E,A,u,a,w);else L.R.ajt($,o,T,s,E,A,u)}else{if(E==null)L.R.a3e($,o,T,s,E,A,u,a,w); else L.R.a9F($,o,T,s,E,A,u)}};L.R.a3e=function($,o,T,s,E,e,n,A,u){var Y=1/255,b=o.Sr(s).Sr(e),a=Math.max(0,b.x-o.x),w=Math.max(0,b.x-s.x),X=Math.max(0,b.y-o.y),N=Math.max(0,b.y-s.y),z=b.d,i=b.w,k=new Uint32Array($.buffer),Q=new Uint32Array(T.buffer),O=L.R.L0,c=n*255&255; for(var f=0;f>>24,h=p>>>24,j=L.Z$(c*P+(255-c)*h),C=L.Z$(P*c),V=L.Z$(h*(255-c)),d=v&255,m=v>>>8&255,R=v>>>16&255,g=p&255,S=p>>>8&255,F=p>>>16&255,r=C*d+g*V,q=C*m+S*V,W=C*R+F*V; r=O[j<<8|L.Z$(r)];q=O[j<<8|L.Z$(q)];W=O[j<<8|L.Z$(W)];var Z=j<<24|W<<16|q<<8|r;Q[G]=u&p|A&Z}}};L.R.aeN=function($,o,T,s,E,e,n,A,u){var Y=1/255,b=o.Sr(s).Sr(e),a=Math.max(0,b.x-o.x),w=Math.max(0,b.x-s.x),X=Math.max(0,b.y-o.y),N=Math.max(0,b.y-s.y),z=b.d,i=b.w,k=new Uint32Array($.buffer),Q=new Uint32Array(T.buffer),O=L.R.L0,c=n*16777215&16777215; for(var f=0;f>>24,p=l>>>24,P=L.Z$(B*v+(255-B)*p),h=L.Z$(v*B),j=L.Z$(p*(255-B)),C=G&255,V=G>>>8&255,d=G>>>16&255,m=l&255,R=l>>>8&255,g=l>>>16&255,S=k[P<<8|L.Z$(h*C+m*j)],F=k[P<<8|L.Z$(h*V+R*j)],r=k[P<<8|L.Z$(h*d+g*j)]; i[O]=P<<24|r<<16|F<<8|S}}};L.R.ajt=function($,o,T,s,E,e,n){var A=1/255,u=o.Sr(s).Sr(e),Y=Math.max(0,u.x-o.x),b=Math.max(0,u.x-s.x),a=Math.max(0,u.y-o.y),w=Math.max(0,u.y-s.y),X=u.d,N=u.w,z=new Uint32Array($.buffer),i=new Uint32Array(T.buffer),k=L.R.L0,Q=Math.round(n*257); for(var f=0;f>>24,P=v>>>24,h=p*G*(1/255),j=P*(255-G)*(1/255),C=l&255,V=l>>>8&255,d=l>>>16&255,m=v&255,R=v>>>8&255,g=v>>>16&255,S=L.R.fi(c+B+k),F=Math.floor((h+j)*256+.5)+(S>>>0&255)>>>8,r=F==0?0:256/(h+j),q=C*h+m*j,W=V*h+R*j,Z=d*h+g*j,I=Math.floor(q*r+.5)+(S>>>8&255)>>>8,_=Math.floor(W*r+.5)+(S>>>16&255)>>>8,cN=Math.floor(Z*r+.5)+(S>>>21&248)>>>8; i[c+B]=F<<24|cN<<16|_<<8|I}}};L.R.abv=function($){return Math.floor($+Math.random())};L.R._b=function($,o,T,s,E,e,n){var A=1/255,u=o.Sr(s).Sr(e),Y=Math.max(0,u.x-o.x),b=Math.max(0,u.x-s.x),a=Math.max(0,u.y-o.y),w=Math.max(0,u.y-s.y),X=u.d,N=u.w; for(var f=0;f1+A){C=L._o._Q(w,j,q,W);g=Math.sqrt(C);F--;r++}else{C=d=R=1e9;for(var f=0;f=P)continue;var ce=L._o._Q(w,cN,q,W);if(ce>1);L.Ja.hr(o,n,T,s,e[1]-1>>1);L.Ja.hr(o,n,T,s,e[2]-1>>1)};L.Ja.alz=function($,o,T,s,E){var e=L.Ja.XW(E,2),n=L.Ja.pf(T*s); L.w0($,o);L.Ja.hr(o,n,T,s,e[0]-1>>1);L.Ja.hr(o,n,T,s,e[1]-1>>1)};L.Ja.a35=function($,o,T,s){var E=L.Ja.XW(s,3),e=L.Ja.pf(o*T*4); L.Ja.yR($,e,o,T,E[0]-1>>1);L.Ja.yR($,e,o,T,E[1]-1>>1);L.Ja.yR($,e,o,T,E[2]-1>>1)};L.Ja.a6Y=function($,o,T,s,E,e){if(e==null)e=3; var n=L.Ja.XW(E,e),A=L.Ja.sR(T*s);L.w0($,o);for(var f=0;fe||$*T<0&&ne||$*s<0&&ne||$*E<0&&ne?1:0}; L.r9.a2Y=function($,o,T,s){var E=new Float32Array(s),e=0;new Uint32Array(s).fill(0);for(var n=0;ne)e=a}var X=o*T,N=e==0?0:1/e; for(var f=0;f0&&A>0)E[e+0]=-$-1;if(n>0)E[e+1]=-$;if(n>0&&A<$-1)E[e+2]=-$+1;if(A<$-1)E[e+3]=1; if(n0)E[e+6]=$-1;if(A>0)E[e+7]=-1;f++;e+=8}return s}; L.TS={};L.TS.Hx=function($){var o=$.slice(0),T=0;for(var f=0;f<$.length;f++)T+=$[f];for(var f=0;f<$.length; f++)o[f]/=T;return o};L.TS.mQ=[L.TS.Hx([1,2,1,2,16,2,1,2,1]),L.TS.Hx([1,2,1,2,4,2,1,2,1]),L.TS.Hx([0,-1,0,-1,8,-1,0,-1,0]),L.TS.Hx([-.7,-1,-.7,-1,10,-1,-.7,-1,-.7]),[-1,0,1,-2,0,2,-1,0,1],[1,2,1,0,0,0,-1,-2,-1]]; L.TS.ls=function($,o,T,s,E,e,n,A){if(n==null)n=!1;if(A==null)A=!1;var u=Math.floor(Math.sqrt(E.length)),Y=u-1>>>1,b=new Uint32Array($.buffer),o=new Uint8ClampedArray(o.buffer); for(var f=0;fT-1)O=T-1;if(c<0)c=0;else if(c>s-1)c=s-1;if(A&&b[c*T+O]>>>24==0){c=f; O=a}var B=b[c*T+O];w+=(B&255)*Q;X+=(B>>>8&255)*Q;N+=(B>>>16&255)*Q;z+=(B>>>24&255)*Q}if(n){if(w<0)w=-w; if(X<0)X=-X;if(N<0)N=-N;if(z<0)z=-z}if(A){w=Math.max(0,Math.min(255,w));X=Math.max(0,Math.min(255,X)); N=Math.max(0,Math.min(255,N));z=Math.max(0,Math.min(255,z))}var G=f*T+a<<2;o[G]=~~(.5+w);o[G+1]=~~(.5+X); o[G+2]=~~(.5+N);o[G+3]=255-e&o[G+3]|e&~~(.5+z)}};L.TS.eF=function($,o,T,s){var E=$.length,e=new Uint8Array(E); L.TS.ls($,o,T,s,L.TS.mQ[4],0,!0);L.TS.ls($,e,T,s,L.TS.mQ[5],0,!0);for(var f=0;f>>1,Q=new Array(i),O=new Array(i); for(var f=0;fu-b-i-1){G.fill(0);var v=Math.max(l-b,0),p=Math.min(u,l+b+1),P=p-v; for(var h=0;h=0)s(G,n,j*u+v,j*u+p,-1);var V=h*u+l<<2;X=G[300];if(X!=0)for(var f=0;f<3;f++)A[V+f]=c(z[f],n[V+f],X,w)}}else{for(var f=0; f=0)T(O,n,j*u+v,j*u+p,-1,k);if(C>>4]+=Y}return $}();L.KW.hX=function(){function $(a,w,X,N,z,i,k){if(z==0){w.set(a); return}if(z<=80)o(a,w,X,N,z,i,k);else e(a,w,X,N,z,i,k)}function o(a,w,X,N,z,i,k){var Q=0,O=new Int32Array(512),c=1+2*Math.round(Math.sqrt(z)),B=c>>>1,G=new Array(c); for(var f=0;fX-z-c-1){O.fill(0); Q=0;var P=Math.max(p-z,0),h=Math.min(X,p+z+1),j=h-P;for(var C=0;C=0){Q-=j;s(O,a,V*X+P,V*X+h,-1)}if(d=0){Q-=j;T(G,a,V*X+P,V*X+h,-1,B)}if(d>>4]+=N}function e(a,w,X,N,z,i,k){var Q=0,O=new Int32Array(512),c=new Int32Array(1*X),B=new Int32Array(512*X),G=Math.min(z,X),l=Math.min(z,N),v=i[0]; for(var p=0;p=0)n(B,c,a,X,p-z-1,-1); O.fill(0);Q=0;for(var P=0;P=0&&c[h]!=0){Q-=c[h]; u(O,B,h)}if(j0)f--; f=(f<<4)+15;while($[f]==0&&f>0)f--;return f},function($,o,T,s,E){var f=15;while($[256|f]+o[256|f]==0&&f>0)f--; f=(f<<4)+15;while($[f]+o[f]==0&&f>0)f--;return f}];L.KW.Ur=[function($,o,T,s){var f=0;while($[256|f]==0&&f<15)f++; f=f<<4;while($[f]==0&&f<255)f++;return f},function($,o,T,s,E){var f=0;while($[256|f]+o[256|f]==0&&f<15)f++; f=f<<4;while($[f]+o[f]==0&&f<255)f++;return f}];L.KW.gh=.5;L.KW.nQ=[function($,o,T,s){var E=~~(.5+L.KW.gh*T),e=0,f=256; while(e+$[f]<=E)e+=$[f++];f=f-256<<4;while(e<=E)e+=$[f++];return f-1},function($,o,T,s,E){var e=~~(.5+L.KW.gh*s),n=0,f=256; while(n+$[f]+o[f]<=e){n+=$[f]+o[f];f++}f=f-256<<4;while(n<=e){n+=$[f]+o[f];f++}return f-1}];L.KW.Lq=[function($,o,T,s){var E=s[0],e=0,n=0,f=Math.max(0,o-E),A=Math.min(256,o+E+1); while(f1e-9)b=!1}var N=L.$.Jz($),z=L.$.tt($)&&N,i=z?1:0; if(n||b&&a==T+s&&N){L.$.aiB(Y,o,T,s,E,e,A,N,u);return}var k=e.d,Q=e.w,O=new Float64Array(2);E=new Uint32Array(E.buffer); o=new Uint32Array(o.buffer);for(var c=0;cT+1||m<-1||m>s+1; if(A){d=Math.max(.001,Math.min(T-1,d));m=Math.max(.001,Math.min(s-1,m))}else if(R)continue;var g=w;if(!N){var S=0,F=0; p=$;l=C+1/T;v=V;P=1/(p[6]*l+p[7]*v+1);S=(p[0]*l+p[1]*v+p[2])*P-h;F=(p[3]*l+p[4]*v+p[5])*P-j;var r=S*S+F*F; l=C;v=V+1/s;P=1/(p[6]*l+p[7]*v+1);S=(p[0]*l+p[1]*v+p[2])*P-h;F=(p[3]*l+p[4]*v+p[5])*P-j;var q=S*S+F*F; g=1/Math.sqrt(Math.max(r,q))}if(g<1.1){L.$.WC(d,m,o,T,s,E,G,i);continue}var W=Math.round(g*2.3);if(!A&&(d<.6||d>T-.6||m<.6||m>s-.6)){W=Math.max(W,5)}if(A&&R)W=1; var Z=1/W,gf=e.x+B,K=e.y+c;p=Y;for(var f=0;f=1||m<0||m>=1)continue;d=Math.floor(d*T);m=Math.floor(m*s); var f0=m*T+d,i8=o[f0],b5=i8>>>24;I+=(i8&255)*b5;_+=(i8>>>8&255)*b5;cN+=(i8>>>16&255)*b5;ce+=b5}if(ce!=0){var iC=1/ce; I=~~(I*iC+.5);_=~~(_*iC+.5);cN=~~(cN*iC+.5);ce=~~(ce*Z*Z+.5);E[G]=ce<<24|cN<<16|_<<8|I}}};L.$.aiB=function($,o,T,s,E,e,n,A,u){if(A&&!n&&e.Y()>4e6&&u){L.$.a3H($,o,T,s,E,e,n,A,u); return}var Y=e.x+e.d,b=e.y+e.w,a=0,w=new Uint32Array(E.buffer),X=new Uint32Array(o.buffer),N=$[0]*T,z=$[1]*T,i=$[2]*T,k=$[3]*s,Q=$[4]*s,O=$[5]*s,c=$[6],B=$[7]; if(A&&!n)for(var G=e.y+.5;G>>2<<2)-1e-9,p=-.1+(c>>>1<<1)-1e-9,P=~~T,h=a==0?0:1/a,j=N==0?0:1/N; for(var C=0;C0){m=Math.max(m,-V*h); R=Math.min(R,(T-V)*h)}else{R=Math.min(R,-V*h);m=Math.max(m,(T-V)*h)}if(N==0){}else if(j>0){m=Math.max(m,-d*j); R=Math.min(R,(s-d)*j)}else{R=Math.min(R,-d*j);m=Math.max(m,(s-d)*j)}if(R<0)R=0;if(m>R)m=R;m=Math.ceil(m); R=~~R;B=~~(C*O);for(var g=0;g=0&&b=0&&b+1=0&&a=0&&a+1s-1?s-1:b,B=b<-1?0:b>s-2?s-1:b+1,G=a<0?0:a>E-1?E-1:a,l=a<-1?0:a>E-2?E-1:a+1; w=T[G*s+c];X=T[G*s+B];N=T[l*s+c];z=T[l*s+B]}else{var c=(b+50*s)%s,B=(b+50*s)%s,G=(a+50*E)%E,l=(a+50*E)%E; w=T[G*s+c];X=T[G*s+B];N=T[l*s+c];z=T[l*s+B]}var v=$-b,p=o-a,P=(1-p)*(1-v)*(w>>>24),h=(1-p)*v*(X>>>24),j=p*(1-v)*(N>>>24),C=p*v*(z>>>24),V=P+h+j+C,d=P*(w&255)+h*(X&255)+j*(N&255)+C*(z&255),m=P*(w>>>8&255)+h*(X>>>8&255)+j*(N>>>8&255)+C*(z>>>8&255),R=P*(w>>>16&255)+h*(X>>>16&255)+j*(N>>>16&255)+C*(z>>>16&255); if(V==0)e[n]=0;else{var g=1/V;d=~~(d*g+.5);m=~~(m*g+.5);R=~~(R*g+.5);V=~~(V+.5);e[n]=V<<24|R<<16|m<<8|d}}; L.$.mn=function($,o,T,s,E,e){var n=$-.499999,A=o-.499999,u=~~n,Y=~~A,b=n-u,a=A-Y,w=(1-a)*(1-b),X=(1-a)*b,N=a*(1-b),z=a*b,i=Y*s+u<<2,k=(Y+1)*s+u<<2,Q=w*T[i]+X*T[i+4]+N*T[k]+z*T[k+4],O=w*T[i+1]+X*T[i+5]+N*T[k+1]+z*T[k+5],c=w*T[i+2]+X*T[i+6]+N*T[k+2]+z*T[k+6],B=w*T[i+3]+X*T[i+7]+N*T[k+3]+z*T[k+7]; e[0]=Q;e[1]=O;e[2]=c;e[3]=B};L.$.jv=function($,o,T,s,E){$-=.499999;o-=.499999;var e=Math.floor($),n=Math.floor(o),A=$-e,u=o-n,Y=(1-u)*(1-A),b=(1-u)*A,a=u*(1-A),w=u*A,X=(e+50*s)%s,N=(e+1+50*s)%s,z=(n+50*E)%E,i=(n+1+50*E)%E,k=T[z*s+X],Q=T[z*s+N],O=T[i*s+X],c=T[i*s+N]; if(k==null||c==null)throw"e";return Y*k+b*Q+a*O+w*c};L.$.f5=function($,o,T,s,E,e,n,A,u,Y,b,a){var w=new Uint32Array($.buffer),X=new Uint32Array(s.buffer),N=(1+2*Y)/E,z=[],i=[]; for(var k=0;ko-1?o-1:B)),v=~~(.5+(G<0?0:G>T-1?T-1:G)); X[O*E+k]=w[v*o+l]}}};L.$.mz=function($,o,T,s,E,e,n,A,u,Y,b,a){var w=new Uint32Array($.buffer),X=new Uint32Array(s.buffer),N=1/a,z=[],i=T*4,k=1/i; for(var Q=0;Qo?o:T},a8l:function($,o,T,s,E,e,n,A){var u=T[0],Y=T[1],b=T[2],a=T[3],w=s.d,X=s.w,N=new Float64Array(w*4+8),z=new Float64Array(w*4+8); for(var i=0,f=0;i>1,l=b.rc.w-T.w>>1,v=b.rc.d,p=-.6*B,P=(-.6+.4)*B,h=(-.6+2*.4)*B,j=(-.6+3*.4)*B; for(var C=0,f=0;C=1){r=(F<=0?0:X)<<2;o[f]=k[r];o[f+1]=k[r+1];o[f+2]=k[r+2];o[f+3]=k[r+3];continue}r=Math.max(0,Math.min(X-1,Math.round((F+p)*X)))<<2; m+=k[r];R+=k[r+1];g+=k[r+2];d+=k[r+3];r=Math.max(0,Math.min(X-1,Math.round((F+P)*X)))<<2;m+=k[r];R+=k[r+1]; g+=k[r+2];d+=k[r+3];r=Math.max(0,Math.min(X-1,Math.round((F+h)*X)))<<2;m+=k[r];R+=k[r+1];g+=k[r+2];d+=k[r+3]; r=Math.max(0,Math.min(X-1,Math.round((F+j)*X)))<<2;m+=k[r];R+=k[r+1];g+=k[r+2];d+=k[r+3];o[f]=m>>>2; o[f+1]=R>>>2;o[f+2]=g>>>2;o[f+3]=d>>>2}}};L.h.Bu=function($,o,T){var s=[];for(var f=0;f<$.length;f++){var E; if($[f].v.Type.v.Clry=="FrgC")E={i:o>>16&255,m:o>>8&255,P:o&255};else if($[f].v.Type.v.Clry=="BckC")E={i:T>>16&255,m:T>>8&255,P:T&255}; else E=L.h.Qc($[f].v.Clr.v);s.push(E)}return s};L.h.Qc=function($){var o,T=$.classID;if(T=="RGBC"){if($.Rd)o={i:$.Rd.v,m:$.Grn.v,P:$.Bl.v}; else o={i:$.redFloat.v*255,m:$.greenFloat.v*255,P:$.blueFloat.v*255}}else if(T=="HSBC"){o=L.ag($.H.v.val/360,$.Strt.v/100,$.Brgh.v/100); o.i*=255;o.m*=255;o.P*=255}else if(T=="CMYC"){var s=100-$.Cyn.v,E=100-$.Mgnt.v,e=100-$.Ylw.v,n=100-$.Blck.v,A=255*s*n*1e-4,u=255*(.2*s+.8*E)*n*1e-4,Y=255*(.2*E+.8*e)*n*1e-4; o={i:A,m:u,P:Y}}else if(T=="Grsc")o={i:255-$.Gry.v,m:255-$.Gry.v,P:255-$.Gry.v};else if(T=="LbCl"){o=L.u3($.Lmnc.v,$.A.v,$.B.v)}else console.log($); if(isNaN(o.i))o.i=o.m=o.P=0;return o};L.h.wb=function($){return{classID:"RGBC",Rd:{t:"doub",v:$.i},Grn:{t:"doub",v:$.m},Bl:{t:"doub",v:$.P}}}; L.h.a0K=function($,o,T,s){var E=[],e=1/(T-0);for(var f=0;fv)hM[f]=255-(255-K)*dv}}if(i)console.log("init",Date.now()-z);z=Date.now();if(E*k>0){d3.set(g6); L.Ja.Pm(d3,g6,new df(0,0,T,s),k)}if(A*Q>0){d3.set(hM);L.Ja.Pm(d3,hM,new df(0,0,T,s),Q)}if(i)console.log("blur",Date.now()-z); z=Date.now();var gT=L.G(256),iz=L.G(256);for(var f=0;f<256;f++){var gw=f*(1/255),iI=0;iI=(1-Math.pow(1-gw,p))*255; gT[f]=Math.max(0,Math.min(255,~~(iI+.5)));iI=Math.pow(gw,P)*255;iz[f]=Math.max(0,Math.min(255,~~(iI+.5)))}var g2=new Uint8ClampedArray(o.buffer),bb=new Float32Array(32768); for(var f=0;f<32768;f++){fO=Math.sqrt(f)*(1/128);if(fq>1)fO=(1-fO)*(fq-1)+1;else fO=fO*(fq-1)+1;bb[f]=fO}for(X=0; X400)N++;var z=$,i=o,k=u,Q=Math.floor(i.d/N),O=Math.floor(i.w/N); $=L.G(Q*O*4);L.scale.nq(z,i.d,i.w,$,Q,O,1/N);u=L.G(Q*O);L.scale.lx(k,i.d,i.w,u,Q,O,1/N);L.round(u,1); var c=L.ac(u,new df(0,0,Q,O));if(c.p4())return 1;var B=Math.round((c.d+c.w)/2/15),G=Date.now(),l=L.G(Q*O*4); L.aoe($,l);var v=Int16Array,p=new v(Q*O*24),P=new v(64),h=new v(64),j=new v(64),C=new v(64);for(var m=3; m0){var m=Math.floor(f*iC),R=f-m*2*Q; b5.push({x:R-Q,y:m-O,H:q[f],Ny:-1})}}b5.sort(function(dG,gY){return gY.H-dG.H});var bh=new Int32Array(Q*O),bD=[]; for(var f=0;f>2]=iz+1}if(e)console.log(Date.now()-G,"copied back"); G=Date.now();L.Eh.gY(hM,d3,n,null,1e3);if(e)console.log(Date.now()-G,"poisson smooth");G=Date.now(); L.h9(hM,n,s,E);return 0};L.ku.Xq=function($,o,T,s,E,e){return L.ku.E_($+E.x,o+E.y,T,s)&&e[(o+E.y)*T+($+E.x)]==-1?0:1e9}; L.ku.anH=function($,o,T,s,top,E,e,n){var A=Date.now(),u=[-1,0,0,-1,1,0,0,1],Y=1e99,b=[],a=[],w=2*(n*2*3+n*2),X=null,N=0,z=0,i=0,k=1e99; while(!0&&Date.now()1){if($[f]==$[g]){var S=0; S+=L.ku.k7(p+h.x,P+h.y,p+B.x,P+B.y,T,s,o,E);S+=L.ku.k7(m+h.x,R+h.y,m+B.x,R+B.y,T,s,o,E);b[G]=f;b[G+1]=g; a[G]=S;a[G+1]=S;G+=2}else{var F=top[$[g]],r=l,q=0,W=0,Z=0;l++;q+=L.ku.k7(p+h.x,P+h.y,p+B.x,P+B.y,T,s,o,E); q+=L.ku.k7(m+h.x,R+h.y,m+B.x,R+B.y,T,s,o,E);W+=L.ku.k7(p+F.x,P+F.y,p+B.x,P+B.y,T,s,o,E);W+=L.ku.k7(m+F.x,R+F.y,m+B.x,R+B.y,T,s,o,E); Z+=L.ku.k7(p+F.x,P+F.y,p+h.x,P+h.y,T,s,o,E);Z+=L.ku.k7(m+F.x,R+F.y,m+h.x,R+h.y,T,s,o,E);b[G]=f;b[G+1]=r; a[G]=q;a[G+1]=q;G+=2;b[G]=g;b[G+1]=r;a[G]=W;a[G+1]=W;G+=2;b[G]=r;b[G+1]=n+1;a[G]=Z;a[G+1]=0;G+=2}}}b[G]=n; b[G+1]=f;a[G]=j;a[G+1]=0;G+=2;b[G]=f;b[G+1]=n+1;a[G]=C;a[G+1]=0;G+=2;v+=Math.min(j,C)}if(v>O)continue; var I=L.Lt._v(l,G,n,n+1,b,a,O);if(I.Uq=Y){break}Y=O; $=Q;if((i&3)==0){if(O*1.03>=k)break;k=O}if((i&3)==0){var cN=0*top.length;for(var f=0;fcN; f++){if($.indexOf(f)!=-1)continue;top.splice(f,1);for(var g=0;g<$.length;g++)if($[g]>f)$[g]--;f--}}}return $}; L.ku.aiR=function($,o,T,s,E,e){for(var f=0;f>1)};L.ku.afP=function($,o,T,s,E,e){var top=[]; for(var f=0;f<60;f++){var n=L.ku.B3(top,25,T,s,E,$,o);if(n==null)break;else top.push(n)}if(top.length==0)return null; var A=[];for(var f=0;f100){var n;n=L.ku.B3(top,0,T,s,E,$,o,u,Y); if(n==null)return null;top.push(n);a=0}}A.push(b)}return{top:top,pq:A}};L.ku.k7=function($,o,T,s,E,e,n,A){if($==T&&o==s)return 0; if($<0||o<0||$>=E||o>=e||T<0||s<0||T>=E||s>=e||A[o*E+$]!=-1||A[s*E+T]!=-1)return 1e7;var u=o*E+$<<2,Y=s*E+T<<2,b=n[u]-n[Y],a=n[u+1]-n[Y+1],w=n[u+2]-n[Y+2]; return 1+(b*b+a*a+w*w)};L.ku.E_=function($,o,T,s){return $>=0&&$=0&&o=s)return E+1}return E};L.ku.tu=function($,o,T,s,E){var e=16,w=0;if(o-$<=e){T.push(99,$,o); return}L.ku.L3($,o,s,E);var n=-1,A=-1;for(var f=4;f<24;f++){var u=E[2*f+1]-E[2*f];if(u>A){A=u;n=f}}var Y=$+o>>1,b=L.ku.aah(Y,$,o,s,n),a=-1; for(var f=$;f<=o;f++)if(s[24*f+n]==b){if(a==-1)a=f;w=f}if($+8o-w)Y=a;else if(w+1u)s[(e<<1)+1]=n}}}; L.ku.e9=function($,o,T){var s=0,f=0;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s; f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s; f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s; f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s; f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s; f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s; f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s; f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s; f++;s=T[$+f];T[$+f]=T[o+f];T[o+f]=s;f++};L.ku.Mw=function($,o,T,s){var E=T+s>>>1,e=$[24*E+o];while(T<=s){while($[24*T+o]e)s--;if(T<=s){if($[24*T+o]!=$[24*s+o])L.ku.e9(T*24,s*24,$);T++;s--}}return T};L.ku.aah=function($,o,T,s,E){var e=0; while(o!=T){e=L.ku.Mw(s,E,o,T);if($>1; f>0;f>>=1,E--){for(e=0;e>E&1)!=0;if(n){$+=T+"["+e+"] = "+o+"["+(-f+e)+"] - "+o+"["+e+"]; "}else{$+=T+"["+e+"] = "+o+"["+(f+e)+"] + "+o+"["+e+"]; "}}s=o; o=T;T=s;$+="\n"}console.log($)};L.ku.a7e=function(J,$,o){var T=$,s=o,E=T,e=0,f,A,u;while(J>>e!=2)e++; var n=e;for(f=J>>1;f>0;f>>=1,e--){for(A=0;A>e&1)!=0;if(u)s[A]=T[-f+A]-T[A];else s[A]=T[f+A]+T[A]}E=T; T=s;s=E}if((n&1)==1)for(f=0;fT)T=e;if(nE)E=n}return[o,s,T,E]};L.ahu=function($,o,T,s,E){function e(K,cv,f0,i8){return Math.sqrt((K-f0)*(K-f0)+(cv-i8)*(cv-i8))}function n(K,cv){return K>=0&&K=0&&cv=o)return o-1;return K}function u(K){if(K<0)return 0;if(K>=T)return T-1;return K}function Y(f,K){var cv=K[3]*(1/255),f0=s[f]+K[0]*cv; if(f0>255)f0=255;s[f]=f0;f0=s[f+1]+K[1]*cv;if(f0>255)f0=255;s[f+1]=f0;f0=s[f+2]+K[2]*cv;if(f0>255)f0=255; s[f+2]=f0}function b(K,cv,f0){if(!r(K,cv))return;if(f0[3]<0)f0[3]=0;Y((cv*o+K)*4,f0)}function a(K){var cv=K.slice(0,3); cv[3]=0;return cv}var w=o/800;function X(K){return Math.round(K*w)}function N(){for(var f=0;f<=300;f++){W[f]=z(f)}}function z(T){var K=.8,cv=.2,f0=K*cv,i8=T/60%2-1,b5=f0*(1-i8*i8),iC=cv-f0,an; if(T<60){an=[f0+iC,b5,0]}else if(T<120){an=[b5,f0,0]}else if(T<180){an=[0,f0,b5]}else if(T<240){an=[0,b5,f0]}else if(T<300){an=[b5,0,f0]}else{an=[f0,0,b5]}return[(an[0]+iC)*255,(an[1]+iC)*255,(an[2]+iC)*255]}function i(T){return W[~~T]}function k(K){return 1-Q(K)}function Q(K){return K-~~K}function O(K,cv,f0,i8){S(K,cv,f0,0,cv+1,1,i8)}function c(K,cv,f0,i8,b5,iC){S(K,cv,f0,0,i8,1,b5,iC)}function B(K){for(var f=0; fcv||gw<=cv-b5)break;var iI=(gw-cv+b5)/b5;fO[3]=g6-i8*(iC==1?iI:Math.pow(iI,iC));Y((iz*o+h9)*4,fO)}ec=u(fq+dv); for(var iz=ec;iz>gT;iz--){var gw=e(h9,iz,bD,fq);if(gw>cv||gw<=cv-b5)break;var iI=(gw-cv+b5)/b5;fO[3]=g6-i8*(iC==1?iI:Math.pow(iI,iC)); Y((iz*o+h9)*4,fO)}}if(an>0){S(K,cv+an,fO,fO[3],an,1,0,0,!0)}if(cO>0){S(K,cv-b5,q(f0),-f0[3],cO,1,0,0,!0)}}function v(K,cv,f0,i8,b5,iC){S(K,cv,f0,f0[3],cv+1,1,i8,b5,iC)}function p(K,cv,f0,i8,b5){if(b5==null)b5=!1; var iC=K.x,an=K.y;i8*=I;if(!b5){cv=F(cv);f0=F(f0)}var cO=A(iC-cv),bh=A(iC+cv);for(var bD=cO;bDcv||h9<=cv-f0)break;var cs=(cv-h9)/f0,dv=i(300*cs); dv[3]=i8;Y((d3*o+bD)*4,dv)}g6=u(an+fO);for(var d3=g6;d3>hM;d3--){var h9=e(bD,d3,iC,an);if(h9>cv||h9<=cv-f0)break; var cs=(cv-h9)/f0,dv=i(300*cs);dv[3]=i8;Y((d3*o+bD)*4,dv)}}}function P(Z,K){var cv=Z.e$,f0=Z.bk,i8=K.slice(0),b5=K[3]*I,iC=Math.abs(f0.y-cv.y)>Math.abs(f0.x-cv.x); if(iC){var an=cv.x;cv.x=cv.y;cv.y=an;an=f0.x;f0.x=f0.y;f0.y=an}if(cv.x>f0.x){var an=cv;cv=f0;f0=an}var cO=f0.x-cv.x,bh=f0.y-cv.y,bD=cO==0?1:bh/cO,fq=Math.round(cv.x),fO=cv.y+bD*(fq-cv.x),g6=k(cv.x+.5),hM=fq,d3=~~fO; if(iC){i8[3]=b5*k(fO)*g6;b(d3,hM,i8);i8[3]=b5*Q(fO)*g6;b(d3+1,hM,i8)}else{i8[3]=b5*k(fO)*g6;b(hM,d3,i8); i8[3]=b5*Q(fO)*g6;b(hM,d3+1,i8)}var h9=fO-bD;fq=Math.round(f0.x);fO=f0.y+bD*(fq-f0.x);g6=Q(f0.x+.5); var cs=fq,dv=~~fO;if(iC){i8[3]=b5*k(fO)*g6;b(dv,cs,i8);i8[3]=b5*Q(fO)*g6;b(dv+1,cs,i8)}else{i8[3]=b5*k(fO)*g6; b(cs,dv,i8);i8[3]=b5*Q(fO)*g6;b(cs,dv+1,i8)}if(iC){for(var ec=hM+1;ec<=cs-1;ec++){i8[3]=b5*k(h9);b(~~h9,ec,i8); i8[3]=b5*Q(h9);b(~~h9+1,ec,i8);h9+=bD}}else{for(var ec=hM+1;ec<=cs-1;ec++){i8[3]=b5*k(h9);b(ec,~~h9,i8); i8[3]=b5*Q(h9);b(ec,~~h9+1,i8);h9+=bD}}}function h(K,cv,f0,i8){for(var f=0;f<4;f++){var b5=K.Ii(cv+1.3*f,f0); P(b5,i8,1)}}function aY(K,cv){this.x=Math.round(K);this.y=Math.round(cv)}var j=Math.PI/180;aY.prototype.Ii=function(K,cv){K=K*j; var f0=this.x+cv*Math.cos(K),i8=this.y+cv*Math.sin(K);return new C(this.x,this.y,f0,i8)};aY.prototype.ah6=function(K,cv){K=K*j; var f0=this.Ib+cv*Math.cos(K),i8=this.a1q+cv*Math.sin(K);return new aY(f0,i8)};function C(K,cv,f0,i8){this.e$=new aY(K,cv); this.bk=new aY(f0,i8)}C.prototype.Ps=function(K){var cv=K*this.e$.x+(1-K)*this.bk.x,f0=K*this.e$.y+(1-K)*this.bk.y; return new aY(cv,f0)};var V=G,d=v,m=O,R=c,g=p,S=l,F=X,r=n,q=a,W=[];N();for(var f=0;f<$.length;f++){s[f]=$[f]}var Z=new C(o*E[2],T*E[3],o/2,T/2),I=E[1],_=[]; _[0]=function cN(){var K=[80,40,15,60],f0=0,i8=0;m(Z.Ps(1.4),260,K,10);m(Z.Ps(1),100,[240,50,50,30],30); d(Z.Ps(1),60,[255,40,0,40]);var cv=[255,255,255,255];S(Z.Ps(1),70,cv,cv[3],58,.5);m(Z.Ps(1),12,cv);cv[3]=40; V(Z.Ps(1),150,cv,cv[3],150);for(var f=0;f<40;f++){f0+=Math.random()*25;i8=Math.random()*F(300)+F(100); var b5=Z.Ps(1).Ii(f0,i8);P(Z.Ps(1).Ii(f0,i8),[110,110,110,30])}d(Z.Ps(1),130,[255,255,255,8]);var iC=[170,30,23,70]; R(Z.Ps(1),70,iC,1,3,3);var an=[60,60,130,40];m(Z.Ps(.47),44,an,5);m(Z.Ps(.43),22,an,3);an[3]=16;m(Z.Ps(.53),15,an,2); var cO=[138,94,42,100];m(Z.Ps(.2),16,cO,2);var bh=[130,255,170,180];d(Z.Ps(0),4,bh);d(Z.Ps(-.25),5,bh); cO=[150,90,0,50];V(Z.Ps(-.45),55,q(cO),-cO[3],40,2);m(Z.Ps(-.42),35,cO,2);m(Z.Ps(-.5),15,cO,2);g(Z.Ps(-1.28),145,11,70); var bD=i(0);bD[3]=50;V(Z.Ps(-1.28),149,bD,bD[3],4);bD=i(300);bD[3]=50;V(Z.Ps(-1.28),155-1,q(bD),-bD[3],3); var fq=[130,130,10,50];R(Z.Ps(-1),73,fq,3,2);var fO=[40,130,70,40];V(Z.Ps(-1),70,q(fO),-fO[3],35);fO=[40,170,60,50]; m(Z.Ps(-.7),25,fO,4);var fO=[70,110,50,60];V(Z.Ps(1.3),30,q(fO),-fO[3],11,3);an=[0,50,210,80];d(Z.Ps(-.72),20,an)}; _[1]=function ce(){d(Z.Ps(1),150,[240,70,70,60]);m(Z.Ps(1),100,[200,60,60,40],30);var K=[255,255,255,255],cv=0,f0=0; S(Z.Ps(1),75,K,K[3],63);m(Z.Ps(1),12,K);d(Z.Ps(1),270,[200,200,200,20],10);for(var f=0;f<10;f++){cv+=10+Math.random()*40; f0=Math.random()*F(250)+F(80);var i8=Z.Ps(1).Ii(cv,f0);P(i8,[110,110,110,35])}cv=5;f0=100;for(var f=0; f<12;f++){cv+=30;h(Z.Ps(1),cv,f0,[90,90,90,40])}var b5=[150,40,23,100];R(Z.Ps(1),70,b5,1,3,3);var iC=[30,100,60,40]; d(Z.Ps(-.9),180,[255,255,255,20]);m(Z.Ps(-.9),140,iC,15);var an=[170,80,25,15];R(Z.Ps(-.9),120,an,1,4,4); var cO=[110,240,190,200];d(Z.Ps(-.6),3,cO);cO[3]=100;d(Z.Ps(-.6),7,cO);var bh=[230,120,40,85];d(Z.Ps(-.73),9,bh); var bD=[60,60,190,50];m(Z.Ps(.3),28,bD,6);bD[3]=25;m(Z.Ps(.34),20,bD,3)};_[2]=function gf(){var K=[255,255,255,255],f0=0,i8=0; m(Z.Ps(1),13,K);S(Z.Ps(1),150,K,K[3],137);var cv=[120,80,35,20];m(Z.Ps(1.4),260,cv,10);for(var f=0;f<40; f++){f0+=5+Math.random()*30;i8=Math.random()*F(300);P(Z.Ps(1).Ii(f0,i8),[110,110,110,20])}var b5=[10,30,255,30]; m(Z.Ps(1),70,b5,50);var iC=[15,90,170,15];m(Z.Ps(1.5),60,iC);var an=[220,220,20,50];m(Z.Ps(-1.15),8,an,2); var K=[255,255,255,40];d(Z.Ps(-1.18),6,K);d(Z.Ps(-1.18),4,K);an=[110,110,10,8];V(Z.Ps(-1.2),32,q(an),-an[3],20,3); var cO=[5,0,16,255];for(var f=0;f<4;f++){m(Z.Ps(-1.36),10,cO,3)}var bh=[90,200,150,20],bD=bh.slice(0); bD[3]*=2;m(Z.Ps(-1.32),7,bD,3);m(Z.Ps(-1.36),7,bD,3);m(Z.Ps(-1.4),7,bD,3);var K=[230,230,230,100];d(Z.Ps(-1.36),2,K); K[3]=3;m(Z.Ps(-.55),10,K);an=[120,100,10,18];m(Z.Ps(-.55),160,an,8);m(Z.Ps(-.55),80,an,4);bh[3]=3;bD[3]=6; V(Z.Ps(-.49),13,q(bD),-bD[3],13,2);V(Z.Ps(-.55),13,q(bD),-bD[3],13,2);bh[3]=20;m(Z.Ps(.15),25,bh,3); an[3]=100;d(Z.Ps(-.52),3,an);an=[200,200,50,40];m(Z.Ps(.27),1,an,4);var fq=[150,40,23,30];V(Z.Ps(1),80,q(fq),-fq[3],2,1)}; return _[E[0]]()};L.Ak={};L.Ak.EP=function($){var o=$.length,J=$[0].length,T=new Array(J);for(var f=0; fe){E=f;e=Math.abs($[f][s])}L.Ak.a28($,s,E);for(var f=s+1;f=0;f--){if($[f][f]==0)return 1;var u=$[f][T]/$[f][f];o[f]=u;for(var A=f-1;A>=0;A--){$[A][T]-=$[A][f]*u; $[A][f]=0}}return 0};L.Ak.a28=function($,o,T){var s=$[o];$[o]=$[T];$[T]=s};L.Ak.aaK=function($){var o=$.length,T=L.Ak.a$(o,o); for(var f=0;f255?255:o};L.tK.transform=function($,o,T){var s=L.tK._J,E=$.i.length;for(var f=0;f>1]=w;u[A+1]=n[b];n[b]=A+1;A+=4;u[A]=b;Y[A+2>>1]=X;u[A+1]=n[a];n[a]=A+1;A+=4}return{au:u,abZ:Y,alN:n}}; L.Lt._v=function($,o,T,s,E,e,n){var A=1,u=L.Lt.Zm($,o,T,s,E,e),Y=u.au,b=u.abZ,a=u.alN,w=new Uint32Array($),X=new L.Lt.WY($),z=1,c=0; X.push(T);X.push(s);var N=new L.Lt.WY($),i=new Uint8Array($),k=new Uint32Array($);i[T]=1;i[s]=2;var Q=new Uint32Array($),O=new Uint32Array($); O[T]=O[s]=0;Q[T]=Q[s]=1;while(!0){var B=-1,j=0,m=1e30;while(!X.ua()&&B==-1){var G=X.top(),l=i[G],v=a[G]-1; while(v!=-1){var p=Y[v],P=i[p],h=v^l-1<<2;if(b[h+2>>1]!=0){if(P==0){L.Lt.me(G,v,p,i,k,O,Q);X.push(p)}else if(P==l&&Q[p]<=Q[G]&&O[p]>O[G])L.Lt.me(G,v,p,i,k,O,Q); else if(P!=l){B=h}}v=Y[v+1]-1}if(B!=-1)break;X.pop()}if(B==-1){break}z++;var C=B;while(C!=-1){w[j]=C; j++;C=k[Y[C^4]]-1}var V=j>>1;for(var f=0;f>1]);c+=m;if(c>=n)return{TO:null,Uq:c};for(var f=0; f>1]-=m;b[g+2>>1]+=m;if(b[R+2>>1]==0&&i[G]==i[p]){if(i[G]==1){k[p]=0; N.push(p)}if(i[G]==2){k[G]=0;N.push(G)}}}while(!N.ua()){var G=N.pop(),l=i[G],v=a[G]-1,S=l==1?4:0,F=0,r=0,q=1e9; while(v!=-1){var p=Y[v],W=v^4,h=v^S;if(i[p]==l&&b[h+2>>1]>0&&L.Lt.a0m(p,T,s,k,Y,z,Q,O)+1>1]>0){X.push(p)}if(k[p]==v+1){k[p]=0;N.push(p)}}v=Y[v+1]-1}i[G]=0;X.remove(G)}}var Z=[]; for(var f=0;f>1)}if(i[p]==1&&i[G]!=1){Z.push(o+f>>1)}}return{TO:Z,Uq:c}}; L.Lt.me=function($,o,T,s,E,e,n){s[T]=s[$];E[T]=o+1;e[T]=e[$]+1;n[T]=n[$]};L.Lt.a0m=function($,o,T,s,E,e,n,A){var u=$,Y=s[$]-1,b=0; while(Y!=-1&&n[$]!=e){$=E[Y^4];Y=s[$]-1;b++}if(Y==-1&&$!=o&&$!=T)return 1e9;var a=A[$]+b;b=0;Y=s[u]-1; while(u!=$){A[u]=a-b;b++;n[u]=e;u=E[Y^4];Y=s[u]-1}return a};L.Lt.a1J=function($,o,T,s,E,e){var n=L.Lt.Zm($,o,T,s,E,e),A=n.au,u=n.abZ,Y=n.alN,b=0,a=0,w=new Uint32Array($*2),X=new L.Lt.DY($),N=0; while(!0){X.reset();X.push(T);for(var f=0;f<$;f++)w[f<<1]=0;while(!X.ua()){var z=X.pop(),i=Y[z]-1;while(i!=-1){N=A[i]; if(w[N<<1]==0&&u[i+2>>1]>0&&N!=T){w[N<<1]=z+1;w[(N<<1)+1]=i;X.push(N)}i=A[i+1]-1}if(w[s<<1]!=0){break}}if(w[s<<1]==0){break}var k=1e30; N=s;while(!0){var Q=w[N<<1]-1;if(Q==-1)break;var O=w[(N<<1)+1];k=Math.min(k,u[O+2>>1]);N=Q}N=s;while(!0){var Q=w[N<<1]-1; if(Q==-1)break;var O=w[(N<<1)+1],c=O^4;u[O+2>>1]-=k;u[c+2>>1]+=k;N=Q}b+=k}var B=[];for(var f=0;f>1)}if((w[N<<1]!=0||N==T)&&w[Q<<1]==0&&Q!=T){B.push(o+f>>1)}}return{TO:B,Uq:b}}; L.Lt.DY=function($){$|=$>>1;$|=$>>2;$|=$>>4;$|=$>>8;$|=$>>16;this.Xj=new Uint32Array($+1);this.ea=$; this.G$=0;this.A3=0};L.Lt.DY.prototype={push:function($){var o=this.A3;this.Xj[o]=$;this.A3=o+1&this.ea},pop:function(){var $=this.G$,o=this.Xj[$]; this.G$=$+1&this.ea;return o},ua:function(){return this.G$==this.A3},reset:function(){this.G$=0;this.A3=0}}; L.Lt.WY=function($){$|=$>>1;$|=$>>2;$|=$>>4;$|=$>>8;$|=$>>16;this.Xj=new Uint32Array($+1);this.po=new Uint32Array($+1); this.ea=$;this.G$=0;this.A3=0};L.Lt.WY.prototype={top:function(){return this.Xj[this.G$]},ahO:function(){return this.Xj[this.A3]},push:function($){if(this.po[$]!=0)return; this.po[$]=this.A3+1;var o=this.A3;this.Xj[o]=$;this.A3=o+1&this.ea},pop:function(){var $=this.G$,o=this.Xj[$]; this.po[o]=0;this.G$=$+1&this.ea;return o},ua:function(){return this.G$==this.A3},remove:function($){var o=this.po[$]-1; if(o==-1)return;this.po[$]=0;if(o==this.G$){this.pop();return}var T=this.pop();this.Xj[o]=T;this.po[T]=o+1},S9:function(f){return f+this.ea+1&this.ea}}; L.Lt.Nk=function($,o,T){var s=L.Lt.Mw($,o,T);if(o>>1]; while(o<=T){while($[o]s)T--;if(o<=T){L.Lt.e9($,o,T);o++;T--}}return o};L.Lt.e9=function($,o,T){var s=$[o]; $[o]=$[T];$[T]=s};L.qy={};L.qy.a8M=function($){for(var f=0;f<$.length;f++)L.qy.qZ($,f)};L.qy.qZ=function($,f){$[f].v.keyShapeInvalidated={t:"bool",v:!0}}; L.qy.a41=function($){for(var f=0;f<$.length;f++)$[f].v.keyOriginIndex.v=f};L.qy.Ke=function(){return{t:"Objc",v:{classID:"null",keyOriginIndex:{t:"long",v:0},keyShapeInvalidated:{t:"bool",v:!0}}}}; L.qy.Rg=function($){$=$.v;var o={Rctn:2,Ln:4,Elps:5},T=o[$.classID],s=$.topLeft?L.qy.VZ($):null,E=null,e=0; if(T==4){var n=$.Strt.v,A=$.End.v;E=[n.Hrzn.v.val,n.Vrtc.v.val,A.Hrzn.v.val,A.Vrtc.v.val];e=$.Wdth.v.val}if(T==null)return null; return L.qy.G8(T,T==4?null:L.qy.S4($),s,E,e)};L.qy.ya=function($,o,T,s,E,e){var n={classID:$,unitValueQuadVersion:{t:"long",v:1}}; if(o)L.qy.kY(n,["Left","Top","Rght","Btom"],o);if(T)L.qy.kY(n,["topLeft","topRight","bottomRight","bottomLeft"],T); if($=="Ln"){n.Strt={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:s[0]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:s[1]}}}},n.End={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:s[2]}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:s[3]}}}},n.Wdth={t:"UntF",v:{type:"#Pxl",val:E}}}if(e)n.Nm={t:"TEXT",v:e}; return{t:"Objc",v:n}};L.qy.G8=function($,o,T,s,E){var e=L.qy.Ke(),n=e.v;delete n.keyShapeInvalidated; n.keyOriginType={t:"long",v:$};n.keyOriginResolution={t:"doub",v:75};if($==4){n.keyOriginLineStart={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:s[0]},Vrtc:{t:"doub",v:s[1]}}}; n.keyOriginLineEnd={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"doub",v:s[2]},Vrtc:{t:"doub",v:s[3]}}};o=[Math.min(s[0],s[2]),Math.min(s[1],s[3]),Math.max(s[0],s[2]),Math.max(s[1],s[3])]; n.keyOriginLineWeight={t:"doub",v:E},n.keyOriginLineArrowSt={t:"bool",v:!1};n.keyOriginLineArrowEnd={t:"bool",v:!1}; n.keyOriginLineArrWdth={t:"doub",v:0};n.keyOriginLineArrLngth={t:"doub",v:0};n.keyOriginLineArrConc={t:"long",v:0}}var A={classID:"unitRect",unitValueQuadVersion:{t:"long",v:1}}; n.keyOriginShapeBBox={t:"Objc",v:A};L.qy.EU(n,o);if(T!=null){var u={classID:"radii",unitValueQuadVersion:{t:"long",v:1}}; n.keyOriginRRectRadii={t:"Objc",v:u};L.qy.hk(n,T)}return e};L.qy.t=function($,o,T,s){var E=L.$.tt(o),e=L.$.Jz(o),n=Math.max(Math.abs(o[0]),Math.abs(o[1])),A=Math.max(Math.abs(o[3]),Math.abs(o[4])); for(var f=0;f<$.length;f++){var u=$[f].v,Y=u.keyShapeInvalidated;if(Y&&Y.v||u.keyOriginType==null)continue; if(T.length!=0&&T.indexOf(f)==-1)continue;var b=u.keyOriginType.v;if(!E||!e||s&&b==2&&Math.abs(1-n/A)>.01){L.qy.qZ($,f); continue}var a=L.qy.pE(u);L.$.t(o,a);L.qy.EU(u,[Math.min(a[0],a[2]),Math.min(a[1],a[3]),Math.max(a[0],a[2]),Math.max(a[1],a[3])]); if(b==2){var w=L.qy.xi(u),X=new fY(o[0],o[1],o[3],o[4],0,0);X.Fs();if(X.Ca==0){w.push(w.shift());X.rotate(Math.PI/2); X.Fs()}if(X.Ca<0){var N=w[0];w[0]=w[1];w[1]=N;N=w[2];w[2]=w[3];w[3]=N}if(X.Um<0){var N=w[0];w[0]=w[3]; w[3]=N;N=w[1];w[1]=w[2];w[2]=N}if(s)for(var z=0;z<4;z++)w[z]=w[z]*n;L.qy.hk(u,w)}if(b==4){u.keyOriginLineWeight.v*=n; var i=L.qy.L2(u);L.$.t(o,i);L.qy.a99(u,i)}}};L.qy.Iy=function($,o){var T=o.g;for(var f=0;f<$.length; f++){var s=$[f].v,E=s.keyShapeInvalidated,a;if(E&&E.v||s.keyOriginType==null)continue;var e=s.keyOriginType.v,n=L.qy.pE(s),A=n[0],u=n[1],Y=n[2],b=n[3]; if(e==1)a=L.A.XG.Rect(A,u,Y-A,b-u,0);else if(e==2){var w=L.qy.xi(s);a=L.A.XG.Rect(A,u,Y-A,b-u,w)}else if(e==4){var X=L.qy.L2(s); a=L.A.XG.VG(X[0],X[1],X[2],X[3],s.keyOriginLineWeight.v)}else if(e==5)a=L.A.XG.Xi(A,u,Y-A,b-u);var N=L.A.kE(T,f),z=L.A.Mx(T,f); a[2].m6=T[N].m6;var i=T;T=T.slice(0,N);for(var k=2;k=0}; L.M.ie=function($){var o={},T=null,s=0,E={M:2,L:2,Q:4,C:6};for(var f=0;f<$.o.length;f++){var e=$.o[f]; if(e.charAt(0)=="#"){if(o[e]==null)o[e]={I:[],o:[]};T=o[e]}else if(e!="X"){T.o.push(e);var n=E[e];if(n==null)n=0; for(var A=0;A5||W.type==0||W.type==3)continue;var Z=W.Wq.R1(W.W)||W.JL.R1(W.JL);if(!Z){var C=W.Wq.x*(W.W.y-W.JL.y)+W.W.x*(W.JL.y-W.Wq.y)+W.JL.x*(W.Wq.y-W.W.y); if(Math.abs(C)<1e-6)Z=!0}if(Z)W.type--}return m};L.M.Ld=function(){function $(s,E,e,n){if(!n&&s.JL.R1(s.W)&&E.Wq.R1(E.W)){e.I.push(E.W.x,E.W.y); e.o.push("L")}else{e.I.push(s.JL.x,s.JL.y,E.Wq.x,E.Wq.y,E.W.x,E.W.y);e.o.push("C")}}function o(s,E,f,e,n,A){var u=E[f]; s.I.push(u.W.x,u.W.y);s.o.push("M");for(var Y=f;Y5)continue;var n=s[f].length;if(n==0)continue; if(f==s.length-1)break;var A=s[f].type==3;o(e,s,f+1,n,A,E);if(!A)e.o.push("Z");f+=n}return e}return T}(); L.M.aeT=function($){var o=$.I,T=[],s,E=0;for(var f=0;f<$.o.length;f++){var e=$.o[f];if(e=="C"){s.push(o[E++],o[E++],o[E++],o[E++],o[E++],o[E++])}else if(e=="Z"){}else{s=[]; if(e!="M"){s.push(e);f++}s.push(o[E++],o[E++]);T.push(s)}}return T};L.M.KY=function($,o,T,s){if(s==null)s=1e9; var E=1e9,e=0;for(var f=0;f<$.length;f+=2){var n=o-$[f],A=T-$[f+1],u=n*n+A*A;if(u>>1}}return E8)Y=L.M.ys(Y,s,u[1]);if(Y.length<=4)continue;for(var w=2;w=0;w--)if(A[w].UK.Yg(X)){A[f].parent=w; break}}if(E){console.log("checking parents",Date.now()-e);e=Date.now()}return A};L.M.aaY=function($,o,T){var s=o*T,E=new Uint16Array(o*T),n=0; for(var f=0;f=3||X)e[f]=1}var z=[];for(var A=1;A>>1); z.push([i,k]);L.M.R3(E,o,T,u,A)}}return z};L.M.R3=function($,o,T,s,E){var e=[E*o+s],n=$[E*o+s];$[E*o+s]=65535; while(e.length!=0){var f=e.pop();$[f]=0;if($[f+o]==n){e.push(f+o);$[f+o]=65535}if($[f-o]==n){e.push(f-o); $[f-o]=65535}if($[f-1]==n){e.push(f-1);$[f-1]=65535}if($[f+1]==n){e.push(f+1);$[f+1]=65535}}};L.M.a9f=function($,o,T,s,E){var e=[0,-1,1,0,0,1,-1,0],b=1; function n(w,X,b){var f=Y*o+u,N=0;if(b==0)N=f-o;else if(b==1)N=f;else if(b==2)N=f-1;else if(b==3)N=f-o-1; return $[N]}var A=[],u=s,Y=E,a=n(u,Y,b);do{A.push(u,Y);u+=e[b*2];Y+=e[b*2+1];if(n(u,Y,b)!=a)b=b+1&3; else if(n(u,Y,b+3&3)!=a)b=b;else if(n(u,Y,b+2&3)!=a)b=b+3&3}while(u!=s||Y!=E);return A};L.M.ys=function($,o,T){var s=$.length-2; if(T&&T.length!=0){var E=T[0]*2,e=T[T.length-1]*2,n=E==0?s:E-2,A=$.slice(e);for(var f=0;fw||k==w&&i>X){w=k; a=f;X=i}}if(w=0},o=function(s,E,e,n,A,u,Y,b){var a=Y-e,w=b-n,X=A-e,N=u-n,z=s-e,i=E-n,k=a*a+w*w,Q=a*X+w*N,O=a*z+w*i,c=X*X+N*N,B=X*z+N*i,G=1/(k*c-Q*Q),l=(c*O-Q*B)*G,v=(k*B-Q*O)*G; return l>=0&&v>=0&&l+v<1},T=function(s){var J=s.length>>>1,f=0;if(J<3)return[];var E=[],e=[];for(var f=0; f3){var A=e[(f+0)%n],u=e[(f+1)%n],Y=e[(f+2)%n],b=s[2*A],a=s[2*A+1],w=s[2*u],X=s[2*u+1],N=s[2*Y],z=s[2*Y+1],i=!1; if($(b,a,w,X,N,z)){i=!0;for(var k=0;k3*n)break}E.push(e[0],e[1],e[2]); return E};return T}();L.M.a9X=function($,o){var T={},s={o:[],I:[]};for(var f=0;fT){var e=T; T=o;o=e}if(E[o+","+T])return;E[o+","+T]=!0;s.o.push("M","L");s.I.push($[o],$[o+1],$[T],$[T+1])};L.M.SG=function($,o){var T=[],s=$.length; for(var f=0;f=0;f--){var n=Math.pow(10,f);if(5*n*$<=e){s=5*n; E=10;break}if(2*n*$<=e){s=2*n;E=4;break}if(1*n*$<=e){s=1*n;E=10;break}}if(s==0){s=1;E=10}var A=Math.ceil(s*$),u=L.G(A*L.BG.M5*4); L.wr(u,4278190080|T);for(var f=0;f1||s==1&&A>20)for(var f=1;f>16&255;$[o+1]=T>>8&255;$[o+2]=T&255}; L.BG.ad2=function($,o,T,s,E,e,n){var A=$.Vi.d,u=$.Vi.w,Y=L.BG.M5,b=o&255,a=o>>8&255,w=o>>16&255;o=Math.round(b*.6)<<16|Math.round(a*.6)<<8|Math.round(w*.6); L.BG.ako(Math.round(b*.8)<<16|Math.round(a*.8)<<8|Math.round(w*.8),T);var X=$.X,N=$.l,z=$.VN;for(var i=0; i<2;i++){var k=i==0?e:n;$.X=k[0];$.l=k[1];$.VN=0;var Q=this.a7J($.X,o,T),O=$.VD(0,0),c=$.VD(A,u),B=Math.floor(O.x/Q.step)*Q.step,G=Math.ceil(c.x/Q.step)*Q.step,l=Math.floor(O.y/Q.step)*Q.step,v=Math.ceil(c.y/Q.step)*Q.step,p=$.X8(B,l),P=$.X8(G,l),h=Q.step*$.X,j=Math.ceil(h); if(i==1){var C=Q.tY;Q.tY=L.G(C.length*4);L.$.EP(C,Q.tY,j,Y)}var V=i==0?$.VC.data:$.DV.data,d=new df(0,0,[A,Y][i],[Y,u][i]),m=new df(0,0,[j,Y][i],[Y,j][i]),R=new df([0,Math.round(Y*.2)][i],[Math.round(Y*.08),0][i],L.BG.Zz,L.BG.Zz),g=(i==0?G-B:v-l)/Q.step; for(var f=0;f>>24;N+=G;z+=G*(B>>>16&255);i+=G*(B>>>8&255); k+=G*(B&255)}if(N!=0){var l=1/N;s[w*E+X]=N/(Q*O)<<24|z*l<<16|i*l<<8|k*l}else s[w*E+X]=0}};L.Z={};L.Z.a4S=function($,o,T){var s=128,f=0,E=T.d,e=T.w; for(var n=0;n=s&&(A==0||$[f-1]>>2]}}}; L.Z.a3G=function($,o,T,s,E,e){var n=T.d,A=T.w,u=0,Y=0,b=n,a=A;if(s){u=s.x-T.x;Y=s.y-T.y;b=u+s.d;a=Y+s.w}var w=new Uint8Array(o.buffer),X=new Uint32Array(o.buffer); for(var N=Y;N>>1<<24|255;else X[f]=255<<24|(i<<16|i<<8|i)}}; L.vB={};L.vB.U2=function($,o,T){var s,E;if(T=="front"){s=$.rect.clone();E=L.vB.a5v}if(T=="union"){s=$.rect.BZ(o.rect); E=L.vB.BZ}if(T=="difference"){s=o.rect.clone();E=L.vB.a7x}if(T=="intersection"){s=$.rect.Sr(o.rect); E=L.vB.Sr}if(T=="xor"){s=$.rect.BZ(o.rect);E=L.vB.a08}if(s.p4())return null;var e=L.G(s.Y());L.pg(o.channel,o.rect,e,s); var n=L.G(s.Y());L.pg($.channel,$.rect,n,s);E(n,e,e);var A=L.ac(e,s);if(A.p4())return null;if(!A.R1(s)){var u=L.G(A.Y()); L.pg(e,s,u,A);e=u;s=A}return{channel:e,rect:s}};L.vB.a5v=function($,o,T){for(var f=0;f<$.length;f++)T[f]=$[f]}; L.vB.BZ=function($,o,T){for(var f=0;f<$.length;f++)T[f]=Math.min($[f]+o[f],255)};L.vB.a7x=function($,o,T){for(var f=0; f<$.length;f++)T[f]=Math.max(o[f]-$[f],0)};L.vB.Sr=function($,o,T){var s=1/255;for(var f=0;f<$.length; f++)T[f]=$[f]*o[f]*s};L.vB.a08=function($,o,T){var s=1/255;for(var f=0;f<$.length;f++)T[f]=Math.min($[f]+o[f],255)-$[f]*o[f]*s}; L.aA=function($,o){this.V=[];this.Kv=[0];this.Rh=[];this.JT=[];this.yE=[0];this.ii=[];this.AX=[];this.rows=$; this.cols=o};L.aA.prototype.clone=function(){var $=this,o=$.rows,T=$.cols,s=new L.aA(o,T);s.V=$.V.slice(0); s.Kv=$.Kv.slice(0);s.Rh=$.Rh.slice(0);s.JT=$.JT.slice(0);s.yE=$.yE.slice(0);s.ii=$.ii.slice(0);s.AX=$.AX.slice(0); return s};L.aA.prototype.OB=function($,o,T){var s=this.Kv.length-1;for(var f=0;fE+s)break}}; L.aA.prototype.ahM=function($,o,T,s){var E=Date.now(),e=1.96,A=0;if(T==null)T=5e-5;if(s==null)s=1e9; var n=1-e,J=this.rows,u=this.JT,Y=this.yE,b=this.ii,a=this.AX;while(!0){var w=0;for(var f=0;fE+s)break}};L.sE={};L.sE.p7=function($,o,T){return{t:"Objc",v:{classID:"CrPt",Hrzn:{t:"doub",v:$},Vrtc:{t:"doub",v:o},Cnty:{t:"bool",v:T}}}}; L.sE.t=function($,o){for(var f=0;f<$.length;f++){var T=$[f].v,s=o.bb(new aY(T.Hrzn.v,T.Vrtc.v));T.Hrzn.v=Math.round(s.x); T.Vrtc.v=Math.round(s.y)}};L.sE.fu=function($,o,T){var J=$.length-1,s=L.Ak.a$(J+1,J+2);for(var f=1;f=o[o.length-1])return T[o.length-1];var f=1;while(o[f]<$)f++;var E=o[f],e=o[f-1],n=T[f],A=T[f-1],u=($-e)/(E-e),Y=s[f-1]*(E-e)-(n-A),b=-s[f]*(E-e)+(n-A),a=(1-u)*A+u*n+u*(1-u)*(Y*(1-u)+b*u); return a};L.sE.RB=function($,o,T,s){var E={$q:[$[0]],b3:[o[0]],yB:[]};s[0]=E;for(var f=1;f<$.length-1; f++){E.$q.push($[f]);E.b3.push(o[f]);if(T[f]==!1){L.sE.fu(E.$q,E.b3,E.yB);E={$q:[$[f]],b3:[o[f]],yB:[]}}s[f]=E}E.$q.push($[f]); E.b3.push(o[f]);L.sE.fu(E.$q,E.b3,E.yB);s[f]=E};L.sE.W2=function($,o,T,s){if($<=o[0])return T[0];if($>=o[o.length-1])return T[o.length-1]; var f=1;while(o[f]<$)f++;var E=s[f-1];return L.sE.amu($,E.$q,E.b3,E.yB)};L.sE.nX=function($){var o={$q:[],b3:[],$C:[]}; for(var f=0;f<$.length;f++){o.$q[f]=$[f].v.Hrzn.v;o.b3[f]=$[f].v.Vrtc.v;o.$C[f]=$[f].v.Cnty?$[f].v.Cnty.v:!0}return o}; L.sE.$O=function($,J,o){var T=0,s=255;if(o){T=-1e9;s=1e9}var E=L.sE.nX($),e=[];L.sE.RB(E.$q,E.b3,E.$C,e); var n=[];for(var f=0;f100)E[1]=.4*E[1];if(E[2]>150)E[1]=.7*E[2]}return E};L.sE.iU=function($,o){var T=new Uint8Array($.length); for(var f=0;f<$.length;f++)T[f]=o[$[f]];return T};L.sE.Ey=function($,o,T){var s=H.z("canvas","");s.width=o; s.height=T;var E=s.getContext("2d"),e=L.sE.JI($,256);E.scale(o/255,T/255);E.fillStyle="#fff";E.fillRect(0,0,255,255); E.fillStyle="#333";E.beginPath();E.moveTo(0,255);for(var f=0;fz){var k=i;i=z;z=k}o[f]=w+L.style.a7n(z,i,X)}};L.style.a7n=function($,o,T){return(.5-T)*$};L.style.zJ=function($,o,T,s){var E=new Int16Array(o*T*2); L.style.aeu($,E,o,T,128);return E};L.style.a4R=function($,o,T,s){var E=T*s;for(var f=0;f=0;n--)L.style.LW(o,$,T,f+n<<1,1)}for(var e=s-2; e>=0;e--){var f=e*T;for(var n=0;n<=T-1;n++)L.style.u$(o,$,T,f+n<<1,1);for(var n=1;n<=T-1;n++)L.style.LW(o,$,T,f+n<<1,-1); for(var n=T-2;n>=0;n--)L.style.LW(o,$,T,f+n<<1,1)}};L.style.LW=function($,o,T,s,E){var e=(s>>>1)+E<<1,n=$[s],A=$[s+1],u=$[e]+E,Y=$[e+1],b=u*u+Y*Y,a=n*n+A*A; if(Y!=16383&&(n==16383||Math.sqrt(b)+(.5-o[(s>>>1)+Y*T+u]*(1/255))>>1)+A*T+n]*(1/255)))){$[s]=u; $[s+1]=Y}};L.style.u$=function($,o,T,s,E){var e=(s>>>1)+E*T<<1,n=$[s],A=$[s+1],u=$[e],Y=$[e+1]+E,b=u*u+Y*Y,a=n*n+A*A; if(u!=16383&&(n==16383||Math.sqrt(b)+(.5-o[(s>>>1)+Y*T+u]*(1/255))>>1)+A*T+n]*(1/255)))){$[s]=u; $[s+1]=Y}};L.style.a8P=function($,o,T,s){var E=T*s;for(var f=0;f=0;n--)L.style.tW(o,$,T,f+n<<1,1)}for(var e=s-2;e>=0;e--){var f=e*T;for(var n=0;n<=T-1; n++)L.style.Be(o,$,T,f+n<<1,1);for(var n=1;n<=T-1;n++)L.style.tW(o,$,T,f+n<<1,-1);for(var n=T-2;n>=0; n--)L.style.tW(o,$,T,f+n<<1,1)}};L.style.tW=function($,o,T,s,E){var e=(s>>>1)+E<<1,n=$[s],A=$[s+1],u=$[e]+E,Y=$[e+1],b=u*u+Y*Y,a=n*n+A*A; if(Y!=16383&&(n==16383||b>>1)+E*T<<1,n=$[s],A=$[s+1],u=$[e],Y=$[e+1]+E,b=u*u+Y*Y,a=n*n+A*A; if(u!=16383&&(n==16383||b=0;A--)o[A+e-T]=Math.min(o[A+e-T],o[A+e-T+1]);for(var u=s-2;u>=0;u--){var f=u*T+T-1;o[f]=Math.min(o[f],Math.min(o[f+T]+1,o[f+T-1]+Math.SQRT2)); for(var A=T-2;A>=1;A--){var Y=o[--f],b=Math.min(o[f+1]+1,Math.min(o[f+T-1]+Math.SQRT2,Math.min(o[f+T]+1,o[f+T+1]+Math.SQRT2))); if(b=0;u--){if($[u*T+n]>E)A=0;else A++;e[u]=A}A=T+s;for(var u=0; uE)A=0;else A++;o[u*T+n]=A0)$[f]=Math.max(0,Math.min(255,s+o*2*(L.style.Po(f)-128)))}else for(var f=0; f<$.length;f++){var s=$[f];if(s>0)$[f]=Math.max(0,Math.min(255,s+Math.min(s*3,o*2*(L.style.Po(f)-128))))}}; L.style.Po=function($){$=$^61^$>>16;$=$+($<<3);$=$^$>>4;$=$*668265261;$=$^$>>15;return $&255};L.JH={}; L.JH.ml=function($,o,T){var s=$.canvas,E=H.K(),e=Math.floor;if(s.width!=e(o*E)||s.height!=e(T*E))H.QE(s,o,T,$)}; L.JH.ab=function($,o,T,s,E,e){L.JH.ml($,o,T);if(e==null)e=!1;var n=E.channel,A=E.rect,u=!E.isEnabled; o=Math.floor(o*H.K());T=Math.floor(T*H.K());if(o*T==0)return;var Y=$.createImageData(o,T),b=Y.data,a=1/o,w=1/T; for(var f=0;f=A.x+A.d||k=A.y+A.w)Q=E.color;else Q=n[(k-A.y)*A.d+(i-A.x)];Q=255*(255-E.A7)+Q*E.A7>>>8; if(e)Q=170+Math.round(.4*(Q-170));b[z]=Q;b[z+1]=Q;b[z+2]=Q;b[z+3]=255}$.putImageData(Y,0,0);if(u)L.JH.I7($,o,T)}; L.JH.Y_=[];L.JH.aaU=function($,o,T,s){var E,e,n,A=H.K();o=Math.floor(A*o);T=Math.floor(A*T);E=Math.ceil(Math.max(o,T)*.35); e=o-E;n=T-E;var u=L.JH.Y_[E];if(u==null){var Y=H.z("canvas"),b=Y.getContext("2d");Y.width=Y.height=E; b.fillStyle="#eeeeee";b.fillRect(0,0,E,E);var a=Math.round(E*.27),w=b.lineWidth=Math.max(1,Math.round(E*.12)),X=w/2; b.strokeRect(1+X,1+X,E-w-2,E-w-2);b.strokeRect(a+X,a+X,E-a-a-w,E-a-a-w);u=L.JH.Y_[E]=b.getImageData(0,0,E,E)}$.putImageData(u,e,n)}; L.JH.MK=[];L.JH.a4G=function($,o,T){var s,E,e,n=H.K();o=Math.floor(n*o);T=Math.floor(n*T);s=Math.ceil(Math.max(o,T)*.35); E=o-s;e=T-s;var A=L.JH.MK[s];if(A==null){var u=H.z("canvas"),Y=u.getContext("2d");u.width=u.height=s; Y.fillStyle="#eeeeee";Y.fillRect(0,0,s,s);Y.lineWidth=1;Y.strokeRect(2.5,2.5,s-5,s-5);var b=Y.createImageData(3,3); L.wr(b.data,4278190080);b.data[4*4]=b.data[4*4+1]=b.data[4*4+2]=238;Y.putImageData(b,1,1);Y.putImageData(b,s-4,1); Y.putImageData(b,1,s-4);Y.putImageData(b,s-4,s-4);A=L.JH.MK[s]=Y.getImageData(0,0,s,s)}$.putImageData(A,E,e)}; L.JH.ahf=function($,o,T,s,E){L.JH.ml($,o,T);o=Math.floor(o*H.K());T=Math.floor(T*H.K());var e=o/s.d; if(o*T==0)return;$.fillStyle="#999999";$.setTransform(1,0,0,1,0,0);$.clearRect(0,0,o,T);var n=L.JH.Jk; if(n==null){n=L.JH.Jk=JSON.parse(JSON.stringify(ev.ci.default));n.strokeEnabled.v=!0}n.strokeStyleLineWidth.v.val=1*H.K()/e; $.fillStyle="#ffffff";$.scale(e,e);L.A.Db(E.g,$,0,0);L.A.Db(E.g,$,0,0,n)};L.JH.tZ=null;L.JH.CH=function($,o,T,s,E,e,n,A){L.JH.ml($,o,T); o=Math.floor(o*H.K());T=Math.floor(T*H.K());if(o*T==0)return;var u=Math.max(o,T),Y=L.JH.tZ;if(Y==null||Y.width=N||B=i){b[O]=G;b[O+1]=G;b[O+2]=G;b[O+3]=255}else{var l=(B-e.y)*e.d+(c-e.x)<<2,v=E[l+3]*(1/255); b[O]=E[l+0]*v+G*(1-v);b[O+1]=E[l+1]*v+G*(1-v);b[O+2]=E[l+2]*v+G*(1-v);b[O+3]=255}}if(A!=null)for(var f=0; f5||e.type==0||e.type==3)continue;if(o!=null&&o.indexOf(E)==-1)continue; if(T!=null&&T.indexOf(f)==-1)continue;s.push(e.Wq.x);s.push(e.Wq.y);s.push(e.W.x);s.push(e.W.y);s.push(e.JL.x); s.push(e.JL.y)}return s};L.A.tH=function($,o,T,s){var E=0,e=-1;for(var f=0;f5||n.type==0||n.type==3)continue;if(T!=null&&T.indexOf(e)==-1)continue; if(s!=null&&s.indexOf(f)==-1)continue;n.Wq.A5($[E],$[E+1]);n.W.A5($[E+2],$[E+3]);n.JL.A5($[E+4],$[E+5]); E+=6}};L.A.hR=function($,o,T,s){var E=L.A.k5($,T,s);L.M.t(E,o,E);L.A.tH(E,$,T,s)};L.A.aiv=function($,o,T,s){var E=L.A.k5($,T,s); L.$.t(o,E);L.A.tH(E,$,T,s)};L.A.a50=function($,o,T,s){if(T==null&&s==null){var E=L.A.afj($,40);for(var f=0; f5){T.push(JSON.parse(JSON.stringify(s)));continue}var E=L.A.ahz($,f+1,s.length); E=L.M.g0(E,o);var e=L.A.a4J(E);f+=s.length;s=JSON.parse(JSON.stringify(s));s.length=e.length;T.push(s); for(var n=0;n5)continue;var o=$[f].length;if(!(o==4||o==6||o==8)){f+=o; continue}for(var T=0;T5)continue; if((A.type==0||A.type==3)&&A.m6!=-1)e++;if(o!=null&&o.indexOf(e)==-1)continue;if(f==$.length-1)break; var u=A.type==3,Y=A.length,b=A.m6,a=L.A.ajL($,f+1,Y,u);if(E==null)E=a;else if(T)E=s(E,a);else if(n){if(o!=null||b==0||b==-1||b==2)E=s(E,a); else if(b==1)E=E;else if(b==3){E=a;n=!1}}else{if(o!=null||b==0||b==-1||b==1)E=s(E,a);else if(b==2)E=E; else if(b==3)E=E.Sr(a)}f+=Y}if(E==null||E.d<0||E.w<0)E=new df(0,0,0,0);return E};L.A.a9h=new Float64Array(4); L.A.ajL=function($,f,o,T){var s=L.A.a9h;s[0]=1e30;s[1]=1e30;s[2]=-1e30;s[3]=-1e30;var E=$[f+o-1];if(!T)L.A.oR(E.W.x,E.W.y,E.JL.x,E.JL.y,$[f].Wq.x,$[f].Wq.y,$[f].W.x,$[f].W.y,s); for(var e=f;ea)a=G;if(lw)w=l}if(Yu[2])u[2]=a; if(w>u[3])u[3]=w};L.A.BM=function($,o){var T=$.length-3,s=o%T,E=Math.floor(s);if(o<0||E>=T)return null; var e=$[3+E],n=$[3+(E+1)%T],A=e.W,u=e.JL,Y=n.Wq,b=n.W,a=s-E,w=1-a,X=w*w*w*A.x+3*w*w*a*u.x+3*w*a*a*Y.x+a*a*a*b.x,N=w*w*w*A.y+3*w*w*a*u.y+3*w*a*a*Y.y+a*a*a*b.y; return new aY(X,N)};L.A.xw=function($){var o=2,T=L.A.MM($),s=!1;for(var f=2;f<$.length;f++){var E=$[f].m6; if(E!=null){if(E==2||E==0||E==3)s=!0}}if(s&&$.length<15e3&&T>1)$=L.A.Dh($);var e=L.M.Ld($);return{app:Typr.U.pathToSVG({crds:e.I,cmds:e.o},o),_9:s?1:0}}; L.A.Dh=function($){L.A.EV();var o,T=L.A.WT($),s=[];for(var f=0;f=0;f--){var A=n[f][0],u=A.hitTest(e,E);if(u!=null)return{II:f,PS:T?u.location.index:null}}return{II:-1}}; L.A.PW=function($,o,T){var s=[[],[],[]];for(var f=0;f<$.length;f++){var E=$[f];if(E.type>5||E.type==0||E.type==3)continue; var e=T==null?!0:T.indexOf(f)!=-1;if(o.dv(E.W))s[0].push(f);if(o.dv(E.Wq)&&e)s[1].push(f);if(o.dv(E.JL)&&e)s[2].push(f)}return s}; L.A.a6B=function($,o,T){var s=T.slice(0),E=[null,null],e=-1,A=null;for(var f=2;f<$.length;f++){if(($[f].type==0||$[f].type==3)&&$[f].m6!=-1)e++; E[f]=T[e]}T=E;var n=$.slice(0,2);E=T.slice(0,2);for(var f=2;f<$.length;f++){if($[f].type==0||$[f].type==3){A=$[f]; n.push(A);E.push(T[f])}else{if(o.indexOf(f)==-1){n.push($[f]);E.push(T[f])}else{A.length--;L.qy.qZ(T,f)}}}for(var f=2; f=o)return s; s++}return s};L.A.Mx=function($,o){var T=-1,s=0;for(var f=0;f<$.length;f++){if(($[f].type==0||$[f].type==3)&&$[f].m6!=-1)T++; if(T==o)s++}return s};L.A.a0A=function($){var o=180;for(var f=0;f<$.length;f++){if($[f].type!=0&&$[f].type!=3)continue; var T=$[f].length;if(T<3)continue;for(var s=0;s180?360-N:N; if(z5)continue; var e=$[f].length,n;if(f==$.length-1)break;var A=$[f].type==3;if(f==2){if(!L.A.Z4($))n="subtract";else n="unite"}else{if($[f].m6==0)n="exclude"; if($[f].m6==1)n="unite";if($[f].m6==2)n="subtract";if($[f].m6==3)n="intersect"}if($[f].m6!=-1){T=new paper.CompoundPath; o.push([T,n]);T.fillRule="evenodd";T.fillColor=s}var u=[];for(var Y=0;YL.A.Zq){L.A.Zq=E}var e=T.d,n=T.w;if(s==null&&L.A.fZ($)){var A=!0; for(var f=2;f<$.length;)if($[f].length==2)f+=3;else{A=!1;break}if(A){return}if(L.A.DS($)){o.fill(255); var u=L.A.hT($);if(u.Y()!=E){var Y=1-(u.x-T.x),b=1-(u.y-T.y),a=1-(T.x+T.d-(u.x+u.d)),w=1-(T.x+T.w-(u.x+u.w)),X=~~(Y*255),N=~~(a*255),z=~~(b*255),i=~~(w*255); o.fill(z,0,e);o[0]=~~(Y*b*255);o[e-1]=~~(a*b*255);for(var f=e;f0)n=!0}if(!e&&A<20)$=L.A.Dh($)}for(var f=0; f<$.length;f++){if($[f].type>5)continue;var Y=$[f].length;if(Y==0)continue;if(f==$.length-1)break;var b=$[f].type==3,u=$[f].m6; if(u!=-1&&E==null){var a=["xor","source-over","destination-out","source-in"][u];o.globalCompositeOperation=a}if($[f].m6!=-1){o.beginPath(); if(E){var w=E.strokeStyleLineWidth.v.val,X=E.strokeStyleLineAlignment.v.strokeStyleLineAlignment,N=E.strokeStyleLineCapType.v.strokeStyleLineCapType,z=E.strokeStyleLineJoinType.v.strokeStyleLineJoinType,i=E.strokeStyleMiterLimit.v,k=[],Q=E.strokeStyleLineDashSet.v; for(var O=0;O1||Math.abs(e[f*4]-e[f*4+n])>1)T=!0}return!T}else return $.warpValue.v==0&&$.warpPerspective.v==0&&$.warpPerspectiveOther.v==0}; L.Rt.G=function($){var o={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($){o.bounds={t:"Objc",v:{classID:"Rctn",Top:{t:"UntF",v:{type:"#Pxl",val:$.y}},Left:{t:"UntF",v:{type:"#Pxl",val:$.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:$.y+$.w}},Rght:{t:"UntF",v:{type:"#Pxl",val:$.x+$.d}}}}; o.uOrder={t:"long",v:4};o.vOrder={t:"long",v:4}}return o};L.Rt.aqW=function($,o,T,s){for(var f=0;f<$.length; f+=2){var E=$[f],e=$[f+1],n=(E-o.x)/o.d,A=(e-o.y)/o.w,u=(1-T)/2,Y=1-u,b=u+n*(Y-u);A=.5+(A-.5)*b*2;var a=(1-s)/2,w=1-a,X=a+A*(w-a); n=.5+(n-.5)*X*2;E=o.x+n*o.d;e=o.y+A*o.w;$[f]=E;$[f+1]=e}};L.Rt.X3=function($,o){var T=[],s=[];for(var f=0; f<$.length;f+=2){T.push($[f]);s.push($[f+1])}var E=[];E.push({id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:T}); E.push({id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:s});o.warpStyle.v.warpStyle="warpCustom";o.customEnvelopeWarp={t:"Objc",v:{classID:"customEnvelopeWarp",meshPoints:{t:"ObAr",v:{classID:"rationalPoint",arr:E}}}}}; L.Rt.wW=function($,o){if(o==null){var T=$.bounds.v,s=T.Left.v.val,E=T.Rght.v.val,e=T.Top.v.val,n=T.Btom.v.val; o=new df(s,e,E-s,n-e)}if(o.p4())o.d=o.w=1;var A=[],u=$.warpStyle.v.warpStyle;if(u=="warpCustom"){var Y=$.customEnvelopeWarp.v.meshPoints.v.arr,b=Y[0].arr,a=Y[1].arr; for(var f=0;f<16;f++)A.push(b[f],a[f])}else A=L.Rt.Rt(o,u,$.warpRotate.v.Ornt=="Hrzn",$.warpValue.v/100,$.warpPerspective.v/100,$.warpPerspectiveOther.v/100); return A};L.Rt.Rt=function($,o,T,s,E,e){var n=L.ha.G($.x,$.y,$.d,$.w);if(o=="warpNone")return n;var A=JSON.parse(JSON.stringify($)),u=new fY; if(!T){u.translate(-$.x,-$.y);u.rotate(-Math.PI/2);u.translate($.w,0);L.M.t(n,u,n);$=new df(0,0,$.w,$.d); n=L.ha.c7(n,!1)}L.Rt.ag2(n,$,o,s,E,e);if(!T){n=L.ha.c7(n,!0);$=A;u.lY();L.M.t(n,u,n)}if(s==0)L.Rt.aqW(n,$,E,e); else{var u=new fY(1/$.d,0,0,1/$.w,-$.x,-$.y);u.translate(-.5,-.5);L.M.t(n,u,n);L.Rt.a6Z(n,e,E);u.lY(); L.M.t(n,u,n)}return n};L.Rt.ag2=function($,o,T,s,E,e){for(var f=0;f<4;f++){for(var n=0;n<4;n++){var A=2*(4*f+n),u=$[A]-o.x,Y=$[A+1]-o.y,b=u,a=Y; if(s!=0){var w=o.d/2,X=o.w/2;b-=w;a-=X;var N=b,z=b,i=-X,k=X,Q=Math.abs(s),O=Math.tan((1-Q)*Math.PI/2),c=Math.sqrt(O*O+1),B=Math.atan2(1,O),G=b/w*B,l=w*c,v=w*c+o.w,p=Math.cos(B),P=Math.sin(B),h=L.Rt.agU(p,P),j=L.Rt.aqU(p,P),C=-O*w+h*l; if(T=="warpArc"){N=Math.sin(G)*v;i=O*w-Math.cos(B)*v+X;z=Math.sin(G)*l;k=O*w-Math.cos(B)*l+X;if(n==1||n==2){N=n==1?-j*v:j*v; z=n==1?-j*l:j*l;i=O*w+X-h*v;k=O*w+X-h*l}if(s<0){var V=N;N=z;z=V;V=i;i=-k;k=-V}}if(T=="warpArcLower"){if(n==1||n==2){z=n==1?-j*l:j*l; k=s<0?X-C:X+C}}if(T=="warpArcUpper"||T=="warpArch"||T=="warpBulge"){if(n==1||n==2){N=n==1?-j*l:j*l;i=s<0?-X+C:-X-C}if(T=="warpArch"){z=N; k=i+2*X}if(T=="warpBulge"){z=N;k=-i}}if(T=="warpFish"||T=="warpFlag"||T=="warpWave"){if(n==1){i-=s*4*X; k+=s*4*X}if(n==2){i+=s*4*X;k-=s*4*X}if(T=="warpFlag"||T=="warpWave")i=k-2*X}if(T=="warpRise"){if(n<2)i=-X+s*X*4; k=i+2*X}var d=(a+X)/o.w;b=N+d*(z-N);a=i+d*(k-i);if(T=="warpWave"){if(f==0)a=-X;if(f==3)a=X;if(f==1||f==2)a=2*X*(f/3-.5)*(1/3)+a*(2/3)}if(T=="warpFisheye"){if((f==1||f==2)&&(n==1||n==2)){b=b+4*b*s; a=a+4*a*s}}if(T=="warpInflate"){var m=2/3;if((f==1||f==2)&&(n==1||n==2)){b=b+.5*b*s;a=a+.5*a*s}else if(f==1||f==2)b=b+m*b*s; else if(n==1||n==2)a=a+m*a*s}if(T=="warpSqueeze"){var m=2/3;if((f==1||f==2)&&(n==1||n==2)){if(s>0)b=b-m*b*s; else a=a+m*a*s}else if(f==1||f==2)b=b-m*b*s;else if(n==1||n==2)a=a+m*a*s}if(T=="warpTwist"){if((f==1||f==2)&&(n==1||n==2)){var R=s*Math.PI/2,c=1+Math.abs(s)*2,g=b*Math.cos(R)-a*Math.sin(R),S=b*Math.sin(R)+a*Math.cos(R); b=g*c;a=S*c}}if(T=="warpShellLower"||T=="warpShellUpper"){if(T=="warpShellUpper"){f=3-f;a=-a}if(f>2||f==2&&(n==0||n==3)){if(s>0){var F=l+f/3*2*X; b=Math.sin(G)*F;a=-O*w-X+Math.cos(G)*F;if(n==1||n==2){b=n==1?-j*F:j*F;a=-O*w-X+h*F}}else{if((n==1||n==2)&&f==3){b=n==1?-j*l:j*l; a=O*w-h*l+X}else if(f==2){a=X-X*(2/3)*Math.cos(G);b=b+X*(2/3)*Math.sin(G)}}}if(T=="warpShellUpper"){f=3-f; a=-a}}b+=w;a+=X}u=b,Y=a;$[A]=u+o.x;$[A+1]=Y+o.y}}};L.Rt.a6Z=function($,o,T){var s=[];for(var E=0;E<4; E++)s.push(1-T+E/3*2*T);var e=[];for(var E=0;E<4;E++)e.push(1-o+E/3*2*o);var n=[0,0,0,0],A=[0,0,0,0]; for(var f=0;f<4;f++)for(var E=0;E<4;E++){var u=2*(4*f+E),Y=$[u],b=$[u+1];n[E]+=Y/4;A[E]+=b/4}for(var f=0; f<4;f++)for(var E=0;E<4;E++){var a=s[E],u=2*(4*f+E),Y=$[u],b=$[u+1],w=n[E],X=A[E];$[u]=w+a*(Y-w);$[u+1]=X+a*(b-X)}var N=$.slice(0); for(var f=0;f<4;f++)for(var E=1;E<3;E++){var u=2*(4*f+E),Y=$[u],b=$[u+1],z=u+(E==1?-2:2),i=$[z],k=$[z+1]; $[u]=Y-i;$[u+1]=b-k}var Q=$[0],O=$[1],c=$[8],B=$[9],G=$[16],l=$[17],v=$[24],p=$[25],P=$[6],h=$[7],j=$[14],C=$[15],V=$[22],d=$[23],m=$[30],R=$[31],g=P-Q,S=h-O,F=j-c,r=C-B,q=V-G,W=d-l,Z=m-v,I=R-p; for(var f=0;f<4;f++){var _=2*f*4,cN=0,ce=0,gf=f==1?.33:.66,K=1-gf;if(f==0){cN=g;ce=S}if(f==1){cN=K*g+gf*-Z; ce=K*S+gf*-I}if(f==2){cN=K*g+gf*-Z;ce=K*S+gf*-I}if(f==3){cN=-Z;ce=-I}$[_]=$[_]+cN/2;$[_+1]=$[_+1]+ce/2; $[_+6]=$[_+6]-cN/2;$[_+7]=$[_+7]-ce/2}for(var f=0;f<4;f++)for(var E=1;E<3;E++){var u=2*(4*f+E),Y=$[u],b=$[u+1],z=u+(E==1?-2:2),i=$[z],k=$[z+1],a=2*f/3; $[u]=i+a*Y;$[u+1]=k+a*b}for(var f=1;f<3;f++)for(var E=1;E<3;E++){var u=2*(4*f+E),Y=$[u],b=$[u+1],cv=f==1?-8:-16,f0=f==1?16:8,i8=$[u+cv],b5=$[u+cv+1],iC=$[u+f0],an=$[u+f0+1],a=f/3; Y=(1-a)*i8+a*iC;b=(1-a)*b5+a*an;$[u]=Y;$[u+1]=b}L.M.YY(N,$,$,o)};L.Rt.agU=function($,o){return(4-$)*(1/3)}; L.Rt.aqU=function($,o){return(1-$)*(3-$)/(3*o)};L.Lz={};L.Lz.a6F=function($,o,T,s,E,e,n,A,u,Y){for(var b=0; b>>1; $[o]=$[o+3]=$[T]=$[T+3]=n;$[o+1]=b;$[o+4]=A;$[T+1]=u;$[T+4]=b;$[o+2]=$[o+5]=$[T+2]=$[T+5]=Y};L.Lz.aoC=function($,o,T,s,E,e){var n=e*3; for(var f=0;f>2;if(Q==z)return A*3+e+n-u>>2;if(Q==i)return e*3+A+n-E>>2;return Y*3+s+n-b>>2}; L.Lz.ns=function($,o,T,s,E){if($o&&o>T)return~~(.5+s+(E-s)*(o-$)/(T-$));else return(s+E>>1)+(o+o-$-T>>2)}; L.Lz.lH=function($,o,f,T){var s=o[f-T-1],E=o[f-T+1],e=o[f],n=o[f+T-1],A=o[f+T+1],u=$[f-T-1],Y=$[f-T+1],b=$[f],a=$[f+T-1],w=$[f+T+1],X=Math.abs(Y-a)+Math.abs($[f-T-T+2]-b)+Math.abs(b-$[f+T+T-2])+Math.abs(E-e)+Math.abs(e-n),N=Math.abs(u-w)+Math.abs($[f-T-T-2]-b)+Math.abs(b-$[f+T+T+2])+Math.abs(s-e)+Math.abs(e-A); if(X>1<<1;e+=Y[1]>>1<<1}if($.t50720){var b=$.t50720; n=E+b[0];A=e+b[1]}var a=n-E,w=A-e,X=L.raw.afe($),N=$.t33422,z=$.t33421;if(z){var b=z[0],i=N.slice(0); for(var k=0;k4e4){for(var f=0;f<$.length;f++)$[f]>>=1;var n=["t50714","t50715","t50712","t50717"]; for(var f=0;f>>=1}console.log("remapping to lower bit depth")}var Y=~~Math.sqrt(E.length),b=[-1,-1,0,-1,0,1,-1,0,0,0,1,0,-1,1,0,1,1,1],a=[]; for(var w=0;wv)h.push(f);else if(d>p){j[0]+=N;j[1]+=z;j[2]+=i;C++}}if(h.length==0)return;if(C/(o*T)<1e-5){console.log("not enough semi-saturated pixels",C); j=P}if(j[1]g[f])g[f]=F}$.set(g)};L.raw.D0=function($,o,T,s){var E=$._3,e=Math.round(E.length/3),n=gP.al1(s[0],s[1]),A=L.raw.a6u(T,n),u=L.tK.multiply(L.tK.UO,A),Y=Math.pow(2,s[2]+(T.t50730?T.t50730[0]:0)); u=L.tK.multiply(u,L.tK.SE(Y,Y,Y));var b=T.t50728?T.t50728:[1,1,1],a=[b[1]/b[0],b[2]/b[0],b[0]/b[1],b[2]/b[1],b[0]/b[2],b[1]/b[2]],w=new Float64Array(1e3); for(var f=0;f<1e3;f++){var X=f*(1/999);X=f==999?1:L.WH(f*(1/999));X=L.raw.AE.aqV(X,s[3]/100);w[f]=X}var N=Date.now(); for(var f=0;f1)c=1;if(B<0)B=0;else if(B>1)B=1;if(G<0)G=0;else if(G>1)G=1;c=w[~~(c*999)];B=w[~~(B*999)]; G=w[~~(G*999)];o[z]=~~(.5+c*255);o[z+1]=~~(.5+B*255);o[z+2]=~~(.5+G*255)}};L.raw.AE={aqV:function($,o){var T=.5-.5*Math.cos($*3.2),s=0; if(o>0){var E=$*.2;s=E*$+(1-E)*T}else{var e=Math.pow($,.33);s=(1-e)*e+e*($+($-T)*.63)}var n=Math.abs(o); return n*s+(1-n)*$},aeZ:function($,o){var T=0;if(o>0){var s=$*1.47,E=Math.pow($,2.4);T=Math.min(1,E*$+(1-E)*s)}else{var s=$*.68,E=Math.pow($,3); T=E*$*.5+(1-E)*s}var e=Math.abs(o);return e*T+(1-e)*$},am_:function($,o){var T=0;if(o>0){var s=Math.pow($,.3),E=$; T=(1-$)*s+$*E}else{var s=Math.pow($,2.5),e=$,E=$;T=Math.min(1,(1-e)*s+e*E)}var n=Math.abs(o);return n*T+(1-n)*$}}; L.raw.afe=function($){var o=$.width,T=$.height,s=o*T*$.t277,E=new Uint16Array(s),e=null,n=0;L.raw.abU($,E); L.raw.QA(1,$,E,o,T);if($.t50712){e=$.t50712;n=e.length-1;if(e[n]>65535)throw"too big values"}var A=L.raw._S($),u=L.raw.aJ($); if(e==null)for(var f=0;fn)Y=n; Y=e[Y];E[f]=Math.max(0,Y-A)}return E};L.raw._S=function($){var o=$.t50714,T=o?o[0]:0,s=$.t50715,E=$.t50716; if(s)T+=s[0][0]/s[0][1];if(E)T+=E[0][0]/E[0][1];return Math.round(T)};L.raw.aJ=function($){var o=null,T=0; if($.t50712){o=$.t50712;T=o.length-1}var s=$.t50717?$.t50717[0]:(1<<$.t258[0])-1;if(o)s=Math.min(s,o[T]); return s};L.raw.o3=function($){var o=L.raw._S($),T=L.raw.aJ($);return T-o};L.raw.abU=function($,o){var T=o.length,s=$.data,E=$.t258[0]; if(E!=16&&E!=14&&E!=12&&E!=10&&E!=8)throw"Unsupported Bits Per Sample:"+E;E=Math.round(s.length*8/T); if(E==16&&$.isLE){L.w0(s,o);return}for(var f=0;f>>3,b=s[Y]<<24|s[Y+1]<<16|s[Y+2]<<8|s[Y+3];if((u&7)==0){n=b>>>18; A=b>>>4&16383}else{n=b>>>14&16383;A=b&16383}}else if(E==12){e=f+(f>>>1);n=s[e]<<4|s[e+1]>>4;A=(s[e+1]&15)<<8|s[e+2]}else if(E==10){var u=f*10,Y=u>>>3; if((u&7)==0){n=(s[Y]<<2|s[Y+1]>>6)&1023;A=(s[Y+1]<<4|s[Y+2]>>4)&1023}else{n=(s[Y]<<6|s[Y+1]>>2)&1023; A=(s[Y+1]<<8|s[Y+2]>>0)&1023}}else if(E==8){e=f;n=s[e];A=s[e+1]}o[f]=n;o[f+1]=A}};L.raw.QA=function($,o,T,s,E){var e=o["t"+[51008,51009,51022][$-1]],b=0; if(e==null)return;var n=s*E,A=t.s,u=t.Eo,Y=new Uint8Array(e),bo=t.s(Y,b);b+=4;for(var a=0;a>1}else if(w==5&&$==1){var i=b,cO=A(Y,i);i+=4; var bh=A(Y,i);i+=4;var bD=A(Y,i);i+=4;for(var f=0;f>1}}else if(w==7&&$==1){var i=b,g6=t.AS(Y,i);i+=16;var hM=A(Y,i);i+=4;var d3=A(Y,i); i+=4;var h9=A(Y,i),cs=A(Y,i+4);i+=8;var dv=A(Y,i);i+=4;var ec=new Uint16Array(dv);for(var f=0;f1e-7); return T};L.raw.bw=function($,o){var T=gP.jT(o),s=L.raw.aen,E=$.t50778?$.t50778[0]:0,e=$.t50779?$.t50779[0]:0,n=s($.t50721,$.t50722,E,e,T.xO),A=s($.t50723,$.t50724,E,e,T.xO); n=n||[1,0,0,0,1,0,0,0,1];A=A||[1,0,0,0,1,0,0,0,1];var u=$.t50727?[$.t50727[0],0,0,0,$.t50727[1],0,0,0,$.t50727[2]]:[1,0,0,0,1,0,0,0,1]; return L.tK.multiply(L.tK.v6(u),L.tK.multiply(L.tK.v6(A),L.tK.v6(n)))};L.raw.aen=function($,o,T,s,E){if(!$&&!o){return null}else if($&&!o){return $}else if(Es){return o}else{var e=(1/E-1/s)/(1/T-1/s),n=1-e,A=[]; for(var f=0;f<9;f++)A[f]=$[f]*e+o[f]*n;return A}};var gP={};gP.afO={x:.34567,y:.3585};gP.mx=[{i:0,eE:.18006,ed:.26352,KR:-.24341},{i:10,eE:.18066,ed:.26589,KR:-.25479},{i:20,eE:.18133,ed:.26846,KR:-.26876},{i:30,eE:.18208,ed:.27119,KR:-.28539},{i:40,eE:.18293,ed:.27407,KR:-.3047},{i:50,eE:.18388,ed:.27709,KR:-.32675},{i:60,eE:.18494,ed:.28021,KR:-.35156},{i:70,eE:.18611,ed:.28342,KR:-.37915},{i:80,eE:.1874,ed:.28668,KR:-.40955},{i:90,eE:.1888,ed:.28997,KR:-.44278},{i:100,eE:.19032,ed:.29326,KR:-.47888},{i:125,eE:.19462,ed:.30141,KR:-.58204},{i:150,eE:.19962,ed:.30921,KR:-.70471},{i:175,eE:.20525,ed:.31647,KR:-.84901},{i:200,eE:.21142,ed:.32312,KR:-1.0182},{i:225,eE:.21807,ed:.32909,KR:-1.2168},{i:250,eE:.22511,ed:.33439,KR:-1.4512},{i:275,eE:.23247,ed:.33904,KR:-1.7298},{i:300,eE:.2401,ed:.34308,KR:-2.0637},{i:325,eE:.24792,ed:.34655,KR:-2.4681},{i:350,eE:.25591,ed:.34951,KR:-2.9641},{i:375,eE:.264,ed:.352,KR:-3.5814},{i:400,eE:.27218,ed:.35407,KR:-4.3633},{i:425,eE:.28039,ed:.35577,KR:-5.3762},{i:450,eE:.28863,ed:.35714,KR:-6.7262},{i:475,eE:.29685,ed:.35823,KR:-8.5955},{i:500,eE:.30505,ed:.35907,KR:-11.324},{i:525,eE:.3132,ed:.35968,KR:-15.628},{i:550,eE:.32129,ed:.36011,KR:-23.325},{i:575,eE:.32931,ed:.36038,KR:-40.77},{i:600,eE:.33724,ed:.36051,KR:-116.45}]; gP.jT=function($){var o=gP.mx,T=2*$.x/(1.5-$.x+6*$.y),s=3*$.y/(1.5-$.x+6*$.y),E=0,e=0,n=0;for(;n<31; n++){E=s-o[n].ed-o[n].KR*(T-o[n].eE);if(n>0&&E<0){break}e=E}while(n>=o.length)n--;E/=Math.sqrt(1+o[n].KR*o[n].KR); e/=Math.sqrt(1+o[n-1].KR*o[n-1].KR);var A=e/(e-E),u=1e6/((o[n].i-o[n-1].i)*A+o[n-1].i),Y=T-((o[n].eE-o[n-1].eE)*A+o[n-1].eE),b=s-((o[n].ed-o[n-1].ed)*A+o[n-1].ed),a=Math.sqrt(1+o[n].KR*o[n].KR),w=1/a,X=o[n].KR/a,N=Math.sqrt(1+o[n-1].KR*o[n-1].KR),z=1/N,i=o[n-1].KR/N,k=(w-z)*A+z,Q=(X-i)*A+i,O=Math.sqrt(k*k+Q*Q); k/=O;Q/=O;var c=(Y*k+b*Q)*-3e3;return{xO:u,sw:c}};gP.al1=function($,o){var T=gP.mx,s=1e6/$,E=1;for(; E<31;E++){if(s>>2;N[f+1]=i;if(i>4095)throw"e"}for(var f=0;f<16385;f++)z[f]=f;for(var f=0; f<5;f++)for(var k=N[f]+1;k<=N[f+1];k++)z[k]=z[k-1]+(1<>>2); L.raw.aaD(v,p,G>>>2,l);var P=new Uint8Array(B+G);P.set(new Uint8Array(p.buffer),B);var h=[];UTIF._readIFD(w,P,B,h,0,!1); var j=h.pop(),C=j.t29458;$.t50728=[C[1]/C[0],1,C[1]/C[3]];$.t50730=[.5];var V=j.t29891;$.t50829=[V[1],V[0],V[3],V[2]]}else if(e.makerNote&&e.makerNote.t8208){var c=e.makerNote,d=c.t8208,m=d.length,R=0,g=new Uint8Array(256); for(var f=249;f<256;f++)g[f]=f;for(var f=0;f<249;f++)g[f*f*f%249]=f;for(var f=0;f>>2;$.t50714=[a,a,a,a];$.t50717=[Y[3]>>>2]}}else if($.t271[0].startsWith("Canon")){var o=$.data,S=o.slice(0),F=$.t50752,r=[],W=0; if(F==null||F[0]==0&&F[1]==0)r.push($.width);else{for(var f=0;f>1)*cN*2; for(var f=0;f>>1,ce=$.height-h9>>>1;$.t50829=[ce,W,ce+h9,W+d3]}if(c.t12){var iz=L.raw.e2(c.t12); gT=[1/iz[0],1,1/iz[1]]}else if(c.t151){var gw=L.raw.a3n(c,151),iI=gw[0],cH=gw[1],g2=gw[2];if(iI=="0100"&&cH>=80)throw"e"; else if(iI=="0102"){var bb=[];for(var f=0;f<4;f++)bb.push(bh(g2,6+f*2));gT=[bb[1]/bb[0],1,bb[1]/bb[3]]}else if(iI=="0103"&&cH>=26){var bb=[]; for(var f=0;f<4;f++)bb.push(bh(g2,16+f*2));gT=[bb[1]/bb[0],1,bb[3]/bb[2]]}else if(iI=="0204"&&cH>=564||iI=="0205"&&cH>=284){var B=iI=="0204"?6:14,bb=[]; for(var f=0;f<4;f++)bb.push(bh(g2,B+f*2));gT=[bb[1]/bb[0],1,bb[1]/bb[3]]}else throw"e"}else console.log("no white balance info"); if(n=="NIKON D1")gT=[1,1,1];if(gT)$.t50728=gT;var ir=c.t150?c.t150:c.t140;if(ir){var gY=ir[dG++],e6=ir[dG++],cx; if(gY==73||e6==88)dG+=2110;dG+=8;var fr=1<1)cx=Math.floor(fr/(bt-1)); if(gY==68&&e6==32&&cx>0){for(f=0;f>>0)*3125+1>>>0;E[3]=E[3]<<1|(E[0]^E[2])>>>31;for(var n=4;n<127; n++)E[n]=(E[n-4]^E[n-2])<<1|(E[n-3]^E[n-1])>>>31;for(var n=0;n<127;n++)E[n]=t.s(e,n*4);for(;T>0;T--){E[n&127]=E[n+1&127]^E[n+1+64&127]; var Y=E[n&127],b=$[A];b^=Y;o[u]=b;A++;u++;n++}};L.raw.aae=function($,o){var T=t.en(o,0,4),s=L.raw.agP; for(var f=0;f>>(f<<3)&255;var A=o[E&255],u=T[n&255];return[A,u,96]};L.raw.a3n=function($,o){var T=$["t"+o],cH=T.length,s=L.raw.aae(o,T),E=t.en(T,0,4),e,n=s[4]; if(n==null)e=T.slice(4);else{e=new Uint8Array(cH-n);var A=L.raw.aoB($),u=A[0],Y=A[1],b=A[2];for(var f=0; f1)gf++;for(var K=0;K=250?ir:_)<<2;bb[dG]=o[e6];bb[dG+1]=o[e6+1]; bb[dG+2]=o[e6+2]}L.aM(iI,bb,3);if(b)console.log(Date.now()-Y);Y=Date.now();return bb};L.eG.Uq=function($,o,T,s,E,e,n,A,u){var Y=$>>>16,b=$&65535,a=Y-(T>>>16),w=b-(T&65535),X=Y-(E>>>16),N=b-(E&65535),z=Math.sqrt(a*a+w*w)*n,i=Math.sqrt(X*X+N*N)*A; if(z+i>=u)return 1e9;var k=L.eG.akM(o,s,e);return k+z+i};L.eG.akM=function($,o,T){var s=$>>>16,E=$>>>8&255,e=$&255,n=o>>>16,A=o>>>8&255,u=o&255,Y=T>>>16,b=T>>>8&255,a=T&255,w=L.eG.alpha($,o,T),X=s-(w*n+(1-w)*Y),N=E-(w*A+(1-w)*b),z=e-(w*u+(1-w)*a); return Math.sqrt(X*X+N*N+z*z)};L.eG.alpha=function($,o,T){var s=$>>>16,E=$>>>8&255,e=$&255,n=o>>>16,A=o>>>8&255,u=o&255,Y=T>>>16,b=T>>>8&255,a=T&255,w=n-Y,X=A-b,N=u-a,z=s-Y,i=E-b,k=e-a,Q=w*w+X*X+N*N,O=Q==0?.5:(z*w+i*X+k*N)/Q; return Math.max(0,Math.min(1,O))};L.eG.acb=function($){};L.eG.BX=function($,o,T,s,E){var e=[],n=o-1,A=T-1; for(var u=1;u>>2;console.log(a,N);w=L.G(a.Y()); L.Ge(b._3,w,0);L.aM(o,Y,0);b=L.tk(Y,T);b=L.tk(b._3,b.rect);X=L.G(a.Y());L.Ge(b._3,X,0);var z=L.Xs.a5a(w,X,a,N,E),i=z[0],k=z[1],Q=new df(0,0,a.d*2,a.w*2); i=u(i,a,Q,!0);i=u(i,Q,T,!0);k=u(k,a,Q,!0);k=u(k,Q,T,!0);var O=L.G(A);for(var f=0;f>>2,n>>>2);N=s>>>2;w=L.Xs.a3a($,e,n);X=L.Xs.aqZ(o,e,n);if(b)console.log(Date.now()-Y); Y=Date.now();var z=L.Xs.a8m(w,X,a,N,E),i=z[0],k=z[1],Q=z[2],O=z[3];if(b)console.log(Date.now()-Y);Y=Date.now(); var c=L.G(A);for(var B=0;B>>2)*(e>>>2)+(G>>>2),v=f<<2,p=i[l]*o[v]+k[l]*o[v+1]+Q[l]*o[v+2]+O[l]*255; c[f]=Math.max(0,Math.min(255,~~(.5+p)))}if(b)console.log(Date.now()-Y);Y=Date.now();return c};L.Xs.a3a=function($,o,T){var s=o>>>2,E=T>>>2,e=L.G(o*T); for(var n=0;n>>2,E=T>>>2,e=L.G(o*T*4); for(var n=0;no-A-1||b>T-A-1){var f=b*o+a,w=f<<2,X=0;if(bo-A-1)X=8;u[X]+=$[w];u[X+1]+=$[w+1];u[X+2]+=$[w+2];u[X+3]++;E[f]=255}}for(var f=0;f<12;f+=4)for(var N=0; N<3;N++)Y[f+N]=u[f+N]/u[f+3];var z=new Float32Array(s);for(var f=0;f>>1,n=T>>>1,P=1/Math.sqrt(p*p+n*n); for(var b=0;b=0;n--)L.gE.oP(E*e-E+n,1,$,o,T,s);for(var A=e-2;A>=0;A--){L.gE.oP(A*E+E-1,E,$,o,T,s);for(var n=E-2; n>=0;n--){var f=A*E+n;L.gE.oP(f,1,$,o,T,s);L.gE.oP(f,E,$,o,T,s)}}};L.gE.oP=function(f,$,o,T,s,E){var e=f+$,n=o[f],A=T[e],u=s[e]; if(A0){var a=u;u=Y;Y=a}var w=e[Y+"-"+u],X=e[u+"-"+A],N=e[A+"-"+Y],z=[Y,w,n,null],i=[u,X,n,z],k=[A,N,n,i]; z[3]=k;if(w)w[1]=z;if(X)X[1]=i;if(N)N[1]=k;e[Y+"-"+A]=k;e[A+"-"+u]=i;e[u+"-"+Y]=z;T[A]=i;E[f]=i;T[u]=z; E[f+1]=z;T[Y]=k;E[f+2]=k;s[n]=i}return{UB:T,Uz:s,z5:E}};L.u6.a0N=function($){var o=[],T=$.Uz;for(var f=0; fN[2]&&N[3]==0&&L.u6.eZ($,X,b,w)<0&&L.u6.eZ($,w,a,X)<0; if(k){T[0]=w;s[0]=X;T[3]=e;e[3]=n;n[3]=T;s[3]=A;A[3]=E;E[3]=s;E[2]=Y;n[2]=u;o.Uz[Y]=A;o.Uz[u]=e;o.UB[a]=n; o.UB[b]=E}return k};L.u6.anO=function($,o,T){var s=$[o*2]-$[T*2],E=$[o*2+1]-$[T*2+1];return Math.sqrt(s*s+E*E)}; L.u6.a1$=function($,o,T){var s=T[1],E=T[3],e=E[3],n,A,u=T[2],Y,b=T[0],a=e[0],w=E[0],X;if(s){n=s[3];A=n[3]; Y=s[2];X=n[0]}var N=$.length>>>1;$[2*N]=($[2*a]+$[2*b])*.5;$[2*N+1]=($[2*a+1]+$[2*b+1])*.5;if(!0){var z=u,i=T,k=o.Uz.length,Q=[N,null,z,i],O=[w,Q,k,e]; Q[1]=O;var c=[N,null,k,O];E[3]=Q;e[3]=c;e[2]=k;o.Uz[z]=E;o.Uz[k]=c;o.UB[b]=E;o.UB[w]=e;o.z5.push(Q,O,c)}if(s){var B=Y,G=s,l=k+1; c[1]=G,G[1]=c;var v=[N,null,B,G],p=[X,v,l,A];v[1]=p;var P=[N,i,l,p];i[1]=P;n[3]=v;A[3]=P;A[2]=l;o.Uz[B]=n; o.Uz[l]=A;o.UB[a]=n;o.UB[X]=A;o.z5.push(v,p,P)}o.UB[N]=i};L.u6.Kq=function($,o){var T=0;while(!0){var s=T; for(var f=0;fn){e=u;n=Y}}if(n>T){L.u6.a1$($,o,e); E++}}return E!=0};L.u6.a2U=function($,o){var T=[],w=0;for(var f=0;f<$.length;f++)T.push(0);for(var f=0; f>>1,N=o.UB[X],s=N,z=!0; do{if(s[1]==null){z=!1;break}s=s[1][3]}while(s!=N);if(z){var i=.02;$[f]+=i*T[f];$[f+1]+=i*T[f+1];w+=i*(T[f]*T[f]+T[f+1]*T[f+1])}}return w}; L.u6.a3U=function($,o,T){var s=L.M.L3($),E=L.u6.ln($,o);L.u6.Kq($,E);for(var e=0;e<300;e++){var n=!1,A=!1; n=L.u6.afr($,E,T,5);if(n)A=L.u6.Kq($,E);var u=L.u6.a2U($,E);if(!n&&!A&&u<1e-4){break}}return L.u6.a0N(E)}; L.pZ={};L.pZ.cd=function($){var o=$.Y0,T=$.ZL,s=$.Zg,E=$.mw,e=$.YL,n=$.HS,A=$.dw,u=L.Ak.wd,Q,O,c=0;function Y(J){var i8=new Array(J); for(var f=0;f>>1,a=Y(o.$Y*2),w=Y(o.$Y),X=Y(o.$Y),N=Date.now(); for(var f=0;f<$.nr.length;f++){var z=o.a53+f,i=o.N0*(n[f*2]+A[f*2]),k=o.N0*(n[f*2+1]+A[f*2+1]);a[z*2]=i; a[z*2+1]=k;w[z]=i;X[z]=k}o.amI.sg(E,o.a0R.wd(a),.01,Q,O);for(var f=0;fl)continue;var P=T[G*2],h=T[G*2+1],j=T[l*2],C=T[l*2+1],V=E[G*2],d=E[G*2+1],R=E[l*2],g=E[l*2+1],S=E[v*2],F=E[v*2+1],q=E[p*2],W=E[p*2+1],Z=[V,d,R,g,S,F]; if(B[1])Z.push(q,W);var I=u(o.acr[c],Z),_=I[0],cN=I[1],ce=1/Math.sqrt(_*_+cN*cN);_*=ce;cN*=ce;var gf=j-P,K=C-h; w[c]=_*gf+cN*K;X[c]=-cN*gf+_*K;c++}var cv=new Array(b),f0=new Array(b);for(var f=0;f>>1,u=0,N=0,cN=1e3; for(var f=0;fO)continue; var G=o[Q*2],l=o[Q*2+1],v=o[O*2],p=o[O*2+1],P=o[c*2],h=o[c*2+1],j=o[B*2],C=o[B*2+1],V=[[G,l,1,0],[l,-G,0,1],[v,p,1,0],[p,-v,0,1],[P,h,1,0],[h,-P,0,1]]; if(k[1])V.push([j,C,1,0],[C,-j,0,1]);var d=L.Ak.EP(V),R=E(linear.invert(E(d,V)),d);R.pop();R.pop();b.push(R); var g=v-G,S=p-l,F=X[k[1]?1:0];F=L.Ak.V4(F,E([[g,S],[S,-g]],R));var q=[Q*2,Q*2+1,O*2,O*2+1,c*2,c*2+1,B*2,B*2+1],W=k[1]?8:6,Z=[]; for(var I=0;I>>1,n=new Array(e); if(T.length==0){n.fill(0);return n}var A=new Array(e),u=new Array(e);for(var f=0;f=0&&Z>=0&&W+Z<=1){var I=1-W-Z,_=c*I+B*W+G*Z,cN=l*I+v*W+p*Z; L.$.mn(_,cN,e,n,A,X);L.pZ.aap(X,u,S*Y+F<<2)}}};L.pZ.aap=function($,o,T){var s=o[T],E=o[T+1],e=o[T+2],n=o[T+3],A=1-$[3]*(1/255); o[T]=~~(.5+$[0]+s*A);o[T+1]=~~(.5+$[1]+E*A);o[T+2]=~~(.5+$[2]+e*A);o[T+3]=~~(.5+$[3]+n*A)};L.pZ.Rd=function(){var $=function(T,s,E,e){var n=e[0],A=e[1],u=e[2],Y=T[n+0],b=T[n+1],a=T[A+0],w=T[A+1],X=T[u+0],N=T[u+1],z=a-Y,i=w-b,k=X-Y,Q=N-b,O=s-Y,c=E-b,B=z*Q-k*i,G=1/(B+1e-9),l=(O*Q-k*c)*G,v=(z*c-O*i)*G; if(l>=0&&v>=0&&l+v<=1){e[3]=1-l-v;e[4]=l;e[5]=v;return 1}return 0},o=function(T,s,E,e){var n=[0,0,0,0,0,0]; for(var f=0;f=0;a--){var i=a*o;for(var b=0;b=2){var f=i+w,v=c[B+w-1]+Q(B+w-1,f-1),p=c[B+w-2]+Q(B+w-1,f-2)+Q(B+w-2,f-1); if(c[B+w]==v){O[f-o]=1;w-=1}else{O[f-o]=0;O[f-o-1]=2;w-=2}}var f=i;if(w==0){O[f-o]=1}else{if(c[B+1]==G){O[f+1-o]=1; O[f-o]=1}else{O[f+1-o]=0;O[f-o]=2}}i+=A;B+=A}L.m7.aaq(a,o,O,e,X,N,!0,E)}if(s){console.log(Date.now()-E,"Matching"); E=Date.now()}var P=e;return[UZIP.adler($,0,$.length),$,o,T,n,Y,u,X,N,O,P]};L.m7.Bv=function($,o,T,s){var E=$.slice(0),e=E.shift(),n=E.shift(),A=E.shift(),u=E.shift(),Y=E.shift(),b=E.shift(),a=E.shift(),w=E.shift(),X=E.shift().slice(0),N=E.shift(),z=E.shift(),i=Date.now(),k=Math.abs(A-o),Q=Math.floor(k/Y),O=new Uint32Array(Y),B=0,G=1e9,v=0,p=0,P=0; for(var c=0;c=65280){z[f+F]--;l++;S(g*o+l,g*A+F)}}}}if(s){console.log(Date.now()-i,"Shifting image pixels"); i=Date.now()}};L.m7.aaq=function($,o,T,s,E,e){var n=0,f=$*o;while(ns*s||G<0||l<0||G>=Q||l>=Q)continue; var v=k[l*Q+G];N+=B*v;z+=c*v}X.a4=Math.atan2(z,N)}}function u(b,a,w,X,N){var z=~~(b+.5),i=~~(a+.5);return T(w,X,z-E,z+E,i-E,i+E)}function Y(b,a,w,X,N){$=X; o=N;if(n.length==0){var z=new L.R.Cp(16200817),O=8,c=0;function i(cv){var P=cv[0]-cv[2],h=cv[1]-cv[3]; return P*P+h*h}function k(){var cv=0,f0=0;while(cv===0)cv=z.get();while(f0===0)f0=z.get();return Math.sqrt(-2*Math.log(cv))*Math.cos(2*Math.PI*f0)}var Q=k,B=[]; while(c!=e){var G=Math.max(-s,Math.min(s,Q()*O)),l=Math.max(-s,Math.min(s,Q()*O)),v=Math.max(-s,Math.min(s,Q()*O)),p=Math.max(-s,Math.min(s,Q()*O)),P=G-v,h=l-p,j=Math.sqrt(P*P+h*h); if(j<3||j>12)continue;n.push(G,l,v,p);c++}}var C=20;for(var V=0;V>>3); d.bI=W;for(var f=0;f>>3]|=(gf>>1,O=Q>>>1,c=Math.round(k/3); if(c!=k/3)throw"e";var B=1/(k*k),G=1.2*(k/9);for(var v=Q+1;v=F||z[f+l]>=F)continue;if(z[f-g-l]>=F||z[f-g]>=F||z[f-g+l]>=F)continue;if(z[f+g-l]>=F||z[f+g]>=F||z[f+g+l]>=F)continue; Y.push({x:~~(p*a.sQ+.5),y:~~(v*a.sQ+.5),a5x:p,aqh:v,qC:b,H:F,ahy:i[f],rZ:G})}}if(n!=null){Y.sort(function(ce,gf){return gf.H-ce.H}); Y=Y.slice(0,n)}return Y;var r=[];for(var f=0;fW.H&&(I.qC==W.qC+1||I.qC==W.qC-1)){var _=W.x-I.x,cN=W.y-I.y;if(_*_+cN*cN<5){q=!1; break}}}if(q)r.push(W)}console.log(Y.length,r.length);return r}return{apz:E}}();L.pw={};L.pw.a2u=function($){var o=$.length,T=L.pw.g_($,!1),E=0,e=1; throw"e";var s=[];for(var f=0;f>>1);if(b.length<10)return null;var a=L.pw.a0L(e[f],e[A],b,2);Y.push([f,A,b,a])}Y.sort(function(p,P){return P[2].length-p[2].length}); if(s)console.log("Matches found",Date.now()-E);E=Date.now();var w=[],X=new UnionFind(T);for(var f=0; f>>1][1]}var v=L.$.lY(k[o]); for(var f=0;fn||V==n&&d>>1;z=i-1}else{z=i=s>>>1}for(var f=0;f>>1;else o[f]=(f&3)==3?N[s-1]:N[s-1]-N[0]}}else console.log(T)};L.Ej={}; L.Ej.gb=function($,o,T,s){var E=Date.now(),e=new Uint32Array(o*T),n=new Uint8Array(o*T),A=[],X=0;for(var u=0; us)continue;for(var k=0;ki){z=B;i=G}}if(i==0)throw"e";L.Ej.a8f($,o,T,a,A[z],n,e);X++}};L.Ej.a8f=function($,o,T,s,E,e,n){L.Ej.a2R($,o,T,s[1],s[2],E[5],e,n,E[0]); E[3]+=s[3];s[3]=0;var A=s[4],u=E[4];for(var Y=0;Y>2]=G.ind}return{Zg:N,fD:w[1]}};L.Ej.xp=function($,o,T){var s=[],E={},e=o-1,n=T-1,A=0,u=new Uint32Array($),Y=[-o-1,-o,-o+1,-1,1,o-1,o,o+1,o+o,2,-o-o,-2,o+o-1,o+o+1,o+2,-o+2,-o-o+1,-o-o-1,-o-2,o-2,o+o+2,-o-o+2-o-o-2,o+o-2]; for(var b=1;b>>2;for(var h=0;h>>1;if(C>65535)throw C;var V=[];for(var f=0; f<1e3+O;f++)V.push([]);var d=[0,1,0,-1,-1,0,1,0],g=Math.min(P,5),S=new Uint32Array(C*6);for(var F=0; F>>R)}var _=Math.min(O,r*l);if(F+g>=P)_=O;while(E!=0){n(V);var cN=V[s].pop(),ce=V[s].pop(),gf=ce>>>16,K=ce&65535,f=gf*Q+K; if(h[f]==65535){var cv=cN*6,f0=f<<2;h[f]=cN;S[cv]+=k[f0];S[cv+1]+=k[f0+1];S[cv+2]+=k[f0+2];S[cv+3]+=K; S[cv+4]+=gf;S[cv+5]++;var i8=gf>>>R;if(gf!=_-1&&h[f+Q]==65535)e(V,gf+1<<16|K,cN,u(k,Q,v,K,gf+1,S,cv)+i8); if(gf!=0&&h[f-Q]==65535)e(V,gf-1<<16|K,cN,u(k,Q,v,K,gf-1,S,cv)+i8);if(K!=0&&h[f-1]==65535)e(V,gf<<16|K-1,cN,u(k,Q,v,K-1,gf,S,cv)+i8); if(K!=Q-1&&h[f+1]==65535)e(V,gf<<16|K+1,cN,u(k,Q,v,K+1,gf,S,cv)+i8)}}if(_!=gf){var b5=(F+g)*p;S.fill(0,b5*6,(b5+p)*6); for(var gf=(F+g-2)*l;gf<_;gf++)for(var K=0;K=b5){h[f]=65535}}}}return{Zg:h,BL:C,Ol:S}}L.Ej.dX=function(k,Q,O,c,B){var G=k.BL,l=Q*O,v=k.Ol,p=k.Zg,P=X(c,p,G,l),h=new UnionFind(G),R=0; for(var j=1;j>>7);B[p]=l=B[p]|P}}return l!=3};function u(k,Q,O,c,B,G,l){var v=(B*Q+c)*4,p=G[l+5],P=1/p,h=k[v]*p-G[l],j=k[v+1]*p-G[l+1],C=k[v+2]*p-G[l+2],V=c*p-G[l+3],d=B*p-G[l+4],m=Math.sqrt(h*h+j*j+C*C),R=Math.sqrt(V*V+d*d); return~~((m+O*R)*P+.5)}function Y(k,Q,O,c){var B=1/k[O+5],G=1/k[c+5],l=k[O]*B-k[c]*G,v=k[O+1]*B-k[c+1]*G,p=k[O+2]*B-k[c+2]*G,P=k[O+3]*B-k[c+3]*G,h=k[O+4]*B-k[c+4]*G,j=Math.sqrt(l*l+v*v+p*p),C=Math.sqrt(P*P+h*h); return~~(j+Q*C+.5)}function b(k,Q,O){var c=L.gc(k,new df(0,0,Q,O)),B=c.rect.d,G=c.rect.w,l=A(c._3,B,G),v=l.Zg,p=Date.now(),P=new Uint16Array(Q*O); P.fill(65535);for(var h=0;h>>4,C=k[p+1]>>>4,V=k[p+2]>>>4; G[P*4400+(j<<8|C<<4|V)]++;G[P*4400+4096]++;G[P*4400+4100+(j<<4|C)]++;G[P*4400+4360+j]++;if(v!=0&&(h=c[f-1])!=P&&a(o[P],h)==-1){o[P].push(h,0); o[h].push(P,0)}if(l!=0&&(h=c[f-Q])!=P&&a(o[P],h)==-1){o[P].push(h,0);o[h].push(P,0)}}for(var f=0;f>>7)}return B}L.Ej.ao5=function(k,Q,O,c,B,G,l){var v=Q*O,p=l[0],o=l[1],P=new UnionFind(c),h=X(B,k,c,v),j=-1,C=!0,V=0; for(var f=0;fO){O=G; Q=B}}return k[Q]}function z(o,k,Q,O){var c=o[Q],B=o[O];w(c,a(c,O));w(B,a(B,Q));for(var f=0;f0)return 1; else if(v<0)return 0}return 0}function a(l,N){var z=new $,i=l,k=N,v=0,p=1,P;z.color=E[N*e+l];z.sign=u(l,N,E,e)==z.color?"+":"-"; while(1){z.BN.push(i,k);if(i>z.Nh)z.Nh=i;if(iz.Jv)z.Jv=k;if(k>1),k+(p-v-1>>1),E,e)==z.color,j=u(i+(v-p-1>>1),k+(p+v-1>>1),E,e)==z.color; if(j&&!h){if(A.SS=="right"||A.SS=="black"&&z.sign=="+"||A.SS=="white"&&z.sign=="-"||A.SS=="majority"&&b(i,k,z.color)||A.SS=="minority"&&!b(i,k,z.color)){P=v; v=-p;p=P}else{P=v;v=p;p=-P}}else if(j){P=v;v=-p;p=P}else if(!h){P=v;v=p;p=-P}}return z}var w=0,X=[]; while(!0){var w=Y(w);if(w==-1)break;var N=Math.floor(w/e),z=a(w-N*e,N);for(var f=0;fA.air)X.push(z)}for(var f=0;f=0;B--){var G=X[B]; if(c.NiG.Nh||c.FnG.Jv)continue;if(!gE.akn(G.BN,c.BN[0]+.5,c.BN[1]+.5))continue; c.parent=B;break}}return X}function s(E,e){function n(v,p,P,h,j){this.x=v;this.y=p;this.Pp=P;this.Qb=h; this.Lw=j}function A(v,J){return(J+v)%J}function u(v,p,P,h){return v*h-P*p}function Y(v,p,P,h){return v*P+p*h}function b(v,p,P){if(v<=P)return v<=p&&p=0&&Z<=1)return Z;else if(I>=0&&I<=1)return I; else return-1}function k(l){var f,v,p;l.Kp=l.BN[0];l.adv=l.BN[1];l.J3=[];var P=l.J3;P.push(new n(0,0,0,0,0)); for(f=0;f=0;f--){if(v[f<<1]!=v[K<<1]&&v[(f<<1)+1]!=v[(K<<1)+1])K=f+1;h[f]=K}for(f=J-1; f>=0;f--){var cv=A(f+1,J)<<1;j[0]=j[1]=j[2]=j[3]=0;p=(3+3*(v[cv]-v[f<<1])+(v[cv+1]-v[(f<<1)+1]))/2;j[p]++; C=0;V=0;d=0;m=0;K=h[f];I=f;while(1){W=0;p=(3+3*Math.sign(v[K*2]-v[I*2])+Math.sign(v[K*2+1]-v[I*2+1]))/2; j[p]++;if(j[0]&&j[1]&&j[2]&&j[3]){P[f]=I;W=1;break}r=v[K*2]-v[f*2];q=v[K*2+1]-v[f*2+1];if(u(C,V,r,q)<0||u(d,m,r,q)>0){break}if(Math.abs(r)<=1&&Math.abs(q)<=1){}else{R=r+(q>=0&&(q>0||r<0)?1:-1); g=q+(r<=0&&(r<0||q<0)?1:-1);if(u(C,V,R,g)>=0){C=R;V=g}R=r+(q<=0&&(q<0||r<0)?1:-1);g=q+(r>=0&&(r>0||q<0)?1:-1); if(u(d,m,R,g)<=0){d=R;m=g}}I=K;K=h[I];if(!b(K,f,I)){break}}if(W==0){S=Math.sign(v[K*2]-v[I*2]);F=Math.sign(v[K*2+1]-v[I*2+1]); r=v[I*2]-v[f*2];q=v[I*2+1]-v[f*2+1];_=u(C,V,r,q);cN=u(C,V,S,F);ce=u(d,m,r,q);gf=u(d,m,S,F);Z=1e7;if(cN<0){Z=Math.floor(_/-cN)}if(gf>0){Z=Math.min(Z,Math.floor(-ce/gf))}P[f]=A(I+Z,J)}}Z=P[J-1]; l.Zv[J-1]=Z;for(f=J-2;f>=0;f--){if(b(f+1,P[f],Z)){Z=P[f]}l.Zv[f]=Z}for(f=J-1;b(A(f+1,J),Z,l.Zv[f]);f--){l.Zv[f]=Z}}function O(l){function v(l,f,p){var J=l.YG,r=l.BN,q=l.J3,W,Z,I,_,cN,h,ce,gf,F,K,cv,f0,i8,b5,iC=0; if(p>=J){p-=J;iC=1}if(iC==0){W=q[p+1].x-q[f].x;Z=q[p+1].y-q[f].y;_=q[p+1].Qb-q[f].Qb;I=q[p+1].Pp-q[f].Pp; cN=q[p+1].Lw-q[f].Lw;h=p+1-f}else{W=q[p+1].x-q[f].x+q[J].x;Z=q[p+1].y-q[f].y+q[J].y;_=q[p+1].Qb-q[f].Qb+q[J].Qb; I=q[p+1].Pp-q[f].Pp+q[J].Pp;cN=q[p+1].Lw-q[f].Lw+q[J].Lw;h=p+1-f+J}cv=(r[f<<1]+r[p<<1])/2-r[0];f0=(r[(f<<1)+1]+r[(p<<1)+1])/2-r[1]; b5=r[p<<1]-r[f<<1];i8=-(r[(p<<1)+1]-r[(f<<1)+1]);ce=(_-2*W*cv)/h+cv*cv;gf=(I-W*f0-Z*cv)/h+cv*f0;F=(cN-2*Z*f0)/h+f0*f0; K=i8*i8*ce+2*i8*b5*gf+b5*b5*F;return Math.sqrt(K)}var f,p,P,h,J=l.YG,j=new Array(J+1),C=new Array(J+1),V=new Array(J),d=new Array(J+1),m=new Array(J+1),R=new Array(J+1),g,S,F; for(f=0;f0;p--){R[p]=f; f=d[f]}R[0]=0;j[0]=0;for(p=1;p<=P;p++){for(f=R[p];f<=m[p];f++){S=-1;for(h=m[p-1];h>=d[f];h--){g=v(l,h,f)+j[h]; if(S<0||g0;p--){f=C[f];l.aeG[p]=f}}function c(l){function v(l,f,g,V,d,an){var J=l.YG,cO=l.J3,bh=0,F; while(g>=J){g-=J;bh+=1}while(f>=J){f-=J;bh-=1}while(g<0){g+=J;bh-=1}while(f<0){f+=J;bh+=1}var bD=cO[g+1].x-cO[f].x+bh*cO[J].x,fq=cO[g+1].y-cO[f].y+bh*cO[J].y,fO=cO[g+1].Qb-cO[f].Qb+bh*cO[J].Qb,g6=cO[g+1].Pp-cO[f].Pp+bh*cO[J].Pp,hM=cO[g+1].Lw-cO[f].Lw+bh*cO[J].Lw,S=g+1-f+bh*J; V[an]=bD/S;V[an+1]=fq/S;var d3=(fO-bD*bD/S)/S,h9=(g6-bD*fq/S)/S,cs=(hM-fq*fq/S)/S,dv=(d3+cs+Math.sqrt((d3-cs)*(d3-cs)+4*h9*h9))/2; d3-=dv;cs-=dv;if(Math.abs(d3)>=Math.abs(cs)){F=Math.sqrt(d3*d3+h9*h9);if(F!=0){d[an]=-h9/F;d[an+1]=d3/F}}else{F=Math.sqrt(cs*cs+h9*h9); if(F!=0){d[an]=-cs/F;d[an+1]=h9/F}}if(F==0){d[an]=d[an+1]=0}}var p=l.rI,P=l.aeG,J=l.YG,h=l.BN,j=l.Kp,C=l.adv,V=new Array(p*2),d=new Array(p*2),m=new Array(p),R=new Array(3),f,g,S,F,Z,I,_,cN,ce,gf,K; l.P2=new o(p);for(f=0;fW[4]){R[0]=-W[1];R[1]=W[0]}else if(W[4]){R[0]=-W[4];R[1]=W[3]}else{R[0]=1; R[1]=0}var r=R[0]*R[0]+R[1]*R[1],q=1/r;R[2]=-R[1]*f0-R[0]*cv;for(F=0;F<3;F++){W[F*3+0]+=R[F]*R[0]*q; W[F*3+1]+=R[F]*R[1]*q;W[F*3+2]+=R[F]*R[2]*q}}Z=Math.abs(i8-cv);I=Math.abs(b5-f0);if(Z<=.5&&I<=.5){l.P2.vQ[f<<1]=i8+j; l.P2.vQ[(f<<1)+1]=b5+C;continue}_=a(W,cv,f0);ce=cv;gf=f0;if(W[0]!=0){for(K=0;K<2;K++){b5=f0-.5+K;i8=-(W[1]*b5+W[2])/W[0]; Z=Math.abs(i8-cv);cN=a(W,i8,b5);if(Z<=.5&&cN<_){_=cN;ce=i8;gf=b5}}}if(W[4]!=0){for(K=0;K<2;K++){i8=cv-.5+K; b5=-(W[3]*i8+W[5])/W[4];I=Math.abs(b5-f0);cN=a(W,i8,b5);if(I<=.5&&cN<_){_=cN;ce=i8;gf=b5}}}for(F=0;F<2; F++){for(S=0;S<2;S++){i8=cv-.5+F;b5=f0-.5+S;cN=a(W,i8,b5);if(cN<_){_=cN;ce=i8;gf=b5}}}l.P2.vQ[f<<1]=ce+j; l.P2.vQ[(f<<1)+1]=gf+C}}function B(l){var v=l.P2.ds,p=l.P2,f,P,h,j,C,V,d,m,R;for(f=0;f1?1-1/j:0;V=V*(1/.75)}else{V=4/3}p.LG[P]=V; var _=3*P<<1;if(V>=e.a3E){p.jX[P]=0;p.Z9[_+0]=p.Z9[_+1]=0;p.Z9[_+2]=q;p.Z9[_+3]=W;p.Z9[_+4]=Z;p.Z9[_+5]=I}else{if(V<.55){V=.55}else if(V>1){V=1}var cN=.5+.5*V; p.jX[P]=1;p.Z9[_]=w(cN,g,q);p.Z9[_+1]=w(cN,S,W);p.Z9[_+2]=w(cN,F,q);p.Z9[_+3]=w(cN,r,W);p.Z9[_+4]=Z; p.Z9[_+5]=I}p.alpha[P]=V;p.KJ[P]=.5}p.aqD=1}function G(l){function v(){this.t2=0;this.bE=0;this.Ev=0; this.l8=0;this.s5=0;this.KR=0;this.rZ=0;this.alpha=0}function p(l,f,g,gT,iz,ce,gf){var h=l.P2.ds,gw=l.P2.Z9,iI=l.P2.vQ; if(f==g)return 1;var g2=f,q=A(f+1,h),bb=A(g2+1,h),g6=iI[f<<1],hM=iI[(f<<1)+1],ir=iI[q<<1],dG=iI[(q<<1)+1],gY=ce[bb]; if(gY==0)return 1;var e6=N(g6-ir,hM-dG);for(g2=bb;g2!=g;g2=bb){var bb=A(g2+1,h),fr=A(g2+2,h),bt=iI[bb<<1],cx=iI[(bb<<1)+1],ci=iI[fr<<1],gv=iI[(fr<<1)+1]; if(ce[bb]!=gY)return 1;if(Math.sign(u(ir-g6,dG-hM,ci-bt,gv-cx))!=gY)return 1;if(Y(ir-g6,dG-hM,ci-bt,gv-cx)=g){W+=gf[h]}var bF=hK-an,fH=h3-cO,dX=e4-an,fk=co-cO,ix=aO-an,bx=cC-cO,ha=u(bF,fH,dX,fk),ca=u(bF,fH,ix,bx),iX=u(dX,fk,ix,bx),dp=ha+iX-ca; if(ca==ha)return 1;var cN=iX/(iX-dp),_=ca/(ca-ha),dd=ca*cN/2;if(dd==0)return 1;var iD=W/dd,Z=2-Math.sqrt(4-iD/.3); gT.bE=w(cN*Z,an,hK);gT.Ev=w(cN*Z,cO,h3);gT.l8=w(_*Z,aO,e4);gT.s5=w(_*Z,cC,co);gT.alpha=Z;gT.KR=cN;gT.rZ=_; hK=gT.bE;h3=gT.Ev;e4=gT.l8;co=gT.s5;gT.t2=0;for(g2=A(f+1,h);g2!=g;g2=bb){bb=A(g2+1,h);var iY=iI[g2<<1],ho=iI[(g2<<1)+1],bt=iI[bb<<1],cx=iI[(bb<<1)+1]; cN=i(hK-an,h3-cO,e4-hK,co-h3,aO-e4,cC-co,bt-iY,cx-ho);if(cN<-.5)return 1;var bN=z(cN,an,hK,e4,aO),it=z(cN,cO,h3,co,cC),e6=N(bt-iY,cx-ho); if(e6==0)return 1;var j4=u(bt-iY,cx-ho,bN-iY,it-ho)/e6;if(Math.abs(j4)>iz)return 1;if(Y(bt-iY,cx-ho,bN-iY,it-ho)<0||Y(iY-bt,ho-cx,bN-bt,it-cx)<0){return 1}gT.t2+=j4*j4}for(g2=f; g2!=g;g2=bb){bb=A(g2+1,h);var gu=g2*3+2<<1,ak=bb*3+2<<1,gy=gw[gu],fi=gw[gu+1],hN=gw[ak],b4=gw[ak+1]; cN=i(hK-an,h3-cO,e4-hK,co-h3,aO-e4,cC-co,hN-gy,b4-fi);if(cN<-.5)return 1;var bN=z(cN,an,hK,e4,aO),it=z(cN,cO,h3,co,cC),e6=N(hN-gy,b4-fi); if(e6==0)return 1;var j4=u(hN-gy,b4-fi,bN-gy,it-fi)/e6,eN=u(hN-gy,b4-fi,iI[bb<<1]-gy,iI[(bb<<1)+1]-fi)/e6; eN*=.75*l.P2.alpha[bb];if(eN<0){j4=-j4;eN=-eN}if(j4=0;f--){S=p(l,f,A(g,h),F,e.apM,ce,gf); if(S){break}if(d[g]>d[f]+1||d[g]==d[f]+1&&V[g]>V[f]+F.t2){C[g]=f;V[g]=V[f]+F.t2;d[g]=d[f]+1;m[g]=F;F=new v}}}R=d[h]; I=new o(R);_=new Array(R);cN=new Array(R);g=h;for(f=R-1;f>=0;f--){var cs=A(g,h),dv=f*3+0<<1,ec=cs*3+0<<1; if(C[g]==g-1){I.jX[f]=P.jX[cs];I.Z9[dv]=P.Z9[ec];I.Z9[dv+1]=P.Z9[ec+1];I.Z9[dv+2]=P.Z9[ec+2];I.Z9[dv+3]=P.Z9[ec+3]; I.Z9[dv+4]=P.Z9[ec+4];I.Z9[dv+5]=P.Z9[ec+5];I.vQ[f<<1]=P.vQ[cs<<1];I.vQ[(f<<1)+1]=P.vQ[(cs<<1)+1];I.alpha[f]=P.alpha[cs]; I.LG[f]=P.LG[cs];I.KJ[f]=P.KJ[cs];_[f]=cN[f]=1}else{I.jX[f]="CURVE";I.Z9[dv]=m[g].bE;I.Z9[dv+1]=m[g].Ev; I.Z9[dv+2]=m[g].l8;I.Z9[dv+3]=m[g].s5;I.Z9[dv+4]=P.Z9[ec+4];I.Z9[dv+5]=P.Z9[ec+5];I.vQ[f<<1]=w(m[g].rZ,P.Z9[ec+4],j[cs<<1]); I.vQ[(f<<1)+1]=w(m[g].rZ,P.Z9[ec+5],j[(cs<<1)+1]);I.alpha[f]=m[g].alpha;I.LG[f]=m[g].alpha;_[f]=m[g].rZ; cN[f]=m[g].KR}g=C[g]}for(f=0;f"; for(var f=0;f>>24&255)==0)continue;u+=">0&255,w=Y>>8&255,X=Y>>16&255,Y="rgb("+a+","+w+","+X+")";u+="\" fill=\""+Y+"\" fill-rule=\"evenodd\"/>"}u+=""; return u};gE.akn=function($,o,T){var J=$.length>>1,s,E=$[2*J-3]-T,e=$[2*J-2]-o,n=$[2*J-1]-T,A=n>E,u=0; for(var f=0;fE}for(var f=0;f0&&n>0)continue;if(s<0&&e<0)continue;if(E==n&&Math.min(s,e)<=0)return!0; if(E==n)continue;var Y=s+(e-s)*-E/(n-E);if(Y==0)return!0;if(Y>0)u++;if(E==0&&A&&n>E)u--;if(E==0&&!A&&nE}return(u&1)==1};gE.fill=function($,o,T,s){var E=o[$],e=[$],n=0;while(no.getParameter(o.MAX_TEXTURE_SIZE)){y.re=!1;alert("Disabling WebGL")}}; y.n0=function($,o){return new Float32Array([($.x-o.x)/o.d,($.y-o.y)/o.w,$.d/o.d,$.w/o.w])};y.iZ=function(){return this.S}; y.U0=function($,o){var T=y.V8;T.bindFramebuffer(T.FRAMEBUFFER,y.JA);T.framebufferTexture2D(T.FRAMEBUFFER,T.COLOR_ATTACHMENT0,T.TEXTURE_2D,$.ek,0); T.viewport(0,0,$.d,$.w);if(o){T.enable(T.SCISSOR_TEST);T.scissor(o.x,o.y,o.d,o.w)}else T.disable(T.SCISSOR_TEST)}; y.e1=function($,o,T){if(T)throw"error";var s=y.V8;s.disable(s.SCISSOR_TEST);s.bindFramebuffer(s.FRAMEBUFFER,null); s.viewport(0,0,$,o);if(T){s.enable(s.SCISSOR_TEST);s.scissor(T.x,T.y,Math.round(T.d),Math.round(T.w))}else s.disable(s.SCISSOR_TEST)}; y.clear=function(){var $=y.V8;$.clearColor(0,0,0,0);$.clear($.COLOR_BUFFER_BIT)};y.C_=function($,o){if(o==null)o=0; var T=(o>>>0&255)==0,s=(o>>>8&255)==0,E=(o>>>16&255)==0,e=(o>>>24&255)==0,n=($>>>0&255)*(1/255),A=($>>>8&255)*(1/255),u=($>>>16&255)*(1/255),Y=($>>>24&255)*(1/255),b=y.V8; b.colorMask(T,s,E,e);b.clearColor(n,A,u,Y);b.clear(b.COLOR_BUFFER_BIT);b.colorMask(!0,!0,!0,!0)};y.Yx=function($,o,T,s,E){var e=o.Sr(s); if(E)e=e.Sr(E);if(e.p4())return;var n=y.V8;y.U0($);n.bindTexture(n.TEXTURE_2D,T.ek);n.copyTexSubImage2D(n.TEXTURE_2D,0,e.x-s.x,e.y-s.y,e.x-o.x,e.y-o.y,e.d,e.w)}; y.lK=function(f,$,o){var T=y.Tr[f];if(T==null||T.d!=$||T.w!=o){if(T)T.delete();T=new y.uR($,o)}y.Tr[f]=T; return T};y.Tr=[];y._c=function(){this.lG=null;this.D5=null};y._c.Yh=null;y._c.prototype.Yu=function($){if(this.D5)return; this.D5={};var o=y.V8,T=this.lG,s=this.D5;for(var f=0;f<$.length;f++){var E=$[f];s[E]=o.getUniformLocation(T,E)}}; y._c.prototype.JK=function(){};y._c.prototype.mV=function($){var o=y.V8;for(var f=0;f<$.length;f+=2){o.uniform1i($[f],f>>>1); o.activeTexture(o["TEXTURE"+(f>>>1)]);o.bindTexture(o.TEXTURE_2D,$[f+1])}o.activeTexture(o.TEXTURE0)}; y._c.prototype.jq=function($,o){var T=y.V8,s=T.createShader(T.FRAGMENT_SHADER);T.shaderSource(s,$);T.compileShader(s); if(!T.getShaderParameter(s,T.COMPILE_STATUS))console.log(T.getShaderInfoLog(s));var E=T.createShader(T.VERTEX_SHADER); T.shaderSource(E,o);T.compileShader(E);if(!T.getShaderParameter(E,T.COMPILE_STATUS))console.log(T.getShaderInfoLog(E)); var e=T.createProgram();T.attachShader(e,E);T.attachShader(e,s);T.linkProgram(e);if(!T.getProgramParameter(e,T.LINK_STATUS))console.log("Could not initialise shaders"); this.lG=e};y._c.prototype.BP=function(){if(y._c.Yh!=this){y.V8.useProgram(this.lG);y._c.Yh=this}};y.Au=function($,o){y.iT++; y.H6+=$*o;if(y.KG)console.log("GL.Channels instances: "+y.iT+", memory: "+y.H6);var T=y.V8;this.d=$; this.w=o;this.ek=T.createTexture();this.Ji=null;this.DA(this.ek,$,o)};y.Au.prototype.DA=function($,o,T){var s=y.V8; s.bindTexture(s.TEXTURE_2D,$);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.NEAREST);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.NEAREST); s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE); s.texImage2D(s.TEXTURE_2D,0,s.ALPHA,o,T,0,s.ALPHA,s.UNSIGNED_BYTE,null)};y.Au.prototype.set=function($){var o=y.V8; o.bindTexture(o.TEXTURE_2D,this.ek);o.pixelStorei(o.UNPACK_ALIGNMENT,1);o.texImage2D(o.TEXTURE_2D,0,o.ALPHA,this.d,this.w,0,o.ALPHA,o.UNSIGNED_BYTE,$); o.pixelStorei(o.UNPACK_ALIGNMENT,4)};y.Au.prototype.delete=function(){var $=y.V8;if(this.ek){$.deleteTexture(this.ek); y.iT--;y.H6-=this.d*this.w}if(y.KG)if(y.KG)console.log("GL.Channels instances: "+y.iT+", memory: "+y.H6*4)}; y.iT=0;y.uR=function($,o,T){if(T==null)T=!1;y.iT++;y.H6+=$*o*4;if(y.KG)console.log("GL.Channels instances: "+y.iT+", memory: "+y.H6); var s=y.V8;this.a0M=T;this.d=$;this.w=o;this.ek=s.createTexture();this.Ji=null;this.DA(this.ek,$,o)}; y.uR.prototype.set=function($,o){var T=y.V8;T.disable(T.SCISSOR_TEST);T.bindTexture(T.TEXTURE_2D,this.ek); if($==null||$ instanceof Uint8Array){var s=this.d*this.w;if(o==null||o.Y()*10>s)T.texImage2D(T.TEXTURE_2D,0,T.RGBA,this.d,this.w,0,T.RGBA,T.UNSIGNED_BYTE,$); else{var E=L.G(o.Y()*4);L.h9($,new df(0,0,this.d,this.w),E,o);T.texSubImage2D(T.TEXTURE_2D,0,o.x,o.y,o.d,o.w,T.RGBA,T.UNSIGNED_BYTE,E)}}else T.texImage2D(T.TEXTURE_2D,0,T.RGBA,T.RGBA,T.UNSIGNED_BYTE,$)}; y.uR.prototype.get=function($){var o=y.V8;y.U0(this);o.readPixels(0,0,this.d,this.w,o.RGBA,o.UNSIGNED_BYTE,$)}; y.uR.prototype.bv=function($){if($.p4())return;var o=y.V8;if(this.Ji==null){this.Ji=o.createTexture(); this.DA(this.Ji,this.d,this.w);y.iT++;y.H6+=this.d*this.w*4}o.bindFramebuffer(o.FRAMEBUFFER,y.JA);o.bindTexture(o.TEXTURE_2D,this.Ji); if($){var T=Math.max($.x,0),s=Math.max($.y,0);o.copyTexSubImage2D(o.TEXTURE_2D,0,T,s,T,s,$.d,$.w)}else o.copyTexImage2D(o.TEXTURE_2D,0,o.RGBA,0,0,this.d,this.w,0)}; y.uR.prototype.DA=function($,o,T){var s=y.V8;s.bindTexture(s.TEXTURE_2D,$);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,this.a0M?s.LINEAR:s.NEAREST); s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.NEAREST);s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE); s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE);s.texImage2D(s.TEXTURE_2D,0,s.RGBA,o,T,0,s.RGBA,s.UNSIGNED_BYTE,null)}; y.uR.prototype.delete=function(){var $=y.V8;if(this.ek){$.deleteTexture(this.ek);y.iT--;y.H6-=this.d*this.w*4}if(this.Ji){$.deleteTexture(this.Ji); y.iT--;y.H6-=this.d*this.w*4}if(y.KG)if(y.KG)console.log("GL.Channels instances: "+y.iT+", memory: "+y.H6)}; y.uR.prototype.clone=function(){var $=y.V8,o=new y.uR(this.d,this.w);y.U0(this);$.bindTexture($.TEXTURE_2D,o.ek); $.copyTexImage2D($.TEXTURE_2D,0,$.RGBA,0,0,this.d,this.w,0);return o};y.KZ={ac8:" 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))) ); } ",a72:" vec3 ocddg(vec3 a, vec3 b, float f) { return mix( min(ONE3, b/(ONE3 - a*f)) , ONE3 , vec3(equal(a*f,ONE3 )) ); } ",oa:"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) ;",XT:" 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}",ca:" 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 )); } ",M3:"float sat(vec3 c) { return max(c.x,max(c.y,c.z)) - min(c.x,min(c.y,c.z)); }",Hl:"float lum(vec3 c) { return dot(c, vec3(0.3,0.59,0.11)); } ",XQ:"vec3 D (vec3 x) { return mix( sqrt(x), ((16.0*x-12.0)*x+4.0)*x , vec3(lessThanEqual(x,QUAR3)) ); }",ae8:"float midSat (vec3 v, float s) { return ((v.y-v.z)*s)/(v.x-v.z); }",jn:"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.rc.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}",amL:"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}",nf:"vec3 setLum (vec3 c, float l) { return clipCol(c+l-lum(c)); } ",rF:"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); }",QZ:"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); }",AP:"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); } ",yK:"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}",sY:"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); }",ag:"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); }",l1:"\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 = ((L1.0?1.0:mi);\t\t}"}; y.aT={Ao:{},L1:"\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}"}; y.aT.Ze=function($,o){var T=dq.Na,s=[T.sG,T._k,T.OV,T.g5,T.x6,T.TW,T.HK,T.jM].indexOf($.type),E=y.aT.Ao[$.type]; if(E==null)E=y.aT.Ao[$.type]=new y.Ao[s];E.BP();E.JK(o,$);y.V8.drawArrays(y.V8.TRIANGLES,0,6)};y.Ao=[]; y.Ao[0]=function(){y._c.call(this);this.Ph={};var $="\t\t\tprecision mediump float;\t\t\t"+y.KZ.Hl+"\t\t\t"+y.KZ.oa+"\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.jq($,y.aT.L1)};y.Ao[0].prototype=new y._c;y.Ao[0].prototype.JK=function($,o){var T={i:o.tV,m:o.wF,P:o._6,Ca:L.G(o.tV.length)},s=T.i.length; if(this.Ph["m"+s]==null){this.Ph["m"+s]={adz:new y.uR(s,1),_3:L.G(s*4)}}var E=this.Ph["m"+s];L.dy(T,E._3,0); var e=E.adz;e.set(E._3);this.Yu(["source","map","toGray","presLum"]);var n=y.V8,A=this.D5;n.uniform1f(A.toGray,o.ZA?1:0); n.uniform1f(A.presLum,o.He?1:0);this.mV([A.source,$,A.map,e.ek])};y.Ao[1]=function(){y._c.call(this); this.aoF=new y.uR(256,1);this.a8F=L.G(256*4);var $="\t\t\t\tprecision mediump float;\t\t\t\t"+y.KZ.yK+"\t\t\t\t"+y.KZ.QZ+"\t\t\t\t"+y.KZ.AP+"\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.00.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.jq($,y.aT.L1)};y.Ao[1].prototype=new y._c;y.Ao[1].prototype.JK=function($,o){L.dy({i:o.a74,m:o.$C,P:o.a61,Ca:L.G(256)},this.a8F); this.aoF.set(this.a8F);this.Yu(["source","map","cfa","cfb","colorize"]);var T=y.V8,s=this.D5;T.uniform1f(s.cfa,o.aa8); T.uniform1f(s.cfb,o.HD);T.uniform1i(s.colorize,o.aku);this.mV([s.source,$,s.map,this.aoF.ek])};y.Ao[2]=function(){y._c.call(this); var $="\t\t\tprecision mediump float;\t\t\t"+y.KZ.yK+"\t\t\t"+y.KZ.sY+"\t\t\t"+y.KZ.ag+"\t\t\t"+y.KZ.QZ+"\t\t\t"+y.KZ.AP+"\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 = (h2OI;5g7:@5nVPLIGeVMX`|njge-'&-$V&)/$BbHB4D%GNx`KSI=_f_menp%E+%vwKB4&'XQY``edhootpjxp&%*'vhxY{#>5HINMDXX]YnVW",bx:0,eJ:1,aY:2,iz:3}; y.filter.Ze=function($,o){var T=y.filter,s=[T.bx,T.eJ,T.aY,T.iz].indexOf($.type),E=y.filter.El[$.type]; if(E==null)E=y.filter.El[$.type]=new y.El[s];E.BP();E.JK(o,$);y.V8.drawArrays(y.V8.TRIANGLES,0,6)};y.El=[0,0,0,0,0,0,0]; y.El[3]=function(){y._c.call(this);var $="1%* !*709;O@;=ETOUgQZ`Uk5rnllx~|2)y)/.*:\\qPGFOOCH!^ZXXdjh}wij<-y+~T2.,,8>{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\\RRiYLP^}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>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]'>S04}M?H'VV\\b0i\\hq=#"; this.jq(H.Xe($),H.Xe(y.filter.L1))};y.El[3].prototype=new y._c;y.El[3].prototype.JK=function($,o){this.Yu("source iwh tdep rrad spec nois poly0 poly1".split(" ")); var T=y.V8,s=this.D5;T.uniform2fv(s.iwh,o.Ip);T.uniform1f(s.tdep,o.aqY);T.uniform1f(s.rrad,o.aoG);T.uniform2fv(s.spec,o.agx); T.uniform3fv(s.nois,o.aby);T.uniformMatrix4fv(s.poly0,!1,o.an3);T.uniformMatrix4fv(s.poly1,!1,o.aq2); this.mV([s.source,$]);var E=T.LINEAR;T.activeTexture(T.TEXTURE0);T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MIN_FILTER,E); T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MAG_FILTER,E);T.activeTexture(T.TEXTURE0)};y.El[0]=function(){y._c.call(this); var $="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;^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~-({6V5g7:@5\\`QEzbc"; this.jq(H.Xe($),H.Xe(y.filter.L1))};y.El[0].prototype=new y._c;y.El[0].prototype.JK=function($,o){this.Yu(["source","iwh","ld","shine"]); var T=y.V8,s=this.D5;T.uniform2fv(s.iwh,o.Ip);T.uniform3fv(s.ld,o.a70);T.uniform1f(s.shine,o.a58);this.mV([s.source,$,s.tang,o.qY])}; y.El[1]=function(){y._c.call(this);var $="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}2PpV@IORXp\\w-tn`a3$u|]0P6*I.3`H2;A6LZQqt$]V^z'**/+@(\"stF7}M@`F-LlRLXf^DWQ^b]Yv$|hdyq4r\")@,L:MQ>^a_:IPgSsbtxe&)$9!vl~##\"6,0,7OP\\\\acjhmi~fglfb_]{lcnv3%!}{C=& qrF5{++AaG?3IHLLBq'm\\[ddX]'}tGvy t?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.jq(H.Xe($),H.Xe(y.filter.L1))};y.El[2].prototype=new y._c;y.El[2].prototype.JK=function($,o){this.Yu(["source","tang","iwh","sigma","expo"]); var T=y.V8,s=this.D5;T.uniform2fv(s.iwh,o.Ip);T.uniform1f(s.sigma,o.a6p);T.uniform1f(s.expo,o.a7X);this.mV([s.source,$,s.tang,o.qY]); var E=T.LINEAR;T.activeTexture(T.TEXTURE0);T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MIN_FILTER,E);T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MAG_FILTER,E); T.activeTexture(T.TEXTURE0)};y.R={};y.R.Gd={};y.R.ai=null;y.R.dE=null;y.R._$=null;y.R.vn=function($,o,T,s,E,e,n,A){if(A==null)A=fW.gs(); if("idiv,lbrn,div ,lddg,vLit,lLit,hMix,diff".split(",").indexOf($)==-1){n=n*A.fill;A.fill=1;A.style=!1}var u=$+(A.Kf?"1":""); if(y.R.Gd[u]==null)y.R.Gd[u]=new y.R.bh($,A.Kf!=null);var Y=y.R.Gd[u],b=T.Sr(E).Sr(e);b.offset(-E.x,-E.y); if(b.p4())return;var a=y.V8;y.U0(s,b);s.bv(b);Y.BP();Y.JK(o.ek,s.Ji,y.n0(T,E),n,A.fill,A.style?1:0,A.xX?1:0,A.Kf?new Float32Array(A.Kf):null); a.drawArrays(a.TRIANGLES,0,6)};y.R.J4=function($,o,T,s,E,e,n,A,u,Y,b){if(y.R.ai==null)y.R.ai=new y.R.aL(!0,!0); if(y.R.dE==null)y.R.dE=new y.R.aL(!0,!1);if(y.R._$==null)y.R._$=new y.R.aL(!1,!0);var a=Y?1:0,w=$?E?y.R.ai:y.R.dE:y.R._$,X=new Float32Array(b?[b[0],b[1],b[2],1]:[1,1,1,1]),N=o?o.Sr(s).Sr(A):s.Sr(A); if(N.p4())return;N.offset(-s.x,-s.y);var z=y.V8;y.U0(T,N);T.bv(N);w.BP();if($==null)w.JK(null,T.Ji,E.ek,y.n0(s,s),y.n0(e,s),n/255,u,a,X); else if(E)w.JK($.ek,T.Ji,E.ek,y.n0(o,s),y.n0(e,s),n/255,u,a,X);else w.JK($.ek,T.Ji,null,y.n0(o,s),null,n/255,u,a,X); z.drawArrays(z.TRIANGLES,0,6)};y.R.agI=function($,o,T){if(y.R.amA==null)y.R.amA=new y.R.EY;var s=y.R.amA,E=new df(0,0,$.d,$.w),e=y.V8; y.U0(o);o.bv(E);s.BP();s.JK(E,$.ek,o.Ji,T.ek);e.drawArrays(e.TRIANGLES,0,6)};y.R.AE={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 );",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) ); "}; y.R.bh=function($,o){y._c.call(this);var T="\t\t\tprecision mediump float;\t\t\t"+y.KZ.oa+"\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"+(o?"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"+y.KZ.M3+"\t\t\t"+y.KZ.Hl+"\t\t\t"+y.KZ.XQ+"\t\t\t"+y.KZ.ac8+"\t\t\t"+y.KZ.a72+"\t\t\t"+y.KZ.ae8+"\t\t\t"+y.KZ.jn+"\t\t\t"+y.KZ.amL+"\t\t\t"+y.KZ.nf+"\t\t\t"+y.KZ.hash+"\t\t\t"+(o?y.KZ.Lr:"")+"\t\t\t\t\t\tvec3 BB(vec3 a, vec3 b, float f) { "+y.R.AE[$]+" } \t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = texture2D(source, sCoord);",s="\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($=="diss")T+="\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\t\tfloat as = (keepBGA + (1.0-keepBGA)*src.w) * alpha, at = keepBGA + (1.0-keepBGA)*tgt.w; \t\t\t\t\t"+(o?" 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.jq(T,s)};y.R.bh.prototype=new y._c;y.R.bh.prototype.JK=function($,o,T,s,E,e,n,A){this.Yu("srct alpha source target fill style keepBGA blIf".split(" ")); var u=y.V8,Y=this.D5;u.uniform4fv(Y.srct,T);u.uniform1f(Y.alpha,s);u.uniform1f(Y.fill,E);u.uniform1f(Y.style,e); u.uniform1f(Y.keepBGA,n);if(A)u.uniform4fv(Y.blIf,A);this.mV([Y.source,$,Y.target,o])};y.R.aL=function($,o){y._c.call(this); this.acq=$;this.fE=o;var T="\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"+y.KZ.rF+"\t\t\t"+y.KZ.hash+"\t\t\t\t\t\tvoid main(void) {\t\t\t\tvec4 tgt = texture2D(target, tCoord);\t\t\t\tvec4 src = "+($?"texture2D(source, sCoord)":"vec4(0.0)")+"; \t\t\t\tfloat wg = awg "+(o?"* (in01(wCoord) ? texture2D(weight, wCoord).w : wcolor)":"")+";\t\t\t\t"+($?"":"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 = "+(o?"nc":"cswitch*nc + (1.0- cswitch)*tgt")+"; \t\t\t}",s="\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.jq(T,s)};y.R.aL.prototype=new y._c;y.R.aL.prototype.JK=function($,o,T,s,E,e,n,A,u){if(this.fE)this.Yu("srct wrct wcolor awg dissv source target weight cswitch".split(" ")); else this.Yu("srct awg dissv source target cswitch".split(" "));var Y=y.V8,b=this.D5;Y.uniform4fv(b.srct,s); if(this.fE){Y.uniform4fv(b.wrct,E);Y.uniform1f(b.wcolor,e)}else{Y.uniform4fv(b.cswitch,u)}Y.uniform1f(b.awg,n); Y.uniform1f(b.dissv,A);var a=[b.source,$,b.target,o];if(this.fE)a.push(b.weight,T);this.mV(a)};y.R.EY=function(){y._c.call(this); var $="\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}",o="\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.jq($,o)};y.R.EY.prototype=new y._c;y.R.EY.prototype.JK=function($,o,T,s){this.Yu(["rct","prev","next","alpha"]); var E=y.V8,e=this.D5;E.uniform4fv(e.rct,[0,0,1,1]);this.mV([e.prev,o,e.next,T,e.alpha,s])};var D={}; D.wB=function($,o,T){this.name=$;this.id=o;this.YO=null;if(T!=null)this.QY=T};D.wB.prototype.A2=function($,o,T,s,E){}; D.wB.prototype.enable=function($,o,T,s,E,e){var n=new x(H.E.Q,!0);n.data={e:H.V.bl,j$:"default"};o.J(n)}; D.wB.prototype.disable=function($,o,T,s,E){};D.wB.prototype.Fc=function($,o,T,s,E){return!1};D.wB.prototype.iO=function($,o,T,s,E){}; D.wB.prototype.J7=function($,o,T,s,E){};D.wB.prototype.ZS=function($,o,T,s,E){};D.wB.prototype.yg=function($,o,T,s,E){}; D.wB.prototype.oW=function($,o,T,s,E){};D.wB.prototype.Vb=function($,o,T,s){};D.wB.prototype.nv=function($,o,T,s){}; D.wB.prototype.wx=function($,o){};D.wB.prototype.OK=function($,o){};D.wB.prototype.UR=function($,o,T,s,E){}; D.wB.prototype.YE=function($,o){};D.wB.prototype.Ty=function($,o){return!1};D.wB.prototype.ut=function($,o){return!1}; D.wB.prototype.xQ=function(){return!1};D.wB.prototype.fn=function($,o){return!0};D.wB.prototype.zp=function(){return null}; D.wB.prototype.GO=function($,o,T){};D.wB.prototype.ht=function(){return!1};D.wB.prototype.nM=function($,o,T,s){}; D.wB.prototype.track=function($){var o=new x(H.E.b0,!0);o.data=$;$.r5=!0;this.YO.J(o)};D.wB.C9=function($,o,T,s,E){D.wB.XX($,o,[aX.get([12,41]).charAt(0)+": "+L.BG.at(T.d,s.fG,E,s.d,!0),aX.get([12,42]).charAt(0)+": "+L.BG.at(T.w,s.fG,E,s.w,!0)],s)}; D.wB.XX=function($,o,T,s){var E=14,e=130,n=T.length*17+8,A=new df($,o-n,e,n),u=D.wB.nV;if(u==null)u=D.wB.nV=document.createElement("canvas"); u.width=e;u.height=n;var Y=u.getContext("2d");Y.fillStyle="rgba(0,0,1,1)";Y.fillRect(0,0,e,n);Y.font=E+"px monospace"; Y.fillStyle="rgba(255,255,255,1)";for(var f=0;fMath.abs(n); if(Y&&s[2]){var b=Math.round(2*e/E);A+=b;T.x-=e-.5*b*E}if(!Y&&!s[2]&&u!=-1){var b=Math.round(.25*n); u+=b;T.y-=n-4*b}A=Math.max(1,A);u=s[1]==-1?-1:Math.max(0,Math.min(100,u));var a=s[3];a.Brsh.v.Dmtr.v.val=A; if(u!=-1)a.Brsh.v.Hrdn.v.val=u;this.aU=[A,u,Y,a,T];var w=ih.Ce(a,o.n_.Ou,E),X=w[1];X.x=Math.round(this.Gh.x-X.d/2); X.y=Math.round(this.Gh.y-X.w/2);$.n.nT=[w];var N=$.C.VD(this.Gh.x,this.Gh.y);$.n.Z_={Tw:[],$M:[N.x-A/2,N.y,N.x+A/2,N.y]}; if(u!=-1)$.n.Z_.$M.push(N.x+50/E,N.y-u/2,N.x+50/E,N.y+u/2);$.Cd=!0};D.x5.prototype.oW=function($,o,T,s,E){if(this.id==D.Od)return; if(this.Gh){this.Gh=null;this.SD(JSON.parse(JSON.stringify(this.aU[3])));$.n.nT=[];$.n.Z_=null;$.Cd=!0; return}var e=new x(H.E.Q,!0);e.data={e:H.V.Hh,U:this.id,acn:"showBrushOpts",ma:new aY(E.uT+4,E.$T)}; o.J(e)};D.x5.prototype.SD=function($){var o=new x(H.E.Q,!0);o.data={e:H.V.uY,M9:gr.b$,On:$};this.caller.J(o)}; D.x5.V0=function($,o,T,s,E){if($==null)$="FrgC";if(o==null)o="norm";if(T==null)T=1;if(E==null)E=!1;var e={classID:"Fl",Usng:{t:"enum",v:{FlCn:$}},Opct:{t:"UntF",v:{type:"#Prc",val:Math.round(T*100)}},PrsT:{t:"bool",v:E},Md:{t:"enum",v:{BlnM:hI.$j(o)}}}; if($=="Clr")e.Clr={t:"Objc",v:s};if($=="contentAware")e.contentAwareColorAdaptationFill={t:"bool",v:!0}; return{Wk:"fill",bI:e}};D.x5.prototype.A2=function($,o,T,s,E){this.YO=o;var e=T.el.length;if(e==0&&!T.Jt())return; var n=e!=0?-1-T.el[0]:T.D[0],A=T.u[n];if($.e=="fromAction"){var u=$.xU,Y=u.bI;if(u.Wk=="fill"){var b=Y.PrsT?Y.PrsT.v:!1,a=A.add.lspf,z; if(b){A.add.lspf=a==null?1:a|1}var w=(Y.Opct?Y.Opct.v.val:100)/100,X=Y.Md?hI.VB(Y.Md.v.BlnM):"norm",N=Y.Usng.v.FlCn; if(N=="contentAware"){if(T.Z==null){alert("Select an area to heal first.");return}if(!T.Jt())return; this.gK(T);this.GX(T,0);var i=T.Z,k=L.G(i.rect.Y()*4);L.aM(i.channel,k,3);this.o7(T,"sheal",k,i.rect,i.rect); this.T(T,i.rect);this.finish(T,i.rect)}else{if(N=="FrgC")z=E.z4;else if(N=="BckC")z=E.GR;else if(N=="Blck")z=0; else if(N=="Wht")z=16777215;else if(N=="Gry")z=8421504;else if(N=="Clr"){var Q=L.h.Qc(Y.Clr.v);z=Q.i<<16|Q.m<<8|Q.P}var O=z>>16&255,c=z>>8&255,B=z>>0&255; this.Y3(T,A,T.Z,O,c,B,Math.round(255*w),X,[2,3])}if(b){A.add.lspf=a==null?0:a}}else if(u.Wk=="delete"){var G=n<0?1:A.dQ,i=T.Z,h; if(i==null)return;var l=n<0?T.iy[-n-1]:G<=0?null:G==1?A.yy():A.DE(T)._,v=G<=0?A.rect:l.rect,p=G<=0?i.rect.Sr(v):i.rect.clone(); if(p.p4())return;var P=p.Y();if(G<=0){h=L.G(P*4);L.h9(A.buffer,A.rect,h,p)}else{h=L.G(P);l.extend(p); L.pg(l.channel,l.rect,h,p)}if(0<=n&&A.jx(T,i)){if(G<=0){L.wr(h,0);L.h9(A._I.UK,A._I.Ic,h,p)}else{h.fill(255); L.pg(A._I.UK,A._I.Ic,h,p)}}else{if(G<=0){var j=L.G(h.length>>2);L.Ge(h,j,3);L.R._b(L.Ke(i.rect.Y()),i.rect,j,p,i.channel,p,1); L.aM(j,h,3)}else{var C=L.G(i.rect.Y()),O=E.GR>>>16&255,c=E.GR>>8&255,B=E.GR>>0&255;C.fill(Math.round(L.DB(O,c,B))); L.R._b(C,i.rect,h,p,i.channel,p,1)}}this.Ws(T,!0,[2,2],n,G,p,h)}}if($.e=="stroke"){var V=$.a2k,i=T.Z; if(i==null){i={rect:A.rect.clone(),channel:L.G(A.rect.Y())};L.Ge(A.buffer,i.channel,3)}var d=fW.nl(V),m=D.NK.Gr(i,Math.ceil(d[0]),Math.ceil(d[1])),z=L.h.Qc(V.Clr.v),O=Math.round(z.i),c=Math.round(z.m),B=Math.round(z.P); this.Y3(T,A,m,O,c,B,Math.round(255*V.Opct.v.val/100),hI.VB(V.Md.v.BlnM),[14,9])}if($.e=="fillBMP"){this.VW(T,A,T.Z,$.Qn,$._6,$.U1)}if($.e=="draw"){var R=$.jB,g=R.rect; this.gK(T);var S=T.u[T.D[0]];if($.aix&&S&&S.dQ<=0&&T.el.length==0){g=cf.kz.wk(R,T);S.buffer=R.buffer.slice(0); S.rect=g.clone()}else{var F=this.Em.bmode;this.Em.bmode="norm";this.o7(T,"draw",R.buffer,g,g.Sr(new df(0,0,T.d,T.w))); this.Em.bmode=F}this.T(T,g);T.sr=!0;this.finish(T,g,$.U1,$.aix)}};D.x5.prototype.Y3=function($,o,T,s,E,e,n,A,u){var Y=T==null?new df(0,0,$.d,$.w):T.rect,b=n<<24|e<<16|E<<8|s<<0,a=L.G(Y.Y()*4); L.wr(a,b);this.VW($,o,T,a,A,u)};D.x5.prototype.VW=function($,o,T,s,E,e){var n=$.el.length!=0?-1-$.el[0]:$.D[0],A=n<0?1:o.dQ,u=n<0?$.iy[-1-n]:A<=0?null:A==1?o.yy():o.DE($)._,Y=A<=0?o.rect:u.rect,b=T==null?new df(0,0,$.d,$.w):T.rect,a=T==null?L.sq($.d*$.w):T.channel,w=b.Y(),X,N=null; if(A<=0){X=L.G(w*4);L.h9(o.buffer,o.rect,X,b)}else{X=L.G(w);u.extend(b);L.pg(u.channel,u.rect,X,b)}if(T!=null)L.EL(a,s); if(A>0){N=L.G(w);L.h$(s,N)}if(0<=n&&T&&o.jx($,T)){var z=o._I.YS,i=o._I.YS.slice(0);if(A<=0)L.w0(s,i); else L.w0(N,i);var k=new dt([2,3],this);k.data={e:"drawtemp",c:$.D[0],W5:A,ae_:z,ag4:i};$.g4(k);this.wx(k.data,$)}else{if(A<=0){var Q; if(o.iQ(0)){Q=L.G(b.Y());L.Ge(X,Q,3)}L.R.xE(E,s,b,X,b,b,1);if(o.iQ(0))L.aM(Q,X,3)}else L.R._b(N,b,X,b,a,b,1); this.Ws($,!0,e,n,A,b,X)}};D.x5.prototype.Ty=function($){if(dN.__.indexOf($)!=-1)return!0;return!1};D.x5.prototype.Vb=function($,o,T,s){var E=this.Em.brush,e=s.L(dN.BJ),n=e!=this.rJ,A=D.x5.Vd(E,s); if(A!=null)this.SD(A);if(!s.L(dN.I6)&&s.w3()!=-1){var u=H.ES(Math.round(this.Em.opacity*100),s.w3())/100; this.no({opacity:u},o)}if(this.id==D.y_&&n&&$!=null){var Y=this.Em.qsmode;if(Y==2)Y=$.Z==null?0:1;else Y=2; this.no({qsmode:Y},o)}this.rJ=e;if(n){if($)this.Fw=$.C.X;this.Rb(T,s)}};D.x5.Vd=function($,o){var T=$.Brsh.v.Dmtr.v.val,s=$.Brsh.v.Hrdn!=null?$.Brsh.v.Hrdn.v.val:-1,E=T,e=s,n=o.L(dN.Et); if(o.L(dN.Q7)){if(n)s=25*Math.floor((s-1)/25);else{if(T<=10)T--;else if(T<=50)T=5*Math.floor((T-1)/5); else if(T<=100)T=10*Math.floor((T-1)/10);else if(T<=200)T=25*Math.floor((T-1)/25);else if(T<=400)T=50*Math.floor((T-1)/50); else T=100*Math.floor((T-1)/100)}}if(o.L(dN.tQ)){if(n)s=25*Math.ceil((s+1)/25);else{if(T<10)T++;else if(T<50)T=5*Math.ceil((T+1)/5); else if(T<100)T=10*Math.ceil((T+1)/10);else if(T<200)T=25*Math.ceil((T+1)/25);else if(T<400)T=50*Math.ceil((T+1)/50); else T=100*Math.ceil((T+1)/100)}}T=Math.max(1,T);s=Math.max(0,Math.min(100,s));if(e==-1)s=-1;if(T!=E||s!=e){var A=JSON.parse(JSON.stringify($)); A.Brsh.v.Dmtr.v.val=T;if(e!=-1)A.Brsh.v.Hrdn.v.val=s;return A}return null};D.x5.prototype.Rb=function($,o,T,s){if($.n_.list.length==0)return; var E=this.id,e;if((E==D.LS||E==D.rw||E==D.m8||E==D.La)&&(o!=null&&o.L(dN.BJ)||this.Em.alt[0]))e="crosshair"; else{var n=this.Fw,A=this.Em.brush;if((E==D.LS||E==D.rw)&&T&&this.kT&&this.kT.length==this.qH.Y()*4){var u=T.C.VD(s.x,s.y),Y=this.hn(u),b=this.kT,a=this.qH,w=new df(a.x+Y.x,a.y+Y.y,a.d,a.w),X=ih.Ce(A,$.n_.Ou,n),N=X[0],z=X[1],i=Math.ceil(z.d/n),k=new df(Math.round(u.x-i/2),Math.round(u.y-i/2),i,i),Q=L.G(k.Y()*4),O,c; L.h9(b,w,Q,k);if(n==1){O=Q;c=k}else{var B=new fY(n,0,0,n,0,0),G=D.p.qh([Q,k],B,!0);c=z.clone();c.x=G.rect.x; c.y=G.rect.y;if(c.R1(G.rect))O=G.buffer;else{O=L.G(c.Y()*4);L.h9(G.buffer,G.rect,O,c)}}var l=this.Em.opacity/255; for(var f=0;f>>1,b=new df(Math.round(A.x)-Y,Math.round(A.y)-Y,u,u),a=L.G(b.Y()*4); L.wr(16777215);for(var f=0;f0){Y=L.G(e.Y()*4);D.x5.PO(n,e,0,Y,e)}var b=new dt(T,this);b.data=[{c:s,W5:E,uL:e,ah:Y}];if(A)b.data.xh=[$.Z,null]; if(u)b.data.xh=[this.I9,$.Z];$.g4(b);if(o)this.wx(b.data,$);else if(A)$.Z=null;cf.NX.rU($,b.data)};D.x5.prototype.OK=function($,o){this.UW($,o,!1)}; D.x5.prototype.wx=function($,o){this.UW($,o,!0)};D.x5.prototype.UW=function($,o,T){if($.e=="drawtemp"){var s=T?$.ag4:$.ae_,E=o.u[$.c]; E._I.YS=s;E.Rq(o,0,0,o.Z);E.T();o.sr=!0}else{cf.NX.B6(o,$);if($.xh){o.Z=$.xh[T?1:0];o.L5=!0}}o.T()}; D.x5.prototype.m9=function($){this.o7($,this.Yb,this.VP.su(),this.VP.rX(),this.VP.kx());this.T($)};D.x5.prototype.o7=function($,o,T,s,E){var e=this.Em,n=$.u[$.D[0]],A=$.el.length!=0?$.iy[$.el[0]]:n.dQ<=0?null:n.dQ==1?n.yy():n.DE($)._,u=L.G(E.Y()*4),Y,b=n.iQ(0); if(A==null){if(this.id==D.ky&&o=="heal")L.h9(n.buffer,n.rect,u,E);else L.h9(this.Pr,this.Yt,u,E);if(b){Y=L.G(E.Y()); L.Ge(u,Y,3)}}else{D.x5.PO(this.Pr,this.Yt,A.color,u,E)}if($.Z&&o!="qselect"){var a=E.Sr($.Z.rect),w=L.G(a.Y()*4); if(o=="copy"){var X=L.G(a.Y());L.pg($.Z.channel,$.Z.rect,X,a);L.h9(u,E,w,a);L.R.Cu(T,s,w,a,X,a,0,a,1,!1)}else{L.h9(T,s,w,a); L.Li($.Z.channel,$.Z.rect,w,a)}T=w;s=a}function N(k,bD){var fO=Math.max(bD.x,Math.min(bD.x+bD.d-1,k.x)),g6=Math.max(bD.y,Math.min(bD.y+bD.w-1,k.y)); return new aY(fO,g6)}if(o=="idraw"||o=="ierase"){if(this.u8==null)this.u8=L.G(this.Yt.Y());var z=this.Em.samp,i=this.GH.GR,k=N(this.zg,E),Q=z==0?k:this.Tz,O=Q.x,c=Q.y,B=D.xn.cV(this.Pr,this.Yt,[Q,new aY(O-2,c),new aY(O+2,c),new aY(O,c-2),new aY(O,c+2)]); if(z==2)B=[[i>>>16&255,i>>>8&255,i>>>0&255,255]];var G=D.xn.nJ(u,E,k,B,this.Em.wconf),l=L.G(E.Y());L.pg(this.u8,this.Yt,l,E); L.vB.BZ(G,l,l);L.pg(l,E,this.u8,this.Yt);L.Li(l,E,T,s);o=o.slice(1)}if(o=="erase"&&(cf.NX.B2($)!=16777215||A))o="draw"; if(o=="draw")L.R.xE(e.bmode,T,s,u,E,E,e.opacity);else if(o=="erase"){var v=L.G(E.Y()*4);L.h9(T,s,v,E); if(A==null){var p=L.G(E.Y());L.Ge(v,p,3);L.wO(p,e.opacity);L.lY(p);L.Li(p,E,u,E)}else{L.wr(v,0,4278190080); L.R.xE("norm",v,E,u,E,E,e.opacity)}}else if(o=="clone"||o=="heal"){var P=this.k4(),h=this.qH.clone(); h.offset(P.x,P.y);var j=E.clone();j.Mi(1,1);var C=L.G(j.Y()*4),V=L.G(j.Y());L.h9(T,s,C,j);L.Ge(C,V,3); L.wr(C,0);if(A==null){L.h9(this.kT,h,C,j);var d=L.G(j.Y());L.Ge(C,d,3);L.nh(d,V)}else D.x5.PO(this.kT,h,A.color,C,j); if(o=="clone"){L.aM(V,C,3);L.R.xE(e.bmode,C,j,u,E,E,e.opacity)}if(o=="heal"){var m=V.slice(0);L.round(m,20); var R=L.G(j.Y()*4);if(A==null)L.h9(this.Pr,this.Yt,R,j);else D.x5.PO(this.Pr,this.Yt,A.color,R,j);L.R.Cu(C,j,R,j,m,j,0,j,1,!1); L.Eh.gY(R,m,j);L.R.Cu(R,j,u,E,V,j,0,E,1,!1)}}else if(o=="dodge"||o=="burn"){var C=L.G(E.Y()*4),F=1,r=0,q=0,W=0; L.h9(T,s,C,E);var g=E.Y()*4,S=D.x5.de;if(this.rJ){if(o=="dodge")o="burn";else o="dodge"}var Z=e.rng; if(o=="dodge"){r=[1-F/2,1,1+F][Z];q=[1,1/(1+F),1][Z];W=[F/2,0,0][Z]}if(o=="burn"){r=[1/(1-F/2),1,1-F/2][Z]; q=[1,1+F,1][Z];W=[-(F/2)/(1-F/2),0,0][Z]}for(var f=0;f>>1)*i8]=V[(b5>>>1)*i8+i8-1]=0;D.b5.nG(bh,!0);$.Z={rect:f0,channel:bh.Z.slice(0)};$.L5=!0}if(A==null){if(b)L.aM(Y,u,3); L.h9(u,E,n.buffer,n.rect)}else D.x5.Mn(u,E,A)};D.x5.k4=function(){return null};D.x5.de=function($,o,T,s,E){var e=$*(1/255),n=s+o*Math.pow(e,T),A=Math.round(n*E+e*(255-E)); return Math.max(0,Math.min(255,A))};D.x5.PO=function($,o,T,s,E){var e=L.G(E.Y());e.fill(T);L.pg($,o,e,E); s.fill(255);L.R6(e,s)};D.x5.Mn=function($,o,T){var s=L.G(o.Y());L.h$($,s);L.pg(s,o,T.channel,T.rect)}; D.NK=function($,o,T){D.wB.call(this,$,o,T);this.Ne={op:"front",feat:0,cstr:{KR:0,x:3,y:2},wconf:[16,!0,!0],anta:!0}; this.GP=new aY(-1,-1);this.dF=new aY(-1,-1);this.Mf="default";this.YO=null;this.abi=!0;this.E$=!1;this.jP=!1; this.rJ=!1;this.QT=0;this.$h=0;this.oc=!1;this.Gl=null;this.$x=null;this.s3=!1};D.NK.prototype=new D.wB; D.NK.prototype.ait=function(){var $=this.Ne,o=[{front:0,union:1,difference:2,intersection:3}[$.op],$.feat]; if(this.id==D.os)o.push($.wconf);return o};D.NK.prototype.ar3=function($,o,T){var s=this.Ne;s.op=["front","union","difference","intersection"][$[0]]; s.feat=$[1];s.wconf=$[2];var E=new x(H.E.Q,!0);E.data={e:H.V.Hh,U:this.id,Ne:s};T.J(E)};D.NK.Xu={key:""}; D.NK.PK=function($,o,T){var s={Wk:$,bI:{classID:"setd",null:{t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]}}}; if(o)s.bI.T=o;if(T!=null)s.bI.AntA={t:"bool",v:T};return s};D.NK.e4=function($,o,T){return D.NK.PK("set",{t:"Objc",v:{classID:$,Top:{t:"UntF",v:{type:"#Pxl",val:o.y}},Left:{t:"UntF",v:{type:"#Pxl",val:o.x}},Btom:{t:"UntF",v:{type:"#Pxl",val:o.y+o.w}},Rght:{t:"UntF",v:{type:"#Pxl",val:o.x+o.d}}}},T)}; D.NK.cq=function($,o,T){var s=[],E=[],n="set";for(var f=0;f<$.length;f+=2){s.push($[f]);E.push($[f+1])}var e={t:"Objc",v:{classID:"Plgn",Pts:{t:"ObAr",v:{classID:"Pnt",arr:[{id:"Hrzn",type:"UnFl",uID:"#Pxl",arr:s},{id:"Vrtc",type:"UnFl",uID:"#Pxl",arr:E}]}}}}; if(o)n={front:"set",union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[o];return D.NK.PK(n,e,T)}; D.NK.ahW=function($,o){var T={t:"Objc",v:{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Pxl",val:$.x}},Vrtc:{t:"UntF",v:{type:"#Pxl",val:$.y}}}},s=D.NK.PK("set",T); s.bI.Tlrn={t:"long",v:o[0]};s.bI.AntA={t:"bool",v:o[1]};s.bI.Cntg={t:"bool",v:o[2]};return s};D.NK.Gw=function($){return D.NK.PK("set",{t:"enum",v:{Ordn:$?"Al":"None"}})}; D.NK.a0x=function($,o,T){var s={classID:"null"};if($!="border")s.selectionModifyEffectAtCanvasBounds={t:"bool",v:T}; var E={e:"By",c:"By",b:"Wdth",f:"Rds",s:"Rds"}[$[0]];s[E]={t:"UntF",v:{type:"#Pxl",val:o}};return{Wk:$,bI:s}}; D.NK.af=function($,o,T){var s={t:"obj ",v:[{t:"prop",v:{classID:"Chnl",keyID:"fsel"}}]},E={t:"obj ",v:[{t:"Enmr",v:{classID:"Chnl",typeID:"Chnl",enum:o}}]}; if(T)E.v.push({t:"name",v:{classID:"Lyr",val:T}});var e=[{classID:"null",null:s,T:E},{classID:"null",null:E,T:s},{classID:"null",null:E,From:s},{classID:"null",null:E,With:s}],n=["set","add","subtract","interfaceIconFrameDimmed"]; return{Wk:n[$],bI:e[$]}};D.NK.yC=function($,o){var T=new x(H.E.Q,!0);T.data={e:H.V.uY,M9:gr.PA};if(!o.Ok)$.J(T); T.data={e:H.V.uY,M9:gr.gi};if(!o.wK.cK)$.J(T)};D.NK.prototype.A2=function($,o,T,s,E){D.NK.yC(o,E);this.YO=o; var e=$.e,n,A,u=new df(0,0,T.d,T.w),g6=!1,hM,d3,h9,cs;if(e=="fromAction"){var Y=$.xU,b=Y.Wk,a=Y.bI,w=a?a.selectionModifyEffectAtCanvasBounds:null,X=w&&w.v; if(b=="inverse"){if(T.Z==null){alert("No selection!");return}n={channel:L.G(u.Y()),rect:u};L.pg(T.Z.channel,T.Z.rect,n.channel,n.rect); L.lY(n.channel);A=[7,2]}else if(b=="expand"){var N=a.By.v.val,z=T.Z.rect.clone();z.Mi(N,N);var i=L.G(z.Y()),k=L.G(z.Y()); L.pg(T.Z.channel,T.Z.rect,k,z);L.style.stroke(k,i,z,N);n={channel:i,rect:z};A=[7,4]}else if(b=="contract"){var N=a.By.v.val,Q=T.Z.rect.clone(); Q.Mi(1,1);if(!X)Q=Q.Sr(u);var k=L.G(Q.Y()),O=L.G(k.length);L.pg(T.Z.channel,T.Z.rect,k,Q);L.lY(k);L.style.stroke(k,O,Q,N); L.lY(O);n={channel:O,rect:Q};L.Gg(n);A=[7,5]}else if(b=="border"){var N=a.Wdth.v.val;n=D.NK.Gr(T.Z,N/2,N/2); A=[7,9]}else if(b=="feather"||b=="smoothness"){var N=a.Rds.v.val;n=D.NK.U$(T.Z,N,b=="smoothness",u,X); A=b=="feather"?[7,6]:[19,3,0]}else{var c=a.null.v,B=a.AntA!=null&&a.AntA.v;function G(ci){var gv=ci.Top.v.val,iI=ci.Left.v.val; return new df(iI,gv,ci.Rght.v.val-iI,ci.Btom.v.val-gv)}function l(ci){var gv=ci[0].arr,gu=ci[1].arr,ak={I:[],o:[]}; for(var f=0;f>>1)),S=P.y-j.y,F=S+P.w-1,r=Math.max(S,Math.min(F,S+F>>>1)),q=Math.max(m,0),W=Math.min(R,V),Z=Math.max(S,0),I=Math.min(F,d); C.fill(128);if(0<=S)for(var _=q;_>>2);L.Ge(bb,ir,3);n={channel:ir,rect:g2.clone()}}else{if(iI._==null)iI.tF(T);var dG=bh==1?iI.yy():iI._; n=D.NK.P_(dG,u)}this.track(D.NK.af(v,["Trsp","Msk"][bh],iI.getName()))}else if(e=="frompath"){var gY=T.Vp(),e6=gY[1],gY=gY[0]; if(gw==null)if(gY.length==0||e6.length==0)return;var fr=gY[e6[0]];if(gw!=null)for(var f=0;f1||this.$h>1?o:null; var s=this.GP,E=this.dF;if(T){s.x=Math.max(0,Math.min($.d,s.x));s.y=Math.max(0,Math.min($.w,s.y));E.x=Math.max(0,Math.min($.d,E.x)); E.y=Math.max(0,Math.min($.w,E.y))}var e=D.U5.XS(s,E,o,!0,this.Ne.cstr),n=e[0].x,A=e[0].y;return new df(n,A,e[1].x-n,e[1].y-A)}; D.NK.prototype.iO=function($,o,T,s,E){if(this.hA())return;this.YO=o;this.E$=!1;this.jP=s.L(dN.Et);this.rJ=s.L(dN.BJ); this.QT=this.jP?0:1;this.$h=this.rJ?0:1;this.GP=$.C.VD(E.x,E.y);this.GP=D.aD.yu($,this.GP,T);if(this.sd($,this.GP,s)){this.oc=!0; this.Gl=$.Z.rect.clone();return}this.gO($,T,s,E);$.C.Xk=new df};D.NK.prototype.sd=function($,o,T){var s=T.L(dN.Et),E=T.L(dN.BJ); if($.Z&&!s&&!E&&this.Ne.op=="front")return L.cM(o,$.Z.channel,$.Z.rect);return!1};D.NK.prototype.ZS=function($,o,T,s,E){this.YO=o; if(this.s3)return;var e=$.C.VD(E.x,E.y);if(aY.Sa(this.GP,e)*$.C.X>5)this.E$=!0;if(s.L(dN.Gv)){if(this.$x==null)this.$x=new aY(e.x-this.GP.x,e.y-this.GP.y); this.GP.x=e.x-this.$x.x;this.GP.y=e.y-this.$x.y}else this.$x=null;this.dF=e;if(!this.oc)this.dF=D.aD.yu($,this.dF,T); if(this.sd($,this.dF,s))this.gt(o,"move");else this.gt(o,this.Mf);if(this.oc){var n=this.Gl.clone(); n.x+=this.dF.x-this.GP.x;n.y+=this.dF.y-this.GP.y;var A=D.aD.nI($,n,T);$.Z.rect.x=Math.round(this.dF.x-this.GP.x+this.Gl.x+A[0]); $.Z.rect.y=Math.round(this.dF.y-this.GP.y+this.Gl.y+A[1]);$.L5=!0;D.aD.Fv($,n,A);return}this.$d($,T,s,E); if($.C.Xk)$.C.Xk=this.rX($,s)};D.NK.prototype.hA=function(){return!1};D.NK.prototype.yg=function($,o,T,s,E){$.C.Xk=null; this.dF=$.C.VD(E.x,E.y);this.dF=D.aD.yu($,this.dF,T);if(this.oc){this.oc=!1;if(this.dF.R1(this.GP)&&this.Py()=="front"){this.lz(o,H.E.b0,D.NK.Gw()); return}this.PM($,this.Gl,$.Z.rect.clone());if($!=null&&$.n.BD){$.n.BD=null;$.Cd=!0}return}this.uZ($,T,s,E); D.NK.yC(o,T)};D.NK.prototype.PM=function($,o,T){var s=$.OY();if(s!=null&&s.U==this&&s.data.e=="movesel"){}else{s=new dt([7,7],this); s.data={e:"movesel",FF:o};$.g4(s)}s.data.oJ=T;this.wx(s.data,$)};D.NK.prototype.J7=function($,o,T,s,E){this.s3=!0}; D.NK.prototype.oW=function($,o,T,s,E){var e=new x(H.E.Q,!0);e.data={e:H.V.Hh,U:this.id,bg:E,ZU:$,mh:T}; o.J(e);this.s3=!1};D.NK.prototype.Vb=function($,o,T,s){var E=s.L(dN.Et),e=s.L(dN.BJ);if(this.E$){if(this.QT==0&&!E)this.QT++; if(this.QT==1&&E)this.QT++;if(this.$h==0&&!e)this.$h++;if(this.$h==1&&e)this.$h++}if($!=null&&$.Z!=null){var n=s.cu(); if(n.x!=0||n.y!=0){var A=$.Z.rect.clone();A.x+=n.x;A.y+=n.y;this.PM($,$.Z.rect.clone(),A)}}var u=D.NK.kI(this.Ne.op,E,e),Y=new x(H.E.Q,!0); Y.data={e:H.V.Hh,U:this.id,LE:u};o.J(Y)};D.NK.prototype.finish=function($,o,T,s){var E=$.Z,e=this.getSelection($,o,T,s); if(e==null)e=D.NK.Gw();else{var n=this.Ne.feat,A=this.Py();if(n!=0)e.bI.Fthr={t:"UntF",v:{type:"#Pxl",val:n}}; if(A!="front"&&A!="xor")e.Wk={union:"addTo",difference:"subtractFrom",intersection:"interfaceWhite"}[A]}this.lz(this.YO,H.E.b0,e); this.GP.A5(-1,-1);this.dF.A5(-1,-1)};D.NK.prototype.Py=function(){return D.NK.kI(this.Ne.op,this.jP,this.rJ)}; D.NK.kI=function($,o,T){if(o)$="union";if(T)$="difference";if(o&&T)$="intersection";return $};D.NK.prototype.getSelection=function($,o,T,s){return null}; D.NK.prototype.gO=function($,o,T,s){};D.NK.prototype.$d=function($,o,T,s){};D.NK.prototype.uZ=function($,o,T,s){}; D.NK.prototype.OK=function($,o){var T=$.e;if(T=="changesel")o.Z=$.I9;if(T=="movesel")o.Z.rect=$.FF;if($.$X){if($.amg){o.el=[o.iy.length]; o.iy.push($.amg)}else{o.iy.pop();o.el=[]}}if($.QM){o.dl=JSON.parse($.QM[0]);o.T7=JSON.parse($.QM[1])}o.L5=!0}; D.NK.prototype.wx=function($,o){var T=$.e;if(T=="changesel")o.Z=$.a3;if(T=="movesel")o.Z.rect=$.oJ;if($.$X){if($.a06){o.el=[o.iy.length]; o.iy.push($.a06)}else{o.iy.pop();o.el=[]}}if($.QM){o.dl=JSON.parse($.agX[0]);o.T7=JSON.parse($.agX[1])}o.L5=!0}; D.NK.prototype.UR=function($){this.Ne=$.Ne};D.NK.prototype.Wj=function($){var o=L.M.$l($.I);if(o.p4())return null; var T=H.z("canvas","");T.width=o.d;T.height=o.w;var s=T.getContext("2d");s.beginPath();s.translate(-o.x,-o.y); Typr.U.pathToContext({cmds:$.o,crds:$.I},s);s.closePath();s.fill();var E=L.G(o.Y()),e=s.getImageData(0,0,T.width,T.height); L.Ge(e.data,E,3);return{rect:o,channel:E}};D.NK.U$=function($,o,T,s,E){if(T)o=Math.round(o*.7);var e=Math.ceil(2.6*o),n=$.rect.clone(); n.Mi(e,e);if(s&&!E)n=n.Sr(s);var A=L.G(n.Y()),u=L.G(A.length);L.pg($.channel,$.rect,u,n);L.Ja.Yy(u,A,n,o); if(T){var Y=A.length;for(var f=0;f1e-9||!a||e||A)w=this.cj($,o,!0,b,1,s);var N=new dt(this.name,this),z=new df(0,0,$.d,$.w); N.data={FE:w,vo:b,o2:$.C.l.clone(),q3:D.LY.kL($,E,z,!1)};D.LY.xl($,N.data,E);$.g4(N);this.wx(N.data,$); this.track(D.LY.rM([s.x,s.y,s.d,s.w],null,A))};D.LY.xl=function($,o,T){if(T==null)return;o.FF=new df(0,0,$.d,$.w); o.oJ=T};D.LY.n5=function($,o){if(o.oJ==null)return;D.LY.Mo($,o.oJ)};D.LY.bS=function($,o){if(o.oJ==null)return; var T=o.FF.clone();T.offset(-o.oJ.x,-o.oJ.y);D.LY.Mo($,T)};D.LY.prototype.a1j=function($,o){var T=L.$.TU(o),s=L.$._r(T),E=L.$.JV(T),e=E.Ry,n=E.Es,A=Math.atan2(E.P,E.Ca); E.rotate(A);var u=new df(e,n,E.Ca,E.Um);if(!s){function Y(O,f,c){var B=O[f]-O[c],G=O[f+1]-O[c+1];return Math.sqrt(B*B+G*G)}var b=Y(o,0,2),a=Y(o,4,6),w=Math.max(b,a),X=Y(o,2,4),N=Y(o,6,0),z=Math.max(X,N),i=D.LY.ahl(o,$.d/2,$.w/2),k,Q; if(isNaN(i)||i==Infinity||i==-Infinity||Math.min(i,1/i)<.1)i=(b+a)/(X+N);if(w/z>i){k=w*1;Q=k/i}else{Q=z*1; k=Q*i}u.d=k;u.w=Q}u.x=Math.round(u.x);u.y=Math.round(u.y);u.d=Math.round(u.d);u.w=Math.round(u.w);return u}; D.LY.ahl=function($,o,T){var s=$[0]-o,E=$[1]-T,e=$[2]-o,n=$[3]-T,A=$[6]-o,u=$[7]-T,Y=$[4]-o,b=$[5]-T,a=((E-b)*A-(s-Y)*u+s*b-E*Y)/((n-b)*A-(e-Y)*u+e*b-n*Y),w=((E-b)*e-(s-Y)*n+s*b-E*Y)/((u-b)*e-(A-Y)*n+A*b-u*Y),X=-((w*u-E)*(a*n-E)+(w*A-s)*(a*e-s))/((w-1)*(a-1)); function N(i){return i*i}var z=Math.sqrt((N(a-1)+N(a*n-E)/X+N(a*e-s)/X)/(N(w-1)+N(w*u-E)/X+N(w*A-s)/X)); if(a==1&&w==1)z=Math.sqrt((N(n-E)+N(e-s))/(N(u-E)+N(A-s)));return z};D.LY.prototype.disable=function($,o,T,s){if($==null)return; if(this.Id)this.Id.clear($);this.Id=null;this.lz(o,H.E.Q,{e:H.V.Hh,U:this.id,uS:!1})};D.LY.prototype.lz=function($,o,T,s){var E=new x(o,!0); E.data=T;if(s)E.U=s;$.J(E)};D.C0=function(){D.LY.call(this,[10,2],D.EZ,"tools/rcrop")};D.C0.prototype=new D.LY; D.un=function(){D.LY.call(this,[10,39],D.dO,"tools/pcrop")};D.un.prototype=new D.LY;D.B7=function(){D.x5.call(this,[10,21],D.vz,"tools/dodge"); this.Yb="dodge"};D.B7.prototype=new D.x5;D.B7.prototype.iO=function($,o,T,s,E){this.gB($,T,s,E,this.Em.expo/Math.PI); if(this.VP==null)return;this.m9($)};D.B7.prototype.ZS=function($,o,T,s,E){this.NF($,o,T);if(this.Gh)this.g1($,T,E); if(this.VP==null)return;if(!E.jw)return;this.X$($,T,s,E);this.m9($)};D.Qq=function(){D.x5.call(this,[10,3],D.WJ,"tools/eraser"); this.Yb="erase"};D.Qq.prototype=new D.x5;D.Qq.prototype.iO=function($,o,T,s,E){this.gB($,T,s,E,this.Em.flow); if(this.VP==null)return;this.m9($)};D.Qq.prototype.ZS=function($,o,T,s,E){this.NF($,o,T);if(this.Gh)this.g1($,T,E); if(this.VP==null)return;if(!E.jw)return;var e=this.X$($,T,s,E);this.m9($)};D.pr=function(){D.x5.call(this,[10,45],D.abx,"tools/beraser"); this.Yb="ierase"};D.pr.prototype=new D.x5;D.pr.prototype.iO=function($,o,T,s,E){if(this.Pv(s,o,E))return; this.gB($,T,s,E,this.Em.flow);if(this.VP==null)return;this.m9($)};D.pr.prototype.ZS=function($,o,T,s,E){this.NF($,o,T); if(this.Gh)this.g1($,T,E);if(this.VP==null)return;if(!E.jw)return;this.X$($,T,s,E);this.m9($)};D.S_=function(){D.NK.call(this,[10,15],D.ZR,"tools/rselect"); this.Mf="crosshair"};D.S_.prototype=new D.NK;D.S_.prototype.$d=function($,o,T,s){if(!s.jw||!this.E$)return; var E=this.rX($,T,!0);$.n.JU=L.M.Uo(E);$.Cd=!0;D.wB.C9(s.x+10,s.y-10,E,$,o)};D.S_.prototype.uZ=function($,o,T,s){$.n.JU=null; $.n.bt=[];$.Cd=!0;this.finish($,o,T,s)};D.S_.prototype.getSelection=function($,o,T,s){if(this.GP.R1(this.dF)||!this.E$)return null; var E=this.rX($,T,!0);if(E.p4())return null;return D.NK.e4("Rctn",E,this.Ne.anta)};D.fU=function(){D.NK.call(this,[10,4],D.a6Q,"tools/eselect"); this.Mf="crosshair"};D.fU.prototype=new D.NK;D.fU.prototype.$d=function($,o,T,s){if(!s.jw||!this.E$)return; var E=this.rX($,T);$.n.JU=D.fU.UJ(E);$.Cd=!0;D.wB.C9(s.x+10,s.y-10,E,$,o)};D.fU.prototype.uZ=function($,o,T,s){$.n.JU=null; $.n.bt=[];$.Cd=!0;this.finish($,o,T,s)};D.fU.prototype.getSelection=function($,o,T,s){if(this.GP.R1(this.dF)||!this.E$)return null; var E=this.rX($,T);if(!E.Ha(new df(0,0,$.d,$.w)))return null;return D.NK.e4("Elps",E,this.Ne.anta)}; D.fU.UJ=function($){var o=$.x,T=$.y,s=$.x+$.d,E=$.y+$.w,e=(o+s)/2,n=(T+E)/2,A=(o-s)/2,u=(T-E)/2,Y=.5522848,b={I:[e,n-u],o:["M","C","C","C","C"]}; b.I.push(e+Y*A,n-u,e+A,n-Y*u,e+A,n);b.I.push(e+A,n+Y*u,e+Y*A,n+u,e,n+u);b.I.push(e-Y*A,n+u,e-A,n+Y*u,e-A,n); b.I.push(e-A,n-Y*u,e-Y*A,n-u,e,n-u);return b};D.iK=function(){D.wB.call(this,[10,5],D.zx,"tools/eyedropper"); this.IO=!1;this.IC=1};D.iK.prototype=new D.wB;D.iK.prototype.ut=function($){return $.jw};D.iK.prototype.A2=function($,o,T,s,E){if($.e=="pickhere")this.Gm(T,o,E,s,$.anv)}; D.iK.prototype.iO=function($,o,T,s,E){this.IO=!0;this.Gm($,o,T,s,E)};D.iK.prototype.ZS=function($,o,T,s,E){if(this.IO)this.Gm($,o,T,s,E)}; D.iK.prototype.yg=function($,o,T,s,E){this.IO=!1};D.iK.prototype.Gm=function($,o,T,s,E){var e=D.iK.v0($,E,this.IC),n=new x(H.E.Q); n.data={e:H.V.uY,M9:gr.ux,f8:0,H:e};o.J(n)};D.iK.v0=function($,o,T){var s=$.C.VD(o.x,o.y),E=Math.floor(s.x),e=Math.floor(s.y),n=(T-1)/2,A=Math.max(0,E-n),u=Math.max(0,e-n),Y=Math.min($.d,E+n+1),b=Math.min($.w,e+n+1),a=(Y-A)*(b-u),w=$.aw(),X=0,N=0,z=0; for(var E=A;E2){var X;if($.Z)X=$.Z.rect;else X=new df(0,0,$.d,$.w);var N=L.G(X.Y()*4),z=this.Em,i=z.h2;if(i!="Lnr"){b*=2; u=this.UP}L.h.Xo(z.h,N,X,[w*1/b,a*1/b,-a*1/b,w*1/b],u.x,u.y,z.wq,ev.h.types.indexOf(i),T.z4,T.GR,null,z.aoL); var k=Math.round(z.yV*256),Q=N.length;if(k!=256)for(var f=0;f>>8;var O=new x(H.E.N); O.U=D.WJ;O.data={e:"fillBMP",Qn:N,_6:z.a5Z,U1:this.name};o.J(O)}$.n.JU=null;$.n.EJ=[];$.Cd=!0;this.zq=!1}; D.eH.mq=function($,o){if($.R1(o))return $;var T=o.x-$.x,s=o.y-$.y,E=Math.abs(T),e=Math.abs(s);if(E>e)e=E/2>e?0:E; if(e>E)E=e/2>E?0:e;E=T>0?E:-E;e=s>0?e:-e;var n=Math.sqrt(T*T+s*s)/Math.sqrt(E*E+e*e);return new aY($.x+E*n,$.y+e*n)}; D.eH.Ey=function($,o,T,s,E,e,n){if(n==null)n=H.z("canvas","");var A=n.getContext("2d");n.width=o;n.height=T; var u=new df(0,0,o,T),Y=L.G(o*T*4);L.qU(Y,o,T,4);var b=Math.sin(s),a=Math.cos(s),w=L.G(o*T*4);L.h.Xo($,w,u,[a*1/o,b*1/o,-b*1/T,a*1/T],o/2,T/2,!1,0,E,e); L.R.xE("norm",w,u,Y,u,u,1);var X=A.getImageData(0,0,o,T);L.w0(Y,X.data);A.putImageData(X,0,0);return n.toDataURL()}; D.eH.agL=function($,o,T){var s=JSON.parse(JSON.stringify($));for(var f=0;f>16&255,m:n>>8&255,P:n&255})}}return s}; D.UL=function(){D.wB.call(this,[10,7],D.BC,"tools/hand");this.iL=new aY(0,0);this.ug=null;this.iA=0}; D.UL.prototype=new D.wB;D.UL.prototype.A2=function($,o,T,s,E){var e=$.e;if(e=="setcls"){T.C.xR=$.xR; T.Cd=!0;T.RZ=!0}if(e=="scroll"&&!s.L(dN.BJ)){if(s.L(dN.I6))D.UL.iY(T,T.C.l.x-$.Jn.y,T.C.l.y-$.Jn.x); else D.UL.iY(T,T.C.l.x-$.Jn.x,T.C.l.y-$.Jn.y)}};D.UL.prototype.enable=function($,o,T,s){this.ug=null; var E=new x(H.E.Q,!0);E.data={e:H.V.bl,j$:"grab"};o.J(E);if($&&Date.now()-this.iA<300){E.type=H.E.N; E.U=D.S3;E.data={e:"adapt",H:"fitscr"};o.J(E)}this.iA=Date.now()};D.UL.prototype.iO=function($,o,T,s,E){this.ug=$.C.l.clone(); this.iL.A5(E.x,E.y)};D.UL.prototype.ZS=function($,o,T,s,E){if(!E.jw)return;if(this.ug==null)this.iO($,o,T,s,E); D.UL.iY($,this.ug.x+(E.x-this.iL.x),this.ug.y+(E.y-this.iL.y))};D.UL.prototype.yg=function($,o,T,s,E){this.ug=null}; D.UL.iY=function($,o,T){var s=$.C.X,E=$.C.Vi,e=E.d,n=E.w,A=$.d*s,u=$.w*s,Y=A=0;f--){var T=$.u[f];if(T.add.TySh&&T.rect.dv(o)&&$.q$(f)){var s=T.iQ(2)||T.iQ(31); return s?-2:f}}return-1};D.mO.prototype.iO=function($,o,T,s,E){this.u4=$;this.mh=T;this.caller=o;var e=$.C.VD(E.x,E.y),n=this.f0==null; if(n){var A=D.mO.Bs($,e);if(A==-2){alert(aX.get([6,57,0]));return}if(A>=0){if(!hA.NP($.u[A].add.TySh,T.vv)){alert("Fonts not loaded yet"); return}this.lh($,o,T,[A])}else{this.$v=!0;this.$b=E;return}}var u=n?-1:g8.tb(this.f0.add.TySh.h3),Y=this.AR?this.AR:this.Id; if(Y&&Y.iO($,T,s,e)&&L.Rt.nP(this.f0.add.TySh.Ah)||!n&&L.M.pP(e,this.f0.rect)>20/$.C.X&&(u==0||u==1)){this.sb=!0; this.d_=e;this.adm=this.f0.add.TySh.t.clone();if(this.tp==-1&&this.fX==-1)this.tp=this.fX=this.Hm(e)}else{if(this.dP==null){alert("Fonts not loaded yet"); return}this.ij=!0;this.tp=this.fX=this.Hm(e);var b=Date.now();if(b-this.a1S>300)this.aW=0;this.aW++; this.a1S=b;if(this.aW==2)this.ae1();if(this.aW==3)this.ap5();if(this.aW>1){this.ij=!1}}this.Ki();this.mZ($)}; D.mO.prototype.lh=function($,o,T,s){var E=$.u[s[0]];this.f0=E;this.lz(o,H.E.Q,{e:H.V.Hh,U:this.id,PF:"showactive"}); this.lc=s;$.D=s.slice(0);$.L4();$.SK=!0;this.r$=this.NL($,s);this.Mk(E.add.TySh);this.bj($,T)};D.mO.prototype.Mk=function($){if(g8.tb($.h3)!=1)return; var o=g8.Hs($.h3);o=new df(0,0,o[2]-o[0],o[3]-o[1]);var T=[o.x,o.y,o.x+o.d,o.y,o.x+o.d,o.y+o.w,o.x,o.y+o.w]; L.M.t(T,$.t,T);this.Id=new dY(T,!1,!1,!1,!0)};D.mO.prototype.ae1=function(){var $=g8.m5(this.f0.add.TySh.h3); this.tp=this.nR($,this.tp);this.fX=this.nZ($,this.tp)};D.mO.prototype.nR=function($,o){var T=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",s=[]; for(var f=0;f=0;f--)if(s.indexOf($.charAt(f))!=-1==E)return f+1; return 0};D.mO.prototype.nZ=function($,o){var T=" \t\n,.?!_-+=@#$%^&*'\"(){}[]\\/<>:;|",s=[];for(var f=0; f20/$.C.X)A="move";else if(D.mO.Bs($,e)>=0)A="text"; if(A!=this.rs){this.rs=A;this.Rb(o)}}var a=this.$b;if(this.$v&&Math.min(E.x-a.x,E.y-a.y)>4/$.C.X){this.$v=!1; this.A$($,o,T,s,E);n=this.f0;this.sb=!0;this.Id=new dY(null,!1,!1,!1,!0);var w=$.C.VD(this.$b.x,this.$b.y); w.x=Math.round(w.x);w.y=Math.round(w.y);this.Id.iO($,T,s,w)}if(this.sb){var X=n.add.TySh;if(this.AR){this.AR.ZS($,T,s,e); var N=L.$.JV(L.$.TU(this.AR.kd(),this.alD));X.t=N;this.bj($,T);g8.mg(X)}else if(this.Id){this.Id.ZS($,T,s,e); var z=X.t.clone(),i=Math.atan2(z.P,z.Ca);z.rotate(i);var N=L.$.JV(L.$.TU(this.Id.kd())),k=Math.atan2(N.P,N.Ca); N.rotate(k);if(!isNaN(N.Ca)&&N.Ca*N.Um-N.P*N.Z9!=0){var Q=new df(0,0,N.Ca/z.Ca,N.Um/z.Um),O=Math.round(Q.d),c=Math.round(Q.w),B=X.h3.Curve; if(B){var G=g8.Hs(X.h3),l=new fY(O/G[2],0,0,c/G[3],0,0);L.M.t(B.Points,l,B.Points);g8.mg(X)}g8.bi(X.h3,[0,0,O,c]); X.t=L.$.JV(L.$.TU(this.Id.kd(),Q));this.bj($,T);g8.mg(X)}}else{var v=e.x-this.d_.x,p=e.y-this.d_.y;X.t=this.adm.clone(); var P=new aY(X.t.Ry+v,X.t.Es+p);P=D.aD.yu($,P,T);X.t.Ry=P.x;X.t.Es=P.y;this.bj($,T)}}if(this.ij)this.fX=this.Hm(e); if(this.sb||this.ij)this.mZ($)};D.mO.prototype.A$=function($,o,T,s,E){var e=$.Vp(),n=e[0],A=e[1],u=$.$f(); u.add.lnsr="rend";var Y=$.u.slice(0);u.tM("Text layer "+Y.length);this.f0=u;var b=$.D.length==0?$.u.length-1:$.D[$.D.length-1],a=b+1; if(Y[b].add.lsct==hd.NH)a--;this.r$={rd:Y.slice(0),I9:$.D.slice(0)};Y.splice(a,0,u);$.D=[a];this.tp=this.fX=0; $.qp(Y);this.r$.c_=Y.slice(0);this.r$.a3=$.D.slice(0);this.lz(o,H.E.Q,{e:H.V.Hh,U:this.id,PF:"showactive"}); var w=$.C.VD(E.x,E.y),X=T.IT;console.log(X);if(this.id==D.i9){X=JSON.parse(JSON.stringify(X));X.oH.BaselineDirection=1}u.add.TySh=g8.rm(w.x,w.y,X); var N=u.add.TySh,z=N.h3;if(this.id==D.i9)z._LineOrientation=2;g8.ce(N,this.Ac);if(E.jw)g8.I8(z,1);else{g8.I8(z,0); var i=n[A.pop()],k=i?i.add.vmsk:null;if(k){k=k.clone();var Q=k.g,c,B;for(var f=0;f0&&s.charAt(this.tp-1)!=E.charAt(this.tp-1))this.tp--}var A=s.substring(0,this.tp),u=s.substring(this.fX,s.length),Y=E.substring(this.tp,E.length-u.length); g8.t1(T.h3,this.tp,this.fX);g8.YN(T.h3,this.tp,Y);var b=this.Ez(this.mh,T),w=-1,X=Array.from(Y);for(var f=0; f128&&b.oH.Font!=null){var N=b.Nd[b.oH.Font].Name,z=this.mh.vv.Dl(w,N,b.Nd); if(N!=z){g8.PL(b,z);a=!0}}if(this.Xr!=null&&Y==this.Xr){var i=JSON.parse(this.a5j);b.oH=i.oH;b.Nd=i.Nd; a=!0}g8.zA(T.h3,this.tp,this.tp+Y.length-1,b);this.tp=this.fX=A.length+Y.length;var k=this.u4,Q=this.bj(k,this.mh,!0); if(Q)this.mZ(k,!0);if(a)this.Ki()};D.mO.prototype.aj8=function($){if(this.f0==null||this.dC)return;if(this.f0==null)return; var o=dN,T=0,s=0,k=!1;if(o.AL($.code,o.$D))T=1;if(o.AL($.code,o.jo))T=-1;if(o.AL($.code,o.du))s=-1;if(o.AL($.code,o.ZQ))s=1; var E=$.ctrlKey||$.metaKey,e=o.AL($.code,dN.aev),n=o.AL($.code,dN.ajc);if(o.AL($.code,dN.FT)&&E){this.ap(this.u4,this.caller); return}if(o.AL($.code,dN.E0)){$.preventDefault();var A=this.M7,u=A.value,Y=A.selectionStart,b=A.selectionEnd; A.value=u.substring(0,Y)+"\t"+u.substring(b);A.selectionStart=A.selectionEnd=Y+1;this.l9(null);return}if((o.AL($.code,o.Wd)||o.AL($.code,o.Ib))&&E){var a=this.tp,w=this.fX; if(a>w){var X=a;a=w;w=X}var N=this.f0.add.TySh,z=g8.m5(N.h3);if(a!=w){this.Xr=z.slice(a,w);this.a5j=JSON.stringify(this.mh.IT)}}var i=g8.m5(this.f0.add.TySh.h3); if(T!=0||s!=0||e||n){$.preventDefault();var Q=this.tp;if(T!=0){if(E&&T==-1)Q=this.nR(i,this.tp-1);else if(E&&T==1)Q=this.nZ(i,this.tp); else{var A=this.M7,u=A.value;Q=this.tp+T;if(Q!=0&&u.codePointAt(Q-1)>65535)Q+=T}}else if(s!=0){var O=this.dP.UH(this.tp); if(s==-1&&O._U==0)Q=0;else if(s==1&&O._U==this.dP.acy()-1)Q=99999999999;else Q=this.dP.Gb(new aY(O.uL.x+O.uL.d/2,0),O._U+s)}else if(e){var c=this.tp-1; while(c>0&&i.charCodeAt(c)!=10)c--;Q=c==0?0:c+1}else if(n){var c=this.tp;while(c1&&T.L(dN.BJ)){E.I.pop(); E.I.pop();E.I.push(this.dF.x,this.dF.y);$.n.JU=E;$.Cd=!0}return}E.o.push("L");E.I.push(this.dF.x,this.dF.y); this.SF=this.dF;if(this.E$){$.n.JU=E;$.Cd=!0}};D.U9.prototype.xQ=function(){return this.EN!=null};D.U9.prototype.hA=function(){return this.EN!=null}; D.U9.prototype.Vb=function($,o,T,s){D.NK.prototype.Vb.call(this,$,o,T,s);if(this.EN&&this.$h>1&&this.d_&&!this.d_.jw&&!s.L(dN.BJ))this.N8($,T,s)}; D.U9.prototype.uZ=function($,o,T,s){this.d_=s;var E=this.EN;if(E==null)return;if(this.$h>1&&T.L(dN.BJ)){E.o.push("L"); E.I.push(this.dF.x,this.dF.y);return}this.N8($,o,T)};D.U9.prototype.N8=function($,o,T){this.finish($,o,T,this.d_); this.EN=null;$.n.JU=null;$.Cd=!0};D.U9.prototype.getSelection=function($,o,T,s){if(this.GP.R1(this.dF)||!this.E$)return null; return D.NK.cq(this.EN.I,null,this.Ne.anta)};D.aD=function(){D.wB.call(this,[10,11],D.ih,"tools/move"); this.$K=new aY(0,0);this.vX=new aY(0,0);this.Cj=null;this.bW=null;this.VV=new aY(0,0);this.BB=null;this.GH=null; this.YO=null;this.iA=0;this.Cg=null;this.Il=[];this.fT=null;this.zq=!1;this.e=0;this.$r=null;this.W0=null; this.Si=null;this.gy=!1;this.Em={h8:!1,Ff:!1,Z_:!1};this.a7P=!1;this.akj=!1;this.Id=null;this.UZ=null; this.adq=null;var $=[];for(var f=0;fw?[23,3]:[23,4]; if(w==0)b=[11,15,0]}else if(e=="gidsFromLayer"){var X=[],N=[],z=T.Q2();for(var f=0;f")v++;var p=T.root.BA(v),P=p; while(p.parent!=null){p=p.parent;if(O.indexOf(p.index)!=-1)P=p}var h=G.indexOf(P.index);if(h==-1){h=G.length; G.push(P.index)}B[f]=h}var j=[],C=[],V=[];for(var f=0;fE.y)e.push(u,E.y,u,s.y); if(AE.x)e.push(E.x,Y,s.x,Y);if(n128}if(!u&&(!this.gy&&this.Em.h8||this.gy&&this.Em.h8&&(T.L(dN.Et)||$.D.length<2))){var k=this.ae0($,A,T); if(!k){$.D=[];$.T7=null;$.sr=$.OW=!0;this.e=3;this.$r=new df;this.zq=!0;return}}if(T.L(dN.BJ)&&!u){var Q=new x(H.E.N); Q.U=D.Jc;Q.data={e:M.NO,a46:!0};o.J(Q)}}if($.el.length!=0){this.e=4;this.fT=$.iy[$.el[0]].rect.clone(); this.zq=!0;return}this.Cg=$.v1(e==null,e,null,!0);for(var f=0;f>2);L.Ge(c._I.YS,p,3)}else p=$.Z.channel.slice(0); var P={rect:c._I._9.clone(),channel:p};this.Si=new dt(B?[12,53]:[12,54],this);this.Si.data={e:1,c:$.D[0],_I:c._I,k2:l,yI:v,I9:$.Z,a3:P,Um:new aY(0,0)}; $.g4(this.Si);$.Z=P;$.L5=!0}}this.zq=!0;this.fT=D.p.rX($)};D.aD.prototype.ae0=function($,o,T){var s=$.root.cM(new aY(Math.floor(o.x),Math.floor(o.y))); if(s){if(s.c.add.vmsk)$.Cd=!0;var E=$.u.indexOf(s.c);if(T.L(dN.Et)){var e=$.D.indexOf(E);if(e==-1)$.D.push(E); else if($.D.length>1)$.D.splice(e,1)}else if($.D.indexOf(E)==-1){this.z2($,E)}}return s!=null};D.aD.prototype.z2=function($,o){$.u[o].dQ=0; $.D=[o];$.T7=null;$.L4();$.SK=!0;$.sr=!0};D.aD.prototype.ZS=function($,o,T,s,E){this.Cj=E;var e=$.C.VD(E.x,E.y),w,X; if(this.bW&&this.e<2)e=this.bW.$Z(e,s);if(!this.zq){if(T.Ok&&T.wK.yZ){var n=this.k3($,e),A="default"; if(n!=null)A=["col-resize","row-resize"][$.yZ[n][0]];else if(this.Id){var u=this.Id.KX(e,$.C.X);if(u)A=u}this.Rb(A,o)}this.GT($,e); return}var Y=this.vX,b=Math.round(e.x-Y.x)-this.VV.x,a=Math.round(e.y-Y.y)-this.VV.y;if(this.fT){if(this.e==2){e=D.aD.yu($,e,T,[!1,$.Z?$.Z.rect:this.fT,!0])}else{X=this.fT.clone(); X.offset(this.VV.x+b,this.VV.y+a);w=D.aD.nI($,X,T);b+=Math.round(w[0]);a+=Math.round(w[1])}}this.VV.x+=b; this.VV.y+=a;this.yT($,b,a,e,null,s.L(dN.Et));this.GT($,e);if(w)D.aD.Fv($,X,w)};D.aD.prototype.k3=function($,o){o=[o.x,o.y]; var T=$.hm(),s=$.Q2();for(var f=0;f=0){var n=new x(H.E.N,!0);n.U=D.ko;n.data={e:"editCurr",Yc:e};o.J(n)}else if(D.aD.eY(T,E,$.C,!0)){var A=new x(H.E.Q); if(E.y>$.C.Vi.w-20){A.data={e:H.V.NC,a_:"doczoom",C5:$.C.X*100,Bo:{F:H.E.N,U:D.S3,r:{e:"pzoom"}}}}else{A.data={e:H.V.NC,a_:"preferences"}}o.J(A)}}this.iA=Date.now(); D.LY.lN($)};D.aD.prototype.QP=function($,o,T,s,E){if(!this.zq)return;this.zq=!1;if(this.e==0){if(s){this.GY($,null,s,E)}else{if(this.VV.x==0&&this.VV.y==0)return; this.GY($,this.VV.clone())}$.RZ=!0}else if(this.e==2){var e=0;o=[o.x,o.y];var n=this.Cg,A=$.yZ[n],bo=this.W0[0].length,u=$.yZ.length; if(T.KC&&o[A[0]]0){var B=Y.add.GdFl;if(B==null)B=Y.add.PtFl;if(Y.d5()&&!Y.P0()&&Y.add.vmsk!=null&&L.A.Z4(Y.add.vmsk.g)&&Y.add.vmsk.A7==255&&(B==null||B.Algn&&B.Algn.v)){Y.rect.offset(A,u)}else Y.tF($); var G=$.root.gC(Y.TC($),$,o[f]);e=e.BZ(G);G.offset(-A,-u);e=e.BZ(G);if(Y.add.SoCo||Y.add.GdFl||Y.add.PtFl||dq.get(Y.add)!=null)e=e.BZ(n); Y.r2()}}$.T(e)};D.aD.a9N=function($,o){var T=[];for(var f=0;f>>1; if(Math.abs(w.x-o)>>1; if(Math.abs(w.y-o)>>1),w.y+(z>>>1),w.x+X,w.y+z]; for(var f=0;f<6;f+=2)if(Math.abs(h[f+s]-o)>>1,z>>>1,X,z]; for(var f=0;f<6;f+=2)if(Math.abs(h[f+s]-o)$.d||o.y<0||o.y>$.w)return null; var n=new df(0,0,$.d,$.w);if(E==null&&n.R1(s.rect))e=s.buffer;else{e=L.G(n.Y()*4);if(E==null)L.h9(s.buffer,s.rect,e,n); else D.x5.PO(E.channel,E.rect,E.color,e,n)}var A=D.xn.nJ(e,n,o,null,T),u=L.ac(A,n),Y=L.G(u.Y());L.pg(A,n,Y,u); return{rect:u,channel:Y}};D.xn.cV=function($,o,T){var s=o.d,E=o.w,n=0,A=0,u=0,Y=0;$=new Uint32Array($.buffer); var e=[],b=T.length;for(var f=0;f>8&255,z>>16&255,z>>>24])}return e}; D.xn.nJ=function($,o,T,s,E){$=new Uint32Array($.buffer);var e=o.d,n=o.w,A=e*n;if(s==null)s=D.xn.cV($,o,[T]); var u=Math.round(T.x-.5-o.x),Y=Math.round(T.y-.5-o.y),b=Y*e+u,a=Date.now(),w=L.G(e*n),X=E[0],N=1/X,z=E[1]&&X>0?255:0; if(E[2]){var i=L.G(w.length),k=new Uint32Array(A),Q=1;k[0]=u<<16|Y;i[b]=1;while(Q>0){var O=k[Q-1];Q--; var c=O>>>16,B=O&65535,f=B*e+c,G=D.xn.lW($[f],s);if(G>X){var l=z*(1-Math.max(0,Math.min(1,(G-X)*N))); w[f]=~~l}else{w[f]=255;if(B!=n-1&&i[f+e]==0){k[Q++]=c<<16|B+1;i[f+e]=1}if(B!=0&&i[f-e]==0){k[Q++]=c<<16|B-1; i[f-e]=1}if(c!=e-1&&i[f+1]==0){k[Q++]=c+1<<16|B;i[f+1]=1}if(c!=0&&i[f-1]==0){k[Q++]=c-1<<16|B;i[f-1]=1}}}}else{for(var f=0; f0&&(w[f-1]==255||B>0&&w[f-e-1]==255||B0&&w[f-e+1]==255||B0&&w[f-e]==255||B>>8&255,E=$>>>16&255,e=$>>>24&255;if(o[3]==0)return e<5?0:255; var n=Math.max(Math.abs(T-o[0]),Math.max(Math.abs(s-o[1]),Math.abs(E-o[2])));return e==0?255:n};D.VH=function($,o){if(o)D.x5.call(this); else if($)D.x5.call(this,[10,49],D.ky,"tools/camove");else D.x5.call(this,[10,26],D.Od,"tools/patch"); this.SF=null;this.EN=null;this.l=null;this.tP=null;this.oe=new aY;this.qe=null;this.yq=null};D.VH.prototype=new D.x5; D.VH.prototype.iO=function($,o,T,s,E){var e=$.C.VD(E.x,E.y);if($.Z&&L.cM(e,$.Z.channel,$.Z.rect)){var n=new df(0,0,$.d,$.w),A=n.Sr($.Z.rect); if(!$.Jt()||A.p4())return;if(!0){var u=L.G(A.Y());L.pg($.Z.channel,$.Z.rect,u,A);$.Z={channel:u,rect:A}}this.gK($); this.GX($);this.tP=e;this.oe=new aY(e.x-$.Z.rect.x,e.y-$.Z.rect.y);this.yq=L.G($.Z.rect.Y()*4);this.yq.fill(255); if(this.Em.patch==1){var Y=$.u[$.D[0]];Y.Yd($,$.Z,!0);if(Y._I==null)this.tP=null}this.qe=$.Z.rect.clone()}else{this.EN={I:[e.x,e.y],o:["M"]}; this.SF=e}};D.VH.prototype.ZS=function($,o,T,s,E){var e=$.C.VD(E.x,E.y);if(this.tP){if(this.Em.patch==1){if($.el.length==0){var n=$.u[$.D[0]]._I,A=e.x-this.oe.x,u=e.y-this.oe.y; D.aD.vH($,$.D[0],Math.round(A-n._9.x),Math.round(u-n._9.y))}}else this.ly($,e,"clone")}if(this.SF){this.EN.o.push("L"); this.EN.I.push(e.x,e.y);this.SF=e;$.n.JU=this.EN;$.Cd=!0}};D.VH.prototype.yg=function($,o,T,s,E){var e=$.C.VD(E.x,E.y); if(this.tP){var n=$.Z.rect.clone();if(this.id==D.ky){var A=$.u[$.D[0]];A.qf($,A._I);$.Z.rect=this.qe.clone(); var u=L.G($.Z.rect.Y()*4);L.aM($.Z.channel,u,3);this.o7($,"sheal",u,$.Z.rect,$.Z.rect);$.Z.rect=n;n=n.BZ(this.qe)}this.ly($,e,"heal"); this.finish($,n,null,null,!0);$.T(n);this.tP=null}if(this.SF){var Y=D.NK.kI(this.Em.setop,s.L(dN.Et),s.L(dN.BJ)),b=new x(H.E.b0,!0); if(this.EN.I.length<=4)b.data=D.NK.Gw();else b.data=D.NK.cq(this.EN.I,Y);o.J(b);this.SF=null;$.n.JU=null; $.Cd=!0}};D.VH.prototype.k4=function(){return this.l};D.VH.prototype.UR=function($,o,T,s,E){D.x5.prototype.UR.call(this,$,o,T,s,E); this.Rb(E,s)};D.VH.prototype.Rb=function($,o){var T="auto;";if(o!=null&&o.L(dN.Et)&&!o.L(dN.BJ)||this.Em.setop=="union")T="copy"; var s=new x(H.E.Q,!0);s.data={e:H.V.bl,j$:T};if(this.caller)this.caller.J(s)};D.VH.prototype.ly=function($,o,T){var s=new aY(Math.round(this.tP.x-o.x),Math.round(this.tP.y-o.y)); if(this.Em.patch==1)s.A5(-s.x,-s.y);this.l=s;this.o7($,T,this.yq,$.Z.rect,$.Z.rect);this.T($,$.Z.rect)}; D.bm=function(){D.VH.call(this,!0);this.Em.patch=1};D.bm.prototype=new D.VH(!0,!0);D.GG=function(){D.x5.call(this,[10,13],D.an8,"tools/pbucket")}; D.GG.prototype=new D.x5;D.GG.prototype.enable=function($,o,T,s){var E=new x(H.E.Q,!0);E.data={e:H.V.bl,j$:"default"}; o.J(E)};D.GG.prototype.YE=function($,o){};D.GG.prototype.yg=function($,o,T,s,E){if(this.Pv(s,o,E))return; if(!$.Jt())return;var e=$.C.VD(E.x,E.y),n=D.xn.pH($,e,this.Em.wconf);if(n==null)return;var A=L.G(n.rect.Y()*4); L.wr(A,(T.z4&255)<<16|(T.z4>>8&255)<<8|(T.z4>>16&255)<<0);L.aM(n.channel,A,3);this.gK($);this.o7($,"draw",A,n.rect,n.rect); this.T($,n.rect);this.finish($,n.rect)};D.Pq=function(){D.NK.call(this,[10,14],D.a5C,"tools/plasso"); this.Mf="crosshair";this.To=[];this.gL=null;this.EN=null;this.anT=0};D.Pq.prototype=new D.NK;D.Pq.prototype.disable=function($,o,T,s){this.wA($)}; D.Pq.prototype.gO=function($,o,T,s){this.To=[dN.sV,dN.Ln]};D.Pq.prototype.Ty=function($){return this.To.indexOf($)!=-1}; D.Pq.prototype.ut=function($){return this.EN!=null};D.Pq.prototype.hA=function(){return this.EN!=null}; D.Pq.prototype.xQ=function(){return this.EN!=null};D.Pq.prototype.$d=function($,o,T,s){if(this.EN==null)return; var E=this.EN,e=E.I,n=e.length-2,A=this.dF;if(this.$h>1&&T.L(dN.BJ)&&s.jw){e.push(0,0);E.o.push("L"); n+=2}else if(T.L(dN.Et))A=D.eH.mq(new aY(e[n-2],e[n-1]),A);e[n]=A.x;e[n+1]=A.y;$.n.JU=E;$.Cd=!0};D.Pq.prototype.uZ=function($,o,T,s){var E=Date.now(); if(this.EN==null)this.EN={I:[this.dF.x,this.dF.y,this.dF.x,this.dF.y],o:["M","L"]};else{this.$d($,o,T,s); if(E-this.anT<250||aY.Sa(this.dF,new aY(this.EN.I[0],this.EN.I[1]))<5*H.K()/$.C.X){this.gL=this.EN;this.finish($,o,T,s); this.wA($);return}this.EN.o.push("L");this.EN.I.push(this.dF.x,this.dF.y)}this.anT=E;$.n.JU=this.EN}; D.Pq.prototype.wA=function($){this.EN=null;this.To=[];if($!=null){$.n.JU=null;$.Cd=!0}};D.Pq.prototype.Vb=function($,o,T,s){D.NK.prototype.Vb.call(this,$,o,T,s); if(s.L(dN.R5)&&this.EN==null&&this.gL&&$.Z!=null){var E=new x(H.E.N);E.U=D.Ww;E.data={e:"h_stepbck"}; o.J(E);this.gO($,T,s,null);this.EN=this.gL;return}if(this.EN==null)return;if(s.L(dN.sV)||s.L(dN.Ln)){this.EN.I.pop(); this.EN.I.pop();this.EN.o.pop();this.$d($,T,s)}if(s.L(dN.FT)){if(this.EN.I.length>4){this.gL=this.EN; this.finish($,T,s)}this.EN=null}if(s.L(dN.R5)){this.EN=null}$.n.JU=this.EN;$.Cd=!0};D.Pq.prototype.getSelection=function($,o,T,s){return D.NK.cq(this.EN.I,null,this.Ne.anta)}; D.KO=function(){D.NK.call(this,[10,10],D.a1G,"tools/mlasso");this.Mf="crosshair";this.To=[];this.g=[]; this.O$=[];this.xv=[];this._R=null;this.TL=null;this.xf=null;this.iA=0;this.pY=0};D.KO.prototype=new D.NK; D.KO.prototype.disable=function($,o,T,s){this.clear($)};D.KO.prototype.ut=function($){return this.g.length!=0}; D.KO.prototype.xQ=function(){return this.g.length!=0};D.KO.prototype.Ty=function($){return this.To.indexOf($)!=-1}; D.KO.prototype.gO=function($,o,T,s){this.To=[dN.sV,dN.Ln];var E=this._t(this.GP,$);if(this.g.length!=0&&(aY.Sa(E,this.g[0])<4*H.K()/$.C.X||Date.now()-this.iA<300)){this.Nw($,this.g[0]); this.finish($,o,T);this.clear($);return}this.iA=Date.now();if(this.g.length!=0)E=this.LJ(E,$);else{var e=$.d,n=$.w,A=L.G(e*n),u=$.aw(),Y=e*n*4; for(var f=0;f>>2]=~~(.5+L.DB(u[f],u[f+1],u[f+2])*(u[f+3]*(1/255)));this._R=L.r9.a1m(A,e,n); this.xf=new Uint16Array(A.length)}this.Nw($,E);this.pY=T.L(dN.BJ)?1:0;this.bT($)};D.KO.prototype.Nw=function($,o){var T=this.g; this.O$[T.length]=this.xv.length;if(T.length!=0){L.r9.$z(this.TL,o.y*$.d+o.x);var s=this.Nu($,o);s.reverse(); var E=D.KO.Sw($,s);this.xv=this.xv.concat(E)}T.push(o);this.yn($)};D.KO.prototype.yn=function($){var o=this.g[this.g.length-1],T=o.y*$.d+o.x; this.TL=L.r9.afU(this._R.ve,this._R.FI,T);this.xf.fill(0)};D.KO.prototype._t=function($,o){return new aY(Math.floor(Math.max(0,Math.min(o.d-1,$.x))),Math.floor(Math.max(0,Math.min(o.w-1,$.y))))}; D.KO.prototype.clear=function($){this.xv=[];this.g=[];this.O$=[];this._R=null;this.TL=null;this.xf=null; if($!=null){$.n.JU=null;$.n.EJ=[];$.Cd=!0}this.To=[]};D.KO.prototype.$d=function($,o,T,s){var E=this.g,e=E.length; if(e==0)return;var n=this.LJ(this._t(this.dF,$),$),A=this.Nu($,n);for(var f=0;f30&&aY.Sa(Y,E[e-1])>20){this.Nw($,Y);return}this.xf[u]++}if(this.pY==1&&s.jw)this.Nw($,n); this.bT($)};D.KO.prototype.bT=function($){var o=this.g;if(o.length!=0){var T=this.LJ(this._t(this.dF,$),$),s=this.Nu($,T); s.reverse();var E=D.KO.Sw($,s),e=this.xv.concat(E),n=$.n.JU={I:e,o:["M"]};for(var f=2;f5e3){console.log(e); throw"e"}}return e};D.KO.Sw=function($,o){var T=[],s=$.d;for(var f=0;f=T||b<0||b>=s)continue; L.r9.$z(this.TL,b*T+Y);if(this.TL.Uq[b*T+Y]1){var u=A.x-this.Tu.x,Y=A.y-this.Tu.y;for(var f=0; f2){T.push(o[2].x,o[2].y); s.push("L")}$.n.JU={o:s,I:T};$.n.EJ=T}$.Cd=!0};D.cr.prototype.wA=function($){$.n.JU=null;$.n.EJ=[]}; D.cr.a6k=function($,o,T){var s=o.x-$.x,E=o.y-$.y,e=Math.abs(E*T.x-s*T.y+o.x*$.y-o.y*$.x),n=Math.sqrt(s*s+E*E); return n==0?0:e/n};D.yW=function(){D.x5.call(this,[10,19],D.qT,"tools/sharpen");this.Yb="copy"};D.yW.prototype=new D.x5; D.yW.prototype.iO=function($,o,T,s,E){var e=this.Em.pdetail?ih.K1:ih.qT;if(s.L(dN.BJ))e=ih.A1;this.gB($,T,s,E,this.Em.strn,e); if(this.VP==null)return;this.m9($)};D.yW.prototype.ZS=function($,o,T,s,E){this.NF($,o,T);if(this.Gh)this.g1($,T,E); if(this.VP==null)return;if(!E.jw)return;this.X$($,T,s,E);this.m9($)};D.SM=function(){D.x5.call(this,[10,24],D.iP,"tools/shbrush"); this.Yb="draw";this.Em.opacity=.5};D.SM.prototype=new D.x5;D.SM.prototype.iO=function($,o,T,s,E){this.gB($,T,s,E,1); if(this.VP==null)return;this.GX($);this.m9($)};D.SM.prototype.ZS=function($,o,T,s,E){this.NF($,o,T); if(this.Gh)this.g1($,T,E);if(this.VP==null)return;if(!E.jw)return;this.X$($,T,s,E);this.m9($)};D.SM.prototype.yg=function($,o,T,s,E){if(this.VP==null)return; this.o7($,"sheal",this.VP.su(),this.VP.rX(),this.VP.cx(),null);this.T($,this.VP.cx());D.x5.prototype.yg.call(this,$,o,T,s,E)}; D.I$=function(){D.x5.call(this,[10,20],D.FS,"tools/smudge");this.Yb="copy"};D.I$.prototype=new D.x5; D.I$.prototype.iO=function($,o,T,s,E){this.gB($,T,s,E,this.Em.strn,ih.FS);if(this.VP==null)return;this.m9($)}; D.I$.prototype.ZS=function($,o,T,s,E){this.NF($,o,T);if(this.Gh)this.g1($,T,E);if(this.VP==null)return; if(!E.jw)return;this.X$($,T,s,E);this.m9($)};D.V3=function(){D.x5.call(this,[10,23],D.zv,"tools/sponge"); this.Yb="sponge"};D.V3.prototype=new D.x5;D.V3.prototype.iO=function($,o,T,s,E){this.gB($,T,s,E,this.Em.flow); if(this.VP==null)return;this.m9($)};D.V3.prototype.ZS=function($,o,T,s,E){this.NF($,o,T);if(this.Gh)this.g1($,T,E); if(this.VP==null)return;if(!E.jw)return;this.X$($,T,s,E);this.m9($)};D.Kl=function(){D.wB.call(this,[10,17],D.S3,"tools/zoom"); this.lY=!1;this.Dt=!0;this.zw=0;this.Er=null;this.UP=null;this.jL=0;this.o2=null;this.fV=0;this.Pu=new eb([{name:[8,0],ep:"Ctrl + +"},{name:[8,1],ep:"Ctrl + -",iR:!0},{name:[20,3],ep:"Ctrl + 0"},{name:["VAR0: 100%",[20,2]],ep:"Ctrl + 1"}],[{F:H.E.N,U:D.S3,r:{e:"zoom",Dt:!0}},{F:H.E.N,U:D.S3,r:{e:"zoom",Dt:!1}},{F:H.E.N,U:D.S3,r:{e:"adapt",H:"fitscr"}},{F:H.E.N,U:D.S3,r:{e:"adapt",H:"pixel"}}])}; D.Kl.prototype=new D.wB;D.Kl.prototype.oW=function($,o,T,s,E){var e=this.Pu;e.f();e.parent=o;e.update($,T); var n=new x(H.E.Q,!0);n.data={e:H.V.NM,bF:e,x:E.uT+2,y:E.$T+1};o.J(n)};D.Kl.prototype.enable=function($,o,T,s){this.Qi(o,s); if($&&Date.now()-this.zw<300)this.A2({e:"adapt",H:"pixel"},o,$,s,T);this.zw=Date.now()};D.Kl.prototype.iO=function($,o,T,s,E){this.UP=new aY(E.x,E.y); this.jL=$.C.X;this.o2=$.C.l.clone()};D.Kl.prototype.ZS=function($,o,T,s,E){if(this.UP==null)return;var e=Math.exp(Math.log(this.jL)+(E.x-this.UP.x)/64); e=Math.max(.02,Math.min(32,e));$.C.X=this.jL;$.C.l=this.o2.clone();this.A2({e:"zoom",X:e,Cj:this.UP},o,$,s,T)}; D.Kl.prototype.yg=function($,o,T,s,E){if(aY.Sa(this.UP,E)<4){var e=this.N2(s);this.A2({e:"zoom",Dt:e,Cj:E},o,$,s,T)}this.UP=null}; D.Kl.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]; D.Kl.cb=function($,o,T,s){var E=1;while($*E*1/2>T||o*E*1/2>s)E*=1/2;if($*E*2/3>T||o*E*2/3>s)E*=1/2;else if($*E>T||o*E>s)E*=2/3; return E};D.Kl.MV=function($,o){var T=D.Kl.dT($);if(o&&T==0)return $;if(!o&&T==D.Kl.aK.length-1)return $; return D.Kl.aK[o?T-1:T+1]};D.Kl.dT=function($){var o=0;while(D.Kl.aK[o]>$)o++;return o};D.Kl.PT=function($,o,T,s){var E=$.u4; if(s==0||s==null){s=D.Kl.MV($.X,T);if(s==$.X)return}var e=$.VD(o.x,o.y);if(E.d*s<=$.Vi.d&&E.w*s<=$.Vi.w){$.l.A5(0,0); $.X=s}else{var n=$.jj(),A=$.X/s;n.translate(-e.x,-e.y);n.scale(A,A);n.translate(e.x,e.y);$.o8(n)}};D.Kl.prototype.A2=function($,o,T,s,E){if($.e=="pzoom"){if(typeof $.H=="string")return; $={e:"zoom",X:$.H/100}}var e=0,n=!1,A=null;if($.e=="adapt"){var u=0;if($.H=="pixel")u=1;if($.H=="fitscr"){var u=0,Y=T.C.Vi.d,b=T.C.Vi.w; u=Math.min((Y-14)/T.d,(b-14)/T.w)}A=new aY(Math.round(T.C.Vi.d/2),Math.round(T.C.Vi.w/2));e=u;D.Kl.PT(T.C,A,n,e); T.RZ=!0}if($.e.startsWith("multi")){function a(p){var P=p[0].x-p[1].x,h=p[0].y-p[1].y;return Math.sqrt(P*P+h*h)}function w(p){return new aY((p[0].x+p[1].x)/2,(p[0].y+p[1].y)/2)}var X=$.jV,N=w(X); if($.e=="multidown"){this.Er=[X,T.C.X,T.C.VD(N.x,N.y)]}else{e=this.Er[1]*a(X)/a(this.Er[0]);if(e>=1)e=Math.min(32,Math.round(e)); else{var z=0,i=1e9,k=D.Kl.aK;for(var f=0;fG){n=!1; this.fV=Math.min(this.fV-G,G-1)}else return;D.Kl.PT(T.C,A,n,e);T.RZ=!0}if($.e=="zoom"){A=$.Cj?$.Cj:new aY(Math.round(T.C.Vi.d/2),Math.round(T.C.Vi.w/2)); if($.X!=null)e=$.X;else n=$.Dt;D.Kl.PT(T.C,A,n,e);T.RZ=!0}if($.e=="mskView"){var l=T.u[T.D[0]],v=l.dQ==3?l.DE(T)._:l.yy(); if($.H==0){T.C.xR=[1,1,1];v.T9=!1}if($.H==1){T.C.xR=[1,1,1];v.T9=!0}if($.H==2){T.C.xR=[0,0,0];v.T9=!0}for(var f=0; f>>16&255,m:$>>>8&255,P:$>>>0&255}); this.YO.J(o)}};D.Ie.prototype.A2=function($,o,T,s,E){this.YO=o;if($.e=="newfill"){if($.tU==0){var e=new x(H.E.Q,!0); e.data={e:H.V.NC,a_:"colorpicker",zS:E.z4,Ba:this.alK.bind(this)};o.J(e)}}else if($.e=="pathedit"){var n=$.f8,A="",u=T.w5.slice(0),Y=T.dl.slice(0),b=T.w5.slice(0),a=T.dl.slice(0); if(n=="rnm"){var w=-1-$.II,X=u[w],N=iG.om($.name,X.add);if(w!=0)b[w]=N;else{a=[b.length];b.push(N);b[0]=iG.om("Work Path")}A="Rename"}else if(n=="new"){b.push(iG.om("Path "+u.length)); a=[b.length-1];A="New"}else if(n=="del"){if(a.length==0)return;a.sort(function(p,S){return p-S});if(a[0]==0){b[0]=iG.om(u[0].name); a=a.slice(1)}var z=0;while(a.length!=0){b.splice(a[0]-z,1);a=a.slice(1);z++}A="Delete"}else if(n=="fromsel"){var i=b[0]=iG.om("Work Path"); a=[0];if(T.Z==null)return;var k=T.Z.channel.slice(0);for(var f=0;f128?2:1;var Q=T.Z.rect.clone(); Q.Mi(1,1);var O=L.G(Q.Y());L.pg(k,T.Z.rect,O,Q);var c=gE.Ra(O,Q.d,Q.w,Math.round(Q.Y()*5e-4)),B=gE.Vp(c),G=new fY(1,0,0,1,-1+T.Z.rect.x,-1+T.Z.rect.y); for(var f=0;f=g){m.D.splice(f,1);f--}m.Rc=[];P="Delete Anchors"}else{if(m.D.length==0)return;var z=0; for(var f=0;f0){var e=["SoCo","GdFl","PtFl"][E-1]; for(var f=0;f<3;f++)delete $.add[["SoCo","GdFl","PtFl"][f]];$.add[e]=o.n$}};D.U5=function($,o,T,s){D.Ie.call(this,$,o,T); this.Em={tmode:0,shape:aS.o_(),pshape:0,binop:0,crad:0,irad:40,length:4,sides:5,width:5,tolr:5,tsiz:300,cstr:{KR:0},anta:!0}; this.an9=s;this.mj=null;this.K7=null;this.e7=null};D.U5.prototype=new D.Ie;D.U5.prototype.ut=function($){return $.jw&&this.id!=D.Va}; D.U5.prototype.enable=function($,o,T,s,E){this.GH=T;var e=new x(H.E.Q,!0);e.data={e:H.V.bl,j$:"crosshair"}; o.J(e)};D.U5.prototype.G8=function($,o,T,s){};D.U5.prototype.iO=function($,o,T,s,E){var e=this.Em.tmode; if(e!=2)this.HO(o,T);if(e==2&&!$.Jt())return;var n=$.C.VD(E.x,E.y);n=D.aD.yu($,n,T);this.e7=[n.x,n.y]; this.mj=n;this.K7=new aY(0,0)};D.U5.prototype.fd=function($,o,T){var s=[this.mj.clone(),o.clone()];if(this.an9)s=D.U5.XS(s[0],s[1],T,!0,this.Em.cstr); if($)$.C.Xk=new df(s[0].x,s[0].y,s[1].x-s[0].x,s[1].y-s[0].y);return this.G8(s[0],s[1],T.L(dN.Et),this.e7)}; D.U5.prototype.D6=function($,o,T){var s=$.C.VD(o.x,o.y),E=this.Em.cstr;if(E.KR==2){var e=new df(s.x-E.x,s.y-E.y,E.x,E.y),n=D.aD.nI($,e,T); s.x+=n[0];s.y+=n[1];D.aD.Fv($,e,n)}else s=D.aD.yu($,s,T);return s};D.U5.prototype.ZS=function($,o,T,s,E){if(this.mj==null)return; var e=this.e7,n=e.length,A=E?this.D6($,E,T):new aY(e[n-2],e[n-1]);if(s.L(dN.Gv))this.mj=A.V4(this.K7); else this.K7=A.V4(this.mj);e.push(A.x,A.y);if(this.Em.shape==null)this.Em.shape=T.vx[0];var u=this.fd($,A,s)[0],Y=L.M.Ld(u); $.n.JU=Y;if(this.id!=D.Va&&this.id!=D.ar&&this.id!=D.Xn)D.wB.C9(E.x+10,E.y-10,$.C.Xk,$,T);$.Cd=!0};D.U5.prototype.ad_=function($,o,T,s){var E=$[4].clone(); if(s){E.x-=o/2;E.y-=T/2}var e=this.G8(E,new aY(E.x+o,E.y+T),!1,this.e7);this.wL($[0],$[1],$[2],e)};D.U5.prototype.wL=function($,o,T,s){var E=new x(H.E.b0,!0); E.data=D.U5.N_(s[1],T);o.J(E);if(s[1].v.classID=="customShape"&&s[1].v.Nm.v.startsWith("--")){var e=$.Vp(),n=e[0],A=e[1],u=n[A.pop()],Y=u.add.vmsk,b=u.add.vogk,a=Y.clone(); a.g=s[0];this.Fi($,u.II,a,b)}};D.U5.prototype.yg=function($,o,T,s,E){if(this.mj==null)return;var e=this.D6($,E,T),n=this.Em.binop,A=this.Em.tmode,u=this.e7,Y=u.length; if(this.id==D.Va&&Y<=4){}else if(Y<=4){e.x=Math.round(e.x);e.y=Math.round(e.y);var b=new x(H.E.Q);b.data={e:H.V.NC,a_:"createshape",a8H:this.ad_.bind(this),a9l:this.name,a0o:[$,o,T,s,e]}; o.J(b)}else if(Y!=2){var a=this.fd($,e,s),w=a[0];if(A==1&&w.length>2){w[2].m6=[1,2,3,0][n];var X=$.Vp(!0),N=X[0],z=X[1],i=N[z.pop()],k=i.add.vmsk,Q=i.add.vogk,O=k.clone(),c=k.clone(),B=JSON.stringify(Q); c.g=c.g.concat(w.slice(2));c.D=[L.A.MM(c.g)-1];var G=L.qy.Rg(a[1]);Q.push(G?G:L.qy.Ke());this.Fi($,i.II,c,Q); this.nA($,this.name,i.II,O,c,null,B,JSON.stringify(Q))}else if(A==0){this.wL($,o,T,a)}else if(A==2){var c=new M.PZ; c.g=c.g.concat(w.slice(2));var l=c.yy();if(!this.Em.anta)L.round(l.channel);var v=L.G(l.rect.Y()*4); L.wr(v,(T.z4&255)<<16|(T.z4>>8&255)<<8|(T.z4>>16&255)<<0);L.aM(l.channel,v,3);var p=new x(H.E.N,!0); p.U=D.m8;p.data={e:"draw",jB:{buffer:v,rect:l.rect.clone()},U1:this.name};o.J(p)}}this.mj=null;$.n.JU=null; $.n.BD=null;$.n.bt=[];$.C.Xk=null;$.Cd=!0};D.U5.prototype.UR=function($,o,T,s,E){for(var T in $)this.Em[T]=$[T]}; D.U5.XS=function($,o,T,s,E){var e=$.x,n=$.y,A=o.x,u=o.y;if(E&&E.KR==2){if(s){A=Math.round(A);u=Math.round(u)}e=A-E.x; n=u-E.y}else{var Y=0;if(E&&E.KR==1)Y=E.y/E.x;else if(T&&T.L(dN.Et))Y=1;if(Y!=0){if(s){if(ee?e+w:e-w;u=u>n?n+w*Y:n-w*Y}if(T&&T.L(dN.BJ)){e-=A-e;n-=u-n}}var $=new aY(e,n),o=new aY(A,u); if(s)D.U5.a3x($,o);return[$,o]};D.U5.a3x=function($,o){if($.x>o.x){var T=$.x;$.x=o.x;o.x=T}if($.y>o.y){var T=$.y; $.y=o.y;o.y=T}$.x=Math.floor($.x);$.y=Math.floor($.y);o.x=Math.ceil(o.x);o.y=Math.ceil(o.y)};D.U5.a5D=function(){return{classID:"Mk",null:{t:"obj ",v:[{t:"Clss",v:{classID:"contentLayer"}}]},Usng:{t:"Objc",v:{classID:"contentLayer",Type:{t:"Objc",v:{}}}}}}; D.U5.V0=function($,o){var T=D.U5.a5D();if(o==null)o=JSON.parse(JSON.stringify(ev.WA[$]));cf.kz.Nx(o,T.Usng.v.Type.v,$); return{Wk:"make",bI:T}};D.U5.N_=function($,o){var T=o.Av,s=JSON.parse(JSON.stringify(o.MD));if(T.Ul==0)s.fillEnabled.v=!1; var E=D.U5.V0(Math.max(0,T.Ul-1),T.n$);E.bI.Usng.v.Shp=$;E.bI.Usng.v.strokeStyle={t:"Objc",v:s};return E}; D.Br=function(){D.Ie.call(this,[10,29],D.zT,"tools/pen");this.D1=null;this.vJ=null;this.Kn=null;this.x3=0; this.am8=0;this.pn=null;this._N=!1;this.SR=!1;this.wY=!1};D.Br.prototype=new D.Ie;D.Br.prototype.ut=function($){return this.vJ!=null}; D.Br.prototype.Vb=function($,o,T,s){D.Ie.prototype.Vb.call(this,$,o,T,s);if(!s.L(dN.BJ))this.wY=!1}; D.Br.prototype.iO=function($,o,T,s,E){this.D1=E;this.HO(o,T);var e=$.C.VD(E.x,E.y),X,N;e.x=Math.round(e.x); e.y=Math.round(e.y);var n=D.aD.yu($,e,T),A=$.Vp(this.x3==1),u=A[0],Y=A[1],b=u[Y.pop()],a=b?b.add.vmsk:null,w=4*H.K()/$.C.X; if(a)X=L.A.cM(a.g,e,!0,w);var z=s.L(dN.BJ);if(this.x3==0&&(a==null||a.Rc.length==0&&X.II==-1)){var i=new x(H.E.b0,!0),k=L.qy.ya("customShape",[0,0,1,1],null,null,null,"--"); i.data=D.U5.N_(k,T);o.J(i);A=$.Vp(!0);u=A[0];Y=A[1];b=u[Y.pop()];a=b.add.vmsk;a.g=a.g.slice(0,2)}var Q=b.add.vogk; this.vJ=a.clone();this.Kn=JSON.stringify(Q);var O=a.g,c=L.A.MM(O);N=L.A.PW(a.g,new df(e.x-w,e.y-w,w*2,w*2),a.Rc); X=L.A.cM(a.g,e,!0,w);var B=N[0].length+N[1].length+N[2].length;if(X.II!=-1&&N[0].length==0){var G=L.A.kE(O,X.II); while(O[G].length<=X.PS){X.PS-=O[G].length;G+=O[G].length+1}O[G].length++;O.splice(G+2+X.PS,0,{type:4,Wq:n.clone(),W:n.clone(),JL:n.clone()}); a.Rc=[G+2+X.PS]}else if(B!=0&&z){var l=0;for(var f=0;f<3;f++)if(N[f].length!=0){l=N[f][0];this.SR=f==1; break}if(N[0].length!=0){var v=a.g.length-1,p=a.g[l];p.JL=p.W.clone();var P=p.type>=3?3:0;if(l!=v){p.Wq=p.W.clone(); p.type=P+1;this.wY=!0}else p.type=P+2}a.Rc=[l]}else if(N[0].length==1&&O[N[0][0]-1]&&O[N[0][0]-1].m6==null){var l=N[0][0],G=L.A.c9(O,l); G=L.A.kE(O,G);var h=G+O[G].length;if(l!=h){O[G].length--;O.splice(l,1);h--}a.Rc=[h]}else{var j=0;if(a.Rc.length!=1){a.D=[c]; O.push({type:3,length:1,m6:[1,2,3,0][this.am8],aq:0,ZO:0,Eg:0});j=O.length;Q.push(L.qy.Ke())}else{var C=a.Rc[0],V=L.A.c9(O,C),G=L.A.kE(O,V); C=G+O[G].length;if(aY.Sa(e,O[G+1].W)0}else{var i=this.fT.clone(),k=i.x,Q=i.y;i.offset(e.x-this.Kg.x,e.y-this.Kg.y); i.x=Math.round(i.x);i.y=Math.round(i.y);var O=D.aD.nI($,i,T),c=new fY(1,0,0,1,i.x-k+O[0],i.y-Q+O[1]); L.A.hR(A.g,c,A.D);L.qy.t(u,L.$.KQ(c),A.D);D.aD.Fv($,i,O)}this.Fi($,n.II,A,u)}else{var B=this.Kg;$.n.JU=L.M.Uo(new df(B.x,B.y,e.x-B.x,e.y-B.y)); $.Cd=!0}};D.vi.prototype.yg=function($,o,T,s,E){if(this.Kg==null)return;var e=$.C.VD(E.x,E.y),n=this.EN,A=n?n.add.vmsk:null; if(this.ny){var u=JSON.stringify(n.add.vogk);if(!this.Kg.R1(e))this.nA($,"Move Paths",n.II,this.vJ,A,null,this.Kn,u); if($!=null&&$.n.BD){$.n.BD=null;$.Cd=!0}}else{if(A){var Y=this.Kg,b=new df(Y.x,Y.y,e.x-Y.x,e.y-Y.y),a=L.A.amd(A.g,b); if(s.L(dN.Et)){for(var f=0;fY+b)e[X]+=a}this.uw(s,E);s.Rc=[]}this.Fi(this.fN,this.EN.II,s,E); if($=="cancel")this.wA()};D.ne.prototype.disable=function($,o,T,s){this.l2($)};D.ne.prototype.iO=function($,o,T,s,E){this.l2($); var e=$.C.VD(E.x,E.y),a,w,X;this.on=e.clone();var n=$.Vp(),A=n[0],u=n[1];if(u.length==0)return;var Y=4*H.K()/$.C.X,b=new df(e.x-Y,e.y-Y,Y*2,Y*2); for(var N=0;N>>1);$.n.hz.push(P.x,P.y); $.Cd=!0}}}};D.ne.prototype.l2=function($){if($&&$.n.hz.length!=0){$.n.hz=[];$.n.v$=[];$.Cd=!0}};D.ne.prototype.yg=function($,o,T,s,E){var e=$.C.VD(E.x,E.y),n=this.EN,A=n?n.add.vmsk:null,u=n?n.add.vogk:null; if(this.ri!=-1){if(Date.now()-this.iA<300){var Y=A.g[this.ri],b=this.vk,a=null;if(b==0){var w=Y.Wq.R1(Y.W),X=Y.JL.R1(Y.W); if(!w&&!X){a="Anchor Type";if(Y.type==1||Y.type==4)Y.type++;else{Y.type--;Y.JL=Y.W.add(Y.W.V4(Y.Wq))}}else{a="Add Handles"; if(w&&X){Y.Wq.x-=30;Y.JL.x+=30}else if(w)Y.Wq=Y.W.add(Y.W.V4(Y.JL));else if(X)Y.JL=Y.W.add(Y.W.V4(Y.Wq))}}else{a="Remove Handle"; if(b==1)Y.Wq.sn(Y.W);else Y.JL.sn(Y.W)}this.uw(A,u);this.Fi($,n.II,A,u);this.nA($,a,n.II,this.vJ,A,null,this.Kn,JSON.stringify(u))}else if(!this.on.R1(e)){this.nA($,"Drag Anchors",n.II,this.vJ,A,null,this.Kn,JSON.stringify(u))}this.iA=Date.now()}else if(this.Kg!=null){var N=this.Kg,z=new df(N.x,N.y,e.x-N.x,e.y-N.y); if(z.d<0)z.x+=z.d;if(z.w<0)z.y+=z.w;z.d=Math.abs(z.d);z.w=Math.abs(z.w);var i=L.A.PW(A.g,z);A.Rc=i[0].concat(s.L(dN.Et)?A.Rc:[]); $.n.JU=null}this.wA();$.Cd=!0};D.ne.prototype.wA=function(){this.EN=null;this.vJ=null;this.Kg=null;this.ri=this.vk=-1; this.bW=null};D.ne.prototype.uw=function($,o){for(var f=0;f<$.Rc.length;f++){var T=L.A.c9($.g,$.Rc[f]); L.qy.qZ(o,T)}};D.ne.prototype.Vb=function($,o,T,s){if($==null)return;var E=$.Vp(),e=E[0],n=E[1];if(n.length==0)return; var A=e[n[0]],u=A.add.vmsk;if(u==null||u.Rc.length==0)return;var Y=A.add.vogk,b=JSON.stringify(Y),a=s.cu(); if(a.x!=0||a.y!=0){var w=u.clone(),X=u.clone(),N=new fY(1,0,0,1,a.x,a.y);L.A.hR(X.g,N,null,X.Rc);this.uw(X,Y); this.Fi($,A.II,X,Y);this.nA($,"Move Anchors",$.D[0],w,X.clone(),!0,b,JSON.stringify(Y))}if(s.L(dN.sV)||s.L(dN.Ln))this.A2({e:"remove",ano:!0},o,$,s,T)}; D.ne.prototype.nA=function($,o,T,s,E,e,n,A){var u=$.OY();if(e&&u!=null&&u.U==this&&u.data.ar8&&u.data.Sk==T&&JSON.stringify(u.data.B_.Rc)==JSON.stringify(s.Rc)){u.data.Q0=E; u.data.SQ=A}else{var u=new dt(o,this);u.data={Sk:T,B_:s,Q0:E,ar8:e,aqX:n,SQ:A};$.g4(u)}};D.Rect=function(){D.U5.call(this,[10,32],D.kb,"tools/rect",!0)}; D.Rect.prototype=new D.U5;D.Rect.prototype.G8=function($,o,T){var s=this.Em.crad,E=o.x-$.x,e=o.y-$.y; return[L.A.XG.Rect($.x,$.y,E,e,s),L.qy.ya("Rctn",[$.x,$.y,o.x,o.y],[s,s,s,s])]};D.Xi=function(){D.U5.call(this,[10,33],D.iM,"tools/ellipse",!0)}; D.Xi.prototype=new D.U5;D.Xi.prototype.G8=function($,o,T){var s=o.x-$.x,E=o.y-$.y;return[L.A.XG.Xi($.x,$.y,s,E),L.qy.ya("Elps",[$.x,$.y,o.x,o.y])]}; D.e3=function(){D.U5.call(this,[10,34],D.ar,"tools/pshape",!1)};D.e3.prototype=new D.U5;D.e3.prototype.G8=function($,o,T){var s=this.Em.pshape,E=this.Em.crad,e=this.Em.irad/100,n=this.Em.sides,A=this.Em.width,u=this.Em.tsiz,Y=this.Em.length,i; o=o.clone();if(T){if(Math.abs(o.x-$.x)2)s.push(-1-$.dl[f]); var E=[],e=$.C.xR;if(e[0]+e[1]+e[2]==3)if(T!=null||s.length==0||$.T7!=null&&$.T7.length!=0)E=$.v1(o,T,null,!0); E=E.concat(s);for(var f=0;f<$.el.length;f++)E.push(-1e3-$.el[f]);this.u=E};D.p.prototype.enable=function($,o,T,s,E,e,n){if(this.cursor==null)this.cursor="default"; this.Rb(o);if(this.Id)return;this.mh=T;this.Bq($,!0);this.bM($,e&&e.Rz!=null&&e.Rz!=-1?e.Rz:null,n); this._0(o);this.Qf($);if(e&&e.Rz==-1)this.UR({PF:"switchWarp"},o,$,s)};D.p.prototype._0=function($){var o={e:H.V.Hh,U:this.id}; if(this.pY==0){var T=L.$.TU(this.Id.kd(),this.FF),s=L.$.JV(T);o.sj={Ak:s,hu:this.Id.ar4(),wS:this.Id.vT(),uL:this.FF.clone()}}else{o.O5=this.Us.$n()}o.a5m=this.Us!=null; this.lz($,H.E.Q,o)};D.p.prototype.bM=function($,o,T){var s=this.id==D.zF,E=!0,e=this.u[0],n=$.u[e],u=null; if(s){this.Ag=2;this.I9=$.Z}else if($.Z&&this.u.length==1&&e>=0&&!n.rect.p4()){this.Ag=1;this.I9=$.Z; this.k2=n._I;this.yI=!1;if(!n.jx($,$.Z)){this.yI=!0;n.Yd($,$.Z,!1)}this.Mr={ah:n._I.YS,uL:n._I._9}}else{this.Ag=0; this.sX=D.p.cG($,this.u,null,T);for(var f=0;f=0)s=$.Z.rect.clone();else for(var f=0;f0&&n.add.artb)E=E.BZ(n.co())}return!E.p4()?E:s};D.p.prototype.lz=function($,o,T,s){var E=new x(o,!0); E.data=T;if(s)E.U=s;$.J(E)};D.p.cG=function($,o,T,s){var E=[];for(var f=0;f=0){n=$.u[e];A=n.Kj($,T,s)}else if(e>-1e3){n=$.w5[-1-e];A=[2]}else{E.push([null,null,null,null,null,null,null,$.iy[-1e3-e].clone()]); continue}var u=[];if(A.indexOf(0)!=-1){var Y={Ti:[n.buffer.slice(0),n.rect.clone()]};u.push(Y);if(n.HC()){var b=n.DE($); Y.al$=b.buffer.slice(0);Y.apI=b.rect.clone()}}else u.push(null);if(A.indexOf(1)!=-1)u.push(n.yy().clone()); else u.push(null);if(A.indexOf(2)!=-1)u.push({xb:n.add.vmsk.clone(),ci:n.add.vstk?JSON.parse(JSON.stringify(n.add.vstk)):null,n$:n.add.vstk?D.Ie.pe($,e):null,qy:n.add.vogk?JSON.parse(JSON.stringify(n.add.vogk)):null}); else u.push(null);if(n.add.TySh&&u[0]){g8.J2(n.add.TySh);u.push(n.add.TySh.t.clone())}else u.push(null); if(n.add.SoLd&&u[0])u.push(JSON.parse(JSON.stringify(n.add.SoLd)));else u.push(null);if(A.indexOf(3)!=-1)u.push(n.DE($)._.clone()); else u.push(null);if(n.add.lmfx)u.push(JSON.stringify(n.add.lmfx));else u.push(null);E.push(u)}return E}; D.p.we=function($,o,T){for(var f=0;f1; if(P)p=!1;var h=p?v.D:null,j=P?v.Rc:null;if(l){var C=L.Rt.wW(n);L.$.t(a,C);L.A.a50(v.g,C,h,j)}else L.A.aiv(v.g,a,h,j); if(z.add.vstk&&A){z.add.vstk.strokeStyleLineWidth.v.val=i[2].ci.strokeStyleLineWidth.v.val*X;var V=i[2].n$; if(V&&V.Ul==3){V=JSON.parse(JSON.stringify(V));var d=V.n$.phase.v;V.n$.Scl.v.val=Math.round(V.n$.Scl.v.val*X); d.Hrzn.v=Math.round(d.Hrzn.v*X);d.Vrtc.v=Math.round(d.Vrtc.v*X);D.Ie.wm(z,V)}}if(z.add.vogk){z.add.vogk=JSON.parse(JSON.stringify(i[2].qy)); if(l||P)L.qy.a8M(z.add.vogk);else L.qy.t(z.add.vogk,a,T.length>1?[]:v.D,A)}v.DI*=X;z.add.vmsk=v;if(z.add.vogk)L.qy.Iy(z.add.vogk,z.add.vmsk)}if(i[3]){var m=i[3].clone(); m.concat(w);z.add.TySh.t=m;g8.mg(z.add.TySh);var R=new iq(z.add.TySh.h3,o.vv),g=hA.rW(R,z.add.TySh); z.rect=g.uL;z.buffer=g._3}if(i[4]){var S=z.add.SoLd,F=D.p.GQ(i[4].nonAffineTransform);L.$.t(a,F);var r=L.M.$l(F); if(dY.ss(F)){if(n){var q=L.M.L3(L.Rt.wW(i[4].warp.v)),G=L.$.TU(F,q),W=L.M.L3(L.Rt.wW(n));F=[W.x,W.y,W.x+W.d,W.y,W.x+W.d,W.y+W.w,W.x,W.y+W.w]; L.$.t(G,F);S.warp.v=n}var Z=L.$.TU(F),I=F;if(!L.$._r(Z)){Z[6]=Z[7]=0;I=[0,0,1,0,1,1,0,1];L.$.t(Z,I)}S.Trnf=D.p.vP(I); S.nonAffineTransform=D.p.vP(F);if(S.filterFX)S.filterFX=JSON.parse(JSON.stringify(i[4].filterFX));D.p.dj(S,w); z.qI($,E==0)}}if(i[5])D.p.Y8($,i[5],z.DE($)._,E,a,n);if(i[7])D.p.Y8($,i[7],z,E,a,n);if(0<=N){if(E!=0)z.Gg(); z.tF($);z.T()}}$.T()};D.p.qh=function($,o,T,s,E,e){if(T==null)T=!1;return D.p.wN($,T?0:1,L.$.KQ(o),null,s,E,e,T)}; D.p.wN=function($,o,T,s,E,e,n,A){if(A==null)A=!1;if(A&&n)throw"e";var u={},w=0,X=.3;if(s&&!L.Rt.nP(s)){var Y=L.Rt.wW(s); L.$.t(T,Y);u.rect=L.M.$l(Y);u.buffer=L.G(u.rect.Y()*4);L.ha.drawImage(Y,$[0],$[1].d,$[1].w,u.buffer,u.rect,o==0); return u}L.mc($);var b=$[0],a=$[1],N=a.Y()*D.p.jZ(L.$.JV(T));if(A&&N>4e6)X=N>8e6?2.2:1.2;while(w+3<$.length&&$[w+3].Y()>16&&L.$._r(T)&&D.p.jZ(L.$.JV(T))1e5||u.rect.w>1e5||u.rect.Y()>3e4*3e4)return null; var B=u.rect.Y()*4;if(E&&E.byteLength>=B&&B>=E.byteLength>>2){u.buffer=new Uint8Array(E)}else{u.buffer=L.G(B)}L.$.drawImage(O,b,a.d,a.w,u.buffer,u.rect,o==0,e,A); if(o==2&&u.buffer){var G=u.rect.d,l=u.rect.w,v;v=[0,-1,0,-1,16,-1,0,-1,0];v=L.TS.Hx(v);var p=u.buffer.slice(0); L.TS.ls(p,u.buffer,G,l,v,255,!1,!0)}if(u.buffer)return u};D.p.Y8=function($,o,T,s,E,e){if(o.color==255)L.lY(o.channel); var n=o.rect,A=L.G(n.Y()*4);L.aM(o.channel,A,3);var u=D.p.wN([A,n],s,E,e);if(u){T.rect=u.rect;T.channel=L.G(u.rect.Y()); L.Ge(u.buffer,T.channel,3);T.Or=!0}if(o.color==255){L.lY(o.channel);if(u)L.lY(T.channel)}};D.p.dj=function($,o){var T=$.filterFX; if(T)T=T.v.filterFXList;if(T)T=T.v;if(T)for(var s=0;s>>1)+s.D[E]);$.n.hz=$.n.hz.concat(s.HS);if(this.V1[3])L.M.concat($.n.JU,L.M.a9X(s.YL,s.Zg))}$.Cd=!0}; D.dq.Xp=function($,o,T){var s=$.buffer,E=$.rect,e=$.a8v,n=iZ.o_("rigidTransform");if(e)for(var f=0;f<4; f++){n["PuX"+f].v=e[f*2];n["PuY"+f].v=e[f*2+1]}var A=n.puppetShapeList.v,u=L.pZ.adJ(s,E.d,E.w,o[1],o[2]),Y=[]; for(var b=0;b>>1)+Q.D[O]); for(var O=0;O=u[2]||u[1]>=u[3]){$.splice(f,1); f--;continue}D.j3.ta($,f,u)}};D.j3.ij=function($,o){var T=$.op;for(var f=0;f<$.AQ.length;f++){var s=D.j3.ee(T,$.AQ[f]); D.j3.Hy(s,o);D.j3.ta(T,$.AQ[f],s)}};D.j3.afl=function($,o){if($[0]1e6,n=new x(H.E.Q,!0);n.data={e:H.V.Cf,_E:e};if(E)T.J(n);setTimeout(function(){var A=D.b5.Zt($); for(var u in A)o[u]=A[u];var n=new x(H.E.Q,!0);n.data={e:H.V.jp,_E:e};if(E)T.J(n)},30)}};D.b5.lf=function($){var o=$.D[0],T=$.u[o],s=T.rect,E=s.d,e=s.w,n=E*e,A=T.buffer; return[o,s.x,s.y,E,e,A[0],A[1],A[2],A[3]].join(",")};D.b5.Zt=function($){var o=$.D[0],T=$.u[o],s=T.rect,E=s.d,e=s.w,n=E*e,A=T.buffer,u=Date.now(),Y=L.G(n); Y.fill(128);var b=L.Ej.An(A,E,e);console.log(Date.now()-u);var a={key:D.b5.lf($),BR:A,rect:s.clone(),N0:E,cQ:e,Al:12,ajR:!1,_D:Y,fM:b,Z:L.G(n),fD:null,NY:null,c0:null}; D.b5.nG(a);return a};D.b5.nG=function($,o){var T=$.N0,s=$.cQ,E=0,e=0,n=Date.now(),A=$.fD!=null&&L.Ej.a1_($.fM.Zg,$.fD.Zg,$.fD.BL,$._D); E=Date.now()-n;n=Date.now();if(!A&&!$.ajR){$.fD=L.Ej.dX($.fM,T,s,$._D,$.Al);if(!L.Ej.a1_($.fM.Zg,$.fD.Zg,$.fD.BL,$._D)){$.ajR=!0; console.log("conflict")}$.NY=L.Ej.a4v($.BR,T,s,$.fD.Zg,$.fD.BL);$.c0=[$.NY[0].slice(0),[]];e=Date.now()-n; n=Date.now()}var n=Date.now();if(o){$.c0[0].set($.NY[0]);var u=$.NY[1],Y=$.c0[1];for(var b=0;b20)this.Sl($,w,o);$.n.JU=null;$.Cd=!0;this.hd=null;$.n.bt=[]}};D.EC.prototype.ee=function($,o,T,s){var E=this.hd,e=D.aD.yu($,o,s),n=D.U5.XS(E,e,T,!0); E=n[0];e=n[1];return L.M.$l([E.x,E.y,e.x,e.y])};function dY($,o,T,s,E,e,n,A){this.Jo=null;this.kZ=$?$.slice(0):null; this.pN=4;this.dF=null;this.dc=null;this.qo=null;this.hC=-1;this.Vs=null;this.amX=!1;this.a3l=[];for(var f=0; f<8;f++)this.a3l.push(eY.af0(0,PIMG.rotate,-.5,-.5,-45-f*45));this.apt=o;this.a25=T;this.aj$=s;this.ary=E; this.aia=e;this.Rz=n;this.a3S=A==null?1:A}dY.prototype.Zk=function(){return this.hC!=-1};dY.prototype.kd=function(){return this.kZ.slice(0)}; dY.prototype.SP=function($){this.kZ=$};dY.prototype.a7B=function(){return this.ew(this.kZ)};dY.prototype.ar4=function(){return this.pN}; dY.prototype.aor=function($){this.pN=$};dY.prototype.vT=function($){if($==null)$=this.kZ;if(this.pN==9)return this.dF; else return this.ew($)[this.pN]};dY.prototype.a3$=function($){if(this.pN==9)this.dF=$.clone();else{var o=this.vT(),T=new fY(1,0,0,1,$.x-o.x,$.y-o.y); L.M.t(this.kZ,T,this.kZ)}};dY.prototype.KX=function($,o,T){var s=this.h5(null,$,o),E;if(s==9)return"default"; if(s==10){if(T)return null;return!this.apt?"move":null}if(s==-1||s==4)return null;if(s==11){var e=this.vT().V4($); E=90-Math.atan2(e.y,e.x)*180/Math.PI;var n=Math.round(8*(E/360));n=(n+8)%8;return this.a3l[n]}else{var A=this.up($,this.kZ); E=[135,90,45,180,0,0,225,270,315][s];var u=L.$.TU(this.kZ);E+=Math.atan2(-u[3],u[0])*180/Math.PI;var Y="ew nesw ns nwse ew nesw ns nwse".split(" "),n=Math.round(8*(E/360)); n=(n+8)%8;return Y[n]+"-resize"}};dY.prototype.up=function($,o){var T=L.$.lY(L.$.TU(o)),s=new Float64Array(2); L.$.Da($.x,$.y,T,s);return new aY(s[0],s[1])};dY.prototype.YI=function($){var o=this.up($,this.kZ);return 0<=o.x&&o.x<=1&&0<=o.y&&o.y<=1}; dY.prototype.iO=function($,o,T,s,E,e){this.amX=e;this.Vs=s;var n=$.C.X,A;if(this.kZ==null)s=D.aD.yu($,s,o); this.qo=s.clone();if(this.kZ==null){this.qo.offset(1,1);var u=E==null?1:1/E;this.kZ=[s.x,s.y,s.x+1,s.y,s.x+1,s.y+u,s.x,s.y+u]; A=8}else{A=this.h5(T,s,n);if(0<=A&&A<=8)this.qo=this.ew(this.kZ)[A];if(A==9){this.pN=9;this.dF=s.clone()}}this.Jo=this.kZ.slice(0); this.hC=A;this.cD($,o);this.dc=this.vT();return A!=-1};dY.prototype.h5=function($,o,T){var s=-1,E=this.ew(),e=6*H.K()/T; if(s==-1)if(aY.Sa(this.vT(),o)=1)ce=(w.x-Z)/_;if(Math.abs(cN)>=1)gf=(w.y-I)/cN;if(E)ce=gf=(ce+gf)/2;var K=new fY;K.translate(-Z,-I); K.scale(ce,gf);K.translate(Z,I);p=P.slice(0);L.M.t(p,K,p)}else{if(this.BH()){w.x=Math.round(w.x);w.y=Math.round(w.y)}var cv=[0,1,2,5,8,7,6,3],f0=cv[(cv.indexOf(Y)+4)%8],i8=[]; for(var f=0;f<3;f++)for(var j=0;j<3;j++)i8.push(new aY(j/2,f/2));var O=this.dc,b5=this.up(w,P),iC=this.up(u,P),an=e&&(this.pN==4||this.pN==9)?this.up(O,P):i8[f0],cO=new fY,bh=new fY,ce=(b5.x-an.x)/(iC.x-an.x); if(ce==0)ce=1e-4;var gf=(b5.y-an.y)/(iC.y-an.y);if(gf==0)gf=1e-4;if(this.ary){ce=Math.max(ce,0);gf=Math.max(gf,0)}if(Y==0||Y==2||Y==6||Y==8){if(E||this.aia)cO.scale(ce,ce); else cO.scale(ce,gf)}if(Y==1||Y==3||Y==5||Y==7){var bD=this.aia;if(Y==1||Y==7)cO.scale(bD?gf:1,gf);else cO.scale(ce,bD?ce:1); if(this.a25&&n){if(Y==1||Y==7)bh.Z9=(b5.x-an.x)/(b5.y-an.y);else bh.P=(b5.y-an.y)/(b5.x-an.x)}}var K=new fY; K.translate(-an.x,-an.y);K.concat(cO);K.concat(bh);K.translate(an.x,an.y);p=[0,0,1,0,1,1,0,1];L.M.t(p,K,p); var S=L.$.TU(P);L.$.t(S,p)}if(dY.ss(p))this.kZ=p}this.cD($,o);if(X)D.aD.Fv($,N,X)};dY.rO=function($,o,T,s,E,e){var n=T-$,A=s-o,u=E-$,Y=e-o,b=n*n+A*A,a=u*n+Y*A,w=a/b,X=$+w*n,N=o+w*A,z=E-X,i=e-N; return[X,N,Math.sqrt(z*z+i*i)]};dY.prototype.BH=function(){var $=this.kZ;return Math.abs($[1]-$[3])<1e-6&&Math.abs($[2]-$[4])<1e-6||Math.abs($[0]-$[2])<1e-6&&Math.abs($[3]-$[5])<1e-6}; dY.ss=function($){return L.M.Lb($)||L.M.Lb([$[6],$[7],$[4],$[5],$[2],$[3],$[0],$[1]])};dY.prototype.yg=function($,o,T,s){this.hC=-1; this.Vs=null;$.n.BD=null;$.n.bt=[];$.Cd=!0};dY.prototype.Vb=function($,o,T){var s=T.cu();if(s.x||s.y){var E=new fY(1,0,0,1,s.x,s.y); L.M.t(this.kZ,E,this.kZ);this.cD($,o);return!0}return!1};dY.prototype.ew=function($){if($==null)$=this.kZ; var o=$[6]-$[0],T=$[7]-$[1],s=$[4]-$[2],E=$[5]-$[3],e=[$[0],$[1],$[2],$[3],$[0]+o/2,$[1]+T/2,$[2]+s/2,$[3]+E/2,$[6],$[7],$[4],$[5]],n=[]; for(var f=0;f<3;f++){var A=f*4,u=e[A+0],Y=e[A+1],b=e[A+2],a=e[A+3];n.push(new aY(u,Y));n.push(new aY(u+(b-u)/2,Y+(a-Y)/2)); n.push(new aY(b,a))}return n};dY.prototype.cD=function($,o,T){if(T==null)T=!1;var s=this.ew(),E=s[0],e=s[2],n=s[6],A=s[8]; $.n.JU={o:[],I:[]};$.n.JU.o.push("M","L","L","L","Z");$.n.JU.I.push(E.x,E.y,e.x,e.y,A.x,A.y,n.x,n.y); var u=this.a3S;if(u>1){var Y=e.V4(E),b=n.V4(E),a=A.V4(e),w=A.V4(n);for(var f=1;f$.index;f--)this.Qp(T);if($.index>T.Q5)for(var f=T.Q5; f<$.index;f++)this.Zo(T)}if($.e=="h_stepfwd")this.Zo(T);if($.e=="h_stepbck")this.Qp(T);if($.e=="h_undoredo"){var E=this.cR||this.akV!=T.Q5; if(E){this.Qp(T);E=!1}else{this.Zo(T);E=!0}this.cR=E;this.akV=T.Q5}else this.cR=!0};cf.History.prototype.Qp=function($){if($.Q5==0)return; var o=$.history[$.Q5];o.U.OK(o.data,$);$.Q5--};cf.History.prototype.Zo=function($){if($.Q5==$.history.length-1)return; var o=$.history[$.Q5+1];o.U.wx(o.data,$);$.Q5++};cf.kz=function(){cf.e8.call(this,D.Jc);this.YO=null}; cf.kz.prototype=new cf.e8;cf.kz.prototype.A2=function($,o,T,s,E){this.YO=o;var e=$.e,n=$.c!=null?$.c:T.D.length!=0?T.D[0]:T.u.length-1,A=T.u[n]; T.sr=!0;var u=s.L(dN.BJ),Y=s.L(dN.Et),b=s.L(dN.I6);if(e==M.Lu&&T.Z==null)e=M.NO;if(e==M.ZT){var a=new dt([6,33],this),w=A.p3()?["pass"].concat(hI.zk):hI.zk,X=w[$.mI],N=$.c!=null?[$.c]:T.D,z=JSON.stringify(N),i=[]; for(var f=0;f1)T.D.splice(K,1);T.D.sort(function(a,bl){return a-bl});Q.bI.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelection"}}; _=n}else if(Y&&!u&&W>0){e=W==1?M.AA:W==2?M.Gt:M.WD;escape=!0}else if((Y||$.aeY==1)&&T.D.length>0){var cv=Math.min(n,T.D[0]),f0=Math.max(n,T.D[T.D.length-1]); T.D=[];for(var f=cv;f<=f0;f++)if(T.u[f].add.lsct!=hd.ic)T.D.push(f);Q.bI.selectionModifier={t:"enum",v:{selectionModifierType:"addToSelectionContinuous"}}; _=n}else{_=n;var S=T.u[n];if(S&&S.p3()&&$.a18)S.add.lsct=hd.NH;else if(T.D.length==1&&T.D[0]==n&&W==S.dQ){gf=!0}if(!gf){T.D=[n]; T.L4()}}if(!gf){if(_!=null&&_")dp++;this.track({Wk:"delete",bI:{classID:"Dlt",null:aj.D4("Lyr",!0)}}); var a=new dt([6,31],this);a.data={e:M.Ia,rd:T.u.slice(0),c_:iX,gW:T.D.slice(0),Iv:[dp]};T.g4(a);this.wx(a.data,T)}if(e==M.Y5){if(!s.L(dN.Et))return; var a=new dt("Switch Layer Link",this);a.data={e:e,c:$.c};T.g4(a);this.wx(a.data,T)}if(e==M.cS){var g=$.a0V?$.a0V:T.D,dd=0,ho=!1; if(g.length==0)return;if(g.length==1&&T.u[g[0]].pI==0){alert(aX.get([15,7,5]));return}var iD=[];for(var f=0; f0){if(aT.add.lnk2==null)aT.add.lnk2=[]; for(var f=0;f"&&$.u[$.u.length-1].p3())co=[h7-1]; var a=new dt([6,0],this);a.data={e:M.Ia,rd:aT.u.slice(0),c_:iX,gW:e4,Iv:co};aT.g4(a);this.wx(a.data,aT); if(dS!=0||al!=0)D.aD.FY(aT,aT.v1(),null,dS,al)}if(e==M.VT){var bZ=$.c!=null?[$.c]:T.v1(),iX=T.u.slice(0); for(var f=0;f7;for(var b2=0;b2=0;f--)if(co[f]>=iX.length)co.splice(f,1);var a=new dt([6,40],this);a.data={e:M.Ia,rd:T.u.slice(0),c_:iX,gW:T.D.slice(0),Iv:co}; T.g4(a);this.wx(a.data,T)}if(e==M.N6){var gZ=T.D.length;if(gZ<2){alert("Select two or more layers."); return}if(!T.qQ())return;var bD=T.u[T.D[0]].clone(),iX=[];for(var f=0;f2e6){alert("Blended areas are too large."); return}for(var f=1;f1&&cG!=-1){console.log("separating an open path into a new layer");S=S.clone();bg=S.add.vmsk; hs=bg.g;var N=hs[cG].length,fy=S.clone();fy.add.lyid=T.tB();bg.g=hs.slice(0,2).concat(hs.slice(cG,cG+N+1)); bg.D=[];S.tF(T);S.T();var ei=fy.add.vmsk.g;fy.add.vmsk.g=ei.slice(0,cG).concat(ei.slice(cG+N+1,ei.length)); fy.add.vmsk.D=[];fy.tF(T);iX[f]=S;iX.splice(f+1,0,fy);for(var b2=0;b2f)h3[b2]++; var gC=h3.indexOf(f);if(gC!=-1){h3.splice(gC+1,0,f+1)}}}}if(iX.length!=T.u.length){var a=new dt("Splitting open paths",this); a.data={e:M.Ia,rd:T.u.slice(0),c_:iX,gW:T.D.slice(0),Iv:h3};T.g4(a);this.wx(a.data,T)}}if(e==M.RJ){this.A2({e:M.Px},o,T,s,E); var e4=T.D.slice(0),bW=T.u.slice(0),bZ=T.v1();if(bZ.length==0)return;T.$L(bZ,!1,$.Ue);var a=new dt([6,36,0],this); a.data={e:M.Ia,rd:bW,c_:T.u.slice(),gW:e4,Iv:T.D.slice(0)};T.g4(a);this.wx(a.data,T)}if(e==M.aG){var ec=A.add.SoLd; if(ec==null)return;var aO=ec.Idnt.v,hk=T.bK(aO);hk.aw(!1);var a2=hk.wc[0],b8=hk.wc[1];if(L.jh(a2)){alert("The smart object contains transparency."); return}var cg=eY.Q1("jpg").tC([[a2.buffer]],b8.d,b8.w,[90]);this.A2({e:M.sv,u4:T,data:new Uint8Array(cg),id:aO,Ue:"jpg"},o,T,s,E); console.log(T.add);return}if(e==M.sv){var c0=$.u4.bK($.id),hN=c0.clone();hN.raw=$.data;if($.FZ)hN.FZ=$.FZ; if($.Ue){hN.oF=" ";hN.Ul=" ";hN.FZ=hN.FZ+"."+$.Ue}else{hN.oF="8BIM";hN.Ul="8BPB";hN.FZ=hN.FZ+".psd"}hN.aw(!1); c0.aw(!1);var a=new dt([6,36,1],this);a.data={e:M.sv,id:$.id,Gj:c0,gk:hN};$.u4.g4(a);this.wx(a.data,$.u4)}if(e==M.I0){var a=new dt([6,36,4],this); a.data={e:e,c:n,C5:A.add.SoLd.Impr.v.classID,mI:$.mI};T.g4(a);this.wx(a.data,T)}if(e==M.uN){var eX,ht; if($.c8){eX=$.u4;ht=$.c8}else{$.u4.eA();$.u4.wT();$.u4.T();$.u4.ir();$.u4.aw();eX=eY.Q1("PSD").tC($.u4,0,0,[!0,!0]); ht=$.u4.name}if(!(eX instanceof ArrayBuffer))throw"e";eX=new Uint8Array(eX);var K=$.Yc!=null?$.Yc:T.D[T.D.length-1]+1,fI=T.sP(eX,ht,0,0,!0),iX=T.u.slice(0); iX.splice(K,0,fI);var a=new dt([6,36,2],this);a.data={e:M.Ia,rd:T.u.slice(),c_:iX,gW:T.D.slice(0),Iv:[iX.indexOf(fI)]}; T.g4(a);this.wx(a.data,T)}if(e==M.hI&&$.f8=="merge"){var j5=[],bM=T.root.children,e8=0;for(var f=0;f=2)j5=iJ;if(j5.length<2){alert("At least two animation folders needed (whose layers start with \"_a_\").",3500); return}var iV=[];for(var f=0;f1){var hp=parseInt(d$.pop());if(!isNaN(hp)&&hp!=0)cj=hp}cx[0].push(S);cx[1].push(cj);cx[2]+=cj}}dO.sort(function(a,bl){return bl[2]-a[2]}); var cl=dO[0],gB=cl[2];for(var f6=1;f6>>1;if(cX<17){var l=gS.length-1;if(f==0)gS[1]+=cX; else if(f==gS.length-1)gS[l-1]+=cX;else{gS[f-1]+=bA;gS[f+1]+=cX-bA}gS.splice(f,1);f--}}var aJ=[],g3=new df(0,0,T.d,T.w); for(var f=0;f.5}else if($.target!=null){hG=$.target; gt=!0;T.SK=!0}else{var eU=$.f8;gt=eU>1;if(eU==0){hG=T.u.length-1}if(eU==1){hG=bv[bv.length-1]+1;var N=T.rY(hG); if(N.indexOf(cR)==-1)hG+=N.length-1}if(eU==2){hG=bv[0]-1;var N=T.rY(hG);if(N.indexOf(cR)==-1)hG-=N.length-1}if(eU==3){hG=0}if(hG<0||hG>T.u.length-1)return; T.SK=!0}if(bv.indexOf(hG)!=-1&&!cD)return;var bO=T.u[hG],iX=[];if(cD)iX=T.u.slice(0);else for(var f=0; f.8)em-=T.rY(hG).length-1; var cM=[],fZ=cD?T.aV(ge?null:cR):null;for(var f=0;f0){var cC=a.data.bI={classID:"setd",null:aj.D4("contentLayer",!0),T:{t:"Objc",v:{}}},fX=["SoCo","GdFl","PtFl"][eL.Ul-1]; cf.kz.Nx(eL.n$,cC.T.v,eL.Ul-1);this.track({Wk:"set",bI:cC})}}if($.OH&&eL.Ul==3)T.Af(fW.OA(eL.n$.Ptrn.v,E.q_)); if(!$.OH){var at=eL.strokeStyleContent.v;if(at.classID==ev.ci.RG[2])T.Af(fW.OA(at.Ptrn.v,E.q_))}this.wx(a.data,T)}}; cf.kz.Nx=function($,o,T){var s=[ev.k9,ev.cw,ev.SZ][T];if(o.classID==null)o.classID=["solidColorLayer","gradientLayer","patternLayer"][T]; for(var f=0;f=0?o.u[k]:o.w5[-1-k];A.add.vogk=JSON.parse(i[f+1]);L.qy.Iy(A.add.vogk,A.add.vmsk); if(k>=0)A.tF(o)}o.T()}if(T==M.uh){s.add.artb=JSON.parse($.abD);o.T();D.LY.bS(o,$)}if(T==M.Ep){o.Z=$.I9; o.iy=$.xF.slice(0);o.el=$._F.slice(0);o.Cd=o.RZ=!0}if(T==M.Y5){s.UD=!s.UD}if(T==M.cS){var Q=$.are;for(var f=0; f=0?o.u[k]:o.w5[-1-k];A.add.vogk=JSON.parse(i[f+1]);L.qy.Iy(A.add.vogk,A.add.vmsk); if(k>=0)A.tF(o)}o.T()}if(T==M.uh){s.add.artb=JSON.parse($.Sv);o.T();D.LY.n5(o,$)}if(T==M.Ep){o.Z=$.a3; o.iy=$.X7.slice(0);o.el=$.XV.slice(0);o.Cd=o.RZ=!0}if(T==M.Y5){s.UD=!s.UD}if(T==M.cS){var Q=$.acM;for(var f=0; f>N;if((z&1)==1)z--; else z++;X.capturedInfo.v=(z<255)Y=255-Math.round((n-255)*255/(n-E))}return[Math.max(E,0),Math.min(n,255),u,Y,100]};cf.NX.prototype.A2=function($,o,T,s,E){var e=$.e; if(e=="auto"){var n=$.Og,A=cf.NX.getData(T);for(var f=0;f>>2,n=L.lm(T),A=.001*E; if(s==0||s==2)e=[[0,255,0,255,100],cf.NX.pu(n[1],A,E,s==2),cf.NX.pu(n[2],A,E,s==2),cf.NX.pu(n[3],A,E,s==2)]; if(s==1)e=[cf.NX.pu(n[0],A*.33,E,!1),[0,255,0,255,100],[0,255,0,255,100],[0,255,0,255,100]];var u=iZ.o_("levl"); for(var f=0;f<4;f++)cb.cI(u,f,e[f]);return u};cf.NX.prototype.n2=function($,o,T,s){if(this.Y6==null){if($.jX=="aply")T.u[T.D[0]].extend(new df(0,0,T.d,T.w)); this.Y6=cf.NX.getData(T,null,$.jX=="fade"?T.OY().data:null);if($.jX=="aply")this.Y6[0].tY=T.aw()}if($.e=="edit"){this.Yh=[$.jX,$.ed]; var E=this.Y6[0],e=cf.NX.a1I($.jX,$.ed,E.ah),n=dq.Za($.jX,e);if($.jX=="fade"||$.jX=="aply")n=$.ed;if(n!=null){for(var f=0; f>>16,m:$>>>8&255,P:$&255}}; cf.G_.prototype.amY=function($,o,T,s){if(this.Y6==null){var E=iZ.Rn($.jX,$.ed);this.Y6=cf.NX.getData(T,E.x!=0||E.y!=0)}if($.e=="edit"){var e=JSON.stringify($.ed); if(($.ed==null||e!=this.Cq)&&$.ND!=!0)for(var f=0;f1)u=1+Math.tan(Math.PI/2*e/101);var Y=(1-u)/2,b=L.tK.S0(A,A,A),a=[u,0,0,Y,0,u,0,Y,0,0,u,Y,0,0,0,1],w=L.tK.multiply(b,a),X=new L.uR(256); for(var f=0;f<256;f++)X.i[f]=f;L.tK.transform(X,X,w);s={type:T.sG,tV:X.i,wF:X.i,_6:X.i,ZA:!1,He:!1}}else{var N=1024,z=-30+60*(e+100)/200,i=[]; for(var f=0;f<4;f++)i.push(L.sE.p7(f/3*255,f/3*255,!0));i[1].v.Hrzn.v=64;i[1].v.Vrtc.v=64-z;i[2].v.Hrzn.v=128+64; i[2].v.Vrtc.v=128+64+z;i.sort(function(bz,i1){return bz.v.Hrzn.v-i1.v.Hrzn.v});var k=L.sE.$O(i,N);function Q(bz,N){var i=[],J=3; for(var f=0;fG&&l>1)l--;c[f]=l*B}O=c}var v=new Uint8Array(N);for(var f=0; f0){o=Math.max(i8/Math.E,o); o=o*Math.exp(i8/1.75+f0/Math.PI);o=(1-iC)*o+iC*1}else{o=o*Math.exp(-i8*1.75+f0/Math.PI);o=o+-iC*1.14}o=Math.pow(o,1/b5); o=Math.max(0,Math.min(1,o));v[f]=Math.round(o*255)}s={type:T.sG,tV:v,wF:v,_6:v,ZA:!1,He:!1}}if($=="vibA"){s={type:T.OV,M9:[o.vibrance?o.vibrance.v:0,o.Strt?o.Strt.v:0]}}if($=="hue2"){var an=[],cO=[],bh=[],bD=o.Clrz?o.Clrz.v:!1; for(var f=0;f<256;f++){an[f]=f/255;cO[f]=0;bh[f]=0}var fq=gK.sk(o,0),fO=dq.cB(fq[1]/100);if(bD){var g6=fq[0]/360; for(var f=0;f<256;f++){an[f]=g6;cO[f]=fO}}else{for(var f=0;f<256;f++){var hM=an[f],d3=cO[f];an[f]+=fq[0]/360; for(var l=0;l<6;l++){var h9=gK.sk(o,l+1),cs=h9.Pa,dv=h9.hG,iC=0;for(var ec=1;ec<4;ec++)if(dv[ec]1)fr--;if(fr<0)fr++;bt=dq.aoZ(bt);bt=(1+bt)*.5; cx=(1+cx)*.5;dG[f]=Math.round(255*fr);gY[f]=Math.round(255*bt);e6[f]=Math.round(255*cx)}var ci=fq[2]/100,gv=ci<0?-ci:ci,gu=ci<0?0:1; s={type:T._k,a74:dG,$C:gY,a61:e6,aa8:gv*gu,HD:1-gv,akh:fq[2]/100,aku:bD?1:0}}if($=="nvrt"){var v=new Uint8Array(256); for(var f=0;f<256;f++)v[f]=255-f;s={type:T.sG,tV:v,wF:v,_6:v,ZA:!1,He:!1}}if($=="post"){var ak=o.Lvls.v,v=new Uint8Array(256),iC=ak/255.001,hP=255/(ak-1); for(var f=0;f<256;f++)v[f]=Math.floor(f*iC)*hP;s={type:T.sG,tV:v,wF:v,_6:v,ZA:!1,He:!1}}if($=="grdm"){var ai=o.Grad.v,hK=o.Rvrs,h3=L.h.Bu(ai.Clrs.v,0,0),N=1024,e4=L.h.IM(ai,h3,N,hK?hK.v:!1),co=L.G(N),aO=L.G(N),cC=L.G(N); L.Ge(e4,co,0);L.Ge(e4,aO,1);L.Ge(e4,cC,2);s={type:T.sG,tV:co,wF:aO,_6:cC,ZA:!0,He:!1}}if($=="selc"){var hm=new Float32Array(9*3*2),cu=o.p6,bF=o.Mthd?o.Mthd.v.CrcM=="Absl":!1; for(var l=0;l<9;l++){var fH=l*6,dX=de.sk(o,l),fk=dX[0]/100,ix=dX[1]/100,bx=dX[2]/100,ha=dX[3]/100;if(bF){hm[fH]=hm[fH+1]=hm[fH+2]=1; hm[fH+3]=fk*(1+ha)+ha;hm[fH+4]=ix*(1+ha)+ha;hm[fH+5]=bx*(1+ha)+ha}else{hm[fH+0]=(1+fk)*(1+ha);hm[fH+1]=(1+ix)*(1+ha); hm[fH+2]=(1+bx)*(1+ha)}}s={type:T.TW,arB:hm}}if($=="blwh"){var ca="Rd Yllw Grn Cyn Bl Mgnt".split(" "),s=[],iY=0,ho=0; for(var f=0;f<6;f++)s.push(o[ca[f]].v);s.push(o.useTint.v,o.tintColor.v);var iX=[];for(var f=0;f<6;f++)iX.push((s[f]-50)/50); var dp=L.h.Qc(s[7]);dp.i/=255;dp.m/=255;dp.P/=255;var dd=L.sY(dp.i,dp.m,dp.P),cx=L.Hl(L.AP(dd.cQ,1,.5)),iD=dd.rZ*dd.ed; if(cx==.5)iY=ho=.5;else{iY=iD*(.5-cx)/(.5/cx-1);ho=1-iD*(.5-cx)-1/(2*(1-cx));ho/=1-1/(2*(1-cx))}s={type:T.HK,arl:iX,sw:s[6]?1:0,abe:dd.cQ,Hl:cx,a9C:iD,Kp:iY,aax:ho}}if($=="blnc"){console.log(o); var P=[],bN=["ShdL","MdtL","HghL"];for(var f=0;f<3;f++){if(o[bN[f]]==null){P[f]=[0,0,0];continue}var ak=o[bN[f]].v,it=ak[0].v/100,j4=ak[1].v/100,gy=ak[2].v/100,fi=o.PrsL==null||o.PrsL.v?(Math.min(it,j4,gy)+Math.max(it,j4,gy))/2:0; P[f]=[it-fi,j4-fi,gy-fi]}var q=[L.G(256),L.G(256),L.G(256)];for(var l=0;l<3;l++)for(var f=0;f<256;f++){var G=f*(1/255),hN=0,z=0,b4=0; z=P[2][l];b4=Math.abs(z);if(z<0)hN=Math.pow(G,Math.SQRT2);else hN=1.63*(Math.pow(G+.04,.5)-.2);G=b4*hN+(1-b4)*G; z=P[1][l];b4=Math.abs(z);if(z<0)hN=Math.pow(G,2);else hN=Math.min(2.35*(Math.pow(G+.09,.5)-.3),Math.pow(G,1/2)); G=b4*hN+(1-b4)*G;z=P[0][l];b4=Math.abs(z);if(z<0)hN=G<.4?0:Math.pow((G-.4)/.6,Math.SQRT2);else hN=Math.pow(G,Math.SQRT2/2); G=b4*hN+(1-b4)*G;G=Math.max(0,Math.min(1,G));q[l][f]=Math.round(G*255)}s={type:T.sG,tV:q[0],wF:q[1],_6:q[2],ZA:!1,He:!1}}if($=="phfl"){var eN=L.h.Qc(o.Clr.v),hX=[eN.i/255,eN.m/255,eN.P/255],fh=o.Dnst.v/100,q=[L.G(256),L.G(256),L.G(256)]; for(var l=0;l<3;l++)for(var f=0;f<256;f++){var G=f*(1/255),a5=G*hX[l];a5=Math.max(0,Math.min(1,a5)); G=fh*a5+(1-fh)*G;q[l][f]=Math.round(G*255)}s={type:T.sG,tV:q[0],wF:q[1],_6:q[2],ZA:!1,He:o.PrsL.v}}if($=="thrs"){var v=L.G(256); for(var f=o.Lvl.v;f<256;f++)v[f]=255;s={type:T.sG,tV:v,wF:v,_6:v,ZA:!0,He:!1}}if($=="mixr"){var aT=dq.CO(o),w=[]; for(var f=0;f300*300&&$.type!=E.sG&&$.type!=E.jM){s=s.clone();s.x=s.y=0;var n=y.lK(0,s.d,s.w);n.set(o); y.U0(n,s);n.bv(s);dq.Ze($,n.Ji,s);n.get(T);return}if($.type==E.jM){var A=$.arC,u=$.ve;ICC.U.applyLUT(A,u,o,T); var Y=o.length;for(var f=0;f>>8&255)*(1/255),z=(Z>>>16&255)*(1/255),I=Z>>>24,_=Math.min(s,N,z),cN=Math.max(s,N,z),ce=0,gf=0,K=0; ce=L.QZ(s,N,z).cQ;var cv=~~(ce*255+.5),f0=$.a74[cv]*(1/255),i8=$.$C[cv]*(1/255)*2-1,b5=$.a61[cv]*(1/255)*2-1,k=-b5,iC=_; if(0.5?bh/(2-(cN+_)):bh/(cN+_)}var bD=i8;if($.aku==0){i8=W[Math.floor((1+i8)*127.5)]; bD=Math.min(gf*(1+i8),1)}var B=L.AP(f0,bD,K);s=B.i;N=B.m;z=B.P;q[f]=I<<24|z*255<<16|N*255<<8|s*255}}if($.type==E.x6){L.w0(o,T); var r=new Uint32Array(o.buffer),q=new Uint32Array(T.buffer),Y=r.length,fq=$.Al,fO=1/fq,g6={vA:$.m0[0],Ca:$.m0[1],P:$.m0[2]},hM={vA:$.aN[0],Ca:$.aN[1],P:$.aN[2]}; for(var f=0;f>>8&255,cs=Z>>>16&255,s=d3*(1/255),N=h9*(1/255),z=cs*(1/255),I=Z>>>24,dv=L.l1(d3,h9,cs),ec=L._y(dv,g6,hM,fq,fO); if(ec==0)continue;var i=L.QZ(s,N,z),f0=2+i.cQ+$.shift[0];i.cQ=f0-~~f0;i.rZ=Math.max(0,Math.min(1,i.rZ+$.shift[1])); i.FI=Math.max(0,Math.min(1,i.FI+$.shift[2]));var B=L.AP(i.cQ,i.rZ,i.FI);s=(1-ec)*s+ec*B.i;N=(1-ec)*N+ec*B.m; z=(1-ec)*z+ec*B.P;q[f]=I<<24|z*255<<16|N*255<<8|s*255}}if($.type==E.OV){var r=new Uint32Array(o.buffer),q=new Uint32Array(T.buffer),Y=r.length,gT=$.M9[0]/100,iz=$.M9[1]/100; for(var f=0;f>>8&255)*(1/255),z=(Z>>>16&255)*(1/255),I=Z>>>24,i=L.sY(s,N,z),ce=i.cQ,gf=i.rZ,K=i.ed,gw=0,iI=45/360,g2=ce16777215?t.a84(o):$.Fltr.v.classID};iZ.WK=[{n$:"GEfc"},{n$:"LnCr"},{n$:"LqFy",iR:!0},{W7:"3D",j7:["lightFilterGradient"]},{W7:[24,2],j7:"Avrg,Blr ,BlrM,boxblur,GsnB,Bokh,MtnB,RdlB,surfaceBlur".split(",")},{W7:[24,4],j7:"Dspl,Pnch,Plr ,Rple,Shr ,Sphr,Twrl,Wave,ZgZg".split(",")},{W7:[24,6],j7:["AdNs","Dspc","DstS","Mdn "]},{W7:[24,8],j7:"ClrH,Crst,Frgm,Mztn,Msc ,Pntl".split(",")},{W7:[24,10],j7:["Clds","DfrC","Fbrs","LnsF"]},{W7:[24,12],j7:["Shrp","ShrE","ShrM","smartSharpen","UnsM"]},{W7:[24,14],j7:"Dfs ,Embs,FndE,oilPaint,Slrz,TrcC,Wnd ".split(",")},{W7:[24,16],j7:"HghP,Mxm ,Mnm ,Ofst,Rept,Ctoa".split(",")},{W7:"Fourier",j7:["dDFT","iDFT"]}]; iZ.PV={LqFy:"LqFy",Avrg:"Avrg","Blr ":"blurEvent",BlrM:"blurMethod",boxblur:"boxblur",GsnB:"gaussianBlur",MtnB:"motionBlur",RdlB:"radialBlur",surfaceBlur:"surfaceBlur",lightFilterGradient:"lightFilterGradient",adaptCorrect:"adaptCorrect",Pnch:"pinch","Plr ":"polar",Rple:"ripple","Shr ":"shear",Sphr:"spherize",Twrl:"twirl",Wave:"wave",AdNs:"addNoise",DstS:"dustAndScratches","Mdn ":"median",ClrH:"colorHalftone",Crst:"",Frgm:"",Mztn:"mezzotint","Msc ":"mosaic",Pntl:"",Flam:"",Clds:"clouds",DfrC:"differenceClouds",LnsF:"LnsF",Shrp:"sharpen",ShrM:"sharpenMore",smartSharpen:"smartSharpen",UnsM:"unsharpMask",FndE:"findEdges",oilPaint:"oilPaint",HghP:"highPass","Mxm ":"maximum","Mnm ":"minimum",Ofst:"offset"}; iZ.WF={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"}; iZ.q={rigidTransform:D.w_};iZ.names={lightFilterGradient:"Normal Map",rigidTransform:[10,46],LnCr:[24,1,1,0],LqFy:[24,1,0,0],GEfc:[24,0],Avrg:[24,3,0],"Blr ":[24,3,1],BlrM:[24,3,2],boxblur:[24,3,3],GsnB:[24,3,4],Bokh:[24,3,5],MtnB:[24,3,6],RdlB:[24,3,7],surfaceBlur:[24,3,10],Dspl:[24,5,0],Pnch:[24,5,1],"Plr ":[24,5,2],Rple:[24,5,3],"Shr ":[24,5,4],Sphr:[24,5,5],Twrl:[24,1,0,1,3],Wave:[24,5,6],ZgZg:"ZigZag",AdNs:[24,7,0],Dspc:[24,7,1],DstS:[24,7,2],"Mdn ":[24,7,3],ClrH:[24,9,0],Crst:[24,9,1],Frgm:[24,9,3],Mztn:[24,9,4],"Msc ":[24,9,5],Pntl:[24,9,6],Flam:"Flame",Clds:[24,11,0],DfrC:[24,11,1],Fbrs:"Fibers",LnsF:[24,11,2],Shrp:[24,13,0],ShrE:[24,13,1],ShrM:[24,13,2],smartSharpen:[24,13,3],UnsM:[24,13,4],"Dfs ":[24,15,0],Embs:[24,15,1],FndE:[24,15,3],oilPaint:[24,15,4],Slrz:"Solarize",TrcC:"Trace Contour","Wnd ":"Wind",HghP:[24,17,1],"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]]}; iZ.o_=function($){var o=null;if($=="GEfc")o={__name:"Filter Gallery",classID:"GEfc",GEfs:{t:"VlLs",v:[{t:"Objc",v:gH.o_("GlwE")}]}}; if($=="LqFy"){var T={N0:5,cQ:5,map:new Float32Array(5*5*2)},s=new Uint8Array(iT._i(T)),E=[];for(var f=0; fo.x)o.x=e.x;if(e.y>o.y)o.y=e.y}return o};iZ.Rn=function($,o){var T=0,s=0; if(["GsnB","boxblur","smartSharpen","UnsM","HghP"].indexOf($)!=-1){var E=o.Rds.v.val;T=s=E*2.57}if($=="MtnB")T=s=o.Dstn.v.val; if("Ofst,Rept,LqFy,Dspl,Pnch,Rple,Shr ,Sphr,Twrl,ZgZg,Wave,RdlB,Clds,DfrC,Plr ,LnCr,Wnd ,lightFilterGradient,rigidTransform,Frgm".split(",").indexOf($)!=-1){T=s=1e4}if($=="GEfc")return gH.Rn(o); return new aY(Math.ceil(T),Math.ceil(s))};iZ.HA=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:[]}}}}; iZ.sJ=function($,o){var T={i:o.z4>>16,m:o.z4>>8&255,P:o.z4&255},s={i:o.GR>>16,m:o.GR>>8&255,P:o.GR&255},E=iZ.names[$]; if(E==null)E=dq.names[$];var e=$;for(var n in dq.YZ)if(dq.YZ[n]==$)e=n;var A={t:"Objc",v:{classID:"filterFX",Nm:{t:"TEXT",v:aX.get(E)},blendOptions:{t:"Objc",v:{classID:"blendOptions",Opct:{t:"UntF",v:{type:"#Prc",val:100}},Md:{t:"enum",v:{BlnM:"Nrml"}}}},enab:{t:"bool",v:!0},hasoptions:{t:"bool",v:!0},FrgC:{t:"Objc",v:L.h.wb(T)},BckC:{t:"Objc",v:L.h.wb(s)},filterID:{t:"long",v:e.length==4?t.ajC(e):777}}},u=iZ.o_($); if(u)A.v.Fltr={t:"Objc",v:u};return A};iZ.R7=function($,o,T,s){L.qc(T);if($<1){var E=Math.round($*5),e=[1,2,1,2,[40,26,13,6,4,2][E],2,1,2,1]; e=L.TS.Hx(e);var n=T.slice(0);L.TS.ls(n,T,s.d,s.w,e,255)}else o(T,s,$);L.tr(T)};iZ.aok=function($,o,T,s){for(var f=0; f<$.length;f++){T[f]=$[f]*(1/255);s[f]=0}FFT.fft2d(T,s);var E=o>>>1,e=16384,n=128,u=100;while(n>>1,e=16384,n=128;while(n>>1:0;if($=="GEfc"){var u=[];if(T.GEfs){var Y=T.GEfs.v; for(var f=0;f=m&&i1=m)F[bA]=0}function Z(cX,bA){var c7=S[cX],i1=S[bA]; if(c7>m&&i1<=m)F[bA]=0;if(c7<=m&&i1>m)F[cX]=0}if(R)for(var I=1;Ifq)bD[f]=255-bD[f]; if(bD[f+1]>fq)bD[f+1]=255-bD[f+1];if(bD[f+2]>fq)bD[f+2]=255-bD[f+2]}}if($=="Wnd "){var w=o.rect,X=w.d,N=w.w,fO=["Wnd","Blst","Stgr"],g6=T.WndM.v.WndM; L.j.a_(o.buffer,X,N,e.buffer,[fO.indexOf(g6),T.Drct.v.Drct!="Left"])}if($=="Bokh"){var w=o.rect,X=w.d,N=w.w,z=X*N,i=z*4,hM=o.buffer.slice(0),d3=T.BkDi.v.BtDi,h9=T.BkDc,cs=T.BkDp.v/255; if(d3=="BeIn")cs=0;var dv=57*(.3+.7*((X+N)/2)/1750)*(T.BkIb.v/100)*(1+.2*Math.pow(cs,.1)),J=parseInt(T.BkIs.v.BtIs.slice(3)),ec=-T.BkIr.v*Math.PI/180,gT=[]; for(var f=0;f<8;f++){var iz=ec+f*(Math.PI*2/J),gw=ec+(f+1)*(Math.PI*2/J),iI=Math.cos(iz),g2=Math.sin(iz),bb=Math.cos(gw),ir=Math.sin(gw),dG=[0,0,0]; L.Ak._v([[iI,g2,1,0],[bb,ir,1,0],[1,1,1,1]],dG);if(dG[2]>0){dG[0]*=-1;dG[1]*=-1;dG[2]*=-1}gT.push(dG[0],dG[1],dG[2],0)}if(d3=="BeIn"){L.wr(hM,0,16777215); cs=1}else if(d3=="BeIt"&&h9.v.BtDc=="BeCt"){}else{var gY;if(d3=="BeIt"&&h9.v.BtDc=="BeCm")gY=n[1];else if(d3=="BeIa")gY=n[2][h9.v]; if(gY==null){L.wr(hM,0,16777215)}else{var e6;if(gY.rect.R1(w))e6=gY.channel;else e6=gY.$a(w);L.aM(e6,hM,3)}}if(y.re){var fr=hM,bt=X,cx=N,ci=1,gv=(T.BkSb.v==0||T.BkSt.v==255)&&d3=="BeIn"; if(!gv){var gu=0;for(var f=0;f2e3){alert("too large radius");return}}while(gv&&3*(dv/ci)*(dv/ci)*X*N>500*2e3*2e3){var hP=L.gc(hM,new df(0,0,bt,cx)); hM=hP._3;bt=hP.rect.d;cx=hP.rect.w;ci*=2}var ai=Date.now(),hK=y.lK(0,bt,cx);hK.set(hM);var h3=y.lK(1,X,N); y.U0(h3);y.filter.Ze({type:y.filter.iz,Ip:new Float32Array([1/bt,1/cx]),aqY:cs,aoG:dv/ci,agx:new Float32Array([T.BkSb.v/100,T.BkSt.v/255]),aby:new Float32Array([T.BkNa.v/100,T.BkNt.v.BtNt=="BeNu"?0:1,T.BkNm.v?1:0]),an3:new Float32Array(gT.slice(0,16)),aq2:new Float32Array(gT.slice(16))},hK.ek); h3.get(e.buffer);var e4=e.buffer;for(var f=0;f>>2,dp=bx.indexArray.v.length>>>2,dd=new Float32Array(co(bx.originalVertexArray.v)); for(var f=0;f>>1;dX+=~~(dp/3)}var gy=o.rect,X=gy.d,N=gy.w;L.pZ.rW(hK,X,N,e.buffer,X,N,cC,hm,bF,cu); L.tr(e.buffer)}if($=="lightFilterGradient"){function fi(dP){var c7=1/Math.sqrt(dP[0]*dP[0]+dP[1]*dP[1]+dP[2]*dP[2]); dP[0]*=c7;dP[1]*=c7;dP[2]*=c7}var X=o.rect.d,N=o.rect.w,z=X*N,ai=Date.now(),hN=L.G(z),i1=.3,bZ=.7;L.h$(e.buffer,hN); var b4=L.G(z);L.Ja.Yy(hN,b4,e.rect,16);var eN=L.G(z);L.Ja.Yy(hN,eN,e.rect,8);var hX=hN,fh=new Float32Array(z),a5=T.Dtl.v,aT=a5[2].v,aZ=a5[1].v,eA=a5[0].v,c0=T.Scl.v*40*T.textureScale.v/(aT+aZ+eA); aT*=c0;aZ*=c0;eA*=c0;for(var f=0;f>1;J|=J>>2;J|=J>>4;J|=J>>8;J|=J>>16;return J+1}var X=o.rect.d,N=o.rect.w,ek=aJ(Math.max(X,N)),fL=ek>>>1,bW=new df(0,0,ek,ek),ic=new df(0,0,X,N); ic.y=ek-N>>>1;var dz=X>>>1,gL=new df(0,ic.y,dz,N),gI=new L.uR(X*N);L.KT(o.buffer,gI);var e5=new Float64Array(ek*ek),eh=new Float64Array(ek*ek),e6=L.G(ek*ek); FFT.init(ek);var gZ=[gI.i,gI.m,gI.P];for(var f=0;f<3;f++){var b8=gZ[f];e6.fill(0);if($=="dDFT"){L.pg(b8,ic,e6,bW); iZ.aok(e6,ek,e5,eh);L.pg(e6,bW,b8,ic,gL);gL.x+=dz;bW.x-=fL-dz;L.pg(e6,bW,b8,ic,gL);gL.x-=dz;bW.x+=fL-dz}else{L.pg(b8,ic,e6,bW,gL); gL.x+=fL;ic.x+=fL-dz;L.pg(b8,ic,e6,bW,gL);gL.x-=fL;ic.x-=fL-dz;iZ.ajb(e6,ek,e5,eh);L.pg(e6,bW,b8,ic)}}L.dy(gI,e.buffer)}if($=="Avrg"){var bl=0,iU=0,bg=0,hs=0,bY=1; for(var f=0;f0)eX=Math.max(0,eX-hk);else eX=Math.min(0,eX+hk);e.buffer[f]=Math.max(0,Math.min(255,a2+eX))}}if($=="HghP")for(var f=0; fab?0:255}}}L.dy(gI,e.buffer)}if($=="Msc "){var br=T.ClSz.v.val,X=o.rect.d,N=o.rect.w,fP=Math.ceil(X/br),gD=Math.ceil(N/br),dZ=L.G(fP*gD*4); L.scale.nq(o.buffer,X,N,dZ,fP,gD,1/br);L.scale.nq(dZ,fP,gD,e.buffer,X,N,br)}if($=="Clds"||$=="DfrC"){var X=e.rect.d,N=e.rect.w,z=X*N,f3=L.G(z); if($=="Clds")L.wr(e.buffer,4278190080);var il=L.G(256*4);for(var f=0;f<256;f++){var cN=f<<2,bd=f/255,iY=1-bd; il[cN]=Math.round(bd*s.i+iY*E.i);il[cN+1]=Math.round(bd*s.m+iY*E.m);il[cN+2]=Math.round(bd*s.P+iY*E.P)}L.j.ahv(o.buffer,X,N,f3); var aL=e.buffer;for(var f=0;f1,X=o.rect.d,N=o.rect.w,dn=L.TS.mQ[hD],gG=o.buffer.slice(0); if(!iQ)L.qc(gG);L.TS.ls(gG,e.buffer,X,N,dn,255,!1,iQ);if(!iQ)L.tr(e.buffer)}if($=="MtnB"){var dj=-T.Angl.v*Math.PI/180,f5=T.Dstn.v.val/2,ai=Date.now(),X=o.rect.d,N=o.rect.w,w=o.rect.clone(); w.x=w.y=0;if(y.re){var ai=Date.now(),i_=e.buffer;i_.set(o.buffer);L.qc(i_);var ga=y.lK(0,X,N);ga.set(i_); var S=L.G(4);S[0]=Math.round(128+127*Math.cos(dj));S[1]=Math.round(128+127*Math.sin(dj));new Uint32Array(i_.buffer).fill(new Uint32Array(S.buffer)[0]); var f7=y.lK(1,X,N);f7.set(i_);y.U0(ga,w);ga.bv(w);y.filter.Ze({type:y.filter.aY,qY:f7.ek,Ip:new Float32Array([1/X,1/N]),a6p:f5/2,a7X:1},ga.Ji); ga.get(i_);L.tr(i_)}else{var cl=new fY;cl.rotate(dj);var b5=D.p.qh([o.buffer,o.rect],cl,!1,null,!0); iZ.R7(f5,L.Ja.Os,b5.buffer,b5.rect);cl.lY();b5=D.p.qh([b5.buffer,b5.rect],cl,!1,e.buffer.buffer,!0,e.rect)}console.log(Date.now()-ai)}if($=="RdlB"){var X=o.rect.d,N=o.rect.w,K=T.Amnt.v,aK=T.BlrM.v.BlrM=="Zm",hp=T.Cntr.v,fd=hp.Hrzn.v,a9=hp.Vrtc.v,cv=Math.max(fd,1-fd)*X,f0=Math.max(a9,1-a9)*N,ei=Math.sqrt(cv*cv+f0*f0),gA=2*Math.PI*ei*1.5,el=Math.round(gA),gO=Math.round(ei),gL=new df(0,0,el,gO),gW=L.G(el*gO*4),ip=aK?4:1,bm=aK?.6:8*((X+N)/2)/1400,ez=.1,ci=1,fX=1; L.$.f5(o.buffer,X,N,gW,el,gO,fd,a9,ip,ez,ci,fX);var go=aK?L.G(el*gO*4):null;if(aK){L.$.EP(gW,go,el,gO); var f1=go;go=gW;gW=f1;gL.d=gO;gL.w=el}iZ.R7(bm*K,L.Ja.Os,gW,gL);if(aK){L.$.EP(gW,go,gO,el);var f1=go; go=gW;gW=f1;gL.d=el;gL.w=gO}L.$.mz(gW,el,gO,e.buffer,X,N,fd,a9,ip,ez,ci,fX)}if($=="Plr "){var X=o.rect.d,N=o.rect.w; if(T.Cnvr.v.Cnvr=="RctP")L.$.mz(o.buffer,X,N,e.buffer,X,N,.5,.5,1,0,2,X/N);else L.$.f5(o.buffer,X,N,e.buffer,X,N,.5,.5,1,0,2,X/N)}if($=="FndE"){var X=o.rect.d,N=o.rect.w; L.TS.eF(o.buffer,e.buffer,X,N)}if($=="oilPaint"){var ce=T.LghD.v*Math.PI/180,fc=[Math.cos(ce),Math.sin(ce),.001],V=[T.stylization.v,T.cleanliness.v,T.brushScale.v,T.microBrush.v,T.lightingOn.v,T.specularity.v,fc],w=o.rect.clone(); w.x=w.y=0;L.CS.filter(o.buffer,w,e.buffer,V)}if($=="Ofst"){var X=o.rect.d,N=o.rect.w,fD=new Uint32Array(o.buffer.buffer),bJ=new Uint32Array(e.buffer.buffer),ck=T.Hrzn.v,i6=T.Vrtc.v,hj=T.Fl.v.FlMd; L.wr(bJ,0);if(hj=="Bckg"||hj=="Rpt"){var gL=o.rect.clone();gL.offset(ck,i6);L.h9(fD,gL,bJ,e.rect)}if(hj=="Rpt"){var iI,g2,bb,ir,hY; ck=Math.max(-X,Math.min(X,ck));i6=Math.max(-N,Math.min(N,i6));iI=ck>0?ck:0;bb=ck>0?X:X+ck;g2=i6>0?0:i6+N; ir=i6>0?i6:N;hY=i6>0?0:X*(N-1);for(var I=g2;I0?0:X+ck; bb=ck>0?ck:X;g2=i6>0?i6:0;ir=i6>0?N:N+i6;hY=ck>0?0:X-1;for(var I=g2;I=0&&i6>=0){iI=0;bb=ck;g2=0;ir=i6;hY=0}if(ck>=0&&i6<0){iI=0;bb=ck;g2=N+i6;ir=N;hY=X*(N-1)}if(ck<0&&i6>=0){iI=X+ck; bb=X;g2=0;ir=i6;hY=X-1}if(ck<0&&i6<0){iI=X+ck;bb=X;g2=N+i6;ir=N;hY=X*N-1}for(var I=g2;I0?gd/gy:gy/gd,fX=fd+gs*dJ*cv,a1=a9+gs*dJ*f0,f=I*gq.N0+_<<1; gq.map[f]=fX-_;gq.map[f+1]=a1-I}}}else if($=="Dspl"&&c_.length!=0){cQ=T.UndA.v.UndA=="WrpA"?2:1;var h4=T.DspF.v.pth,fb; for(var f=0;f>>1:0;function w(G){return G.i<<24|G.m<<16|G.P<<8|255}if($=="ClrP")L.j.ajS(o.buffer,u,Y,e.buffer,[T.Pncl.v,T.StrP.v,T.PprB.v]); if($=="Ct"){var X=T.NmbL.v,N=T.EdgS.v,z=UPNG.quantize(o.buffer.buffer,X*2);z={Zg:z.inds,fD:z.plte};var i=Math.floor((u+Y)*.015); if(i!=0)L.Ej.gb(z.Zg,u,Y,i);var k=new Uint8Array((u+2)*(Y+2));L.pg(z.Zg,new df(1,1,u,Y),k,new df(0,0,u+2,Y+2)); var Q=L.M.Ew(k,u+2,Y+2,N,!1),O=new fY(1,0,0,1,-1,-1);for(var f=0;f>>1]);if($=="Crql")L.j.a9R(o.buffer,u,Y,e.buffer,[T.CrcS.v,T.CrcD.v,T.CrcB.v,a]); if($=="Grn")L.j.a3g(o.buffer,u,Y,e.buffer,[T.Intn.v,gH.vf.indexOf(T.Grnt.v.Grnt),T.Cntr.v,w(s),w(E),a]); if($=="MscT")L.j.a0z(o.buffer,u,Y,e.buffer,[T.TlSz.v,T.GrtW.v,T.LghG.v,a]);if($=="Ptch")L.j.ajx(o.buffer,u,Y,e.buffer,[T.SqrS.v,T.Rlf.v,a]); if($=="Phtc"){function j(ak,hP,A,hN){L.Ja.Pm(ak,hP,A,hN);for(var f=0;f>>1,cv=K==0?2:1;gH.Dc(g.map,ce,u,Y,cv);gH.Wb(ce,g.map,u,Y,cv); if(K!=0){var f0=gH.QR.indexOf(T.SDir.v.StrD),i8=[1,1,1,0][f0],b5=[-1,0,1,1][f0],iC=2*K+1,an=1/iC;for(var I=0; I1)gH.R7(ec,gT,iz,A,h9-1);if($=="PlsW"){var gY=new Uint8Array(ec.buffer);for(var f=0;f>>1,gu=Y>>>1; for(var f=0;f>>1,b4,[]);L.TS.eF(a5,e.buffer,u,Y);L.w0(e.buffer,a5); L.lY(a5);L.wr(a5,4278190080,16777215);L.KW.ay(a5,e.buffer,u,Y,T.EdgW.v>>>1,L.KW.e5,[]);var aT=T.EdgB.v/10; for(var f=0;f>>1))*bZ;eS[_]=bx*bx;cO[_]=Math.cos(bx);var i8=_<<1;d9[i8]=Math.sin(i8*(1/4.5)); d9[i8+1]=Math.sin((i8+1)*(1/4.5))}for(var I=0;I>>1))*bZ,bh=Math.cos(ix),cp=ix*ix; for(var _=0;_46)L.round(aD); gH.ef(aD,e.buffer,s,E)}for(var f=0;f=T?T-1:X,z=(u*T+N)*2,i=e[f];a+=i*$[z];w+=i*$[z+1]}o[b]=a; o[b+1]=w}};gH.Wb=function($,o,T,s,E){var e=gH.Tc(E),n=6,A=13;for(var u=0;u=s?s-1:X,z=(N*T+Y)*2,i=e[f];a+=i*$[z];w+=i*$[z+1]}o[b]=a; o[b+1]=w}};function hI(){}hI.xx=[2,5,5,7,4,4];hI.zk="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(","); hI.C3="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(" "); hI.fC=[[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]]; hI.Ml=["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"]; hI.VB=function($){if($=="passThrough")return"pass";return hI.zk[hI.C3.indexOf($)]};hI.$j=function($){if($=="pass")return"passThrough"; return hI.C3[hI.zk.indexOf($)]};hI.getName=function($){return hI.fC[hI.zk.indexOf($)]};function M(){this.rect=null; this.fh="norm";this.opacity=255;this.WL=!1;this.Jp=0;this.pI=0;this.UD=!0;this.so=[];for(var f=0;f<10; f++)this.so.push(0,0,255,255);this.name=null;this.add={};this.buffer=null;this.YT=null;this.FW=null; this._=null;this.Vx=null;this.aaZ=30;this.aH=M.an();this.a6A=M.an();this.amR=M.an();this.aeJ=M.an(); this.dQ=0;this.Jg=!1;this._I=null;this.B4=new M.az}M.an=function(){var $=H.z("canvas");$.width=$.height=30; return $.getContext("2d")};M.az=function(){this.MQ=!0;this.ZM=!0;this.rP=L.G(0);this.a0Y=L.G(0);this.v7=null; this.Td={};this.ajh=null;this.gx=null;this.Qu=null;this._s=null;this.fy=null;this.Nl=null;this.PG=null; this.cU=null;this.xN=null;this.oL=null;this.f_=null;this.r7=null;this.j1=!1};M.az.prototype.VL=function(){this.MQ=!1; this.ZM=!1;this.v7=null;this.j1=y.re};M.az.prototype.af4=function(){fW.z_(this.Td);this.rP=L.G(0);this.a0Y=L.G(0); if(this._s)this._s.delete();if(this.fy)this.fy.delete();this._s=null;this.fy=null;var $=[this.Nl,this.PG,this.cU,this.xN,this.oL,this.f_]; for(var f=0;f<6;f++)if($[f]!=null&&$[f]instanceof y.uR)$[f].delete();this.Nl=null;this.PG=null;this.cU=null; this.xN=null;this.oL=null;this.f_=null};M.prototype.T=function($){if($==null)$=this.rect.clone();if(this.B4.v7==null)this.B4.v7=$; else this.B4.v7=this.B4.v7.BZ($)};M.prototype.p3=function(){return this.add.lsct==hd.NH||this.add.lsct==hd.Qm}; M.prototype.d5=function(){var $=this.add;return $.SoCo!=null||$.GdFl!=null||$.PtFl!=null};M.prototype.r2=function(){var $=this.add.lmfx; if($==null)return;var o=["GrFl","patternFill"];for(var f=0;f>2);L.Ge(e.YS,A,3);if(!L.R1(o.channel,A))return!1; var u=L.G(n.d*n.w*4);L.h9(e.UK,e.Ic,u,n);L.R.xE("norm",e.YS,e._9,u,n,n,1);return L.R1(u,this.buffer)}if(e.dQ==1||e.dQ==3){var Y=e.dQ==1?this.yy():this.DE($)._; if(!n.R1(Y.rect))return!1;var b=L.G(n.Y());b.fill(Y.color);L.pg(e.UK,e.Ic,b,n);L.R._b(e.YS,e._9,b,n,o.channel,n,1); return L.R1(b,Y.channel)}};M.prototype.Rq=function($,o,T,s){var E=this._I;E._9.offset(o,T);var e=E.Ic.BZ(E._9); if(E.dQ<=0){var n=L.G(e.Y()*4);L.h9(E.UK,E.Ic,n,e);L.R.xE("norm",E.YS,E._9,n,e,e,1);this.buffer=n;this.rect=e; this.T()}else{var A=this.dQ==1?this.yy():this.DE($)._,u=L.G(e.Y());u.fill(A.color);L.pg(E.UK,E.Ic,u,e); L.R._b(E.YS,E._9,u,e,s.channel,e,1);A.channel=u;A.rect=e.clone();if(this.dQ==1){A.Or=!0;this.tF($)}if(this.dQ==3)this.T()}}; M.prototype.Dv=function(){var $=[-1,0,1,2];if(this._)$.push(-2);if(this.Vx)$.push(-3);return $};M.prototype.getName=function(){return this.add.luni?this.add.luni:this.name}; M.prototype.tM=function(J){this.add.luni=this.name=J};M.prototype.mm=function($){var o=this.add.lnsr,T=this.add.TySh; if(o=="rend"&&T)this.tM(g8.m5(T.h3).replace(/(?:\r\n|\r|\n)/g," ").slice(0,32))};M.prototype.N9=function(){return(this.Jp&1<<1)==0}; M.prototype._1=function(){return(this.Jp&1<<4)==0};M.prototype.px=function(){return(this.Jp&1<<5)!=0}; M.prototype.ab_=function(){var $=this;if($.add.lnsr!="bgnd"){$.add.lnsr="bgnd";$.tM("Background");$.add.lspf=1<<2}}; M.prototype.a6r=function(){var $=this;if($.add.lnsr=="bgnd"){delete $.add.lnsr;$.tM("Layer 0");$.add.lspf=0}}; M.prototype.iQ=function($){var o=this.add.lspf;return o==null?!1:(o>>$&1)!=0};M.prototype.bC=function($){if($&&!this.N9())this.Jp-=2; if(!$&&this.N9())this.Jp+=2};M.prototype.fg=function(){var $=this.add.lmfx;if($==null)return!1;for(var o in $){if(o=="masterFXSwitch")continue; if(o=="Scl")continue;if(o=="classID")continue;if($[o].v.length>0)return!0}return!1};M.prototype.HC=function(){return this.add.SoLd!=null&&this.add.SoLd.filterFX!=null}; M.prototype.f7=function(){var $=this.add.lmfx;if($==null)return!1;if(!$.masterFXSwitch.v)return!1;for(var o in $){if(o=="masterFXSwitch")continue; if(o=="Scl")continue;if(o=="classID")continue;var T=$[o].v;for(var f=0;f1){var b=L.A.k5(u.g,null,u.Rc);Y=L.M.L3(b)}else Y=L.A.hT(u.g,u.D.length!=0?u.D:null)}else Y=L.A.hT(u.g); E=E.BZ(Y)}if(e.indexOf(3)!=-1)E=E.BZ(this.DE($)._.rX());if(e.length==0&&this.d5())E=new df(0,0,$.d,$.w); return E};M.prototype.Rr=function(){var $=this.add.artb,o=$.artboardBackgroundType.v,T=0;if(o==1)T=4294967295; else if(o==2)T=4278190080;else if(o==3)T=0;else if(o==4){T=$.Clr.v;T=255<<24|T.Bl.v<<16|T.Grn.v<<8|T.Rd.v}else throw o; return T};M.prototype.co=function(){var $=this.add.artb.artboardRect.v,o=$.Btom.v,T=$.Left.v,s=$.Rght.v,top=$.Top.v; return new df(T,top,s-T,o-top)};M.prototype.y2=function($){var o=M.V5($);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=o};M.V5=function($){var o={classID:"classFloatRect",Top:{t:"doub",v:0},Left:{t:"doub",v:0},Btom:{t:"doub",v:0},Rght:{t:"doub",v:0}}; o.Btom.v=$.y+$.w;o.Left.v=$.x;o.Rght.v=$.x+$.d;o.Top.v=$.y;return o};M.prototype.Kj=function($,o,T){var s=[],E=this,e=this.Jg; if(!o&&E.Jg&&T){s.push(2)}else if(E.dQ<=0||o){if(E._1())if(!this.rect.p4())s.push(0);if(E.yy()&&!E.yy().rect.p4())if(E.yy().lq||o)s.push(1); if(E.add.vmsk)if(E.add.vmsk.lq||o)s.push(2);if(E.HC()&&E.DE($)._&&!E.DE($)._.rect.p4())s.push(3)}else if(E.dQ==1){s.push(1); if(E.yy().lq&&!E.yy().rect.p4()){if(E._1())if(!this.rect.p4())s.push(0);if(E.add.vmsk)if(E.add.vmsk.lq)s.push(2)}}else if(E.dQ==3&&!E.DE($)._.rect.p4())s.push(3); if(E.add.artb&&s.indexOf(0)==-1)s.push(0);s.sort();return s};M.prototype.yy=function(){var $=this;return $.Vx?$.Vx:$.add.vmsk&&$.add.vmsk.isEnabled?null:$._}; M.prototype.DE=function($){var o=this.add.SoLd.placed.v,T=$.add.FEid;if(T==null)return null;for(var f=0; f3e4*3e4)o=new df(0,0,100,100); if($&&$[T].v[T]!="strokeStyleAlignInside"){var E=1;if($[s].v[s]=="strokeStyleMiterJoin"){var e=L.A.a0A(this.g),n=e/2,A=Math.sin(n),u=Math.cos(n); u/=A;A=1;var E=Math.sqrt(u*u+A*A);if(isNaN(E)||E<1)E=1}E*=$[T].v[T]=="strokeStyleAlignOutside"?1:.5; var Y=Math.ceil($.strokeStyleLineWidth.v.val*E);Y=Math.min(Y,600);o.Mi(Y,Y)}o=L.M.lZ(o);var b=new M.Zb; b.color=L.A.Z4(this.g)?0:255;b.lq=this.lq;b.isEnabled=this.isEnabled;b.Sf=!0;b.rect=o;b.A7=this.A7;b.DI=this.DI; b.channel=L.G(b.rect.Y());if(!o.p4())L.A.adB(this.g,b.channel,b.rect,$);if($==null){this.Vx=b;this.Or=!1}return b}; M.PZ.prototype.clone=function(){var $=new M.PZ;$.lq=this.lq;$.isEnabled=this.isEnabled;$.A7=this.A7; $.DI=this.DI;$.g=M.PZ.IN(this.g);$.kZ=this.kZ.slice(0);$.wq=this.wq;$.D=this.D.slice(0);$.Rc=this.Rc.slice(0); return $};M.PZ.prototype.concat=function($){var o=$.g.slice(2);if(o.length==0)return;o[0].m6=3;this.g=this.g.concat(o)}; M.PZ.IN=function($){var o=[];for(var f=0;f<$.length;f++){var T=$[f];if(T.type>5||T.type==0||T.type==3)o.push(JSON.parse(JSON.stringify(T))); else o.push({type:T.type,Wq:T.Wq.clone(),W:T.W.clone(),JL:T.JL.clone()})}return o};M.PZ.a7S=function($,o,T){if($.length!=o.length)return!1; for(var f=2;f<$.length;f++){var s=$[f],E=o[f];if(s.type!=E.type)return!1;if(s.type==0||s.type==3){if(s.length!=E.length||!T&&s.m6!=E.m6)return!1}else if(!s.Wq.R1(E.Wq)||!s.W.R1(E.W)||!s.JL.R1(E.JL))return!1}return!0}; M.PZ.prototype.alO=function(){var $=this.g;for(var f=3;f<$.length;f++)if($[f].type==0||$[f].type==3)$[f].m6=-1}; M.SC=function(){this.type=null;this.R4=2;this.EB=null;this.FZ="";this.Ul="";this.oF="";this.open=0;this.raw=null; this.wc=null;this.a4Z=""};M.SC.prototype.clone=function(){var $=new M.SC;$.type=this.type;$.R4=this.R4; $.EB=this.EB;$.FZ=this.FZ;$.Ul=this.Ul;$.oF=this.oF;$.open=this.open;$.raw=new Uint8Array(this.raw.buffer.slice(0)); return $};M.SC.prototype.aw=function($,o,T){if(T==null)T="none";var s=this,E=eY.RP(s.raw.buffer),e=E=="svg"||E=="pdf"; if(s.wc){var n=o&&e&&Math.max(s.wc[1].d,s.wc[1].w)o.ed.length)o.ed=$.slice(0); if(this.depth!=0)$.pop()};h$.prototype.a20=function(){var $=0;if(this.c.p3()){for(var f=0;f=0;f--){var J=this.children[f],s=J.cM($,o);if(s&&o==null)return s}return null}else if(T.add.TySh&&T.rect.dv($)||L.apb($,T.buffer,T.rect)){if(o==null)return this; else o.push(this.index)}return null};h$.prototype.arF=function($){var o=this.c;if(!o.N9()||o.iQ(2)||o.iQ(31))return null; var T=o.add.vmsk;if(T&&T.isEnabled){var s=L.A.cM(T.g,$).II;if(s!=-1)return{a30:this,ajq:s}}if(o.p3()){if(o.add.artb&&!o.co().dv($))return null; for(var f=this.children.length-1;f>=0;f--){var J=this.children[f],E=J.arF($);if(E)return E}return null}return null}; h$.prototype.g6=function($,o){$.push(this.index);if(this.c.p3()){$.push(this.t_);if(o)if(this.c.dQ==1&&this.c.yy().lq==!1)return; for(var f=0;fo.w){E=T;e=Math.floor(T*(o.w/o.d))}else{E=Math.floor(T*(o.d/o.w)); e=T}if(s.d5()&&s.add.vmsk==null||s.add.TySh)E=e=Math.max(e,16);else{E=Math.max(E,6);e=Math.max(e,6)}var n=e,A=s.d5()&&s.add.vmsk; if(A){var u=s.rect.clone(),a,w;if(u.p4())u=new df(0,0,20,20);var Y=u.d,b=u.w;if(Y>b){a=T;w=Math.floor(T*(b/Y))}else{a=Math.floor(T*(Y/b)); w=T}if(a*w==0)a=w=16;L.JH.CH(s.aH,a,w,u,s.buffer,s.rect,!1);L.JH.a4G(s.aH,a,w);n=w}else if(s.add.TySh){L.JH.an5(s.aH,n,n,s.add.TySh)}else if(s.add.SoCo){n=Math.max(16,Math.min(E,e)); L.JH.a16(s.aH,n,n,s.add.SoCo)}else if(s.add.GdFl){L.JH.adL(s.aH,n,n,s.add.GdFl)}else if(s.add.PtFl){L.JH.ark(s.aH,n,n,s.add.PtFl,$)}else if(dq.get(s.add)!=null){L.JH.afo(s.aH,n,n,s.add)}else if(s.add.SoLd){L.JH.CH(s.aH,E,e,o,s.buffer,s.rect,!1); L.JH.aaU(s.aH,E,e,s.add.SoLd)}else if(s.p3()){n=16}else{if(s._1())L.JH.CH(s.aH,E,e,o,s.buffer,s.rect,!1); else{L.JH.a7c(s.aH,n,n)}}var X=s.yy();if(X)L.JH.ab(s.a6A,E,e,o,X);if(s.HC()&&s.DE($)&&s.DE($)._){var N=s.DE($)._; L.JH.ab(s.aeJ,E,e,o,N)}if(!A&&s.add.vmsk){L.JH.ab(s.amR,E,e,o,s.add.vmsk.yy(),!0)}if(s.add.vmsk||X)n=Math.max(n,e); s.aaZ=Math.max(n,16);if(s.p3()&&s.add.lsct==hd.NH)for(var f=0;f0||n.fill!=1||e.f7())){this.Oc($,o,T,s); return}var u=e.p3()&&e.fh=="pass"&&(E.length>0||n.fill!=1||e.f7()),Y=e.rect,b=e.buffer;if(e.p3()){Y=this.rX(s,!1); var w=L.G(Y.Y()*4);a=L.G(Y.Y());this.Oc(w,Y,T,s);L.Ge(w,a,3)}else if(A){Y=o.clone();a=L.G(Y.Y());a.fill(255)}else{Y=e.rect; a=L.G(Y.Y());L.Ge(b,a,3)}if(e.P0()){var X=e._.$a(Y);L.nh(X,a)}if(e.f7())N=fW.ZX(e.add.lmfx,e.add.fxrp,a,Y,s); if(e.f7())fW.YJ(e.add.lmfx,N,Y,$,o,T);if(e.p3()){b=L.G(Y.Y()*4);if(e.fh=="pass")L.h9($,o,b,Y);if(u){var w=L.G(Y.Y()*4); this.Oc(w,Y,T,s);var z=L.G(Y.Y());L.Ge(w,z,3);L.Li(z,Y,b,Y)}this.Oc(b,Y,T,s)}if(A){b=$.slice(0);L.wr(b,4278190080,16777215); var i=dq.get(e.add),k=dq.Za(i,e.add[i]);dq.AY(k,b,b,Y)}var Q=b.slice(0);L.wr(Q,4278190080,16777215); for(var f=0;fB.r3.d)B=c[f]; var G=L.G(B.r3.d*B.r3.w*4);L.h9($,o,G,B.r3)}fW.ZW(e.add.lmfx,N,Y,$,o,T,O,G,B?B.r3:null)}L.R.Cu(O,Y,$,o,a,Y,0,T,1,e.fh=="diss")}; h$.prototype.Oc=function($,o,T,s){var E=this.children;for(var f=0;fe||!n&&e.indexOf(this.index)==-1)){return}var A=this.c,u=fW.Yk(A),Y=h$.D5,b=A.d5()?A.yy():A._; if(!A.N9())return;if(A.P0()&&b.rect.p4()){return}if(A.add.vstk==null&&this.rX(s,!1).p4()){return}var a=this.rX(s,!0).Sr(T); if(!o.R1(T)&&!T.Ha(a))return;if(A.p3()&&A.add.artb){var w=A.co();T=T.Sr(w)}var X=h$.mA(A,E,u);if(!X){this.sc($,o,T,s,E,e); return}A.B4.Nl=Y.pt(A.B4.Nl,a.d,a.w);Y.pg($,o,A.B4.Nl,a,T);this.sc(A.B4.Nl,a,T,s,E,e);Y.Cu(A.B4.Nl,a,$,o,null,null,0,T,A.opacity/255,A.fh=="diss",u.KP)}; h$.mA=function($,o,T){if(T.KP[0]*T.KP[1]*T.KP[2]==0)return!0;return $.opacity!=255&&(o.length!=0||$.p3()||$.f7())}; h$.acx={B4:{}};h$.prototype.sc=function($,o,T,s,E,e){var n=this.c,A=fW.Yk(n),u=dq.get(n.add)!=null,Y=h$.D5,b=h$.mA(n,E,A),a=b?1:n.opacity/255,w=n.d5()?n.yy():n._,X=n.p3()&&n.fh=="pass"&&!(E.length>0||A.fill!=1||n.f7()),N=!n.p3()&&!u&&!n.f7()&&E.length==0,z=u&&!n.f7()&&E.length==0,B=null,G=null,l=null,h; if(X||N||z){var i=$,k=o;if(n.P0()){k=this.rX(s,!1);i=n.B4.xN=Y.pt(n.B4.xN,k.d,k.w);Y.pg($,o,n.B4.xN,k)}if(X)this.s1(i,k,T,s,e); if(N)Y.xE(n.fh,n.H7(s),n.rect,i,k,T,a,A);if(z){var Q=n.P0()&&w.Qc()==0?w.rX().clone():k.clone(),O=n.B4; if(Q.R1(new df(0,0,s.d,s.w)))O=h$.acx;O.cU=this.Ub(i,k,O.cU,Q,n.add);A.xX=!0;Y.xE(n.fh,O.cU,Q,i,k,T,a,A)}if(n.P0())Y.Cu(i,k,$,o,n.mD(),w.rX(),w.Qc(),T,1,n.fh=="diss"); n.B4.VL();return}var c=n.p3()&&n.fh=="pass"&&(E.length>0||A.fill!=1||n.f7()),Q=n.rect;if(n.p3()){Q=this.rX(s,!1); l=n.B4.cU=Y.pt(n.B4.cU,Q.d,Q.w);Y.wr(l,0);this.s1(l,Q,Q,s,e);G=Y.pt(n.B4.PG,Q.d,Q.w);Y.pg(l,Q,G,Q)}else if(u){Q=n.P0()&&w.Qc()==0?w.rX().clone():o.clone(); G=Y.pt(n.B4.PG,Q.d,Q.w);Y.wr(G,4294967295)}else{Q=n.rect;B=n.H7(s);G=Y.pt(n.B4.PG,Q.d,Q.w);Y.pg(B,Q,G,Q)}n.B4.PG=G; if(n.P0())Y.a52(n.mD(),w.rX(),w.Qc(),G,Q);if(n.f7())if(n.B4.v7||n.B4.ZM||n.B4.j1!=y.re||n.B4.MQ||n.p3()){var v=L.G(Q.d*Q.w); if(fW.xC(n.add.lmfx)){if(y.re){if(!n.p3()&&n.yy()==null&&n.rect.R1(Q)&&n.add.vmsk==null)L.Ge(n.buffer,v,3); else{var p=L.G(Q.d*Q.w*4);G.get(p);L.Ge(p,v,3)}}else L.Ge(G,v,3)}if(n.B4.ZM||n.B4.j1!=y.re||!L.R1(v,n.B4.rP)){var P=null; if(n.d5()&&n.add.vmsk&&n.add.vmsk.isEnabled&&n.add.vmsk.yy().color==0)P=n.add.vmsk.yy().rect;fW.a9G(n.B4.Td,v,Q,n.add.lmfx,n.add.fxrp,s,P); n.B4.rP=v;n.B4.aao=Q}}if(n.f7())fW.YJ(n.add.lmfx,n.B4.Td,Q,$,o,T);if(n.p3()){B=Y.pt(n.B4.xN,Q.d,Q.w); Y.wr(B,0);if(n.fh=="pass")Y.pg($,o,B,Q);if(c)Y.nB(l,Q,B,Q);this.s1(B,Q,T,s,e);n.B4.xN=B}if(u){B=n.B4.xN=this.Ub($,o,n.B4.xN,Q,n.add)}if(n.p3()||u)h=B; else{h=Y.pt(n.B4.xN,Q.d,Q.w);Y.pg(B,Q,h,Q,T);n.B4.xN=h}Y.wr(h,4278190080,16777215);for(var f=0;fV.r3.d)V=C[f]; n.B4.f_=Y.pt(n.B4.f_,V.r3.d,V.r3.w);Y.pg($,o,n.B4.f_,V.r3,T);n.B4.r7=Y.pt(n.B4.r7,V.r3.d,V.r3.w)}fW.ZW(n.add.lmfx,n.B4.Td,Q,$,o,T,j,n.B4.f_,n.B4.r7,V?V.r3:null)}if(!y.re){var d=L.G(Q.Y()); L.Ge(G,d,3);G=d}Y.Cu(j,Q,$,o,G,Q,0,T,1,n.fh=="diss");n.B4.VL()};h$.prototype.Ub=function($,o,T,s,E){var e=dq.get(E),n; if(e)n=dq.Za(e,E[e]);var A=h$.D5;T=A.pt(T,s.d,s.w);if(!(y.re&&o.R1(s)))A.pg($,o,T,s);if(n){if(y.re){var u=s.clone(); u.x=u.y=0;if(o.R1(s)){y.U0(T,u);dq.Ze(n,$.ek,u)}else{y.U0(T,s);T.bv(s);dq.Ze(n,T.Ji,u)}}else dq.AY(n,T,T,s)}return T}; h$.prototype.s1=function($,o,T,s,E){var e=this.children;for(var f=0;f1.0001; if(a){w.d=Math.round(w.d/X);w.w=Math.round(w.w/X);w.x=Math.round((this.d-w.d)/2);w.y=Math.round((this.w-w.w)/2)}else if(E&&eY.RP($.buffer)=="pdf"&&this.fG!=144){var X=144/this.fG; w.d=Math.round(w.d/X);w.w=Math.round(w.w/X);a=!0}b.buffer=L.G(b.rect.Y()*4);if(!a)L.w0(u.wc[0],b.buffer)}b.add.SoLd={classID:"null",Idnt:{t:"TEXT",v:e},Impr:{t:"Objc",v:{__name:"None",classID:"none"}},placed:{t:"TEXT",v:Y},PgNm:{t:"long",v:1},totalPages:{t:"long",v:1},frameStep:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},duration:{t:"Objc",v:{classID:"null",numerator:{t:"long",v:0},denominator:{t:"long",v:600}}},frameCount:{t:"long",v:1},Annt:{t:"long",v:16},Type:{t:"long",v:2},Trnf:null,nonAffineTransform:null,warp:{t:"Objc",v:L.Rt.G(u?u.wc[1]:b.rect)},Sz:{t:"Objc",v:{classID:"Pnt",Wdth:{t:"doub",v:b.rect.d},Hght:{t:"doub",v:b.rect.w}}},Rslt:{t:"UntF",v:{type:"#Rsl",val:72}}}; var N=L.M.Uo(b.rect).I;b.add.SoLd.Trnf=D.p.vP(N);b.add.SoLd.nonAffineTransform=D.p.vP(N);if(a)b.qI(this,!1); return b};iG.prototype.aw=function($){if($!=null){this.T();this.ir($);var o=this.buffer;if(y.re)this.mb.get(o); else o=o.slice(0);this.T();this.ir();return o}if(this.v7){this.ir();this.v7=null}if(y.re&&this.iu){this.mb.get(this.buffer); this.iu=null;this.RZ=!0}return this.buffer};iG.prototype.FK=function(){for(var f=0;f");o.add.lsct=hd.ic;o.Jp=24;return o};iG.prototype.i_=function(){return this.Q5!=this.TR}; iG.prototype.g4=function($){while(this.history.length>this.Q5+1)this.history.pop();if(this.TR>this.Q5)this.TR=-1; if($.U.id!=D.dm){this.wo=!0;if(this.kk.lastAppliedComp){delete this.kk.lastAppliedComp;this.RZ=!0}}this.history.push($); this.Q5++;this.RZ=!0;var o=bX.FJ()?60:30,T=0;for(var f=this.history.length-1;f>=0;f--){var s=this.history[f]; if(s.RY)continue;T++;if(T==o){this.Q5-=f;this.history=this.history.slice(f);break}}};iG.prototype.OY=function(){if(this.Q5!=this.history.length-1)return null; return this.history[this.history.length-1]};iG.prototype.v1=function($,o,T,s){if($==null)$=!1;var E=o!=null?[o]:this.D.slice(0); if(s){var e=[];for(var f=0;f2){var E=s.w5[0];E.II=-1; o.push(E);if(s.dl.indexOf(0)!=-1)T.push(o.length-1)}var n=s.T7==null;if(n)s.T7=[];for(var f=s.D.length-1; f>=0;f--){var A=s.u[s.D[f]],u=A.add.TySh;if(A.add.vmsk!=null&&(A.Jg||A.d5())){var E=iG.om("\""+A.getName()+"\" Shape Path",A.add); E.II=s.D[f];o.push(E);if(n)s.T7.push(e);if(s.T7.indexOf(e)!=-1)T.push(o.length-1);e++}if($!=!0&&u&&u.add&&L.Rt.nP(u.Ah)){var E=iG.om("\""+A.getName().slice(0,10)+"..\" Text Path",u.add); E.II=1e6+s.D[f];o.push(E);T.push(o.length-1);e++}}if(T.length==0&&$){s.w5[0].II=-1;s.dl=[0];T.push(o.length); o.push(s.w5[0])}return[o,T]};iG.prototype.rY=function(f,$){var o=[],J=this.root.BA(f);if(J)J.g6(o,$); return o};iG.prototype.wT=function(){this.root.Ey(this,new df(0,0,this.d,this.w),32)};iG.prototype.qp=function($){for(var f=0; f1e3){var o=this.root.children; for(var f=0;f>>8&255)<<8|a>>>16;b.rect=new df(0,0,T,s);b.buffer=L.G(T*s*4); L.wr(b.buffer,{Wht:4294967295,Blck:4278190080,BckC:255<<24|a}[u])}}A.buffer=L.G(T*s*4);return A};function aH($){this.u4=$; this.X=0;this.Hp=1;this.l=new aY(0,0);this.Re=new aY(0,0);this.VN=0;this.xR=[1,1,1];this.Vi=new df(0,0,1,1); this.apC=new df(0,0,$.d,$.w);this.Xk=null;this.Iw=null;this.$c=new Uint32Array(0);this.VC=null;this.DV=null; this.fl=L.G(0);this.GC=null;this.mi=null}aH.prototype.jj=function($){var o=new fY,T=this.Vi,s=this.u4,E=$?this.Hp:this.X,e=$?this.Re:this.l,n=Math.round((T.d-s.d*E)/2+e.x),A=Math.round((T.w-s.w*E)/2+e.y); o.translate(-n,-A);o.scale(1/E,1/E);var u=s.d/2,Y=s.w/2;o.translate(-u,-Y);o.rotate(this.VN);o.translate(u,Y); return o};aH.prototype.o8=function($){var o=this.Vi,T=this.u4,s=Math.atan2(-$.P,$.Ca),E=T.d/2,e=T.w/2; $.translate(-E,-e);$.rotate(-s);$.translate(E,e);var n=1/$.jZ();$.scale(n,n);var A=-$.Ry,u=-$.Es,Y=Math.round(A-(o.d-T.d*n)/2),b=Math.round(u-(o.w-T.w*n)/2); if(Math.abs(n-Math.round(n))<1e-6)n=Math.round(n);this.VN=s;this.X=n;this.l=new aY(Y,b)};aH.prototype.VD=function($,o){var T=this.jj(); return T.bb(new aY($,o))};aH.prototype.X8=function($,o){var T=this.jj();T.lY();return T.bb(new aY($,o))}; function ev(){}ev.order="ebbl FrFX IrSh IrGl ChFX SoFi GrFl patternFill OrGl DrSh".split(" ");ev.CP="ebblMulti frameFXMulti innerShadowMulti IrGlMulti ChFXMulti solidFillMulti gradientFillMulti patternFillMulti OrGlMulti dropShadowMulti".split(" "); ev.names=[[14,4],[14,9],[14,1],[14,3],[14,8],[14,5],[14,6],[14,7],[14,2],[14,0]];ev.Eb=["DrSh","IrSh","SoFi","GrFl","FrFX"]; ev.k9=["Clr"];ev.cw="Grad Rvrs Type Algn Angl Dthr Scl Ofst".split(" ");ev.SZ=["Ptrn","Scl","Algn","phase"]; ev.rN={jl:"{\"t\":\"Objc\",\"v\":{\"classID\":\"RGBC\",\"Rd\":{\"v\":255,\"t\":\"doub\"},\"Grn\":{\"v\":0,\"t\":\"doub\"},\"Bl\":{\"v\":0,\"t\":\"doub\"}}}",f4:"{\"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\"}}}",Hr:"{\"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}}}]}}}",Lo:"{\"t\":\"Objc\",\"v\":{\"classID\":\"Ptrn\",\"Nm\":{\"v\":\"orangeslices\",\"t\":\"TEXT\"},\"Idnt\":{\"v\":\"c7acb22a-47a6-11de-919a-bf574370eaaf\",\"t\":\"TEXT\"}}}"}; ev.rN.jl="\"Clr\": "+ev.rN.jl;ev.rN.h="\"Grad\":"+ev.rN.f4+",\"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\"}"; ev.rN.Lo="\"Ptrn\":"+ev.rN.Lo+",\"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\"}"; ev.default="{ \"classID\": \"null\", \"Scl\": {\"t\": \"UntF\", \"v\": { \"type\": \"#Prc\",\"val\": 100} }, \"masterFXSwitch\": {\"t\": \"bool\",\"v\": true} }"; ev.Qo=["{\"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\"},"+ev.rN.jl+","+ev.rN.h+","+ev.rN.Lo+"}","{\"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\"},"+ev.rN.jl+"}","{\"classID\":\"GrFl\", \"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+ev.rN.h+"}","{\"classID\":\"patternFill\",\"enab\":{\"v\":true,\"t\":\"bool\"}, \"Md\":{\"v\":{\"BlnM\":\"Nrml\"},\"t\":\"enum\"},\"Opct\":{\"v\":{\"type\":\"#Prc\",\"val\":100},\"t\":\"UntF\"},"+ev.rN.Lo+"}","{\"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\"}}"]; ev.h={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]]}; ev.stroke={types:["InsF","CtrF","OutF"],names:[[19,5,2],[19,5,1],[19,5,0]],O2:["SClr","GrFl","Ptrn"],abS:[[13,0],[12,37],[12,62]]}; ev.Gq={types:["SfBL","PrBL"],names:[[19,1,0],[19,1,1]],WS:["SrcC","SrcE"],ai9:[[19,5,1],[12,69]]};ev.Ll={types:["OtrB","InrB","Embs","PlEb","strokeEmboss"],style:[[19,2,0],[19,2,1],[19,2,2],[19,2,3],[19,2,4]],kX:["SfBL","PrBL","Slmt"],adn:[[19,3,0],[19,3,1],[19,3,2]],dir:[[19,4,0],[19,4,1]]}; ev.ci={JZ:["strokeStyleButtCap","strokeStyleRoundCap","strokeStyleSquareCap"],k0:["strokeStyleAlignInside","strokeStyleAlignCenter","strokeStyleAlignOutside"],join:["strokeStyleMiterJoin","strokeStyleRoundJoin","strokeStyleBevelJoin"],RG:["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\","+ev.rN.jl+"}")},strokeStyleResolution:{t:"doub",v:72}}}; ev.WA=[{classID:"null",Clr:JSON.parse(ev.Qo[5]).Clr},{classID:"null",Grad:JSON.parse(ev.Qo[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(ev.Qo[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 fW={};fW.l_=function($,o){function T($,w){if($==null)return null;var X=$[w].v,N;if(X.length!=0){N=X[0].v; if(!N.enab.v)N=null}return N}var s=o.SoCo,E=o.GdFl,e=T($,"solidFillMulti"),n=T($,"gradientFillMulti"); if(e==null&&n==null)return[s,E];var A=fW.ab$;if(s&&e&&n==null){var u=JSON.parse(JSON.stringify(s));u.Clr.v=A(e.Clr.v,s.Clr.v,e); return[u,null]}if(E&&e&&n==null){var Y=JSON.parse(JSON.stringify(E)),b=Y.Grad.v.Clrs.v;for(var f=0;f0&&w.blur.v.val>0)n=Math.max(n,Math.ceil(w.Ckmt.v.val*w.blur.v.val/100)); if(u=="OrGl"&&w.enab.v&&w.Ckmt.v.val>0&&w.blur.v.val>0&&w.GlwT.v.BETE=="SfBL")n=Math.max(n,Math.ceil(w.Ckmt.v.val*w.blur.v.val/100)); if(u=="OrGl"&&w.enab.v&&w.blur.v.val>0&&w.GlwT.v.BETE=="PrBL")n=Math.max(n,w.blur.v.val);if(u=="FrFX"&&w.enab.v&&w.Sz.v.val>0){if(w.Styl.v.FStl=="OutF")n=Math.max(n,w.Sz.v.val); if(w.Styl.v.FStl=="CtrF")n=Math.max(n,Math.ceil(w.Sz.v.val/2));A=Math.max(A,fW.nl(w)[1])}}}var X=new fW.p5(T,s,n,fW.xC($)),N=-s.x,z=-s.y,i={type:{},all:[]}; for(var k=0;k=0;Q--){var O=$[Y].v[Q].v;if(!O.enab.v)continue;var c=O.blur?O.blur.v.val:0,B=O.Ckmt?O.Ckmt.v.val/100:0,G=c*B; if(u=="DrSh"){var l=X.rq(G,c-G,!0),v=l.aP,p=l.uL;p.offset(N,z);fW.Lm(v,O,!1);fW.JX(p,O,E,0);var P=L.G(p.Y()*4); fW.mk(P,O.Clr.v);L.aM(v,P,3);var h={_3:P,lM:p,_6:hI.VB(O.Md.v.BlnM),LE:O.Opct.v.val/100,a5K:O.layerConceals.v}; i.type[u].push(h);i.all.push(h)}if(u=="IrSh"){var l=X.rq(G,c-G,!1);fW.JX(l.uL,O,E,0);var p=X.rect().clone(),v=L.G(p.Y()); v.fill(255);L.pg(l.aP,l.uL,v,p);fW.Lm(v,O,!0);var P=L.G(p.Y()*4);fW.mk(P,O.Clr.v);L.aM(v,P,3);p.offset(N,z); var h={_3:P,lM:p,_6:hI.VB(O.Md.v.BlnM),LE:O.Opct.v.val/100};i.type[u].push(h);i.all.push(h)}if(u=="GrFl"){var P=L.G(X.rect().Y()*4); fW.G0(O,P,X.rect(),E,null,e);var p=X.rect().clone();p.offset(N,z);var h={_3:P,lM:p,_6:hI.VB(O.Md.v.BlnM),LE:O.Opct.v.val/100}; i.type[u].push(h);i.all.push(h)}if(u=="SoFi"){var P=L.G(X.aP().length*4);fW.mk(P,O.Clr.v);var p=X.rect().clone(); p.offset(N,z);var h={_3:P,lM:p,_6:hI.VB(O.Md.v.BlnM),LE:O.Opct.v.val/100};i.type[u].push(h);i.all.push(h)}if(u=="ebbl"){var j=!1; if(j)console.log(O);var C=Date.now(),V=O.bvlS.v.BESl;if(V=="strokeEmboss"){var d=$.frameFXMulti.v;if(d.length==0)continue; d=d[0].v;if(!d.enab.v)continue;var m=d.Styl.v.FStl;if(m=="OutF")V="OtrB";if(m=="CtrF")V="Embs";if(m=="InsF")V="InrB"}var c=O.blur.v.val; if(c==0)c=.7;if(V=="Embs"||V=="PlEb")c/=2;var R=["OtrB","InrB","Embs","PlEb","strokeEmboss"],g=["SfBL","PrBL","Slmt"],S=["In","Out"],F=O.bvlT.v.bvlT!="SfBL"?c:c*.45,q=Math.round(c),W=X.rect().clone(),Z=W.clone(); Z.Mi(q,q);var I=Z.d,_=Z.w,cN=I*_,ce=L.G(cN);L.pg(X.aP(),W,ce,Z);var gf=new Float64Array(cN),K=new Float64Array(cN); L.style.Mp(ce,gf,I,_);L.lY(ce);L.style.Mp(ce,K,I,_);if(j)console.log("distTransform computed",Date.now()-C); for(var f=0;fF)K[f]=F}if(j)console.log("summing + cropping",Date.now()-C); if(O.bvlT.v.bvlT=="SfBL"){var f0=Math.pow(c*.21,1.22);if(!0)f0=Math.max(f0,2);var i8=L.Ja.XW(f0,2);L.Ja.Jf(K,gf,Z,i8[0]>>>1); L.Ja.Jf(gf,K,Z,i8[1]>>>1)}if(j)console.log("blurring",Date.now()-C);var b5=K,iC=b5.slice(0);if(O.useShape.v){var an=Math.min(100,O.Inpr.v.val+1)/100; if(V!="OtrB"&&V!="InrB")an=1;var cO=L.sE.$O(O.MpgS.v.Crv.v,2e3),bh=Math.round(2e3/an);cO=L.sE.ah$(cO,bh,V=="InrB"); var bD=.5/F;for(var f=0;f0)iI[f]=hP;if(ai>0)g2[f]=ai}if(j)console.log("raycasting",Date.now()-C); if(O.Sftn.v.val!=0){L.Ja.YK(iI,gf,Z,O.Sftn.v.val*.43);var hK=gf,gf=iI,iI=hK;if(bb){L.Ja.YK(g2,gf,Z,O.Sftn.v.val*.43); var hK=gf,gf=g2,g2=hK}else L.w0(iI,g2)}if(j)console.log("softening",Date.now()-C);var cO=L.sE.$O(O.TrnS.v.Crv.v,1024); for(var f=0;f0){var l=X.rq(eA,0,!0);h7=l.aP;if(h7.length0){var l=X.rq(aZ,0,!1);c0=L.G(p.Y());c0.fill(255);L.pg(l.aP,l.uL,c0,p)}p.offset(N,z); var P=L.G(p.Y()*4),dS=O.PntT.v.FrFl;if(dS=="SClr")fW.mk(P,O.Clr.v);if(dS=="GrFl")fW.G0(O,P,p,E,X.akp(aZ,eA)); if(dS=="Ptrn")fW.hb(O,P,p,E,o);var h={_3:P,lM:p,_6:hI.VB(O.Md.v.BlnM),LE:O.Opct.v.val/100,bR:h7,IF:c0}; i.type[u].push(h);i.all.push(h)}}}return i};fW.hl=function($){var o=1/Math.sqrt($.x*$.x+$.y*$.y+$.nc*$.nc); $.x*=o;$.y*=o;$.nc*=o};fW.AT=function($,o){return{x:$.y*o.nc-$.nc*o.y,y:$.nc*o.x-$.x*o.nc,nc:$.x*o.y-$.y*o.x}}; fW.aqC=function($,o){return $.x*o.x+$.y*o.y+$.nc*o.nc};fW.$N=function($,o){var T=o.Nose.v.val/100;if(T>0)for(var f=0; f<$.length;f++){var s=$[f];s=Math.min(510-(1+T)*L.style.Po(f),s);$[f]=s}};fW.Yk=function($){var o=fW.gs(),T=$.so,s=!1; for(var f=0;f<32;f+=8)if(T[f]+T[f+1]+T[4]+T[5]!=0||T[f+2]+T[f+3]+T[6]+T[7]!=1020)s=!0;if(s){T=T.slice(0); for(var f=0;f<40;f+=4){var E=T[f]/255,e=T[f+1]/255,n=T[f+2]/255,A=T[f+3]/255;T[f]=E-1e-4;T[f+1]=E==e?1e9:1/(e-(E-1e-4)); T[f+2]=n==A?-1e9:1/(n-(A+1e-4));T[f+3]=A+1e-4}}var u=$.add.iOpa!=null?$.add.iOpa/255:o.fill,Y=$.add.vstk; if(Y&&!Y.fillEnabled.v&&(!Y.strokeEnabled.v||Y.strokeStyleLineWidth.v.val==0))u=0;return{fill:u,Kf:s?T:null,KP:$.add.brst!=null?$.add.brst:o.KP,aoI:$.add.knko!=null?$.add.knko:o.aoI,style:!1,xX:!1}}; fW.gs=function(){return{fill:1,Kf:null,KP:[1,1,1],aoI:0,style:!1,xX:!1}};fW.OA=function($,o){if(o==null)return null; var T=$.Idnt.v,s=null;for(var f=0;fE){var e=L.sE.JI(o.TrnS.v.Crv.v,256,!0);L.$m($,e)}if(T!=null&&o.Nose.v.val>0)L.style.Wx($,o.Nose.v.val/100,T)}; fW.mk=function($,o,T){if(T==null)T=255;var s=L.h.Qc(o),E=T<<24|s.P<<16|s.m<<8|s.i,e=new Uint32Array($.buffer); e.fill(E)};fW.JX=function($,o,T,s){var E=o.uglg&&o.uglg.v?T.ou():o.lagl.v.val;E=E*Math.PI/180+s;var e=Math.cos(E)*o.Dstn.v.val,n=Math.sin(E)*o.Dstn.v.val; $.x-=Math.round(e);$.y+=Math.round(n)};fW.oU=function($){if($==null)return null;var o=$.frameFXMulti.v; if(o.length==0)return null;o=o[0].v;var T=JSON.parse(JSON.stringify(ev.ci.default));fW.HN(o,T);return T}; fW.HN=function($,o){var T=ev.stroke.O2.indexOf($.PntT.v.FrFl),s=[ev.k9,ev.cw,ev.SZ][T],E=o.strokeStyleContent.v={classID:ev.ci.RG[T]}; for(var f=0;f=6)this.Cx(this.dK(E))};ih.prototype.SI=function($){if($==null)$=1;$=Math.max(.05,Math.min(5,$)); if(isNaN($)){alert("Pressure is not a number");throw"e"}return $};ih.prototype.Cx=function($){this.Sg=$; this.sS=this.sS.BZ($)};ih.prototype.finish=function(){var $=this.TA,o=$.length,T;if(o==4)T=this.Zn($[o-2],$[o-1],this.gf[(o>>1)-1],!0); if(o>4)T=this.dK(o+2);if(T)this.Cx(T)};ih.prototype.dK=function($){var o=this.TA,T=this.gf,s=o[$-6],E=o[$-5],e=o[$-4],n=o[$-3],A=T[($>>1)-3],u=T[($>>1)-2],Y=new aY(0,0),b=new aY(0,0); if(8<=$)Y=ih.da(o[$-8],o[$-7],s,E,e,n);if($<=o.length)b=ih.da(o[$-2],o[$-1],e,n,s,E);var a=s+Y.x,w=E+Y.y,X=e+b.x,N=n+b.y,z=new df; for(var f=0;f<10;f++){var i=(f+1)*.1,k=1-i,Q=k*k*k*s+3*i*k*k*a+3*i*i*k*X+i*i*i*e,O=k*k*k*E+3*i*k*k*w+3*i*i*k*N+i*i*i*n,c=this.Zn(Q,O,A+i*(u-A)); z=z.BZ(c)}return z};ih.da=function($,o,T,s,E,e){var n=$-T,A=o-s,u=E-T,Y=e-s,b=Math.sqrt(n*n+A*A),a=Math.sqrt(u*u+Y*Y),w=Math.acos((n*u+A*Y)/(b*a))/Math.PI,X=.35,N=.1; w=N+w*(X-N);var z=E-$,i=e-o,k=Math.sqrt(z*z+i*i),Q=w*a/k;return new aY(z*Q,i*Q)};ih.prototype.Zn=function($,o,T,s){var E=new df,e=this.n4.apk; if(e==null)e=0;if(e==0||s){E=this._W($,o,T);return E}var n=this.dF,A=$-n.x,u=o-n.y,Y=Math.sqrt(A*A+u*u); A/=Y;u/=Y;if(Y>e){var b=n.x+A*(Y-e),a=n.y+u*(Y-e);E=this._W(b,a,T);this.dF.A5(b,a)}return E};ih.prototype._W=function($,o,T){var s=new df,E=new aY($,o),e=this.P.Brsh.v.Dmtr.v.val,n=this.n4.ms,A=E.V4(this.zg); A.normalize(1);var u=aY.Sa(this.zg,E),Y=-this.a1l,b=this.zg.clone(),a=this.n4.Ya;while(!0){var w=this.qR+(T-this.qR)*(Math.max(0,Y)/u),X=this.Lv()*(a[1]?w:1),N=this.a2M()*(X+this.am7)/2; if(n==ih.FS)N=1;if(Y+N0?1:-1;var k=b.clone();k.y+=A.y>0?1:-1;if(aY.Sa(i,z)1)A.rZ=1-(A.rZ-1);A.ed=A.ed+n;if(A.ed<0)A.ed=-A.ed; if(A.ed>1)A.ed=1-(A.ed-1);o=L.ag(A.cQ,A.rZ,A.ed)}return o};ih.prototype.hl=function($){return Math.max(0,Math.min(1,$))}; ih.prototype.D9=function(){this.dh++;return ih.hash(this.dh)};ih.u7=function($){return{i:($>>16&255)/255,m:($>>8&255)/255,P:($>>0&255)/255}}; ih.hash=function($){$=$^61^$>>16;$=$+($<<3);$=$^$>>4;$=$*668265261;$=$^$>>15;return($&16777215)/16777215}; ih.j5=[];ih.akG=function($,J){var o=$.jZ(),T=J.jZ();if(o2500){e=A; break}}var u=Math.round(this.P.Brsh.v.Dmtr.v.val);if(e){e.rect.x=Math.round(e.FF.x-e.rI.Ry+$.Ry);e.rect.y=Math.round(e.FF.y-e.rI.Es+$.Es); if(E){e.rect.x=Math.round(o.x-e.rect.d/2);e.rect.y=Math.round(o.y-e.rect.w/2)}e.H1=Date.now()}else{var Y; if(E&&u<=3){Y={buffer:L.G(u*u*4),rect:new df(Math.round(o.x-u/2),Math.round(o.y-u/2),u,u)};L.wr(Y.buffer,4278190080)}else if($.Ca==1&&$.P==0&&$.Z9==0&&$.Um==1){Y={buffer:this.dS.Bf,rect:this.dS.Q9.clone()}; Y.rect.x=Math.round($.Ry);Y.rect.y=Math.round($.Es)}else Y=D.p.qh([this.dS.Bf,this.dS.Q9],$);if(E){for(var f=0; f127?255:0}if(Y==null)Y={buffer:L.G(0),rect:new df};var b=$.Ry-Math.floor($.Ry),a=$.Es-Math.floor($.Es); e={Bf:Y.buffer,_D:L.G(Y.rect.Y()),rect:Y.rect,FF:Y.rect.clone(),rI:$,tP:ih.N4($.Ry,$.Es),H1:Date.now()}; L.Ge(e.Bf,e._D,3);s.push(e);T.Y+=Y.rect.Y();if(s.length>2e3||T.Y>100*100*400){console.log("pruning",T.Y,s.length); s.sort(function(X,N){return N.H1-X.H1});while(s.length>1e3||T.Y>100*100*200){var w=s.pop();T.Y-=w.rect.Y()}}}T.Nz=s; T.H1=Date.now();ih.j5.push(T);ih.j5.sort(function(X,N){return N.H1-X.H1});while(ih.j5.length>3)ih.j5.pop(); return e};ih.N4=function($,o){return new aY($-Math.floor($),o-Math.floor(o))};ih.ah_=function($,o){var T=o.x,s=o.y,E=Math.abs(T-$.x),e=Math.abs(s-$.y); if(Math.abs(T-1-$.x)>>1)+1); for(var f=0;fn*2&&m.i2[S+2]){S+=2;s=m.i2[S];E=m.i2[S+1].clone();e*=E.d/R;R=E.d;g=E.w}E.x=E.y=0}return{a0j:e,Q9:E,Bf:s}}; ih.vu=[];ih.cV=function($){if(ih.vu[$])return ih.vu[$];var o=Math.pow($,.55),T=new Float64Array(8e3),s=0,E=8e3; for(var f=0;f<8e3;f++){var e=ih.apJ(f*(1.55/4e3),o);if(e>=1)s=f;else if(e<=0&&E==8e3)E=f;T[f]=e}var n=[T,s,E]; ih.vu[$]=n;return n};ih.apJ=function($,o){var T=$a||G>w)&&O[l+2]){l+=2;c=O[l];B=O[l+1].d;G=O[l+1].w}if(B*G!=0){var v=new ImageData(new Uint8ClampedArray(c.buffer),B,G); A.putImageData(v,Math.round((a-B)/2),Math.round((w-G)/2))}}else{}return n.toDataURL()};ih.Ce=function($,o,T,s){if(T==0)T=1; var E=$.Brsh.v,e=E.Dmtr.v.val,n=E.Dmtr.v.val=Math.min(s!=null?Math.round(s*2.6):3e3,e*T),A=E.Hrdn?E.Hrdn.v.val/100:1,u=s!=null?s:Math.round(n*(1+.55*(1-A)))+4,a; u=Math.max(15,Math.min(u,3e3));var Y=new df(0,0,u,u),b=new ih($,o,null,{yV:1},16711712,0,Y);E.Dmtr.v.val=e; b.moveTo(Y.d/2,Y.w/2);var w=b.su(),X=b.rX();if(Y.R1(X))a=w;else{a=L.G(Y.Y()*4);L.h9(w,X,a,Y)}return[a,Y,n]}; ih.y8=function($,o,T,s){var E=ih.Ce($,o,T),e=E[0].slice(0),n=E[1],A=E[2],u=n.Y(),Y=L.G(u);L.Ge(e,Y,3); var b=L.G(u);L.Z.a4S(Y,b,n);if(A<3||L.tD(b,0)||s&&A>12){var a=n.d,w=a>>>1,X=b,N=255;for(var f=0;f<4; f++){X[a*(w-6+f)+w]=N;X[a*w+w-6+f]=N;X[a*w+w+6-f]=N;X[a*(w+6-f)+w]=N}}var z=[1,2,1,2,8,2,1,2,1];z=L.TS.Hx(z); L.TS.nS(b,Y,n.d,n.w,z);L.wr(e,4294967295);L.aM(Y,e,3);for(var f=0;f80?255:0;if(u==3)for(var f=0;f128?X:-1);if(Y[N]==null){Y[N]=1;if(o.sU(s[a].Name,X)==null)u=!1}}b+=e[f]}return u}; hA.agm=function($,o,T){var s=new fY;for(var f=0;f<$.CL.length;f++)hA.an_($.oH,$.CL[f],o,s,T)};hA.an_=function($,o,T,s,E){s.translate(o.tP.x,o.tP.y); for(var f=0;f>>3,E=$.TextOnPathTRange,e=$.Reversed,b=0,a=0; if(e){var n=o.slice(0);for(var f=0;f>>3)+i)}b=Q; a=O}}var c=Y.length,B=Y[c-1],G=iq.F0(E[0],u),l=iq.F0(E[1]%s,u),v=Y[G%c],p=Y[l%c];if(v>=p)p+=B;return[A,u,Y,B,v,p]}; iq.F0=function($,o){var f=0;while(o[f]<$)f++;return f};iq.af9=function($,o){var T=0,f=0,s,E,e;while(T65535)e--;return e}for(var i=0;ic+w/2||v==1&&$.x65535?2:1; return G}}}}}};iq.prototype.UH=function($){var o={uL:new df,_U:0},T=0;for(var s=0;se)e=n}if(e>1424)E=iq.a8T(s,o);return E};iq.r0=function($,o,T,s,E,e,n){this.v5=[]; this.xv=[];this.tP=new aY(0,0);this.IU=null;this.v5=null;this.CA=g8.am2($,s);var A=this.CA,a=0,N="",O=0,c=1,q=0; if(s!=0){var u=A.SpaceBefore;if(u!=null)e[0]+=u}var Y=$.EngineDict.ParagraphRun.RunLengthArray,b=Y[s]; for(var f=0;f0&&R[g-1].AV==z)g--; T[a+p+z].uu=v.length+(h?g:R.length-g-1)}for(var z=0;z>>1;for(var f=0;f=cN)ce=f;else if(ce!=-1&&l2&&(S==6||!I))this.am$(ce,f0,F,b5,w,iC);else{var cO=iC;for(var f=ce;f=$;f--)if(T[f].Mt||T[f].GF)e-=T[f].uL.d;else break;if(s==1)for(var f=$; f=$;f--)if(T[f].Mt||T[f].GF){if(T[f].Mt){u--}}else break; if(E==1)for(var f=$;f0){X.VN=-Math.PI/2;X.tP.x+=k*.83;X.tP.y=-k*.3+X.uT*Q/2; X.uT=k/Q}var O=X.uT*Q*N.scale.x;X.uL=new df(0,-N.lineHeight,O,N.lineHeight);var c=X.uL.clone();c.TB(X.tP); if(N.CA.Tracking!=null)B=N.CA.Tracking*.001*k;if(N.CA.FauxBold==!0)B+=.027*k;A+=O+B;if(n==1&&N.bA==" ")c.d+=2*B; else if(n==1&&N.bA!=null&&iq.GK(N.bA.charCodeAt(0)))c.d+=B;this.uL=this.uL.BZ(c);this.O8=Math.max(this.O8,N.O8); this.lineHeight=Math.max(this.lineHeight,N.lineHeight)}};iq.JP=0;iq.sD=function(){if(iq.JP==2)return!0; if(iq.JP==1)return!1;iq.JP=1;function $(){fetch("code/external/fribidi.wasm").then(function(o){return o.arrayBuffer()}).then(function(o){return WebAssembly.instantiate(o)}).then(function(o){var T=o.instance.exports,s=T.memory,E=16,e=256,n=1,A=E|e,u=E|e|n; iq.a8T=function(b,a){var w=b.length,X=w*4+4+w*4+w*4+w;eY.k8(T,X+w+1e7);var N=new Uint8Array(s.buffer),z=new Uint32Array(s.buffer),i=T.calloc(X,1),k=i+w*4,Q=k+4,O=Q+w*4,c=O+w*4; z.set(b,i>>>2);z[k>>>2]=a==0?A:u;T.fribidi_get_bidi_types(i,w,Q);T.fribidi_get_bracket_types(i,w,Q,O); T.fribidi_get_par_embedding_levels_ex(Q,O,w,k,c);var B=N.slice(c,c+w);T.free(i);return B};iq.JP=2;var Y=new x(H.E.Q,!0); Y.data={e:H.V.uY,U_:"add",M9:gr.En,Tk:null};hx.CJ.J(Y)})}Typr.U.initHB("code/external/hb.wasm",$);return!1}; function g8(){}g8.Qz=function($){return JSON.parse(JSON.stringify($))};g8.fa=function($,o){for(var T in o)$[T]=o[T]}; g8.rm=function($,o,T){var s=g8.dD();if(T)g8.zA(s,0,0,T);var E={t:new fY(1,0,0,1,Math.round($),Math.round(o)),h3:s}; E.Fh=g8.dk();E.Ah=L.Rt.G();E.QH=new df;return E};g8.fP=function($){var o=["CharacterDirection",0];for(var f=0; f=0?2:$.EngineDict.Rendered.Shapes.Children[0].ShapeType}; g8.I8=function($,o){var T=$.EngineDict.Rendered.Shapes.Children[0];T.ShapeType=o;var s=T.Cookie.Photoshop; s.ShapeType=o;s.Base.ShapeType=o;if(o==0){delete s.BoxBounds;s.PointBase=[0,0]}if(o==1){delete s.PointBase; s.BoxBounds=[0,0,1,1]}};g8.Hs=function($){return $.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds}; g8.bi=function($,o){$.EngineDict.Rendered.Shapes.Children[0].Cookie.Photoshop.BoxBounds=o};g8.a9_=function($,o){return g8.af1($,g8.bB($,o))}; g8.bB=function($,o){var T=$.EngineDict.StyleRun.RunLengthArray;return g8.j6(T,o).b1};g8.af1=function($,o){var T=$.ResourceDict.StyleSheetSet[0].StyleSheetData,s={}; for(var E in T)s[E]=T[E];var e=$.EngineDict.StyleRun.RunArray[o].StyleSheet.StyleSheetData;g8.fa(s,e); return s};g8.am2=function($,o){var T=$.ResourceDict.ParagraphSheetSet[0].Properties,s={};for(var E in T)s[E]=T[E]; var e=$.EngineDict.ParagraphRun.RunArray[o].ParagraphSheet.Properties;g8.fa(s,e);var n=["StartIndent","EndIndent","FirstLineIndent"]; for(var f=0;f<3;f++)if(s[n[f]]==null)s[n[f]]=0;return s};g8.YN=function($,o,T){if(T=="")return;var s=g8.m5($); g8._f($,s.substring(0,o)+T+s.substring(o,s.length));var E=$.EngineDict.StyleRun,e=E.RunLengthArray,n=g8.j6(e,o-1); e[n.b1]+=T.length;var A=$.EngineDict.ParagraphRun,e=A.RunLengthArray,u=g8.j6(e,o),Y=T.split("\n");if(Y.length==1){e[u.b1]+=T.length; return}e.splice(u.b1+1,0,e[u.b1]-(o-u.t7));A.RunArray.splice(u.b1+1,0,g8.Qz(A.RunArray[u.b1]));e[u.b1]-=e[u.b1+1]; e[u.b1]+=Y[0].length+1;for(var f=1;f"},{_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 iB={};iB.g8=function($){return iB.eb($,iB.pp,0)};iB.amB=function($){return iB.U6($,iB.pp)};iB.eb=function($,o,T){var s; if(typeof $=="string")return $;if($ instanceof Array){s=[];for(var f=0;f<$.length;f++)s[f]=iB.eb($[f],o,T+1)}else{s={}; var E={};for(var e in o){var n=o[e],A="_"+n[0];if($[A]!=null){s[e]=n[1]?iB.eb($[A],n[1],T+1):$[A];E[A]=!0}}for(var e in $){if(E[e]==null){console.log(o,E); console.log(e,$);throw"e"}}}return s};iB.U6=function($,o){var T;if(typeof $=="string")return $;else if($ instanceof Array){T=[]; for(var f=0;f<$.length;f++)T[f]=iB.U6($[f],o)}else{T={};var s={};for(var E in o){var e=o[E],n="_"+e[0]; if($[E]!=null){T[n]=e[1]?iB.U6($[E],e[1]):$[E];s[E]=!0}}for(var E in $){if(s[E]==null){console.log(o,s); console.log(E,$);throw"e"}}}return T};iB.G5={_Color:[0,{_Type:[0],_Values:[1]}],_CAIKnownStyleID:[5],_StreamTag:[99]}; iB.C3={_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,iB.G5],_StrokeColor:[54,iB.G5],_Blend:[55,{_3:[3],_Knockout:[4],_StreamTag:[99]}],_FillFlag:[56],_StrokeFlag:[57],_FillFirst:[58],_FillOverPrint:[59],_StrokeOverPrint:[60],_LineCap:[61],_LineJoin:[62],_LineWidth:[63],_MiterLimit:[64],_LineDashOffset:[65],_LineDashArray:[66],_Type1EncodingNames:[67],_Kashidas:[68],_DirOverride:[69],_DigitSet:[70],_DiacVPos:[71],_DiacXOffset:[72],_DiacYOffset:[73],_OverlapSwash:[74],_JustificationAlternates:[75],_StretchedAlternates:[76],_FillVisibleFlag:[77],_StrokeVisibleFlag:[78],_FillBackgroundColor:[79,iB.G5],_FillBackgroundFlag:[80],_UnderlineStyle:[81],_DashedUnderlineGapLength:[82],_DashedUnderlineDashLength:[83],_SlashedZero:[84],_StylisticSets:[85],_CustomFeature:[86,{_StreamTag:[99]}],_MarkYDistFromBaseline:[87],_AutoMydfb:[88]}; iB.ad={_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,iB.C3],_ParagraphDirection:[33],_JustificationMethod:[34],_ComposerEngine:[35],_ListStyle:[36],_ListTier:[37],_ListSkip:[38],_ListOffset:[39],_KashidaWidth:[40]}; iB.Zp={_Name:[0],_Features:[5,iB.ad],_Parent:[6],_97:[97]};iB.sB={_Name:[0],_Parent:[5],_Features:[6,iB.C3],_97:[97]}; iB.pp={_98:[98,{_0:[0]}],_DocumentResources:[0,{_0:[0],_FontSet:[1,{_Resources:[0,{_Resource:[0,{_StreamTag:[99],_Identifier:[0,{_Name:[0],_ScriptType:[1],_Type:[2],_Synthetic:[3],_4:[4],_MMAxis:[5]}],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}],_MojiKumiCodeToClassSet:[2,{_Resources:[0,{_Resource:[0,{_Name:[0],_Members:[5],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}],_MojiKumiTableSet:[3,{_Resources:[0,{_Resource:[0,{_Name:[0],_Members:[5,{_CodeToClass:[0],_AutoTsume:[1,{_TsumeMappings:[0,{_Before:[0],_After:[1],_Code:[2]}]}],_Table:[2,{_DataArray:[0,{_SparseArray:[0,{_Index:[0],_Elements:[1,{_P:[0],_Data:[1,{_A:[0,{_R:[0],_P:[1]}],_B:[1,{_R:[0],_P:[1]}]}]}]}]}]}],_PredefinedTag:[3]}],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}],_KinsokuSet:[4,{_Resources:[0,{_Resource:[0,{_Name:[0],_Data:[5,{_NoStart:[0],_NoEnd:[1],_Keep:[2],_Hanging:[3],_PredefinedTag:[4]}],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}],_StyleSheetSet:[5,{_Resources:[0,{_Resource:[0,iB.sB]}],_DisplayList:[1,{_Resource:[0]}]}],_ParagraphSheetSet:[6,{_Resources:[0,{_Resource:[0,iB.Zp]}],_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],_6:[6],_7:[7],_18:[18]}],_12:[12]}],_97:[97]}]}]}],_ListStyleSet:[9,{_Resources:[0,{_Resource:[0,{_Name:[0],_5:[5,{_0:[0],_1:[1],_2:[2],_3:[3],_5:[5,{_0:[0],_1:[1],_3:[3],_99:[99]}],_6:[6]}],_PredefinedTag:[6],_97:[97]}]}],_DisplayList:[1,{_Resource:[0]}]}]}],_DocumentObjects:[1,{_DocumentSettings:[0,{_HiddenGlyphFont:[0,{_AlternateGlyphFont:[0],_WhitespaceCharacterMapping:[1,{_WhitespaceCharacter:[0],_AlternateCharacter:[1]}]}],_NormalStyleSheet:[1],_NormalParagraphSheet:[2],_SuperscriptSize:[3],_SuperscriptPosition:[4],_SubscriptSize:[5],_SubscriptPosition:[6],_SmallCapSize:[7],_UseSmartQuotes:[8],_SmartQuoteSets:[9,{_Language:[0],_OpenDoubleQuote:[1],_CloseDoubleQuote:[2],_OpenSingleQuote:[3],_CloseSingleQuote:[4]}],_10:[10],_11:[11],_LinguisticSettings:[15,{_PreferredProvider:[0],_LinguisticProviderInfo:[1]}],_UseSmartLists:[16],_DefaultStoryDir:[17],_18:[18],_GreekingSize:[20]}],_TextObjects:[1,{_Model:[0,{_Text:[0],_ParagraphRun:[5,{_RunArray:[0,{_RunData:[0,{_ParagraphSheet:[0,iB.Zp]}],_Length:[1]}]}],_StyleRun:[6,{_RunArray:[0,{_RunData:[0,{_StyleSheet:[0,iB.sB]}],_Length:[1]}]}],_FirstKern:[7],_8:[8],_9:[9],_StorySheet:[10,{_AntiAlias:[0],_UseFractionalGlyphWidths:[2],_3:[3],_4:[4]}],_KernRun:[15],_AlternateGlyphRun:[16],_HyperlinkRun:[17]}],_View:[1,{_Frames:[0,{_Resource:[0]}],_RenderedData:[1,{_RunArray:[0,{_RunData:[0,{_0:[0],_LineCount:[1]}],_Length:[1]}]}],_Strikes:[2]}],_OpticalAlignment:[2]}],_OriginalNormalStyleFeatures:[2,iB.C3],_OriginalNormalParagraphFeatures:[3,iB.ad]}]}; c8.view={};c8.view.a7h=function($,o,T,s){var E={},e=g8.tb($);E._0=[{_0:"i"+T}];return E};function CSS(){}CSS.aiK=function($,o){var T=$.add,s=T.vmsk,E=T.vstk,e=T.lmfx,n=T.TySh,A=[],u=CSS.a1Z(e,T); if($.d5()&&s){var Y=L.A.hT(s.g);if(!Y.p4()){A.push("width: "+Math.round(Y.d)+"px");A.push("height: "+Math.round(Y.w)+"px")}var b=L.A.ap3(s.g); if(b>0)A.push("border-radius: "+Math.round(b)+"px")}else if(n){var a=n.h3;if(g8.tb(a)==1){var Y=g8.Hs(a); A.push("width: "+Math.round(Y[2])+"px");A.push("height: "+Math.round(Y[3])+"px")}CSS.LL(A,g8.$Q(a,0,0),n.t,!1,!1,u[0])}var w=[],X=e?e.dropShadowMulti.v:0; for(var f=0;f>16&255,m:$>>8&255,P:$&255}};CSS.Jr=function($,o){return CSS.xr(L.h.Qc($),o)}; CSS.xr=function($,o){if(o==null)o=1;var T=Math.round($.i),s=Math.round($.m),E=Math.round($.P),e=T<<16|s<<8|E; return o==1?"#"+L.B$(e):"rgba("+T+","+s+","+E+","+o+")"};CSS.q6=function($){var o=$.Grad.v;if(o.Clrs==null)return""; var T=o.Clrs.v.slice(0),s=o.Trns.v.slice(0),E=$.Ofst.v,e=$.Type.v.GrdT=="Rdl"?1:0,n=(e==1?"radial":"linear")+"-gradient",A=e==0?Math.round(-$.Angl.v.val+90)+"deg":"circle at center",u=$.Rvrs.v; if(u){T.reverse();s.reverse()}for(var f=0;f")return $>o; else if(T=="==")return $==o;else if(T=="===")return $===o;else if(T=="<=")return $<=o;else if(T==">=")return $>=o; else if(T=="!=")return $!=o;else if(T=="!==")return $!==o;else if(T=="<<")return $<>")return $>>o; else console.log(T)};gi.cy=function($,o){if(o=="-")return-$;else if(o=="!")return!$;else if(o=="~")return~$; else if(o=="+")return $;else console.log(obj)};gi.cC=function($,o,T){var s=$.type;if(s=="Identifier")return gi.abq($.name,o,T); else return gi.eval($,o,T)};gi.abq=function($,o,T){if($=="undefined")return undefined;else if(T.hasOwnProperty($))return T[$]; else if($=="app")return{xR:"Application"};else if($=="$")return{xR:"$"};else if(gi.mC.a8Q.indexOf($)!=-1)return gi.mC.BU({xR:"Application"},$,o,T); else if(window[$]&&!gi.uk[$])return window[$];else{T[$]=null;return null}};gi.mC={};gi.mC.agY=function($,o,T,s){var E; if($=="SolidColor")E={xR:$,H:[1,0,0,0]};if($=="RGBColor")E={xR:$,H:[1,0,0,0]};if($=="Window")E={xR:$,H:new fx(o[0],o[1],o[2])}; if($=="ExportOptionsSaveForWeb")E={xR:$,H:{Ue:"png",T0:100}};if($=="JPEGSaveOptions")E={xR:$,H:{Ue:"jpg",T0:100}}; if($=="File")E={xR:$,H:o[0]};if($=="ActionReference")E={xR:$,H:[]};if($=="ActionDescriptor")E={xR:$,H:{}}; if($=="ActionList")E={xR:$,H:[]};if($=="UnitValue")E={xR:$,H:o.length==0?0:parseFloat(o[0])};return E}; gi.mC.a8Q="activeDocument documents fonts preferences displayDialogs foregroundColor backgroundColor".split(" "); gi.mC.al6=["charIDToTypeID","stringIDToTypeID","executeAction","executeActionGet","doAction"];gi.mC.BU=function($,o,T,s){var E=T.AJ,e=T.CK(); if(!1){}else if(o=="typename"){if($.xR=="Layer")return $.H.p3()?"LayerSet":"ArtLayer";else return $.xR}else if(["Document","Layer"].indexOf($.xR)!=-1&&["layers","artLayers","layerSets"].indexOf(o)!=-1){var n=e.root,A={xR:"Layers",_A:o,H:[]}; if($.xR=="Layer")n=e.root.BA(e.u.indexOf($.H));if(n.children==null)return null;for(var f=0;f>>16&255)/255,(b>>>8&255)/255,(b>>>0&255)/255]}}else if(o=="UI")return{xR:"UI"}; else console.log($,o)}else if($.xR=="Document"){var e=$.H;if(!1){}else if(o=="activeLayer"){var u=e.u[e.D[0]]; return{xR:"Layer",H:u}}else if(o=="resolution")return e.fG;else if(o=="width")return e.d;else if(o=="height")return e.w; else if(o=="name")return e.name;else if(o=="saved")return!e.i_();else if(o=="selection")return{xR:"Selection"}; else if(o=="activeHistoryState")return{xR:"HistoryState",II:e.Q5};else if(o=="source")return e.F$;else if(o=="historyStates"){var a=[]; for(var f=0;f>>16&255)/255; $.H[2]=(j>>>8&255)/255;$.H[3]=(j>>>0&255)/255}else console.log($,o)}else if($.xR=="ExportOptionsSaveForWeb"){if(o=="format")$.H.Ue=T; else if(o=="PNG8"){}else if(o=="quality")$.H.T0=T;else throw"e"}else if($.xR=="JPEGSaveOptions"){if(o=="quality")$.H.T0=Math.round(100*T/12)}else console.log($,o,T); if(e.data!=null)s.J(e)};gi.mC.de=function($,o,T,s,E){var e=$.xR,n=null,A=new x(H.E.N,!0),u=new x(H.E.b0,!0),Y=new x(H.E.Q,!0),b=s.CK(),a=s.ZB; if(!1){}else if(e=="Application"){if(!1){}else if(o=="charIDToTypeID"){var w=T[0].trim(),X={slct:"select",Dlt:"delete",Mk:"make"}; return X[w]?X[w]:w}else if(o=="stringIDToTypeID"){var N=T[0].trim(),X={red:"Rd",blue:"Bl",color:"Clr",RGBColor:"RGBC",type:"Type",using:"Usng"},z=X[N]; return z==null?N:z}else if(o=="executeAction"){console.log(T);var i;if(T[1]){i=T[1].H;i.classID=T[0]}var k={setd:"set"},Q=k[T[0]]; if(Q==null)Q=T[0];var O=dq.YZ[T[0]];if(O&&dq.PV[O])Q=dq.PV[O];u.data={Wk:Q,bI:i}}else if(o=="executeActionGet"){return{xR:"ActionDescriptor",H:{classID:"null",null:{t:"obj ",v:T[0].H}}}}else if(o=="doAction"){Y.data={e:H.V.mU,n4:[T[0],T[1]]}}else if(o=="open"){Y.data={e:H.V.ZP,M9:{url:T[0]}}; if(T[2]&&a.length!=0)Y.data.M9.Pc=a.indexOf(b)}else if(o=="echoToOE"){Y.data={e:H.V.bZ,M9:T[0]}}else console.log(o)}else if(e=="Document"){var b=$.H; if(!1){}else if(o=="crop"){u.data=D.LY.rM(T[0])}else if(o=="trim"){var c=[];for(var f=0;f<4;f++)c.push(T[f+1]!=null?T[f+1]:!0); u.data=D.LY.pj(T[0]!=null?T[0]:0,c)}else if(o=="suspendHistory"){var B=acorn.parse(T[1]);gi.eval(B,s,E)}else if(o=="save"){Y.data={e:H.V.HR}}else if(o=="saveToOE"){Y.data={e:H.V.HR,a2b:T}}else if(o=="rotateCanvas"){u.data=D.p.T3(!0,T[0])}else if(o=="resizeImage"||o=="resizeCanvas"){var G=T[0],l=T[1]; if(typeof G!="number"){G=b.d*parseFloat(G.slice(0,G.length-1))/100;l=b.w*parseFloat(l.slice(0,l.length-1))/100}if(o=="resizeCanvas")u.data=D.LY.Fj(Math.round(G),Math.round(l),T[2]); else u.data=D.LY.YQ(Math.round(G),Math.round(l),null,1)}else if(o=="paste"){Y.data={e:H.V.sA,Ht:T.length!=0&&T[0],lR:!0}}else if(o=="close"){Y.data={e:H.V.Qh,ZF:b}}else if(o=="exportDocument"||o=="saveAs"){var v=E.__fs,p=T[0].H.replace(":","").replace("~/",""),P=o=="exportDocument"?T[2].H:T[1].H,h=eY.GU(b,P.Ue,null,null,[P.T0],s.AJ); v[p]=new Uint8Array(h)}else console.log($,o,T)}else if(e=="Layer"){var j=$.H,C=b.u.indexOf(j);if(!1){}else if(o=="copy"){gi.mC.HI(b,s,0); Y.data={e:H.V.ho,Pd:T[0],Sk:C,lR:!0};s.J(Y);delete Y.data;gi.mC.HI(b,s,1)}else if(o=="clear"){gi.mC.HI(b,s,0); u.data={Wk:"delete"};s.J(u);delete u.data;gi.mC.HI(b,s,1)}else if(o=="duplicate"){if(T.length==0){A.data={e:M.NO,c:C}; A.U=D.Jc;s.J(A);A.data=null;n={xR:"Layer",H:b.u[b.D[0]]}}else if(T[0].xR=="Document"){A.data={e:M.Wv,u:b.aV(C),vp:b,sa:T[0].H}; A.U=D.Jc}}else if(o=="merge"||o=="remove"){A.data={e:o=="merge"?M.r4:M.J1,c:C};A.U=D.Jc;if(o!="remove")n={xR:"Layer",H:b.u[b.D[0]]}}else if(o=="move"){A.data={e:M.Mu,source:C,target:b.u.indexOf(T[0].H),JE:T[1]!=3?.6:.3}; A.U=D.Jc}else if(o=="rasterize"){u.data={Wk:"rasterizeLayer",bI:{classID:"rasterizeLayer",null:aj.D4("Lyr",!0)}}}else if(o=="rotate"){A.data={e:"rot",U1:[2,5],H:-T[0]*Math.PI/180,wh:T[1],c:C}; A.U=D.tj}else if(o=="resize"){A.data={e:"scl",U1:[2,4],H:new aY(T[0]/100,T[1]/100),wh:T[2],c:C};A.U=D.tj}else if(o=="translate"){var V=gi.mC.hH(T); A.data={e:"trsl",c:C,a76:V[0],a3D:V[1]};A.U=D.ih}else if(o=="link"){A.data={e:M.cS,a0V:[C,b.u.indexOf(T[0].H)]}; A.U=D.Jc}else if(o=="invert"){A.U=D.WO;A.data={e:"start",aT:"nvrt"}}else if(o.startsWith("apply")&&iZ.WF[o.slice(5)]){var V=gi.mC.hH(T),d=iZ.WF[o.slice(5)]; u.data={Wk:iZ.PV[d]};var i=iZ.o_(d);if(i){iZ.$0["g"+d](i,V);u.data.bI=i}}else console.log($,o,T)}else if(e=="Documents"){if(o=="getByName"){for(var f=0; f","","",""],T=e2.RX; for(var s in T){var E=$[s],e=T[s][2],n="Seq",A="";if(E==null||e==null)continue;if(e=="dc:title"||e=="dc:description"){n="Alt"; A=" xml:lang=\"x-default\""}if(e=="dc:subject")n="Bag";o.push("\t<"+e+">");var u=e=="dc:subject"?E.split(";").join(",").split(","):[E]; for(var f=0;f"+u[f].trim()+"");o.push("\t")}o.push("","","",""); return o.join("\n")};e2.LI=function($){var o=[];for(var f=0;f<$.length;f++)o[f]=$[f][1]==0?0:$[f][0]/$[f][1]; return o};e2.CU=function($){var o=[];for(var f=0;f<$.length;f++){var T=$[f],s=1;if(T!=Math.round(T)){s=1e3; T=Math.round(T*s)}o[f]=[T,s]}return o};e2.DN=function($,o){var T=e2.RX;if(o==null)o={};for(var s in T){var E=T[s][1],e="t"+E; if(E!=null&&$[e]!=null){var n=$[e];if(E==0)n=n.join(".");else if(E==2||E==4){var A=$["t"+(E-1)];if(A==null)A=[E==2?"N":"E"]; n=e2.LI(n).join(",")+A[0]}else if(E==42034)n=e2.LI(n).join(" ");else if(E==270||E==315){var u=n[0],Y=new Uint8Array(u.length); t.dt(Y,0,u);n=t.LK(Y)}else n=n[0];o[s]=n}}if($.exifIFD)e2.DN($.exifIFD,o);if($.gpsiIFD)e2.DN($.gpsiIFD,o); return o};e2.ge=function($,o,T){var s=e2.RX,e=0,A=0;if(o==null)o={};var E={},n={};for(var u in s){if($[u]==null||s[u][1]==null)continue; var Y=s[u][1],b="t"+Y,a=o;if(u.startsWith("exif:")){a=E;e++;if(u.startsWith("exif:GPS")){a=n;A++}}var w=$[u]; if(Y==0)w=new Uint8Array(w.split(".").map(parseFloat));else if(Y==2||Y==4){var X=w.length;a["t"+(Y-1)]=[w.slice(w.length-1)]; w=e2.CU(w.split(",").map(parseFloat))}else if(Y==42034)w=e2.CU(w.split(" ").map(parseFloat));else if(Y==270||Y==315){var N=t.Te(w); w=[t.en(N,0,N.length)]}else w=[w];a[b]=w}if(e!=0){o.exifIFD=E;o.t34665=[0]}if(A!=0){o.gpsiIFD=n;o.t34853=[0]}var z=new Date,i=[z.getFullYear(),z.getMonth()+1,z.getDate(),z.getHours(),z.getMinutes(),z.getSeconds()]; for(var f=0;f<6;f++)i[f]=(i[f]+"").padStart(2,"0");o.t305=["Photopea Editor (www.photopea.com)"];if(T!=!0)o.t306=[i[0]+":"+i[1]+":"+i[2]+" "+i[3]+":"+i[4]+":"+i[5]]; return o};var H={};H.lu=0;H.Zs=function(){H.lu++;return H.lu};H.a6q="uint8";H.xT=function(){if(window.top!=window.self)return!1; var $=navigator.userAgent.toLowerCase();if($.indexOf("android")!=-1)return!1;if($.indexOf("safari")!=-1&&$.indexOf("chrome")==-1)return!1; return window.ClipboardItem!=null};H.mK=function($){this.vL=$;this.aoH=H.z("img");this.Vc=H.z("canvas"); this.q9=null;this.Ov="";this.yP=null;this._j=new aY(0,0);H.mW(this.vL,this.Lj.bind(this))};H.mK.prototype.kW=function($,o){this.q9=$; if(o)this.Ov=o;this.Lj()};H.mK.prototype.Lj=function($){if($)this._j=H.DQ($,this.vL);var o=this.q9,T=typeof o=="string"; if(!T){var s=H.K(),E=this._j,e=o.uL.d,n=o.uL.w,A=typeof o.tY=="string",u=A?this.aoH:this.Vc;if(A)u.setAttribute("src",o.tY); else{u.width=e;u.height=n;var Y=u.getContext("2d"),b=new ImageData(new Uint8ClampedArray(o.tY.buffer),e,n); Y.putImageData(b,0,0)}u.setAttribute("style"," position:absolute; pointer-events:none;user-select:none;"+"top:"+(E.y-o.wS.y/s)+"px; left:"+(E.x-o.wS.x/s)+"px; width:"+e/s+"px; height:"+n/s+"px"); var a=this.yP;if(a==null||a!=u){if(a)this.vL.removeChild(a);this.vL.appendChild(u);this.yP=u}}else if(this.yP){this.vL.removeChild(this.yP); this.yP=null}this.vL.setAttribute("style","cursor:"+(T?o:"none")+"; "+this.Ov)};H.HW=function($){return $.replace(//g,">")}; H.Ec=function($,o){$.yl(aX.get([12,41]).charAt(0)+":");o.yl(aX.get([12,42]).charAt(0)+":")};H.z=function($,o){var T=document.createElement($); if(o!=null)T.setAttribute("class",o);return T};H.Ft=function($){while($.firstChild)$.removeChild($.firstChild)}; H.v2=function($,o){var T=$.getAttribute("class");if(T==null)T="";T=T.split(" ");if(T.indexOf(o)==-1)T.push(o); $.setAttribute("class",T.join(" "))};H.oX=function($,o){var T=$.getAttribute("class");if(T==null)return; T=T.split(" ");if(T.indexOf(o)!=-1)T.splice(T.indexOf(o),1);$.setAttribute("class",T.join(" "))};H.ni=function($){while(!0){if($==document)return!0; if($==null)return!1;$=$.parentNode}};H.ze=function($){$.appendChild(H.z("br"))};H.Qk=function($){$.appendChild(H.z("hr"))}; H.$F=document;H.Tj=function($){var o=0;for(var f=0;f<$;f++)o+=Math.random();return o/$1e3){T=o==0?100:o*10}else{if($%10!=0)$*=10; T=($+o)%100}H.QB=Date.now();return T};H.uE=function($,o){if(window.PointerEvent){$.addEventListener("pointerdown",o,!1); return}$.addEventListener("mousedown",o,!1);$.addEventListener("touchstart",o,!1)};H.mW=function($,o){if(window.PointerEvent){$.addEventListener("pointermove",o,!1); return}$.addEventListener("mousemove",o,!1);$.addEventListener("touchmove",o,!1)};H.aa=function($,o){if(window.PointerEvent){$.addEventListener("pointerup",o,!1); return}$.addEventListener("mouseup",o,!1);$.addEventListener("touchend",o,!1)};H.a97=function($,o){if(window.PointerEvent){$.removeEventListener("pointerdown",o,!1); return}$.removeEventListener("mousedown",o,!1);$.removeEventListener("touchstart",o,!1)};H.vY=function($,o){if(window.PointerEvent){$.removeEventListener("pointermove",o,!1); return}$.removeEventListener("mousemove",o,!1);$.removeEventListener("touchmove",o,!1)};H.SY=function($,o){if(window.PointerEvent){$.removeEventListener("pointerup",o,!1); return}$.removeEventListener("mouseup",o,!1);$.removeEventListener("touchend",o,!1)};H.fb=function($){$.addEventListener("touchstart",H.za,!1); $.addEventListener("touchmove",H.za,!1);$.addEventListener("touchend",H.za,!1);$.addEventListener("gesturestart",H.za,!1); $.addEventListener("gesturechange",H.za,!1);$.addEventListener("gestureend",H.za,!1)};H.QE=function($,o,T,s){var E=H.K(); $.width=Math.floor(o*E);$.height=Math.floor(T*E);$.style.width=$.width/E+"px";$.style.height=$.height/E+"px"; if(s)s.setTransform(E,0,0,E,0,0)};H.kg=function($,o,T){$.setAttribute("style","width:"+o/H.K()+"px; height:"+T/H.K()+"px")}; H.DQ=function($,o){if(o==null)o=$.currentTarget;var T=o.getBoundingClientRect();if($.touches)$=$.touches.item(0); return{x:$.clientX-T.left,y:$.clientY-T.top}};H.K=function($){return window.devicePixelRatio||1};H.za=function($){$.preventDefault()}; H.zl=function($){$.stopPropagation();$.preventDefault()};H.oQ=function($,o,T){T=T?T:"";if(PIMG["__"+$]==null)T+=" gsicon"; return"\""+(o?o:"")+"\""};H.Xy=function($,o,T,s){var E=$.dataTransfer.getData("text/uri-list"); if(E!=null&&E.startsWith("http")){var e=new x(H.E.Q,!0);e.data={e:H.V.ZP,M9:{url:E,dg:!0,Pc:T,yp:s}}; o.J(e)}if($.dataTransfer.files.length==0)return;if(window.showOpenFilePicker){var n=[],A=$.dataTransfer.items.length,u=$.dataTransfer.files; for(var Y of $.dataTransfer.items)Y.getAsFileSystemHandle().then(function(b){n.push(b);if(n.length==A){var e=new x(H.E.Q,!0); e.data={e:H.V.mE,data:u,Pc:T,yp:s,ac9:n};o.J(e)}})}else{var e=new x(H.E.Q,!0);e.data={e:H.V.mE,data:$.dataTransfer.files,Pc:T,yp:s}; o.J(e)}};var x=function($,o){if(!o)o=!1;this.type=$;this.target=null;this.currentTarget=null;this.bubbles=o; this.U=null;this.US=!1};H.E={N:"0",Q:"1",b0:"1.5",O:"2",rA:"3",eD:"4",Oz:"5"};H.V={fI:"10",NM:"11",mG:"12",tT:"13",bl:"14",oh:"14.1",ZP:"15",b_:"16",Ri:"17",Fp:"18",HR:"19",r1:"19.5",CT:"20",X5:"21",ho:"22",sA:"23",FN:"24",NC:"25",QD:"26",pl:"27",Fu:"28",gT:"29",mE:"30",s9:"31",o4:"32",em:"33",Hh:"34",uY:"35",NN:"35.5",pm:"37",mH:"38",Cf:"39",jp:"40",Bj:"41",bZ:"41.5",qn:"42",OU:"43",eL:"43.5",Qh:"44",M$:"45",OM:"46",xL:"47",nt:"48",mU:"49",nu:"50",bO:"51"}; if(H.Tj(27))H.$F=window;else H.$F=H.aqi;H.$F._cwY=H.$F[H.av("clh]]c[",3)];var b3={};b3.l0=function(f){var $=b3.Sx[f],o=document.documentElement.style,s=1; o.setProperty("--base","#"+L.B$($["--base"]));o.setProperty("--bg-panel","#"+L.B$($["--bg-panel"])); o.setProperty("--bg-canvas","#"+L.B$($["--bg-canvas"]));o.setProperty("--bg-input","#"+L.B$($["--bg-input"])); o.setProperty("--bg-bbtn","#"+L.B$($["--bg-bbtn"]));o.setProperty("--bg-bbtnOver","#"+L.B$($["--bg-bbtnOver"])); o.setProperty("--brdr","#"+L.B$($["--brdr"]));o.setProperty("--text-color","#"+L.B$($["--text-color"])); o.setProperty("--brdrLgt","rgba(255,255,255,"+$["--brdrLgt"]+")");o.setProperty("--brdrDrk","rgba( 0, 0, 0,"+$["--brdrDrk"]+")"); o.setProperty("--alphaDark",""+$["--alphaDark"]);o.setProperty("--gs-invert",""+$["--gs-invert"]);var T=$["--sh-clr"]; o.setProperty("--sh-clr","rgba("+(T>>16)+","+(T>>8&255)+","+(T&255)+", 0.45)");o.setProperty("--sh-dy",""+$["--sh-dy"]+"px"); if(11){this.kH("multimove")}if(this.gM)return; var T=new x("mouse",!0);T.action="move";this.M6($,T);this.J(T)};i5.prototype.uZ=function($){if(i5.iX($))return; var o=this.vc,T=this.mL($);o.splice(T,1);if(o.length==0){var s=$.button!=null&&$.button>0?"rup":"up",E=new x("mouse",!0); E.action=s;this.M6($,E);this.J(E);H.vY(window,this.VE);H.SY(window,this.abm);H.mW(this.qm,this.VE);this.gM=!1}}; i5.prototype.FB=function($){$.preventDefault();if($.deltaX==0&&$.deltaY==0)return;var o=new x("mouse",!0); o.action="scroll";o.Wy=$.ctrlKey;this.M6($,o);this.J(o)};i5.prototype.ar7=function($){H.zl($);var o=$.sourceCapabilities; if(o)o=o.firesTouchEvents;if(o){var T=new x("mouse",!0);this.M6($,T);T.action="rdown";this.J(T);T.action="rup"; this.J(T)}};i5.prototype.kH=function($){var o=this.vc,T=H.K(),s=[];for(var f=0;f=0)$=Math.max(this.vN,$);if(this.IB==0)$=Math.round($);var s=this.vs;this.bz.value=(this.IB!=0?$.toFixed(this.IB):$)+(this.abH&&s?(s.toLowerCase()==s.toUpperCase()?"":" ")+s:""); var E=400*Math.pow(($-this.vN)/(this.a6-this.vN),1/2.7);this.nC.value=this.dW?E:$;if(o)this.tm()};eK.prototype.v=function(){var $=parseFloat(this.bz.value); if(isNaN($))$=0;return $};eK.prototype.g9=function(){return this.vs};eK.prototype.CR=function($){var o=0; if($.currentTarget==this.bz){var T=$.target.value,s=0;while(s50&&$>10)$=Math.round($); return $};eK.prototype.tz=function($){var o=0;if(dN.AL($.code,dN.du))o=1;if(dN.AL($.code,dN.ZQ))o=-1; if(o!=0)this.oz(o,$.shiftKey)};eK.prototype.FB=function($){this.oz($.deltaY>0?-1:1,$.shiftKey)};eK.prototype.oz=function($,o){var T=this.v(),s=this.IB,E=$*(s==null||s==0||T>5?1:.1); if(o)E*=10;var e=T+E;if(!this.dW&&this.a6!=this.vN)e=Math.min(this.a6,e);this.a(e);this.tm()};eK.prototype.aik=function($){var o=Date.now()-this.S6; this.S6=Date.now();if(o>300)return;var T=(this.a6+this.vN)/2;if(this.vN<0&&this.a6>0)T=0;else if(this.vN<1&&this.a6>1&&this.a6<10)T=1; this.a(T);this.tm()};eK.prototype.a0y=function($){H.mW(document,this.a4m);H.aa(document,this.a4T);this.MP=H.DQ($,document.body).x; this.uU=this.v()};eK.prototype.ajf=function($){H.zl($);var o=this.vN==this.a6,T=H.DQ($,document.body).x,s=(T-this.MP)*(o?1:1/120*(this.a6-this.vN)),E=this.uU+s; if(o)E=Math.round(E);if(!o){if(!0){E=Math.max(this.vN,E);if(E==this.vN){this.MP=T;this.uU=this.vN}}if(!this.dW){E=Math.min(this.a6,E); if(E==this.a6){this.MP=T;this.uU=this.a6}}E=this.Cz(E)}this.o1=!0;this.a(E);this.tm()};eK.prototype.a2c=function($){if(!this.o1)this.bz.focus(); this.o1=!1;H.vY(document,this.a4m);H.SY(document,this.a4T)};eK.prototype.K9=function(){this.bz.select(); this.bz.focus()};function eW($,o){aI.call(this);this.Il=[];this.pz=-1;this.ahF=$;this.xV=o;this.XK=0; this.hW=null;this._j=new aY(0,0);if(o!=null){this.Ix=new eb([{name:[6,37]},{name:[5,4]}]);this.Ix.parent=this; this.Ix.B("select",this.I3,this)}this.k=H.z("div","imageset scrollable");this.k.addEventListener("contextmenu",H.za,!1)}eW.prototype=new aI; eW.prototype.f=function(){if(this.Ix)this.Ix.f()};eW.prototype.I3=function($){var f=this.Ix.X1()[0],o=new x(H.E.Q,!0),T={e:H.V.uY,M9:this.xV,Zg:[this.pz]}; if(f==0){var s=this.hW[1][this.pz];T.U_="rnm";o.data={e:H.V.NC,a_:"namewindow",C5:s,Bo:{F:H.E.Q,r:T}}}else{o.data=T; T.U_="del"}this.J(o)};eW.prototype.a8u=function(){return this.XK};eW.prototype.iI=function($){this.XK=$; if(this.hW)this.iB()};eW.prototype.rS=function($,o,T,s){this.hW=[$,o,T,s];this.iB()};eW.prototype.iB=function(){var $=this.hW,o=$[0],T=$[1],s=$[2],E=$[3]; this.Il=[];this.k.innerHTML="";var e=this.A6.bind(this),n=this.XK;if(n==0)H.v2(this.k,"imageset");else H.oX(this.k,"imageset"); for(var f=0;f0)){e=n;E=f}}if(E==-1)return; this.a4I=E;this.hc=$.altKey||o[(E>>>1)*2]!=o[(E>>>1)*2+1];H.mW(window,this.m1);H.aa(window,this.XO)}; j1.prototype.$d=function($){var o=this.q9,T=this.a4I,s=(T>>>1)*2,E=s+1,e=H.DQ($,this.S),n=Math.round(Math.max(0,Math.min(255,e.x-8))); o[T]=n;if(this.hc&&o[s]>=o[E])this.hc=!1;if(!this.hc)o[s]=o[E]=n;this.iB();this.J(new x(H.E.O,!1))}; j1.prototype.uZ=function($){H.vY(window,this.m1);H.SY(window,this.XO)};j1.prototype.iB=function(){var $=this.S; H.QE($,255+16,16);var o=$.getContext("2d"),T=$.width,s=$.height,E=Math.round(255*H.K()),e=Math.round(8*H.K()); o.translate(e,0);var n=o.createLinearGradient(0,0,E,0);n.addColorStop(0,"black");n.addColorStop(1,"#"+["ffffff","ff0000","00ff00","0000ff"][this.cg]); o.fillStyle=n;o.fillRect(0,0,E,e);var A=this.al9,u=aX.get(this.rG)+":";A[0].textContent=u;for(var f=0; f<4;f++){var Y=this.q9[f];A[1+f].textContent=Y;var b=Math.round(Y*H.K());o.beginPath();o.moveTo(b,e); o.lineTo(b,e+e);o.lineTo(b+((f&1)==0?-1:1)*e,e+e);o.closePath();o.fillStyle="#cccccc";o.fill();o.strokeStyle="black"; o.stroke()}};function iF($,o){aI.call(this);this.a4=0;this.alt=0;var T="ai"+H.Zs();this.k=H.z("span","fitem angleinput"); if($){this.pq=H.z("label","flabel");this.Oj=$;this.k.appendChild(this.pq);this.pq.setAttribute("for",T)}this.ym=20; this.S=H.z("canvas","gsicon");this.V8=this.S.getContext("2d");H.QE(this.S,this.ym*2+1,this.ym*2+1,this.V8); this.k.appendChild(this.S);H.uE(this.S,this.go.bind(this));this.zR=this.LO.bind(this);this.Zw=this.AK.bind(this); var s=this.CR.bind(this),E=H.z("div");E.setAttribute("style","display:inline-block; vertical-align:middle;"); this.k.appendChild(E);this.hZ=[];for(var f=0;f<2;f++){var e=H.z("input");this.hZ.push(e);e.setAttribute("type","text"); if(f==0)e.setAttribute("id",T);e.addEventListener("change",s,!1);var n=H.z("span");n.textContent="\xB0"; if(f==0||o){E.appendChild(e);E.appendChild(n);H.ze(E)}}this.a(this.a4,this.alt)}iF.prototype=new aI; iF.prototype.f=function(){this.pq.textContent=aX.get(this.Oj)+":"};iF.prototype.yl=function($){this.pq.textContent=$}; iF.prototype.v=function(){return{a4:this.a4,alt:this.alt}};iF.prototype.a=function($,o,T){if($!=null)this.a4=$; if(o!=null)this.alt=o;this.hZ[0].value=this.a4;this.hZ[1].value=this.alt;$=Math.PI*this.a4/180;o=.9*this.ym*(90-this.alt)/90; var s=this.ym+.5,E=this.V8;E.clearRect(0,0,100,100);var e=s+Math.cos($)*o,n=s-Math.sin($)*o;E.strokeStyle="#000000"; E.beginPath();E.arc(s,s,.9*this.ym,0,2*Math.PI);E.moveTo(s,s);E.lineTo(e,n);E.stroke();E.strokeStyle="#ff0000"; E.beginPath();E.moveTo(e-3,n);E.lineTo(e+3,n);E.moveTo(e,n-3);E.lineTo(e,n+3);E.stroke();if(T)this.CR()}; iF.prototype.CR=function($){var o=parseInt(this.hZ[0].value),T=parseInt(this.hZ[1].value);o=o%360;T=T%360; this.a(o,T);this.J(new x(H.E.O,!1))};iF.prototype.go=function($){H.mW(window,this.zR);H.aa(window,this.Zw); this.LO($)};iF.prototype.LO=function($){var o=H.DQ($,this.a0Q),T=o.x-this.ym,s=o.y-this.ym,E=180*Math.atan2(-s,T)/Math.PI,e=90-90*Math.min(1,Math.sqrt(T*T+s*s)/(.9*this.ym)); this.a(Math.round(E),Math.round(e));this.J(new x(H.E.O,!1))};iF.prototype.AK=function($){this.J(new x(H.E.O,!1)); H.vY(window,this.zR);H.SY(window,this.Zw)};function c2($,o){aI.call(this);this.q9=0;this.NB=o;this.k=H.z("span","fitem angleinput"); if($){this.pq=H.z("label","flabel");this.Oj=$;this.k.appendChild(this.pq)}this.S=H.z("canvas","gsicon"); this.V8=this.S.getContext("2d");H.QE(this.S,o,o);this.k.appendChild(this.S);H.uE(this.S,this.go.bind(this)); this.zR=this.LO.bind(this);this.Zw=this.AK.bind(this);this.a(0)}c2.prototype=new aI;c2.prototype.f=function(){if(this.Oj)this.pq.textContent=aX.get(this.Oj)+":"}; c2.prototype.yl=function($){this.pq.textContent=$};c2.prototype.v=function(){return this.q9};c2.prototype.a=function($){this.q9=$; var o=this.S.width,T=Math.floor($/3),s=$-3*T,E=(s+.5)*o/3,e=(T+.5)*o/3,n=this.V8,A=[.5,Math.round(o/3)+.5,Math.round(2*o/3)+.5,o-.5]; n.clearRect(0,0,o,o);var u=this.NB<30;n.setLineDash([]);n.strokeStyle=u?"rgba(0,0,0,0.5)":"#000000"; n.beginPath();for(var f=0;f<4;f++){var Y=A[f];n.moveTo(Y,0);n.lineTo(Y,o);n.moveTo(0,Y);n.lineTo(o,Y)}n.stroke(); if($==9)return;if(!u){n.setLineDash([1,2]);var b=o*.53,a=Math.max(0,Math.min(o-b,E-b/2)),w=Math.max(0,Math.min(o-b,e-b/2)); n.strokeRect(Math.round(a)+.5,Math.round(w)+.5,Math.round(b),Math.round(b))}n.fillStyle="#000000";n.beginPath(); n.arc(E,e,o/8,0,Math.PI*2);n.fill()};c2.prototype.go=function($){H.mW(window,this.zR);H.aa(window,this.Zw); this.LO($)};c2.prototype.LO=function($){var o=H.DQ($,this.S),T=Math.max(0,Math.min(2,Math.floor(o.x/(this.NB/3)))),s=Math.max(0,Math.min(2,Math.floor(o.y/(this.NB/3)))); this.a(s*3+T)};c2.prototype.AK=function($){this.J(new x(H.E.O,!1));H.vY(window,this.zR);H.SY(window,this.Zw)}; function hE($,o,T,s){aI.call(this);this.k=H.z("button","fitem"+(o?" spread":"")+(s?" bbtn":""));this.Oj=$; this.RA=T;this.f();this.k.addEventListener("click",this.A6.bind(this),!1)}hE.prototype=new aI;hE.prototype.f=function(){var $=this.k,o=this.Oj,T=this.RA,s=aX.get(o); if(s.startsWith(">16&255,m:$>>8&255,P:$&255};this.q2()};hJ.prototype.a=function($){this.G5=L.h.Qc($); this.q2()};hJ.prototype.q2=function(){var $=this.G5,o=$.i,T=$.m,s=$.P,E=o<<16|T<<8|s;this.k.setAttribute("style","background-color:#"+L.B$(E))}; function iL(){aI.call(this);this.c$=!1;this.yt=20;this.aoU=10;this.JA=0;this.c$=!1;this.MB={i:255,m:0,P:0}; this.Sm={i:0,m:0,P:0};this.k=H.z("canvas");this.iB();H.fb(this.k);H.uE(this.k,this.Wp.bind(this))}iL.prototype=new aI; iL.prototype.a2p=function($){if(this.c$==$)return;this.c$=$;this.iB()};iL.prototype.f=function(){};iL.prototype.ac5=function($,o){function T(s){return{i:s>>16&255,m:s>>8&255,P:s&255}}if($!=null)this.MB=T($); if(o!=null)this.Sm=T(o);this.iB()};iL.prototype.Wp=function($){var o=H.DQ($,this.k),T=o.x*H.K(),s=o.y*H.K(),E=this.yt,e=this.aoU,n=0; if(TE-e&&s>E-e){n=1}else if(T1)A.data={e:H.V.uY,M9:gr.ux,f8:n}; else{this.JA=n;var u=n==0?this.MB:this.Sm;A.data={e:H.V.NC,a_:"colorpicker",zS:u.i<<16|u.m<<8|u.P,Ba:this.eI.bind(this)}}this.J(A)}; iL.prototype.eI=function($){var o=new x(H.E.Q,!0);o.data={e:H.V.uY,M9:gr.ux,f8:this.JA,H:$};this.J(o)}; iL.prototype.iB=function(){var $=this.k,o=$.getContext("2d"),T=H.K(),E="#aaaaaa",e=.62;H.QE($,34,34); $.setAttribute("style",$.getAttribute("style")+";cursor:pointer");var s=this.yt=$.width,n=this.aoU=Math.round(s*e); function A(X,N){var z=X.i,i=X.m,k=X.P;if(N)z=i=k=Math.round(L.DB(z,i,k));var Q=z<<16|i<<8|k;return"#"+L.B$(Q)}function u(X,N,n,z,i){o.fillStyle=i?i:"black"; o.fillRect(X,N,n,n);o.fillStyle=z;o.fillRect(X+1,N+1,n-2,n-2)}u(s-n,s-n,n,A(this.Sm,this.c$));u(0,0,n,A(this.MB,this.c$)); var Y=s-n,b=Math.round(Y*e);u(s-b,Y-b,b,"white",E);u(s-Y,0,b,"black",E);o.save();o.fillStyle=E;o.translate(0,s); o.rotate(-Math.PI/2);Y=s-n;var a=Math.round(Y*.28),w=Math.round(Y*.25);for(var f=0;f<2;f++){o.fillRect(a,a,Y-a,1); o.beginPath();o.moveTo(Y-w,a+.5-w);o.lineTo(Y,a+.5);o.lineTo(Y-w,a+.5+w);o.closePath();o.fill();o.transform(0,1,1,0,0,0)}o.restore()}; function ef($){gh.call(this,$,!1,"brushbutton nopadding",16.6,10,gr.m8,!0);this.hg=new fs([12,14,0],1,1e3," px",0,!0); this.hg.B(H.E.O,this.zf,this);this.K4.appendChild(this.hg.k);this.Yi=new fs([12,17],0,100,"%");this.Yi.B(H.E.O,this.zf,this); this.K4.appendChild(this.Yi.k)}ef.prototype=new gh;ef.prototype.gD=function(){var $=["pencil","trees"]; for(var f=0;f<$.length;f++)$[f]="brushes/"+$[f]+".abr";return $};ef.prototype.UY=function($){var o=this.k.getBoundingClientRect(); this.uF(o.left,o.top+o.height)};ef.prototype.uF=function($,o){this.MU();var T=new x(H.E.Q,!0);T.data={e:H.V.NM,bF:this.gz,x:$,y:o}; this.J(T)};ef.prototype.a=function($,o,T){this.hQ=JSON.parse(JSON.stringify($));var s=Math.floor(20*H.K()),E=Math.floor(36*H.K()),e=Math.floor(24*H.K()),n=ih.Ey($,o,T,s,e,E); this.WP.setAttribute("src",n);H.kg(this.WP,E,e);var A=$.Brsh.v;this.hg.a(A.Dmtr.v.val);if(A.Hrdn!=null){this.Yi.wI(); this.Yi.a(A.Hrdn.v.val)}else this.Yi.v9();this.aI.o5(-1)};ef.prototype.iF=function(){return{list:[{t:"Objc",v:this.v()}],Ou:[],A0:[]}}; ef.prototype.v=function(){return this.hQ};ef.prototype.MU=function(){if(!this.te)return;var $=[],o=[],T=this.lV,s=Math.floor(33*H.K()),E=Math.floor(40*H.K()); for(var f=0;f0&&s.n$==null)s.n$=JSON.parse(JSON.stringify(ev.WA[T-1]));if(this.yN)this.a(this.BB,s,this.yN)}if(o==this.lw)this.Uf.Ab(o.v()); this.J(new x(H.E.O,!1))};eu.prototype.UY=function($){var o=this.S.getBoundingClientRect(),T=new x(H.E.Q,!0); T.data={e:H.V.NM,bF:this.gz,x:o.left,y:o.top+o.height+4};this.J(T);this.lw.a(this.Uf.Hf())};eu.prototype.a=function($,o,T){this.yN=T; this.BB=$;var s=[[13,1,0],[13,0],[12,37],[12,62]],E=this.ajY,e=this.ai7,n=!1,b;for(var f=0;f<4;f++){var A={Ul:f,n$:T[f]},u=eu.S5(A); if(e[f]==u)continue;n=!0;var Y=eu.K2(null,A,this.GH,this.BB,22,22,!1);E[f]=""; e[f]=u}if(n)this.Zd.TY(E,s);this.Zd.a(o.Ul);var u=eu.S5(o);if(u!=this.adH)eu.K2(this.V8,o,this.GH,this.BB,30,23,!0); this.adH=u;var a=o.Ul;if(a==0){b=this.ap6}if(a==1){this.Uf.a(o.n$.Clr.v);b=this.G7}if(a==2){this.Vz.update($,o.n$); b=this.yf}if(a==3){this.GN.update($,o.n$);b=this.rh}if(b!=this.pQ){if(this.pQ!=null){this.gz.k.removeChild(this.pQ)}this.gz.k.appendChild(b); this.pQ=b}};eu.prototype.v=function(){var $={Ul:this.Zd.v()};if($.Ul==1){$.n$=JSON.parse(JSON.stringify(ev.WA[0])); $.n$.Clr.v=this.Uf.v()}if($.Ul==2){$.n$=this.Vz.v()}if($.Ul==3){$.n$=this.GN.v()}return $};eu.S5=function($){var o=$.Ul,T=$.n$,s="empty"; if(o==1){s=L.h.Qc(T.Clr.v);s=s.i+","+s.m+","+s.P}if(o==2)s=JSON.stringify(T.Grad.v);if(o==3)s=T.Ptrn.v.Idnt.v; return s};eu.K2=function($,o,T,s,E,e,n){if($==null)$=eu.V8;var A=Math.floor(E*H.K()),u=Math.floor(e*H.K()),Y=$.canvas,b; Y.width=A;Y.height=u;H.kg(Y,A,u);var a=o.Ul;if(a==0){$.fillStyle="#ffffff";$.fillRect(0,0,A,u);$.strokeStyle="#ff0000"; $.lineWidth=2;$.moveTo(0,0);$.lineTo(A,u);$.moveTo(0,u);$.lineTo(A,0);$.stroke()}if(a==1){var w=o.n$.Clr.v; w=L.h.Qc(w);$.fillStyle="#"+L.B$(w.i<<16|w.m<<8|w.P);$.fillRect(0,0,A,u)}if(a==2){D.eH.Ey(o.n$.Grad.v,A,u,0,T.z4,T.GR,Y)}if(a==3){var X=o.n$.Ptrn.v,N; if(s!=null)N=fW.OA(X,s.add.Patt);if(N==null)N=fW.OA(X,T.q_);aC.Ey(N,A,u,Y)}if(n){$.beginPath();$.strokeStyle="#000000"; $.fillStyle="#ffffff";$.lineWidth=2;var z=A*.7,i=Math.floor(u*.7),k=7*H.K();$.moveTo(z,i);$.lineTo(z+k,i); $.lineTo(z+k/2,i+k/2);$.closePath();$.stroke();$.fill()}if($==eu.V8)return Y.toDataURL()};eu.V8=H.z("canvas").getContext("2d"); function aC($){gh.call(this,$,!1,"patternbutton",18,10,gr.WW);this.CE=null}aC.prototype=new gh;aC.prototype.aC=function($){var o=this.lV[this.aI.v()]; this.hQ={classID:"Ptrn",Nm:{t:"TEXT",v:o.name},Idnt:{t:"TEXT",v:o.id}};this.J(new x(H.E.O));this.rE()}; aC.Hg=!1;aC.prototype.MU=function(){if(!this.te)return;var $=this.lV;if($==null||!aC.Hg){var o=new x(H.E.Q,!0); o.data={e:H.V.ZP,M9:{url:"rsrc/basic/basic.pat"}};this.J(o);aC.Hg=!0;return}var T=Math.floor(34*H.K()),s=Math.floor(34*H.K()),E=[],e=[]; for(var f=0;f<$.length;f++){E.push(aC.Ey($[f],T,s));e.push($[f].name)}this.aI.rS(E,e,T,s);this.te=!1}; aC.prototype.a=function($,o){if(this.hQ&&$.Idnt.v==this.hQ.Idnt.v)return;this.hQ=JSON.parse(JSON.stringify($)); this.rE(o)};aC.prototype.v=function(){return JSON.parse(JSON.stringify(this.hQ))};aC.prototype.iF=function(){return this.CE?[this.CE]:[]}; aC.prototype.rE=function($){var o=Math.floor(50*H.K()),T=Math.floor(50*H.K()),s;if($!=null)s=fW.OA(this.hQ,$.add.Patt); if(s==null)s=fW.OA(this.hQ,this.lV);this.CE=s;var E=aC.Ey(s,o,T);this.WP.setAttribute("src",E);H.kg(this.WP,o,T)}; aC.S=H.z("canvas","");aC.Ey=function($,o,T,s){if(s==null)s=aC.S;var E=s.getContext("2d");s.width=o;s.height=T; if($){var e=$.i2[1],n=e.d,A=e.w,u=$.i2[0],Y=Math.min(o/n,T/A),b=Y;if(b*n<2)b=2/n;var a=Y;if(a*A<2)a=2/A; var w=D.p.qh([u,e],new fY(b,0,0,a,0,0),!1),X=w.rect.d,N=w.rect.w,z=E.createImageData(X,N);L.w0(w.buffer,z.data); E.putImageData(z,Math.floor((o-X)/2),Math.floor((T-N)/2))}return s.toDataURL()};function d2($){gh.call(this,$,!1,"patternbutton",24.2,17,gr.fB); this.cA=""}d2.prototype=new gh;d2.prototype.aC=function($){this.hQ=JSON.parse(JSON.stringify(this.lV[0][this.aI.v()])); this.J(new x(H.E.O))};d2.prototype.MU=function(){var $=this.lV;if($==null||!this.te)return;var o=Math.floor(50*H.K()),T=Math.floor(50*H.K()),s=[],E=[]; for(var f=0;f<$[0].length;f++){s.push(d2.Ey(this.lV[0][f].h2,o,T,this.lV[1]));E.push($[0][f].xz.Nm.v.split("=").pop())}this.aI.rS(s,E,o,T); this.te=!1};d2.prototype.a=function($,o,T,s){var E=JSON.stringify($.h2)+","+T+","+s;if(this.cA!=E){this.cA=E; this.hQ=JSON.parse(JSON.stringify($));this.rE(o,T,s)}this.aI.o5(-1)};d2.prototype.v=function(){return JSON.parse(JSON.stringify(this.hQ))}; d2.prototype.rE=function($,o,T){var s=Math.floor(68*H.K()),E=Math.floor(68*H.K()),e=d2.Ey(this.hQ.h2,s,E,$?$:this.lV[1],o,T); this.WP.setAttribute("src",e);H.kg(this.WP,s,E)};d2.Ey=function($,o,T,s,E,e){var n=new iG;n.d=o;n.w=T; n.buffer=L.G(o*T*4);n.add.Patt=s;n.pa(E==null?90:E);n.um(e==null?30:e);var A=new df(0,0,Math.round(o*.5),Math.round(T*.5)); A.x=Math.round((o-A.d)/2);A.y=Math.round((T-A.w)/2);var u=n.$f();u.rect=A;u.buffer=L.G(A.Y()*4);L.wr(u.buffer,4284045657); fW.yb($,u,.5*100);n.u.push(u);n.eA();n.T();var Y=y.re;y.re=!1;n.ir();var b=n.aw();y.re=Y;var a=eY.rv(b.buffer,n.d,n.w); return a};function bK($){gh.call(this,null,!1,"tpresetbutton",18,24,gr.ws,!0);H.oX(this.k,"fitem");this.aI.iI(1); this.id=$;this.rE();this.LC=new ad([15,7,9]);this.LC.a(!0);this.LC.B(H.E.O,this.a3f,this);this.kc.appendChild(this.LC.k)}bK.prototype=new gh; bK.prototype.a9k=function($){if(this.id==$)return;this.id=$;this.bq(this.lV)};bK.prototype.aC=function($){var o=this.lV[this.aI.v()],T=new x(H.E.Q,!0); T.data={e:H.V.uY,U_:"set",M9:gr.ws,Tk:o};this.J(T)};bK.prototype.f=function(){gh.prototype.f.call(this); this.LC.f()};bK.prototype.a3f=function(){this.te=!0;this.MU()};bK.prototype.MU=function(){if(!this.te)return; var $=Math.floor(16*H.K()),o=Math.floor(16*H.K()),T=[],s=[],E=this.lV,e=this.LC.v();for(var f=0;f255||s<0||s>255; if(T<=A[u-1].v.Hrzn.v||T>=A[u+1].v.Hrzn.v)w=!0;if(!w&&!Y)e.splice(u,0,n);if(w&&Y)e.splice(u,1)}if(!this.alL)n.v.Hrzn.v=Math.round(a); n.v.Vrtc.v=Math.max(0,Math.min(255,Math.round(s)))}else{T=Math.round(T);s=Math.round(s);T=Math.max(0,Math.min(255,T)); s=Math.max(0,Math.min(255,s));var X=this.zg.x,N=T,z=this.zg.y,i=s;if(T.002){this.aml(T.data,256,256,o.cQ); this.aeU=o.cQ}var s=this.V8;s.putImageData(T,0,0);s.strokeStyle="#000000";s.beginPath();s.arc(this.$U.x+1,this.$U.y+1,5,0,2*Math.PI); s.stroke();s.strokeStyle="#ffffff";s.beginPath();s.arc(this.$U.x,this.$U.y,5,0,2*Math.PI);s.stroke(); T=this.a10;s=this.Ua;s.putImageData(T,0,0);s.strokeStyle="#ffffff";s.beginPath();s.moveTo(0,this.$A.y); s.lineTo(20,this.$A.y);s.lineWidth=2;s.stroke()};a$.prototype.aml=function($,o,T,s){var E=1/o,e=1/T; for(var n=0;n0)this.k.removeChild(this.Jo.pop().k); this.ez=$;for(var f=0;f<$.length;f++){var T=new hE($[f],!1,o?o[f]:null);T.B("click",this.CR,this);this.k.appendChild(T.k); this.Jo.push(T)}this.f()};eI.prototype.a=function($){this.pz=$;for(var f=0;f>>1;E.width=E.height=s;var A=[]; for(var f=0;f");else A.push("")}eI.call(this,$,A,T)}bI.prototype=new eI; bI.Vc=H.z("canvas");function h_($,o,T,s){aI.call(this);if(!o)return;if(T==null)T=!1;this.pz=0;this.ahr=T; this.Oj=$;this.Aw=null;this.ak9=s;this.acL=[];var E="dd"+H.Zs();this.k=H.z("span","fitem ddmenu");if($&&!T){this.pq=H.z("label","flabel"); this.k.appendChild(this.pq);this.pq.setAttribute("for",E)}this.zs=H.z("select","bbtn");this.zs.setAttribute("id",E); this.k.appendChild(this.zs);this.zs.addEventListener("change",this.CR.bind(this),!1);this.Jo=[];this.ez=null; this.TY(o,s);this.f()}h_.prototype=new aI;h_.prototype.yl=function($){this.Oj=$;this.f()};h_.prototype.f=function(){if(this.Oj!=null){var $=aX.get(this.Oj); if(this.ahr)this.zs.setAttribute("title",$);else this.pq.textContent=$+":"}if(this.ez)this.TY(this.ez,this.ak9); this.a(this.pz)};h_.prototype.v=function(){return this.pz};h_.prototype.TY=function($,o){H.Ft(this.zs); var T=[],s=0;if(o){T.push(o[0]);for(var f=1;f"); this.zE=new hE("");this.Ng=new hE(""); this.bp=new hE("");this.y6=new hE(""); this.pO=new hE("");this.kQ=new hE(""); this.zN=new hE("");var $=[this.wE,this.zE,this.Ng,this.bp,this.y6,this.pO,this.kQ,this.zN]; for(var f=0;f<$.length;f++)$[f].B("click",this.a45,this);this._g=new hE(""); this.fR=new hE("");this.j9=new hE(""); this.aey=new hE("");this.afJ=new hE(""); this.a07=new hE("");this.a2P=new hE(""); this.pV=[this._g,this.fR,this.j9,this.aey,this.afJ,this.a07,this.a2P];for(var f=0;f "); this.sp=new ac(T[0],-20,20,"px");this.sp.B(H.E.O,this.Cy,this);this.sp.parent=this;this.sH=new ac(T[1],-20,20,"px"); this.sH.B(H.E.O,this.Cy,this);this.sH.parent=this;this.gA=new ac(T[2],-20,20,"px");this.gA.B(H.E.O,this.Cy,this); this.gA.parent=this;this.Jw=new ac(T[3],-20,20,"px");this.Jw.B(H.E.O,this.Cy,this);this.Jw.parent=this; this.mX=new ac(T[4],-20,20,"px");this.mX.B(H.E.O,this.Cy,this);this.mX.parent=this;this.OO=new eI([12,33],["Abc ...","... \u0623\u064A \u0628\u064A"]); this.OO.B(H.E.O,this.Cy,this);this.OO.parent=this}dg.prototype=new aI;dg.prototype.f=function(){this.Z1.f(); this.ra.f();this.Dr.f();this.Vg.f();this.$P.f();this.Un.f();this.IG.f();this.OO.f()};dg.prototype.a=function($,o,T){this.IT=JSON.parse(JSON.stringify($)); var s=this.IT,E=s.oH,e=s.CL;this.wE.a(E.FauxBold!=null?E.FauxBold:!1);this.zE.a(E.FauxItalic!=null?E.FauxItalic:!1); this.Ng.a(E.FontCaps==2);this.bp.a(E.FontCaps==1);this.pO.a(E.FontBaseline==1);this.y6.a(E.FontBaseline==2); this.kQ.a(E.Underline);this.zN.a(E.Strikethrough);this.Z1.a(E.Font==null?null:s.Nd[E.Font].Name,o,T); var n=E.FontSize==null?20:E.FontSize;this.ra.a(n);var A=E.Tracking;this.Vg.a(A==null?0:A);this.Dr.a(E.Leading!=null&&E.Leading!=0?E.Leading:n); this.Tq.a(E.AutoLeading);this.Un.a((E.VerticalScale!=null?E.VerticalScale:0)*100);this.IG.a((E.HorizontalScale!=null?E.HorizontalScale:0)*100); this.$P.a(E.BaselineShift!=null?E.BaselineShift:0);if(E.FillColor){var u=g8.Qc(E);this.fL.Ab(Math.round(u.i)<<16|Math.round(u.m)<<8|Math.round(u.P))}else this.fL.Ab(0); var Y=e._Direction!=null?e._Direction:0,b=g8.KH(e);for(var f=0;f>16&255)/255,(o>>8&255)/255,(o>>0&255)/255]}; for(var f=0;f<4;f++)T.Values[f]=Math.round(T.Values[f]*1e3)/1e3;this.IT.oH.FillColor=T;this.Ut()};function f4(){aI.call(this); this.k=H.z("span","fontinput");this.j4=null;this.Su=null;this.cN=null;this.H5="";this.Il={};this.XE=[]; this.ahP={};this.pT=!1;this.dN=H.z("button","fitem");this.dN.setAttribute("style","width:9em;");this.dN.textContent="Family Name \u25BC"; this.k.appendChild(this.dN);H.uE(this.dN,this.y9.bind(this));this.pC=new aI;this.pC.parent=this;this.pC.k=H.z("div","floatcont"); this.pC.k.addEventListener("keyup",this.a3N.bind(this),!1);this.GZ=new ba(6.8);this.pC.k.appendChild(this.GZ.a9P()); this.GZ.parent=this.pC;this.GZ.B(H.E.O,this.oG,this);var $=H.z("div","form");this.pC.k.appendChild($); this.W3=new hE(H.oQ("tools/cshape",null,"autoscale"),!1,"Show Favorites Only");this.W3.B("click",this.acW,this); $.appendChild(this.W3.k);this.Ym=new d_([12,86],null,9);this.Ym.B("input",this.Xh,this);$.appendChild(this.Ym.k); var o=this.apc=new hE([[23,6],[22,6,0]],!1,"Load OTF / TTF file from your computer",!0);o.B("click",this.a8X,this); o.k.style.marginLeft="1.5em";$.appendChild(o.k);this.hS=H.z("span","fitem imageset scrollable marged"); this.hS.style.height="30em";this.pC.k.appendChild(this.hS);this.wg=H.z("button","fitem");this.wg.setAttribute("style","width:7em;"); this.wg.textContent="SubFamily Name \u25BC";this.k.appendChild(this.wg);H.uE(this.wg,this.y9.bind(this)); this.zj=new aI;this.zj.parent=this;this.zj.k=H.z("div","floatcont");this.Gk=H.z("span","fitem imageset scrollable marged"); this.zj.k.appendChild(this.Gk)}f4.prototype=new aI;f4.prototype.a3N=function($){var o=0;if(dN.AL($.code,dN.du))o=-1; if(dN.AL($.code,dN.ZQ))o=1;if(o!=0){var T=this.XE,s=T.length,E=this.j4.ts()[this.cN];if(E==null&&s==0)return; var e=T.indexOf(E[0]);if(e==-1)return;e=(e+o+s)%s;this.kA(T[e],null)}};f4.prototype.a8X=function(){var $=new x(H.E.Q,!0); $.data={e:H.V.b_,a71:".otf,.ttf,.ttc"};this.J($)};f4.prototype.f=function(){this.GZ.f();this.apc.f(); this.W3.yl(H.oQ("tools/cshape",null,"autoscale"))};f4.prototype.acW=function($){this.W3.a(!this.W3.Ed()); this.oG()};f4.prototype.Xh=function($){this.H5=this.Ym.v().toLowerCase();this.oG()};f4.prototype.y9=function($){H.zl($); var o=$.currentTarget,T=o.getBoundingClientRect(),s=o==this.dN,E=s?this.pC:this.zj;if(H.ni(E.k)){this.CI(E); return}if(!s&&this.j4.ts()[this.cN]==null)return;var e=new x(H.E.Q,!0);e.data={e:H.V.NM,bF:E,x:T.left,y:T.top+T.height}; this.J(e);if(s){this.oG();this.Ym.K9()}};f4.prototype.ai$=function($){var o=$.currentTarget.firstChild.nextSibling.textContent; if($.target.tagName.toLowerCase()=="button"){var T=this.Su.slice(0),s=T.indexOf(o);if(s==-1){T=T.slice(Math.max(0,T.length-29)); T.push(o)}else T.splice(s,1);var E=new x(H.E.Q,!0);E.data={e:H.V.uY,M9:gr.bV,mI:T};this.J(E);this.pT=!0; this.oG()}else{this.kA(o,null);this.Ym.K9()}};f4.prototype.a2I=function($){this.kA(null,$.currentTarget.firstChild.textContent)}; f4.prototype.kA=function($,o){var T=$==null?this.zj:this.pC,s=this.j4;if($==null)$=s.ts()[this.cN][0]; else{var E=s.lI($),e=s.ts()[this.cN];o=hx.mM(E,e?e[1]:"regular")}var n=s.a8($,o)[2];this.a(n,s);this.J(new x(H.E.O,!1)); this.CI(T);this.oG()};f4.prototype.CI=function($){var o=new x(H.E.Q,!0);o.data={e:H.V.mG,bF:$};this.J(o)}; f4.prototype.v=function(){return this.cN};f4.prototype.a=function($,o,T){var s=this.j4;if($!=null)this.cN=$; else $=this.cN;this.j4=o;this.Su=T;if($!=null){var E=o.ts()[$],e,n;if(E==null){e="- "+$;n="-------"}else{e=E[0]; n=E[1];var A=o.lI(e);A.sort(hx.ar2);var u=A.indexOf(n),Y=this.a2I.bind(this);this.Gk.textContent=""; for(var f=0;f0&&A[0].toLowerCase().indexOf(this.H5)==-1)Y=!1; else if(!this.GZ.Pb(A))Y=!1;else if(this.W3.Ed()&&!u)Y=!1;var b=this.Il[e];if(b==null){var b=this.agh(A,e,E,!0); this.Il[e]=b;this.hS.appendChild(b)}if(Y)this.XE.push(e);var a=Y?"":"display:none; ",w="opacity: "+(u?"1":"0.2"); if($&&$[0]==e){a+="background-color:rgba(0,0,0,0.13);";T=b}if(this.ahP[e]!=a+w){b.setAttribute("style",a); b.firstChild.setAttribute("style",w);this.ahP[e]=a+w}}if(T&&!this.pT)this.hS.scrollTop=T.offsetTop-210; this.pT=!1};f4.prototype.agh=function($,o,T,s){var E=H.z("div","fontitem"),u="";E.addEventListener("click",T,!1); if(s)E.appendChild(H.z("button","star"));var e=H.z("span","label");e.setAttribute("title",o);e.textContent=o; E.appendChild(e);var n=H.K(),A=1/n,Y=hx.kC*A,b=hx.q0*A;if(1>>f&1)==1;this.n3[f]=T;o[f].a(T)}};ba.prototype.a9P=function(){return this.yD}; ba.prototype.f=function(){this.k.textContent=aX.get([25,1,0])+" \u25BC";this.qv.f();this.a4M.f()};ba.prototype.a1f=function($){var o=this.k.getBoundingClientRect(),T=new x(H.E.Q,!0); T.data={e:H.V.NM,bF:this.gz,x:o.left,y:o.top+o.height,cs:!1};this.J(T)};ba.prototype.Pb=function($){if(this.St[$[4]]==0)return!1; else for(var o=0;o>>o&1)==0)return!1;return!0};ba.prototype.a7U=function($){var o=$.target.v(),T=this.md,s=this.St; for(var f=0;f",!1,[12,51]); this.EH.B("click",this.Qr,this);this.ae7=new eB("");if(o){this.k.appendChild(this.EH.k);this.k.appendChild(this.ae7.k); this.EH.UM()}else this.k.appendChild(e.k);this.gF=new ac("DPI",0,0,null,3,!1,!0,4);if($&&s==null){H.ze(this.k); this.k.appendChild(this.gF.k)}this.gF.B(H.E.O,this.Qr,this);this.fq=new ad([12,23,1]);this.fq.B(H.E.O,this.Qr,this); if(T){H.ze(this.k);this.k.appendChild(this.fq.k)}H.ze(this.k)}bc.prototype=new aI;bc.prototype.a0b=function(){this.Ls=!1; if(this.j8.v()==0){this.j8.a(3);this.FD()}};bc.prototype.agS=function(){this.Ls=!0};bc.prototype.a1t=function($){this.EH.a($)}; bc.prototype.f=function(){this.ST.f();this.PX.f();this.gF.f();this.EH.f();this.fq.f()};bc.prototype.ap0=function($){var o=this.oi.x; this.oi.x=this.oi.y;this.oi.y=o;this.FD();this.J(new x(H.E.O,!1))};bc.prototype.Qr=function($){if($.target==this.j8&&!this.Ls&&this.j8.v()==0)this.j8.a(3); if($.target==this.j8||$.target==this.fq){this.FD();return}if($.target==this.EH)$.target.a(!$.target.v()); var o=this.Aj,T=parseFloat(this.ST.v());if(isNaN(T))T=1;var s=parseFloat(this.PX.v());if(isNaN(s))s=1; var E=this.j8.v();if(this.Ls){var e=this.CB;if(E==1){T=this.Aj.x*(T/100);s=this.Aj.y*(s/100)}var n=[1,1,25.4/e,1/e][E]; T/=n;s/=n;if(this.fq.v()){T+=this.Aj.x;s+=this.Aj.y}if($.target==this.gF){var A=this.gF.v();if(!0){var u=A/e; T*=u;s*=u}e=A}if(this.EH.v()){if($.target==this.ST)s=T*(o.y/o.x);else T=s*(o.x/o.y)}T=Math.max(Math.abs(T),1); s=Math.max(Math.abs(s),1)}else{var e=this.hM;if($.target==this.gF)e=this.gF.v();else{if(this.EH.v()){if($.target==this.ST)s=T*(o.y/o.x); else T=s*(o.x/o.y)}var n=[1,1,25.4/e,1/e][E],Y=T/(E==1?100:o.x*n);e=e/Y}T=o.x;s=o.y}this.oi=new aY(Math.round(T),Math.round(s)); this.CB=e;this.FD();this.J(new x(H.E.O,!1))};bc.prototype.a2d=function(f){this.j8.a(f);this.FD()};bc.prototype.a=function($,o,T){if(T!=!0)this.Aj=$.clone(); this.oi=$.clone();if(o!=null){this.hM=o;this.CB=o}this.FD()};bc.prototype.FD=function(){var $=this.oi.x,o=this.oi.y,T=this.CB,s=($/o).toFixed(3); while(s.charAt(s.length-1)=="0")s=s.substring(0,s.length-1);if(s.charAt(s.length-1)==".")s=s.substring(0,s.length-1); var E=" "+s+" : 1",e=function(b,a){while(a!=0){var w=a;a=b%a;b=w}return b},n=e($,o);if(Math.min($,o)/n<10)E=" "+Math.round($/n)+" : "+Math.round(o/n); this.ae7.a(E);if(this.fq.v()){$-=this.Aj.x;o-=this.Aj.y}var A=this.j8.v();if(A==1){if(this.Ls){$=100*$/this.Aj.x; o=100*o/this.Aj.y}else{$=o=100*this.hM/this.CB}}else{$=Math.round($);o=Math.round(o)}var u=[1,1,25.4/T,1/T][A]; $*=u;o*=u;var Y=A==1||A==3?2:0;this.ST.UU(Y);this.PX.UU(Y);this.ST.a($);this.PX.a(o);this.gF.a(T)};bc.prototype.v=function(){return this.oi.clone()}; bc.prototype.Lf=function(){return this.CB};function b7($,o){aI.call(this);var T=$==0?["W","H","X","Y"]:["\u250F","\u2513","\u2517","\u251B"]; this.pY=$;this.alU=o;this._C=1;this.x8=[1,1,0];var s=this.k=H.z("div","numlist"),E=this.Pl=[];for(var f=0; f<4;f++){var e=new ac(T[f],0,0,null,2,!1,!0,4);e.B(H.E.O,this.Qr,this);s.appendChild(e.k);E[f]=e;if(f==1||f==3)H.ze(s)}E[4]=new ad($==0?[12,51]:[12,91,2]); E[4].a(!0);s.appendChild(E[4].k)}b7.prototype=new aI;b7.prototype.f=function(){var $=this.Pl;for(var f=0; f<5;f++)$[f].f();if(this.pY==0)H.Ec($[0],$[1])};b7.prototype.a=function($,o){if(o)this.x8=o;o=this.x8; this._C=$[0]/$[1];for(var f=0;f<4;f++){var T=this.Pl[f];T.UU(o[2]==0&&this.alU?0:2);T.a(L.BG.adT($[f],o[0],o[1],o[2]))}}; b7.prototype.v=function(){var $=[],o=this.x8;for(var f=0;f<4;f++){var T=L.BG.V9(this.Pl[f].v(),o[0],o[1],o[2]); $[f]=this.alU?Math.round(T):T}return $};b7.prototype.Qr=function($){var o=this.pY,T=this.Pl.indexOf($.currentTarget),s=this.v(),E=this.Pl[4].v(); if(o==0){s[0]=Math.max(1,s[0]);s[1]=Math.max(1,s[1]);if(E&&T==0)s[1]=s[0]/this._C;if(E&&T==1)s[0]=s[1]*this._C}if(o==1){s[T]=Math.max(0,s[T]); if(E)for(var f=0;f<4;f++)s[f]=s[T]}this.a(s);this.J(new x(H.E.O,!1))};function dy(){aI.call(this);this.lt=0; this.QG=[0,0,1,1,100,100];this.k=H.z("span","fitem");this.qW=new h_(null,[[12,89,0],[12,89,1],[12,89,2]]); this.k.appendChild(this.qW.k);this.qW.B(H.E.O,this.Qr,this);this.ST=new ac("W",0,0,null,0,!1,!0);this.k.appendChild(this.ST.k); this.ST.B(H.E.O,this.Qr,this);this.PX=new ac("H",0,0,null,0,!1,!0);this.k.appendChild(this.PX.k);this.PX.B(H.E.O,this.Qr,this); this.a({KR:0,x:0,y:0})}dy.prototype=new aI;dy.prototype.f=function(){H.Ec(this.ST,this.PX);this.qW.f()}; dy.prototype.Qr=function($){if($.target==this.qW){var o=this.v(),T=this.QG;T[this.lt*2]=o.x;T[this.lt*2+1]=o.y; this.lt=o.KR;this.a({KR:o.KR,x:T[o.KR*2],y:T[o.KR*2+1]})}if(this.ST.v()<1)this.ST.a(1);if(this.PX.v()<1)this.PX.a(1); this.J(new x(H.E.O,!1))};dy.prototype.a=function($){this.qW.a($.KR);this.ST.a($.x);this.PX.a($.y);if($.KR==0){this.ST.v9(); this.PX.v9()}else{this.ST.wI();this.PX.wI()}};dy.prototype.v=function(){return{KR:this.qW.v(),x:this.ST.v(),y:this.PX.v()}}; function eB($,o){aI.call(this);this.Oj=$;this.k=H.z("span","labelitem fitem"+(o?" spread":""));this.f()}eB.prototype=new aI; eB.prototype.a=function($){this.k.textContent=$};eB.prototype.v=function(){return this.k.textContent}; eB.prototype.wI=function(){this.k.removeAttribute("disabled")};eB.prototype.v9=function(){this.k.setAttribute("disabled","")}; eB.prototype.yl=function($){this.k.textContent=$};eB.prototype.f=function(){this.k.textContent=aX.get(this.Oj)}; eB.prototype.apK=function(){return this.Oj};function c4($){aI.call(this);this.k=H.z("span","");this.aiV=$; this.zd=new a4("Off X",-100,100,$?"%":"px",0,!1);this.MH=new a4("Off Y",-100,100,$?"%":"px",0,!1);this.zd.B(H.E.O,this.Qr,this); this.MH.B(H.E.O,this.Qr,this);this.k.appendChild(this.zd.k);this.k.appendChild(this.MH.k)}c4.prototype=new aI; c4.prototype.f=function(){this.zd.f();this.MH.f()};c4.prototype.Qr=function($){this.J(new x(H.E.O,!1))}; c4.prototype.alr=function($){this.zd.a($.x);this.MH.a($.y)};c4.prototype.ajW=function(){return new aY(this.zd.v(),this.MH.v())}; c4.prototype.a=function($,o){var T=$.Hrzn.v,s=$.Vrtc.v;if(this.aiV){T=T.val;s=s.val}this.zd.a(T);this.MH.a(s); if(o)this.Qr()};c4.prototype.v=function(){var $=this.zd.v(),o=this.MH.v();if(this.aiV)return{classID:"Pnt",Hrzn:{t:"UntF",v:{type:"#Prc",val:$}},Vrtc:{t:"UntF",v:{type:"#Prc",val:o}}}; else return{classID:"Pnt",Hrzn:{v:$,t:"doub"},Vrtc:{v:o,t:"doub"}}};function ac($,o,T,s,E,e,n,A,u){eK.call(this,$,o,T,s,E,!0,e,u); H.v2(this.k,"rangedropinput");this.k.appendChild(this.pq);this.bz.setAttribute("style","width:"+(A?A:3.3)+"em"); this.k.appendChild(this.bz);this.agl=H.z("span","rangecont");this.agl.appendChild(this.nC);this.oO=H.z("button"); this.oO.innerHTML="\u25BC";H.uE(this.oO,this.a9x.bind(this));if(n!=!0)this.k.appendChild(this.oO);this.eV=new aI; this.eV.k=this.agl}ac.prototype=new eK;ac.prototype.a9x=function($){if(H.ni(this.eV.k))return;$.stopPropagation(); var o=this.k.getBoundingClientRect();this.nC.setAttribute("style","width:"+o.width+"px;");var T=new x(H.E.Q,!0); T.data={e:H.V.NM,bF:this.eV,x:o.left,y:o.top+o.height};this.J(T)};function eO(){aI.call(this);this.k=H.z("span","fitem strokebutton"); this.PY=[[null,null,null,""],[null,0,null,"4 2"],[1,1,null,"0 2"]];this.Jk=JSON.parse(JSON.stringify(ev.ci.default)); this.br=H.z("button");this.k.appendChild(this.br);this.br.addEventListener("click",this.UY.bind(this),!1); var $=H.z("canvas","gsicon");this.V8=$.getContext("2d");this.br.appendChild($);var o=H.z("span");o.textContent=" \u25BC"; this.br.appendChild(o);this.gz=new aI;this.gz.parent=this;this.gz.k=H.z("div","floatcont form");var T=this.gz.k; T.setAttribute("style","width: 14em;");this.Il=[new h_([12,40],[[19,5,2],[19,5,1],[19,5,0]]),new eI([19,9,0],["","",""]),new eI([19,9,1],["","",""]),new d_([19,9,2])]; for(var f=0;f",!1,o[f]); T.B("click",this.a24,this);this.k.appendChild(T.k);this.jC.push(T)}this.jC[0].UM()}hg.prototype=new aI; hg.prototype.acz=function(){return this.Gf};hg.prototype.v=function(){return this.Cr[this.Gf]};hg.prototype.a=function($){this.Gf=this.Cr.indexOf($); for(var f=0;f";var $=this.ah1,o=this.ald;H.kg(this.e.firstChild,$,o)}; ay.prototype.v=function(){return this.HG[this.b6]};ay.prototype.a=function($){this.b6=this.HG.indexOf($); this.rE()};function c1($,o,T){aI.call(this);if($==null)$=!1;if(o==null)o=!1;if(T==null)T=!1;this.a3s=o; this.Rt=null;this.cm=new ay([12,22],T);this.cm.parent=this;this.cm.B(H.E.O,this.Ut,this);this.RL=new h_([22,0],[[22,4,0],[22,4,1]]); this.RL.B(H.E.O,this.Ut,this);var s=$?ac:fs;this.L9=new s([22,1],-100,100,"%");this.Ma=new s("Horizontal Distortion:",-100,100,"%"); this.Hd=new s("Vertical Distortion:",-100,100,"%");this.L9.parent=this.Ma.parent=this.Hd.parent=this; this.L9.B(H.E.O,this.Ut,this);this.Ma.B(H.E.O,this.Ut,this);this.Hd.B(H.E.O,this.Ut,this)}c1.prototype=new aI; c1.prototype.f=function(){this.cm.f();this.RL.f();this.L9.f();var $=this.a3s?1:100;this.Ma.yl(aX.get([22,2]).substring(0,$)+":"); this.Hd.yl(aX.get([22,3]).substring(0,$)+":")};c1.prototype.Ut=function(){var $=this.Rt,o=this.cm.v(),T=$.warpStyle.v.warpStyle; if(o=="warpCustom")L.Rt.X3(L.Rt.wW($),$);else delete $.customEnvelopeWarp;$.warpStyle.v.warpStyle=this.cm.v(); $.warpRotate.v.Ornt=["Hrzn","Vrtc"][this.RL.v()];$.warpValue.v=this.L9.v();$.warpPerspective.v=this.Ma.v(); $.warpPerspectiveOther.v=this.Hd.v();if(o=="warpNone"||o=="warpCustom"){$.warpValue.v=0;$.warpPerspective.v=0; $.warpPerspectiveOther.v=0}else if(T=="warpNone"||T=="warpCustom")$.warpValue.v=50;this.J(new x(H.E.O,!1)); this.a($)};c1.prototype.v=function($){return JSON.parse(JSON.stringify(this.Rt))};c1.prototype.a=function($){this.Rt=JSON.parse(JSON.stringify($)); this.cm.a($.warpStyle.v.warpStyle);this.RL.a($.warpRotate.v.Ornt=="Hrzn"?0:1);this.L9.a($.warpValue.v); this.Ma.a($.warpPerspective.v);this.Hd.a($.warpPerspectiveOther.v);var o=$.warpStyle.v.warpStyle,T=o=="warpNone"||o=="warpCustom",s=[this.RL,this.L9,this.Ma,this.Hd]; for(var f=0;f=0)o.ao("Space");if($>=1){o.ao("ControlLeft");if($==2)o.ao("AltLeft")}return o}; ap.prototype.Vb=function($){var o=this.rs,T=null;if($.L(dN.Gv)){T="grab";if($.L(dN.I6)){T="zoom-in"; if($.L(dN.BJ))T="zoom-out"}}this.cv=T;if(T)o=T;this.NJ.kW(o,this.Ov);if($.L(dN.I6)){var s=0;if($.L(dN.AZ))s=1; if($.L(dN.Dd))s=-1;if(s!=0){this.w8(new aY(this.S.width/2,this.S.height/2),s==1)}}};ap.prototype.OS=function($){this.rs=$; if(this.cv)return;this.NJ.kW($,this.Ov)};ap.prototype.ajM=function($){H.uE($,this.ah2);H.fb($);$.addEventListener("wheel",this.anS,!1)}; ap.prototype.x9=function($){$.B("viewchange",this.amM,this)};ap.prototype.amM=function($){var o=this.C.X,T=$.currentTarget.s2(); this.C.X=T.X;this.C.l=T.l.clone();if(o!=T.X)this.Bg();this.bT()};ap.prototype.s2=function(){return{X:this.C.X,l:this.C.l}}; ap.prototype.a=function($,o){var T=$[0].Sg;if(this.T_!=null&&this.T_[0].Sg.R1(T)){}else{this.C.u4={d:T.d,w:T.w}; this.C.l=new aY(0,0);this.C.X=1}this.T_=$;this.Bg();this.Yo();this.MJ=0;this.a9=0;this.Ka=o==null?0:o; this.aqp()};ap.prototype.FB=function($){$.preventDefault();if($.deltaY==0||Date.now()-this.abd<100)return; var o=H.DQ($);o.x=H.K()*o.x;o.y=H.K()*o.y;this.abd=Date.now();this.w8(o,$.deltaY<0)};ap.prototype.w8=function($,o){D.Kl.PT(this.C,$,o); this.abj()};ap.prototype.aoN=function(){var $=this.C,o=$.u4;this.C.X=D.Kl.cb(o.d,o.w,$.Vi.d,$.Vi.w); this.abj()};ap.prototype.abj=function(){this.Bg();this.J(new x("viewchange"));this.J(new x("zoom"))}; ap.prototype.Bg=function(){this.ZZ=[];var $=this.C.X;if(this.T_==null)return;for(var f=0;f=1)s={_3:T,rect:o.Sg};else s=L.aeA(T,o.Sg,$);this.ZZ.push(s)}}; ap.prototype.Yo=function(){clearTimeout(this.ahI)};ap.prototype.bT=function(){if(this.T_==null||!H.ni(this.S))return; var $=this.acu,o=this.S.width,T=this.S.height,N,z;if($==null||$.width!=o||$.height!=T){$=this.acu=this.V8.createImageData(o,T); console.log("creating image data")}var s=this.T_[this.MJ],E=this.ZZ[this.MJ],e=this.C,n=e.u4,A=e.Vi,u=A.d,Y=A.w,b=n.d*e.X,a=n.w*e.X,w=Math.round((u-b)/2+e.l.x),X=Math.round((Y-a)/2+e.l.y); if(e.X<=1){z=E.rect.clone();z.x=w;z.y=X;b=z.d;a=z.w;N=E._3}else{var i=1/e.X,k=new df(Math.floor((A.x-w)*i),Math.floor((A.y-X)*i),Math.ceil(A.d*i)+1,Math.ceil(A.w*i)+1),Q=new df(0,0,k.d*e.X,k.w*e.X); Q.x=k.x*e.X+w;Q.y=k.y*e.X+X;if(e.$c==null||e.$c.length!=k.Y()*4){e.$c=L.G(k.Y()*4)}if(e.Iw==null||e.Iw.length!=Q.Y()*4){e.Iw=L.G(Q.Y()*4)}L.wr(e.$c,0); L.h9(E._3,E.rect,e.$c,k);L.scale.nq(e.$c,k.d,k.w,e.Iw,Q.d,Q.w,e.X);N=e.Iw;z=Q}var O=new Uint8Array($.data.buffer); L.qU(O,u,Y,8,-w,-X);L.R.xE("norm",N,z,O,A,A,1);var c=this.V8;c.setTransform(1,0,0,1,0,0);c.putImageData($,0,0); c.clearRect(w-1e3,X,1e3,a);c.clearRect(w+b,X,1e3,a);c.clearRect(w-1e3,X-1e3,b+2e3,1e3);c.clearRect(w-1e3,X+a,b+2e3,1e3); var B=ap.a37(e.X,"#ffffff",this.ah3);c.putImageData(B,0,e.Vi.w-B.height)};ap.a05={};ap.a37=function($,o,T){if(T==null)T=!1; var s="z"+$+","+o+","+T,E=ap.a05[s];if(E)return E;var e=Math.round(50*H.K()),n=Math.round(18*H.K()),A=T?2*n:0,u=H.z("canvas"),Y=u.getContext("2d"); u.width=e+A;u.height=n;Y.fillStyle="rgba(1,1,1,1)";Y.fillRect(0,0,e+A,n);Y.font=Math.round(11*H.K())+"px monospace"; Y.fillStyle=o;var b=$*100;if(b<100)b=b.toFixed(2);else b=Math.round(b);b=b+"%";var a=Y.measureText(b).width; Y.fillText(b,A+(e-a)/2,Math.round(n*.7));E=ap.a05[s]=Y.getImageData(0,0,e+A,n);return E};ap.prototype.aqp=function(){var $=this.T_,o=$.length,T=this.MJ,s=this.T_[T],E=(T+1)%o; this.bT();if(o!=1&&$[E].Sg.R1(s.Sg)){var e=s.y0?parseInt(s.y0.split(",").pop()):30;if(e==0)e=16;if(E==0)this.a9++; if(this.Ka==0||this.a91||!s.Vi.Yg(e))){if(T.length>1){var A=H.DQ(T[0],this.S),u=H.DQ(T[1],this.S),Y=new aY(H.K()*(A.x+u.x)/2,H.K()*(A.y+u.y)/2),b=aY.Sa(A,u),a=null; if(b>this.Kk+50){this.Kk+=50;a=!0}if(b1){this.C.X=1; this.C.l.A5(0,0);this.bT()}if(this.EG&&this.LN==this.S&&!this.cv)this.J(new x("mouseup"));else{if(s=="zoom-in"||s=="zoom-out")this.w8(this._j,s=="zoom-in")}}else{var E=this.jQ=H.DQ(T[0],this.S); E.x*=H.K();E.y*=H.K()}};ap.prototype.TE=function(){return this.C.VD(this._j.x,this._j.y)};function hB(){aI.call(this); this.R8=null;this.yt=null;this.Qx=null;this.cp=null;this.aem="";this.nW=[];this.Y1=0;this.aZ=[];this.zw=0; this.GH=null;var $=this.k=H.z("div",""),o=this.aod=H.z("div","form");o.setAttribute("style","line-height:0; margin-bottom:0.5em;"); $.appendChild(o);var T=this.Hv=H.z("span");o.appendChild(T);T.setAttribute("style","font-size:1.2em; font-weight:bold; margin-right:3em;"); var s=this.apm=new ad([25,2,0]);s.a(!0);o.appendChild(s.k);s.B(H.E.O,this.E4,this);var E=this.f$=new ad([25,2,1]); E.a(!0);o.appendChild(E.k);E.B(H.E.O,this.E4,this);var e=new eB(" ");o.appendChild(e.k);var n=this.L6=new d_([25,1,1]); o.appendChild(n.k);n.B(H.E.O,this.E4,this);this.GZ=new ba(14);this.GZ.a9c(3);o.appendChild(this.GZ.k); this.GZ.parent=this;this.GZ.B(H.E.O,this.ai4,this);var A=this.a3C=new hE([25,1,2],null,null,!0);o.appendChild(A.k); A.B("click",this.z7,this);this.amJ=this.a1p.bind(this);this.RM=H.z("div","svggallery scrollable");$.appendChild(this.RM); this.RM.addEventListener("scroll",this.ak0.bind(this))}hB.prototype=new aI;hB.prototype.YE=function($){this.acX=$}; hB.prototype.f=function(){this.Hv.textContent=aX.get([25,0]);this.GZ.f();this.apm.f();this.f$.f();this.L6.f(); this.a3C.f()};hB.prototype.RE=function($,o){o-=26;this.R8=new aY($,o);this.aod.setAttribute("style","width:"+$+"px"); this.RM.setAttribute("style","width:"+$+"px; height:"+o+"px");if(H.ni(this.k))this.E4()};hB.prototype.a=function($){this.yt=$; this.E4()};hB.prototype.ak0=function($){var o=this.RM;if(o.scrollTop+o.clientHeight+10>=o.scrollHeight){this.E4(!0)}}; hB.prototype.ai4=function($){this.Qx=null;this.E4()};hB.prototype.a1p=function($){if(Date.now()-this.zw<2e3)return; this.zw=Date.now();this.Y1=this.aZ.indexOf($.currentTarget);var o=this.VJ(this.yt.x,this.yt.y);if(o[1]){var T=o[1].largeImageURL,s=new XMLHttpRequest; s.responseType="arraybuffer";s.open("GET",T,!0);s.onload=this.a6w.bind(this);s.send();return}this.a2Z(o)}; hB.prototype.a6w=function($){var o=$.target.response,T=eY.RP(o),s=eY.Q1(T),E=s.yj(o),e=this.VJ(this.yt.x,this.yt.y,[o,E[0].Sg.d,E[0].Sg.w]); this.a2Z(e)};hB.prototype.a2Z=function($){var o=$[0],T=eY.RP(o),s=eY.Q1(T),E=new iG("template.psd"); s.yj(o,E);var e=new x("tempready",!0);e.data={u4:E};this.J(e)};hB.prototype.z7=function($){var o=$.target; this.nW=[];this.E4()};hB.prototype.a8k=function($){var o=JSON.parse($.target.response);this.cp=o.hits; this.E4()};hB.prototype.E4=function($){if(this.yt==null||this.R8==null||this.acX==null)return;if(this.R8.x<=0)return; var o=this.yt.x,T=this.yt.y;if(Math.min(o,T)<50)return;if($!=!0){this.aZ=[];H.Ft(this.RM);this.RM.scrollTop=0}if(this.aZ.length>300)return; var s=Math.min(1,300/Math.max(o,T)),E=this.R8.clone();E.x-=20;var e=Math.max(1,Math.floor(E.x/(o*s))),n=Math.max(1,Math.ceil(E.y/(T*s))); s=E.x/e/o;var A=e*n;if(this.Qx==null){var u=this.acX.vv.ts();this.Qx=[];for(var Y in u){var b=u[Y],a=b[3]; if(!this.GZ.Pb(b))continue;if(b[5]==null||b[5].slice(0,2)=="gf")continue;this.Qx.push(b)}if(this.Qx.length==0)this.Qx.push(u.DejaVuSans)}var w=this.f$.v(),X=this.L6.v().trim(); this.L6.ph(w);if(w&&(this.cp==null||X!=this.aem)){var N=new XMLHttpRequest,z="https://pixabay.com/api/?image_type=photo"+(X==""?"":"&q="+encodeURIComponent(X))+"&per_page=200&page=1&key=10554583-a5eacb61c2e61105fdfb6eb88"; if(X=="")z+="&safesearch=true";if(X=="")z="plugins/gallery.json";N.open("GET",z,!0);N.onload=this.a8k.bind(this); N.onerror=function(B){console.log(B.target.response)};N.send();this.aem=X;return}s*=(o*s-5)/(o*s);var i=this.aZ.length; for(var f=0;f