zk.load('zul',function(){if(zk._p=zkpi('zkbind'))try{
(function(){var b={};zk.override(zk.Widget.prototype,b,{$binder:function(){var c=this;for(;c;c=c.parent){if(c["$ZKBINDER$"]){break}}if(c){if(!c._$binder){c._$binder=new zkbind.Binder(c,this)}return c._$binder}return null},$afterCommand:function(e,d){var c=this.$binder();if(c){c.$doAfterCommand(e,d)}},unbind_:function(){if(this._$binder){this._$binder.destroy();this._$binder=null}b.unbind_.apply(this,arguments)}});zkbind.$=function(e,c){var d=zk.Widget.$(e,c);if(d){return d.$binder()}zk.error("Not found ZK Binder with ["+e+"]")};function a(e,d,g){if(d[g]){var f={};for(var c in d[g]){f[e+c]=d[g][c]}d[g]=f}}zkbind.Binder=zk.$extends(zk.Object,{$init:function(c,d){this.$supers("$init",arguments);this.$view=c;this.$currentTarget=d;this._aftercmd={}},after:function(e,c){if(!c&&jq.isFunction(e)){c=e;e=this._lastcmd}var d=this._aftercmd[e];if(!d){this._aftercmd[e]=[c]}else{d.push(c)}return this},unAfter:function(f,d){var e=this._aftercmd[f];for(var c=e?e.length:0;c--;){if(e[c]==d){e.splice(c,1)}}return this},destroy:function(){this._aftercmd=null;this.$view=null;this.$currentTarget=null},command:function(f,c,d,e){var g=this.$view;if(d){if(d.duplicateIgnore){a("onBindCommand$",d,"duplicateIgnore")}if(d.repeatIgnore){a("onBindCommand$",d,"repeatIgnore")}}zAu.send(new zk.Event(g,"onBindCommand$"+f,{cmd:f,args:c},zk.copy({toServer:true},d)),e!=undefined?e:38);this._lastcmd=f;return this},globalCommand:function(e,c,d){var f=this.$view;if(opts){if(opts.duplicateIgnore){a("onBindGlobalCommand$",opts,"duplicateIgnore")}if(opts.repeatIgnore){a("onBindGlobalCommand$",opts,"repeatIgnore")}}zAu.send(new zk.Event(f,"onBindGlobalCommand$"+e,{cmd:e,args:c},zk.copy({toServer:true},opts)),d!=undefined?d:38);this._lastcmd=e;return this},$doAfterCommand:function(g,d){var f=this._aftercmd[g];for(var e=0,c=f?f.length:0;e<c;e++){f[e].apply(this,[d])}}},{postCommand:function(h,g,e,f){var d=zk.Widget.$(h);if(d){var c=d.$binder();if(c){c.command(g,e,f)}}},postGlobalCommand:function(h,g,e,f){var d=zk.Widget.$(h);if(d){var c=d.$binder();if(c){c.globalCommand(g,e,f)}}}})})();

}finally{zk.setLoaded(zk._p.n);}});zk.setLoaded('zkbind',1);