(zk=function(k){return jq(k,zk).zk}).copy=function(k,m,r){k=k||{};for(var n in m)r&&(r[n]=k[n]),k[n]=m[n];return k};
(function(){function k(a){var b=function(){if(!b.$copied){b.$copied=!0;var a=b.$copyf;b.$copyf=null;a()}this.$oid=++y;this.$init.apply(this,arguments);if(a=this._$ais){this._$ais=null;for(var d=a.length;d--;)a[d].call(this)}};b.$copyf=a;b.$copied=!b.$copyf;return b}function m(a,b){var c=a.$oid=++y;zk.classes[c]=a;a.prototype.$class=a;a.$class=zk.Class;return(a._$extds=(a.superclass=b)?zk.copy({},b._$extds):{})[c]=a}function r(a){return function(b){this[a]=b;return this}}function n(a,b){return function(c,
d){var e=this[a];this[a]=c;if(e!==c||d&&d.force)this.__fname__=a.substring(1),b.apply(this,arguments),this.__fname__=null;return this}}function F(a,b){return function(){this.__fname__=a.substring(1);this[a]=b.apply(this,arguments);this.__fname__=null;return this}}function G(a,b,c){return function(d,e){var f=this[a];this.__fname__=a.substring(1);this[a]=d=b.apply(this,arguments);(f!==d||e&&e.force)&&c.apply(this,arguments);this.__fname__=null;return this}}function z(){jq.isReady||zk.Page.contained.length?
A(!0,zk.pi?"z-initing":null):setTimeout(z,10)}function H(){A(zk.processMask)}function A(a,b){var c;!zk.processing||(c=jq("#zk_proc")).length||jq("#zk_showBusy").length?"z-initing"==b&&(c=c||jq("#zk_proc"),c.length&&c.hasClass("z-loading")&&(c=c.parent()).hasClass("z-temp")&&c.append('<div class="z-initing"></div>')):zUtl.progressbox("zk_proc",window.msgzk?msgzk.PLEASE_WAIT:"Processing...",a,b)}function B(a){return a.widgetName+(a.id?"$"+a.id:"")+"#"+a.uuid+"$"+a.$oid}function C(a,b){for(var c,d=[],
e=zk.Widget,f=0,g=a.length;f<g;f++){d.length&&d.push(", ");var h=a[f];if(h&&(jq.isArray(h)||h.zk))d.push("["+C(h,b)+"]");else if(e&&e.isInstance(h))d.push(B(h));else if(h&&h.nodeType)(c=e&&e.$(h))?d.push(jq.nodeName(h),h!=c.$n()?"#"+h.id+"."+h.className:"",":",B(c)):d.push(jq.nodeName(h),"#",h.id);else if(b&&h&&"object"==typeof h&&!h.nodeType){c=["{\n"];for(var D in h)c.push(D,":",h[D],",\n");",\n"==c[c.length-1]&&c.pop();c.push("\n}");d.push(c.join(""))}else if("function"==typeof h){c=""+h;h=c.indexOf("{");
var q=0>h?c.indexOf("\n"):-1;d.push(c.substring(0,0<h?h:0<q?q:c.length))}else d.push(""+h)}return d.join("")}function I(){if(l){var a=jq("#zk_log");a.length||(jq(document.body).append('<div id="zk_logbox" class="z-log"><button class="z-button" onclick="jq(\'#zk_logbox\').remove()">X</button><br/><textarea id="zk_log" rows="10"></textarea></div>'),a=jq("#zk_log"));a=a[0];a.value+=l;a.scrollTop=a.scrollHeight;l=null}}function E(){if(zk.mounting)return zk.afterMount(E);zk.stamp("ending");zk.stamp()}
function v(a,b,c,d,e){for(var f=(a=a._$subs)?a.length:0;0<=--f;){var g=a[f];g[b]===c&&(e&&(g["$"+b]=c),g[b]=d,v(g,b,c,d,e))}}function J(a,b){return function(){return b.apply(a,arguments)}}var y=0,K=0,l,t=[],u=jq.now(),w={};zk.copy(zk,{classes:{},isClass:function(a){return a&&a.$class==zk.Class},isObject:function(a){return a&&null!=a.$supers},procDelay:900,tipDelay:800,resendTimeout:200,clickPointer:[0,0],currentPointer:[0,0],loading:0,busy:0,appName:"ZK",cut:function(a,b){if(a){var c=a[b];delete a[b]}return c},
$package:function(a,b,c){for(var d=0,e=window;;){var f=a.indexOf(".",d);d=0<=f?a.substring(d,f):a.substring(d);var g=e[d],h;if(h=!g)g=e[d]={};if(0>f)return h&&!1!==b&&zk.setLoaded(a),c&&(g.$wv=!0),g;e=g;d=f+1}},$import:function(){var a={};return function(b,c){var d;if(d=a[b])return c&&c(d),d;for(var e=0,f=window;;){d=b.indexOf(".",e);e=0<=d?b.substring(e,d):b.substring(e);f=f[e];if(0>d||!f)return c&&(f?c(f):zk.load(b.substring(0,b.lastIndexOf(".")),function(){c(zk.$import(b))})),a[b]=f;e=d+1}}}(),
$extends:function(a,b,c){if(!a)throw"unknown superclass";var d=!(zk.feature&&zk.feature.ee),e=a.prototype,f=k(function(){a.$copyf&&!a.$copied&&(a.$copyf(),a.$copied=!0);var c=b.$define,d=a.prototype,e=f.prototype;c&&delete b.$define;var h=zk.feature;if(!h||!h.ee)for(var g in d)h="|"+g+"|",0>"|_$super|_$subs|$class|_$extds|superclass|className|widgetName|blankPreserved|".indexOf(h)?e[g]=d[g]:void 0==e[g]&&0<="|className|widgetName|blankPreserved|".indexOf(h)&&(e[g]=d[g]);zk.define(f,c);zk.copy(e,b)}),
g=f.prototype;d?(f.$copyf(),f.$copied=!0):(d=function(){this.constructor=f},d.prototype=a.prototype,f.prototype=new d,g=f.prototype);for(var h in a)0>"|prototype|$copyf|$copied|".indexOf("|"+h+"|")&&(f[h]=a[h]);zk.copy(f,c);g._$super=e;g._$subs=[];e._$subs.push(g);return m(f,a)},$default:function(a,b){a=a||{};for(var c in b)void 0===a[c]&&(a[c]=b[c]);return a},override:function(a,b,c){var d=a.$class;if(d&&!1===d.$copied){var e=d.$copyf;d.$copyf=function(){e();d.$copied=!0;zk.override(a,b,c)};return a}var f=
!(zk.feature&&zk.feature.ee);switch(typeof b){case "function":return f=a,a=b,f;case "string":return f?v(a,b,a["$"+b]=a[b],a[b]=c,!0):(a["$"+b]=a[b],a[b]=c),a}if(f)for(var g in c)v(a,g,b[g]=a[g],a[g]=c[g]);else for(g in c)b[g]=a[g],a[g]=c[g];return a},define:function(a,b){for(var c in b){var d="_"+c,e=c.charAt(0).toUpperCase()+c.substring(1),f=a.prototype,g=b[c],h=null;jq.isArray(g)&&(h=g.length?g[0]:null,g=1<g.length?g[1]:null);f["set"+e]=h?g?G(d,h,g):F(d,h):g?n(d,g):r(d);f["get"+e]=f["is"+e]=new Function("return this."+
d+";")}return a},$void:function(){return!1},parseInt:function(a,b){return a&&!isNaN(a=parseInt(a,b||10))?a:0},parseFloat:function(a){return a&&!isNaN(a=parseFloat(a))?a:0},set:function(a,b,c,d){if("string"==typeof b)zk._set(a,b,c,d);else for(var e=0,f=c.length,g,h;e<f;)h=c[e++],g=b["get"+h.charAt(0).toUpperCase()+h.substring(1)],d&&!g&&void 0===b[h]||zk._set(a,h,g?g.call(b):b[h]);return a},_set:function(a,b,c,d){zk._set2(a,a["set"+b.charAt(0).toUpperCase()+b.substring(1)],b,c,d)},_set2:function(a,
b,c,d,e){b?void 0!==e?b.call(a,d,e):b.call(a,d):a[c]=d},get:function(a,b){var c=b.charAt(0).toUpperCase()+b.substring(1),d=a["get"+c];return d?d.call(a):(d=a["is"+c])?d.call(a):a[b]},startProcessing:function(a,b){zk.processing=!0;a=setTimeout(jq.isReady?H:z,0<a?a:0);b&&(w[b]=a)},endProcessing:function(a){window.zkInitCrashTimer&&(clearTimeout(window.zkInitCrashTimer),window.zkInitCrashTimer=!1);zk.processing=!1;if(a){var b=w[a];b&&clearTimeout(b);delete w[a]}zUtl.destroyProgressbox("zk_proc")},disableESC:function(){++zk._noESC},
enableESC:function(){--zk._noESC},_noESC:0,error:function(a){zAu.send(new zk.Event(null,"error",{message:a},{ignorable:!0}),800);zk._Erbx.push(a)},debugLog:function(a){zk.debugJS&&console.log(a)},errorDismiss:function(){zk._Erbx.remove()},log:function(a){var b=C(a!==zk?arguments:function(a){for(var b=[],c=a.length;0<--c;)b.unshift(a[c]);return b}(arguments),a===zk);l=(l?l+b:b)+"\n";zk.mobile?(console.log(l),l=null):setTimeout(function(){jq(I)},300)},stamp:function(a,b){if(a)b||t.length||setTimeout(E,
0),t.push({n:a,t:jq.now()});else if(t.length){for(a=u;b=t.shift();)zk.log(b.n+": "+(b.t-u)),u=b.t;zk.log("total: "+(u-a))}},ajaxURI:function(a,b){var c=zk.Desktop.$(b?b.desktop:null),d=b&&b.au;c=(c?c:zk)[d?"updateURI":"contextURI"];a=a||"";var e="/"==a.charAt(0);d&&!e&&(e=!0,a&&(a="/"+a));var f=c.indexOf(";");d=c.lastIndexOf("?");if(0>f&&0>d)return e?c+a:a;0<=d&&(0>f||d<f)&&(f=d);e=e?c.substring(0,f):"";if(b&&b.ignoreSession)return e+a;b=c.substring(f);c=a.indexOf("?");return 0<=c?0<=d?e+a.substring(0,
c)+b+"&"+a.substring(c+1):e+a.substring(0,c)+b+a.substring(c):e+a+b},resourceURI:function(a,b){"/"!=a.charAt(0)&&(a="/"+a);return zk.ajaxURI("/web/_zv"+(b||zk.build)+a,{au:!0})},stateless:function(a,b,c,d){var e=zk.Desktop,f;a=a||"z_auto"+K++;if((f=e.all[a])&&!f.stateless)throw"Desktop conflict";null==zk.updateURI&&(zk.updateURI=c);null==zk.contextURI&&(zk.contextURI=b);return f||new e(a,b,c,d,!0)},addDataHandler:function(a,b){zk.dataHandlers||(zk.dataHandlers={});zk.dataHandlers[a]=b},hasDataHandler:function(a){return zk.dataHandlers&&
!!zk.dataHandlers[a]},getDataHandler:function(a){if(zk.hasDataHandler(a))return{run:function(b,c){var d=zk.dataHandlers[a];jq.isFunction(d)||(d=jq.evalJSON(d));try{c=jq.parseJSON(c)}catch(q){zk.debugLog(q.message||q)}for(var e,f=b;f;f=f.parent)if(f.$ZKBINDER$){f._$binder||(f._$binder=new zkbind.Binder(f,this));e=f._$binder;break}else if(f.$ZKAUS$){f._$service||(f._$service=new zk.Service(f,this));e=f._$service;break}if(f&&e){$.extend(this,e);var g=this.command,h=0==a.indexOf("data-")?a.substring(5):
a;this.command=function(a,b){g.call(this,h+a,b)};var k=this.after;this.after=function(a,b){k.call(this,h+a,b)}}d.call(this,b,c)}};zk.error("not found: "+a)},$intercepts:function(a,b){if(!a)throw"unknown targetClass";if(!b)throw"unknown interceptor";if(a&&!1===a.$copied){var c=a.$copyf;a.$copyf=function(){c();a.$copied=!0;zk.$intercepts(a,b)}}else{var d=a.prototype,e;for(e in b)d[e]&&(d.$getInterceptorContext$||(d._$$interceptorContext=[],d.$getInterceptorContext$=function(){return this._$$interceptorContext[this._$$interceptorContext.length-
1]}),function(a,c){d[a]=function(){var d={stop:!1,result:null,args:arguments},e=this._$$interceptorContext;e.push(d);b[a].apply(this,arguments);var f=d.stop?d.result:c.apply(this,d.args);e.splice(e.indexOf(d),1);return f}}(e,d[e]))}}});(function(){function a(a){return parseFloat(a)||a}jq.uaMatch=function(a){a=a.toLowerCase();a=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||0>a.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||
[];return{browser:a[1]||"",version:a[2]||"0"}};jq.browser||(matched=jq.uaMatch(navigator.userAgent),b={},matched.browser&&(b[matched.browser]=!0,b.version=matched.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),jq.browser=b);var b=jq.browser,c=zk.agent=navigator.userAgent.toLowerCase(),d;zk.opera=b.opera&&a(b.version);zk.ff=zk.gecko=b.mozilla&&0>c.indexOf("trident")&&a(b.version);zk.linux=0<=c.indexOf("linux");zk.mac=!zk.ios&&0<=c.indexOf("mac");zk.webkit=b.webkit;zk.chrome=b.chrome;zk.safari=
b.webkit&&!zk.chrome;zk.edge=zk.webkit&&zk.chrome&&0<=(d=c.indexOf("edge"))&&a(c.substring(d+5));zk.ios=zk.webkit&&/iphone|ipad|ipod/.test(c)&&((d=c.match(/version\/\d/))&&d[0].replace("version/","")||(d=c.match(/ os \d/))&&d[0].replace(" os ",""));zk.ipad=zk.webkit&&/ipad/.test(c)&&((d=c.match(/version\/\d/))&&d[0].replace("version/","")||(d=c.match(/ os \d/))&&d[0].replace(" os ",""));zk.android=0<=c.indexOf("android");zk.mobile=zk.ios||zk.android;zk.css3=!0;d=b.mozilla&&0<=c.indexOf("trident")&&
a(b.version);zk.vendor=zk.webkit?"webkit":"";var e="";zk.ff?(5>zk.ff&&0<(e=c.indexOf("firefox/"))&&(zk.ff=zk.gecko=a(c.substring(e+8))),e="gecko gecko"+Math.floor(zk.ff),zk.vendor="Moz"):zk.opera?(e="opera",zk.vendor="O"):(zk.iex=b.msie&&a(b.version),!zk.iex&&d&&(zk.iex=d),zk.iex?(zk.ie=document.documentMode||zk.iex,11>zk.ie&&9<=zk.ie&&(zk.ie9=9<=zk.ie,zk.ie10=10<=zk.ie),zk["ie"+zk.ie+"_"]=!0,zk.css3=9<=zk.ie,e="ie ie"+Math.floor(zk.ie),zk.vendor="ms"):zk.edge?e="edge":zk.chrome?e="webkit chrome":
zk.safari?e="webkit safari":zk.webkit&&(e="webkit"));zk.mobile&&(e+=" mobile",e=zk.ios?e+" ios":e+" android");(zk.air=0<=c.indexOf("adobeair"))&&zk.webkit&&(e+=" air");e&&jq(function(){jq(document.body).addClass(e)});zk.vendor_=zk.vendor.toLowerCase()})();zk.ie||zk.edge?zk.Buffer=Array:(zk.Buffer=function(){this.out=""},zk.Buffer.prototype=[],zk.copy(zk.Buffer.prototype,{push:function(){for(var a=0,b=arguments.length;a<b;a++)if(null!=arguments[a]||void 0!=arguments[a])this.out+=arguments[a]},join:function(a){if(a)throw"Wrong usage here! Please run the script `zk.Buffer = Array;` instead.";
return this.out},shift:_zkf=function(){throw"Wrong usage here! Please run the script `zk.Buffer = Array;` instead.";},unshift:_zkf,pop:_zkf,slice:_zkf,sort:_zkf}));zk.Class=function(){};m(zk.Object=k());zk.Object.prototype={$init:zk.$void,afterInit:function(a){(this._$ais=this._$ais||[]).unshift(a)},$instanceof:function(){if(this.$class)for(var a=this.$class._$extds,b=arguments,c=b.length,d;c--;)if((d=b[c])&&a[d.$oid])return!0;return!1},$super:function(a,b){return"string"!=typeof a?this.$supers(a,
b,[].slice.call(arguments,2)):this.$supers(a,[].slice.call(arguments,1))},$supers:function(a,b,c){var d,e=this._$supers;e||(e=this._$supers={});if("string"!=typeof a){var f=e[b];if(!(d=a.prototype._$super)||!(a=d[b]))throw b+" not in superclass";e[b]=d;try{return a.apply(this,c)}finally{e[b]=f}}f=e[a];var g;f?(c=f[a],d=f):(c=this[a],d=this);for(;d=d._$super;)if(c!=d[a]){(g=d[a])&&(e[a]=d);break}if(!g)throw a+" not in superclass";try{return g.apply(this,b)}finally{e[a]=f}},_$subs:[],proxy:function(a){var b=
this._$proxies,c;if(!b)this._$proxies=b={};else if(c=b[a])return c;return b[a]=J(this,a)}};_zkf={isInstance:function(a){return a&&a.$instanceof&&a.$instanceof(this)},isAssignableFrom:function(a){return a&&(a=a._$extds)&&null!=a[this.$oid]}};zk.copy(zk.Object,_zkf);zk.copy(m(zk.Class,zk.Object),_zkf);var p,x=0;zk._Erbx=zk.$extends(zk.Object,{$init:function(a){var b=zk.mobild?" ontouchstart":" onclick";a='<div class="z-error" id="zk_err"><div id="zk_err-p"><div class="errornumbers">'+ ++x+' Errors</div><div class="button"'+
b+'="zk._Erbx.remove()"><i class="z-icon-times"></i></div><div class="button"'+b+'="zk._Erbx.redraw()"><i class="z-icon-refresh"></i></div></div><div class="messagecontent"><div class="messages">'+zUtl.encodeXML(a,{multiline:!0})+"</div></div></div>";jq(document.body).append(a);p=this;this.id="zk_err";try{var c;this.dg=new zk.Draggable(null,c=jq("#zk_err")[0],{handle:jq("#zk_err-p")[0],zIndex:c.style.zIndex,starteffect:zk.$void,endeffect:zk.$void})}catch(d){zk.debugLog(d.message||d)}jq("#zk_err").slideDown(1E3)},
destroy:function(){p=null;x=0;this.dg&&this.dg.destroy();jq("#"+this.id).remove()}},{redraw:function(){zk.errorDismiss();zAu.send(new zk.Event(null,"redraw"))},push:function(a){if(!p)return new zk._Erbx(a);var b=p.id;jq("#"+b+" .errornumbers").html(++x+" Errors");jq("#"+b+" .messages").append('<div class="newmessage">'+zUtl.encodeXML(a)+"</hr></div>");jq("#"+b+" .newmessage").removeClass("newmessage").addClass("message").slideDown(600)},remove:function(){p&&p.destroy()}})})();
