var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(d,h,g){d instanceof String&&(d=String(d));for(var f=d.length,k=0;k<f;k++){var q=d[k];if(h.call(g,q,k,d))return{i:k,v:q}}return{i:-1,v:void 0}};$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,h,g){d!=Array.prototype&&d!=Object.prototype&&(d[h]=g.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,h,g,f){if(h){g=$jscomp.global;d=d.split(".");for(f=0;f<d.length-1;f++){var k=d[f];k in g||(g[k]={});g=g[k]}d=d[d.length-1];f=g[d];h=h(f);h!=f&&null!=h&&$jscomp.defineProperty(g,d,{configurable:!0,writable:!0,value:h})}};
$jscomp.polyfill("Array.prototype.find",function(d){return d?d:function(d,g){return $jscomp.findInternal(this,d,g).v}},"es6","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(d){return $jscomp.SYMBOL_PREFIX+(d||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var d=$jscomp.global.Symbol.iterator;d||(d=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[d]&&$jscomp.defineProperty(Array.prototype,d,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(d){var h=0;return $jscomp.iteratorPrototype(function(){return h<d.length?{done:!1,value:d[h++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(d){$jscomp.initSymbolIterator();d={next:d};d[$jscomp.global.Symbol.iterator]=function(){return this};return d};$jscomp.iteratorFromArray=function(d,h){$jscomp.initSymbolIterator();d instanceof String&&(d+="");var g=0,f={next:function(){if(g<d.length){var k=g++;return{value:h(k,d[k]),done:!1}}f.next=function(){return{done:!0,value:void 0}};return f.next()}};f[Symbol.iterator]=function(){return f};return f};
$jscomp.polyfill("Array.prototype.keys",function(d){return d?d:function(){return $jscomp.iteratorFromArray(this,function(d){return d})}},"es6","es3");
(function(){function d(a){var b=a._position,c=a.$n(),m=zk(c);b||c.style.top&&c.style.left?"parent"==b&&k(a):(b=m.revisedOffset(),c.style.left||(c.style.left=jq.px(b[0])),c.style.top||(c.style.top=jq.px(b[1])));m.makeVParent();zWatch.fireDown("onVParent",a);a.zsync();l(a);a.setTopmost();x(a)}function h(a){var b=a._position,c=a.$n();c=zk(c);"parent"==b&&k(a);c.makeVParent();zWatch.fireDown("onVParent",a);a.zsync();l(a,!0,!1,!0);b=a.isRealVisible();a.setTopmost();a._mask||(c=a._shadowWgt?a._shadowWgt.getBottomElement():
null,a._mask=new zk.eff.FullMask({id:a.uuid+"-mask",anchor:c?c:a.$n(),zIndex:a._zIndex,visible:b}),c=11>zk.ie||zk.gecko?"a":"button",jq("#"+a.uuid+"-mask").append("<"+c+' id="'+a.uuid+'-mask-a" style="top:0;left:0 onclick="return false;" href="javascript:;" class="z-focus-a"></'+c+">"),a._anchor=jq("#"+a.uuid+"-mask-a")[0]);b&&g(a);x(a)}function g(a){zk.currentModal=a;var b=r[0],c=zk.currentFocus;b?b._lastfocus=c:u=c;r.unshift(a);setTimeout(function(){zk.afterAnimate(function(){zUtl.isAncestor(a,
zk.currentFocus)||(zk.ie9_?a.focus(100):a.focus())},-1)})}function f(a){r.$remove(a);if(zk.currentModal==a){var b=zk.currentModal=r[0],c=b?b._lastfocus:u;b||(u=null);c&&c.desktop||(c=b);c&&(!1===a._updDOFocus?a._updDOFocus=c:c.focus(0))}a._lastfocus=null}function k(a){var b=a.$n(),c=zk(zk(b).vparentNode(!0)).revisedOffset();a._offset=c;b.style.left=jq.px(c[0]+zk.parseInt(a._left));b.style.top=jq.px(c[1]+zk.parseInt(a._top))}function q(a,b){a._notSendMaximize=!b||!b.sendOnMaximize;a._updDOFocus=!1;
try{var c=a._lastSize;a.rerender(a._skipper);if(c&&(a._lastSize=c,n=a.$n())){var m=n.style;c.h&&(m.height=c.h);c.w&&(m.width=c.w);a._fixHgh()}var e;(e=a._updDOFocus)&&e.focus(10)}finally{delete a._updDOFocus,delete a._notSendMaximize}}function l(a,b,c,m){if(a.desktop&&"embedded"!=a._mode){var e=a.$n(),d=a._position;if("parent"==d)c&&k(a);else if(d||b){b=e.style;b.position="absolute";c=b.left;var g=b.top;"nocenter"!=d&&zk(e).center(d);var f=a._shadowWgt;if(d&&f){f=f.opts;var h=e.offsetLeft,l=e.offsetTop;
0<=d.indexOf("left")&&0>f.left?b.left=jq.px(h-f.left):0<=d.indexOf("right")&&0<f.right&&(b.left=jq.px(h-f.right));0<=d.indexOf("top")&&0>f.top?b.top=jq.px(l-f.top):0<=d.indexOf("bottom")&&0<f.bottom&&(b.top=jq.px(l-f.bottom))}m&&!d&&(m=zk.parseInt(e.style.top),(d=jq.innerY())?(d=m-d,100<d&&(e.style.top=jq.px0(m-(d-100)))):100<m&&(e.style.top="100px"));a.zsync();c==b.left&&g==b.top||a._fireOnMove()}}}function p(a){(a=a._shadowWgt)&&a.hide()}function y(a){if(!a._sizer){a.domListen_(a.$n(),"onMouseMove");
a.domListen_(a.$n(),"onMouseOut");var b=a.$class;a._sizer=new zk.Draggable(a,null,{stackup:!0,overlay:!0,draw:b._drawsizing,snap:b._snapsizing,initSensitivity:0,starteffect:b._startsizing,ghosting:b._ghostsizing,endghosting:b._endghostsizing,ignoredrag:b._ignoresizing,endeffect:b._aftersizing})}}function x(a){var b=a.$n("cap");if(b&&!a._drag){jq(b).addClass(a.getZclass()+"-header-move");var c=a.$class;a._drag=new zk.Draggable(a,null,{handle:b,stackup:!0,fireOnMove:!1,starteffect:c._startmove,ghosting:c._ghostmove,
endghosting:c._endghostmove,ignoredrag:c._ignoremove,endeffect:c._aftermove,zIndex:99999})}}function t(a){return"modal"==a||"highlighted"==a}function v(a,b,c){var d=a._position;b=zk.parseInt(b);c=zk.parseInt(c);var e=0,f=0;"parent"==d&&(a=zk(a.$n()).vparentNode())&&(f=zk(a).revisedOffset(),e=f[0],f=f[1]);return[jq.px(b-e),jq.px(c-f)]}var r=[],u,w=zul.wnd.Window=zk.$extends(zul.ContainerWidget,{_mode:"embedded",_border:"none",_minheight:100,_minwidth:200,_shadow:!0,_tabindex:0,$init:function(){this._fellows=
{};this._lastSize={};this.$supers("$init",arguments);this.listen({onMaximize:this,onClose:this,onMove:this,onSize:this.onSizeEvent,onZIndex:this},-1E3);this._skipper=new zul.wnd.Skipper(this)},$define:{mode:_zkf=function(){q(this)},title:function(){this.caption?this.caption.updateDomContent_():q(this)},border:_zkf,closable:_zkf,sizable:function(a){this.desktop&&(a?y(this):this._sizer&&(this._sizer.destroy(),this._sizer=null))},maximizable:_zkf,minimizable:_zkf,maximized:function(a,b){var c=this.$n();
if(c){zk(c);var d=this.isRealVisible();if(d||!a){var e=c.style;var f=this.getMaximizableIconClass_();var g=this.getMaximizedIconClass_();if(a){jq(this.$n("max")).addClass(this.$s("maximized")).attr("title",msgzul.PANEL_RESTORE).children("."+f).removeClass(f).addClass(g);var h="embedded"!=this._mode,k=h?jq(c).offsetParent():jq(c).parent();g=e.left;var l=e.top;c=e.width;f=e.height;e.top="-10000px";e.left="-10000px";e.width=jq.px0(k[0].clientWidth-(h?0:k.zk.paddingWidth()));e.height=jq.px0(k[0].clientHeight-
(h?0:k.zk.paddingHeight()));this._lastSize={l:g,t:l,w:c,h:f};e.top="0";e.left="0";c=e.width;f=e.height}else if(c=this.$n("max"),jq(c).removeClass(this.$s("maximized")).attr("title",msgzul.PANEL_MAXIMIZE).children("."+g).removeClass(g).addClass(f),this._lastSize&&(e.left=this._lastSize.l,e.top=this._lastSize.t,e.width=this._lastSize.w,e.height=this._lastSize.h,this._lastSize=null),g=e.left,l=e.top,c=e.width,f=e.height,e=this.$n("cave"))e.style.width=e.style.height="";if(!b||d)this._visible=!0,this._notSendMaximize||
(e=v(this,g,l),this.fire("onMaximize",{left:e[0],top:e[1],width:c,height:f,maximized:a,fromServer:b}));d&&zUtl.fireSized(this)}}},minimized:function(a,b){this._maximized&&this.setMaximized(!1);var c=this.$n();if(c){var d=c.style;a?(zWatch.fireDown("onHide",this),jq(c).hide()):(jq(c).show(),zUtl.fireShown(this));b||(this._visible=!1,this.zsync(),b=v(this,d.left,d.top),this.fire("onMinimize",{left:b[0],top:b[1],width:d.width,height:d.height,minimized:a}))}},contentStyle:_zkf,contentSclass:_zkf,position:function(){l(this,
!1,this._visible)},minheight:null,minwidth:null,shadow:function(){this._shadow?this.zsync():this._shadowWgt&&(this._shadowWgt.destroy(),this._shadowWgt=null)}},repos:function(){l(this,!1,this._visible)},doOverlapped:function(){this.setMode("overlapped")},doPopup:function(){this.setMode("popup")},doHighlighted:function(){this.setMode("highlighted")},doModal:function(){this.setMode("modal")},doEmbedded:function(){this.setMode("embedded")},afterAnima_:function(a){this.$supers("afterAnima_",arguments);
this.zsync()},zsync:function(){this.$supers("zsync",arguments);if(this.desktop&&("embedded"==this._mode?this._shadowWgt&&(this._shadowWgt.destroy(),this._shadowWgt=null):this._shadow&&(this._shadowWgt||(this._shadowWgt=new zk.eff.Shadow(this.$n(),{left:-4,right:4,top:-2,bottom:3})),this._maximized||this._minimized||!this._visible?p(this):this._shadowWgt.sync()),this._mask)){var a=this._shadowWgt&&this._shadowWgt.getBottomElement()||this.$n();a&&this._mask.sync(a)}},onClose:function(){this.inServer||
this.parent.removeChild(this)},onMove:function(a){this._left=a.left;this._top=a.top;this._visible&&zWatch.fireDown("onMove",this)},onMaximize:function(a){a=a.data;this._top=a.top;this._left=a.left;this._height=a.height;this._width=a.width},onSizeEvent:function(a){var b=a.data,c=this.$n().style;p(this);b.width!=c.width&&(c.width=b.width,this._width=c.width);b.height!=c.height&&(c.height=b.height,this._fixHgh(),this._height=c.height);if(b.left!=c.left||b.top!=c.top)c.left=b.left,c.top=b.top,this._fireOnMove(a.keys);
this.zsync();var d=this;setTimeout(function(){zUtl.fireSized(d)})},onZIndex:_zkf=function(a){this.zsync()},onResponse:_zkf,onCommandReady:function(){if(this.desktop&&this._shallSize){this._shallSize=!1;for(var a=this.firstChild;a;a=a.nextSibling)if(a._nvflex||a._nhflex){zUtl.fireSized(this);break}}},onShow:function(a){a=a.origin;this!=a&&"embedded"!=this._mode&&this.isRealVisible({until:a,dom:!0})&&(zk(this.$n()).cleanVisibility(),this.zsync())},onHide:function(a){a=a.origin;this!=a&&"embedded"!=
this._mode&&this.isRealVisible({until:a,dom:!0})&&(this.$n().style.visibility="hidden",this.zsync())},onSize:function(){p(this);if(this._maximized&&this._lastSize){var a=this.$n();zk(a);var b="embedded"!=this._mode?jq(a).offsetParent():jq(a).parent();a=a.style;a.width=jq.px0(b[0].clientWidth-b.zk.paddingWidth());a.height=jq.px0(b[0].clientHeight-b.zk.paddingHeight())}this._fixHgh(!0);"modal"==this._mode?l(this,!0,!1,!0):l(this);this.zsync()},onFloatUp:function(a){if(this._visible&&"embedded"!=this._mode&&
!this._mask)if(a=a.origin,"popup"==this._mode){for(var b;a;a=a.parent){if(a==this){b||this.setTopmost();return}b=b||a.isFloating_()}this.setVisible(!1);this.fire("onOpen",{open:!1})}else for(;a;a=a.parent){if(a==this){this.setTopmost();break}if(a.isFloating_())break}},_fixHgh:function(a){if(a||this.isRealVisible()){a=this.$n();var b=a.style.height,c=this.$n("cave"),d=c.style.height;!b&&this._cssflex&&this._vflex&&(b=a.offsetHeight);b&&"auto"!=b?c.style.height=jq.px0(this._offsetHeight(a)):d&&"auto"!=
d&&(c.style.height="")}},_offsetHeight:function(a){return zk(a).offsetHeight()-this._titleHeight()-zk(a).padBorderHeight()},_titleHeight:function(){var a=this.getTitle()||this.caption?this.$n("cap"):null;return a?a.offsetHeight:0},_fireOnMove:function(a){var b=this.$n().style;b=v(this,b.left,b.top);this.fire("onMove",zk.copy({left:b[0],top:b[1]},a),{ignorable:!0})},setVisible:function(a){if(this._visible!=a){this._maximized?this.setMaximized(!1):this._minimized&&this.setMinimized(!1);var b=t(this._mode);
a?(l(this,b,!0,b),!b||this.parent&&!this.parent.isRealVisible()||(this.setTopmost(),g(this))):b&&f(this);this.$supers("setVisible",arguments);a||this.zsync()}},setHeight:function(a){this.$supers("setHeight",arguments);this.desktop&&zUtl.fireSized(this)},setWidth:function(a){this.$supers("setWidth",arguments);this.desktop&&zUtl.fireSized(this)},setTop:function(){p(this);this.$supers("setTop",arguments);this.zsync()},setLeft:function(){p(this);this.$supers("setLeft",arguments);this.zsync()},setZIndex:_zkf=
function(a){var b=this._zIndex;this.$supers("setZIndex",arguments);b!=a&&this.zsync()},setZindex:_zkf,focus_:function(a){var b=this.caption;if(!zk.mobile)for(var c=this.firstChild;c;c=c.nextSibling)if(c.desktop&&c!=b&&c.focus_(a))return!0;return b&&b.focus_(a)?!0:this._anchor?(this._anchor.focus(),!0):!1},doKeyDown_:function(a){var b=a.domTarget,c=a.keyCode;if("9"==c||"16"==c)this.$supers("doKeyDown_",arguments);else switch(b.id||(b=b.parentNode),b){case this.$n("close"):this.fire("onClose");break;
case this.$n("max"):this.setMaximized(!this._maximized);break;case this.$n("min"):this.setMinimized(!this._minimized);break;default:this.$supers("doKeyDown_",arguments)}},domClass_:function(a){var b=this.$supers(zul.wnd.Window,"domClass_",arguments),c=this._border;(c="normal"==c?"":"none"==c?"noborder":c)&&(b+=" "+this.$s(c));this.getTitle()||this.caption||(b+=" "+this.$s("noheader"));return b+=" "+this.$s(this._mode)},onChildVisible_:function(a){this.$supers("onChildVisible_",arguments);this.desktop&&
(this._shallSize=!0)},onChildAdded_:function(a){this.$supers("onChildAdded_",arguments);a.$instanceof(zul.wgt.Caption)&&(this.caption=a,this.rerender(this._skipper))},onChildRemoved_:function(a){this.$supers("onChildRemoved_",arguments);a==this.caption&&(this.caption=null,this.rerender(this._skipper));this.desktop&&(this._shallSize=!0)},insertChildHTML_:function(a,b,c){a.$instanceof(zul.wgt.Caption)||this.$supers("insertChildHTML_",arguments)},domStyle_:function(a){var b=this.$supers("domStyle_",
arguments);a&&a.visible||!this._minimized||(b="display:none;"+b);"embedded"!=this._mode&&(b="position:absolute;"+b);return b},bind_:function(a,b,c){this.$supers(w,"bind_",arguments);var m=this._mode;zWatch.listen({onSize:this});"embedded"!=m&&(zWatch.listen({onFloatUp:this,onHide:this,onShow:this}),this.setFloating_(!0),t(m)?h(this):d(this));this._sizable&&y(this);if(this._maximizable&&this._maximized){var e=this;c.push(function(){e._maximized=!1;e.setMaximized(!0,!0)})}"embedded"==this._mode||zk.css3||
(jq.onzsync(this),zWatch.listen({onResponse:this}));zWatch.listen({onCommandReady:this})},detach:function(){this.unbindChildren_();if(8<zk.ie||zk.chrome){var a=jq(this.$n()).find("iframe");a.length&&a.hide().remove()}this.$supers(w,"detach",arguments)},unbind_:function(){var a=this.$n();zk(a).beforeHideOnUnbind();a.style.visibility="hidden";zk.css3||jq.unzsync(this);this._shadowWgt&&(this._shadowWgt.destroy(),this._shadowWgt=null);this._drag&&(this._drag.destroy(),this._drag=null);this._sizer&&(this._sizer.destroy(),
this._sizer=null);this._mask&&(this._anchor&&(this._anchor=null),this._mask.destroy(),this._mask=null);if(9<zk.ie){var b=jq(this.$n()).find("iframe");b.length&&b.hide().remove()}zk(a).undoVParent();zWatch.unlisten({onFloatUp:this,onSize:this,onShow:this,onHide:this,onResponse:this,onCommandReady:this});this.setFloating_(!1);f(this);this.domUnlisten_(this.$n(),"onMouseMove");this.domUnlisten_(this.$n(),"onMouseOut");this.$supers(w,"unbind_",arguments)},_doMouseMove:function(a){if(this._sizer&&a.target==
this){var b=this.$n();a=this.$class._insizer(b,zk(b).revisedOffset(),a.pageX,a.pageY);var c="embedded"==this._mode?!1:this.$n("cap");!this._maximized&&a?(void 0==this._backupCursor&&(this._backupCursor=b.style.cursor),b.style.cursor=1==a?"n-resize":2==a?"ne-resize":3==a?"e-resize":4==a?"se-resize":5==a?"s-resize":6==a?"sw-resize":7==a?"w-resize":"nw-resize",c&&jq(c).removeClass(this.$s("header-move"))):(b.style.cursor=this._backupCursor||"",c&&jq(c).addClass(this.$s("header-move")))}},_doMouseOut:function(a){this.$n().style.cursor=
this._backupCursor||""},doClick_:function(a){var b=a.domTarget;b.id||(b=b.parentNode);if(b){switch(b){case this.$n("close"):this.fire("onClose");break;case this.$n("max"):this.setMaximized(!this._maximized);break;case this.$n("min"):this.setMinimized(!this._minimized);break;default:this.$supers("doClick_",arguments);return}a.stop()}this.$supers("doClick_",arguments)},afterChildrenMinFlex_:function(a){this.$supers("afterChildrenMinFlex_",arguments);t(this._mode)&&l(this,!0,!1,!0)},afterChildrenFlex_:function(a){this.$supers("afterChildrenFlex_",
arguments);t(this._mode)&&l(this,!0,!1,!0)},getChildMinSize_:function(a,b){var c=!0;b==this.caption&&(c="w"==a?!!b.$n().style.width:!!b.$n().style.height);return c?this.$supers("getChildMinSize_",arguments):0},getContentEdgeWidth_:function(a){if(this.caption&&a==this.caption.$n().offsetWidth){var b=this.$n(),c=this.caption;c=c?c.$n():b.firstChild;var d=zk(b).padBorderWidth();if(c){for(c=c.parentNode;c&&1==c.nodeType&&b!=c;){var e=zk(c);d+=e.padBorderWidth()+e.sumStyles("lr",jq.margins);c=c.parentNode}return d}return 0}return this.$supers("getContentEdgeWidth_",
arguments)},setFlexSizeH_:function(a,b,c,d){d&&(c+=this._titleHeight(a));this.$supers("setFlexSizeH_",arguments)},ignoreFlexSize_:function(a){return"embedded"!=this._mode},getClosableIconClass_:function(){return"z-icon-times"},getMaximizableIconClass_:function(){return"z-icon-expand"},getMaximizedIconClass_:function(){return"z-icon-compress"},getMinimizableIconClass_:function(){return"z-icon-minus"}},{_startsizing:function(a){p(a.control);zWatch.fire("onFloatUp",a.control)},_snapsizing:function(a,
b){return[6<=a.z_dir&&8>=a.z_dir?Math.max(b[0],0):b[0],8==a.z_dir||2>=a.z_dir?Math.max(b[1],0):b[1]]},_ghostsizing:function(a,b,c){c=a.control;a=a.node;p(c);c.setTopmost();var d=jq(a);jq(document.body).append('<div id="zk_ddghost" class="'+c.getZclass()+'-resize-faker" style="position:absolute;top:'+b[1]+"px;left:"+b[0]+"px;width:"+d.zk.offsetWidth()+"px;height:"+d.zk.offsetHeight()+"px;z-index:"+a.style.zIndex+'"><dl></dl></div>');return jq("#zk_ddghost")[0]},_endghostsizing:function(a,b){var c=
a.node;if(b){var d=zk(b).cmOffset(),e=b.style;b=d[0]-parseInt(e.left);d=d[1]-parseInt(e.top);a.z_szofs={top:jq.px(c.offsetTop-d),left:jq.px(c.offsetLeft-b),height:jq.px0(zk(c).revisedHeight(c.offsetHeight)),width:jq.px0(zk(c).revisedWidth(c.offsetWidth))}}},_insizer:function(a,b,c,d){var e=b[1]+a.offsetHeight;if(5>=c-b[0])return 5>=d-b[1]?8:5>=e-d?6:7;if(5>=b[0]+a.offsetWidth-c)return 5>=d-b[1]?2:5>=e-d?4:3;if(5>=d-b[1])return 1;if(5>=e-d)return 5},_ignoresizing:function(a,b,c){var d=a.node,e=a.control;
if(e._maximized||c.target!=e)return!0;c=zk(d).revisedOffset();return(b=e.$class._insizer(d,c,b[0],b[1]))?(a.z_dir=b,a.z_box={top:c[1],left:c[0],height:d.offsetHeight,width:d.offsetWidth,minHeight:zk.parseInt(e.getMinheight()),minWidth:zk.parseInt(e.getMinwidth())},a.z_orgzi=d.style.zIndex,!1):!0},_aftersizing:function(a,b){var c=a.control,d=a.z_szofs;c._hflex&&c.setHflex_(null);c._vflex&&c.setVflex_(null);c.fire("onSize",zk.copy(d,b.keys),{ignorable:!0});a.z_szofs=null},_drawsizing:function(a,b,c){if(8==
a.z_dir||2>=a.z_dir)c=a.z_box.height+a.z_box.top-b[1],c<a.z_box.minHeight&&(b[1]=a.z_box.height+a.z_box.top-a.z_box.minHeight,c=a.z_box.minHeight),a.node.style.height=jq.px0(c),a.node.style.top=jq.px(b[1]);4<=a.z_dir&&6>=a.z_dir&&(c=a.z_box.height+b[1]-a.z_box.top,c<a.z_box.minHeight&&(c=a.z_box.minHeight),a.node.style.height=jq.px0(c));6<=a.z_dir&&8>=a.z_dir&&(c=a.z_box.width+a.z_box.left-b[0],c<a.z_box.minWidth&&(b[0]=a.z_box.width+a.z_box.left-a.z_box.minWidth,c=a.z_box.minWidth),a.node.style.width=
jq.px0(c),a.node.style.left=jq.px(b[0]));2<=a.z_dir&&4>=a.z_dir&&(c=a.z_box.width+b[0]-a.z_box.left,c<a.z_box.minWidth&&(c=a.z_box.minWidth),a.node.style.width=jq.px0(c))},_startmove:function(a){var b=a.node;b.style.top&&0<=b.style.top.indexOf("%")&&(b.style.top=b.offsetTop+"px");b.style.left&&0<=b.style.left.indexOf("%")&&(b.style.left=b.offsetLeft+"px");zWatch.fire("onFloatUp",a.control)},_ghostmove:function(a,b,c){var d=a.control;c=a.node;var e=jq(c),f=e.find(">div:first")[0];f=jq(f).clone()[0];
var g=d.getZclass();p(d);jq(document.body).prepend('<div id="zk_wndghost" class="'+g+'-move-ghost" style="position:absolute;top:'+b[1]+"px; left:"+b[0]+"px;width:"+(e.width()+zk(c).padBorderWidth())+"px;height:"+(e.height()+zk(c).padBorderHeight())+"px;z-index:"+c.style.zIndex+'"><dl></dl></div>');a._wndoffs=b;c.style.visibility="hidden";a=c.offsetHeight-d._titleHeight(c);c=jq("#zk_wndghost")[0];b=c.firstChild;b.style.height=jq.px0(zk(b).revisedHeight(a));c.insertBefore(f,c.lastChild);return c},_endghostmove:function(a,
b){var c=a.node;b.style.top=jq.px(b.offsetTop+c.offsetTop-a._wndoffs[1]);b.style.left=jq.px(b.offsetLeft+c.offsetLeft-a._wndoffs[0]);document.body.style.cursor="";zWatch.fire("onMove")},_ignoremove:function(a,b,c){var d=a.node;a=a.control;c=c.domTarget;var e;c.id||(c=c.parentNode);switch(c){case a.$n("close"):case a.$n("max"):case a.$n("min"):return!0}return a!=(e=zk.Widget.$(c))&&a.caption!=e?!0:!a.isSizable()||d.offsetTop+4<b[1]&&d.offsetLeft+4<b[0]&&d.offsetLeft+d.offsetWidth-4>b[0]?!1:!0},_aftermove:function(a,
b){a.node.style.visibility="";a=a.control;a._position&&"parent"!=a._position&&"nocenter"!=a._position&&(a._position=null);a.zsync();a._fireOnMove(b.data);zk(a).redoCSS(-1,{fixFontIcon:!0})}});zul.wnd.Skipper=zk.$extends(zk.Skipper,{$init:function(a){this._w=a},restore:function(){this.$supers("restore",arguments);var a=this._w;"embedded"!=a._mode&&(l(a),a.zsync())}});zul.wnd.WindowRenderer={shallCheckBorder:function(a){return"popup"!=a._mode&&("embedded"!=a._mode||"none"!=a.getBorder())}}})();
