function zkpi(d,f){return zk.isLoaded(d)?null:{n:d,p:zk.$package(d,!1,f)}}function zkpb(d,f,r,p,n,g){zkx([0,d,zk.copy(g,{dt:f,cu:r,uu:p,ru:n}),{},[]])}zkpe=zk.$void;function zkver(d,f,r,p,n,g){zk.version=d;zk.build=f;zk.contextURI=r;zk.updateURI=p;for(var t in n)zk.setVersion(t,n[t]);zk.feature||(zk.feature={standard:!0});zkopt(g)}function zkmld(d,f){if(d.superclass){var r=d.molds={},p;for(p in f){var n=f[p];r[p]="function"==typeof n?n:n[0].molds[n[1]]}}else zk.afterLoad(function(){zkmld(d,f)})}
function zkamn(d,f){zk.load(d,function(){setTimeout(function(){zk.afterMount(f)},20)})}
(function(){function d(a){var c,b={};for(c=a.length;c--;){var A=a[c];A.pked||(A.pked=!0,f(b,A[0],A[1]))}for(var C in b)c=C.lastIndexOf("."),0<=c&&zk._load(C.substring(0,c),b[C])}function f(a,b,l){var c=l[0];0===c?c=l[2].wc:1===c&&(l[0]=c="zhtml.Widget");c&&(a[c]=b);l=l[4];for(c=l.length;c--;)f(a,b,l[c])}function r(){for(;;){if(zk.loading)return zk.afterLoad(r);var c=a.shift();if(!c)break;b.push([c[0],w(c[3]||c[0],c[1],!0),c[2],c[4]]);if(x(r))return}p()}function p(){for(;;){if(a.length)return;if(zk.loading)return zk.afterLoad(p);
if(11>zk.ie&&!jq.isReady)return jq(p);var c=b.shift();if(!c)break;var e=c[1];if(c[2])e.bind(c[0]);else{var l;zk.processing&&(l=jq("#zk_proc")).length&&l.hasClass("z-loading")&&l.parent().hasClass("z-temp")&&(l[0].id="zna",jq("#zk_proc").length||zUtl.progressbox("zk_proc",window.msgzk?msgzk.PLEASE_WAIT:"Processing...",!0));e.replaceHTML("#"+e.uuid,c[0])}z(c[3])}n()}function n(){if(!a.length&&!b.length&&(zk.booted=!0,zk.mounting=!1,k(n),h&&++h.s,zk.clientinfo||zk.endProcessing(),zk.bmk.onURLChange(),
zk.pfmeter)){var c=zk.Desktop.all,e;for(e in c)zAu._pfdone(c[e],e)}}function g(){for(;;){if(zk.loading)return zk.afterLoad(g);var a=u.shift(),b;if(!a)break;if(b=a[4][1])v.$=function(a,c){return b(y(a,c))};try{var l=w(null,a[1])}finally{b&&(v.$=y)}a[4][0](l);if(x(g))return}t()}function t(){zk.mounting=!1;k(t);zAu._doCmds();k(t)}function k(a){for(var c;c=q.shift();)if(c(),zk.loading)return zk.afterLoad(a),!0}function z(a){a&&a.length&&zk._apac(function(){for(var c=0;c<a.length;c+=2)zAu.process(a[c],
a[c+1])},"f0")}function w(a,b,l){var c,e,d=b[0],h=b[1],g=b[2]||{},u=b[3]||{};if(0===d){var m=(d=zk.cut(g,"wc"))?zk.$import(d):zk.Page;(e=new m({uuid:h},zk.cut(g,"ct"))).inServer=!0;a&&a.appendChild(e,l)}else{if((m="#stub"==d)||"#stubs"==d){if(!(e=y(h)||zAu._wgt$(h)))throw"Unknown stub "+h;d=new v;(e.desktop||9===e.z_rod)&&e.unbind();zk._wgtutl.replace(e,d,m)}else{m=zk.$import(d);if(!m)throw"Unknown widget: "+d;(e=new m(zkac)).inServer=!0;e.uuid=h;(c=b[5])&&e.setMold(c)}a&&a.appendChild(e,l);if(c=
zk.cut(g,"z$is"))e.z$is=!0,e._fellows={};(c=zk.cut(g,"z$al"))&&zk.afterLoad(function(){for(var a in c)e.set(a,c[a](),!0)});(c=zk.cut(u,"z$al"))&&zk.afterLoad(function(){for(var a=0,b=c.length;a<b;a++){var l=c[a],d;for(d in l)e.set(d,l[d](),!0)}})}for(var f in g)e.set(f,g[f],!0);for(f in u)for(c=u[f],l=0,a=c.length;l<a;l++)e.set(f,c[l],!0);a=0;b=b[4];for(u=b.length;a<u;++a)w(e,b[a]);return e}function x(a){var c=jq.now(),b=c-B;if(2500<b)return B=c,b>>=6,setTimeout(a,10>b?b:10),!0}var v=zk.Widget,y=
v.$,a=[],b=[],u=[],q=[],E=[],m={},h={s:0,e:-1,f0:[],f1:[]},B=jq.now();jq(function(){h.i=setInterval(function(){var a;if(!(a=zk.booted&&!zk.mounting)){a:{var b=zk.Desktop.all;for(d in b)if(b[d].stateless){var d=!0;break a}d=void 0}a=b=d}if(a)if(b||h.s==h.e)for(clearInterval(h.i),d=h.f0.concat(h.f1),h=null;b=d.shift();)b();else h.e=h.s},25)});zk._apac=function(a,b){if(h)return h[b||"f1"].push(a);zk.afterMount(a)};zk.afterMount=function(a,b){if(a)if(jq.isReady)if(zk.mounting)q.push(a);else if(zk.loading)zk.afterLoad(a);
else{if(0>b)return a(),!0;setTimeout(a,b)}else jq(function(){zk.afterMount(a)})};zk.afterResize=function(a){a&&E.push(a)};zk.doAfterResize=function(){for(var a;a=E.shift();)a()};zk.copy(window,{zkdt:function(a,b,d,g){var c=zk.Desktop.$(a);null==c?(c=new zk.Desktop(a,b,d,g),zk.pfmeter&&zAu._pfrecv(c,a)):(null!=d&&(c.updateURI=d),null!=b&&(c.contextURI=b),null!=g&&(c.requestPath=g));return m.curdt=c},zkx:function(b,e,l,h){zk.mounting=!0;try{h&&jq.globalEval(h);h=g;var c=u,f;if(!e||!e.length){var n=
e;b&&(e=l,l=null);h=r;c=a}if(b){if(0===b[0]){var k=b[2],q=zkdt(zk.cut(k,"dt"),zk.cut(k,"cu"),zk.cut(k,"uu"),zk.cut(k,"ru"));if(f=zk.cut(k,"ow"))f=v.$(f);var p;if((p=zk.feature)&&(p.pe||p.ee)&&void 0!==zk.clientinfo){if(zAu.cmd0.clientInfo(q.uuid),e){k=[];for(q=0;q<e.length;q+=2)"clientInfo"!=e[q]&&k.push(e[q],e[q+1]);e=k}}else delete zk.clientinfo}c.push([m.curdt||(m.curdt=zk.Desktop.$()),b,m.bindOnly,f,e]);d(c)}n?setTimeout(h,0):x(h)||h();z(l)}catch(D){zk.mounting=!1,zk.error("Failed to mount: "+
(D.message||D)),setTimeout(function(){throw D;},0)}},zkx_:function(a,b,d){B=jq.now();a[1]=[b,d];zkx.apply(this,a)},zkac:function(){z(arguments)},zkmx:function(){zkmb();try{zkx.apply(window,arguments)}finally{zkme()}},zkmb:function(a){m.bindOnly=a;a=390-(jq.now()-B);zk.startProcessing(0<a?a:0)},zkme:function(){m.curdt=null;m.bindOnly=!1},zkdh:function(a,b){zk.addDataHandler("data-"+a,b)}})})(window);
jq(function(){function d(a){var b=a.target;if(b&&!b.$weave){var d=a.name,g=z[d];g&&(!zk.ios||"doTooltipOver_"!=g&&"doTooltipOut_"!=g)&&b[g].call(b,a);a.stopped||a.originalEvent&&a.originalEvent.zkstopped||b["do"+d.substring(2)+"_"].call(b,a);a.domStopped&&a.domEvent.stop()}}function f(a,b,f){zk.clickPointer[0]=a.pageX;zk.clickPointer[1]=a.pageY;b||(b=a.target);var k=a.domEvent,u=document.body,m=zk.currentFocus;k.clientX<=u.clientWidth&&k.clientY<=u.clientHeight&&g.mimicMouseDown_(b,f,a.which);d(a);
if(m&&zk.ie){var h=jq(m)[0];h&&setTimeout(function(){try{var a=zk.currentFocus;a==m||h.offsetWidth||h.offsetHeight||(zk.focusBackFix=!0,a.focus())}catch(c){zk.debugLog(c.message||c)}finally{delete zk.focusBackFix}})}}function r(){if(k.time){var a=jq.now();if(zk.mounting||zk.loading||a<k.time||zk.animating())setTimeout(r,10);else{k.time=null;k.lastTime=a+1E3;zAu._onClientInfo();k.inResize=!0;try{zWatch.fire("beforeSize"),zWatch.fire("onFitSize",null,{reverse:!0}),zWatch.fire("onSize"),zWatch.fire("afterSize"),
k.lastTime=jq.now()+8}finally{k.inResize=!1}}}}function p(a,b){if(a.afterKeyDown_)return b.target=a,a.afterKeyDown_(b,!0)}function n(){var a=!zk.opera&&!zk.keepDesktop;if(a||zk.pfmeter){zk.rmDesktoping=!0;try{var b=zk.Desktop.all,d;for(d in b)zAu._rmDesktop(b[d],!a)}catch(q){zk.debugLog(q.message||q)}}}var g=zk.Widget,t=[],k={},z={onClick:"doSelect_",onRightClick:"doSelect_",onMouseOver:"doTooltipOver_",onMouseOut:"doTooltipOut_"};zk.copy(zk,{beforeUnload:function(a,b){b&&b.remove?t.$remove(a):t.push(a)}});
var w,x;jq(document).keydown(function(a){var b=g.$(a,{child:!0}),f=new zk.Event(b,"onKeyDown",a.keyData(),null,a);if(b)d(f),!f.stopped&&b.afterKeyDown_&&(b.afterKeyDown_(f),f.domStopped&&f.domEvent.stop());else if(zk.invokeFirstRootForAfterKeyDown)a:{b=zk.Desktop.all;var k=zk.Page,n;for(n in b)for(var m=b[n].firstChild;m;m=m.nextSibling)if(m.$instanceof(k))for(var h=m.firstChild;h;h=h.nextSibling){if(p(h,f))break a}else if(p(m,f))break a}if(27==a.keyCode&&(0<zk._noESC||zAu.shallIgnoreESC()))return!1}).keyup(function(a){var b=
zk.keyCapture;b?zk.keyCapture=null:b=g.$(a,{child:!0});d(new zk.Event(b,"onKeyUp",a.keyData(),null,a))}).keypress(function(a){var b=zk.keyCapture;b||(b=g.$(a,{child:!0}));d(new zk.Event(b,"onKeyPress",a.keyData(),null,a))}).bind("paste",function(a){var b=zk.keyCapture;b||(b=g.$(a,{child:!0}));d(new zk.Event(b,"onPaste",a.keyData(),null,a))}).bind("zcontextmenu",function(a){zk.clickPointer[0]=a.pageX;zk.clickPointer[1]=a.pageY;var b=g.$(a,{child:!0});return b&&(11>zk.ie&&(a.which=3),b=new zk.Event(b,
"onRightClick",a.mouseData(),{},a),d(b),b.domStopped)?!1:!(11>zk.ie)||a.returnValue}).bind("zmousedown",function(a){zk.mobile&&(zk.currentPointer[0]=a.pageX,zk.currentPointer[1]=a.pageY);var b=g.$(a,{child:!0});f(new zk.Event(b,"onMouseDown",a.mouseData(),null,a),b)}).bind("zmouseup",function(a){var b=zk.Draggable.ignoreMouseUp();!0!==b&&(null!=b&&f(b,null,!0),(b=zk.mouseCapture)?zk.mouseCapture=null:b=g.$(a,{child:!0}),d(new zk.Event(b,"onMouseUp",a.mouseData(),null,a)))}).bind("zmousemove",function(a){zk.currentPointer[0]=
a.pageX;zk.currentPointer[1]=a.pageY;var b=zk.mouseCapture;b||(b=g.$(a,{child:!0}));d(new zk.Event(b,"onMouseMove",a.mouseData(),null,a))}).mouseover(function(a){zk.mobile||(zk.currentPointer[0]=a.pageX,zk.currentPointer[1]=a.pageY,d(new zk.Event(g.$(a,{child:!0}),"onMouseOver",a.mouseData(),{ignorable:1},a)))}).mouseout(function(a){d(new zk.Event(g.$(a,{child:!0}),"onMouseOut",a.mouseData(),{ignorable:1},a))}).click(function(a){zk.Draggable.ignoreClick()||zk.android&&w&&w+400>a.timeStamp&&x&&x==
a.target||(w=a.timeStamp,x=a.target,zjq._fixClick(a),1==a.which&&d(new zk.Event(g.$(a,{child:!0}),"onClick",a.mouseData(),{},a)))}).bind("zdblclick",function(a){if(!zk.Draggable.ignoreClick()){var b=g.$(a,{child:!0});if(b&&1==a.which&&(a=new zk.Event(b,"onDoubleClick",a.mouseData(),{},a),d(a),a.domStopped))return!1}}).bind((void 0!==document.hidden?"":zk.vendor_)+"visibilitychange",function(a){zAu._onVisibilityChange()});var v=function(a){if(!(zk.mounting||(a=jq.now(),k.lastTime&&a<k.lastTime||k.inResize))){var b=
11>zk.ie||zk.android?250:50;k.time=a+b-1;setTimeout(r,b);zk.mobile&&zAu._cInfoReg&&(jq("#zk_proc").length||jq("#zk_showBusy").length||zUtl.progressbox("zk_proc",window.msgzk?msgzk.PLEASE_WAIT:"Processing...",!0))}};zk.mobile?(jq(window).bind("orientationchange",v),zk.ios&&jq(window).bind("pagehide",function(){zk.unloading=!0;zk.rmDesktoping||n()})):jq(window).resize(v);jq(window).scroll(function(){zWatch.fire("onScroll")}).unload(function(){zk.unloading=!0;!zk.ie&&zk.rmDesktoping||n()});var y=window.onbeforeunload;
window.onbeforeunload=function(){var a;if(!zk.skipBfUnload){if(zk.confirmClose)return zk.confirmClose;for(var b=0;b<t.length;++b)if(a=t[b]())return a}if(y&&(a=y.apply(window,arguments)))return a;zk.unloading=!0;zk.ie||n()};zk.afterMount(function(){jq("script.z-runonce").remove()})});
