function Ki(a){this.Init(a)}m("AdfToolbarPanel",Ki);r.v(Ki);Ki.ga=function(){this.a7a="tbr";this.$6a="tbrph"};m("AdfToolbarPanel.InitClass",Ki.ga);Ki.prototype.Init=function(a){Ki.h.Init.call(this);this.nb=a};r.a("AdfToolbarPanel.prototype.Init",{Init:Ki.prototype.Init});Ki.prototype.lH=function(a,b){var d=Ki.c5(a);d&&(b.appendChild(d),this.TMa=this.D(this.fjb),q.b.ba(d,"keydown",this.TMa))};r.a("AdfToolbarPanel.prototype.attach",{lH:Ki.prototype.lH});
Ki.prototype.detach=function(a){var b=document.getElementById(I.la(a.g(),Ki.$6a));b&&(a=Ki.c5(a),b.appendChild(a),q.b.xa(a,"keydown",this.TMa))};r.a("AdfToolbarPanel.prototype.detach",{detach:Ki.prototype.detach});Ki.prototype.PH=function(a,b){var d=this.nb.f(),e=a.na(),d=Ki.c5(d);e==w.tf&&d&&a.X()==b&&!a.U().shiftKey&&(e=J.Ee(d))&&(a.cancel(),J.va(e))};r.a("AdfToolbarPanel.prototype.handleKeyDown",{PH:Ki.prototype.PH});Ki.c5=function(a){a=a.g();return document.getElementById(I.la(a,Ki.a7a))};
Ki.prototype.fjb=function(a){var b=this.nb,d=b.f(),e=q.b.na(a),f=Ki.c5(d);if(f)if(e==w.tf){if(e=J.Ee(f),f=J.tC(document.activeElement),a.shiftKey?e==document.activeElement:null==f||f==document.body)e=O.da(d,b.i()),a.shiftKey?J.va(e):(J.ce(e),b.nd(d,e,!0)),q.b.Ea(a)}else e==w.ub&&(e=J.ym(f),document.activeElement==e&&q.b.Ea(a))};