var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(d,k,f){if(null==d)throw new TypeError("The 'this' value for String.prototype."+f+" must not be null or undefined");if(k instanceof RegExp)throw new TypeError("First argument to String.prototype."+f+" must not be a regular expression");return d+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(d,k,f){d!=Array.prototype&&d!=Object.prototype&&(d[k]=f.value)};$jscomp.getGlobal=function(d){return"undefined"!=typeof window&&window===d?d:"undefined"!=typeof global&&null!=global?global:d};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(d,k,f,m){if(k){f=$jscomp.global;d=d.split(".");for(m=0;m<d.length-1;m++){var l=d[m];l in f||(f[l]={});f=f[l]}d=d[d.length-1];m=f[d];k=k(m);k!=m&&null!=k&&$jscomp.defineProperty(f,d,{configurable:!0,writable:!0,value:k})}};
$jscomp.polyfill("String.prototype.startsWith",function(d){return d?d:function(d,f){var k=$jscomp.checkStringArgs(this,d,"startsWith");d+="";var l=k.length,p=d.length;f=Math.max(0,Math.min(f|0,k.length));for(var n=0;n<p&&f<l;)if(k[f++]!=d[n++])return!1;return n>=p}},"es6","es3");
$jscomp.polyfill("String.prototype.endsWith",function(d){return d?d:function(d,f){var k=$jscomp.checkStringArgs(this,d,"endsWith");d+="";void 0===f&&(f=k.length);f=Math.max(0,Math.min(f|0,k.length));for(var l=d.length;0<l&&0<f;)if(k[--f]!=d[--l])return!1;return 0>=l}},"es6","es3");
(function(){function d(c){for(var a=[];0<c--;)a.push("&nbsp;&nbsp;&nbsp;&nbsp;");return a.join("")}function k(c,a,b,h){h.cnt++;c.push(d(b++),"widget"==a.widgetName?a.$n()?a.$n().tagName:a.widgetName:a.widgetName,a.id?"$"+a.id:"#"+a.uuid,"<br/>");for(a=a.firstChild;a;a=a.nextSibling)k(c,a,b,h)}function f(c,a,b){if(a.startsWith("get")&&3<a.length&&!a.endsWith("_")){var h="s"+a.substring(1);var e=b.widgetName;if("function"==typeof b[h]){h=a.charAt(3).toLowerCase()+a.substring(4);try{if(!n[e]||!n[e][h]){var g=
b[a]();if("object"!=typeof g&&"function"!=typeof g&&null!=g&&""!==g)if(void 0===p[h]){if("zclass"!=h||g!="z-"+e)"selectedIndex"==h?c.push(' onCreate="self.selectedIndex = ',g,'"'):c.push(" ",h,'="',zUtl.encodeXML(zUtl.encodeXML(g)),'"')}else p[h]!==g&&"fromServer"!=g&&c.push(" ",h,'="',g,'"')}}catch(q){zk.debugLog(q.message||q)}}}else if(a.startsWith("is")&&2<a.length&&!a.endsWith("_")){h="set"+a.substring(2);var d="get"+a.substring(2);e=b.widgetName;if("function"==typeof b[h]&&"function"!=typeof b[d]){h=
a.charAt(2).toLowerCase()+a.substring(3);try{if(!n[e]||!n[e][h])if(g=b[a](),"object"!=typeof g&&"function"!=typeof g&&null!=g&&""!==g)if(void 0===p[h]){if("zclass"!=h||g!="z-"+e)"selectedIndex"==h?c.push(' onCreate="self.selectedIndex = ',g,'"'):c.push(" ",h,'="',zUtl.encodeXML(zUtl.encodeXML(g)),'"')}else p[h]!==g&&"fromServer"!=g&&c.push(" ",h,'="',g,'"')}catch(q){zk.debugLog(q.message||q)}}}}function m(c){var a=[],b=[];for(h in c)r[h]?b.push(h):f(a,h,c);var h=0;for(var e=b.length;h<e;h++)f(a,b[h],
c);return a.join("")}function l(c,a,b,h){h.cnt++;var e=a.widgetName;"native"==e&&(e=a.$n()?"h:"+a.$n().tagName:a.epilog?"h:"+a.epilog.match(/<\/?(.+)>/)[1]:a.widgetName,"native"==e&&(e=a.prolog.trim()?"h:"+a.prolog.match(/<(.+)\/>/)[1]:"h:span"));if(!("script"==e||"paging"==e&&a.parent.$instanceof(zul.mesh.MeshWidget))){if("text"==e)e="h:"+e;else if("select"==e)e="listbox";else{if("option"==e){e="listitem";var g=m(a).replace('mold="select"',"");c.push(d(b++),"&lt;",e,g);a.firstChild?(h.cnt++,c.push(' label="',
zUtl.encodeXML(zUtl.encodeXML(a.firstChild.getLabel())),'"/&gt;<br/>')):c.push("/&gt;<br/>");return}if("calendar"==e||"timebox"==e)g=t[a.parent?a.parent.widgetName:""]}var f=g||"include"==e||"page"==e?"&lt;!--":"";c.push(d(b++),f+"&lt;",e,m(a));if(a.firstChild){c.push("&gt;");(f="page"==e||a.$instanceof(zul.wgt.Include))&&c.push("--&gt;");c.push("<br/>");for(a=a.firstChild;a;a=a.nextSibling)l(c,a,b,h);f=f?"&lt;!--":"";c.push(d(--b),f+"&lt;/",e,"&gt;");(g||"include"==e||"page"==e)&&c.push("--&gt;");
c.push("<br/>")}else"style"==e?(a=a.$n("css"))?c.push("&gt;<br/>",a.innerHTML,d(--b),"&lt;/",e,"&gt;<br/>"):c.push("/&gt;<br/>"):g?c.push("/&gt;--&gt;<br/>"):c.push("/&gt;<br/>"),"include"!=e&&"page"!=e||c.push("--&gt;")}}zk.loadCSS(zk.ajaxURI("web/js/zk/debug/debugger.css.dsp",{au:!0}));var p={draggable:"false",droppable:"false",mold:"default",colspan:1,scrollTop:0,scrollLeft:0,innerWidth:"100%",cols:0,model:!0,sortDirection:"natural",sortAscending:"none",sortDescending:"none",visible:!0,columnshide:!0,
columnsgroup:!0},n={treecell:{width:1},rows:{visibleItemCount:1},columns:{menupopup:1},treeitem:{image:1,label:1,zclass:1},listitem:{label:1,zclass:1,checkable:1},include:{content:1},center:{maxsize:1,minsize:1,cmargins:1,margins:1,open:1},paging:{pageCount:1}},t={datebox:1},r={getText:1,getMold:1};zk.debug.Debugger=zk.$extends(zk.Object,{outId:"zk_debugger",getConsole:function(){var c=jq(this.outId,zk)[0];c||(c=document.createElement("div"),document.body.appendChild(c),jq(c).replaceWith('<div id="'+
this.outId+'" class="z-debug"></div>'),c=jq(this.outId,zk)[0]);return c},dumpDomTree:function(c,a){if(c&&"function"==typeof c.$instanceof&&c.$instanceof(zk.Widget)){var b=[];c.redraw(b);b=b.join("")}else c&&(b=c.toString());if(b){a||(a=new zk.debug.DefaultHandler);for(var h=a,e,g,d,f=0,k;b;)if(b=b.trim(),g=b.indexOf("<"),0==g&&b.startsWith("\x3c!--"))g=b.indexOf("--\x3e"),-1!=g&&(h.comment(f,b.substring(0,g+3)),b=b.substring(g+3)),b.startsWith("</")&&f--;else if(0<=g&&b.indexOf("</")==g)e=b.indexOf(">"),
0!=g&&(d=b.substring(0,g),h.content(f,d),f--),d=b.substring(g,e+1),b=b.substring(e+1),b=b.trim(),h.endTag(f,d,k),k=!1,b.startsWith("</")&&f--;else if(0<g)d=b.substring(0,g),h.content(f,d),b=b.substring(g);else if(0==g)g=b.indexOf(">"),e=b.indexOf("/>"),0<=e&&e<g?(d=b.substring(0,e+2),h.startTag(f,d,!0),b=b.substring(e+2).trim(),b.startsWith("</")&&f--):(d=b.substring(0,g+1),b=b.substring(g+1).trim(),k=b.startsWith("</"),h.startTag(f,d,!1,k),k||f++);else{h.error(b);break}this._dump("["+c.className+
"] "+c.uuid+'&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:red;">ErrorNumber: '+a.getErrorNumber()+"</span>",a.toHTML())}},dumpWidgetTree:function(c){var a=[],b={cnt:0};k(a,c,0,b);this._dump("Total: "+b.cnt,a.join(""))},dumpWidgetTree4Zul:function(c){var a=['&lt;zk xmlns:h="native"&gt;<br/>'],b={cnt:0};l(a,c,0,b);a.push("&lt;/zk&gt;");this._dump("Total: "+b.cnt,a.join(""))},_dump:function(c,a){this.getConsole().innerHTML+='<div class="z-debug-header"><div class="z-debug-close" onclick="jq(\'#'+this.outId+
"').remove()\" onmouseover=\"jq(this).addClass('z-debug-close-over');\" onmouseout=\"jq(this).removeClass('z-debug-close-over');\"></div>"+c+'</div><div class="z-debug-body">'+a+"</div>"}});zk.debug.DefaultHandler=zk.$extends(zk.Object,{_errorNumber:0,$init:function(){this.out=[];this.stack=[]},endTag:function(c,a,b){var h=this.stack.pop(),e=a.substring(2,a.length-1);h!=e?(this._errorNumber++,this.out.push('<span style="color:red">Unmatched start tag : [<span style="color:blue;">&lt;',h,'&gt;</span>], end tag : [<span style="color:blue;">&lt;/',
e,"&gt;</span>]</span><br/>")):this.out.push(b?"":d(c),zUtl.encodeXML(a),"<br/>")},comment:function(c,a){this.out.push(d(c),zUtl.encodeXML(a),"<br/>")},startTag:function(c,a,b,h){this.out.push(d(c),this._parseAttribute(a,b),h?"":"<br/>")},_parseAttribute:function(c,a){for(var b=[],d,e,g,f=0,k=c.length;f<k;f++)switch(g=c.charAt(f),g){case "=":d?b.push("="):b.push('=<span style="color:#0666FD">');d||(d=!1);break;case "<":if(e)return b.push('<span style="color:red;">',zUtl.encodeXML(c.substring(f)),
"</span>"),this._errorNumber++,b.join("");b.push("&lt;");e=!0;break;case ">":a||e&&this.stack.push(c.substring(1,f));b.push("&gt;");break;case " ":a||(a=!0,e&&this.stack.push(c.substring(1,f)));b.push(g);break;case '"':if(d){d=!1;b.push('"</span>');break}else d=!0;default:b.push(g)}return b.join("")},content:function(c,a){-1<a.indexOf(">")?this.error(a):this.out.push(d(c),zUtl.encodeXML(a),"<br/>")},error:function(c){this._errorNumber++;this.out.push('<span style="color:red"> Error caused by {',zUtl.encodeXML(c),
"}</span><br/>")},toHTML:function(){return this.out.join("")},getErrorNumber:function(){return this._errorNumber}})})();zDebug=new zk.debug.Debugger;
