var un=I.ea(I,"AdfDhtmlChooseColorBasePeer");m("AdfDhtmlChooseColorBasePeer",un);un.Lt="lastUsedColor";un.gr="colorValue";un.prototype.zP=function(a,b,d){a.setProperty(b,d)};r.a("AdfDhtmlChooseColorBasePeer.prototype.handleUpdateFromInputComponent",{zP:un.prototype.zP});
un.C=function(){r.bb(AdfRichChooseColor);r.bb(AdfRichInputColor);r.bb(AdfUIValue);r.bb(wn);this.d4=new TrColorConverter(["#RRGGBB"],!0);I.ra(this,D.wb,D.Bc,D.Ad,Za.ua);I.sb(this,un.gr,un.Lt,AdfRichChooseColor.DEFAULT_COLOR,AdfRichChooseColor.CUSTOM_COLOR_DATA);I.hc(this,AdfRichChooseColor.CUSTOM_COLOR_DATA,AdfRichChooseColor.COLOR_DATA,AdfRichChooseColor.WIDTH,un.Lt,AdfRichChooseColor.DEFAULT_COLOR);this.sT="_adfSw";this.mS="_adfSwBtn";this.g1="_adfClr";this.ffa="LucBtn";this.oea="DfcBtn";this.e_a=
"cstcBtn";this.mea="ccRow";this.h_a="ccWrap";this.DK="ccPnl";this.f_a="tb";this.nga=0;this.nEa=1;this.lEa=2;this.pEa=3;this.oEa=4;this.rN={};this.m4={};this.GN={};this.T5a="stdTbl";this.uhb()};m("AdfDhtmlChooseColorBasePeer.InitSubclass",un.C);un.PL=function(a){return null==a?null:this.d4.getAsString(a)};un.k4=function(a){return null==a?null:this.d4.getAsObject(a)};
un.C$=function(a){u.J(a);for(var b=a.length,d=0;d<b;d++)if(-1=="0123456789".indexOf(a.charAt(d)))return null;a=parseInt(a);return!isNaN(a)&&0<=a&&255>=a?a:null};m("AdfDhtmlChooseColorBasePeer.parse0To255",un.C$);un.Pta=function(a){u.J(a);var b=a;if(6!=a.length)b=null;else for(var d=0;6>d;d++)if(-1=="0123456789ABCDEFabcdef".indexOf(a.charAt(d))){b=null;break}null!=b&&(b=parseInt(a,16));return b};m("AdfDhtmlChooseColorBasePeer.parseHexColor",un.Pta);
un.prototype.G=function(a,b){un.h.G.call(this,a,b);var d=xn.k9(a.g());null!=d&&d.o().Z9(d)};r.a("AdfDhtmlChooseColorBasePeer.prototype.InitDomElement",{G:un.prototype.G});function yn(a){a=a.getAttribute(un.sT);return null!=a&&"No Color"!=a?un.k4(a):null}un.prototype.cR=function(a){a=I.j(a.g(),un.ffa);if(a=q.b.getElementById(a))return a=a.getAttribute(un.g1),un.k4(a)};r.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentLastUsedColor",{cR:un.prototype.cR});
un.prototype.bR=function(a){a=I.j(a.g(),un.oea);a=q.b.getElementById(a).getAttribute(un.g1);return un.k4(a)};r.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentDefaultColor",{bR:un.prototype.bR});un.prototype.eR=function(a){return zn(a).length};r.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentWidth",{eR:un.prototype.eR});function zn(a){var b=I.j(a.g(),un.T5a);a=q.b;b=a.getElementById(b);return a.uP(b)}
un.prototype.aR=function(a){a=zn(a);for(var b=a.length,d=[],e=null,f=0;f<b;f++)e=An(a[f]),d=d.concat(e);return d};r.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentColorData",{aR:un.prototype.aR});un.prototype.pJ=function(a){a=I.j(a.g(),un.mea);if(a=q.b.getElementById(a))return An(a)};r.a("AdfDhtmlChooseColorBasePeer.prototype.GetComponentCustomColorData",{pJ:un.prototype.pJ});
un.prototype.PQ=function(a,b,d){b=I.j(a.g(),un.mea);b=q.b.getElementById(b);var e=d,f=b.childNodes,g=f.length,h=null,l=null,n=q.b,t=null,y=0;n.yc(b);null==e&&(e=[]);for(var z=0;z<g;z++)if(h=f[z],"TD"==n.Na(h))if(l=h.firstChild,t=e[y],y++,C.O(l,"p_AFTransparent"),null!=t){var B=un.PL(t);l.setAttribute(un.sT,B);l.style.backgroundColor=B;null!=B&&(B=B.substring(1));B+=" / "+t.red+","+t.green+","+t.blue;l.setAttribute("alt",B);l.setAttribute("title",B);C.O(h,"p_AFDisabled")}else C.w(l,"p_AFTransparent");
n.Ia(b);xn.qz(a,AdfRichChooseColor.CUSTOM_COLOR_DATA,AdfRichInputColor.CUSTOM_COLOR_DATA,d)};r.a("AdfDhtmlChooseColorBasePeer.prototype.ComponentCustomColorDataChanged",{PQ:un.prototype.PQ});
un.prototype.qwa=function(a,b,d,e){var f=a.g(),g=null,h=null;switch(Bn(f)){case un.nEa:g=un.rN[f];h=Cn(a,d,!1);break;case un.lEa:g=Cn(a,e,!1);h=this.dB(f);break;case un.nga:case un.oEa:g=Cn(a,e,!0);h=Cn(a,d,!1);break;case un.pEa:g=un.rN[f],h=this.dB(f)}if(null==h&&null!=d){if(b=this.pJ(a,b)){e=b.length;f=null;if(null!=b[e-1])f=b.slice(),f.splice(0,1),f[e-1]=d;else for(f=b.slice(),i=0;i<e;i++)if(null==f[i]){f[i]=d;break}xn.qz(a,AdfRichChooseColor.CUSTOM_COLOR_DATA,AdfRichInputColor.CUSTOM_COLOR_DATA,
f);a.setProperty(AdfRichChooseColor.CUSTOM_COLOR_DATA,f)}h=Cn(a,d,!1)}d=h;g!=d&&(b=this.f().g(),null!=g&&null!=g.parentNode&&C.O(g.parentNode,"p_AFSelected"),un.rN[b]=g,null!=d&&C.w(d.parentNode,"p_AFSelected"),un.m4[b]=d,un.GN[b]=un.oEa);xn.qz(a,un.gr,AdfUIValue.VALUE)};r.a("AdfDhtmlChooseColorBasePeer.prototype.ComponentColorValueChanged",{qwa:un.prototype.qwa});un.prototype.Fwa=function(a,b,d){if(b=I.j(a.g(),un.ffa))Dn(b,d),xn.qz(a,un.Lt,wn.Lt)};
r.a("AdfDhtmlChooseColorBasePeer.prototype.ComponentLastUsedColorChanged",{Fwa:un.prototype.Fwa});un.prototype.wwa=function(a,b,d){a=I.j(a.g(),un.oea);Dn(a,d)};r.a("AdfDhtmlChooseColorBasePeer.prototype.ComponentDefaultColorChanged",{wwa:un.prototype.wwa});
un.prototype.M=function(a){var b=a.getSource(),d=a.X(),e=q.b;if(null!=this.jp)a.cancel();else{var f=d;"TD"==q.b.Na(d)&&(f=d.firstChild);En(f)?(d="TD"==e.Na(d)?d.firstChild:d,e=b.g(),f=this.dB(e),un.rN[e]=f,un.m4[e]=d,f=Bn(e),un.GN[e]=f!=un.nga?un.pEa:un.lEa,d=yn(d),b.setProperty(un.gr,d,!1,!0),b.setProperty(un.Lt,d,!1,G.fb),a.cancel(),xn.VC(b,!0)):null!=d.getAttribute(un.mS)&&(d=d.getAttribute(un.mS),d==un.ffa?(d=b.K(un.Lt),b.setProperty(un.gr,d,!1,!0),xn.qz(b,un.gr,AdfUIValue.VALUE),xn.VC(b)):d==
un.oea?(d=b.K(AdfRichChooseColor.DEFAULT_COLOR),b.setProperty(un.gr,d,!1,!0),xn.VC(b)):d==un.e_a&&(d=Fn(b),e=b.K(un.gr),null==this.jp&&(this.jp=new un.Wb(e,d,this)),e=Fn(b),d=q.b.getElementById(e),e=I.j(e,un.f_a),q.b.getElementById(e),d.parentNode.removeChild(d),this.He(b,d,null,un.DK),this.jp.pz(),this.jp.Asb()),a.cancel())}};r.a("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentClick",{M:un.prototype.M});
function Fn(a){return"old"==A.c.H().qa("af|dialog-tr-button-type")?I.j(a.g(),un.DK):"AdfRichPopup"==a.getParent().getTypeName()?a.getParent().getParent().g()+"_"+un.DK:a.g()+"_"+un.DK}function En(a){return a&&a.attributes&&null!=a.getAttribute(un.sT)}
un.prototype.rp=function(a,b){var d,e;switch(b){case w.ab:case w.Ra:if(d=b==w.ab?C.lc(a.parentNode):C.zb(a.parentNode))e=C.jc(a),d=C.Li(d,a.nodeType,e);break;case w.vb:d=C.zb(a);d||null==a.parentNode||(e=C.zb(a.parentNode))&&(d=C.pa(e));d&&C.sa(d,"p_AFDisabled")&&(d=null);break;case w.ub:d=C.lc(a),d||null==a.parentNode||(e=C.lc(a.parentNode))&&(d=C.zm(e))}d&&(a&&a.setAttribute("tabIndex","-1"),d.setAttribute("tabIndex","0"),J.va(d))};
un.prototype.ma=function(a){this.f();var b=q.b,d=a.U(),b=b.na(d);if(!d.ctrlKey)switch(b){case w.ab:case w.Ra:case w.vb:case w.ub:return d=a.X(),null!=this.jp?this.jp.rp(d,b):En(d.firstChild)&&this.rp(d,b),a.cancel(),!1}};r.a("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentKeyDown",{ma:un.prototype.ma});
un.prototype.za=function(a){var b=this.f(),d=q.b,e=a.U(),d=d.na(e);if(!e.ctrlKey)switch(d){case w.jb:case w.gd:e=a.X().firstChild;En(e)&&(C.w(e,"p_AFSelected"),e=yn(e),b.setProperty(un.gr,e,!1,!0),xn.VC(b,!0),a.cancel());break;case w.Ih:xn.VC(b,!0),a.cancel()}};r.a("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentKeyUp",{za:un.prototype.za});
un.prototype.ob=function(a,b,d){un.h.ob.call(this,a,b);d==un.DK&&(b=Fn(a),b=q.b.getElementById(b),a=I.j(a.g(),un.h_a),q.b.getElementById(a).appendChild(b),this.jp=null)};r.a("AdfDhtmlChooseColorBasePeer.prototype.PopupClosed",{ob:un.prototype.ob});un.prototype.eg=function(a){var b=this.f();if(a.ll()==Za.Zm){var d=this.jp.Spb(),e=b.g(),f=this.dB(e);un.rN[e]=f;un.GN[e]=un.nEa;b.setProperty(un.gr,d,!1,!0);b.setProperty(un.Lt,d,!1,G.fb)}a.cancel();this.Jb(this.f(),un.DK);xn.VC(b)};
r.a("AdfDhtmlChooseColorBasePeer.prototype.HandleComponentDialog",{eg:un.prototype.eg});
function Cn(a,b,d){b=un.PL(b);var e=null;a:{for(var e=zn(a),f=e.length,g=0;g<f;g++)for(var h=C.pa(e[g]);h;){if(!d||C.sa(h,"p_AFSelected")){var l=C.pa(h),n=l.getAttribute(un.sT);"No Color"==n&&(n=null);if(n==b){e=l;break a}}h=C.zb(h)}e=null}if(!e)a:{a=I.j(a.g(),un.mea);if(a=q.b.getElementById(a))for(a=C.pa(a);a;){if(!C.sa(a,"p_AFDisabled")&&(d=C.pa(a),d.getAttribute(un.sT)==b)){e=d;break a}a=C.zb(a)}e=null}return e}
function Dn(a,b){var d=q.b.getElementById(a);if(d)if(C.O(d,"p_AFTransparent"),null!=b){var e=un.PL(b);d.style.backgroundColor=e;d.setAttribute(un.g1,e)}else C.w(d,"p_AFTransparent"),d.removeAttribute(un.g1)}function An(a){var b=[];a=a.childNodes;for(var d=a.length,e=null,f=q.b,e=null,g=0,h=0;h<d;h++)e=a[h],"TD"==f.Na(e)&&(e=e.firstChild,En(e)?b[g]=yn(e):b[g]=null,g++);return b}un.prototype.dB=function(a){return un.m4[a]};function Bn(a){var b=un.GN[a];b||(un.GN[a]=b=un.nga);return b}
un.Mub=function(){un.Jga=function(){this.Init()};r.v(un.Jga,r,"AdfDhtmlChooseColorBasePeer._SwatchSelectionHandler");un.Jga.prototype.Init=function(){un.Jga.h.Init.call(this);this.rN={};this.m4={};this.GN={}}};
un.uhb=function(){un.Wb=function(a,b,d){this.Init(a,b,d)};r.v(un.Wb,r,"AdfDhtmlChooseColorBasePeer._CustomPanelHandler");un.Wb.prototype.Init=function(a,b){un.Wb.h.Init.call(this);this.Sh=b;var d=un.PL(a),d=null!=d&&0!=a.alpha?d.substring(1):"3F7B7B",e=un.Wb;this.GM=I.j(b,e.U0a);this.SL=I.j(b,e.ZZa);this.sG=I.j(b,e.R1a);this.Gma=I.j(b,e.Q1a);this.MN=I.j(b,e.N6a);this.Hbb=I.j(b,e.d_a);this.akb=I.j(b,e.o4a);this.n5=I.j(b,e.XBa);this.eX=I.j(b,e.$Da);this.jV=I.j(b,e.MBa);this.$T=I.j(b,e.Sza);this.IPa=
un.Wb.en.tRa(16777215);d=un.Pta(d);this.jg=this.$jb=un.Wb.en.tRa(d);this.vhb();this.B$a()};un.Wb.prototype.vhb=function(){var a=q.b,b=a.getElementById(this.SL);this.a_a=this.oM(a,b,"width");this.$Za=this.oM(a,b,"height");this.xS=Math.floor(this.a_a/2);this.p1=Math.floor(this.$Za/2);b=a.getElementById(this.MN);this.wga=this.oM(a,b,"height");b=a.getElementById(this.sG);this.vga=this.oM(a,b,"height");b=a.getElementById(this.GM);this.Wea=this.oM(a,b,"width");this.H1=this.oM(a,b,"height")};un.Wb.ga=function(){this.U0a=
"hueSatMap";this.ZZa="crossHair";this.R1a="lumMap";this.Q1a="lumImg";this.N6a="thumb";this.XBa="hEdit";this.$Da="rEdit";this.MBa="gEdit";this.Sza="bEdit";this.o4a="cstPrevSwtch";this.d_a="cstCurSwtch";A.c.H()};un.Wb.prototype.oM=function(a,b,d){var e=0;b=a.getComputedStyle(b);a=a.ik(b,d);null!=a&&(e=q.Ma(a));return e};un.Wb.prototype.B$a=function(){var a=this.Sh;customHandlerClass=un.Wb;var b=q.b,d=I.j(a,customHandlerClass.XBa),d=b.getElementById(d),e=this.D(this.EV);b.ba(d,"change",e);d=I.j(a,customHandlerClass.$Da);
d=b.getElementById(d);e=this.D(this.EV);b.ba(d,"change",e);d=I.j(a,customHandlerClass.MBa);d=q.b.getElementById(d);e=this.D(this.EV);b.ba(d,"change",e);a=I.j(a,customHandlerClass.Sza);d=q.b.getElementById(a);e=this.D(this.EV);b.ba(d,"change",e)};un.Wb.prototype.Spb=function(){return un.k4("#"+this.jg.D9())};un.Wb.prototype.EV=function(a){targetElementId=q.b.ca(a).getAttribute("id");targetElementId==this.n5?this.lkb(a):targetElementId==this.eX?this.skb(a):targetElementId==this.jV?this.jkb(a):targetElementId==
this.$T&&this.dkb(a)};un.Wb.prototype.Asb=function(){this.KQa(this.akb,this.$jb)};un.Wb.prototype.zsb=function(){this.KQa(this.Hbb,this.jg)};un.Wb.prototype.KQa=function(a,b){q.b.getElementById(a).style.backgroundColor="#"+b.D9()};un.Wb.prototype.pz=function(a){this.zsb();a!=this.GM&&a!=this.sG&&(this.hob(),this.job());a!=this.sG&&this.iob();a!=this.n5&&this.DQa();a!=this.eX&&a!=this.jV&&a!=this.$T&&(this.HQa(),this.CQa(),this.zQa())};un.Wb.prototype.bTa=function(a){var b=a.X(),d=a.U();targetElementId=
b.getAttribute("id");if(targetElementId==this.GM||targetElementId==this.SL)this.nkb(d),a.cancel();else if(targetElementId==this.sG||targetElementId==this.Gma||targetElementId==this.MN)this.ekb(d),a.cancel()};un.Wb.prototype.hob=function(){var a=this.jg,b=q.b.getElementById(this.SL),d=this.Wea;b.style.top=(1-a.BN)*this.H1-this.p1+"px";A.c.Ka().La()?b.style.left=d-a.ZF*d/360-this.xS+"px":b.style.left=a.ZF*d/360-this.xS+"px"};un.Wb.prototype.rp=function(a,b){switch(b){case w.ab:case w.Ra:case w.vb:case w.ub:var d=
a.getAttribute("id"),e=q.b.getElementById(d),f=b==w.vb?1:b==w.ub?-1:0,g=b==w.Ra?1:b==w.ab?-1:0;if(d==this.GM||d==this.SL)this.Ljb(f,g),J.va(e);else if(d==this.sG||d==this.Gma||d==this.MN)b!=w.ab&&b!=w.Ra||this.Kjb(g),J.va(e)}};un.Wb.prototype.iob=function(){var a=this.jg,b=q.b.getElementById(this.Gma);this.IPa.ZZ(a.ZF,a.BN,.5);b.style.backgroundColor="#"+this.IPa.D9()};un.Wb.prototype.job=function(){var a=this.jg;q.b.getElementById(this.MN).style.top=(1-a.tW)*this.vga-this.wga/2+"px"};un.Wb.prototype.DQa=
function(){q.b.getElementById(this.n5).value=this.jg.D9()};un.Wb.prototype.HQa=function(){q.b.getElementById(this.eX).value=this.jg.gX};un.Wb.prototype.CQa=function(){q.b.getElementById(this.jV).value=this.jg.wV};un.Wb.prototype.zQa=function(){q.b.getElementById(this.$T).value=this.jg.bU};un.Wb.prototype.lkb=function(a){var b=q.b.getElementById(this.n5),d=un.Pta(b.value);null==d?(q.b.Ea(a),this.Omb(b.value),J.va(b),this.DQa()):(this.jg.cVa(d),this.pz())};un.Wb.prototype.Noa=function(a){var b=A.c.H();
a=TrFastMessageFormatUtils.format(b.Z("af_chooseColor.MSG_RGB_INVALID"),a);alert(a)};un.Wb.prototype.Omb=function(a){var b=A.c.H();a=TrFastMessageFormatUtils.format(b.Z("af_chooseColor.MSG_HEX_INVALID"),a);alert(a)};un.Wb.prototype.skb=function(a){var b=q.b.getElementById(this.eX),d=un.C$(b.value);null==d?(q.b.Ea(a),this.Noa(b.value),J.va(b),this.HQa()):(this.jg.Xrb(d),this.pz(this.eX))};un.Wb.prototype.jkb=function(a){var b=q.b.getElementById(this.jV),d=un.C$(b.value);null==d?(q.b.Ea(a),this.Noa(b.value),
J.va(b),this.CQa()):(this.jg.Qrb(d),this.pz(this.jV))};un.Wb.prototype.dkb=function(a){var b=q.b.getElementById(this.$T),d=un.C$(b.value);null==d?(q.b.Ea(a),this.Noa(b.value),J.va(b),this.zQa()):(this.jg.Orb(d),this.pz(this.$T))};un.Wb.prototype.nkb=function(a){this.jNa(a);A.c.Md(a,this.D(this.mkb));q.oa().Ea(a)};un.Wb.prototype.ekb=function(a){this.iNa(a);A.c.Md(a,this.D(this.fkb));q.oa().Ea(a)};un.Wb.prototype.jNa=function(a){var b=q.oa(),d=b.Xb(a);a=q.b.getElementById(this.GM);var e=b.jc(a),b=
d.x-e.x,d=d.y-e.y,f=this.Wea,e=this.H1,b=Math.min(b,f),b=Math.max(0,b),d=Math.min(d,this.H1),d=Math.max(0,d),g=q.b.getElementById(this.SL),h=d-this.p1;0==d&&h++;g.style.top=h+"px";h=b-this.xS;0==b&&h++;g.style.left=h+"px";b=Math.round(360*b/f);360==b&&(b=0);this.jg.ZZ(b,1-d/e,this.jg.tW);this.pz(a.id)};un.Wb.prototype.Ljb=function(a,b){var d=q.b.getElementById(this.GM),e=q.b.getElementById(this.SL),f=e.offsetLeft+this.xS+a,g=e.offsetTop+this.p1+b,h=this.Wea,l=this.H1,f=Math.min(f,h),f=Math.max(0,
f),g=Math.min(g,l),g=Math.max(0,g);e.style.top=g-this.p1+"px";e.style.left=f-this.xS+"px";e=Math.round(360*f/h);360==e&&(e=0);this.jg.ZZ(e,1-g/l,this.jg.tW);this.pz(d.id)};un.Wb.prototype.iNa=function(a){var b=q.oa(),d=b.Xb(a);a=q.b.getElementById(this.sG);b=b.jc(a);b=d.y-b.y;d=this.vga;b=Math.min(b,d);b=Math.max(0,b);q.b.getElementById(this.MN).style.top=b-Math.floor(this.wga/2)+"px";this.jg.ZZ(this.jg.ZF,this.jg.BN,1-b/d);this.pz(a.id)};un.Wb.prototype.Kjb=function(a){var b=q.b.getElementById(this.sG),
d=q.b.getElementById(this.MN),e=this.vga,f=this.wga,g=d.offsetTop+Math.floor(f/2)+a,g=Math.min(g,e),g=Math.max(0,g);a=Math.min(d.offsetTop+a,e-Math.floor(f/2));a=Math.max(-Math.floor(f/2),a);d.style.top=a+"px";this.jg.ZZ(this.jg.ZF,this.jg.BN,1-g/e);this.pz(b.id)};un.Wb.prototype.fkb=function(a){this.iNa(a)};un.Wb.prototype.mkb=function(a){this.jNa(a)};un.Wb.en=function(){};un.Wb.en.tRa=function(a){u.Da(a,"createInstanceFromRgbTotal: input must be number.");var b=new un.Wb.en;b.cVa(a);return b};un.Wb.en.prototype.cVa=
function(a){var b=Math.floor(a/256);this.gX=Math.floor(b/256);this.wV=b%256;this.bU=a%256;this.D6()};un.Wb.en.prototype.ZZ=function(a,b,d){this.ZF=a;this.BN=b;this.tW=d;this.Okb()};un.Wb.en.prototype.Xrb=function(a){this.gX=a;this.D6()};un.Wb.en.prototype.Qrb=function(a){this.wV=a;this.D6()};un.Wb.en.prototype.Orb=function(a){this.bU=a;this.D6()};un.Wb.en.prototype.D9=function(){return this.mka(this.gX)+this.mka(this.wV)+this.mka(this.bU)};un.Wb.en.prototype.mka=function(a){return"0123456789ABCDEF".charAt(Math.floor(a/
16))+"0123456789ABCDEF".charAt(a%16)};un.Wb.en.prototype.D6=function(){var a=this.gX/255,b=this.wV/255,d=this.bU/255,e=Math.min(Math.min(a,b),d),f=Math.max(Math.max(a,b),d),g=f-e,h=null,l=null,n=(f+e)/2;0!=f?(l=0==g?0:.5>=n?g/(f+e):g/(2-f-e),0==g?h=0:(h=60*(a==f?(b-d)/g:b==f?2+(d-a)/g:4+(a-b)/g),0>h&&(h+=360))):h=l=0;this.ZF=h;this.BN=l;this.tW=n};un.Wb.en.prototype.Okb=function(){var a=this.ZF,b=this.BN,d=this.tW,e=null,f=null,g=null;if(0==b)e=f=g=d;else{var h=null,l=null,n=null,l=null,l=.5<=d?(1-
d)*b:d*b,h=l+d,l=d-l,b=Math.floor(a/60),d=h-l;switch(b){case 0:case 2:case 4:n=(a/60-b)*d+l;break;case 1:case 3:case 5:n=(b+1-a/60)*d+l}switch(b){case 0:e=h;f=n;g=l;break;case 1:e=n;f=h;g=l;break;case 2:e=l;f=h;g=n;break;case 3:e=l;f=n;g=h;break;case 4:e=n;f=l;g=h;break;case 5:e=h,f=l,g=n}}this.gX=Math.round(255*e);this.wV=Math.round(255*f);this.bU=Math.round(255*g)}};