var Mw=I.ea(Ew,"AdfDhtmlSelectManyShuttleBasePeer");m("AdfDhtmlSelectManyShuttleBasePeer",Mw);
Mw.C=function(){I.ra(this,D.wb,D.pD,D.Oc,D.Bc);I.hc(this,AdfUIEditableValue.SUBMITTED_VALUE,AdfUISelectMany.rt);r.bb(AdfRichSelectManyShuttle);I.sb(this,AdfRichSelectManyShuttle.LABEL);I.sb(this,AdfRichSelectOrderShuttle.SELECTION);this.Bt={};this.$q="_adfMove";this.Bt[this.$q]="move";this.Zq="_adfMoveall";this.Bt[this.Zq]="moveall";this.br="_adfRemove";this.Bt[this.br]="remove";this.ar="_adfRemoveall";this.Bt[this.ar]="removeall";this.TE="_adfTop";this.Bt[this.TE]="move-top";this.UE="_adfUp";this.Bt[this.UE]=
"move-up";this.AE="_adfDown";this.Bt[this.AE]="move-down";this.rE="_adfBottom";this.Bt[this.rE]="move-bottom";this.Lj="p_AFDisabled";this.QE="tabIndex";this.VBa="href";this.C3a="onclick";this.Z4a="return false;";this.L2a="move";this.J2a="moveall";this.I4a="remove";this.E4a="removeall";this.d7a="move-top";this.N7a="move-up";this.P_a="move-down";this.LXa="move-bottom";this.hfa="_adfLazy";this.w5a="_adfSelectValues";this.kfa="ldDesc";this.Sga="trDesc";this.Q1="leadUl";this.G2="trailUl";this.e7a="trailItems";
this.i2="reorderDiv";this.vfa="moveDiv";this.Lf="_adfLeadULId";this.me="_adfTrailULId";this.nFa="_adfTrailItems";this.TK="_adfReorderDivId";this.QK="_adfMoveDivId"};m("AdfDhtmlSelectManyShuttleBasePeer.InitSubclass",Mw.C);
Mw.prototype.fd=function(a,b){var d=a.g(),e=q.b,f=I.j(d,Mw.e7a);b.setAttribute(Mw.nFa,f);Mw.h.fd.call(this,a,b);var f=I.j(d,Mw.Q1),g=I.j(d,Mw.G2),h=I.j(d,Mw.i2),d=I.j(d,Mw.vfa);b.setAttribute(Mw.Lf,f);b.setAttribute(Mw.me,g);b.setAttribute(Mw.TK,h);b.setAttribute(Mw.QK,d);u.u(b);b.getAttribute(Mw.hfa)||Nw(this);1!=a.getReadOnly()&&b.setAttribute(Mw.w5a,Ow(this,b));e.S()==q.ia&&(d=this.xg(null,Mw.Lf),f=this.xg(null,Mw.me),d&&e.ae(d),f&&e.ae(f));if(e.S()==q.ia||e.S()==q.ed)Pw(this,Mw.Lf),Pw(this,Mw.me)};
r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.LazyInitialize",{fd:Mw.prototype.fd});Mw.prototype.fh=function(){var a=this.i(),b=this.f(),a=O.da(b,a),a=J.Ee(a);null!=a&&J.va(a)};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.Focus",{fh:Mw.prototype.fh});Mw.prototype.Ta=function(a){var b=a.X();Mw.h.Ta.call(this,a);"LI"==b.tagName&&(a=b.getElementsByTagName("input")[0],"none"!=q.b.getComputedStyle(a).display&&(b=Qw(this.i(),a),this.Or(b,a,null),a.focus()))};
r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.HandleComponentFocus",{Ta:Mw.prototype.Ta});Mw.prototype.BV=function(a,b){var d=a.X();if("LABEL"==d.tagName||"LI"==d.tagName)d=d.getElementsByTagName("input")[0];if(d&&"INPUT"==d.tagName&&!d.disabled){var e=this.i(),e=Qw(e,d),f=a.U();this.Or(e,d,f.shiftKey);b||a.cancel()}};
Mw.prototype.ma=function(a){var b=a.X();if("INPUT"==b.tagName||"LI"==b.tagName){var d=a.U(),e=q.b.na(d),f=this.i(),g=Qw(f,b),h;-1!=g.id.indexOf(Mw.Q1)?h=Mw.Lf:-1!=g.id.indexOf(Mw.G2)&&(h=Mw.me);switch(e){case w.ab:case w.Ra:var l=J.Ee(g);"LI"==l.tagName&&(l=l.getElementsByTagName("input")[0]);(h=e==w.ab?this.FD(null,f,l,!0,h):this.Go(null,f,l,h))&&h!=l&&(this.Or(g,h,d.shiftKey),"none"==q.b.getComputedStyle(h).display?h.parentNode.parentNode.focus():h.focus(),d.shiftKey&&Rw(this,b,a));a.cancel();break;
case w.gd:"LI"==b.tagName&&(Rw(this,b,a),a.cancel())}}else if("A"==b.tagName)switch(d=a.U(),e=q.b.na(d),f=this.i(),g=Sw(f,b),e){case w.ab:case w.Ra:case w.ub:case w.vb:var l=J.Ee(g),n,t=w.ab,y=w.Ra,z=!1;1<b.parentNode.parentNode.parentNode.getElementsByTagName("TD").length&&-1==g.id.indexOf(Mw.i2)&&(A.c.Ka().La()?(t=w.vb,y=w.ub):(t=w.ub,y=w.vb));if(e==t)-1!=g.id.indexOf(Mw.i2)?h=Mw.TK:-1!=g.id.indexOf(Mw.vfa)&&(h=Mw.QK),b=f,e=h,u.J(e),h=this.aB(l),null==h?n=l:(f=h.id,n=h,e==Mw.TK?this.ff(f,"move-top")||
this.ff(f,"move-up")?(b=[b.getAttribute(Mw.TE)],n=Tw(this,b,0,h)):this.ff(f,"move-down")?(b=[b.getAttribute(Mw.UE),b.getAttribute(Mw.TE)],n=Tw(this,b,0,h)):this.ff(f,"move-bottom")&&(b=[b.getAttribute(Mw.AE),b.getAttribute(Mw.UE),b.getAttribute(Mw.TE)],n=Tw(this,b,0,h)):e==Mw.QK&&(this.ff(f,"::move")||this.ff(f,"::moveall")?(b=[b.getAttribute(Mw.$q)],n=Tw(this,b,0,h)):this.ff(f,"::remove")?(b=[b.getAttribute(Mw.Zq),b.getAttribute(Mw.$q)],n=Tw(this,b,0,h)):this.ff(f,"::removeall")&&(b=[b.getAttribute(Mw.br),
b.getAttribute(Mw.Zq),b.getAttribute(Mw.$q)],n=Tw(this,b,0,h)))),z=!0;else if(e==y){-1!=g.id.indexOf(Mw.i2)?h=Mw.TK:-1!=g.id.indexOf(Mw.vfa)&&(h=Mw.QK);b=f;e=h;u.J(e);h=this.aB(l);if(null==h)n=l;else if(f=h.id,n=h,e==Mw.TK)if(this.ff(f,"move-top"))b=[b.getAttribute(Mw.UE),b.getAttribute(Mw.AE),b.getAttribute(Mw.rE)],n=Tw(this,b,0,h);else if(this.ff(f,"move-up"))b=[b.getAttribute(Mw.AE),b.getAttribute(Mw.rE)],n=Tw(this,b,0,h);else{if(this.ff(f,"move-down")||this.ff(f,"move-bottom"))b=[b.getAttribute(Mw.rE)],
n=Tw(this,b,0,h)}else if(e==Mw.QK)if(this.ff(f,"::move"))b=[b.getAttribute(Mw.Zq),b.getAttribute(Mw.br),b.getAttribute(Mw.ar)],n=Tw(this,b,0,h);else if(this.ff(f,"::moveall"))b=[b.getAttribute(Mw.br),b.getAttribute(Mw.ar)],n=Tw(this,b,0,h);else if(this.ff(f,"::remove")||this.ff(f,"::removeall"))b=[b.getAttribute(Mw.ar)],n=Tw(this,b,0,h);z=!0}z&&(n&&n!=l&&(this.Or(g,n,d.shiftKey),n.focus()),a.cancel());break;case w.gd:if("A"==b.tagName){d=q.b;if(l=Uw(this,b))-1==l.toLowerCase().indexOf("-")?Vw(this,
l):(Ww(this,l),Xw(this)),d.preventDefault(a.U()),(g=J.Ee(g))&&J.va(g);a.cancel()}}};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.HandleComponentKeyDown",{ma:Mw.prototype.ma});
Mw.prototype.M=function(a){Mw.h.M.call(this,a);var b=this.f();if(!b.getDisabled()&&a.ec()){var d=a.X(),e=q.b,f=Uw(this,d);if(f)-1==f.toLowerCase().indexOf("-")?Vw(this,f):(Ww(this,f),Xw(this)),e.preventDefault(a.U()),f=this.i(),f=Sw(f,d),(a=J.Ee(f))&&J.va(a);else if(f=this.i(),f=Qw(f,d),C.Nc(f,d)){if(d)if(b=a.U(),e.S()!=q.ed){if("LABEL"==d.nodeName){a=b.pointerType;""!=a&&void 0!=a&&(b=this.f(),b.setProperty(AdfRichSelectManyShuttle.GR,a));return}}else if(!q.b.sl(b)&&!b.shiftKey&&"LABEL"==d.nodeName)return;
Rw(this,d,a);(a=J.Ee(f))&&J.va(a)}else this.focus(b)}};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.HandleComponentClick",{M:Mw.prototype.M});Mw.prototype.Jq=function(a){if(!this.f().getDisabled()&&a.ec()){var b=a.X();checkbox=this.Vv(b,a);if(this.uR(checkbox)&&!checkbox.disabled&&!Yw(this)){a=null;var d=this.i(),b=Qw(d,b).id;"none"==q.b.getComputedStyle(checkbox).display&&(checkbox.checked=!0);-1!=b.indexOf(Mw.Q1)?a="move":-1!=b.indexOf(Mw.G2)&&(a="remove");null!=a&&Vw(this,a)}}};
r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.HandleComponentDblClick",{Jq:Mw.prototype.Jq});Mw.prototype.cc=function(a,b){Mw.h.cc.call(this,a,b);Zw(this,this.i())};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.Validate",{cc:Mw.prototype.cc});
Mw.prototype.Ba=function(a,b,d){u.u(b);u.og(d);if(!Yw(this)){boxes=this.kd(a,null,Mw.me);var e=this.xg(null,Mw.Lf);a=this.xg(null,Mw.me);for(var f=a.scrollTop,g=0;g<boxes.length;g++){var h=$w(this,Mw.me,boxes[g].value);e.appendChild(h)}if(d!=E.wD)for(e=0;e<d.length;e++)(h=$w(this,Mw.Lf,d[e]))&&a.appendChild(h);a.scrollTop=f;u.u(b);b.getAttribute(Mw.hfa)||Nw(this);Zw(this,b);this.Or(this.xg(null,Mw.Lf),ax(this,Mw.Lf),!1);this.Or(this.xg(null,Mw.me),ax(this,Mw.me),!1)}bx(this,!1);b=q.b;if(b.S()==q.ia||
b.S()==q.ed)Pw(this,Mw.Lf),Pw(this,Mw.me)};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.SetDisplayValue",{Ba:Mw.prototype.Ba});Mw.prototype.Wa=function(a,b){u.u(b);var d=a.getReadOnly(),e=a.getDisabled();if(d||e)return d=O.da(a,b).getAttribute(Ew.aj),eval(d);d=this.U4();e=[];if(d)return e=d.value.split(";"),""!=e?e:null};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetSubmittedValue",{Wa:Mw.prototype.Wa});
Mw.prototype.uk=function(a,b){u.u(b);var d=[],e=this.kd(a,null,Mw.Lf),f;for(f=0;f<e.length;f++)d[f]=new kb,d[f].setValue(e[f].value),d[f].setLabel(O.Fo(e[f]).textContent),d[f].VZ(e[f].disabled);for(var e=this.kd(a,null,Mw.me),g=0;g<e.length;g++,f++)d[f]=new kb,d[f].setValue(e[g].value),d[f].setLabel(O.Fo(e[g]).textContent),d[f].VZ(e[g].disabled);return d};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetComponentSelectItems",{uk:Mw.prototype.uk});
Mw.prototype.kd=function(a,b,d){u.Au(b);u.J(d);a=[];var e=[];if(b=this.xg(b,d))e=b.childNodes;for(i=0;i<e.length;i++)1==e[i].nodeType&&(b=e[i].getElementsByTagName("input")[0])&&a.push(b);return a};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetCheckboxes",{kd:Mw.prototype.kd});Mw.prototype.Oa=function(){return gi.jd()};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetInlineEditor",{Oa:Mw.prototype.Oa});Mw.prototype.Xd=function(a,b){return this.xg(b,Mw.me)};
r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetNoteWindowAlignmentNode",{Xd:Mw.prototype.Xd});Mw.prototype.Vv=function(a,b){var d=Qw(this.i(),a);return C.Nc(d,a)&&0<d.getElementsByTagName("li").length?Mw.h.Vv.call(this,a,b):a};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.GetCheckboxByEventTarget",{Vv:Mw.prototype.Vv});
function Rw(a,b,d){b=a.Vv(b,d);if(a.uR(b)&&!b.disabled){var e,f,g=q.b,h=a.i(),l;Yw(a)||(l=h.getAttribute(Mw.Lf),l=g.getElementById(l));h=h.getAttribute(Mw.me);g=g.getElementById(h);l&&C.Nc(l,b)?f=Mw.kfa:C.Nc(g,b)&&(f=Mw.Sga);f&&(e=cx(a,f));e&&(f=b.parentNode.title,null==f&&(f=""),e.value=f);e=Yw(a);var n;f=d.U();l=q.b.getComputedStyle(b);var t;if(q.b.S()==q.ed)d.Event.jrb==d.Event.Vsb&&(t="mouse"),d.Event.jrb==d.Event.Wsb&&(t="touch");else if(t=f.pointerType,""==t||void 0==t)d=a.f(),t=d.K(AdfRichSelectManyShuttle.GR),
d.setProperty(AdfRichSelectManyShuttle.GR,"");f.shiftKey?b.checked=!0:(d=q.b.rm()[q.zl],"none"!=l.display||q.b.sl(f)||d&&d!=q.Al&&"mouse"!=t||(t=Qw(a.i(),b),dx(a,t),b.checked=!0));a.xi(b);if(e)Xw(a),n=ex(a,Mw.me);else{var y,z,B;t=a.i();b=Qw(t,b);e=a.RF(b);d=e[0];e=e[1];-1!=b.id.indexOf(Mw.Q1)?(n=t.getAttribute(Mw.$q),z=Mw.$q,y=t.getAttribute(Mw.Zq),B=Mw.Zq):-1!=b.id.indexOf(Mw.G2)&&(n=t.getAttribute(Mw.br),z=Mw.br,y=t.getAttribute(Mw.ar),B=Mw.ar);fx(a,!(0<e),y,B,!0,!0);fx(a,!(0<d),n,z,!0,!0);a.f().getReorderOnly&&
Xw(a);n=ex(a,Mw.Lf);y=ex(a,Mw.me);n=n.concat(y)}d=a.f();d.setProperty(AdfRichSelectManyShuttle.SELECTION,n)}}
Mw.prototype.Kwa=function(a,b,d){var e=Yw(this),f=q.b;b=this.i();var g;e||(g=b.getAttribute(Mw.Lf),g=f.getElementById(g),dx(this,g),g=this.kd(null,null,Mw.Lf));b=b.getAttribute(Mw.me);f=f.getElementById(b);dx(this,f);f=this.kd(null,null,Mw.me);f=g?g.concat(f):f;for(i=0;i<d.length;i++){g=!1;for(j=0;j<f.length;j++)if(f[j].value==d[i]){g=!0;f[j].disabled||f[j].checked?(d.splice(i,1),i--):(f[j].checked=!0,this.xi(f[j]));break}g||(d.splice(i,1),i--)}e||(d=this.i(),e=q.b,f=d.getAttribute(Mw.Lf),g=e.getElementById(f),
f=d.getAttribute(Mw.me),f=e.getElementById(f),g=this.RF(g),e=g[0],g=g[1],f=this.RF(f),b=f[0],fx(this,!(0<f[1]),d.getAttribute(Mw.ar),Mw.ar,!0,!0),fx(this,!(0<b),d.getAttribute(Mw.br),Mw.br,!0,!0),fx(this,!(0<g),d.getAttribute(Mw.Zq),Mw.Zq,!0,!0),fx(this,!(0<e),d.getAttribute(Mw.$q),Mw.$q,!0,!0));a.getReorderOnly&&Xw(this)};r.a("AdfDhtmlSelectManyShuttleBasePeer.prototype.ComponentSelectionChanged",{Kwa:Mw.prototype.Kwa});
function Xw(a){var b=a.i(),d=a.xg(b,Mw.me),e=a.RF(d)[0],f=!1,g=!1;if(0<e){var h=gx(d),l=d.getElementsByTagName("li").length;if(1==e&&0==h[0])f=!0;else if(1<e&&0==h[0]){for(d=0;h[d]==d;)d++;d==e&&(f=!0)}if(1==e&&h[0]==l-1)g=!0;else if(1<e&&h[h.length-1]==l-1){d=l-1;for(l=1;h[h.length-l]==d;)d--,l++;l>e&&(g=!0)}}fx(a,g||!(0<e),b.getAttribute(Mw.rE),Mw.rE,!1,!1);fx(a,g||!(0<e),b.getAttribute(Mw.AE),Mw.AE,!1,!1);fx(a,f||!(0<e),b.getAttribute(Mw.UE),Mw.UE,!1,!1);fx(a,f||!(0<e),b.getAttribute(Mw.TE),Mw.TE,
!1,!1)}
function fx(a,b,d,e,f,g){u.dc(b);if(d){d=q.b.getElementById(d);var h=C.pa(d);C.qd(b,d,Mw.Lj);d.setAttribute("aria-disabled",b.toString());C.qd(b,d.parentNode,I.lb);h&&(e=a.f().getReorderOnly?"af|selectOrderShuttle::"+Mw.Bt[e]:"af|selectManyShuttle::"+Mw.Bt[e],f&&(f=a.f().getLayout(),e="vertical"==f?e+"-vertical":e+"-horizontal"),b&&(e+="-disabled"),e+="-icon",g&&A.c.Ka().La()&&(e+=":rtl"),C.mz(h,e));b?(d.setAttribute(Mw.QE,"-1"),d.removeAttribute(Mw.VBa,0)):(b=a.i(),b=Sw(b,d),null!=b&&a.Or(b,d,!1),
d.setAttribute(Mw.VBa,"#"),d.setAttribute(Mw.C3a,Mw.Z4a))}}k=Mw.prototype;k.RF=function(a,b){u.dc(b);var d=0,e=a.getElementsByTagName("input");for(i=0;i<e.length;i++)e[i]&&!e[i].disabled&&(b?e[i].checked&&d++:d++);return d};k.RF=function(a){var b=0,d=0;a=a.getElementsByTagName("input");for(i=0;i<a.length;i++)a[i]&&!a[i].disabled&&(a[i].checked&&b++,d++);return[b,d]};function dx(a,b){var d=b.getElementsByTagName("input");for(i=0;i<d.length;i++)d[i]&&!d[i].disabled&&(d[i].checked=!1,a.xi(d[i]))}
function hx(a,b){var d=cx(a,b);d&&(d.value="")}function cx(a,b){var d=a.f().g(),d=I.j(d,b);return q.b.getElementById(d)}k.xg=function(a,b){u.Au(a);u.J(b);var d,e=q.b;d=null==a?this.i().getAttribute(b):a.getAttribute(b);d=e.getElementById(d);var f;if(d&&d.getAttribute("_adfFieldset"))for(d=d.childNodes,i=0;i<d.length;i++)1==d[i].nodeType&&"FIELDSET"==e.Na(d[i])&&(f=d[i]);else f=d;return f};
k.Or=function(a,b,d){if(a){b&&"none"==q.b.getComputedStyle(b).display&&(b=b.parentNode.parentNode);var e=J.Ee(a);if(e!=b){if(d&&"INPUT"==q.b.Na(b)|"LI"==q.b.Na(b)){d=this.i();var f=this.f(),g=e,h=Mw.Lf;a.id!=d.getAttribute(h)&&(h=Mw.me);e||(g=ax(this,h));a=g;var l=b;"LI"==q.b.Na(g)&&(a=g.getElementsByTagName("input")[0]);"LI"==q.b.Na(b)&&(l=b.getElementsByTagName("input")[0]);this.kK(f,d,a,l,h)}e&&e.setAttribute(Mw.QE,"-1");b.setAttribute(Mw.QE,"0")}}};
function Ow(a,b){u.u(b);var d=[],e=a.kd(null,b,Mw.Lf),f=a.kd(null,b,Mw.me);if(e)for(var g=0;g<e.length;g++)e[g]&&d.push(e[g].value);if(f)for(g=0;g<f.length;g++)f[g]&&d.push(f[g].value);return d.join(";")}function $w(a,b,d){u.J(b);var e=[];b=a.xg(null,b);a=null;b&&(e=b.childNodes);for(i=0;i<e.length;i++)if(1==e[i].nodeType&&(b=e[i].getElementsByTagName("input")[0],b.value&&b.value==d)){a=e[i];break}return a}
function Vw(a,b){var d=-1!=b.indexOf("all"),e=null,f=null,g=Mw.me;if("move"==b||"moveall"==b)e=a.xg(null,Mw.Lf),f=a.xg(null,g);if("remove"==b||"removeall"==b)g=Mw.Lf,e=a.xg(null,Mw.me),f=a.xg(null,g);a.GW(e,f,d);a.f().setProperty(AdfRichSelectManyShuttle.SELECTION,ex(a,g))}
k.GW=function(a,b,d){u.dc(d);a=a.getElementsByTagName("li");for(i=0;i<a.length;i++){var e=a[i].getElementsByTagName("input")[0],f=!1;1==d?e.disabled||(f=!0,e.checked=!1,this.xi(e)):!e.disabled&&e.checked&&(f=!0,e.checked=!1,this.xi(e));1==f&&(e.parentElement.parentElement.setAttribute(Mw.QE,"-1"),b.appendChild(a[i]),--i)}b.scrollTop=b.scrollHeight;bx(this,!0);hx(this,Mw.kfa);hx(this,Mw.Sga)};
function Pw(a,b){var d=a.xg(null,b);if(d)for(var d=d.getElementsByTagName("li"),e=d.length,f=0;f<e;f++)d[f].setAttribute("aria-setsize",e),d[f].setAttribute("aria-posinset",f+1)}function ax(a,b){var d=a.kd(null,null,b);for(i=0;i<d.length;i++)if(d[i]&&!d[i].disabled)return d[i]}function bx(a,b){var d=[],e=a.kd(null,null,Mw.me);for(i=0;i<e.length;i++)e[i]&&d.push(e[i].value);if(e=a.U4())e.value=d.join(";"),b&&a.cc(a.f(),d)}k.U4=function(){return q.b.getElementsByName(this.i().getAttribute(Mw.nFa))[0]};
function gx(a){var b=[];a=a.getElementsByTagName("input");for(i=0;i<a.length;i++){var d=a[i];!d.disabled&&d.checked&&b.push(i)}return b}function ex(a,b){var d=[],e=a.kd(null,null,b);for(i=0;i<e.length;i++)e[i].checked&&!e[i].disabled&&d.push(e[i].value);return d}
function Ww(a,b){u.J(b);var d=a.xg(null,Mw.me),e=gx(d),f=d.getElementsByTagName("li"),g=null;if("move-top"==b){for(j=0;j<e.length;j++){var h=f[e[j]];d.insertBefore(h,f[j])}d.scrollTop=0}else if("move-up"==b){if(1<e.length&&0==e[0])for(h=0;e[0]==h;)E.Ig(e,e[0]),h++;for(j=0;j<e.length;j++){var l=e[j];0<l&&(h=f[l],null==g&&(g=h),d.insertBefore(h,f[l-1]))}C.U$(g)}else if("move-down"==b){if(1<e.length&&(h=f.length,e[e.length-1]==h-1))for(--h;e[e.length-1]==h;)E.Ig(e,e[e.length-1]),h--;for(j=e.length-1;0<=
j;j--)l=e[j],l<f.length&&(h=f[l],l+=2,null==g&&(g=h),l!=f.length?d.insertBefore(h,f[l]):d.appendChild(h));C.U$(g)}else if("move-bottom"==b){for(j=0;j<e.length;j++)h=f[e[j]-j],d.appendChild(h);d.scrollTop=d.scrollHeight}bx(a,!0);hx(a,Mw.kfa);hx(a,Mw.Sga)}function Yw(a){a=a.f();return a.getReorderOnly&&a.getReorderOnly()}
function Zw(a,b){var d=a.f();if(!d.getDisabled()&&!d.getReadOnly()){var e=a.xg(b,Mw.Lf);if(e){var f=a.xg(b,Mw.me),e=a.RF(e),f=a.RF(f),g=e[0],h=f[0],e=0==e[1];fx(a,0==f[1],b.getAttribute(Mw.ar),Mw.ar,!0,!0);fx(a,!(0<h),b.getAttribute(Mw.br),Mw.br,!0,!0);fx(a,e,b.getAttribute(Mw.Zq),Mw.Zq,!0,!0);fx(a,!(0<g),b.getAttribute(Mw.$q),Mw.$q,!0,!0)}d.getReorderOnly&&Xw(a)}}
function Uw(a,b){var d=a.aB(b);if(d){d=d.id;if(a.ff(d,"::move"))return"move";if(a.ff(d,"::moveall"))return"moveall";if(a.ff(d,"::remove"))return"remove";if(a.ff(d,"::removeall"))return"removeall";if(a.ff(d,"move-top"))return"move-top";if(a.ff(d,"move-up"))return"move-up";if(a.ff(d,"move-down"))return"move-down";if(a.ff(d,"move-bottom"))return"move-bottom"}}function Qw(a,b){u.u(a);var d=q.b,e=d.getElementById(a.getAttribute(Mw.Lf));C.Nc(e,b)||(e=d.getElementById(a.getAttribute(Mw.me)));return e}
function Sw(a,b){u.u(a);var d=q.b,e=d.getElementById(a.getAttribute(Mw.TK));C.Nc(e,b)||(e=d.getElementById(a.getAttribute(Mw.QK)));return e}function Tw(a,b,d,e){var f=b[d],g=q.b.getElementById(f);return g&&-1==g.className.indexOf(Mw.Lj)?q.b.getElementById(f):d<b.length-1?Tw(a,b,d+1):e}k.aB=function(a){var b=q.b,d=a.getElementsByTagName("A");if(1==d.length)return d[0];for(;a;){if("INPUT"==b.Na(a)||"LABEL"==b.Na(a))return null;if("A"==b.Na(a))return a;a=a.parentNode}};
k.ff=function(a,b){u.J(a);u.J(b);var d=a.length-b.length;return 0>d?!1:a.lastIndexOf(b,d)==d};function Nw(a){var b=a.f().g(),d=I.j(b,Mw.L2a),e=I.j(b,Mw.J2a),f=I.j(b,Mw.I4a),g=I.j(b,Mw.E4a),h=I.j(b,Mw.d7a),l=I.j(b,Mw.N7a),n=I.j(b,Mw.P_a),b=I.j(b,Mw.LXa);a=a.i();a.setAttribute(Mw.$q,d);a.setAttribute(Mw.Zq,e);a.setAttribute(Mw.br,f);a.setAttribute(Mw.ar,g);a.setAttribute(Mw.TE,h);a.setAttribute(Mw.UE,l);a.setAttribute(Mw.AE,n);a.setAttribute(Mw.rE,b);a.setAttribute(Mw.hfa,"true")};