window.undefined=window.undefined;Ext={version:"3.4.0",versionDetail:{major:3,minor:4,patch:0}};Ext.apply=function(D,C,A){if(A){Ext.apply(D,A)}if(D&&C&&typeof C=="object"){for(var B in C){D[B]=C[B]}}return D};(function(){var AA=0,J=Object.prototype.toString,I=navigator.userAgent.toLowerCase(),S=function(A){return A.test(I)},Z=document,U=Z.documentMode,W=Z.compatMode=="CSS1Compat",N=S(/opera/),e=S(/\bchrome\b/),H=S(/webkit/),E=!e&&S(/safari/),AB=E&&S(/applewebkit\/4/),AE=E&&S(/version\/3/),M=E&&S(/version\/4/),K=!N&&S(/msie/),O=K&&(S(/msie 7/)||U==7),Q=K&&(S(/msie 8/)&&U!=7),R=K&&S(/msie 9/),L=K&&!O&&!Q&&!R,T=!H&&S(/gecko/),AC=T&&S(/rv:1\.8/),AF=T&&S(/rv:1\.9/),G=K&&!W,P=S(/windows|win32/),X=S(/macintosh|mac os x/),Y=S(/adobeair/),V=S(/linux/),AD=/^https/i.test(window.location.protocol);if(L){try{Z.execCommand("BackgroundImageCache",false,true)}catch(F){}}Ext.apply(Ext,{SSL_SECURE_URL:AD&&K?'javascript:""':"about:blank",isStrict:W,isSecure:AD,isReady:false,enableForcedBoxModel:false,enableGarbageCollector:true,enableListenerCollection:false,enableNestedListenerRemoval:false,USE_NATIVE_JSON:false,applyIf:function(B,A){if(B){for(var C in A){if(!Ext.isDefined(B[C])){B[C]=A[C]
}}}return B},id:function(B,A){B=Ext.getDom(B,true)||{};if(!B.id){B.id=(A||"ext-gen")+(++AA)}return B.id},extend:function(){var A=function(C){for(var D in C){this[D]=C[D]}};var B=Object.prototype.constructor;return function(C,b,D){if(typeof b=="object"){D=b;b=C;C=D.constructor!=B?D.constructor:function(){b.apply(this,arguments)}}var c=function(){},a,d=b.prototype;c.prototype=d;a=C.prototype=new c();a.constructor=C;C.superclass=d;if(d.constructor==B){d.constructor=b}C.override=function(f){Ext.override(C,f)};a.superclass=a.supr=(function(){return d});a.override=A;Ext.override(C,D);C.extend=function(f){return Ext.extend(C,f)};return C}}(),override:function(C,A){if(A){var B=C.prototype;Ext.apply(B,A);if(Ext.isIE&&A.hasOwnProperty("toString")){B.toString=A.toString}}},namespace:function(){var a=arguments.length,D=0,c,b,d,B,C,A;for(;D<a;++D){d=arguments[D];B=arguments[D].split(".");A=window[B[0]];if(A===undefined){A=window[B[0]]={}}C=B.slice(1);c=C.length;for(b=0;b<c;++b){A=A[C[b]]=A[C[b]]||{}}}return A},urlEncode:function(A,B){var D,a=[],C=encodeURIComponent;
Ext.iterate(A,function(c,b){D=Ext.isEmpty(b);Ext.each(D?c:b,function(d){a.push("&",C(c),"=",(!Ext.isEmpty(d)&&(d!=c||!D))?(Ext.isDate(d)?Ext.encode(d).replace(/"/g,""):C(d)):"")})});if(!B){a.shift();B=""}return B+a.join("")},urlDecode:function(a,b){if(Ext.isEmpty(a)){return{}}var B={},C=a.split("&"),A=decodeURIComponent,c,D;Ext.each(C,function(d){d=d.split("=");c=A(d[0]);D=A(d[1]);B[c]=b||!B[c]?D:[].concat(B[c]).concat(D)});return B},urlAppend:function(B,A){if(!Ext.isEmpty(A)){return B+(B.indexOf("?")===-1?"?":"&")+A}return B},toArray:function(){return K?function(D,A,C,B){B=[];for(var a=0,b=D.length;a<b;a++){B.push(D[a])}return B.slice(A||0,C||B.length)}:function(C,A,B){return Array.prototype.slice.call(C,A||0,B||C.length)}}(),isIterable:function(A){if(Ext.isArray(A)||A.callee){return true}if(/NodeList|HTMLCollection/.test(J.call(A))){return true}return((typeof A.nextNode!="undefined"||A.item)&&Ext.isNumber(A.length))},each:function(A,B,C){if(Ext.isEmpty(A,true)){return }if(!Ext.isIterable(A)||Ext.isPrimitive(A)){A=[A]
}for(var D=0,a=A.length;D<a;D++){if(B.call(C||A[D],A[D],D,A)===false){return D}}},iterate:function(B,C,D){if(Ext.isEmpty(B)){return }if(Ext.isIterable(B)){Ext.each(B,C,D);return }else{if(typeof B=="object"){for(var A in B){if(B.hasOwnProperty(A)){if(C.call(D||B,A,B[A],B)===false){return }}}}}},getDom:function(B,C){if(!B||!Z){return null}if(B.dom){return B.dom}else{if(typeof B=="string"){var A=Z.getElementById(B);if(A&&K&&C){if(B==A.getAttribute("id")){return A}else{return null}}return A}else{return B}}},getBody:function(){return Ext.get(Z.body||Z.documentElement)},getHead:function(){var A;return function(){if(A==undefined){A=Ext.get(Z.getElementsByTagName("head")[0])}return A}}(),removeNode:K&&!Q?function(){var A;return function(B){if(B&&B.tagName!="BODY"){(Ext.enableNestedListenerRemoval)?Ext.EventManager.purgeElement(B,true):Ext.EventManager.removeAll(B);A=A||Z.createElement("div");A.appendChild(B);A.innerHTML="";delete Ext.elCache[B.id]}}}():function(A){if(A&&A.parentNode&&A.tagName!="BODY"){(Ext.enableNestedListenerRemoval)?Ext.EventManager.purgeElement(A,true):Ext.EventManager.removeAll(A);
A.parentNode.removeChild(A);delete Ext.elCache[A.id]}},isEmpty:function(A,B){return A===null||A===undefined||((Ext.isArray(A)&&!A.length))||(!B?A==="":false)},isArray:function(A){return J.apply(A)==="[object Array]"},isDate:function(A){return J.apply(A)==="[object Date]"},isObject:function(A){return !!A&&Object.prototype.toString.call(A)==="[object Object]"},isPrimitive:function(A){return Ext.isString(A)||Ext.isNumber(A)||Ext.isBoolean(A)},isFunction:function(A){return J.apply(A)==="[object Function]"},isNumber:function(A){return typeof A==="number"&&isFinite(A)},isString:function(A){return typeof A==="string"},isBoolean:function(A){return typeof A==="boolean"},isElement:function(A){return A?!!A.tagName:false},isDefined:function(A){return typeof A!=="undefined"},isOpera:N,isWebKit:H,isChrome:e,isSafari:E,isSafari3:AE,isSafari4:M,isSafari2:AB,isIE:K,isIE6:L,isIE7:O,isIE8:Q,isIE9:R,isGecko:T,isGecko2:AC,isGecko3:AF,isBorderBox:G,isLinux:V,isWindows:P,isMac:X,isAir:Y});Ext.ns=Ext.namespace})();Ext.ns("Ext.util","Ext.lib","Ext.data","Ext.supports");
Ext.elCache={};Ext.apply(Function.prototype,{createInterceptor:function(A,B){var C=this;return !Ext.isFunction(A)?this:function(){var D=this,E=arguments;A.target=D;A.method=C;return(A.apply(B||D||window,E)!==false)?C.apply(D||window,E):null}},createCallback:function(){var B=arguments,A=this;return function(){return A.apply(window,B)}},createDelegate:function(D,A,B){var C=this;return function(){var E=A||arguments;if(B===true){E=Array.prototype.slice.call(arguments,0);E=E.concat(A)}else{if(Ext.isNumber(B)){E=Array.prototype.slice.call(arguments,0);var F=[B,0].concat(A);Array.prototype.splice.apply(E,F)}}return C.apply(D||window,E)}},defer:function(E,C,A,B){var D=this.createDelegate(C,A,B);if(E>0){return setTimeout(D,E)}D();return 0}});Ext.applyIf(String,{format:function(A){var B=Ext.toArray(arguments,1);return A.replace(/\{(\d+)\}/g,function(D,C){return B[C]})}});Ext.applyIf(Array.prototype,{indexOf:function(A,C){var B=this.length;C=C||0;C+=(C<0)?B:0;for(;C<B;++C){if(this[C]===A){return C}}return -1},remove:function(A){var B=this.indexOf(A);
if(B!=-1){this.splice(B,1)}return this}});Ext.util.TaskRunner=function(E){E=E||10;var D=[],I=[],H=0,C=false,F=function(){C=false;clearInterval(H);H=0},B=function(){if(!C){C=true;H=setInterval(A,E)}},G=function(J){I.push(J);if(J.onStop){J.onStop.apply(J.scope||J)}},A=function(){var K=I.length,P=new Date().getTime();if(K>0){for(var N=0;N<K;N++){D.remove(I[N])}I=[];if(D.length<1){F();return }}for(var N=0,O,L,J,M=D.length;N<M;++N){O=D[N];L=P-O.taskRunTime;if(O.interval<=L){J=O.run.apply(O.scope||O,O.args||[++O.taskRunCount]);O.taskRunTime=P;if(J===false||O.taskRunCount===O.repeat){G(O);return }}if(O.duration&&O.duration<=(P-O.taskStartTime)){G(O)}}};this.start=function(J){D.push(J);J.taskStartTime=new Date().getTime();J.taskRunTime=0;J.taskRunCount=0;B();return J};this.stop=function(J){G(J);return J};this.stopAll=function(){F();for(var J=0,K=D.length;J<K;J++){if(D[J].onStop){D[J].onStop()}}D=[];I=[]}};Ext.TaskMgr=new Ext.util.TaskRunner();(function(){var A;function C(D){if(!A){A=new Ext.Element.Flyweight()}A.dom=D;
return A}(function(){var E=document,G=E.compatMode=="CSS1Compat",F=Math.max,H=Math.round,D=parseInt;Ext.lib.Dom={isAncestor:function(J,I){var K=false;J=Ext.getDom(J);I=Ext.getDom(I);if(J&&I){if(J.contains){return J.contains(I)}else{if(J.compareDocumentPosition){return !!(J.compareDocumentPosition(I)&16)}else{while(I=I.parentNode){K=I==J||K}}}}return K},getViewWidth:function(I){return I?this.getDocumentWidth():this.getViewportWidth()},getViewHeight:function(I){return I?this.getDocumentHeight():this.getViewportHeight()},getDocumentHeight:function(){return F(!G?E.body.scrollHeight:E.documentElement.scrollHeight,this.getViewportHeight())},getDocumentWidth:function(){return F(!G?E.body.scrollWidth:E.documentElement.scrollWidth,this.getViewportWidth())},getViewportHeight:function(){return Ext.isIE?(Ext.isStrict?E.documentElement.clientHeight:E.body.clientHeight):self.innerHeight},getViewportWidth:function(){return !Ext.isStrict&&!Ext.isOpera?E.body.clientWidth:Ext.isIE?E.documentElement.clientWidth:self.innerWidth},getY:function(I){return this.getXY(I)[1]
},getX:function(I){return this.getXY(I)[0]},getXY:function(O){var P,J,U,R,N,M,S=0,I=0,T,Q,L=(E.body||E.documentElement),K=[0,0];O=Ext.getDom(O);if(O!=L){if(O.getBoundingClientRect){U=O.getBoundingClientRect();T=C(document).getScroll();K=[H(U.left+T.left),H(U.top+T.top)]}else{P=O;Q=C(O).isStyle("position","absolute");while(P){J=C(P);S+=P.offsetLeft;I+=P.offsetTop;Q=Q||J.isStyle("position","absolute");if(Ext.isGecko){I+=R=D(J.getStyle("borderTopWidth"),10)||0;S+=N=D(J.getStyle("borderLeftWidth"),10)||0;if(P!=O&&!J.isStyle("overflow","visible")){S+=N;I+=R}}P=P.offsetParent}if(Ext.isSafari&&Q){S-=L.offsetLeft;I-=L.offsetTop}if(Ext.isGecko&&!Q){M=C(L);S+=D(M.getStyle("borderLeftWidth"),10)||0;I+=D(M.getStyle("borderTopWidth"),10)||0}P=O.parentNode;while(P&&P!=L){if(!Ext.isOpera||(P.tagName!="TR"&&!C(P).isStyle("display","inline"))){S-=P.scrollLeft;I-=P.scrollTop}P=P.parentNode}K=[S,I]}}return K},setXY:function(L,K){(L=Ext.fly(L,"_setXY")).position();var J=L.translatePoints(K),M=L.dom.style,I;for(I in J){if(!isNaN(J[I])){M[I]=J[I]+"px"
}}},setX:function(I,J){this.setXY(I,[J,false])},setY:function(J,I){this.setXY(J,[false,I])}}})();Ext.lib.Event=function(){var J=false,AB={},F=0,V=[],AD,T=false,Z=window,L=document,Y=200,Q=20,U=0,b=1,O=2,I=3,M="scrollLeft",S="scrollTop",AA="unload",G="mouseover",N="mouseout",AC=function(){var D;if(Z.addEventListener){D=function(E,e,d,f){if(e=="mouseenter"){d=d.createInterceptor(W);E.addEventListener(G,d,(f))}else{if(e=="mouseleave"){d=d.createInterceptor(W);E.addEventListener(N,d,(f))}else{E.addEventListener(e,d,(f))}}return d}}else{if(Z.attachEvent){D=function(E,e,d,f){E.attachEvent("on"+e,d);return d}}else{D=function(){}}}return D}(),c=function(){var D;if(Z.removeEventListener){D=function(E,e,d,f){if(e=="mouseenter"){e=G}else{if(e=="mouseleave"){e=N}}E.removeEventListener(e,d,(f))}}else{if(Z.detachEvent){D=function(E,e,d){E.detachEvent("on"+e,d)}}else{D=function(){}}}return D}();function W(D){return !K(D.currentTarget,H.getRelatedTarget(D))}function K(E,D){if(E&&E.firstChild){while(D){if(D===E){return true}D=D.parentNode;
if(D&&(D.nodeType!=1)){D=null}}}return false}function R(){var g=false,D=[],d,e,h,f,E=!J||(F>0);if(!T){T=true;for(e=0;e<V.length;++e){h=V[e];if(h&&(d=L.getElementById(h.id))){if(!h.checkReady||J||d.nextSibling||(L&&L.body)){f=h.override;d=f?(f===true?h.obj:f):d;h.fn.call(d,h.obj);V.remove(h);--e}else{D.push(h)}}}F=(D.length===0)?0:F-1;if(E){X()}else{clearInterval(AD);AD=null}g=!(T=false)}return g}function X(){if(!AD){var D=function(){R()};AD=setInterval(D,Q)}}function P(){var E=L.documentElement,D=L.body;if(E&&(E[S]||E[M])){return[E[M],E[S]]}else{if(D){return[D[M],D[S]]}else{return[0,0]}}}function a(d,E){d=d.browserEvent||d;var D=d["page"+E];if(!D&&D!==0){D=d["client"+E]||0;if(Ext.isIE){D+=P()[E=="X"?0:1]}}return D}var H={extAdapter:true,onAvailable:function(E,e,D,d){V.push({id:E,fn:e,obj:D,override:d,checkReady:false});F=Y;X()},addListener:function(D,d,E){D=Ext.getDom(D);if(D&&E){if(d==AA){if(AB[D.id]===undefined){AB[D.id]=[]}AB[D.id].push([d,E]);return E}return AC(D,d,E,false)}return false},removeListener:function(D,f,E){D=Ext.getDom(D);
var d,g,h,e;if(D&&E){if(f==AA){if((e=AB[D.id])!==undefined){for(d=0,g=e.length;d<g;d++){if((h=e[d])&&h[U]==f&&h[b]==E){AB[D.id].splice(d,1)}}}return }c(D,f,E,false)}},getTarget:function(D){D=D.browserEvent||D;return this.resolveTextNode(D.target||D.srcElement)},resolveTextNode:Ext.isGecko?function(D){if(!D){return }var E=HTMLElement.prototype.toString.call(D);if(E=="[xpconnect wrapped native prototype]"||E=="[object XULElement]"){return }return D.nodeType==3?D.parentNode:D}:function(D){return D&&D.nodeType==3?D.parentNode:D},getRelatedTarget:function(D){D=D.browserEvent||D;return this.resolveTextNode(D.relatedTarget||(/(mouseout|mouseleave)/.test(D.type)?D.toElement:/(mouseover|mouseenter)/.test(D.type)?D.fromElement:null))},getPageX:function(D){return a(D,"X")},getPageY:function(D){return a(D,"Y")},getXY:function(D){return[this.getPageX(D),this.getPageY(D)]},stopEvent:function(D){this.stopPropagation(D);this.preventDefault(D)},stopPropagation:function(D){D=D.browserEvent||D;if(D.stopPropagation){D.stopPropagation()
}else{D.cancelBubble=true}},preventDefault:function(D){D=D.browserEvent||D;if(D.preventDefault){D.preventDefault()}else{if(D.keyCode){D.keyCode=0}D.returnValue=false}},getEvent:function(E){E=E||Z.event;if(!E){var D=this.getEvent.caller;while(D){E=D.arguments[0];if(E&&Event==E.constructor){break}D=D.caller}}return E},getCharCode:function(D){D=D.browserEvent||D;return D.charCode||D.keyCode||0},getListeners:function(D,E){Ext.EventManager.getListeners(D,E)},purgeElement:function(E,D,d){Ext.EventManager.purgeElement(E,D,d)},_load:function(D){J=true;if(Ext.isIE&&D!==true){c(Z,"load",arguments.callee)}},_unload:function(f){var i=Ext.lib.Event,h,E,e,j,g,D;for(j in AB){e=AB[j];for(h=0,g=e.length;h<g;h++){E=e[h];if(E){try{D=E[I]?(E[I]===true?E[O]:E[I]):Z;E[b].call(D,i.getEvent(f),E[O])}catch(d){}}}}Ext.EventManager._unload();c(Z,AA,i._unload)}};H.on=H.addListener;H.un=H.removeListener;if(L&&L.body){H._load(true)}else{AC(Z,"load",H._load)}AC(Z,AA,H._unload);R();return H}();Ext.lib.Ajax=function(){var O=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP"],R="Content-Type";
function N(T){var V=T.conn,S,U={};function W(X,Y){for(S in Y){if(Y.hasOwnProperty(S)){X.setRequestHeader(S,Y[S])}}}Ext.apply(U,K.headers,K.defaultHeaders);W(V,U);delete K.headers}function Q(S,T,U,V){return{tId:S,status:U?-1:0,statusText:U?"transaction aborted":"communication failure",isAbort:U,isTimeout:V,argument:T}}function L(T,S){(K.headers=K.headers||{})[T]=S}function F(a,W){var S={},X,Y=a.conn,U,T,Z=Y.status==1223;try{X=a.conn.getAllResponseHeaders();Ext.each(X.replace(/\r\n/g,"\n").split("\n"),function(b){U=b.indexOf(":");if(U>=0){T=b.substr(0,U).toLowerCase();if(b.charAt(U+1)==" "){++U}S[T]=b.substr(U+1)}})}catch(V){}return{tId:a.tId,status:Z?204:Y.status,statusText:Z?"No Content":Y.statusText,getResponseHeader:function(b){return S[b.toLowerCase()]},getAllResponseHeaders:function(){return X},responseText:Y.responseText,responseXML:Y.responseXML,argument:W}}function G(S){if(S.tId){K.conn[S.tId]=null}S.conn=null;S=null}function P(S,Y,W,X){if(!Y){G(S);return }var U,V;try{if(S.conn.status!==undefined&&S.conn.status!=0){U=S.conn.status
}else{U=13030}}catch(T){U=13030}if((U>=200&&U<300)||(Ext.isIE&&U==1223)){V=F(S,Y.argument);if(Y.success){if(!Y.scope){Y.success(V)}else{Y.success.apply(Y.scope,[V])}}}else{switch(U){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:V=Q(S.tId,Y.argument,(W?W:false),X);if(Y.failure){if(!Y.scope){Y.failure(V)}else{Y.failure.apply(Y.scope,[V])}}break;default:V=F(S,Y.argument);if(Y.failure){if(!Y.scope){Y.failure(V)}else{Y.failure.apply(Y.scope,[V])}}}}G(S);V=null}function I(V,S,X,T,W,U){if(X&&X.readyState==4){clearInterval(W[T]);W[T]=null;if(U){clearTimeout(K.timeout[T]);K.timeout[T]=null}P(V,S)}}function D(T,S){K.abort(T,S,true)}function H(V,S){S=S||{};var X=V.conn,T=V.tId,W=K.poll,U=S.timeout||null;if(U){K.conn[T]=X;K.timeout[T]=setTimeout(D.createCallback(V,S),U)}W[T]=setInterval(I.createCallback(V,S,X,T,W,U),K.pollInterval)}function M(S,V,T,W){var U=J()||null;if(U){U.conn.open(S,V,true);if(K.useDefaultXhrHeader){L("X-Requested-With",K.defaultXhrHeader)}if(W&&K.useDefaultHeader&&(!K.headers||!K.headers[R])){L(R,K.defaultPostHeader)
}if(K.defaultHeaders||K.headers){N(U)}H(U,T);U.conn.send(W||null)}return U}function J(){var S;try{if(S=E(K.transactionId)){K.transactionId++}}catch(T){}finally{return S}}function E(S){var V;try{V=new XMLHttpRequest()}catch(T){for(var U=Ext.isIE6?1:0;U<O.length;++U){try{V=new ActiveXObject(O[U]);break}catch(T){}}}finally{return{conn:V,tId:S}}}var K={request:function(a,Y,X,W,S){if(S){var V=this,Z=S.xmlData,U=S.jsonData,T;Ext.applyIf(V,S);if(Z||U){T=V.headers;if(!T||!T[R]){L(R,Z?"text/xml":"application/json")}W=Z||(!Ext.isPrimitive(U)?Ext.encode(U):U)}}return M(a||S.method||"POST",Y,X,W)},serializeForm:function(Z){var S=Z.elements||(document.forms[Z]||Ext.getDom(Z)).elements,X=false,T=encodeURIComponent,W,Y="",U,V;Ext.each(S,function(a){W=a.name;U=a.type;if(!a.disabled&&W){if(/select-(one|multiple)/i.test(U)){Ext.each(a.options,function(b){if(b.selected){V=b.hasAttribute?b.hasAttribute("value"):b.getAttributeNode("value").specified;Y+=String.format("{0}={1}&",T(W),T(V?b.value:b.text))}})}else{if(!(/file|undefined|reset|button/i.test(U))){if(!(/radio|checkbox/i.test(U)&&!a.checked)&&!(U=="submit"&&X)){Y+=T(W)+"="+T(a.value)+"&";
X=/submit/i.test(U)}}}}});return Y.substr(0,Y.length-1)},useDefaultHeader:true,defaultPostHeader:"application/x-www-form-urlencoded; charset=UTF-8",useDefaultXhrHeader:true,defaultXhrHeader:"XMLHttpRequest",poll:{},timeout:{},conn:{},pollInterval:50,transactionId:0,abort:function(U,S,X){var V=this,T=U.tId,W=false;if(V.isCallInProgress(U)){U.conn.abort();clearInterval(V.poll[T]);V.poll[T]=null;clearTimeout(K.timeout[T]);V.timeout[T]=null;P(U,S,(W=true),X)}return W},isCallInProgress:function(S){return S.conn&&!{0:true,4:true}[S.conn.readyState]}};return K}();(function(){var G=Ext.lib,E=/width|height|opacity|padding/i,H=/^((width|height)|(top|left))$/,J=/width|height|top$|bottom$|left$|right$/i,F=/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i,D=function(K){return typeof K!=="undefined"},I=function(){return new Date()};G.Anim={motion:function(P,L,O,N,M,K){return this.run(P,L,O,N,M,K,Ext.lib.Motion)},run:function(Q,L,O,N,M,R,K){K=K||Ext.lib.AnimBase;if(typeof N=="string"){N=Ext.lib.Easing[N]}var P=new K(Q,L,O,N);P.animateX(function(){if(Ext.isFunction(M)){M.call(R)
}});return P}};G.AnimBase=function(L,M,K,N){if(L){this.init(L,M,K,N)}};G.AnimBase.prototype={doMethod:function(M,N,L){var K=this;return K.method(K.curFrame,N,L-N,K.totalFrames)},setAttr:function(M,K,L){if(E.test(M)&&K<0){K=0}Ext.fly(this.el,"_anim").setStyle(M,K+L)},getAttr:function(M){var K=Ext.fly(this.el),N=K.getStyle(M),L=H.exec(M)||[];if(N!=="auto"&&!F.test(N)){return parseFloat(N)}return(!!(L[2])||(K.getStyle("position")=="absolute"&&!!(L[3])))?K.dom["offset"+L[0].charAt(0).toUpperCase()+L[0].substr(1)]:0},getDefaultUnit:function(K){return J.test(K)?"px":""},animateX:function(N,M){var L=this,K=function(){L.onComplete.removeListener(K);if(Ext.isFunction(N)){N.call(M||L,L)}};L.onComplete.addListener(K,L);L.animate()},setRunAttr:function(M){var K=this,V=this.attributes[M],U=V.to,L=V.by,T=V.from,S=V.unit,Q=(this.runAttrs[M]={}),P;if(!D(U)&&!D(L)){return false}var R=D(T)?T:K.getAttr(M);if(D(U)){P=U}else{if(D(L)){if(Ext.isArray(R)){P=[];for(var O=0,N=R.length;O<N;O++){P[O]=R[O]+L[O]}}else{P=R+L}}}Ext.apply(Q,{start:R,end:P,unit:D(S)?S:K.getDefaultUnit(M)})
},init:function(Q,M,N,R){var K=this,O=0,T=G.AnimMgr;Ext.apply(K,{isAnimated:false,startTime:null,el:Ext.getDom(Q),attributes:M||{},duration:N||1,method:R||G.Easing.easeNone,useSec:true,curFrame:0,totalFrames:T.fps,runAttrs:{},animate:function(){var V=this,U=V.duration;if(V.isAnimated){return false}V.curFrame=0;V.totalFrames=V.useSec?Math.ceil(T.fps*U):U;T.registerElement(V)},stop:function(V){var U=this;if(V){U.curFrame=U.totalFrames;U._onTween.fire()}T.stop(U)}});var S=function(){var U=this,V;U.onStart.fire();U.runAttrs={};for(V in this.attributes){this.setRunAttr(V)}U.isAnimated=true;U.startTime=I();O=0};var L=function(){var V=this;V.onTween.fire({duration:I()-V.startTime,curFrame:V.curFrame});var U=V.runAttrs;for(var W in U){this.setAttr(W,V.doMethod(W,U[W].start,U[W].end),U[W].unit)}++O};var P=function(){var W=this,U=(I()-W.startTime)/1000,V={duration:U,frames:O,fps:O/U};W.isAnimated=false;O=0;W.onComplete.fire(V)};K.onStart=new Ext.util.Event(K);K.onTween=new Ext.util.Event(K);K.onComplete=new Ext.util.Event(K);
(K._onStart=new Ext.util.Event(K)).addListener(S);(K._onTween=new Ext.util.Event(K)).addListener(L);(K._onComplete=new Ext.util.Event(K)).addListener(P)}};Ext.lib.AnimMgr=new function(){var O=this,K=null,L=[],M=0;Ext.apply(O,{fps:1000,delay:1,registerElement:function(Q){L.push(Q);++M;Q._onStart.fire();O.start()},unRegister:function(Q,R){Q._onComplete.fire();R=R||N(Q);if(R!=-1){L.splice(R,1)}if(--M<=0){O.stop()}},start:function(){if(K===null){K=setInterval(O.run,O.delay)}},stop:function(Q){if(!Q){clearInterval(K);for(var R=0,S=L.length;R<S;++R){if(L[0].isAnimated){O.unRegister(L[0],0)}}L=[];K=null;M=0}else{O.unRegister(Q)}},run:function(){var Q,R,T,S;for(R=0,T=L.length;R<T;R++){S=L[R];if(S&&S.isAnimated){Q=S.totalFrames;if(S.curFrame<Q||Q===null){++S.curFrame;if(S.useSec){P(S)}S._onTween.fire()}else{O.stop(S)}}}}});var N=function(Q){var R,S;for(R=0,S=L.length;R<S;R++){if(L[R]===Q){return R}}return -1};var P=function(V){var R=V.totalFrames,S=V.curFrame,T=V.duration,U=(S*T*1000/R),W=(I()-V.startTime),Q=0;if(W<T*1000){Q=Math.round((W/U-1)*S)
}else{Q=R-(S+1)}if(Q>0&&isFinite(Q)){if(V.curFrame+Q>=R){Q=R-(S+1)}V.curFrame+=Q}}};G.Bezier=new function(){this.getPosition=function(P,Q){var N=P.length,K=[],O=1-Q,L,M;for(L=0;L<N;++L){K[L]=[P[L][0],P[L][1]]}for(M=1;M<N;++M){for(L=0;L<N-M;++L){K[L][0]=O*K[L][0]+Q*K[parseInt(L+1,10)][0];K[L][1]=O*K[L][1]+Q*K[parseInt(L+1,10)][1]}}return[K[0][0],K[0][1]]}};G.Easing={easeNone:function(L,M,N,K){return N*L/K+M},easeIn:function(L,M,N,K){return N*(L/=K)*L+M},easeOut:function(L,M,N,K){return -N*(L/=K)*(L-2)+M}};(function(){G.Motion=function(P,Q,O,N){if(P){G.Motion.superclass.constructor.call(this,P,Q,O,N)}};Ext.extend(G.Motion,Ext.lib.AnimBase);var K=G.Motion.superclass,L=/^points$/i;Ext.apply(G.Motion.prototype,{setAttr:function(R,N,O){var P=this,Q=K.setAttr;if(L.test(R)){O=O||"px";Q.call(P,"left",N[0],O);Q.call(P,"top",N[1],O)}else{Q.call(P,R,N,O)}},getAttr:function(P){var N=this,O=K.getAttr;return L.test(P)?[O.call(N,"left"),O.call(N,"top")]:O.call(N,P)},doMethod:function(Q,N,P){var O=this;return L.test(Q)?G.Bezier.getPosition(O.runAttrs[Q],O.method(O.curFrame,0,100,O.totalFrames)/100):K.doMethod.call(O,Q,N,P)
},setRunAttr:function(Y){if(L.test(Y)){var W=this,P=this.el,T=this.attributes.points,a=T.control||[],V=T.from,U=T.to,X=T.by,R=G.Dom,Q,N,O,Z,S;if(a.length>0&&!Ext.isArray(a[0])){a=[a]}else{}Ext.fly(P,"_anim").position();R.setXY(P,D(V)?V:R.getXY(P));Q=W.getAttr("points");if(D(U)){O=M.call(W,U,Q);for(N=0,Z=a.length;N<Z;++N){a[N]=M.call(W,a[N],Q)}}else{if(D(X)){O=[Q[0]+X[0],Q[1]+X[1]];for(N=0,Z=a.length;N<Z;++N){a[N]=[Q[0]+a[N][0],Q[1]+a[N][1]]}}}S=this.runAttrs[Y]=[Q];if(a.length>0){S=S.concat(a)}S[S.length]=O}else{K.setRunAttr.call(this,Y)}}});var M=function(P,N){var O=G.Dom.getXY(this.el);return[P[0]-O[0]+N[0],P[1]-O[1]+N[1]]}})()})();(function(){var I=Math.abs,D=Math.PI,E=Math.asin,F=Math.pow,H=Math.sin,G=Ext.lib;Ext.apply(G.Easing,{easeBoth:function(L,M,J,K){return((L/=K/2)<1)?J/2*L*L+M:-J/2*((--L)*(L-2)-1)+M},easeInStrong:function(L,M,J,K){return J*(L/=K)*L*L*L+M},easeOutStrong:function(L,M,J,K){return -J*((L=L/K-1)*L*L*L-1)+M},easeBothStrong:function(L,M,J,K){return((L/=K/2)<1)?J/2*L*L*L*L+M:-J/2*((L-=2)*L*L*L-2)+M
},elasticIn:function(K,M,N,O,L,P){if(K==0||(K/=O)==1){return K==0?M:M+N}P=P||(O*0.3);var J;if(L>=I(N)){J=P/(2*D)*E(N/L)}else{L=N;J=P/4}return -(L*F(2,10*(K-=1))*H((K*O-J)*(2*D)/P))+M},elasticOut:function(K,M,N,O,L,P){if(K==0||(K/=O)==1){return K==0?M:M+N}P=P||(O*0.3);var J;if(L>=I(N)){J=P/(2*D)*E(N/L)}else{L=N;J=P/4}return L*F(2,-10*K)*H((K*O-J)*(2*D)/P)+N+M},elasticBoth:function(K,M,N,O,L,P){if(K==0||(K/=O/2)==2){return K==0?M:M+N}P=P||(O*(0.3*1.5));var J;if(L>=I(N)){J=P/(2*D)*E(N/L)}else{L=N;J=P/4}return K<1?-0.5*(L*F(2,10*(K-=1))*H((K*O-J)*(2*D)/P))+M:L*F(2,-10*(K-=1))*H((K*O-J)*(2*D)/P)*0.5+N+M},backIn:function(L,M,N,J,K){K=K||1.70158;return N*(L/=J)*L*((K+1)*L-K)+M},backOut:function(L,M,N,J,K){if(!K){K=1.70158}return N*((L=L/J-1)*L*((K+1)*L+K)+1)+M},backBoth:function(L,M,N,J,K){K=K||1.70158;return((L/=J/2)<1)?N/2*(L*L*(((K*=(1.525))+1)*L-K))+M:N/2*((L-=2)*L*(((K*=(1.525))+1)*L+K)+2)+M},bounceIn:function(L,M,J,K){return J-G.Easing.bounceOut(K-L,0,J,K)+M},bounceOut:function(L,M,J,K){if((L/=K)<(1/2.75)){return J*(7.5625*L*L)+M
}else{if(L<(2/2.75)){return J*(7.5625*(L-=(1.5/2.75))*L+0.75)+M}else{if(L<(2.5/2.75)){return J*(7.5625*(L-=(2.25/2.75))*L+0.9375)+M}}}return J*(7.5625*(L-=(2.625/2.75))*L+0.984375)+M},bounceBoth:function(L,M,J,K){return(L<K/2)?G.Easing.bounceIn(L*2,0,J,K)*0.5+M:G.Easing.bounceOut(L*2-K,0,J,K)*0.5+J*0.5+M}})})();(function(){var H=Ext.lib;H.Anim.color=function(P,R,O,N,M,Q){return H.Anim.run(P,R,O,N,M,Q,H.ColorAnim)};H.ColorAnim=function(P,M,O,N){H.ColorAnim.superclass.constructor.call(this,P,M,O,N)};Ext.extend(H.ColorAnim,H.AnimBase);var F=H.ColorAnim.superclass,G=/color$/i,J=/^transparent|rgba\(0, 0, 0, 0\)$/,D=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,L=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,K=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i,I=function(M){return typeof M!=="undefined"};function E(Q){var O=parseInt,P,M=null,N;if(Q.length==3){return Q}Ext.each([L,D,K],function(R,S){P=(S%2==0)?16:10;N=R.exec(Q);if(N&&N.length==4){M=[O(N[1],P),O(N[2],P),O(N[3],P)];return false}});return M}Ext.apply(H.ColorAnim.prototype,{getAttr:function(M){var O=this,P=O.el,N;
if(G.test(M)){while(P&&J.test(N=Ext.fly(P).getStyle(M))){P=P.parentNode;N="fff"}}else{N=F.getAttr.call(O,M)}return N},doMethod:function(U,R,P){var T=this,Q,N=Math.floor,O,M,S;if(G.test(U)){Q=[];P=P||[];for(O=0,M=R.length;O<M;O++){S=R[O];Q[O]=F.doMethod.call(T,U,S,P[O])}Q="rgb("+N(Q[0])+","+N(Q[1])+","+N(Q[2])+")"}else{Q=F.doMethod.call(T,U,R,P)}return Q},setRunAttr:function(M){var U=this,T=U.attributes[M],S=T.to,V=T.by,Q;F.setRunAttr.call(U,M);Q=U.runAttrs[M];if(G.test(M)){var R=E(Q.start),P=E(Q.end);if(!I(S)&&I(V)){P=E(V);for(var O=0,N=R.length;O<N;O++){P[O]=R[O]+P[O]}}Q.start=R;Q.end=P}}})})();(function(){var F=Ext.lib;F.Anim.scroll=function(I,K,H,G,L,J){return F.Anim.run(I,K,H,G,L,J,F.Scroll)};F.Scroll=function(I,J,H,G){if(I){F.Scroll.superclass.constructor.call(this,I,J,H,G)}};Ext.extend(F.Scroll,F.ColorAnim);var D=F.Scroll.superclass,E="scroll";Ext.apply(F.Scroll.prototype,{doMethod:function(M,G,L){var I,J=this,H=J.curFrame,K=J.totalFrames;if(M==E){I=[J.method(H,G[0],L[0]-G[0],K),J.method(H,G[1],L[1]-G[1],K)]
}else{I=D.doMethod.call(J,M,G,L)}return I},getAttr:function(H){var G=this;if(H==E){return[G.el.scrollLeft,G.el.scrollTop]}else{return D.getAttr.call(G,H)}},setAttr:function(J,G,H){var I=this;if(J==E){I.el.scrollLeft=G[0];I.el.scrollTop=G[1]}else{D.setAttr.call(I,J,G,H)}}})})();if(Ext.isIE){function B(){var D=Function.prototype;delete D.createSequence;delete D.defer;delete D.createDelegate;delete D.createCallback;delete D.createInterceptor;window.detachEvent("onunload",B)}window.attachEvent("onunload",B)}})();
(function(){var G=Ext.util,I=Ext.each,F=true,H=false;G.Observable=function(){var J=this,K=J.events;if(J.listeners){J.on(J.listeners);delete J.listeners}J.events=K||{}};G.Observable.prototype={filterOptRe:/^(?:scope|delay|buffer|single)$/,fireEvent:function(){var J=Array.prototype.slice.call(arguments,0),L=J[0].toLowerCase(),M=this,K=F,O=M.events[L],Q,N,P;if(M.eventsSuspended===F){if(N=M.eventQueue){N.push(J)}}else{if(typeof O=="object"){if(O.bubble){if(O.fire.apply(O,J.slice(1))===H){return H}P=M.getBubbleTarget&&M.getBubbleTarget();if(P&&P.enableBubble){Q=P.events[L];if(!Q||typeof Q!="object"||!Q.bubble){P.enableBubble(L)}return P.fireEvent.apply(P,J)}}else{J.shift();K=O.fire.apply(O,J)}}}return K},addListener:function(J,L,K,P){var M=this,O,Q,N;if(typeof J=="object"){P=J;for(O in P){Q=P[O];if(!M.filterOptRe.test(O)){M.addListener(O,Q.fn||Q,Q.scope||P.scope,Q.fn?Q:P)}}}else{J=J.toLowerCase();N=M.events[J]||F;if(typeof N=="boolean"){M.events[J]=N=new G.Event(M,J)}N.addListener(L,K,typeof P=="object"?P:{})}},removeListener:function(J,L,K){var M=this.events[J.toLowerCase()];
if(typeof M=="object"){M.removeListener(L,K)}},purgeListeners:function(){var L=this.events,J,K;for(K in L){J=L[K];if(typeof J=="object"){J.clearListeners()}}},addEvents:function(M){var L=this;L.events=L.events||{};if(typeof M=="string"){var J=arguments,K=J.length;while(K--){L.events[J[K]]=L.events[J[K]]||F}}else{Ext.applyIf(L.events,M)}},hasListener:function(J){var K=this.events[J.toLowerCase()];return typeof K=="object"&&K.listeners.length>0},suspendEvents:function(J){this.eventsSuspended=F;if(J&&!this.eventQueue){this.eventQueue=[]}},resumeEvents:function(){var J=this,K=J.eventQueue||[];J.eventsSuspended=H;delete J.eventQueue;I(K,function(L){J.fireEvent.apply(J,L)})}};var D=G.Observable.prototype;D.on=D.addListener;D.un=D.removeListener;G.Observable.releaseCapture=function(J){J.fireEvent=D.fireEvent};function E(K,L,J){return function(){if(L.target==arguments[0]){K.apply(J,Array.prototype.slice.call(arguments,0))}}}function B(L,M,J,K){J.task=new G.DelayedTask();return function(){J.task.delay(M.buffer,L,K,Array.prototype.slice.call(arguments,0))
}}function C(L,M,K,J){return function(){M.removeListener(K,J);return L.apply(J,arguments)}}function A(L,M,J,K){return function(){var N=new G.DelayedTask(),O=Array.prototype.slice.call(arguments,0);if(!J.tasks){J.tasks=[]}J.tasks.push(N);N.delay(M.delay||10,function(){J.tasks.remove(N);L.apply(K,O)},K)}}G.Event=function(K,J){this.name=J;this.obj=K;this.listeners=[]};G.Event.prototype={addListener:function(M,L,K){var N=this,J;L=L||N.obj;if(!N.isListening(M,L)){J=N.createListener(M,L,K);if(N.firing){N.listeners=N.listeners.slice(0)}N.listeners.push(J)}},createListener:function(M,L,N){N=N||{};L=L||this.obj;var J={fn:M,scope:L,options:N},K=M;if(N.target){K=E(K,N,L)}if(N.delay){K=A(K,N,J,L)}if(N.single){K=C(K,this,M,L)}if(N.buffer){K=B(K,N,J,L)}J.fireFn=K;return J},findListener:function(M,L){var N=this.listeners,K=N.length,J;L=L||this.obj;while(K--){J=N[K];if(J){if(J.fn==M&&J.scope==L){return K}}}return -1},isListening:function(K,J){return this.findListener(K,J)!=-1},removeListener:function(O,N){var M,J,K,P=this,L=H;
if((M=P.findListener(O,N))!=-1){if(P.firing){P.listeners=P.listeners.slice(0)}J=P.listeners[M];if(J.task){J.task.cancel();delete J.task}K=J.tasks&&J.tasks.length;if(K){while(K--){J.tasks[K].cancel()}delete J.tasks}P.listeners.splice(M,1);L=F}return L},clearListeners:function(){var L=this,J=L.listeners,K=J.length;while(K--){L.removeListener(J[K].fn,J[K].scope)}},fire:function(){var O=this,N=O.listeners,J=N.length,M=0,K;if(J>0){O.firing=F;var L=Array.prototype.slice.call(arguments,0);for(;M<J;M++){K=N[M];if(K&&K.fireFn.apply(K.scope||O.obj||window,L)===H){return(O.firing=H)}}}O.firing=H;return F}}})();Ext.DomHelper=function(){var W=null,J=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,L=/^table|tbody|tr|td$/i,D=/tag|children|cn|html$/i,S=/td|tr|tbody/i,N=/([a-z0-9-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,U=/end/i,Q,M="afterbegin",O="afterend",C="beforebegin",P="beforeend",A="<table>",H="</table>",B=A+"<tbody>",I="</tbody>"+H,K=B+"<tr>",V="</tr>"+I;function G(a,c,b,d,Z,X){var Y=Q.insertHtml(d,Ext.getDom(a),T(c));
return b?Ext.get(Y,true):Y}function T(d){var Y="",X,c,a,e;if(typeof d=="string"){Y=d}else{if(Ext.isArray(d)){for(var Z=0;Z<d.length;Z++){if(d[Z]){Y+=T(d[Z])}}}else{Y+="<"+(d.tag=d.tag||"div");for(X in d){c=d[X];if(!D.test(X)){if(typeof c=="object"){Y+=" "+X+'="';for(a in c){Y+=a+":"+c[a]+";"}Y+='"'}else{Y+=" "+({cls:"class",htmlFor:"for"}[X]||X)+'="'+c+'"'}}}if(J.test(d.tag)){Y+="/>"}else{Y+=">";if((e=d.children||d.cn)){Y+=T(e)}else{if(d.html){Y+=d.html}}Y+="</"+d.tag+">"}}}return Y}function F(g,b,a,c){W.innerHTML=[b,a,c].join("");var X=-1,Z=W,Y;while(++X<g){Z=Z.firstChild}if(Y=Z.nextSibling){var d=document.createDocumentFragment();while(Z){Y=Z.nextSibling;d.appendChild(Z);Z=Y}Z=d}return Z}function E(X,Y,a,Z){var b,c;W=W||document.createElement("div");if(X=="td"&&(Y==M||Y==P)||!S.test(X)&&(Y==C||Y==O)){return }c=Y==C?a:Y==O?a.nextSibling:Y==M?a.firstChild:null;if(Y==C||Y==O){a=a.parentNode}if(X=="td"||(X=="tr"&&(Y==P||Y==M))){b=F(4,K,Z,V)}else{if((X=="tbody"&&(Y==P||Y==M))||(X=="tr"&&(Y==C||Y==O))){b=F(3,B,Z,I)
}else{b=F(2,A,Z,H)}}a.insertBefore(b,c);return b}function R(Z){var c=document.createElement("div"),X=document.createDocumentFragment(),Y=0,a,b;c.innerHTML=Z;b=c.childNodes;a=b.length;for(;Y<a;Y++){X.appendChild(b[Y].cloneNode(true))}return X}Q={markup:function(X){return T(X)},applyStyles:function(X,Y){if(Y){var Z;X=Ext.fly(X);if(typeof Y=="function"){Y=Y.call()}if(typeof Y=="string"){N.lastIndex=0;while((Z=N.exec(Y))){X.setStyle(Z[1],Z[2])}}else{if(typeof Y=="object"){X.setStyle(Y)}}}},insertHtml:function(c,X,d){var a={},Z,e,b,g,h,Y;c=c.toLowerCase();a[C]=["BeforeBegin","previousSibling"];a[O]=["AfterEnd","nextSibling"];if(X.insertAdjacentHTML){if(L.test(X.tagName)&&(Y=E(X.tagName.toLowerCase(),c,X,d))){return Y}a[M]=["AfterBegin","firstChild"];a[P]=["BeforeEnd","lastChild"];if((Z=a[c])){X.insertAdjacentHTML(Z[0],d);return X[Z[1]]}}else{e=X.ownerDocument.createRange();g="setStart"+(U.test(c)?"After":"Before");if(a[c]){e[g](X);if(!e.createContextualFragment){h=R(d)}else{h=e.createContextualFragment(d)}X.parentNode.insertBefore(h,c==C?X:X.nextSibling);
return X[(c==C?"previous":"next")+"Sibling"]}else{b=(c==M?"first":"last")+"Child";if(X.firstChild){e[g](X[b]);if(!e.createContextualFragment){h=R(d)}else{h=e.createContextualFragment(d)}if(c==M){X.insertBefore(h,X.firstChild)}else{X.appendChild(h)}}else{X.innerHTML=d}return X[b]}}throw'Illegal insertion point -> "'+c+'"'},insertBefore:function(X,Z,Y){return G(X,Z,Y,C)},insertAfter:function(X,Z,Y){return G(X,Z,Y,O,"nextSibling")},insertFirst:function(X,Z,Y){return G(X,Z,Y,M,"firstChild")},append:function(X,Z,Y){return G(X,Z,Y,P,"",true)},overwrite:function(X,Z,Y){X=Ext.getDom(X);X.innerHTML=T(Z);return Y?Ext.get(X.firstChild):X.firstChild},createHtml:T};return Q}();Ext.Template=function(F){var G=this,B=arguments,D=[],C;if(Ext.isArray(F)){F=F.join("")}else{if(B.length>1){for(var E=0,A=B.length;E<A;E++){C=B[E];if(typeof C=="object"){Ext.apply(G,C)}else{D.push(C)}}F=D.join("")}}G.html=F;if(G.compiled){G.compile()}};Ext.Template.prototype={re:/\{([\w\-]+)\}/g,applyTemplate:function(A){var B=this;return B.compiled?B.compiled(A):B.html.replace(B.re,function(C,D){return A[D]!==undefined?A[D]:""
})},set:function(A,C){var B=this;B.html=A;B.compiled=null;return C?B.compile():B},compile:function(){var me=this,sep=Ext.isGecko?"+":",";function fn(m,name){name="values['"+name+"']";return"'"+sep+"("+name+" == undefined ? '' : "+name+")"+sep+"'"}eval("this.compiled = function(values){ return "+(Ext.isGecko?"'":"['")+me.html.replace(/\\/g,"\\\\").replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn)+(Ext.isGecko?"';};":"'].join('');};"));return me},insertFirst:function(B,A,C){return this.doInsert("afterBegin",B,A,C)},insertBefore:function(B,A,C){return this.doInsert("beforeBegin",B,A,C)},insertAfter:function(B,A,C){return this.doInsert("afterEnd",B,A,C)},append:function(B,A,C){return this.doInsert("beforeEnd",B,A,C)},doInsert:function(C,E,B,A){E=Ext.getDom(E);var D=Ext.DomHelper.insertHtml(C,E,this.applyTemplate(B));return A?Ext.get(D,true):D},overwrite:function(B,A,C){B=Ext.getDom(B);B.innerHTML=this.applyTemplate(A);return C?Ext.get(B.firstChild,true):B.firstChild}};Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate;
Ext.Template.from=function(B,A){B=Ext.getDom(B);return new Ext.Template(B.value||B.innerHTML,A||"")};Ext.DomQuery=function(){var cache={},simpleCache={},valueCache={},nonSpace=/\S/,trimRe=/^\s+|\s+$/g,tplRe=/\{(\d+)\}/g,modeRe=/^(\s?[\/>+~]\s?|\s|$)/,tagTokenRe=/^(#)?([\w\-\*]+)/,nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/,isIE=window.ActiveXObject?true:false,key=30803;eval("var batch = 30803;");function child(parent,index){var i=0,n=parent.firstChild;while(n){if(n.nodeType==1){if(++i==index){return n}}n=n.nextSibling}return null}function next(n){while((n=n.nextSibling)&&n.nodeType!=1){}return n}function prev(n){while((n=n.previousSibling)&&n.nodeType!=1){}return n}function children(parent){var n=parent.firstChild,nodeIndex=-1,nextNode;while(n){nextNode=n.nextSibling;if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){parent.removeChild(n)}else{n.nodeIndex=++nodeIndex}n=nextNode}return this}function byClassName(nodeSet,cls){if(!cls){return nodeSet}var result=[],ri=-1;for(var i=0,ci;ci=nodeSet[i];i++){if((" "+ci.className+" ").indexOf(cls)!=-1){result[++ri]=ci
}}return result}function attrValue(n,attr){if(!n.tagName&&typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(attr=="for"){return n.htmlFor}if(attr=="class"||attr=="className"){return n.className}return n.getAttribute(attr)||n[attr]}function getNodes(ns,mode,tagName){var result=[],ri=-1,cs;if(!ns){return result}tagName=tagName||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns]}if(!mode){for(var i=0,ni;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);for(var j=0,ci;ci=cs[j];j++){result[++ri]=ci}}}else{if(mode=="/"||mode==">"){var utag=tagName.toUpperCase();for(var i=0,ni,cn;ni=ns[i];i++){cn=ni.childNodes;for(var j=0,cj;cj=cn[j];j++){if(cj.nodeName==utag||cj.nodeName==tagName||tagName=="*"){result[++ri]=cj}}}}else{if(mode=="+"){var utag=tagName.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(n&&(n.nodeName==utag||n.nodeName==tagName||tagName=="*")){result[++ri]=n}}}else{if(mode=="~"){var utag=tagName.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)){if(n.nodeName==utag||n.nodeName==tagName||tagName=="*"){result[++ri]=n
}}}}}}}return result}function concat(a,b){if(b.slice){return a.concat(b)}for(var i=0,l=b.length;i<l;i++){a[a.length]=b[i]}return a}function byTag(cs,tagName){if(cs.tagName||cs==document){cs=[cs]}if(!tagName){return cs}var result=[],ri=-1;tagName=tagName.toLowerCase();for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){result[++ri]=ci}}return result}function byId(cs,id){if(cs.tagName||cs==document){cs=[cs]}if(!id){return cs}var result=[],ri=-1;for(var i=0,ci;ci=cs[i];i++){if(ci&&ci.id==id){result[++ri]=ci;return result}}return result}function byAttribute(cs,attr,value,op,custom){var result=[],ri=-1,useGetStyle=custom=="{",fn=Ext.DomQuery.operators[op],a,xml,hasXml;for(var i=0,ci;ci=cs[i];i++){if(ci.nodeType!=1){continue}if(!hasXml){xml=Ext.DomQuery.isXml(ci);hasXml=true}if(!xml){if(useGetStyle){a=Ext.DomQuery.getStyle(ci,attr)}else{if(attr=="class"||attr=="className"){a=ci.className}else{if(attr=="for"){a=ci.htmlFor}else{if(attr=="href"){a=ci.getAttribute("href",2)}else{a=ci.getAttribute(attr)
}}}}}else{a=ci.getAttribute(attr)}if((fn&&fn(a,value))||(!fn&&a)){result[++ri]=ci}}return result}function byPseudo(cs,name,value){return Ext.DomQuery.pseudos[name](cs,value)}function nodupIEXml(cs){var d=++key,r;cs[0].setAttribute("_nodup",d);r=[cs[0]];for(var i=1,len=cs.length;i<len;i++){var c=cs[i];if(!c.getAttribute("_nodup")!=d){c.setAttribute("_nodup",d);r[r.length]=c}}for(var i=0,len=cs.length;i<len;i++){cs[i].removeAttribute("_nodup")}return r}function nodup(cs){if(!cs){return[]}var len=cs.length,c,i,r=cs,cj,ri=-1;if(!len||typeof cs.nodeType!="undefined"||len==1){return cs}if(isIE&&typeof cs[0].selectSingleNode!="undefined"){return nodupIEXml(cs)}var d=++key;cs[0]._nodup=d;for(i=1;c=cs[i];i++){if(c._nodup!=d){c._nodup=d}else{r=[];for(var j=0;j<i;j++){r[++ri]=cs[j]}for(j=i+1;cj=cs[j];j++){if(cj._nodup!=d){cj._nodup=d;r[++ri]=cj}}return r}}return r}function quickDiffIEXml(c1,c2){var d=++key,r=[];for(var i=0,len=c1.length;i<len;i++){c1[i].setAttribute("_qdiff",d)}for(var i=0,len=c2.length;i<len;i++){if(c2[i].getAttribute("_qdiff")!=d){r[r.length]=c2[i]
}}for(var i=0,len=c1.length;i<len;i++){c1[i].removeAttribute("_qdiff")}return r}function quickDiff(c1,c2){var len1=c1.length,d=++key,r=[];if(!len1){return c2}if(isIE&&typeof c1[0].selectSingleNode!="undefined"){return quickDiffIEXml(c1,c2)}for(var i=0;i<len1;i++){c1[i]._qdiff=d}for(var i=0,len=c2.length;i<len;i++){if(c2[i]._qdiff!=d){r[r.length]=c2[i]}}return r}function quickId(ns,mode,root,id){if(ns==root){var d=root.ownerDocument||root;return d.getElementById(id)}ns=getNodes(ns,mode,"*");return byId(ns,id)}return{getStyle:function(el,name){return Ext.fly(el).getStyle(name)},compile:function(path,type){type=type||"select";var fn=["var f = function(root){\n var mode; ++batch; var n = root || document;\n"],mode,lastPath,matchers=Ext.DomQuery.matchers,matchersLn=matchers.length,modeMatch,lmode=path.match(modeRe);if(lmode&&lmode[1]){fn[fn.length]='mode="'+lmode[1].replace(trimRe,"")+'";';path=path.replace(lmode[1],"")}while(path.substr(0,1)=="/"){path=path.substr(1)}while(path&&lastPath!=path){lastPath=path;var tokenMatch=path.match(tagTokenRe);
if(type=="select"){if(tokenMatch){if(tokenMatch[1]=="#"){fn[fn.length]='n = quickId(n, mode, root, "'+tokenMatch[2]+'");'}else{fn[fn.length]='n = getNodes(n, mode, "'+tokenMatch[2]+'");'}path=path.replace(tokenMatch[0],"")}else{if(path.substr(0,1)!="@"){fn[fn.length]='n = getNodes(n, mode, "*");'}}}else{if(tokenMatch){if(tokenMatch[1]=="#"){fn[fn.length]='n = byId(n, "'+tokenMatch[2]+'");'}else{fn[fn.length]='n = byTag(n, "'+tokenMatch[2]+'");'}path=path.replace(tokenMatch[0],"")}}while(!(modeMatch=path.match(modeRe))){var matched=false;for(var j=0;j<matchersLn;j++){var t=matchers[j];var m=path.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(x,i){return m[i]});path=path.replace(m[0],"");matched=true;break}}if(!matched){throw'Error parsing selector, parsing failed at "'+path+'"'}}if(modeMatch[1]){fn[fn.length]='mode="'+modeMatch[1].replace(trimRe,"")+'";';path=path.replace(modeMatch[1],"")}}fn[fn.length]="return nodup(n);\n}";eval(fn.join(""));return f},jsSelect:function(path,root,type){root=root||document;
if(typeof root=="string"){root=document.getElementById(root)}var paths=path.split(","),results=[];for(var i=0,len=paths.length;i<len;i++){var subPath=paths[i].replace(trimRe,"");if(!cache[subPath]){cache[subPath]=Ext.DomQuery.compile(subPath);if(!cache[subPath]){throw subPath+" is not a valid selector"}}var result=cache[subPath](root);if(result&&result!=document){results=results.concat(result)}}if(paths.length>1){return nodup(results)}return results},isXml:function(el){var docEl=(el?el.ownerDocument||el:0).documentElement;return docEl?docEl.nodeName!=="HTML":false},select:document.querySelectorAll?function(path,root,type){root=root||document;if(!Ext.DomQuery.isXml(root)){try{var cs=root.querySelectorAll(path);return Ext.toArray(cs)}catch(ex){}}return Ext.DomQuery.jsSelect.call(this,path,root,type)}:function(path,root,type){return Ext.DomQuery.jsSelect.call(this,path,root,type)},selectNode:function(path,root){return Ext.DomQuery.select(path,root)[0]},selectValue:function(path,root,defaultValue){path=path.replace(trimRe,"");
if(!valueCache[path]){valueCache[path]=Ext.DomQuery.compile(path,"select")}var n=valueCache[path](root),v;n=n[0]?n[0]:n;if(typeof n.normalize=="function"){n.normalize()}v=(n&&n.firstChild?n.firstChild.nodeValue:null);return((v===null||v===undefined||v==="")?defaultValue:v)},selectNumber:function(path,root,defaultValue){var v=Ext.DomQuery.selectValue(path,root,defaultValue||0);return parseFloat(v)},is:function(el,ss){if(typeof el=="string"){el=document.getElementById(el)}var isArray=Ext.isArray(el),result=Ext.DomQuery.filter(isArray?el:[el],ss);return isArray?(result.length==el.length):(result.length>0)},filter:function(els,ss,nonMatches){ss=ss.replace(trimRe,"");if(!simpleCache[ss]){simpleCache[ss]=Ext.DomQuery.compile(ss,"simple")}var result=simpleCache[ss](els);return nonMatches?quickDiff(result,els):result},matchers:[{re:/^\.([\w\-]+)/,select:'n = byClassName(n, " {1} ");'},{re:/^\:([\w\-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w\-]+)\s?(?:(=|.=)\s?(["']?)(.*?)\4)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{5}", "{3}", "{1}");'},{re:/^#([\w\-]+)/,select:'n = byId(n, "{1}");'},{re:/^@([\w\-]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],operators:{"=":function(a,v){return a==v
},"!=":function(a,v){return a!=v},"^=":function(a,v){return a&&a.substr(0,v.length)==v},"$=":function(a,v){return a&&a.substr(a.length-v.length)==v},"*=":function(a,v){return a&&a.indexOf(v)!==-1},"%=":function(a,v){return(a%v)==0},"|=":function(a,v){return a&&(a==v||a.substr(0,v.length+1)==v+"-")},"~=":function(a,v){return a&&(" "+a+" ").indexOf(" "+v+" ")!=-1}},pseudos:{"first-child":function(c){var r=[],ri=-1,n;for(var i=0,ci;ci=n=c[i];i++){while((n=n.previousSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci}}return r},"last-child":function(c){var r=[],ri=-1,n;for(var i=0,ci;ci=n=c[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci}}return r},"nth-child":function(c,a){var r=[],ri=-1,m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!nthRe2.test(a)&&"n+"+a||a),f=(m[1]||1)-0,l=m[2]-0;for(var i=0,n;n=c[i];i++){var pn=n.parentNode;if(batch!=pn._batch){var j=0;for(var cn=pn.firstChild;cn;cn=cn.nextSibling){if(cn.nodeType==1){cn.nodeIndex=++j}}pn._batch=batch}if(f==1){if(l==0||n.nodeIndex==l){r[++ri]=n}}else{if((n.nodeIndex+l)%f==0){r[++ri]=n
}}}return r},"only-child":function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(!prev(ci)&&!next(ci)){r[++ri]=ci}}return r},"empty":function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var cns=ci.childNodes,j=0,cn,empty=true;while(cn=cns[j]){++j;if(cn.nodeType==1||cn.nodeType==3){empty=false;break}}if(empty){r[++ri]=ci}}return r},"contains":function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if((ci.textContent||ci.innerText||"").indexOf(v)!=-1){r[++ri]=ci}}return r},"nodeValue":function(c,v){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.firstChild&&ci.firstChild.nodeValue==v){r[++ri]=ci}}return r},"checked":function(c){var r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(ci.checked==true){r[++ri]=ci}}return r},"not":function(c,ss){return Ext.DomQuery.filter(c,ss,true)},"any":function(c,selectors){var ss=selectors.split("|"),r=[],ri=-1,s;for(var i=0,ci;ci=c[i];i++){for(var j=0;s=ss[j];j++){if(Ext.DomQuery.is(ci,s)){r[++ri]=ci;break}}}return r},"odd":function(c){return this["nth-child"](c,"odd")},"even":function(c){return this["nth-child"](c,"even")
},"nth":function(c,a){return c[a-1]||[]},"first":function(c){return c[0]||[]},"last":function(c){return c[c.length-1]||[]},"has":function(c,ss){var s=Ext.DomQuery.select,r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){if(s(ss,ci).length>0){r[++ri]=ci}}return r},"next":function(c,ss){var is=Ext.DomQuery.is,r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var n=next(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},"prev":function(c,ss){var is=Ext.DomQuery.is,r=[],ri=-1;for(var i=0,ci;ci=c[i];i++){var n=prev(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r}}}}();Ext.query=Ext.DomQuery.select;Ext.util.DelayedTask=function(D,C,A){var E=this,F,B=function(){clearInterval(F);F=null;D.apply(C,A||[])};E.delay=function(H,J,I,G){E.cancel();D=J||D;C=I||C;A=G||A;F=setInterval(B,H)};E.cancel=function(){if(F){clearInterval(F);F=null}}};(function(){var G=document;Ext.Element=function(K,L){var M=typeof K=="string"?G.getElementById(K):K,N;if(!M){return null}N=M.id;if(!L&&N&&Ext.elCache[N]){return Ext.elCache[N].el}this.dom=M;this.id=N||Ext.id(M)};var D=Ext.DomHelper,E=Ext.Element,A=Ext.elCache;
E.prototype={set:function(O,L){var M=this.dom,K,N,L=(L!==false)&&!!M.setAttribute;for(K in O){if(O.hasOwnProperty(K)){N=O[K];if(K=="style"){D.applyStyles(M,N)}else{if(K=="cls"){M.className=N}else{if(L){M.setAttribute(K,N)}else{M[K]=N}}}}}return this},defaultUnit:"px",is:function(K){return Ext.DomQuery.is(this.dom,K)},focus:function(N,M){var K=this,M=M||K.dom;try{if(Number(N)){K.focus.defer(N,null,[null,M])}else{M.focus()}}catch(L){}return K},blur:function(){try{this.dom.blur()}catch(K){}return this},getValue:function(K){var L=this.dom.value;return K?parseInt(L,10):L},addListener:function(K,N,M,L){Ext.EventManager.on(this.dom,K,N,M||this,L);return this},removeListener:function(K,M,L){Ext.EventManager.removeListener(this.dom,K,M,L||this);return this},removeAllListeners:function(){Ext.EventManager.removeAll(this.dom);return this},purgeAllListeners:function(){Ext.EventManager.purgeElement(this,true);return this},addUnits:function(K){if(K===""||K=="auto"||K===undefined){K=K||""}else{if(!isNaN(K)||!H.test(K)){K=K+(this.defaultUnit||"px")
}}return K},load:function(L,M,K){Ext.Ajax.request(Ext.apply({params:M,url:L.url||L,callback:K,el:this.dom,indicatorText:L.indicatorText||""},Ext.isObject(L)?L:{}));return this},isBorderBox:function(){return Ext.isBorderBox||Ext.isForcedBorderBox||F[(this.dom.tagName||"").toLowerCase()]},remove:function(){var K=this,L=K.dom;if(L){delete K.dom;Ext.removeNode(L)}},hover:function(L,K,N,M){var O=this;O.on("mouseenter",L,N||O.dom,M);O.on("mouseleave",K,N||O.dom,M);return O},contains:function(K){return !K?false:Ext.lib.Dom.isAncestor(this.dom,K.dom?K.dom:K)},getAttributeNS:function(L,K){return this.getAttribute(K,L)},getAttribute:(function(){var O=document.createElement("table"),N=false,L="getAttribute" in O,K=/undefined|unknown/;if(L){try{O.getAttribute("ext:qtip")}catch(M){N=true}return function(P,R){var Q=this.dom,S;if(Q.getAttributeNS){S=Q.getAttributeNS(R,P)||null}if(S==null){if(R){if(N&&Q.tagName.toUpperCase()=="TABLE"){try{S=Q.getAttribute(R+":"+P)}catch(T){S=""}}else{S=Q.getAttribute(R+":"+P)}}else{S=Q.getAttribute(P)||Q[P]
}}return S||""}}else{return function(P,R){var Q=this.om,T,S;if(R){S=Q[R+":"+P];T=K.test(typeof S)?undefined:S}else{T=Q[P]}return T||""}}O=null})(),update:function(K){if(this.dom){this.dom.innerHTML=K}return this}};var J=E.prototype;E.addMethods=function(K){Ext.apply(J,K)};J.on=J.addListener;J.un=J.removeListener;J.autoBoxAdjust=true;var H=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,C;E.get=function(L){var K,O,N;if(!L){return null}if(typeof L=="string"){if(!(O=G.getElementById(L))){return null}if(A[L]&&A[L].el){K=A[L].el;K.dom=O}else{K=E.addToCache(new E(O))}return K}else{if(L.tagName){if(!(N=L.id)){N=Ext.id(L)}if(A[N]&&A[N].el){K=A[N].el;K.dom=L}else{K=E.addToCache(new E(L))}return K}else{if(L instanceof E){if(L!=C){if(Ext.isIE&&(L.id==undefined||L.id=="")){L.dom=L.dom}else{L.dom=G.getElementById(L.id)||L.dom}}return L}else{if(L.isComposite){return L}else{if(Ext.isArray(L)){return E.select(L)}else{if(L==G){if(!C){var M=function(){};M.prototype=E.prototype;C=new M();C.dom=G}return C}}}}}}return null};E.addToCache=function(K,L){L=L||K.id;
A[L]={el:K,data:{},events:{}};return K};E.data=function(L,K,M){L=E.get(L);if(!L){return null}var N=A[L.id].data;if(arguments.length==2){return N[K]}else{return(N[K]=M)}};function I(){if(!Ext.enableGarbageCollector){clearInterval(E.collectorThreadId)}else{var K,M,O,N;for(K in A){N=A[K];if(N.skipGC){continue}M=N.el;O=M.dom;if(!O||!O.parentNode||(!O.offsetParent&&!G.getElementById(K))){if(Ext.enableListenerCollection){Ext.EventManager.removeAll(O)}delete A[K]}}if(Ext.isIE){var L={};for(K in A){L[K]=A[K]}A=Ext.elCache=L}}}E.collectorThreadId=setInterval(I,30000);var B=function(){};B.prototype=E.prototype;E.Flyweight=function(K){this.dom=K};E.Flyweight.prototype=new B();E.Flyweight.prototype.isFlyweight=true;E._flyweights={};E.fly=function(M,K){var L=null;K=K||"_global";if(M=Ext.getDom(M)){(E._flyweights[K]=E._flyweights[K]||new E.Flyweight()).dom=M;L=E._flyweights[K]}return L};Ext.get=E.get;Ext.fly=E.fly;var F=Ext.isStrict?{select:1}:{input:1,select:1,textarea:1};if(Ext.isIE||Ext.isGecko){F["button"]=1}})();Ext.Element.addMethods(function(){var D="parentNode",B="nextSibling",C="previousSibling",E=Ext.DomQuery,A=Ext.get;
return{findParent:function(L,K,G){var I=this.dom,F=document.body,J=0,H;if(Ext.isGecko&&Object.prototype.toString.call(I)=="[object XULElement]"){return null}K=K||50;if(isNaN(K)){H=Ext.getDom(K);K=Number.MAX_VALUE}while(I&&I.nodeType==1&&J<K&&I!=F&&I!=H){if(E.is(I,L)){return G?A(I):I}J++;I=I.parentNode}return null},findParentNode:function(I,H,F){var G=Ext.fly(this.dom.parentNode,"_internal");return G?G.findParent(I,H,F):null},up:function(G,F){return this.findParentNode(G,F,true)},select:function(F){return Ext.Element.select(F,this.dom)},query:function(F){return E.select(F,this.dom)},child:function(F,G){var H=E.selectNode(F,this.dom);return G?H:A(H)},down:function(F,G){var H=E.selectNode(" > "+F,this.dom);return G?H:A(H)},parent:function(F,G){return this.matchNode(D,D,F,G)},next:function(F,G){return this.matchNode(B,B,F,G)},prev:function(F,G){return this.matchNode(C,C,F,G)},first:function(F,G){return this.matchNode(B,"firstChild",F,G)},last:function(F,G){return this.matchNode(C,"lastChild",F,G)},matchNode:function(G,J,F,H){var I=this.dom[J];
while(I){if(I.nodeType==1&&(!F||E.is(I,F))){return !H?A(I):I}I=I[G]}return null}}}());Ext.Element.addMethods(function(){var C=Ext.getDom,A=Ext.get,B=Ext.DomHelper;return{appendChild:function(D){return A(D).appendTo(this)},appendTo:function(D){C(D).appendChild(this.dom);return this},insertBefore:function(D){(D=C(D)).parentNode.insertBefore(this.dom,D);return this},insertAfter:function(D){(D=C(D)).parentNode.insertBefore(this.dom,D.nextSibling);return this},insertFirst:function(E,D){E=E||{};if(E.nodeType||E.dom||typeof E=="string"){E=C(E);this.dom.insertBefore(E,this.dom.firstChild);return !D?A(E):E}else{return this.createChild(E,this.dom.firstChild,D)}},replace:function(D){D=A(D);this.insertBefore(D);D.remove();return this},replaceWith:function(D){var E=this;if(D.nodeType||D.dom||typeof D=="string"){D=C(D);E.dom.parentNode.insertBefore(D,E.dom)}else{D=B.insertBefore(E.dom,D)}delete Ext.elCache[E.id];Ext.removeNode(E.dom);E.id=Ext.id(E.dom=D);Ext.Element.addToCache(E.isFlyweight?new Ext.Element(E.dom):E);return E
},createChild:function(E,D,F){E=E||{tag:"div"};return D?B.insertBefore(D,E,F!==true):B[!this.dom.firstChild?"overwrite":"append"](this.dom,E,F!==true)},wrap:function(D,E){var F=B.insertBefore(this.dom,D||{tag:"div"},!E);F.dom?F.dom.appendChild(this.dom):F.appendChild(this.dom);return F},insertHtml:function(E,F,D){var G=B.insertHtml(E,this.dom,F);return D?Ext.get(G):G}}}());Ext.Element.addMethods(function(){var Z=Ext.supports,G={},W=/(-[a-z])/gi,R=document.defaultView,c=/alpha\(opacity=(.*)\)/i,K=/^\s+|\s+$/g,a=Ext.Element,T=/\s+/,B=/\w/g,D="padding",C="margin",X="border",S="-left",P="-right",V="-top",N="-bottom",I="-width",Q=Math,Y="hidden",E="isClipped",J="overflow",M="overflow-x",L="overflow-y",b="originalClip",H={l:X+S+I,r:X+P+I,t:X+V+I,b:X+N+I},F={l:D+S,r:D+P,t:D+V,b:D+N},A={l:C+S,r:C+P,t:C+V,b:C+N},d=Ext.Element.data;function O(e,g){return g.charAt(1).toUpperCase()}function U(e){return G[e]||(G[e]=e=="float"?(Z.cssFloat?"cssFloat":"styleFloat"):e.replace(W,O))}return{adjustWidth:function(e){var g=this;var h=(typeof e=="number");
if(h&&g.autoBoxAdjust&&!g.isBorderBox()){e-=(g.getBorderWidth("lr")+g.getPadding("lr"))}return(h&&e<0)?0:e},adjustHeight:function(e){var g=this;var h=(typeof e=="number");if(h&&g.autoBoxAdjust&&!g.isBorderBox()){e-=(g.getBorderWidth("tb")+g.getPadding("tb"))}return(h&&e<0)?0:e},addClass:function(k){var l=this,j,e,h,g=[];if(!Ext.isArray(k)){if(typeof k=="string"&&!this.hasClass(k)){l.dom.className+=" "+k}}else{for(j=0,e=k.length;j<e;j++){h=k[j];if(typeof h=="string"&&(" "+l.dom.className+" ").indexOf(" "+h+" ")==-1){g.push(h)}}if(g.length){l.dom.className+=" "+g.join(" ")}}return l},removeClass:function(l){var m=this,k,g,e,j,h;if(!Ext.isArray(l)){l=[l]}if(m.dom&&m.dom.className){h=m.dom.className.replace(K,"").split(T);for(k=0,e=l.length;k<e;k++){j=l[k];if(typeof j=="string"){j=j.replace(K,"");g=h.indexOf(j);if(g!=-1){h.splice(g,1)}}}m.dom.className=h.join(" ")}return m},radioClass:function(j){var k=this.dom.parentNode.childNodes,g,h,e;j=Ext.isArray(j)?j:[j];for(h=0,e=k.length;h<e;h++){g=k[h];if(g&&g.nodeType==1){Ext.fly(g,"_internal").removeClass(j)
}}return this.addClass(j)},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},hasClass:function(e){return e&&(" "+this.dom.className+" ").indexOf(" "+e+" ")!=-1},replaceClass:function(g,e){return this.removeClass(g).addClass(e)},isStyle:function(e,g){return this.getStyle(e)==g},getStyle:function(){return R&&R.getComputedStyle?function(k){var i=this.dom,e,h,g,j;if(i==document){return null}k=U(k);g=(e=i.style[k])?e:(h=R.getComputedStyle(i,""))?h[k]:null;if(k=="marginRight"&&g!="0px"&&!Z.correctRightMargin){j=i.style.display;i.style.display="inline-block";g=R.getComputedStyle(i,"").marginRight;i.style.display=j}if(k=="backgroundColor"&&g=="rgba(0, 0, 0, 0)"&&!Z.correctTransparentColor){g="transparent"}return g}:function(j){var h=this.dom,e,g;if(h==document){return null}if(j=="opacity"){if(h.style.filter.match){if(e=h.style.filter.match(c)){var i=parseFloat(e[1]);if(!isNaN(i)){return i?i/100:0}}}return 1}j=U(j);return h.style[j]||((g=h.currentStyle)?g[j]:null)}}(),getColor:function(e,g,l){var j=this.getStyle(e),i=(typeof l!="undefined")?l:"#",k;
if(!j||(/transparent|inherit/.test(j))){return g}if(/^r/.test(j)){Ext.each(j.slice(4,j.length-1).split(","),function(h){k=parseInt(h,10);i+=(k<16?"0":"")+k.toString(16)})}else{j=j.replace("#","");i+=j.length==3?j.replace(/^(\w)(\w)(\w)$/,"$1$1$2$2$3$3"):j}return(i.length>5?i.toLowerCase():g)},setStyle:function(i,h){var e,g;if(typeof i!="object"){e={};e[i]=h;i=e}for(g in i){h=i[g];g=="opacity"?this.setOpacity(h):this.dom.style[U(g)]=h}return this},setOpacity:function(g,e){var j=this,h=j.dom.style;if(!e||!j.anim){if(Ext.isIE){var i=g<1?"alpha(opacity="+g*100+")":"",k=h.filter.replace(c,"").replace(K,"");h.zoom=1;h.filter=k+(k.length>0?" ":"")+i}else{h.opacity=g}}else{j.anim({opacity:{to:g}},j.preanim(arguments,1),null,0.35,"easeIn")}return j},clearOpacity:function(){var e=this.dom.style;if(Ext.isIE){if(!Ext.isEmpty(e.filter)){e.filter=e.filter.replace(c,"").replace(K,"")}}else{e.opacity=e["-moz-opacity"]=e["-khtml-opacity"]=""}return this},getHeight:function(i){var g=this,k=g.dom,j=Ext.isIE&&g.isStyle("display","none"),e=Q.max(k.offsetHeight,j?0:k.clientHeight)||0;
e=!i?e:e-g.getBorderWidth("tb")-g.getPadding("tb");return e<0?0:e},getWidth:function(g){var h=this,j=h.dom,i=Ext.isIE&&h.isStyle("display","none"),e=Q.max(j.offsetWidth,i?0:j.clientWidth)||0;e=!g?e:e-h.getBorderWidth("lr")-h.getPadding("lr");return e<0?0:e},setWidth:function(g,e){var h=this;g=h.adjustWidth(g);!e||!h.anim?h.dom.style.width=h.addUnits(g):h.anim({width:{to:g}},h.preanim(arguments,1));return h},setHeight:function(e,g){var h=this;e=h.adjustHeight(e);!g||!h.anim?h.dom.style.height=h.addUnits(e):h.anim({height:{to:e}},h.preanim(arguments,1));return h},getBorderWidth:function(e){return this.addStyles(e,H)},getPadding:function(e){return this.addStyles(e,F)},clip:function(){var e=this,g=e.dom;if(!d(g,E)){d(g,E,true);d(g,b,{o:e.getStyle(J),x:e.getStyle(M),y:e.getStyle(L)});e.setStyle(J,Y);e.setStyle(M,Y);e.setStyle(L,Y)}return e},unclip:function(){var e=this,h=e.dom;if(d(h,E)){d(h,E,false);var g=d(h,b);if(g.o){e.setStyle(J,g.o)}if(g.x){e.setStyle(M,g.x)}if(g.y){e.setStyle(L,g.y)}}return e},addStyles:function(n,m){var k=0,l=n.match(B),j,h,g,e=l.length;
for(g=0;g<e;g++){j=l[g];h=j&&parseInt(this.getStyle(m[j]),10);if(h){k+=Q.abs(h)}}return k},margins:A}}());(function(){var A=Ext.lib.Dom,B="left",G="right",E="top",I="bottom",H="position",C="static",F="relative",J="auto",K="z-index";Ext.Element.addMethods({getX:function(){return A.getX(this.dom)},getY:function(){return A.getY(this.dom)},getXY:function(){return A.getXY(this.dom)},getOffsetsTo:function(D){var M=this.getXY(),L=Ext.fly(D,"_internal").getXY();return[M[0]-L[0],M[1]-L[1]]},setX:function(D,L){return this.setXY([D,this.getY()],this.animTest(arguments,L,1))},setY:function(L,D){return this.setXY([this.getX(),L],this.animTest(arguments,D,1))},setLeft:function(D){this.setStyle(B,this.addUnits(D));return this},setTop:function(D){this.setStyle(E,this.addUnits(D));return this},setRight:function(D){this.setStyle(G,this.addUnits(D));return this},setBottom:function(D){this.setStyle(I,this.addUnits(D));return this},setXY:function(M,D){var L=this;if(!D||!L.anim){A.setXY(L.dom,M)}else{L.anim({points:{to:M}},L.preanim(arguments,1),"motion")
}return L},setLocation:function(D,M,L){return this.setXY([D,M],this.animTest(arguments,L,2))},moveTo:function(D,M,L){return this.setXY([D,M],this.animTest(arguments,L,2))},getLeft:function(D){return !D?this.getX():parseInt(this.getStyle(B),10)||0},getRight:function(D){var L=this;return !D?L.getX()+L.getWidth():(L.getLeft(true)+L.getWidth())||0},getTop:function(D){return !D?this.getY():parseInt(this.getStyle(E),10)||0},getBottom:function(D){var L=this;return !D?L.getY()+L.getHeight():(L.getTop(true)+L.getHeight())||0},position:function(O,N,D,M){var L=this;if(!O&&L.isStyle(H,C)){L.setStyle(H,F)}else{if(O){L.setStyle(H,O)}}if(N){L.setStyle(K,N)}if(D||M){L.setXY([D||false,M||false])}},clearPositioning:function(D){D=D||"";this.setStyle({left:D,right:D,top:D,bottom:D,"z-index":"",position:C});return this},getPositioning:function(){var D=this.getStyle(B);var L=this.getStyle(E);return{"position":this.getStyle(H),"left":D,"right":D?"":this.getStyle(G),"top":L,"bottom":L?"":this.getStyle(I),"z-index":this.getStyle(K)}},setPositioning:function(D){var M=this,L=M.dom.style;
M.setStyle(D);if(D.right==J){L.right=""}if(D.bottom==J){L.bottom=""}return M},translatePoints:function(D,Q){Q=isNaN(D[1])?Q:D[1];D=isNaN(D[0])?D:D[0];var N=this,O=N.isStyle(H,F),P=N.getXY(),L=parseInt(N.getStyle(B),10),M=parseInt(N.getStyle(E),10);L=!isNaN(L)?L:(O?0:N.dom.offsetLeft);M=!isNaN(M)?M:(O?0:N.dom.offsetTop);return{left:(D-P[0]+L),top:(Q-P[1]+M)}},animTest:function(L,D,M){return !!D&&this.preanim?this.preanim(L,M):false}})})();Ext.Element.addMethods({isScrollable:function(){var A=this.dom;return A.scrollHeight>A.clientHeight||A.scrollWidth>A.clientWidth},scrollTo:function(A,B){this.dom["scroll"+(/top/i.test(A)?"Top":"Left")]=B;return this},getScroll:function(){var G=this.dom,F=document,A=F.body,C=F.documentElement,B,E,D;if(G==F||G==A){if(Ext.isIE&&Ext.isStrict){B=C.scrollLeft;E=C.scrollTop}else{B=window.pageXOffset;E=window.pageYOffset}D={left:B||(A?A.scrollLeft:0),top:E||(A?A.scrollTop:0)}}else{D={left:G.scrollLeft,top:G.scrollTop}}return D}});Ext.Element.VISIBILITY=1;Ext.Element.DISPLAY=2;Ext.Element.OFFSETS=3;
Ext.Element.ASCLASS=4;Ext.Element.visibilityCls="x-hide-nosize";Ext.Element.addMethods(function(){var E=Ext.Element,O="opacity",I="visibility",F="display",D="hidden",M="offsets",J="asclass",L="none",A="nosize",B="originalDisplay",C="visibilityMode",G="isVisible",H=E.data,K=function(Q){var P=H(Q,B);if(P===undefined){H(Q,B,P="")}return P},N=function(Q){var P=H(Q,C);if(P===undefined){H(Q,C,P=1)}return P};return{originalDisplay:"",visibilityMode:1,setVisibilityMode:function(P){H(this.dom,C,P);return this},animate:function(Q,S,R,T,P){this.anim(Q,{duration:S,callback:R,easing:T},P);return this},anim:function(S,T,Q,V,R,P){Q=Q||"run";T=T||{};var U=this,W=Ext.lib.Anim[Q](U.dom,S,(T.duration||V)||0.35,(T.easing||R)||"easeOut",function(){if(P){P.call(U)}if(T.callback){T.callback.call(T.scope||U,U,T)}},U);T.anim=W;return W},preanim:function(P,Q){return !P[Q]?false:(typeof P[Q]=="object"?P[Q]:{duration:P[Q+1],callback:P[Q+2],easing:P[Q+3]})},isVisible:function(){var P=this,R=P.dom,Q=H(R,G);if(typeof Q=="boolean"){return Q}Q=!P.isStyle(I,D)&&!P.isStyle(F,L)&&!((N(R)==E.ASCLASS)&&P.hasClass(P.visibilityCls||E.visibilityCls));
H(R,G,Q);return Q},setVisible:function(S,P){var V=this,Q,X,W,U,T=V.dom,R=N(T);if(typeof P=="string"){switch(P){case F:R=E.DISPLAY;break;case I:R=E.VISIBILITY;break;case M:R=E.OFFSETS;break;case A:case J:R=E.ASCLASS;break}V.setVisibilityMode(R);P=false}if(!P||!V.anim){if(R==E.ASCLASS){V[S?"removeClass":"addClass"](V.visibilityCls||E.visibilityCls)}else{if(R==E.DISPLAY){return V.setDisplayed(S)}else{if(R==E.OFFSETS){if(!S){V.hideModeStyles={position:V.getStyle("position"),top:V.getStyle("top"),left:V.getStyle("left")};V.applyStyles({position:"absolute",top:"-10000px",left:"-10000px"})}else{V.applyStyles(V.hideModeStyles||{position:"",top:"",left:""});delete V.hideModeStyles}}else{V.fixDisplay();T.style.visibility=S?"visible":D}}}}else{if(S){V.setOpacity(0.01);V.setVisible(true)}V.anim({opacity:{to:(S?1:0)}},V.preanim(arguments,1),null,0.35,"easeIn",function(){S||V.setVisible(false).setOpacity(1)})}H(T,G,S);return V},hasMetrics:function(){var P=this.dom;return this.isVisible()||(N(P)==E.VISIBILITY)},toggle:function(P){var Q=this;
Q.setVisible(!Q.isVisible(),Q.preanim(arguments,0));return Q},setDisplayed:function(P){if(typeof P=="boolean"){P=P?K(this.dom):L}this.setStyle(F,P);return this},fixDisplay:function(){var P=this;if(P.isStyle(F,L)){P.setStyle(I,D);P.setStyle(F,K(this.dom));if(P.isStyle(F,L)){P.setStyle(F,"block")}}},hide:function(P){if(typeof P=="string"){this.setVisible(false,P);return this}this.setVisible(false,this.preanim(arguments,0));return this},show:function(P){if(typeof P=="string"){this.setVisible(true,P);return this}this.setVisible(true,this.preanim(arguments,0));return this}}}());(function(){var X=null,Z=undefined,J=true,S=false,I="setX",G="setY",A="setXY",M="left",K="bottom",R="top",L="right",P="height",F="width",H="points",V="hidden",Y="absolute",T="visible",E="motion",N="position",Q="easeOut",D=new Ext.Element.Flyweight(),U={},W=function(a){return a||{}},O=function(a){D.dom=a;D.id=Ext.id(a);return D},C=function(a){if(!U[a]){U[a]=[]}return U[a]},B=function(b,a){U[b]=a};Ext.enableFx=J;Ext.Fx={switchStatements:function(b,c,a){return c.apply(this,a[b])
},slideIn:function(i,e){e=W(e);var k=this,h=k.dom,n=h.style,q,a,m,d,c,n,j,p,l,g;i=i||"t";k.queueFx(e,function(){q=O(h).getXY();O(h).fixDisplay();a=O(h).getFxRestore();m={x:q[0],y:q[1],0:q[0],1:q[1],width:h.offsetWidth,height:h.offsetHeight};m.right=m.x+m.width;m.bottom=m.y+m.height;O(h).setWidth(m.width).setHeight(m.height);d=O(h).fxWrap(a.pos,e,V);n.visibility=T;n.position=Y;function b(){O(h).fxUnwrap(d,a.pos,e);n.width=a.width;n.height=a.height;O(h).afterFx(e)}p={to:[m.x,m.y]};l={to:m.width};g={to:m.height};function o(u,r,v,s,y,AA,AD,AC,AB,x,t){var z={};O(u).setWidth(v).setHeight(s);if(O(u)[y]){O(u)[y](AA)}r[AD]=r[AC]="0";if(AB){z.width=AB}if(x){z.height=x}if(t){z.points=t}return z}j=O(h).switchStatements(i.toLowerCase(),o,{t:[d,n,m.width,0,X,X,M,K,X,g,X],l:[d,n,0,m.height,X,X,L,R,l,X,X],r:[d,n,m.width,m.height,I,m.right,M,R,X,X,p],b:[d,n,m.width,m.height,G,m.bottom,M,R,X,g,p],tl:[d,n,0,0,X,X,L,K,l,g,p],bl:[d,n,0,0,G,m.y+m.height,L,R,l,g,p],br:[d,n,0,0,A,[m.right,m.bottom],M,R,l,g,p],tr:[d,n,0,0,I,m.x+m.width,M,K,l,g,p]});
n.visibility=T;O(d).show();arguments.callee.anim=O(d).fxanim(j,e,E,0.5,Q,b)});return k},slideOut:function(h,e){e=W(e);var j=this,g=j.dom,m=g.style,n=j.getXY(),d,c,k,l,i={to:0};h=h||"t";j.queueFx(e,function(){c=O(g).getFxRestore();k={x:n[0],y:n[1],0:n[0],1:n[1],width:g.offsetWidth,height:g.offsetHeight};k.right=k.x+k.width;k.bottom=k.y+k.height;O(g).setWidth(k.width).setHeight(k.height);d=O(g).fxWrap(c.pos,e,T);m.visibility=T;m.position=Y;O(d).setWidth(k.width).setHeight(k.height);function a(){e.useDisplay?O(g).setDisplayed(S):O(g).hide();O(g).fxUnwrap(d,c.pos,e);m.width=c.width;m.height=c.height;O(g).afterFx(e)}function b(o,w,u,x,s,v,r,t,q){var p={};o[w]=o[u]="0";p[x]=s;if(v){p[v]=r}if(t){p[t]=q}return p}l=O(g).switchStatements(h.toLowerCase(),b,{t:[m,M,K,P,i],l:[m,L,R,F,i],r:[m,M,R,F,i,H,{to:[k.right,k.y]}],b:[m,M,R,P,i,H,{to:[k.x,k.bottom]}],tl:[m,L,K,F,i,P,i],bl:[m,L,R,F,i,P,i,H,{to:[k.x,k.bottom]}],br:[m,M,R,F,i,P,i,H,{to:[k.x+k.width,k.bottom]}],tr:[m,M,K,F,i,P,i,H,{to:[k.right,k.y]}]});arguments.callee.anim=O(d).fxanim(l,e,E,0.5,Q,a)
});return j},puff:function(h){h=W(h);var e=this,g=e.dom,b=g.style,c,a,d;e.queueFx(h,function(){c=O(g).getWidth();a=O(g).getHeight();O(g).clearOpacity();O(g).show();d=O(g).getFxRestore();function i(){h.useDisplay?O(g).setDisplayed(S):O(g).hide();O(g).clearOpacity();O(g).setPositioning(d.pos);b.width=d.width;b.height=d.height;b.fontSize="";O(g).afterFx(h)}arguments.callee.anim=O(g).fxanim({width:{to:O(g).adjustWidth(c*2)},height:{to:O(g).adjustHeight(a*2)},points:{by:[-c*0.5,-a*0.5]},opacity:{to:0},fontSize:{to:200,unit:"%"}},h,E,0.5,Q,i)});return e},switchOff:function(e){e=W(e);var c=this,d=c.dom,a=d.style,b;c.queueFx(e,function(){O(d).clearOpacity();O(d).clip();b=O(d).getFxRestore();function g(){e.useDisplay?O(d).setDisplayed(S):O(d).hide();O(d).clearOpacity();O(d).setPositioning(b.pos);a.width=b.width;a.height=b.height;O(d).afterFx(e)}O(d).fxanim({opacity:{to:0.3}},X,X,0.1,X,function(){O(d).clearOpacity();(function(){O(d).fxanim({height:{to:1},points:{by:[0,O(d).getHeight()*0.5]}},e,E,0.3,"easeIn",g)}).defer(100)
})});return c},highlight:function(d,i){i=W(i);var g=this,h=g.dom,b=i.attr||"backgroundColor",c={},e;g.queueFx(i,function(){O(h).clearOpacity();O(h).show();function a(){h.style[b]=e;O(h).afterFx(i)}e=h.style[b];c[b]={from:d||"ffff9c",to:i.endColor||O(h).getColor(b)||"ffffff"};arguments.callee.anim=O(h).fxanim(c,i,"color",1,"easeIn",a)});return g},frame:function(a,d,h){h=W(h);var c=this,g=c.dom,b,e;c.queueFx(h,function(){a=a||"#C3DAF9";if(a.length==6){a="#"+a}d=d||1;O(g).show();var l=O(g).getXY(),j={x:l[0],y:l[1],0:l[0],1:l[1],width:g.offsetWidth,height:g.offsetHeight},i=function(){b=O(document.body||document.documentElement).createChild({style:{position:Y,"z-index":35000,border:"0px solid "+a}});return b.queueFx({},k)};arguments.callee.anim={isAnimated:true,stop:function(){d=0;b.stopFx()}};function k(){var m=Ext.isBorderBox?2:1;e=b.anim({top:{from:j.y,to:j.y-20},left:{from:j.x,to:j.x-20},borderWidth:{from:0,to:10},opacity:{from:1,to:0},height:{from:j.height,to:j.height+20*m},width:{from:j.width,to:j.width+20*m}},{duration:h.duration||1,callback:function(){b.remove();
--d>0?i():O(g).afterFx(h)}});arguments.callee.anim={isAnimated:true,stop:function(){e.stop()}}}i()});return c},pause:function(c){var b=this.dom,a;this.queueFx({},function(){a=setTimeout(function(){O(b).afterFx({})},c*1000);arguments.callee.anim={isAnimated:true,stop:function(){clearTimeout(a);O(b).afterFx({})}}});return this},fadeIn:function(c){c=W(c);var a=this,b=a.dom,d=c.endOpacity||1;a.queueFx(c,function(){O(b).setOpacity(0);O(b).fixDisplay();b.style.visibility=T;arguments.callee.anim=O(b).fxanim({opacity:{to:d}},c,X,0.5,Q,function(){if(d==1){O(b).clearOpacity()}O(b).afterFx(c)})});return a},fadeOut:function(d){d=W(d);var b=this,c=b.dom,a=c.style,e=d.endOpacity||0;b.queueFx(d,function(){arguments.callee.anim=O(c).fxanim({opacity:{to:e}},d,X,0.5,Q,function(){if(e==0){Ext.Element.data(c,"visibilityMode")==Ext.Element.DISPLAY||d.useDisplay?a.display="none":a.visibility=V;O(c).clearOpacity()}O(c).afterFx(d)})});return b},scale:function(a,b,c){this.shift(Ext.apply({},c,{width:a,height:b}));return this},shift:function(d){d=W(d);
var c=this.dom,b={};this.queueFx(d,function(){for(var a in d){if(d[a]!=Z){b[a]={to:d[a]}}}b.width?b.width.to=O(c).adjustWidth(d.width):b;b.height?b.height.to=O(c).adjustWidth(d.height):b;if(b.x||b.y||b.xy){b.points=b.xy||{to:[b.x?b.x.to:O(c).getX(),b.y?b.y.to:O(c).getY()]}}arguments.callee.anim=O(c).fxanim(b,d,E,0.35,Q,function(){O(c).afterFx(d)})});return this},ghost:function(e,c){c=W(c);var i=this,d=i.dom,l=d.style,j={opacity:{to:0},points:{}},m=j.points,b,k,g;e=e||"b";i.queueFx(c,function(){b=O(d).getFxRestore();k=O(d).getWidth();g=O(d).getHeight();function a(){c.useDisplay?O(d).setDisplayed(S):O(d).hide();O(d).clearOpacity();O(d).setPositioning(b.pos);l.width=b.width;l.height=b.height;O(d).afterFx(c)}m.by=O(d).switchStatements(e.toLowerCase(),function(n,h){return[n,h]},{t:[0,-g],l:[-k,0],r:[k,0],b:[0,g],tl:[-k,-g],bl:[-k,g],br:[k,g],tr:[k,-g]});arguments.callee.anim=O(d).fxanim(j,c,E,0.5,Q,a)});return i},syncFx:function(){var a=this;a.fxDefaults=Ext.apply(a.fxDefaults||{},{block:S,concurrent:J,stopFx:S});return a
},sequenceFx:function(){var a=this;a.fxDefaults=Ext.apply(a.fxDefaults||{},{block:S,concurrent:S,stopFx:S});return a},nextFx:function(){var a=C(this.dom.id)[0];if(a){a.call(this)}},hasActiveFx:function(){return C(this.dom.id)[0]},stopFx:function(a){var b=this,d=b.dom.id;if(b.hasActiveFx()){var c=C(d)[0];if(c&&c.anim){if(c.anim.isAnimated){B(d,[c]);c.anim.stop(a!==undefined?a:J)}else{B(d,[])}}}return b},beforeFx:function(a){if(this.hasActiveFx()&&!a.concurrent){if(a.stopFx){this.stopFx();return J}return S}return J},hasFxBlock:function(){var a=C(this.dom.id);return a&&a[0]&&a[0].block},queueFx:function(d,a){var b=O(this.dom);if(!b.hasFxBlock()){Ext.applyIf(d,b.fxDefaults);if(!d.concurrent){var c=b.beforeFx(d);a.block=d.block;C(b.dom.id).push(a);if(c){b.nextFx()}}else{a.call(b)}}return b},fxWrap:function(h,e,c){var d=this.dom,b,a;if(!e.wrap||!(b=Ext.getDom(e.wrap))){if(e.fixPosition){a=O(d).getXY()}var g=document.createElement("div");g.style.visibility=c;b=d.parentNode.insertBefore(g,d);O(b).setPositioning(h);if(O(b).isStyle(N,"static")){O(b).position("relative")
}O(d).clearPositioning("auto");O(b).clip();b.appendChild(d);if(a){O(b).setXY(a)}}return b},fxUnwrap:function(b,e,d){var c=this.dom;O(c).clearPositioning();O(c).setPositioning(e);if(!d.wrap){var a=O(b).dom.parentNode;a.insertBefore(c,b);O(b).remove()}},getFxRestore:function(){var a=this.dom.style;return{pos:this.getPositioning(),width:a.width,height:a.height}},afterFx:function(b){var a=this.dom,c=a.id;if(b.afterStyle){O(a).setStyle(b.afterStyle)}if(b.afterCls){O(a).addClass(b.afterCls)}if(b.remove==J){O(a).remove()}if(b.callback){b.callback.call(b.scope,O(a))}if(!b.concurrent){C(c).shift();O(a).nextFx()}},fxanim:function(d,e,b,g,c,a){b=b||"run";e=e||{};var h=Ext.lib.Anim[b](this.dom,d,(e.duration||g)||0.35,(e.easing||c)||Q,a,this);e.anim=h;return h}};Ext.Fx.resize=Ext.Fx.scale;Ext.Element.addMethods(Ext.Fx)})();Ext.CompositeElementLite=function(B,A){this.elements=[];this.add(B,A);this.el=new Ext.Element.Flyweight()};Ext.CompositeElementLite.prototype={isComposite:true,getElement:function(A){var B=this.el;B.dom=A;
B.id=A.id;return B},transformElement:function(A){return Ext.getDom(A)},getCount:function(){return this.elements.length},add:function(D,B){var E=this,F=E.elements;if(!D){return this}if(typeof D=="string"){D=Ext.Element.selectorFunction(D,B)}else{if(D.isComposite){D=D.elements}else{if(!Ext.isIterable(D)){D=[D]}}}for(var C=0,A=D.length;C<A;++C){F.push(E.transformElement(D[C]))}return E},invoke:function(E,B){var F=this,D=F.elements,A=D.length,G,C;for(C=0;C<A;C++){G=D[C];if(G){Ext.Element.prototype[E].apply(F.getElement(G),B)}}return F},item:function(B){var D=this,C=D.elements[B],A=null;if(C){A=D.getElement(C)}return A},addListener:function(B,G,F,E){var D=this.elements,A=D.length,C,H;for(C=0;C<A;C++){H=D[C];if(H){Ext.EventManager.on(H,B,G,F||H,E)}}return this},each:function(E,D){var F=this,C=F.elements,A=C.length,B,G;for(B=0;B<A;B++){G=C[B];if(G){G=this.getElement(G);if(E.call(D||G,G,F,B)===false){break}}}return F},fill:function(A){var B=this;B.elements=[];B.add(A);return B},filter:function(A){var B=[],D=this,C=Ext.isFunction(A)?A:function(E){return E.is(A)
};D.each(function(G,E,F){if(C(G,F)!==false){B[B.length]=D.transformElement(G)}});D.elements=B;return D},indexOf:function(A){return this.elements.indexOf(this.transformElement(A))},replaceElement:function(D,C,A){var B=!isNaN(D)?D:this.indexOf(D),E;if(B>-1){C=Ext.getDom(C);if(A){E=this.elements[B];E.parentNode.insertBefore(C,E);Ext.removeNode(E)}this.elements.splice(B,1,C)}return this},clear:function(){this.elements=[]}};Ext.CompositeElementLite.prototype.on=Ext.CompositeElementLite.prototype.addListener;Ext.CompositeElementLite.importElementMethods=function(){var C,B=Ext.Element.prototype,A=Ext.CompositeElementLite.prototype;for(C in B){if(typeof B[C]=="function"){(function(D){A[D]=A[D]||function(){return this.invoke(D,arguments)}}).call(A,C)}}};Ext.CompositeElementLite.importElementMethods();if(Ext.DomQuery){Ext.Element.selectorFunction=Ext.DomQuery.select}Ext.Element.select=function(A,B){var C;if(typeof A=="string"){C=Ext.Element.selectorFunction(A,B)}else{if(A.length!==undefined){C=A}else{throw"Invalid selector"
}}return new Ext.CompositeElementLite(C)};Ext.select=Ext.Element.select;(function(){var B="beforerequest",E="requestcomplete",D="requestexception",G=undefined,C="load",H="POST",A="GET",F=window;Ext.data.Connection=function(I){Ext.apply(this,I);this.addEvents(B,E,D);Ext.data.Connection.superclass.constructor.call(this)};Ext.extend(Ext.data.Connection,Ext.util.Observable,{timeout:30000,autoAbort:false,disableCaching:true,disableCachingParam:"_dc",request:function(M){var P=this;if(P.fireEvent(B,P,M)){if(M.el){if(!Ext.isEmpty(M.indicatorText)){P.indicatorText='<div class="loading-indicator">'+M.indicatorText+"</div>"}if(P.indicatorText){Ext.getDom(M.el).innerHTML=P.indicatorText}M.success=(Ext.isFunction(M.success)?M.success:function(){}).createInterceptor(function(R){Ext.getDom(M.el).innerHTML=R.responseText})}var K=M.params,J=M.url||P.url,I,N={success:P.handleResponse,failure:P.handleFailure,scope:P,argument:{options:M},timeout:Ext.num(M.timeout,P.timeout)},L,Q;if(Ext.isFunction(K)){K=K.call(M.scope||F,M)}K=Ext.urlEncode(P.extraParams,Ext.isObject(K)?Ext.urlEncode(K):K);
if(Ext.isFunction(J)){J=J.call(M.scope||F,M)}if((L=Ext.getDom(M.form))){J=J||L.action;if(M.isUpload||(/multipart\/form-data/i.test(L.getAttribute("enctype")))){return P.doFormUpload.call(P,M,K,J)}Q=Ext.lib.Ajax.serializeForm(L);K=K?(K+"&"+Q):Q}I=M.method||P.method||((K||M.xmlData||M.jsonData)?H:A);if(I===A&&(P.disableCaching&&M.disableCaching!==false)||M.disableCaching===true){var O=M.disableCachingParam||P.disableCachingParam;J=Ext.urlAppend(J,O+"="+(new Date().getTime()))}M.headers=Ext.applyIf(M.headers||{},P.defaultHeaders||{});if(M.autoAbort===true||P.autoAbort){P.abort()}if((I==A||M.xmlData||M.jsonData)&&K){J=Ext.urlAppend(J,K);K=""}return(P.transId=Ext.lib.Ajax.request(I,J,N,K,M))}else{return M.callback?M.callback.apply(M.scope,[M,G,G]):null}},isLoading:function(I){return I?Ext.lib.Ajax.isCallInProgress(I):!!this.transId},abort:function(I){if(I||this.isLoading()){Ext.lib.Ajax.abort(I||this.transId)}},handleResponse:function(I){this.transId=false;var J=I.argument.options;I.argument=J?J.argument:null;this.fireEvent(E,this,I,J);
if(J.success){J.success.call(J.scope,I,J)}if(J.callback){J.callback.call(J.scope,J,true,I)}},handleFailure:function(I,K){this.transId=false;var J=I.argument.options;I.argument=J?J.argument:null;this.fireEvent(D,this,I,J,K);if(J.failure){J.failure.call(J.scope,I,J)}if(J.callback){J.callback.call(J.scope,J,false,I)}},doFormUpload:function(O,I,J){var K=Ext.id(),T=document,P=T.createElement("iframe"),L=Ext.getDom(O.form),S=[],R,N="multipart/form-data",M={target:L.target,method:L.method,encoding:L.encoding,enctype:L.enctype,action:L.action};Ext.fly(P).set({id:K,name:K,cls:"x-hidden",src:Ext.SSL_SECURE_URL});T.body.appendChild(P);if(Ext.isIE){document.frames[K].name=K}Ext.fly(L).set({target:K,method:H,enctype:N,encoding:N,action:J||M.action});Ext.iterate(Ext.urlDecode(I,false),function(V,U){R=T.createElement("input");Ext.fly(R).set({type:"hidden",value:U,name:V});L.appendChild(R);S.push(R)});function Q(){var W=this,V={responseText:"",responseXML:null,argument:O.argument},Z,Y;try{Z=P.contentWindow.document||P.contentDocument||F.frames[K].document;
if(Z){if(Z.body){if(/textarea/i.test((Y=Z.body.firstChild||{}).tagName)){V.responseText=Y.value}else{V.responseText=Z.body.innerHTML}}V.responseXML=Z.XMLDocument||Z}}catch(X){}Ext.EventManager.removeListener(P,C,Q,W);W.fireEvent(E,W,V,O);function U(c,b,a){if(Ext.isFunction(c)){c.apply(b,a)}}U(O.success,O.scope,[V,O]);U(O.callback,O.scope,[O,true,V]);if(!W.debugUploads){setTimeout(function(){Ext.removeNode(P)},100)}}Ext.EventManager.on(P,C,Q,this);L.submit();Ext.fly(L).set(M);Ext.each(S,function(U){Ext.removeNode(U)})}})})();Ext.Ajax=new Ext.data.Connection({autoAbort:false,serializeForm:function(A){return Ext.lib.Ajax.serializeForm(A)}});Ext.util.JSON=new (function(){var useHasOwn=!!{}.hasOwnProperty,isNative=function(){var useNative=null;return function(){if(useNative===null){useNative=Ext.USE_NATIVE_JSON&&window.JSON&&JSON.toString()=="[object JSON]"}return useNative}}(),pad=function(n){return n<10?"0"+n:n},doDecode=function(json){return json?eval("("+json+")"):""},doEncode=function(o){if(!Ext.isDefined(o)||o===null){return"null"
}else{if(Ext.isArray(o)){return encodeArray(o)}else{if(Ext.isDate(o)){return Ext.util.JSON.encodeDate(o)}else{if(Ext.isString(o)){return encodeString(o)}else{if(typeof o=="number"){return isFinite(o)?String(o):"null"}else{if(Ext.isBoolean(o)){return String(o)}else{var a=["{"],b,i,v;for(i in o){if(!o.getElementsByTagName){if(!useHasOwn||o.hasOwnProperty(i)){v=o[i];switch(typeof v){case"undefined":case"function":case"unknown":break;default:if(b){a.push(",")}a.push(doEncode(i),":",v===null?"null":doEncode(v));b=true}}}}a.push("}");return a.join("")}}}}}}},m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},encodeString=function(s){if(/["\\\x00-\x1f]/.test(s)){return'"'+s.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+s+'"'},encodeArray=function(o){var a=["["],b,i,l=o.length,v;for(i=0;i<l;i+=1){v=o[i];switch(typeof v){case"undefined":case"function":case"unknown":break;default:if(b){a.push(",")
}a.push(v===null?"null":Ext.util.JSON.encode(v));b=true}}a.push("]");return a.join("")};this.encodeDate=function(o){return'"'+o.getFullYear()+"-"+pad(o.getMonth()+1)+"-"+pad(o.getDate())+"T"+pad(o.getHours())+":"+pad(o.getMinutes())+":"+pad(o.getSeconds())+'"'};this.encode=function(){var ec;return function(o){if(!ec){ec=isNative()?JSON.stringify:doEncode}return ec(o)}}();this.decode=function(){var dc;return function(json){if(!dc){dc=isNative()?JSON.parse:doDecode}return dc(json)}}()})();Ext.encode=Ext.util.JSON.encode;Ext.decode=Ext.util.JSON.decode;Ext.EventManager=function(){var a,Q,K=false,M=Ext.isGecko||Ext.isWebKit||Ext.isSafari,P=Ext.lib.Event,R=Ext.lib.Dom,C=document,b=window,S="DOMContentLoaded",U="complete",H=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,V=[];function O(d){var h=false,E=0,D=V.length,e=false,g;if(d){if(d.getElementById||d.navigator){for(;E<D;++E){g=V[E];if(g.el===d){h=g.id;break}}if(!h){h=Ext.id(d);V.push({id:h,el:d});e=true}}else{h=Ext.id(d)
}if(!Ext.elCache[h]){Ext.Element.addToCache(new Ext.Element(d),h);if(e){Ext.elCache[h].skipGC=true}}}return h}function N(d,g,j,e,E,l){d=Ext.getDom(d);var D=O(d),k=Ext.elCache[D].events,h;h=P.on(d,g,E);k[g]=k[g]||[];k[g].push([j,E,l,h,e]);if(d.addEventListener&&g=="mousewheel"){var i=["DOMMouseScroll",E,false];d.addEventListener.apply(d,i);Ext.EventManager.addListener(b,"unload",function(){d.removeEventListener.apply(d,i)})}if(d==C&&g=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.addListener(E)}}function F(){if(window!=top){return false}try{C.documentElement.doScroll("left")}catch(D){return false}B();return true}function c(D){if(Ext.isIE&&F()){return true}if(C.readyState==U){B();return true}K||(Q=setTimeout(arguments.callee,2));return false}var L;function J(D){L||(L=Ext.query("style, link[rel=stylesheet]"));if(L.length==C.styleSheets.length){B();return true}K||(Q=setTimeout(arguments.callee,2));return false}function Z(D){C.removeEventListener(S,arguments.callee,false);J()}function B(D){if(!K){K=true;if(Q){clearTimeout(Q)
}if(M){C.removeEventListener(S,B,false)}if(Ext.isIE&&c.bindIE){C.detachEvent("onreadystatechange",c)}P.un(b,"load",arguments.callee)}if(a&&!Ext.isReady){Ext.isReady=true;a.fire();a.listeners=[]}}function A(){a||(a=new Ext.util.Event());if(M){C.addEventListener(S,B,false)}if(Ext.isIE){if(!c()){c.bindIE=true;C.attachEvent("onreadystatechange",c)}}else{if(Ext.isOpera){(C.readyState==U&&J())||C.addEventListener(S,Z,false)}else{if(Ext.isWebKit){c()}}}P.on(b,"load",B)}function Y(D,E){return function(){var d=Ext.toArray(arguments);if(E.target==Ext.EventObject.setEvent(d[0]).target){D.apply(this,d)}}}function X(E,d,D){return function(g){D.delay(d.buffer,E,null,[new Ext.EventObjectImpl(g)])}}function T(g,e,D,d,E){return function(h){Ext.EventManager.removeListener(e,D,d,E);g(h)}}function G(E,d,D){return function(h){var g=new Ext.util.DelayedTask(E);if(!D.tasks){D.tasks=[]}D.tasks.push(g);g.delay(d.delay||10,E,null,[new Ext.EventObjectImpl(h)])}}function I(i,g,D,k,l){var E=(!D||typeof D=="boolean")?{}:D,d=Ext.getDom(i),e;
k=k||E.fn;l=l||E.scope;if(!d){throw'Error listening for "'+g+'". Element "'+i+"\" doesn't exist."}function j(m){if(!Ext){return }m=Ext.EventObject.setEvent(m);var h;if(E.delegate){if(!(h=m.getTarget(E.delegate,d))){return }}else{h=m.target}if(E.stopEvent){m.stopEvent()}if(E.preventDefault){m.preventDefault()}if(E.stopPropagation){m.stopPropagation()}if(E.normalized===false){m=m.browserEvent}k.call(l||d,m,h,E)}if(E.target){j=Y(j,E)}if(E.delay){j=G(j,E,k)}if(E.single){j=T(j,d,g,k,l)}if(E.buffer){e=new Ext.util.DelayedTask(j);j=X(j,E,e)}N(d,g,k,e,j,l);return j}var W={addListener:function(d,D,h,g,E){if(typeof D=="object"){var k=D,i,j;for(i in k){j=k[i];if(!H.test(i)){if(Ext.isFunction(j)){I(d,i,k,j,k.scope)}else{I(d,i,j)}}}}else{I(d,D,E,h,g)}},removeListener:function(d,j,p,q){d=Ext.getDom(d);var D=O(d),n=d&&(Ext.elCache[D].events)[j]||[],E,h,e,g,m,o;for(h=0,m=n.length;h<m;h++){if(Ext.isArray(o=n[h])&&o[0]==p&&(!q||o[2]==q)){if(o[4]){o[4].cancel()}g=p.tasks&&p.tasks.length;if(g){while(g--){p.tasks[g].cancel()}delete p.tasks
}E=o[1];P.un(d,j,P.extAdapter?o[3]:E);if(E&&d.addEventListener&&j=="mousewheel"){d.removeEventListener("DOMMouseScroll",E,false)}if(E&&d==C&&j=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.removeListener(E)}n.splice(h,1);if(n.length===0){delete Ext.elCache[D].events[j]}for(g in Ext.elCache[D].events){return false}Ext.elCache[D].events={};return false}}},removeAll:function(d){d=Ext.getDom(d);var E=O(d),l=Ext.elCache[E]||{},o=l.events||{},j,h,m,e,n,g,D;for(e in o){if(o.hasOwnProperty(e)){j=o[e];for(h=0,m=j.length;h<m;h++){n=j[h];if(n[4]){n[4].cancel()}if(n[0].tasks&&(g=n[0].tasks.length)){while(g--){n[0].tasks[g].cancel()}delete n.tasks}D=n[1];P.un(d,e,P.extAdapter?n[3]:D);if(d.addEventListener&&D&&e=="mousewheel"){d.removeEventListener("DOMMouseScroll",D,false)}if(D&&d==C&&e=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.removeListener(D)}}}}if(Ext.elCache[E]){Ext.elCache[E].events={}}},getListeners:function(e,D){e=Ext.getDom(e);var h=O(e),E=Ext.elCache[h]||{},g=E.events||{},d=[];if(g&&g[D]){return g[D]
}else{return null}},purgeElement:function(d,D,g){d=Ext.getDom(d);var E=O(d),k=Ext.elCache[E]||{},l=k.events||{},e,j,h;if(g){if(l&&l.hasOwnProperty(g)){j=l[g];for(e=0,h=j.length;e<h;e++){Ext.EventManager.removeListener(d,g,j[e][0])}}}else{Ext.EventManager.removeAll(d)}if(D&&d&&d.childNodes){for(e=0,h=d.childNodes.length;e<h;e++){Ext.EventManager.purgeElement(d.childNodes[e],D,g)}}},_unload:function(){var D;for(D in Ext.elCache){Ext.EventManager.removeAll(D)}delete Ext.elCache;delete Ext.Element._flyweights;var g,E,e,d=Ext.lib.Ajax;(typeof d.conn=="object")?E=d.conn:E={};for(e in E){g=E[e];if(g){d.abort({conn:g,tId:e})}}},onDocumentReady:function(d,E,D){if(Ext.isReady){a||(a=new Ext.util.Event());a.addListener(d,E,D);a.fire();a.listeners=[]}else{if(!a){A()}D=D||{};D.delay=D.delay||1;a.addListener(d,E,D)}},fireDocReady:B};W.on=W.addListener;W.un=W.removeListener;W.stoppedMouseDownEvent=new Ext.util.Event();return W}();Ext.onReady=Ext.EventManager.onDocumentReady;(function(){var A=function(){var C=document.body||document.getElementsByTagName("body")[0];
if(!C){return false}var B=[" ",Ext.isIE?"ext-ie "+(Ext.isIE6?"ext-ie6":(Ext.isIE7?"ext-ie7":(Ext.isIE8?"ext-ie8":"ext-ie9"))):Ext.isGecko?"ext-gecko "+(Ext.isGecko2?"ext-gecko2":"ext-gecko3"):Ext.isOpera?"ext-opera":Ext.isWebKit?"ext-webkit":""];if(Ext.isSafari){B.push("ext-safari "+(Ext.isSafari2?"ext-safari2":(Ext.isSafari3?"ext-safari3":"ext-safari4")))}else{if(Ext.isChrome){B.push("ext-chrome")}}if(Ext.isMac){B.push("ext-mac")}if(Ext.isLinux){B.push("ext-linux")}if(Ext.isStrict||Ext.isBorderBox){var D=C.parentNode;if(D){if(!Ext.isStrict){Ext.fly(D,"_internal").addClass("x-quirks");if(Ext.isIE&&!Ext.isStrict){Ext.isIEQuirks=true}}Ext.fly(D,"_internal").addClass(((Ext.isStrict&&Ext.isIE)||(!Ext.enableForcedBoxModel&&!Ext.isIE))?" ext-strict":" ext-border-box")}}if(Ext.enableForcedBoxModel&&!Ext.isIE){Ext.isForcedBorderBox=true;B.push("ext-forced-border-box")}Ext.fly(C,"_internal").addClass(B);return true};if(!A()){Ext.onReady(A)}})();(function(){var B=Ext.apply(Ext.supports,{correctRightMargin:true,correctTransparentColor:true,cssFloat:true});
var A=function(){var F=document.createElement("div"),E=document,C,D;F.innerHTML='<div style="height:30px;width:50px;"><div style="height:20px;width:20px;"></div></div><div style="float:left;background-color:transparent;">';E.body.appendChild(F);D=F.lastChild;if((C=E.defaultView)){if(C.getComputedStyle(F.firstChild.firstChild,null).marginRight!="0px"){B.correctRightMargin=false}if(C.getComputedStyle(D,null).backgroundColor!="transparent"){B.correctTransparentColor=false}}B.cssFloat=!!D.style.cssFloat;E.body.removeChild(F)};if(Ext.isReady){A()}else{Ext.onReady(A)}})();Ext.EventObject=function(){var B=Ext.lib.Event,C=/(dbl)?click/,A={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},D=Ext.isIE?{1:0,4:1,2:2}:{0:0,1:1,2:2};Ext.EventObjectImpl=function(E){if(E){this.setEvent(E.browserEvent||E)}};Ext.EventObjectImpl.prototype={setEvent:function(F){var E=this;if(F==E||(F&&F.browserEvent)){return F}E.browserEvent=F;if(F){E.button=F.button?D[F.button]:(F.which?F.which-1:-1);if(C.test(F.type)&&E.button==-1){E.button=0
}E.type=F.type;E.shiftKey=F.shiftKey;E.ctrlKey=F.ctrlKey||F.metaKey||false;E.altKey=F.altKey;E.keyCode=F.keyCode;E.charCode=F.charCode;E.target=B.getTarget(F);E.xy=B.getXY(F)}else{E.button=-1;E.shiftKey=false;E.ctrlKey=false;E.altKey=false;E.keyCode=0;E.charCode=0;E.target=null;E.xy=[0,0]}return E},stopEvent:function(){var E=this;if(E.browserEvent){if(E.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(E)}B.stopEvent(E.browserEvent)}},preventDefault:function(){if(this.browserEvent){B.preventDefault(this.browserEvent)}},stopPropagation:function(){var E=this;if(E.browserEvent){if(E.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(E)}B.stopPropagation(E.browserEvent)}},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.normalizeKey(this.keyCode||this.charCode)},normalizeKey:function(E){return Ext.isSafari?(A[E]||E):E},getPageX:function(){return this.xy[0]},getPageY:function(){return this.xy[1]},getXY:function(){return this.xy
},getTarget:function(F,G,E){return F?Ext.fly(this.target).findParent(F,G,E):(E?Ext.get(this.target):this.target)},getRelatedTarget:function(){return this.browserEvent?B.getRelatedTarget(this.browserEvent):null},getWheelDelta:function(){var E=this.browserEvent;var F=0;if(E.wheelDelta){F=E.wheelDelta/120}else{if(E.detail){F=-E.detail/3}}return F},within:function(G,H,E){if(G){var F=this[H?"getRelatedTarget":"getTarget"]();return F&&((E?(F==Ext.getDom(G)):false)||Ext.fly(G).contains(F))}return false}};return new Ext.EventObjectImpl()}();Ext.Loader=Ext.apply({},{load:function(I,H,J,C){var J=J||this,F=document.getElementsByTagName("head")[0],B=document.createDocumentFragment(),A=I.length,G=0,E=this;var K=function(L){F.appendChild(E.buildScriptTag(I[L],D))};var D=function(){G++;if(A==G&&typeof H=="function"){H.call(J)}else{if(C===true){K(G)}}};if(C===true){K.call(this,0)}else{Ext.each(I,function(M,L){B.appendChild(this.buildScriptTag(M,D))},this);F.appendChild(B)}},buildScriptTag:function(B,C){var A=document.createElement("script");
A.type="text/javascript";A.src=B;if(A.readyState){A.onreadystatechange=function(){if(A.readyState=="loaded"||A.readyState=="complete"){A.onreadystatechange=null;C()}}}else{A.onload=C}return A}});Ext.ns("Ext.grid","Ext.list","Ext.dd","Ext.tree","Ext.form","Ext.menu","Ext.state","Ext.layout.boxOverflow","Ext.app","Ext.ux","Ext.chart","Ext.direct","Ext.slider");Ext.apply(Ext,function(){var C=Ext,A=0,B=null;return{emptyFn:function(){},BLANK_IMAGE_URL:Ext.isIE6||Ext.isIE7||Ext.isAir?"http://www.extjs.com/s.gif":"data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",extendX:function(D,E){return Ext.extend(D,E(D.prototype))},getDoc:function(){return Ext.get(document)},num:function(E,D){E=Number(Ext.isEmpty(E)||Ext.isArray(E)||typeof E=="boolean"||(typeof E=="string"&&E.trim().length==0)?NaN:E);return isNaN(E)?D:E},value:function(F,D,E){return Ext.isEmpty(F,E)?D:F},escapeRe:function(D){return D.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},sequence:function(G,D,F,E){G[D]=G[D].createSequence(F,E)
},addBehaviors:function(H){if(!Ext.isReady){Ext.onReady(function(){Ext.addBehaviors(H)})}else{var E={},G,D,F;for(D in H){if((G=D.split("@"))[1]){F=G[0];if(!E[F]){E[F]=Ext.select(F)}E[F].on(G[1],H[D])}}E=null}},getScrollBarWidth:function(F){if(!Ext.isReady){return 0}if(F===true||B===null){var H=Ext.getBody().createChild('<div class="x-hide-offsets" style="width:100px;height:50px;overflow:hidden;"><div style="height:200px;"></div></div>'),G=H.child("div",true);var E=G.offsetWidth;H.setStyle("overflow",(Ext.isWebKit||Ext.isGecko)?"auto":"scroll");var D=G.offsetWidth;H.remove();B=E-D+2}return B},combine:function(){var F=arguments,E=F.length,H=[];for(var G=0;G<E;G++){var D=F[G];if(Ext.isArray(D)){H=H.concat(D)}else{if(D.length!==undefined&&!D.substr){H=H.concat(Array.prototype.slice.call(D,0))}else{H.push(D)}}}return H},copyTo:function(D,E,F){if(typeof F=="string"){F=F.split(/[,;\s]/)}Ext.each(F,function(G){if(E.hasOwnProperty(G)){D[G]=E[G]}},this);return D},destroy:function(){Ext.each(arguments,function(D){if(D){if(Ext.isArray(D)){this.destroy.apply(this,D)
}else{if(typeof D.destroy=="function"){D.destroy()}else{if(D.dom){D.remove()}}}}},this)},destroyMembers:function(J,H,F,G){for(var I=1,E=arguments,D=E.length;I<D;I++){Ext.destroy(J[E[I]]);delete J[E[I]]}},clean:function(D){var E=[];Ext.each(D,function(F){if(!!F){E.push(F)}});return E},unique:function(D){var E=[],F={};Ext.each(D,function(G){if(!F[G]){E.push(G)}F[G]=true});return E},flatten:function(D){var F=[];function E(G){Ext.each(G,function(H){if(Ext.isArray(H)){E(H)}else{F.push(H)}});return F}return E(D)},min:function(D,E){var F=D[0];E=E||function(H,G){return H<G?-1:1};Ext.each(D,function(G){F=E(F,G)==-1?F:G});return F},max:function(D,E){var F=D[0];E=E||function(H,G){return H>G?1:-1};Ext.each(D,function(G){F=E(F,G)==1?F:G});return F},mean:function(D){return D.length>0?Ext.sum(D)/D.length:undefined},sum:function(D){var E=0;Ext.each(D,function(F){E+=F});return E},partition:function(D,E){var F=[[],[]];Ext.each(D,function(H,I,G){F[(E&&E(H,I,G))||(!E&&H)?0:1].push(H)});return F},invoke:function(D,E){var G=[],F=Array.prototype.slice.call(arguments,2);
Ext.each(D,function(H,I){if(H&&typeof H[E]=="function"){G.push(H[E].apply(H,F))}else{G.push(undefined)}});return G},pluck:function(D,F){var E=[];Ext.each(D,function(G){E.push(G[F])});return E},zip:function(){var K=Ext.partition(arguments,function(L){return typeof L!="function"}),H=K[0],J=K[1][0],D=Ext.max(Ext.pluck(H,"length")),G=[];for(var I=0;I<D;I++){G[I]=[];if(J){G[I]=J.apply(J,Ext.pluck(H,I))}else{for(var F=0,E=H.length;F<E;F++){G[I].push(H[F][I])}}}return G},getCmp:function(D){return Ext.ComponentMgr.get(D)},useShims:C.isIE6||(C.isMac&&C.isGecko2),type:function(E){if(E===undefined||E===null){return false}if(E.htmlElement){return"element"}var D=typeof E;if(D=="object"&&E.nodeName){switch(E.nodeType){case 1:return"element";case 3:return(/\S/).test(E.nodeValue)?"textnode":"whitespace"}}if(D=="object"||D=="function"){switch(E.constructor){case Array:return"array";case RegExp:return"regexp";case Date:return"date"}if(typeof E.length=="number"&&typeof E.item=="function"){return"nodelist"}}return D},intercept:function(G,D,F,E){G[D]=G[D].createInterceptor(F,E)
},callback:function(D,G,F,E){if(typeof D=="function"){if(E){D.defer(E,G,F||[])}else{D.apply(G,F||[])}}}}}());Ext.apply(Function.prototype,{createSequence:function(B,A){var C=this;return(typeof B!="function")?this:function(){var D=C.apply(this||window,arguments);B.apply(A||this||window,arguments);return D}}});Ext.applyIf(String,{escape:function(A){return A.replace(/('|\\)/g,"\\$1")},leftPad:function(D,B,C){var A=String(D);if(!C){C=" "}while(A.length<B){A=C+A}return A}});String.prototype.toggle=function(B,A){return this==B?A:B};String.prototype.trim=function(){var A=/^\s+|\s+$/g;return function(){return this.replace(A,"")}}();Date.prototype.getElapsed=function(A){return Math.abs((A||new Date()).getTime()-this.getTime())};Ext.applyIf(Number.prototype,{constrain:function(B,A){return Math.min(Math.max(this,B),A)}});Ext.lib.Dom.getRegion=function(A){return Ext.lib.Region.getRegion(A)};Ext.lib.Region=function(C,E,A,B){var D=this;D.top=C;D[1]=C;D.right=E;D.bottom=A;D.left=B;D[0]=B};Ext.lib.Region.prototype={contains:function(B){var A=this;
return(B.left>=A.left&&B.right<=A.right&&B.top>=A.top&&B.bottom<=A.bottom)},getArea:function(){var A=this;return((A.bottom-A.top)*(A.right-A.left))},intersect:function(F){var E=this,C=Math.max(E.top,F.top),D=Math.min(E.right,F.right),A=Math.min(E.bottom,F.bottom),B=Math.max(E.left,F.left);if(A>=C&&D>=B){return new Ext.lib.Region(C,D,A,B)}},union:function(F){var E=this,C=Math.min(E.top,F.top),D=Math.max(E.right,F.right),A=Math.max(E.bottom,F.bottom),B=Math.min(E.left,F.left);return new Ext.lib.Region(C,D,A,B)},constrainTo:function(B){var A=this;A.top=A.top.constrain(B.top,B.bottom);A.bottom=A.bottom.constrain(B.top,B.bottom);A.left=A.left.constrain(B.left,B.right);A.right=A.right.constrain(B.left,B.right);return A},adjust:function(C,B,A,E){var D=this;D.top+=C;D.left+=B;D.right+=E;D.bottom+=A;return D}};Ext.lib.Region.getRegion=function(D){var F=Ext.lib.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new Ext.lib.Region(C,E,A,B)};Ext.lib.Point=function(A,C){if(Ext.isArray(A)){C=A[1];A=A[0]
}var B=this;B.x=B.right=B.left=B[0]=A;B.y=B.top=B.bottom=B[1]=C};Ext.lib.Point.prototype=new Ext.lib.Region();Ext.apply(Ext.DomHelper,function(){var E,A="afterbegin",G="afterend",H="beforebegin",D="beforeend",B=/tag|children|cn|html$/i;function F(L,N,M,O,K,I){L=Ext.getDom(L);var J;if(E.useDom){J=C(N,null);if(I){L.appendChild(J)}else{(K=="firstChild"?L:L.parentNode).insertBefore(J,L[K]||L)}}else{J=Ext.DomHelper.insertHtml(O,L,Ext.DomHelper.createHtml(N))}return M?Ext.get(J,true):J}function C(I,O){var J,R=document,M,P,K,Q;if(Ext.isArray(I)){J=R.createDocumentFragment();for(var N=0,L=I.length;N<L;N++){C(I[N],J)}}else{if(typeof I=="string"){J=R.createTextNode(I)}else{J=R.createElement(I.tag||"div");M=!!J.setAttribute;for(var P in I){if(!B.test(P)){K=I[P];if(P=="cls"){J.className=K}else{if(M){J.setAttribute(P,K)}else{J[P]=K}}}}Ext.DomHelper.applyStyles(J,I.style);if((Q=I.children||I.cn)){C(Q,J)}else{if(I.html){J.innerHTML=I.html}}}}if(O){O.appendChild(J)}return J}E={createTemplate:function(J){var I=Ext.DomHelper.createHtml(J);
return new Ext.Template(I)},useDom:false,insertBefore:function(I,K,J){return F(I,K,J,H)},insertAfter:function(I,K,J){return F(I,K,J,G,"nextSibling")},insertFirst:function(I,K,J){return F(I,K,J,A,"firstChild")},append:function(I,K,J){return F(I,K,J,D,"",true)},createDom:C};return E}());Ext.apply(Ext.Template.prototype,{disableFormats:false,re:/\{([\w\-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,argsRe:/^\s*['"](.*)["']\s*$/,compileARe:/\\/g,compileBRe:/(\r\n|\n)/g,compileCRe:/'/g,applyTemplate:function(B){var F=this,A=F.disableFormats!==true,E=Ext.util.Format,C=F;if(F.compiled){return F.compiled(B)}function D(H,J,M,I){if(M&&A){if(M.substr(0,5)=="this."){return C.call(M.substr(5),B[J],B)}else{if(I){var L=F.argsRe;I=I.split(",");for(var K=0,G=I.length;K<G;K++){I[K]=I[K].replace(L,"$1")}I=[B[J]].concat(I)}else{I=[B[J]]}return E[M].apply(E,I)}}else{return B[J]!==undefined?B[J]:""}}return F.html.replace(F.re,D)},compile:function(){var me=this,fm=Ext.util.Format,useF=me.disableFormats!==true,sep=Ext.isGecko?"+":",",body;function fn(m,name,format,args){if(format&&useF){args=args?","+args:"";
if(format.substr(0,5)!="this."){format="fm."+format+"("}else{format='this.call("'+format.substr(5)+'", ';args=", values"}}else{args="";format="(values['"+name+"'] == undefined ? '' : "}return"'"+sep+format+"values['"+name+"']"+args+")"+sep+"'"}if(Ext.isGecko){body="this.compiled = function(values){ return '"+me.html.replace(me.compileARe,"\\\\").replace(me.compileBRe,"\\n").replace(me.compileCRe,"\\'").replace(me.re,fn)+"';};"}else{body=["this.compiled = function(values){ return ['"];body.push(me.html.replace(me.compileARe,"\\\\").replace(me.compileBRe,"\\n").replace(me.compileCRe,"\\'").replace(me.re,fn));body.push("'].join('');};");body=body.join("")}eval(body);return me},call:function(C,B,A){return this[C](B,A)}});Ext.Template.prototype.apply=Ext.Template.prototype.applyTemplate;Ext.util.Functions={createInterceptor:function(C,B,A){var D=C;if(!Ext.isFunction(B)){return C}else{return function(){var F=this,E=arguments;B.target=F;B.method=C;return(B.apply(A||F||window,E)!==false)?C.apply(F||window,E):null}}},createDelegate:function(C,D,B,A){if(!Ext.isFunction(C)){return C
}return function(){var F=B||arguments;if(A===true){F=Array.prototype.slice.call(arguments,0);F=F.concat(B)}else{if(Ext.isNumber(A)){F=Array.prototype.slice.call(arguments,0);var E=[A,0].concat(B);Array.prototype.splice.apply(F,E)}}return C.apply(D||window,F)}},defer:function(D,C,E,B,A){D=Ext.util.Functions.createDelegate(D,E,B,A);if(C>0){return setTimeout(D,C)}D();return 0},createSequence:function(C,B,A){if(!Ext.isFunction(B)){return C}else{return function(){var D=C.apply(this||window,arguments);B.apply(A||this||window,arguments);return D}}}};Ext.defer=Ext.util.Functions.defer;Ext.createInterceptor=Ext.util.Functions.createInterceptor;Ext.createSequence=Ext.util.Functions.createSequence;Ext.createDelegate=Ext.util.Functions.createDelegate;Ext.apply(Ext.util.Observable.prototype,function(){function A(H){var G=(this.methodEvents=this.methodEvents||{})[H],D,C,E,F=this;if(!G){this.methodEvents[H]=G={};G.originalFn=this[H];G.methodName=H;G.before=[];G.after=[];var B=function(K,J,I){if((C=K.apply(J||F,I))!==undefined){if(typeof C=="object"){if(C.returnValue!==undefined){D=C.returnValue
}else{D=C}E=!!C.cancel}else{if(C===false){E=true}else{D=C}}}};this[H]=function(){var K=Array.prototype.slice.call(arguments,0),J;D=C=undefined;E=false;for(var L=0,I=G.before.length;L<I;L++){J=G.before[L];B(J.fn,J.scope,K);if(E){return D}}if((C=G.originalFn.apply(F,K))!==undefined){D=C}for(var L=0,I=G.after.length;L<I;L++){J=G.after[L];B(J.fn,J.scope,K);if(E){return D}}return D}}return G}return{beforeMethod:function(D,C,B){A.call(this,D).before.push({fn:C,scope:B})},afterMethod:function(D,C,B){A.call(this,D).after.push({fn:C,scope:B})},removeMethodListener:function(G,E,D){var F=this.getMethodEvent(G);for(var C=0,B=F.before.length;C<B;C++){if(F.before[C].fn==E&&F.before[C].scope==D){F.before.splice(C,1);return }}for(var C=0,B=F.after.length;C<B;C++){if(F.after[C].fn==E&&F.after[C].scope==D){F.after.splice(C,1);return }}},relayEvents:function(H,E){var G=this;function F(I){return function(){return G.fireEvent.apply(G,[I].concat(Array.prototype.slice.call(arguments,0)))}}for(var D=0,B=E.length;D<B;D++){var C=E[D];G.events[C]=G.events[C]||true;
H.on(C,F(C),G)}},enableBubble:function(E){var F=this;if(!Ext.isEmpty(E)){E=Ext.isArray(E)?E:Array.prototype.slice.call(arguments,0);for(var D=0,B=E.length;D<B;D++){var C=E[D];C=C.toLowerCase();var G=F.events[C]||true;if(typeof G=="boolean"){G=new Ext.util.Event(F,C);F.events[C]=G}G.bubble=true}}}}}());Ext.util.Observable.capture=function(C,B,A){C.fireEvent=C.fireEvent.createInterceptor(B,A)};Ext.util.Observable.observeClass=function(B,A){if(B){if(!B.fireEvent){Ext.apply(B,new Ext.util.Observable());Ext.util.Observable.capture(B.prototype,B.fireEvent,B)}if(typeof A=="object"){B.on(A)}return B}};Ext.apply(Ext.EventManager,function(){var E,K,G,B,A=Ext.lib.Dom,J=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,C=Ext.EventManager._unload,I=0,H=0,F=Ext.isWebKit?Ext.num(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1])>=525:!((Ext.isGecko&&!Ext.isWindows)||Ext.isOpera);return{_unload:function(){Ext.EventManager.un(window,"resize",this.fireWindowResize,this);C.call(Ext.EventManager)
},doResizeEvent:function(){var L=A.getViewHeight(),D=A.getViewWidth();if(H!=L||I!=D){E.fire(I=D,H=L)}},onWindowResize:function(M,L,D){if(!E){E=new Ext.util.Event();K=new Ext.util.DelayedTask(this.doResizeEvent);Ext.EventManager.on(window,"resize",this.fireWindowResize,this)}E.addListener(M,L,D)},fireWindowResize:function(){if(E){K.delay(100)}},onTextResize:function(N,M,D){if(!G){G=new Ext.util.Event();var L=new Ext.Element(document.createElement("div"));L.dom.className="x-text-resize";L.dom.innerHTML="X";L.appendTo(document.body);B=L.dom.offsetHeight;setInterval(function(){if(L.dom.offsetHeight!=B){G.fire(B,B=L.dom.offsetHeight)}},this.textResizeInterval)}G.addListener(N,M,D)},removeResizeListener:function(L,D){if(E){E.removeListener(L,D)}},fireResize:function(){if(E){E.fire(A.getViewWidth(),A.getViewHeight())}},textResizeInterval:50,ieDeferSrc:false,getKeyEvent:function(){return F?"keydown":"keypress"},useKeydown:F}}());Ext.EventManager.on=Ext.EventManager.addListener;Ext.apply(Ext.EventObjectImpl.prototype,{BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,CONTROL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGEUP:33,PAGE_DOWN:34,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,isNavKeyPress:function(){var B=this,A=this.normalizeKey(B.keyCode);
return(A>=33&&A<=40)||A==B.RETURN||A==B.TAB||A==B.ESC},isSpecialKey:function(){var A=this.normalizeKey(this.keyCode);return(this.type=="keypress"&&this.ctrlKey)||this.isNavKeyPress()||(A==this.BACKSPACE)||(A>=16&&A<=20)||(A>=44&&A<=46)},getPoint:function(){return new Ext.lib.Point(this.xy[0],this.xy[1])},hasModifier:function(){return((this.ctrlKey||this.altKey)||this.shiftKey)}});Ext.Element.addMethods({swallowEvent:function(A,B){var D=this;function C(E){E.stopPropagation();if(B){E.preventDefault()}}if(Ext.isArray(A)){Ext.each(A,function(E){D.on(E,C)});return D}D.on(A,C);return D},relayEvent:function(A,B){this.on(A,function(C){B.fireEvent(A,C)})},clean:function(B){var D=this,E=D.dom,F=E.firstChild,C=-1;if(Ext.Element.data(E,"isCleaned")&&B!==true){return D}while(F){var A=F.nextSibling;if(F.nodeType==3&&!(/\S/.test(F.nodeValue))){E.removeChild(F)}else{F.nodeIndex=++C}F=A}Ext.Element.data(E,"isCleaned",true);return D},load:function(){var A=this.getUpdater();A.update.apply(A,arguments);return this},getUpdater:function(){return this.updateManager||(this.updateManager=new Ext.Updater(this))
},update:function(html,loadScripts,callback){if(!this.dom){return this}html=html||"";if(loadScripts!==true){this.dom.innerHTML=html;if(typeof callback=="function"){callback()}return this}var id=Ext.id(),dom=this.dom;html+='<span id="'+id+'"></span>';Ext.lib.Event.onAvailable(id,function(){var DOC=document,hd=DOC.getElementsByTagName("head")[0],re=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,srcRe=/\ssrc=([\'\"])(.*?)\1/i,typeRe=/\stype=([\'\"])(.*?)\1/i,match,attrs,srcMatch,typeMatch,el,s;while((match=re.exec(html))){attrs=match[1];srcMatch=attrs?attrs.match(srcRe):false;if(srcMatch&&srcMatch[2]){s=DOC.createElement("script");s.src=srcMatch[2];typeMatch=attrs.match(typeRe);if(typeMatch&&typeMatch[2]){s.type=typeMatch[2]}hd.appendChild(s)}else{if(match[2]&&match[2].length>0){if(window.execScript){window.execScript(match[2])}else{window.eval(match[2])}}}}el=DOC.getElementById(id);if(el){Ext.removeNode(el)}if(typeof callback=="function"){callback()}});dom.innerHTML=html.replace(/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,"");
return this},removeAllListeners:function(){this.removeAnchor();Ext.EventManager.removeAll(this.dom);return this},createProxy:function(A,E,D){A=(typeof A=="object")?A:{tag:"div",cls:A};var C=this,B=E?Ext.DomHelper.append(E,A,true):Ext.DomHelper.insertBefore(C.dom,A,true);if(D&&C.setBox&&C.getBox){B.setBox(C.getBox())}return B}});Ext.Element.prototype.getUpdateManager=Ext.Element.prototype.getUpdater;Ext.Element.addMethods({getAnchorXY:function(E,J,N){E=(E||"tl").toLowerCase();N=N||{};var I=this,B=I.dom==document.body||I.dom==document,L=N.width||B?Ext.lib.Dom.getViewWidth():I.getWidth(),G=N.height||B?Ext.lib.Dom.getViewHeight():I.getHeight(),M,A=Math.round,C=I.getXY(),K=I.getScroll(),H=B?K.left:!J?C[0]:0,F=B?K.top:!J?C[1]:0,D={c:[A(L*0.5),A(G*0.5)],t:[A(L*0.5),0],l:[0,A(G*0.5)],r:[L,A(G*0.5)],b:[A(L*0.5),G],tl:[0,0],bl:[0,G],br:[L,G],tr:[L,0]};M=D[E];return[M[0]+H,M[1]+F]},anchorTo:function(B,G,C,A,J,K){var H=this,E=H.dom,I=!Ext.isEmpty(J),D=function(){Ext.fly(E).alignTo(B,G,C,A);Ext.callback(K,Ext.fly(E))},F=this.getAnchor();
this.removeAnchor();Ext.apply(F,{fn:D,scroll:I});Ext.EventManager.onWindowResize(D,null);if(I){Ext.EventManager.on(window,"scroll",D,null,{buffer:!isNaN(J)?J:50})}D.call(H);return H},removeAnchor:function(){var B=this,A=this.getAnchor();if(A&&A.fn){Ext.EventManager.removeResizeListener(A.fn);if(A.scroll){Ext.EventManager.un(window,"scroll",A.fn)}delete A.fn}return B},getAnchor:function(){var B=Ext.Element.data,C=this.dom;if(!C){return }var A=B(C,"_anchor");if(!A){A=B(C,"_anchor",{})}return A},getAlignToXY:function(D,P,Q){D=Ext.get(D);if(!D||!D.dom){throw"Element.alignToXY with an element that doesn't exist"}Q=Q||[0,0];P=(!P||P=="?"?"tl-bl?":(!(/-/).test(P)&&P!==""?"tl-"+P:P||"tl-bl")).toLowerCase();var Z=this,W=Z.dom,b,a,I,H,K,U,N,L=Ext.lib.Dom.getViewWidth()-10,V=Ext.lib.Dom.getViewHeight()-10,B,E,F,G,M,O,e=document,Y=e.documentElement,J=e.body,T=(Y.scrollLeft||J.scrollLeft||0)+5,S=(Y.scrollTop||J.scrollTop||0)+5,X=false,C="",A="",R=P.match(/^([a-z]+)-([a-z]+)(\?)?$/);if(!R){throw"Element.alignTo with an invalid alignment "+P
}C=R[1];A=R[2];X=!!R[3];b=Z.getAnchorXY(C,true);a=D.getAnchorXY(A,false);I=a[0]-b[0]+Q[0];H=a[1]-b[1]+Q[1];if(X){K=Z.getWidth();U=Z.getHeight();N=D.getRegion();B=C.charAt(0);E=C.charAt(C.length-1);F=A.charAt(0);G=A.charAt(A.length-1);M=((B=="t"&&F=="b")||(B=="b"&&F=="t"));O=((E=="r"&&G=="l")||(E=="l"&&G=="r"));if(I+K>L+T){I=O?N.left-K:L+T-K}if(I<T){I=O?N.right:T}if(H+U>V+S){H=M?N.top-U:V+S-U}if(H<S){H=M?N.bottom:S}}return[I,H]},alignTo:function(C,A,E,B){var D=this;return D.setXY(D.getAlignToXY(C,A,E),D.preanim&&!!B?D.preanim(arguments,3):false)},adjustForConstraints:function(C,A,B){return this.getConstrainToXY(A||document,false,B,C)||C},getConstrainToXY:function(B,A,C,E){var D={top:0,left:0,bottom:0,right:0};return function(G,U,J,L){G=Ext.get(G);J=J?Ext.applyIf(J,D):D;var T,X,S=0,R=0;if(G.dom==document.body||G.dom==document){T=Ext.lib.Dom.getViewWidth();X=Ext.lib.Dom.getViewHeight()}else{T=G.dom.clientWidth;X=G.dom.clientHeight;if(!U){var Q=G.getXY();S=Q[0];R=Q[1]}}var P=G.getScroll();S+=J.left+P.left;R+=J.top+P.top;
T-=J.right;X-=J.bottom;var V=S+T,F=R+X,H=L||(!U?this.getXY():[this.getLeft(true),this.getTop(true)]),N=H[0],M=H[1],I=this.getConstrainOffset(),O=this.dom.offsetWidth+I,W=this.dom.offsetHeight+I;var K=false;if((N+O)>V){N=V-O;K=true}if((M+W)>F){M=F-W;K=true}if(N<S){N=S;K=true}if(M<R){M=R;K=true}return K?[N,M]:false}}(),getConstrainOffset:function(){return 0},getCenterXY:function(){return this.getAlignToXY(document,"c-c")},center:function(A){return this.alignTo(A||document,"c-c")}});Ext.Element.addMethods({select:function(A,B){return Ext.Element.select(A,B,this.dom)}});Ext.apply(Ext.Element.prototype,function(){var C=Ext.getDom,A=Ext.get,B=Ext.DomHelper;return{insertSibling:function(H,F,G){var I=this,E,D=(F||"before").toLowerCase()=="after",J;if(Ext.isArray(H)){J=I;Ext.each(H,function(K){E=Ext.fly(J,"_internal").insertSibling(K,F,G);if(D){J=E}});return E}H=H||{};if(H.nodeType||H.dom){E=I.dom.parentNode.insertBefore(C(H),D?I.dom.nextSibling:I.dom);if(!G){E=A(E)}}else{if(D&&!I.dom.nextSibling){E=B.append(I.dom.parentNode,H,!G)
}else{E=B[D?"insertAfter":"insertBefore"](I.dom,H,!G)}}return E}}}());Ext.Element.boxMarkup='<div class="{0}-tl"><div class="{0}-tr"><div class="{0}-tc"></div></div></div><div class="{0}-ml"><div class="{0}-mr"><div class="{0}-mc"></div></div></div><div class="{0}-bl"><div class="{0}-br"><div class="{0}-bc"></div></div></div>';Ext.Element.addMethods(function(){var A="_internal",B=/(\d+\.?\d+)px/;return{applyStyles:function(C){Ext.DomHelper.applyStyles(this.dom,C);return this},getStyles:function(){var C={};Ext.each(arguments,function(D){C[D]=this.getStyle(D)},this);return C},setOverflow:function(C){var D=this.dom;if(C=="auto"&&Ext.isMac&&Ext.isGecko2){D.style.overflow="hidden";(function(){D.style.overflow="auto"}).defer(1)}else{D.style.overflow=C}},boxWrap:function(C){C=C||"x-box";var D=Ext.get(this.insertHtml("beforeBegin","<div class='"+C+"'>"+String.format(Ext.Element.boxMarkup,C)+"</div>"));Ext.DomQuery.selectNode("."+C+"-mc",D.dom).appendChild(this.dom);return D},setSize:function(E,C,D){var F=this;if(typeof E=="object"){C=E.height;
E=E.width}E=F.adjustWidth(E);C=F.adjustHeight(C);if(!D||!F.anim){F.dom.style.width=F.addUnits(E);F.dom.style.height=F.addUnits(C)}else{F.anim({width:{to:E},height:{to:C}},F.preanim(arguments,2))}return F},getComputedHeight:function(){var D=this,C=Math.max(D.dom.offsetHeight,D.dom.clientHeight);if(!C){C=parseFloat(D.getStyle("height"))||0;if(!D.isBorderBox()){C+=D.getFrameWidth("tb")}}return C},getComputedWidth:function(){var C=Math.max(this.dom.offsetWidth,this.dom.clientWidth);if(!C){C=parseFloat(this.getStyle("width"))||0;if(!this.isBorderBox()){C+=this.getFrameWidth("lr")}}return C},getFrameWidth:function(D,C){return C&&this.isBorderBox()?0:(this.getPadding(D)+this.getBorderWidth(D))},addClassOnOver:function(C){this.hover(function(){Ext.fly(this,A).addClass(C)},function(){Ext.fly(this,A).removeClass(C)});return this},addClassOnFocus:function(C){this.on("focus",function(){Ext.fly(this,A).addClass(C)},this.dom);this.on("blur",function(){Ext.fly(this,A).removeClass(C)},this.dom);return this},addClassOnClick:function(C){var D=this.dom;
this.on("mousedown",function(){Ext.fly(D,A).addClass(C);var F=Ext.getDoc(),E=function(){Ext.fly(D,A).removeClass(C);F.removeListener("mouseup",E)};F.on("mouseup",E)});return this},getViewSize:function(){var E=document,F=this.dom,C=(F==E||F==E.body);if(C){var D=Ext.lib.Dom;return{width:D.getViewWidth(),height:D.getViewHeight()}}else{return{width:F.clientWidth,height:F.clientHeight}}},getStyleSize:function(){var G=this,C,F,I=document,J=this.dom,D=(J==I||J==I.body),E=J.style;if(D){var H=Ext.lib.Dom;return{width:H.getViewWidth(),height:H.getViewHeight()}}if(E.width&&E.width!="auto"){C=parseFloat(E.width);if(G.isBorderBox()){C-=G.getFrameWidth("lr")}}if(E.height&&E.height!="auto"){F=parseFloat(E.height);if(G.isBorderBox()){F-=G.getFrameWidth("tb")}}return{width:C||G.getWidth(true),height:F||G.getHeight(true)}},getSize:function(C){return{width:this.getWidth(C),height:this.getHeight(C)}},repaint:function(){var C=this.dom;this.addClass("x-repaint");setTimeout(function(){Ext.fly(C).removeClass("x-repaint")},1);return this
},unselectable:function(){this.dom.unselectable="on";return this.swallowEvent("selectstart",true).applyStyles("-moz-user-select:none;-khtml-user-select:none;").addClass("x-unselectable")},getMargins:function(D){var E=this,C,F={t:"top",l:"left",r:"right",b:"bottom"},G={};if(!D){for(C in E.margins){G[F[C]]=parseFloat(E.getStyle(E.margins[C]))||0}return G}else{return E.addStyles.call(E,D,E.margins)}}}}());Ext.Element.addMethods({setBox:function(E,F,B){var D=this,A=E.width,C=E.height;if((F&&!D.autoBoxAdjust)&&!D.isBorderBox()){A-=(D.getBorderWidth("lr")+D.getPadding("lr"));C-=(D.getBorderWidth("tb")+D.getPadding("tb"))}D.setBounds(E.x,E.y,A,C,D.animTest.call(D,arguments,B,2));return D},getBox:function(G,L){var I=this,P,D,K,C=I.getBorderWidth,M=I.getPadding,E,A,O,J;if(!L){P=I.getXY()}else{D=parseInt(I.getStyle("left"),10)||0;K=parseInt(I.getStyle("top"),10)||0;P=[D,K]}var B=I.dom,N=B.offsetWidth,F=B.offsetHeight,H;if(!G){H={x:P[0],y:P[1],0:P[0],1:P[1],width:N,height:F}}else{E=C.call(I,"l")+M.call(I,"l");A=C.call(I,"r")+M.call(I,"r");
O=C.call(I,"t")+M.call(I,"t");J=C.call(I,"b")+M.call(I,"b");H={x:P[0]+E,y:P[1]+O,0:P[0]+E,1:P[1]+O,width:N-(E+A),height:F-(O+J)}}H.right=H.x+H.width;H.bottom=H.y+H.height;return H},move:function(I,B,C){var F=this,L=F.getXY(),J=L[0],H=L[1],D=[J-B,H],K=[J+B,H],G=[J,H-B],A=[J,H+B],E={l:D,left:D,r:K,right:K,t:G,top:G,up:G,b:A,bottom:A,down:A};I=I.toLowerCase();F.moveTo(E[I][0],E[I][1],F.animTest.call(F,arguments,C,2))},setLeftTop:function(D,C){var B=this,A=B.dom.style;A.left=B.addUnits(D);A.top=B.addUnits(C);return B},getRegion:function(){return Ext.lib.Dom.getRegion(this.dom)},setBounds:function(B,F,D,A,C){var E=this;if(!C||!E.anim){E.setSize(D,A);E.setLocation(B,F)}else{E.anim({points:{to:[B,F]},width:{to:E.adjustWidth(D)},height:{to:E.adjustHeight(A)}},E.preanim(arguments,4),"motion")}return E},setRegion:function(B,A){return this.setBounds(B.left,B.top,B.right-B.left,B.bottom-B.top,this.animTest.call(this,arguments,A,1))}});Ext.Element.addMethods({scrollTo:function(B,D,A){var E=/top/i.test(B),C=this,F=C.dom,G;if(!A||!C.anim){G="scroll"+(E?"Top":"Left");
F[G]=D}else{G="scroll"+(E?"Left":"Top");C.anim({scroll:{to:E?[F[G],D]:[D,F[G]]}},C.preanim(arguments,2),"scroll")}return C},scrollIntoView:function(C,F){var K=Ext.getDom(C)||Ext.getBody().dom,E=this.dom,D=this.getOffsetsTo(K),H=D[0]+K.scrollLeft,N=D[1]+K.scrollTop,L=N+E.offsetHeight,B=H+E.offsetWidth,A=K.clientHeight,I=parseInt(K.scrollTop,10),M=parseInt(K.scrollLeft,10),G=I+A,J=M+K.clientWidth;if(E.offsetHeight>A||N<I){K.scrollTop=N}else{if(L>G){K.scrollTop=L-A}}K.scrollTop=K.scrollTop;if(F!==false){if(E.offsetWidth>K.clientWidth||H<M){K.scrollLeft=H}else{if(B>J){K.scrollLeft=B-K.clientWidth}}K.scrollLeft=K.scrollLeft}return this},scrollChildIntoView:function(B,A){Ext.fly(B,"_scrollChildIntoView").scrollIntoView(this,A)},scroll:function(J,B,D){if(!this.isScrollable()){return false}var E=this.dom,F=E.scrollLeft,M=E.scrollTop,K=E.scrollWidth,I=E.scrollHeight,G=E.clientWidth,A=E.clientHeight,C=false,L,H={l:Math.min(F+B,K-G),r:L=Math.max(F-B,0),t:Math.max(M-B,0),b:Math.min(M+B,I-A)};H.d=H.b;H.u=H.t;J=J.substr(0,1);
if((L=H[J])>-1){C=true;this.scrollTo(J=="l"||J=="r"?"left":"top",L,this.preanim(arguments,2))}return C}});Ext.Element.addMethods(function(){var D="visibility",B="display",A="hidden",G="none",C="x-masked",F="x-masked-relative",E=Ext.Element.data;return{isVisible:function(H){var I=!this.isStyle(D,A)&&!this.isStyle(B,G),J=this.dom.parentNode;if(H!==true||!I){return I}while(J&&!(/^body/i.test(J.tagName))){if(!Ext.fly(J,"_isVisible").isVisible()){return false}J=J.parentNode}return true},isDisplayed:function(){return !this.isStyle(B,G)},enableDisplayMode:function(H){this.setVisibilityMode(Ext.Element.DISPLAY);if(!Ext.isEmpty(H)){E(this.dom,"originalDisplay",H)}return this},mask:function(I,M){var O=this,K=O.dom,N=Ext.DomHelper,L="ext-el-mask-msg",H,P;if(!/^body/i.test(K.tagName)&&O.getStyle("position")=="static"){O.addClass(F)}if(H=E(K,"maskMsg")){H.remove()}if(H=E(K,"mask")){H.remove()}P=N.append(K,{cls:"ext-el-mask"},true);E(K,"mask",P);O.addClass(C);P.setDisplayed(true);if(typeof I=="string"){var J=N.append(K,{cls:L,cn:{tag:"div"}},true);
E(K,"maskMsg",J);J.dom.className=M?L+" "+M:L;J.dom.firstChild.innerHTML=I;J.setDisplayed(true);J.center(O)}if(Ext.isIE&&!(Ext.isIE7&&Ext.isStrict)&&O.getStyle("height")=="auto"){P.setSize(undefined,O.getHeight())}return P},unmask:function(){var J=this,K=J.dom,H=E(K,"mask"),I=E(K,"maskMsg");if(H){if(I){I.remove();E(K,"maskMsg",undefined)}H.remove();E(K,"mask",undefined);J.removeClass([C,F])}},isMasked:function(){var H=E(this.dom,"mask");return H&&H.isVisible()},createShim:function(){var H=document.createElement("iframe"),I;H.frameBorder="0";H.className="ext-shim";H.src=Ext.SSL_SECURE_URL;I=Ext.get(this.dom.parentNode.insertBefore(H,this.dom));I.autoBoxAdjust=false;return I}}}());Ext.Element.addMethods({addKeyListener:function(B,D,C){var A;if(typeof B!="object"||Ext.isArray(B)){A={key:B,fn:D,scope:C}}else{A={key:B.key,shift:B.shift,ctrl:B.ctrl,alt:B.alt,fn:D,scope:C}}return new Ext.KeyMap(this,A)},addKeyMap:function(A){return new Ext.KeyMap(this,A)}});Ext.CompositeElementLite.importElementMethods();Ext.apply(Ext.CompositeElementLite.prototype,{addElements:function(C,A){if(!C){return this
}if(typeof C=="string"){C=Ext.Element.selectorFunction(C,A)}var B=this.elements;Ext.each(C,function(D){B.push(Ext.get(D))});return this},first:function(){return this.item(0)},last:function(){return this.item(this.getCount()-1)},contains:function(A){return this.indexOf(A)!=-1},removeElement:function(D,E){var C=this,A=this.elements,B;Ext.each(D,function(F){if((B=(A[F]||A[F=C.indexOf(F)]))){if(E){if(B.dom){B.remove()}else{Ext.removeNode(B)}}A.splice(F,1)}});return this}});Ext.CompositeElement=Ext.extend(Ext.CompositeElementLite,{constructor:function(B,A){this.elements=[];this.add(B,A)},getElement:function(A){return A},transformElement:function(A){return Ext.get(A)}});Ext.Element.select=function(A,D,B){var C;if(typeof A=="string"){C=Ext.Element.selectorFunction(A,B)}else{if(A.length!==undefined){C=A}else{throw"Invalid selector"}}return(D===true)?new Ext.CompositeElement(C):new Ext.CompositeElementLite(C)};Ext.select=Ext.Element.select;Ext.UpdateManager=Ext.Updater=Ext.extend(Ext.util.Observable,function(){var B="beforeupdate",D="update",C="failure";
function A(G){var H=this;H.transaction=null;if(G.argument.form&&G.argument.reset){try{G.argument.form.reset()}catch(I){}}if(H.loadScripts){H.renderer.render(H.el,G,H,F.createDelegate(H,[G]))}else{H.renderer.render(H.el,G,H);F.call(H,G)}}function F(G,H,I){this.fireEvent(H||D,this.el,G);if(Ext.isFunction(G.argument.callback)){G.argument.callback.call(G.argument.scope,this.el,Ext.isEmpty(I)?true:false,G,G.argument.options)}}function E(G){F.call(this,G,C,!!(this.transaction=null))}return{constructor:function(H,G){var I=this;H=Ext.get(H);if(!G&&H.updateManager){return H.updateManager}I.el=H;I.defaultUrl=null;I.addEvents(B,D,C);Ext.apply(I,Ext.Updater.defaults);I.transaction=null;I.refreshDelegate=I.refresh.createDelegate(I);I.updateDelegate=I.update.createDelegate(I);I.formUpdateDelegate=(I.formUpdate||function(){}).createDelegate(I);I.renderer=I.renderer||I.getDefaultRenderer();Ext.Updater.superclass.constructor.call(I)},setRenderer:function(G){this.renderer=G},getRenderer:function(){return this.renderer},getDefaultRenderer:function(){return new Ext.Updater.BasicRenderer()
},setDefaultUrl:function(G){this.defaultUrl=G},getEl:function(){return this.el},update:function(H,M,N,K){var J=this,G,I;if(J.fireEvent(B,J.el,H,M)!==false){if(Ext.isObject(H)){G=H;H=G.url;M=M||G.params;N=N||G.callback;K=K||G.discardUrl;I=G.scope;if(!Ext.isEmpty(G.nocache)){J.disableCaching=G.nocache}if(!Ext.isEmpty(G.text)){J.indicatorText='<div class="loading-indicator">'+G.text+"</div>"}if(!Ext.isEmpty(G.scripts)){J.loadScripts=G.scripts}if(!Ext.isEmpty(G.timeout)){J.timeout=G.timeout}}J.showLoading();if(!K){J.defaultUrl=H}if(Ext.isFunction(H)){H=H.call(J)}var L=Ext.apply({},{url:H,params:(Ext.isFunction(M)&&I)?M.createDelegate(I):M,success:A,failure:E,scope:J,callback:undefined,timeout:(J.timeout*1000),disableCaching:J.disableCaching,argument:{"options":G,"url":H,"form":null,"callback":N,"scope":I||window,"params":M}},G);J.transaction=Ext.Ajax.request(L)}},formUpdate:function(J,G,I,K){var H=this;if(H.fireEvent(B,H.el,J,G)!==false){if(Ext.isFunction(G)){G=G.call(H)}J=Ext.getDom(J);H.transaction=Ext.Ajax.request({form:J,url:G,success:A,failure:E,scope:H,timeout:(H.timeout*1000),argument:{"url":G,"form":J,"callback":K,"reset":I}});
H.showLoading.defer(1,H)}},startAutoRefresh:function(H,I,K,L,G){var J=this;if(G){J.update(I||J.defaultUrl,K,L,true)}if(J.autoRefreshProcId){clearInterval(J.autoRefreshProcId)}J.autoRefreshProcId=setInterval(J.update.createDelegate(J,[I||J.defaultUrl,K,L,true]),H*1000)},stopAutoRefresh:function(){if(this.autoRefreshProcId){clearInterval(this.autoRefreshProcId);delete this.autoRefreshProcId}},isAutoRefreshing:function(){return !!this.autoRefreshProcId},showLoading:function(){if(this.showLoadIndicator){this.el.dom.innerHTML=this.indicatorText}},abort:function(){if(this.transaction){Ext.Ajax.abort(this.transaction)}},isUpdating:function(){return this.transaction?Ext.Ajax.isLoading(this.transaction):false},refresh:function(G){if(this.defaultUrl){this.update(this.defaultUrl,null,G,true)}}}}());Ext.Updater.defaults={timeout:30,disableCaching:false,showLoadIndicator:true,indicatorText:'<div class="loading-indicator">Loading...</div>',loadScripts:false,sslBlankUrl:Ext.SSL_SECURE_URL};Ext.Updater.updateElement=function(D,C,E,B){var A=Ext.get(D).getUpdater();
Ext.apply(A,B);A.update(C,E,B?B.callback:null)};Ext.Updater.BasicRenderer=function(){};Ext.Updater.BasicRenderer.prototype={render:function(C,A,B,D){C.update(A.responseText,B.loadScripts,D)}};(function(){Date.useStrict=false;function B(D){var C=Array.prototype.slice.call(arguments,1);return D.replace(/\{(\d+)\}/g,function(E,F){return C[F]})}Date.formatCodeToRegex=function(D,C){var E=Date.parseCodes[D];if(E){E=typeof E=="function"?E():E;Date.parseCodes[D]=E}return E?Ext.applyIf({c:E.c?B(E.c,C||"{0}"):E.c},E):{g:0,c:null,s:Ext.escapeRe(D)}};var A=Date.formatCodeToRegex;Ext.apply(Date,{parseFunctions:{"M$":function(D,C){var E=new RegExp("\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/");var F=(D||"").match(E);return F?new Date(((F[1]||"")+F[2])*1):null}},parseRegexes:[],formatFunctions:{"M$":function(){return"\\/Date("+this.getTime()+")\\/"}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},getShortMonthName:function(C){return Date.monthNames[C].substring(0,3)
},getShortDayName:function(C){return Date.dayNames[C].substring(0,3)},getMonthNumber:function(C){return Date.monthNumbers[C.substring(0,1).toUpperCase()+C.substring(1,3).toLowerCase()]},formatContainsHourInfo:(function(){var D=/(\\.)/g,C=/([gGhHisucUOPZ]|M\$)/;return function(E){return C.test(E.replace(D,""))}})(),formatCodes:{d:"String.leftPad(this.getDate(), 2, '0')",D:"Date.getShortDayName(this.getDay())",j:"this.getDate()",l:"Date.dayNames[this.getDay()]",N:"(this.getDay() ? this.getDay() : 7)",S:"this.getSuffix()",w:"this.getDay()",z:"this.getDayOfYear()",W:"String.leftPad(this.getWeekOfYear(), 2, '0')",F:"Date.monthNames[this.getMonth()]",m:"String.leftPad(this.getMonth() + 1, 2, '0')",M:"Date.getShortMonthName(this.getMonth())",n:"(this.getMonth() + 1)",t:"this.getDaysInMonth()",L:"(this.isLeapYear() ? 1 : 0)",o:"(this.getFullYear() + (this.getWeekOfYear() == 1 && this.getMonth() > 0 ? +1 : (this.getWeekOfYear() >= 52 && this.getMonth() < 11 ? -1 : 0)))",Y:"String.leftPad(this.getFullYear(), 4, '0')",y:"('' + this.getFullYear()).substring(2, 4)",a:"(this.getHours() < 12 ? 'am' : 'pm')",A:"(this.getHours() < 12 ? 'AM' : 'PM')",g:"((this.getHours() % 12) ? this.getHours() % 12 : 12)",G:"this.getHours()",h:"String.leftPad((this.getHours() % 12) ? this.getHours() % 12 : 12, 2, '0')",H:"String.leftPad(this.getHours(), 2, '0')",i:"String.leftPad(this.getMinutes(), 2, '0')",s:"String.leftPad(this.getSeconds(), 2, '0')",u:"String.leftPad(this.getMilliseconds(), 3, '0')",O:"this.getGMTOffset()",P:"this.getGMTOffset(true)",T:"this.getTimezone()",Z:"(this.getTimezoneOffset() * -60)",c:function(){for(var G="Y-m-dTH:i:sP",E=[],D=0,C=G.length;
D<C;++D){var F=G.charAt(D);E.push(F=="T"?"'T'":Date.getFormatCode(F))}return E.join(" + ")},U:"Math.round(this.getTime() / 1000)"},isValid:function(J,C,I,G,E,F,D){G=G||0;E=E||0;F=F||0;D=D||0;var H=new Date(J<100?100:J,C-1,I,G,E,F,D).add(Date.YEAR,J<100?J-100:0);return J==H.getFullYear()&&C==H.getMonth()+1&&I==H.getDate()&&G==H.getHours()&&E==H.getMinutes()&&F==H.getSeconds()&&D==H.getMilliseconds()},parseDate:function(D,F,C){var E=Date.parseFunctions;if(E[F]==null){Date.createParser(F)}return E[F](D,Ext.isDefined(C)?C:Date.useStrict)},getFormatCode:function(D){var C=Date.formatCodes[D];if(C){C=typeof C=="function"?C():C;Date.formatCodes[D]=C}return C||("'"+String.escape(D)+"'")},createFormat:function(G){var F=[],C=false,E="";for(var D=0;D<G.length;++D){E=G.charAt(D);if(!C&&E=="\\"){C=true}else{if(C){C=false;F.push("'"+String.escape(E)+"'")}else{F.push(Date.getFormatCode(E))}}}Date.formatFunctions[G]=new Function("return "+F.join("+"))},createParser:function(){var C=["var dt, y, m, d, h, i, s, ms, o, z, zz, u, v,","def = Date.defaults,","results = String(input).match(Date.parseRegexes[{0}]);","if(results){","{1}","if(u != null){","v = new Date(u * 1000);","}else{","dt = (new Date()).clearTime();","y = Ext.num(y, Ext.num(def.y, dt.getFullYear()));","m = Ext.num(m, Ext.num(def.m - 1, dt.getMonth()));","d = Ext.num(d, Ext.num(def.d, dt.getDate()));","h  = Ext.num(h, Ext.num(def.h, dt.getHours()));","i  = Ext.num(i, Ext.num(def.i, dt.getMinutes()));","s  = Ext.num(s, Ext.num(def.s, dt.getSeconds()));","ms = Ext.num(ms, Ext.num(def.ms, dt.getMilliseconds()));","if(z >= 0 && y >= 0){","v = new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);","v = !strict? v : (strict === true && (z <= 364 || (v.isLeapYear() && z <= 365))? v.add(Date.DAY, z) : null);","}else if(strict === true && !Date.isValid(y, m + 1, d, h, i, s, ms)){","v = null;","}else{","v = new Date(y < 100 ? 100 : y, m, d, h, i, s, ms).add(Date.YEAR, y < 100 ? y - 100 : 0);","}","}","}","if(v){","if(zz != null){","v = v.add(Date.SECOND, -v.getTimezoneOffset() * 60 - zz);","}else if(o){","v = v.add(Date.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));","}","}","return v;"].join("\n");
return function(K){var E=Date.parseRegexes.length,M=1,F=[],J=[],I=false,D="",H=0,G,L;for(;H<K.length;++H){D=K.charAt(H);if(!I&&D=="\\"){I=true}else{if(I){I=false;J.push(String.escape(D))}else{G=A(D,M);M+=G.g;J.push(G.s);if(G.g&&G.c){if(G.calcLast){L=G.c}else{F.push(G.c)}}}}}if(L){F.push(L)}Date.parseRegexes[E]=new RegExp("^"+J.join("")+"$","i");Date.parseFunctions[K]=new Function("input","strict",B(C,E,F.join("")))}}(),parseCodes:{d:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},j:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(\\d{1,2})"},D:function(){for(var C=[],D=0;D<7;C.push(Date.getShortDayName(D)),++D){}return{g:0,c:null,s:"(?:"+C.join("|")+")"}},l:function(){return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"}},N:{g:0,c:null,s:"[1-7]"},S:{g:0,c:null,s:"(?:st|nd|rd|th)"},w:{g:0,c:null,s:"[0-6]"},z:{g:1,c:"z = parseInt(results[{0}], 10);\n",s:"(\\d{1,3})"},W:{g:0,c:null,s:"(?:\\d{2})"},F:function(){return{g:1,c:"m = parseInt(Date.getMonthNumber(results[{0}]), 10);\n",s:"("+Date.monthNames.join("|")+")"}
},M:function(){for(var C=[],D=0;D<12;C.push(Date.getShortMonthName(D)),++D){}return Ext.applyIf({s:"("+C.join("|")+")"},A("F"))},m:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(\\d{2})"},n:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(\\d{1,2})"},t:{g:0,c:null,s:"(?:\\d{2})"},L:{g:0,c:null,s:"(?:1|0)"},o:function(){return A("Y")},Y:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},y:{g:1,c:"var ty = parseInt(results[{0}], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"},a:function(){return A("A")},A:{calcLast:true,g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM|am|pm)"},g:function(){return A("G")},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(\\d{1,2})"},h:function(){return A("H")},H:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},i:{g:1,c:"i = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},s:{g:1,c:"s = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},u:{g:1,c:"ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n",s:"(\\d+)"},O:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),","mn = o.substring(3,5) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + String.leftPad(hr, 2, '0') + String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{4})"},P:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),","mn = o.substring(4,6) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + String.leftPad(hr, 2, '0') + String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{2}:\\d{2})"},T:{g:0,c:null,s:"[A-Z]{1,4}"},Z:{g:1,c:"zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n",s:"([+-]?\\d{1,5})"},c:function(){var E=[],C=[A("Y",1),A("m",2),A("d",3),A("h",4),A("i",5),A("s",6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:["if(results[8]) {","if(results[8] == 'Z'){","zz = 0;","}else if (results[8].indexOf(':') > -1){",A("P",8).c,"}else{",A("O",8).c,"}","}"].join("\n")}];
for(var F=0,D=C.length;F<D;++F){E.push(C[F].c)}return{g:1,c:E.join(""),s:[C[0].s,"(?:","-",C[1].s,"(?:","-",C[2].s,"(?:","(?:T| )?",C[3].s,":",C[4].s,"(?::",C[5].s,")?","(?:(?:\\.|,)(\\d+))?","(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?",")?",")?",")?"].join("")}},U:{g:1,c:"u = parseInt(results[{0}], 10);\n",s:"(-?\\d+)"}}})}());Ext.apply(Date.prototype,{dateFormat:function(A){if(Date.formatFunctions[A]==null){Date.createFormat(A)}return Date.formatFunctions[A].call(this)},getTimezone:function(){return this.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,4})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"")},getGMTOffset:function(A){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+(A?":":"")+String.leftPad(Math.abs(this.getTimezoneOffset()%60),2,"0")},getDayOfYear:function(){var B=0,D=this.clone(),A=this.getMonth(),C;for(C=0,D.setDate(1),D.setMonth(0);C<A;D.setMonth(++C)){B+=D.getDaysInMonth()}return B+this.getDate()-1},getWeekOfYear:function(){var A=86400000,B=7*A;
return function(){var D=Date.UTC(this.getFullYear(),this.getMonth(),this.getDate()+3)/A,C=Math.floor(D/7),E=new Date(C*B).getUTCFullYear();return C-Math.floor(Date.UTC(E,0,7)/B)+1}}(),isLeapYear:function(){var A=this.getFullYear();return !!((A&3)==0&&(A%100||(A%400==0&&A)))},getFirstDayOfMonth:function(){var A=(this.getDay()-(this.getDate()-1))%7;return(A<0)?(A+7):A},getLastDayOfMonth:function(){return this.getLastDateOfMonth().getDay()},getFirstDateOfMonth:function(){return new Date(this.getFullYear(),this.getMonth(),1)},getLastDateOfMonth:function(){return new Date(this.getFullYear(),this.getMonth(),this.getDaysInMonth())},getDaysInMonth:function(){var A=[31,28,31,30,31,30,31,31,30,31,30,31];return function(){var B=this.getMonth();return B==1&&this.isLeapYear()?29:A[B]}}(),getSuffix:function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},clone:function(){return new Date(this.getTime())},isDST:function(){return new Date(this.getFullYear(),0,1).getTimezoneOffset()!=this.getTimezoneOffset()
},clearTime:function(D){if(D){return this.clone().clearTime()}var B=this.getDate();this.setHours(0);this.setMinutes(0);this.setSeconds(0);this.setMilliseconds(0);if(this.getDate()!=B){for(var A=1,C=this.add(Date.HOUR,A);C.getDate()!=B;A++,C=this.add(Date.HOUR,A)){}this.setDate(B);this.setHours(C.getHours())}return this},add:function(B,C){var D=this.clone();if(!B||C===0){return D}switch(B.toLowerCase()){case Date.MILLI:D.setMilliseconds(this.getMilliseconds()+C);break;case Date.SECOND:D.setSeconds(this.getSeconds()+C);break;case Date.MINUTE:D.setMinutes(this.getMinutes()+C);break;case Date.HOUR:D.setHours(this.getHours()+C);break;case Date.DAY:D.setDate(this.getDate()+C);break;case Date.MONTH:var A=this.getDate();if(A>28){A=Math.min(A,this.getFirstDateOfMonth().add("mo",C).getLastDateOfMonth().getDate())}D.setDate(A);D.setMonth(this.getMonth()+C);break;case Date.YEAR:D.setFullYear(this.getFullYear()+C);break}return D},between:function(C,A){var B=this.getTime();return C.getTime()<=B&&B<=A.getTime()}});Date.prototype.format=Date.prototype.dateFormat;
if(Ext.isSafari&&(navigator.userAgent.match(/WebKit\/(\d+)/)[1]||NaN)<420){Ext.apply(Date.prototype,{_xMonth:Date.prototype.setMonth,_xDate:Date.prototype.setDate,setMonth:function(A){if(A<=-1){var D=Math.ceil(-A),C=Math.ceil(D/12),B=(D%12)?12-D%12:0;this.setFullYear(this.getFullYear()-C);return this._xMonth(B)}else{return this._xMonth(A)}},setDate:function(A){return this.setTime(this.getTime()-(this.getDate()-A)*86400000)}})}Ext.util.MixedCollection=function(B,A){this.items=[];this.map={};this.keys=[];this.length=0;this.addEvents("clear","add","replace","remove","sort");this.allowFunctions=B===true;if(A){this.getKey=A}Ext.util.MixedCollection.superclass.constructor.call(this)};Ext.extend(Ext.util.MixedCollection,Ext.util.Observable,{allowFunctions:false,add:function(B,C){if(arguments.length==1){C=arguments[0];B=this.getKey(C)}if(typeof B!="undefined"&&B!==null){var A=this.map[B];if(typeof A!="undefined"){return this.replace(B,C)}this.map[B]=C}this.length++;this.items.push(C);this.keys.push(B);this.fireEvent("add",this.length-1,C,B);
return C},getKey:function(A){return A.id},replace:function(C,D){if(arguments.length==1){D=arguments[0];C=this.getKey(D)}var A=this.map[C];if(typeof C=="undefined"||C===null||typeof A=="undefined"){return this.add(C,D)}var B=this.indexOfKey(C);this.items[B]=D;this.map[C]=D;this.fireEvent("replace",C,A,D);return D},addAll:function(E){if(arguments.length>1||Ext.isArray(E)){var B=arguments.length>1?arguments:E;for(var D=0,A=B.length;D<A;D++){this.add(B[D])}}else{for(var C in E){if(this.allowFunctions||typeof E[C]!="function"){this.add(C,E[C])}}}},each:function(E,D){var B=[].concat(this.items);for(var C=0,A=B.length;C<A;C++){if(E.call(D||B[C],B[C],C,A)===false){break}}},eachKey:function(D,C){for(var B=0,A=this.keys.length;B<A;B++){D.call(C||window,this.keys[B],this.items[B],B,A)}},find:function(D,C){for(var B=0,A=this.items.length;B<A;B++){if(D.call(C||window,this.items[B],this.keys[B])){return this.items[B]}}return null},insert:function(A,B,C){if(arguments.length==2){C=arguments[1];B=this.getKey(C)}if(this.containsKey(B)){this.suspendEvents();
this.removeKey(B);this.resumeEvents()}if(A>=this.length){return this.add(B,C)}this.length++;this.items.splice(A,0,C);if(typeof B!="undefined"&&B!==null){this.map[B]=C}this.keys.splice(A,0,B);this.fireEvent("add",A,C,B);return C},remove:function(A){return this.removeAt(this.indexOf(A))},removeAt:function(A){if(A<this.length&&A>=0){this.length--;var C=this.items[A];this.items.splice(A,1);var B=this.keys[A];if(typeof B!="undefined"){delete this.map[B]}this.keys.splice(A,1);this.fireEvent("remove",C,B);return C}return false},removeKey:function(A){return this.removeAt(this.indexOfKey(A))},getCount:function(){return this.length},indexOf:function(A){return this.items.indexOf(A)},indexOfKey:function(A){return this.keys.indexOf(A)},item:function(B){var A=this.map[B],C=A!==undefined?A:(typeof B=="number")?this.items[B]:undefined;return typeof C!="function"||this.allowFunctions?C:null},itemAt:function(A){return this.items[A]},key:function(A){return this.map[A]},contains:function(A){return this.indexOf(A)!=-1},containsKey:function(A){return typeof this.map[A]!="undefined"
},clear:function(){this.length=0;this.items=[];this.keys=[];this.map={};this.fireEvent("clear")},first:function(){return this.items[0]},last:function(){return this.items[this.length-1]},_sort:function(H,A,G){var C,D,B=String(A).toUpperCase()=="DESC"?-1:1,F=[],I=this.keys,E=this.items;G=G||function(K,J){return K-J};for(C=0,D=E.length;C<D;C++){F[F.length]={key:I[C],value:E[C],index:C}}F.sort(function(K,J){var L=G(K[H],J[H])*B;if(L===0){L=(K.index<J.index?-1:1)}return L});for(C=0,D=F.length;C<D;C++){E[C]=F[C].value;I[C]=F[C].key}this.fireEvent("sort",this)},sort:function(A,B){this._sort("value",A,B)},reorder:function(D){this.suspendEvents();var B=this.items,C=0,F=B.length,A=[],E=[],G;for(G in D){A[D[G]]=B[G]}for(C=0;C<F;C++){if(D[C]==undefined){E.push(B[C])}}for(C=0;C<F;C++){if(A[C]==undefined){A[C]=E.shift()}}this.clear();this.addAll(A);this.resumeEvents();this.fireEvent("sort",this)},keySort:function(A,B){this._sort("key",A,B||function(D,C){var F=String(D).toUpperCase(),E=String(C).toUpperCase();return F>E?1:(F<E?-1:0)
})},getRange:function(E,A){var B=this.items;if(B.length<1){return[]}E=E||0;A=Math.min(typeof A=="undefined"?this.length-1:A,this.length-1);var C,D=[];if(E<=A){for(C=E;C<=A;C++){D[D.length]=B[C]}}else{for(C=E;C>=A;C--){D[D.length]=B[C]}}return D},filter:function(C,B,D,A){if(Ext.isEmpty(B,false)){return this.clone()}B=this.createValueMatcher(B,D,A);return this.filterBy(function(E){return E&&B.test(E[C])})},filterBy:function(F,E){var G=new Ext.util.MixedCollection();G.getKey=this.getKey;var B=this.keys,D=this.items;for(var C=0,A=D.length;C<A;C++){if(F.call(E||this,D[C],B[C])){G.add(B[C],D[C])}}return G},findIndex:function(C,B,E,D,A){if(Ext.isEmpty(B,false)){return -1}B=this.createValueMatcher(B,D,A);return this.findIndexBy(function(F){return F&&B.test(F[C])},null,E)},findIndexBy:function(F,E,G){var B=this.keys,D=this.items;for(var C=(G||0),A=D.length;C<A;C++){if(F.call(E||this,D[C],B[C])){return C}}return -1},createValueMatcher:function(C,E,A,B){if(!C.exec){var D=Ext.escapeRe;C=String(C);if(E===true){C=D(C)}else{C="^"+D(C);
if(B===true){C+="$"}}C=new RegExp(C,A?"":"i")}return C},clone:function(){var E=new Ext.util.MixedCollection();var B=this.keys,D=this.items;for(var C=0,A=D.length;C<A;C++){E.add(B[C],D[C])}E.getKey=this.getKey;return E}});Ext.util.MixedCollection.prototype.get=Ext.util.MixedCollection.prototype.item;Ext.AbstractManager=Ext.extend(Object,{typeName:"type",constructor:function(A){Ext.apply(this,A||{});this.all=new Ext.util.MixedCollection();this.types={}},get:function(A){return this.all.get(A)},register:function(A){this.all.add(A)},unregister:function(A){this.all.remove(A)},registerType:function(B,A){this.types[B]=A;A[this.typeName]=B},isRegistered:function(A){return this.types[A]!==undefined},create:function(A,D){var B=A[this.typeName]||A.type||D,C=this.types[B];if(C==undefined){throw new Error(String.format("The '{0}' type has not been registered with this manager",B))}return new C(A)},onAvailable:function(D,C,B){var A=this.all;A.on("add",function(E,F){if(F.id==D){C.call(B||F,F);A.un("add",C,B)}})}});Ext.util.Format=function(){var trimRe=/^\s+|\s+$/g,stripTagsRE=/<\/?[^>]+>/gi,stripScriptsRe=/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe=/\r?\n/g;
return{ellipsis:function(value,len,word){if(value&&value.length>len){if(word){var vs=value.substr(0,len-2),index=Math.max(vs.lastIndexOf(" "),vs.lastIndexOf("."),vs.lastIndexOf("!"),vs.lastIndexOf("?"));if(index==-1||index<(len-15)){return value.substr(0,len-3)+"..."}else{return vs.substr(0,index)+"..."}}else{return value.substr(0,len-3)+"..."}}return value},undef:function(value){return value!==undefined?value:""},defaultValue:function(value,defaultValue){return value!==undefined&&value!==""?value:defaultValue},htmlEncode:function(value){return !value?value:String(value).replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},htmlDecode:function(value){return !value?value:String(value).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&quot;/g,'"').replace(/&amp;/g,"&")},trim:function(value){return String(value).replace(trimRe,"")},substr:function(value,start,length){return String(value).substr(start,length)},lowercase:function(value){return String(value).toLowerCase()},uppercase:function(value){return String(value).toUpperCase()
},capitalize:function(value){return !value?value:value.charAt(0).toUpperCase()+value.substr(1).toLowerCase()},call:function(value,fn){if(arguments.length>2){var args=Array.prototype.slice.call(arguments,2);args.unshift(value);return eval(fn).apply(window,args)}else{return eval(fn).call(window,value)}},usMoney:function(v){v=(Math.round((v-0)*100))/100;v=(v==Math.floor(v))?v+".00":((v*10==Math.floor(v*10))?v+"0":v);v=String(v);var ps=v.split("."),whole=ps[0],sub=ps[1]?"."+ps[1]:".00",r=/(\d+)(\d{3})/;while(r.test(whole)){whole=whole.replace(r,"$1,$2")}v=whole+sub;if(v.charAt(0)=="-"){return"-$"+v.substr(1)}return"$"+v},date:function(v,format){if(!v){return""}if(!Ext.isDate(v)){v=new Date(Date.parse(v))}return v.dateFormat(format||"m/d/Y")},dateRenderer:function(format){return function(v){return Ext.util.Format.date(v,format)}},stripTags:function(v){return !v?v:String(v).replace(stripTagsRE,"")},stripScripts:function(v){return !v?v:String(v).replace(stripScriptsRe,"")},fileSize:function(size){if(size<1024){return size+" bytes"
}else{if(size<1048576){return(Math.round(((size*10)/1024))/10)+" KB"}else{return(Math.round(((size*10)/1048576))/10)+" MB"}}},math:function(){var fns={};return function(v,a){if(!fns[a]){fns[a]=new Function("v","return v "+a+";")}return fns[a](v)}}(),round:function(value,precision){var result=Number(value);if(typeof precision=="number"){precision=Math.pow(10,precision);result=Math.round(value*precision)/precision}return result},number:function(v,format){if(!format){return v}v=Ext.num(v,NaN);if(isNaN(v)){return""}var comma=",",dec=".",i18n=false,neg=v<0;v=Math.abs(v);if(format.substr(format.length-2)=="/i"){format=format.substr(0,format.length-2);i18n=true;comma=".";dec=","}var hasComma=format.indexOf(comma)!=-1,psplit=(i18n?format.replace(/[^\d\,]/g,""):format.replace(/[^\d\.]/g,"")).split(dec);if(1<psplit.length){v=v.toFixed(psplit[1].length)}else{if(2<psplit.length){throw ("NumberFormatException: invalid format, formats should have no more than 1 period: "+format)}else{v=v.toFixed(0)}}var fnum=v.toString();psplit=fnum.split(".");
if(hasComma){var cnum=psplit[0],parr=[],j=cnum.length,m=Math.floor(j/3),n=cnum.length%3||3,i;for(i=0;i<j;i+=n){if(i!=0){n=3}parr[parr.length]=cnum.substr(i,n);m-=1}fnum=parr.join(comma);if(psplit[1]){fnum+=dec+psplit[1]}}else{if(psplit[1]){fnum=psplit[0]+dec+psplit[1]}}return(neg?"-":"")+format.replace(/[\d,?\.?]+/,fnum)},numberRenderer:function(format){return function(v){return Ext.util.Format.number(v,format)}},plural:function(v,s,p){return v+" "+(v==1?s:(p?p:s+"s"))},nl2br:function(v){return Ext.isEmpty(v)?"":v.replace(nl2brRe,"<br/>")}}}();Ext.XTemplate=function(){Ext.XTemplate.superclass.constructor.apply(this,arguments);var U=this,H=U.html,N=/<tpl\b[^>]*>((?:(?=([^<]+))\2|<(?!tpl\b[^>]*>))*?)<\/tpl>/,D=/^<tpl\b[^>]*?for="(.*?)"/,R=/^<tpl\b[^>]*?if="(.*?)"/,T=/^<tpl\b[^>]*?exec="(.*?)"/,O,M=0,I=[],L="values",S="parent",J="xindex",K="xcount",E="return ",C="with(values){ ";H=["<tpl>",H,"</tpl>"].join("");while((O=H.match(N))){var B=O[0].match(D),A=O[0].match(R),W=O[0].match(T),F=null,G=null,P=null,V=B&&B[1]?B[1]:"";
if(A){F=A&&A[1]?A[1]:null;if(F){G=new Function(L,S,J,K,C+E+(Ext.util.Format.htmlDecode(F))+"; }")}}if(W){F=W&&W[1]?W[1]:null;if(F){P=new Function(L,S,J,K,C+(Ext.util.Format.htmlDecode(F))+"; }")}}if(V){switch(V){case".":V=new Function(L,S,C+E+L+"; }");break;case"..":V=new Function(L,S,C+E+S+"; }");break;default:V=new Function(L,S,C+E+V+"; }")}}I.push({id:M,target:V,exec:P,test:G,body:O[1]||""});H=H.replace(O[0],"{xtpl"+M+"}");++M}for(var Q=I.length-1;Q>=0;--Q){U.compileTpl(I[Q])}U.master=I[I.length-1];U.tpls=I};Ext.extend(Ext.XTemplate,Ext.Template,{re:/\{([\w\-\.\#]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g,codeRe:/\{\[((?:\\\]|.|\n)*?)\]\}/g,applySubTemplate:function(A,I,H,D,C){var G=this,F,K=G.tpls[A],J,B=[];if((K.test&&!K.test.call(G,I,H,D,C))||(K.exec&&K.exec.call(G,I,H,D,C))){return""}J=K.target?K.target.call(G,I,H):I;F=J.length;H=K.target?I:H;if(K.target&&Ext.isArray(J)){for(var E=0,F=J.length;E<F;E++){B[B.length]=K.compiled.call(G,J[E],H,E+1,F)}return B.join("")}return K.compiled.call(G,J,H,D,C)
},compileTpl:function(tpl){var fm=Ext.util.Format,useF=this.disableFormats!==true,sep=Ext.isGecko?"+":",",body;function fn(m,name,format,args,math){if(name.substr(0,4)=="xtpl"){return"'"+sep+"this.applySubTemplate("+name.substr(4)+", values, parent, xindex, xcount)"+sep+"'"}var v;if(name==="."){v="values"}else{if(name==="#"){v="xindex"}else{if(name.indexOf(".")!=-1){v=name}else{v="values['"+name+"']"}}}if(math){v="("+v+math+")"}if(format&&useF){args=args?","+args:"";if(format.substr(0,5)!="this."){format="fm."+format+"("}else{format='this.call("'+format.substr(5)+'", ';args=", values"}}else{args="";format="("+v+" === undefined ? '' : "}return"'"+sep+format+v+args+")"+sep+"'"}function codeFn(m,code){return"'"+sep+"("+code.replace(/\\'/g,"'")+")"+sep+"'"}if(Ext.isGecko){body="tpl.compiled = function(values, parent, xindex, xcount){ return '"+tpl.body.replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn).replace(this.codeRe,codeFn)+"';};"}else{body=["tpl.compiled = function(values, parent, xindex, xcount){ return ['"];
body.push(tpl.body.replace(/(\r\n|\n)/g,"\\n").replace(/'/g,"\\'").replace(this.re,fn).replace(this.codeRe,codeFn));body.push("'].join('');};");body=body.join("")}eval(body);return this},applyTemplate:function(A){return this.master.compiled.call(this,A,{},1,1)},compile:function(){return this}});Ext.XTemplate.prototype.apply=Ext.XTemplate.prototype.applyTemplate;Ext.XTemplate.from=function(A){A=Ext.getDom(A);return new Ext.XTemplate(A.value||A.innerHTML)};Ext.util.CSS=function(){var D=null;var C=document;var B=/(-[a-z])/gi;var A=function(E,F){return F.charAt(1).toUpperCase()};return{createStyleSheet:function(G,J){var F;var E=C.getElementsByTagName("head")[0];var I=C.createElement("style");I.setAttribute("type","text/css");if(J){I.setAttribute("id",J)}if(Ext.isIE){E.appendChild(I);F=I.styleSheet;F.cssText=G}else{try{I.appendChild(C.createTextNode(G))}catch(H){I.cssText=G}E.appendChild(I);F=I.styleSheet?I.styleSheet:(I.sheet||C.styleSheets[C.styleSheets.length-1])}this.cacheStyleSheet(F);return F},removeStyleSheet:function(F){var E=C.getElementById(F);
if(E){E.parentNode.removeChild(E)}},swapStyleSheet:function(G,E){this.removeStyleSheet(G);var F=C.createElement("link");F.setAttribute("rel","stylesheet");F.setAttribute("type","text/css");F.setAttribute("id",G);F.setAttribute("href",E);C.getElementsByTagName("head")[0].appendChild(F)},refreshCache:function(){return this.getRules(true)},cacheStyleSheet:function(F){if(!D){D={}}try{var H=F.cssRules||F.rules;for(var E=H.length-1;E>=0;--E){D[H[E].selectorText.toLowerCase()]=H[E]}}catch(G){}},getRules:function(F){if(D===null||F){D={};var H=C.styleSheets;for(var G=0,E=H.length;G<E;G++){try{this.cacheStyleSheet(H[G])}catch(I){}}}return D},getRule:function(E,G){var F=this.getRules(G);if(!Ext.isArray(E)){return F[E.toLowerCase()]}for(var H=0;H<E.length;H++){if(F[E[H]]){return F[E[H].toLowerCase()]}}return null},updateRule:function(E,H,G){if(!Ext.isArray(E)){var I=this.getRule(E);if(I){I.style[H.replace(B,A)]=G;return true}}else{for(var F=0;F<E.length;F++){if(this.updateRule(E[F],H,G)){return true}}}return false}}}();Ext.util.ClickRepeater=Ext.extend(Ext.util.Observable,{constructor:function(B,A){this.el=Ext.get(B);
this.el.unselectable();Ext.apply(this,A);this.addEvents("mousedown","click","mouseup");if(!this.disabled){this.disabled=true;this.enable()}if(this.handler){this.on("click",this.handler,this.scope||this)}Ext.util.ClickRepeater.superclass.constructor.call(this)},interval:20,delay:250,preventDefault:true,stopDefault:false,timer:0,enable:function(){if(this.disabled){this.el.on("mousedown",this.handleMouseDown,this);if(Ext.isIE){this.el.on("dblclick",this.handleDblClick,this)}if(this.preventDefault||this.stopDefault){this.el.on("click",this.eventOptions,this)}}this.disabled=false},disable:function(A){if(A||!this.disabled){clearTimeout(this.timer);if(this.pressClass){this.el.removeClass(this.pressClass)}Ext.getDoc().un("mouseup",this.handleMouseUp,this);this.el.removeAllListeners()}this.disabled=true},setDisabled:function(A){this[A?"disable":"enable"]()},eventOptions:function(A){if(this.preventDefault){A.preventDefault()}if(this.stopDefault){A.stopEvent()}},destroy:function(){this.disable(true);Ext.destroy(this.el);
this.purgeListeners()},handleDblClick:function(A){clearTimeout(this.timer);this.el.blur();this.fireEvent("mousedown",this,A);this.fireEvent("click",this,A)},handleMouseDown:function(A){clearTimeout(this.timer);this.el.blur();if(this.pressClass){this.el.addClass(this.pressClass)}this.mousedownTime=new Date();Ext.getDoc().on("mouseup",this.handleMouseUp,this);this.el.on("mouseout",this.handleMouseOut,this);this.fireEvent("mousedown",this,A);this.fireEvent("click",this,A);if(this.accelerate){this.delay=400}this.timer=this.click.defer(this.delay||this.interval,this,[A])},click:function(A){this.fireEvent("click",this,A);this.timer=this.click.defer(this.accelerate?this.easeOutExpo(this.mousedownTime.getElapsed(),400,-390,12000):this.interval,this,[A])},easeOutExpo:function(B,A,D,C){return(B==C)?A+D:D*(-Math.pow(2,-10*B/C)+1)+A},handleMouseOut:function(){clearTimeout(this.timer);if(this.pressClass){this.el.removeClass(this.pressClass)}this.el.on("mouseover",this.handleMouseReturn,this)},handleMouseReturn:function(){this.el.un("mouseover",this.handleMouseReturn,this);
if(this.pressClass){this.el.addClass(this.pressClass)}this.click()},handleMouseUp:function(A){clearTimeout(this.timer);this.el.un("mouseover",this.handleMouseReturn,this);this.el.un("mouseout",this.handleMouseOut,this);Ext.getDoc().un("mouseup",this.handleMouseUp,this);this.el.removeClass(this.pressClass);this.fireEvent("mouseup",this,A)}});Ext.KeyNav=function(B,A){this.el=Ext.get(B);Ext.apply(this,A);if(!this.disabled){this.disabled=true;this.enable()}};Ext.KeyNav.prototype={disabled:false,defaultEventAction:"stopEvent",forceKeyDown:false,relay:function(C){var A=C.getKey(),B=this.keyToHandler[A];if(B&&this[B]){if(this.doRelay(C,this[B],B)!==true){C[this.defaultEventAction]()}}},doRelay:function(C,B,A){return B.call(this.scope||this,C,A)},enter:false,left:false,right:false,up:false,down:false,tab:false,esc:false,pageUp:false,pageDown:false,del:false,home:false,end:false,space:false,keyToHandler:{37:"left",39:"right",38:"up",40:"down",33:"pageUp",34:"pageDown",46:"del",36:"home",35:"end",13:"enter",27:"esc",9:"tab",32:"space"},stopKeyUp:function(B){var A=B.getKey();
if(A>=37&&A<=40){B.stopEvent()}},destroy:function(){this.disable()},enable:function(){if(this.disabled){if(Ext.isSafari2){this.el.on("keyup",this.stopKeyUp,this)}this.el.on(this.isKeydown()?"keydown":"keypress",this.relay,this);this.disabled=false}},disable:function(){if(!this.disabled){if(Ext.isSafari2){this.el.un("keyup",this.stopKeyUp,this)}this.el.un(this.isKeydown()?"keydown":"keypress",this.relay,this);this.disabled=true}},setDisabled:function(A){this[A?"disable":"enable"]()},isKeydown:function(){return this.forceKeyDown||Ext.EventManager.useKeydown}};Ext.KeyMap=function(C,B,A){this.el=Ext.get(C);this.eventName=A||"keydown";this.bindings=[];if(B){this.addBinding(B)}this.enable()};Ext.KeyMap.prototype={stopEvent:false,addBinding:function(B){if(Ext.isArray(B)){Ext.each(B,function(K){this.addBinding(K)},this);return }var I=B.key,F=B.fn||B.handler,J=B.scope;if(B.stopEvent){this.stopEvent=B.stopEvent}if(typeof I=="string"){var G=[];var E=I.toUpperCase();for(var C=0,D=E.length;C<D;C++){G.push(E.charCodeAt(C))}I=G
}var A=Ext.isArray(I);var H=function(N){if(this.checkModifiers(B,N)){var L=N.getKey();if(A){for(var M=0,K=I.length;M<K;M++){if(I[M]==L){if(this.stopEvent){N.stopEvent()}F.call(J||window,L,N);return }}}else{if(L==I){if(this.stopEvent){N.stopEvent()}F.call(J||window,L,N)}}}};this.bindings.push(H)},checkModifiers:function(B,F){var G,D,E=["shift","ctrl","alt"];for(var C=0,A=E.length;C<A;++C){D=E[C];G=B[D];if(!(G===undefined||(G===F[D+"Key"]))){return false}}return true},on:function(B,D,C){var G,A,E,F;if(typeof B=="object"&&!Ext.isArray(B)){G=B.key;A=B.shift;E=B.ctrl;F=B.alt}else{G=B}this.addBinding({key:G,shift:A,ctrl:E,alt:F,fn:D,scope:C})},handleKeyDown:function(D){if(this.enabled){var B=this.bindings;for(var C=0,A=B.length;C<A;C++){B[C].call(this,D)}}},isEnabled:function(){return this.enabled},enable:function(){if(!this.enabled){this.el.on(this.eventName,this.handleKeyDown,this);this.enabled=true}},disable:function(){if(this.enabled){this.el.removeListener(this.eventName,this.handleKeyDown,this);this.enabled=false
}},setDisabled:function(A){this[A?"disable":"enable"]()}};Ext.util.TextMetrics=function(){var A;return{measure:function(B,C,D){if(!A){A=Ext.util.TextMetrics.Instance(B,D)}A.bind(B);A.setFixedWidth(D||"auto");return A.getSize(C)},createInstance:function(B,C){return Ext.util.TextMetrics.Instance(B,C)}}}();Ext.util.TextMetrics.Instance=function(B,D){var C=new Ext.Element(document.createElement("div"));document.body.appendChild(C.dom);C.position("absolute");C.setLeftTop(-1000,-1000);C.hide();if(D){C.setWidth(D)}var A={getSize:function(F){C.update(F);var E=C.getSize();C.update("");return E},bind:function(E){C.setStyle(Ext.fly(E).getStyles("font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"))},setFixedWidth:function(E){C.setWidth(E)},getWidth:function(E){C.dom.style.width="auto";return this.getSize(E).width},getHeight:function(E){return this.getSize(E).height}};A.bind(B);return A};Ext.Element.addMethods({getTextWidth:function(C,B,A){return(Ext.util.TextMetrics.measure(this.dom,Ext.value(C,this.dom.innerHTML,true)).width).constrain(B||0,A||1000000)
}});Ext.util.Cookies={set:function(C,E){var A=arguments;var H=arguments.length;var B=(H>2)?A[2]:null;var G=(H>3)?A[3]:"/";var D=(H>4)?A[4]:null;var F=(H>5)?A[5]:false;document.cookie=C+"="+escape(E)+((B===null)?"":("; expires="+B.toGMTString()))+((G===null)?"":("; path="+G))+((D===null)?"":("; domain="+D))+((F===true)?"; secure":"")},get:function(D){var B=D+"=";var F=B.length;var A=document.cookie.length;var E=0;var C=0;while(E<A){C=E+F;if(document.cookie.substring(E,C)==B){return Ext.util.Cookies.getCookieVal(C)}E=document.cookie.indexOf(" ",E)+1;if(E===0){break}}return null},clear:function(A){if(Ext.util.Cookies.get(A)){document.cookie=A+"=; expires=Thu, 01-Jan-70 00:00:01 GMT"}},getCookieVal:function(B){var A=document.cookie.indexOf(";",B);if(A==-1){A=document.cookie.length}return unescape(document.cookie.substring(B,A))}};Ext.handleError=function(A){throw A};Ext.Error=function(A){this.message=(this.lang[A])?this.lang[A]:A};Ext.Error.prototype=new Error();Ext.apply(Ext.Error.prototype,{lang:{},name:"Ext.Error",getName:function(){return this.name
},getMessage:function(){return this.message},toJson:function(){return Ext.encode(this)}});Ext.ComponentMgr=function(){var C=new Ext.util.MixedCollection();var B={};var A={};return{register:function(D){C.add(D)},unregister:function(D){C.remove(D)},get:function(D){return C.get(D)},onAvailable:function(F,E,D){C.on("add",function(G,H){if(H.id==F){E.call(D||H,H);C.un("add",E,D)}})},all:C,types:B,ptypes:A,isRegistered:function(D){return B[D]!==undefined},isPluginRegistered:function(D){return A[D]!==undefined},registerType:function(E,D){B[E]=D;D.xtype=E},create:function(D,E){return D.render?D:new B[D.xtype||E](D)},registerPlugin:function(E,D){A[E]=D;D.ptype=E},createPlugin:function(E,F){var D=A[E.ptype||F];if(D.init){return D}else{return new D(E)}}}}();Ext.reg=Ext.ComponentMgr.registerType;Ext.preg=Ext.ComponentMgr.registerPlugin;Ext.create=Ext.ComponentMgr.create;Ext.Component=function(B){B=B||{};if(B.initialConfig){if(B.isAction){this.baseAction=B}B=B.initialConfig}else{if(B.tagName||B.dom||Ext.isString(B)){B={applyTo:B,id:B.id||B}
}}this.initialConfig=B;Ext.apply(this,B);this.addEvents("added","disable","enable","beforeshow","show","beforehide","hide","removed","beforerender","render","afterrender","beforedestroy","destroy","beforestaterestore","staterestore","beforestatesave","statesave");this.getId();Ext.ComponentMgr.register(this);Ext.Component.superclass.constructor.call(this);if(this.baseAction){this.baseAction.addComponent(this)}this.initComponent();if(this.plugins){if(Ext.isArray(this.plugins)){for(var C=0,A=this.plugins.length;C<A;C++){this.plugins[C]=this.initPlugin(this.plugins[C])}}else{this.plugins=this.initPlugin(this.plugins)}}if(this.stateful!==false){this.initState()}if(this.applyTo){this.applyToMarkup(this.applyTo);delete this.applyTo}else{if(this.renderTo){this.render(this.renderTo);delete this.renderTo}}};Ext.Component.AUTO_ID=1000;Ext.extend(Ext.Component,Ext.util.Observable,{disabled:false,hidden:false,autoEl:"div",disabledClass:"x-item-disabled",allowDomMove:true,autoShow:false,hideMode:"display",hideParent:false,rendered:false,tplWriteMode:"overwrite",bubbleEvents:[],ctype:"Ext.Component",actionMode:"el",getActionEl:function(){return this[this.actionMode]
},initPlugin:function(A){if(A.ptype&&!Ext.isFunction(A.init)){A=Ext.ComponentMgr.createPlugin(A)}else{if(Ext.isString(A)){A=Ext.ComponentMgr.createPlugin({ptype:A})}}A.init(this);return A},initComponent:function(){if(this.listeners){this.on(this.listeners);delete this.listeners}this.enableBubble(this.bubbleEvents)},render:function(B,A){if(!this.rendered&&this.fireEvent("beforerender",this)!==false){if(!B&&this.el){this.el=Ext.get(this.el);B=this.el.dom.parentNode;this.allowDomMove=false}this.container=Ext.get(B);if(this.ctCls){this.container.addClass(this.ctCls)}this.rendered=true;if(A!==undefined){if(Ext.isNumber(A)){A=this.container.dom.childNodes[A]}else{A=Ext.getDom(A)}}this.onRender(this.container,A||null);if(this.autoShow){this.el.removeClass(["x-hidden","x-hide-"+this.hideMode])}if(this.cls){this.el.addClass(this.cls);delete this.cls}if(this.style){this.el.applyStyles(this.style);delete this.style}if(this.overCls){this.el.addClassOnOver(this.overCls)}this.fireEvent("render",this);var C=this.getContentTarget();
if(this.html){C.update(Ext.DomHelper.markup(this.html));delete this.html}if(this.contentEl){var D=Ext.getDom(this.contentEl);Ext.fly(D).removeClass(["x-hidden","x-hide-display"]);C.appendChild(D)}if(this.tpl){if(!this.tpl.compile){this.tpl=new Ext.XTemplate(this.tpl)}if(this.data){this.tpl[this.tplWriteMode](C,this.data);delete this.data}}this.afterRender(this.container);if(this.hidden){this.doHide()}if(this.disabled){this.disable(true)}if(this.stateful!==false){this.initStateEvents()}this.fireEvent("afterrender",this)}return this},update:function(B,D,A){var C=this.getContentTarget();if(this.tpl&&typeof B!=="string"){this.tpl[this.tplWriteMode](C,B||{})}else{var E=Ext.isObject(B)?Ext.DomHelper.markup(B):B;C.update(E,D,A)}},onAdded:function(A,B){this.ownerCt=A;this.initRef();this.fireEvent("added",this,A,B)},onRemoved:function(){this.removeRef();this.fireEvent("removed",this,this.ownerCt);delete this.ownerCt},initRef:function(){if(this.ref&&!this.refOwner){var D=this.ref.split("/"),C=D.length,B=0,A=this;while(A&&B<C){A=A.ownerCt;
++B}if(A){A[this.refName=D[--B]]=this;this.refOwner=A}}},removeRef:function(){if(this.refOwner&&this.refName){delete this.refOwner[this.refName];delete this.refOwner}},initState:function(){if(Ext.state.Manager){var B=this.getStateId();if(B){var A=Ext.state.Manager.get(B);if(A){if(this.fireEvent("beforestaterestore",this,A)!==false){this.applyState(Ext.apply({},A));this.fireEvent("staterestore",this,A)}}}}},getStateId:function(){return this.stateId||((/^(ext-comp-|ext-gen)/).test(String(this.id))?null:this.id)},initStateEvents:function(){if(this.stateEvents){for(var A=0,B;B=this.stateEvents[A];A++){this.on(B,this.saveState,this,{delay:100})}}},applyState:function(A){if(A){Ext.apply(this,A)}},getState:function(){return null},saveState:function(){if(Ext.state.Manager&&this.stateful!==false){var B=this.getStateId();if(B){var A=this.getState();if(this.fireEvent("beforestatesave",this,A)!==false){Ext.state.Manager.set(B,A);this.fireEvent("statesave",this,A)}}}},applyToMarkup:function(A){this.allowDomMove=false;this.el=Ext.get(A);
this.render(this.el.dom.parentNode)},addClass:function(A){if(this.el){this.el.addClass(A)}else{this.cls=this.cls?this.cls+" "+A:A}return this},removeClass:function(A){if(this.el){this.el.removeClass(A)}else{if(this.cls){this.cls=this.cls.split(" ").remove(A).join(" ")}}return this},onRender:function(B,A){if(!this.el&&this.autoEl){if(Ext.isString(this.autoEl)){this.el=document.createElement(this.autoEl)}else{var C=document.createElement("div");Ext.DomHelper.overwrite(C,this.autoEl);this.el=C.firstChild}if(!this.el.id){this.el.id=this.getId()}}if(this.el){this.el=Ext.get(this.el);if(this.allowDomMove!==false){B.dom.insertBefore(this.el.dom,A);if(C){Ext.removeNode(C);C=null}}}},getAutoCreate:function(){var A=Ext.isObject(this.autoCreate)?this.autoCreate:Ext.apply({},this.defaultAutoCreate);if(this.id&&!A.id){A.id=this.id}return A},afterRender:Ext.emptyFn,destroy:function(){if(!this.isDestroyed){if(this.fireEvent("beforedestroy",this)!==false){this.destroying=true;this.beforeDestroy();if(this.ownerCt&&this.ownerCt.remove){this.ownerCt.remove(this,false)
}if(this.rendered){this.el.remove();if(this.actionMode=="container"||this.removeMode=="container"){this.container.remove()}}if(this.focusTask&&this.focusTask.cancel){this.focusTask.cancel()}this.onDestroy();Ext.ComponentMgr.unregister(this);this.fireEvent("destroy",this);this.purgeListeners();this.destroying=false;this.isDestroyed=true}}},deleteMembers:function(){var B=arguments;for(var C=0,A=B.length;C<A;++C){delete this[B[C]]}},beforeDestroy:Ext.emptyFn,onDestroy:Ext.emptyFn,getEl:function(){return this.el},getContentTarget:function(){return this.el},getId:function(){return this.id||(this.id="ext-comp-"+(++Ext.Component.AUTO_ID))},getItemId:function(){return this.itemId||this.getId()},focus:function(B,A){if(A){this.focusTask=new Ext.util.DelayedTask(this.focus,this,[B,false]);this.focusTask.delay(Ext.isNumber(A)?A:10);return this}if(this.rendered&&!this.isDestroyed){this.el.focus();if(B===true){this.el.dom.select()}}return this},blur:function(){if(this.rendered){this.el.blur()}return this},disable:function(A){if(this.rendered){this.onDisable()
}this.disabled=true;if(A!==true){this.fireEvent("disable",this)}return this},onDisable:function(){this.getActionEl().addClass(this.disabledClass);this.el.dom.disabled=true},enable:function(){if(this.rendered){this.onEnable()}this.disabled=false;this.fireEvent("enable",this);return this},onEnable:function(){this.getActionEl().removeClass(this.disabledClass);this.el.dom.disabled=false},setDisabled:function(A){return this[A?"disable":"enable"]()},show:function(){if(this.fireEvent("beforeshow",this)!==false){this.hidden=false;if(this.autoRender){this.render(Ext.isBoolean(this.autoRender)?Ext.getBody():this.autoRender)}if(this.rendered){this.onShow()}this.fireEvent("show",this)}return this},onShow:function(){this.getVisibilityEl().removeClass("x-hide-"+this.hideMode)},hide:function(){if(this.fireEvent("beforehide",this)!==false){this.doHide();this.fireEvent("hide",this)}return this},doHide:function(){this.hidden=true;if(this.rendered){this.onHide()}},onHide:function(){this.getVisibilityEl().addClass("x-hide-"+this.hideMode)
},getVisibilityEl:function(){return this.hideParent?this.container:this.getActionEl()},setVisible:function(A){return this[A?"show":"hide"]()},isVisible:function(){return this.rendered&&this.getVisibilityEl().isVisible()},cloneConfig:function(B){B=B||{};var C=B.id||Ext.id();var A=Ext.applyIf(B,this.initialConfig);A.id=C;return new this.constructor(A)},getXType:function(){return this.constructor.xtype},isXType:function(B,A){if(Ext.isFunction(B)){B=B.xtype}else{if(Ext.isObject(B)){B=B.constructor.xtype}}return !A?("/"+this.getXTypes()+"/").indexOf("/"+B+"/")!=-1:this.constructor.xtype==B},getXTypes:function(){var A=this.constructor;if(!A.xtypes){var C=[],B=this;while(B&&B.constructor.xtype){C.unshift(B.constructor.xtype);B=B.constructor.superclass}A.xtypeChain=C;A.xtypes=C.join("/")}return A.xtypes},findParentBy:function(A){for(var B=this.ownerCt;(B!=null)&&!A(B,this);B=B.ownerCt){}return B||null},findParentByType:function(B,A){return this.findParentBy(function(C){return C.isXType(B,A)})},bubble:function(C,B,A){var D=this;
while(D){if(C.apply(B||D,A||[D])===false){break}D=D.ownerCt}return this},getPositionEl:function(){return this.positionEl||this.el},purgeListeners:function(){Ext.Component.superclass.purgeListeners.call(this);if(this.mons){this.on("beforedestroy",this.clearMons,this,{single:true})}},clearMons:function(){Ext.each(this.mons,function(A){A.item.un(A.ename,A.fn,A.scope)},this);this.mons=[]},createMons:function(){if(!this.mons){this.mons=[];this.on("beforedestroy",this.clearMons,this,{single:true})}},mon:function(E,B,D,C,A){this.createMons();if(Ext.isObject(B)){var H=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/;var G=B;for(var F in G){if(H.test(F)){continue}if(Ext.isFunction(G[F])){this.mons.push({item:E,ename:F,fn:G[F],scope:G.scope});E.on(F,G[F],G.scope,G)}else{this.mons.push({item:E,ename:F,fn:G[F],scope:G.scope});E.on(F,G[F])}}return }this.mons.push({item:E,ename:B,fn:D,scope:C});E.on(B,D,C,A)},mun:function(G,C,F,E){var H,D;this.createMons();for(var B=0,A=this.mons.length;
B<A;++B){D=this.mons[B];if(G===D.item&&C==D.ename&&F===D.fn&&E===D.scope){this.mons.splice(B,1);G.un(C,F,E);H=true;break}}return H},nextSibling:function(){if(this.ownerCt){var A=this.ownerCt.items.indexOf(this);if(A!=-1&&A+1<this.ownerCt.items.getCount()){return this.ownerCt.items.itemAt(A+1)}}return null},previousSibling:function(){if(this.ownerCt){var A=this.ownerCt.items.indexOf(this);if(A>0){return this.ownerCt.items.itemAt(A-1)}}return null},getBubbleTarget:function(){return this.ownerCt}});Ext.reg("component",Ext.Component);Ext.Action=Ext.extend(Object,{constructor:function(A){this.initialConfig=A;this.itemId=A.itemId=(A.itemId||A.id||Ext.id());this.items=[]},isAction:true,setText:function(A){this.initialConfig.text=A;this.callEach("setText",[A])},getText:function(){return this.initialConfig.text},setIconClass:function(A){this.initialConfig.iconCls=A;this.callEach("setIconClass",[A])},getIconClass:function(){return this.initialConfig.iconCls},setDisabled:function(A){this.initialConfig.disabled=A;this.callEach("setDisabled",[A])
},enable:function(){this.setDisabled(false)},disable:function(){this.setDisabled(true)},isDisabled:function(){return this.initialConfig.disabled},setHidden:function(A){this.initialConfig.hidden=A;this.callEach("setVisible",[!A])},show:function(){this.setHidden(false)},hide:function(){this.setHidden(true)},isHidden:function(){return this.initialConfig.hidden},setHandler:function(B,A){this.initialConfig.handler=B;this.initialConfig.scope=A;this.callEach("setHandler",[B,A])},each:function(B,A){Ext.each(this.items,B,A)},callEach:function(E,B){var D=this.items;for(var C=0,A=D.length;C<A;C++){D[C][E].apply(D[C],B)}},addComponent:function(A){this.items.push(A);A.on("destroy",this.removeComponent,this)},removeComponent:function(A){this.items.remove(A)},execute:function(){this.initialConfig.handler.apply(this.initialConfig.scope||window,arguments)}});(function(){Ext.Layer=function(D,C){D=D||{};var E=Ext.DomHelper,G=D.parentEl,F=G?Ext.getDom(G):document.body;if(C){this.dom=Ext.getDom(C)}if(!this.dom){var H=D.dh||{tag:"div",cls:"x-layer"};
this.dom=E.append(F,H)}if(D.cls){this.addClass(D.cls)}this.constrain=D.constrain!==false;this.setVisibilityMode(Ext.Element.VISIBILITY);if(D.id){this.id=this.dom.id=D.id}else{this.id=Ext.id(this.dom)}this.zindex=D.zindex||this.getZIndex();this.position("absolute",this.zindex);if(D.shadow){this.shadowOffset=D.shadowOffset||4;this.shadow=new Ext.Shadow({offset:this.shadowOffset,mode:D.shadow})}else{this.shadowOffset=0}this.useShim=D.shim!==false&&Ext.useShims;this.useDisplay=D.useDisplay;this.hide()};var A=Ext.Element.prototype;var B=[];Ext.extend(Ext.Layer,Ext.Element,{getZIndex:function(){return this.zindex||parseInt((this.getShim()||this).getStyle("z-index"),10)||11000},getShim:function(){if(!this.useShim){return null}if(this.shim){return this.shim}var D=B.shift();if(!D){D=this.createShim();D.enableDisplayMode("block");D.dom.style.display="none";D.dom.style.visibility="visible"}var C=this.dom.parentNode;if(D.dom.parentNode!=C){C.insertBefore(D.dom,this.dom)}D.setStyle("z-index",this.getZIndex()-2);this.shim=D;
return D},hideShim:function(){if(this.shim){this.shim.setDisplayed(false);B.push(this.shim);delete this.shim}},disableShadow:function(){if(this.shadow){this.shadowDisabled=true;this.shadow.hide();this.lastShadowOffset=this.shadowOffset;this.shadowOffset=0}},enableShadow:function(C){if(this.shadow){this.shadowDisabled=false;if(Ext.isDefined(this.lastShadowOffset)){this.shadowOffset=this.lastShadowOffset;delete this.lastShadowOffset}if(C){this.sync(true)}}},sync:function(D){var K=this.shadow;if(!this.updating&&this.isVisible()&&(K||this.useShim)){var G=this.getShim(),J=this.getWidth(),H=this.getHeight(),E=this.getLeft(true),L=this.getTop(true);if(K&&!this.shadowDisabled){if(D&&!K.isVisible()){K.show(this)}else{K.realign(E,L,J,H)}if(G){if(D){G.show()}var I=K.el.getXY(),F=G.dom.style,C=K.el.getSize();F.left=(I[0])+"px";F.top=(I[1])+"px";F.width=(C.width)+"px";F.height=(C.height)+"px"}}else{if(G){if(D){G.show()}G.setSize(J,H);G.setLeftTop(E,L)}}}},destroy:function(){this.hideShim();if(this.shadow){this.shadow.hide()
}this.removeAllListeners();Ext.removeNode(this.dom);delete this.dom},remove:function(){this.destroy()},beginUpdate:function(){this.updating=true},endUpdate:function(){this.updating=false;this.sync(true)},hideUnders:function(C){if(this.shadow){this.shadow.hide()}this.hideShim()},constrainXY:function(){if(this.constrain){var H=Ext.lib.Dom.getViewWidth(),D=Ext.lib.Dom.getViewHeight();var M=Ext.getDoc().getScroll();var L=this.getXY();var I=L[0],G=L[1];var C=this.shadowOffset;var J=this.dom.offsetWidth+C,E=this.dom.offsetHeight+C;var F=false;if((I+J)>H+M.left){I=H-J-C;F=true}if((G+E)>D+M.top){G=D-E-C;F=true}if(I<M.left){I=M.left;F=true}if(G<M.top){G=M.top;F=true}if(F){if(this.avoidY){var K=this.avoidY;if(G<=K&&(G+E)>=K){G=K-E-5}}L=[I,G];this.storeXY(L);A.setXY.call(this,L);this.sync()}}return this},getConstrainOffset:function(){return this.shadowOffset},isVisible:function(){return this.visible},showAction:function(){this.visible=true;if(this.useDisplay===true){this.setDisplayed("")}else{if(this.lastXY){A.setXY.call(this,this.lastXY)
}else{if(this.lastLT){A.setLeftTop.call(this,this.lastLT[0],this.lastLT[1])}}}},hideAction:function(){this.visible=false;if(this.useDisplay===true){this.setDisplayed(false)}else{this.setLeftTop(-10000,-10000)}},setVisible:function(E,D,G,H,F){if(E){this.showAction()}if(D&&E){var C=function(){this.sync(true);if(H){H()}}.createDelegate(this);A.setVisible.call(this,true,true,G,C,F)}else{if(!E){this.hideUnders(true)}var C=H;if(D){C=function(){this.hideAction();if(H){H()}}.createDelegate(this)}A.setVisible.call(this,E,D,G,C,F);if(E){this.sync(true)}else{if(!D){this.hideAction()}}}return this},storeXY:function(C){delete this.lastLT;this.lastXY=C},storeLeftTop:function(D,C){delete this.lastXY;this.lastLT=[D,C]},beforeFx:function(){this.beforeAction();return Ext.Layer.superclass.beforeFx.apply(this,arguments)},afterFx:function(){Ext.Layer.superclass.afterFx.apply(this,arguments);this.sync(this.isVisible())},beforeAction:function(){if(!this.updating&&this.shadow){this.shadow.hide()}},setLeft:function(C){this.storeLeftTop(C,this.getTop(true));
A.setLeft.apply(this,arguments);this.sync();return this},setTop:function(C){this.storeLeftTop(this.getLeft(true),C);A.setTop.apply(this,arguments);this.sync();return this},setLeftTop:function(D,C){this.storeLeftTop(D,C);A.setLeftTop.apply(this,arguments);this.sync();return this},setXY:function(F,D,G,H,E){this.fixDisplay();this.beforeAction();this.storeXY(F);var C=this.createCB(H);A.setXY.call(this,F,D,G,C,E);if(!D){C()}return this},createCB:function(D){var C=this;return function(){C.constrainXY();C.sync(true);if(D){D()}}},setX:function(C,D,F,G,E){this.setXY([C,this.getY()],D,F,G,E);return this},setY:function(G,C,E,F,D){this.setXY([this.getX(),G],C,E,F,D);return this},setSize:function(E,F,D,H,I,G){this.beforeAction();var C=this.createCB(I);A.setSize.call(this,E,F,D,H,C,G);if(!D){C()}return this},setWidth:function(E,D,G,H,F){this.beforeAction();var C=this.createCB(H);A.setWidth.call(this,E,D,G,C,F);if(!D){C()}return this},setHeight:function(E,D,G,H,F){this.beforeAction();var C=this.createCB(H);A.setHeight.call(this,E,D,G,C,F);
if(!D){C()}return this},setBounds:function(J,H,K,D,I,F,G,E){this.beforeAction();var C=this.createCB(G);if(!I){this.storeXY([J,H]);A.setXY.call(this,[J,H]);A.setSize.call(this,K,D,I,F,C,E);C()}else{A.setBounds.call(this,J,H,K,D,I,F,C,E)}return this},setZIndex:function(C){this.zindex=C;this.setStyle("z-index",C+2);if(this.shadow){this.shadow.setZIndex(C+1)}if(this.shim){this.shim.setStyle("z-index",C)}return this}})})();Ext.Shadow=function(C){Ext.apply(this,C);if(typeof this.mode!="string"){this.mode=this.defaultMode}var D=this.offset,B={h:0},A=Math.floor(this.offset/2);switch(this.mode.toLowerCase()){case"drop":B.w=0;B.l=B.t=D;B.t-=1;if(Ext.isIE){B.l-=this.offset+A;B.t-=this.offset+A;B.w-=A;B.h-=A;B.t+=1}break;case"sides":B.w=(D*2);B.l=-D;B.t=D-1;if(Ext.isIE){B.l-=(this.offset-A);B.t-=this.offset+A;B.l+=1;B.w-=(this.offset-A)*2;B.w-=A+1;B.h-=1}break;case"frame":B.w=B.h=(D*2);B.l=B.t=-D;B.t+=1;B.h-=2;if(Ext.isIE){B.l-=(this.offset-A);B.t-=(this.offset-A);B.l+=1;B.w-=(this.offset+A+1);B.h-=(this.offset+A);B.h+=1}break
}this.adjusts=B};Ext.Shadow.prototype={offset:4,defaultMode:"drop",show:function(A){A=Ext.get(A);if(!this.el){this.el=Ext.Shadow.Pool.pull();if(this.el.dom.nextSibling!=A.dom){this.el.insertBefore(A)}}this.el.setStyle("z-index",this.zIndex||parseInt(A.getStyle("z-index"),10)-1);if(Ext.isIE){this.el.dom.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity=50) progid:DXImageTransform.Microsoft.Blur(pixelradius="+(this.offset)+")"}this.realign(A.getLeft(true),A.getTop(true),A.getWidth(),A.getHeight());this.el.dom.style.display="block"},isVisible:function(){return this.el?true:false},realign:function(A,M,L,D){if(!this.el){return }var I=this.adjusts,G=this.el.dom,N=G.style,E=0,K=(L+I.w),C=(D+I.h),F=K+"px",J=C+"px",H,B;N.left=(A+I.l)+"px";N.top=(M+I.t)+"px";if(N.width!=F||N.height!=J){N.width=F;N.height=J;if(!Ext.isIE){H=G.childNodes;B=Math.max(0,(K-12))+"px";H[0].childNodes[1].style.width=B;H[1].childNodes[1].style.width=B;H[2].childNodes[1].style.width=B;H[1].style.height=Math.max(0,(C-12))+"px"}}},hide:function(){if(this.el){this.el.dom.style.display="none";
Ext.Shadow.Pool.push(this.el);delete this.el}},setZIndex:function(A){this.zIndex=A;if(this.el){this.el.setStyle("z-index",A)}}};Ext.Shadow.Pool=function(){var B=[],A=Ext.isIE?'<div class="x-ie-shadow"></div>':'<div class="x-shadow"><div class="xst"><div class="xstl"></div><div class="xstc"></div><div class="xstr"></div></div><div class="xsc"><div class="xsml"></div><div class="xsmc"></div><div class="xsmr"></div></div><div class="xsb"><div class="xsbl"></div><div class="xsbc"></div><div class="xsbr"></div></div></div>';return{pull:function(){var C=B.shift();if(!C){C=Ext.get(Ext.DomHelper.insertHtml("beforeBegin",document.body.firstChild,A));C.autoBoxAdjust=false}return C},push:function(C){B.push(C)}}}();Ext.BoxComponent=Ext.extend(Ext.Component,{initComponent:function(){Ext.BoxComponent.superclass.initComponent.call(this);this.addEvents("resize","move")},boxReady:false,deferHeight:false,setSize:function(B,D){if(typeof B=="object"){D=B.height;B=B.width}if(Ext.isDefined(B)&&Ext.isDefined(this.boxMinWidth)&&(B<this.boxMinWidth)){B=this.boxMinWidth
}if(Ext.isDefined(D)&&Ext.isDefined(this.boxMinHeight)&&(D<this.boxMinHeight)){D=this.boxMinHeight}if(Ext.isDefined(B)&&Ext.isDefined(this.boxMaxWidth)&&(B>this.boxMaxWidth)){B=this.boxMaxWidth}if(Ext.isDefined(D)&&Ext.isDefined(this.boxMaxHeight)&&(D>this.boxMaxHeight)){D=this.boxMaxHeight}if(!this.boxReady){this.width=B;this.height=D;return this}if(this.cacheSizes!==false&&this.lastSize&&this.lastSize.width==B&&this.lastSize.height==D){return this}this.lastSize={width:B,height:D};var C=this.adjustSize(B,D),F=C.width,A=C.height,E;if(F!==undefined||A!==undefined){E=this.getResizeEl();if(!this.deferHeight&&F!==undefined&&A!==undefined){E.setSize(F,A)}else{if(!this.deferHeight&&A!==undefined){E.setHeight(A)}else{if(F!==undefined){E.setWidth(F)}}}this.onResize(F,A,B,D);this.fireEvent("resize",this,F,A,B,D)}return this},setWidth:function(A){return this.setSize(A)},setHeight:function(A){return this.setSize(undefined,A)},getSize:function(){return this.getResizeEl().getSize()},getWidth:function(){return this.getResizeEl().getWidth()
},getHeight:function(){return this.getResizeEl().getHeight()},getOuterSize:function(){var A=this.getResizeEl();return{width:A.getWidth()+A.getMargins("lr"),height:A.getHeight()+A.getMargins("tb")}},getPosition:function(A){var B=this.getPositionEl();if(A===true){return[B.getLeft(true),B.getTop(true)]}return this.xy||B.getXY()},getBox:function(A){var C=this.getPosition(A);var B=this.getSize();B.x=C[0];B.y=C[1];return B},updateBox:function(A){this.setSize(A.width,A.height);this.setPagePosition(A.x,A.y);return this},getResizeEl:function(){return this.resizeEl||this.el},setAutoScroll:function(A){if(this.rendered){this.getContentTarget().setOverflow(A?"auto":"")}this.autoScroll=A;return this},setPosition:function(A,F){if(A&&typeof A[1]=="number"){F=A[1];A=A[0]}this.x=A;this.y=F;if(!this.boxReady){return this}var B=this.adjustPosition(A,F);var E=B.x,D=B.y;var C=this.getPositionEl();if(E!==undefined||D!==undefined){if(E!==undefined&&D!==undefined){C.setLeftTop(E,D)}else{if(E!==undefined){C.setLeft(E)}else{if(D!==undefined){C.setTop(D)
}}}this.onPosition(E,D);this.fireEvent("move",this,E,D)}return this},setPagePosition:function(A,C){if(A&&typeof A[1]=="number"){C=A[1];A=A[0]}this.pageX=A;this.pageY=C;if(!this.boxReady){return }if(A===undefined||C===undefined){return }var B=this.getPositionEl().translatePoints(A,C);this.setPosition(B.left,B.top);return this},afterRender:function(){Ext.BoxComponent.superclass.afterRender.call(this);if(this.resizeEl){this.resizeEl=Ext.get(this.resizeEl)}if(this.positionEl){this.positionEl=Ext.get(this.positionEl)}this.boxReady=true;Ext.isDefined(this.autoScroll)&&this.setAutoScroll(this.autoScroll);this.setSize(this.width,this.height);if(this.x||this.y){this.setPosition(this.x,this.y)}else{if(this.pageX||this.pageY){this.setPagePosition(this.pageX,this.pageY)}}},syncSize:function(){delete this.lastSize;this.setSize(this.autoWidth?undefined:this.getResizeEl().getWidth(),this.autoHeight?undefined:this.getResizeEl().getHeight());return this},onResize:function(D,B,A,C){},onPosition:function(A,B){},adjustSize:function(A,B){if(this.autoWidth){A="auto"
}if(this.autoHeight){B="auto"}return{width:A,height:B}},adjustPosition:function(A,B){return{x:A,y:B}}});Ext.reg("box",Ext.BoxComponent);Ext.Spacer=Ext.extend(Ext.BoxComponent,{autoEl:"div"});Ext.reg("spacer",Ext.Spacer);Ext.SplitBar=function(C,E,B,D,A){this.el=Ext.get(C,true);this.el.dom.unselectable="on";this.resizingEl=Ext.get(E,true);this.orientation=B||Ext.SplitBar.HORIZONTAL;this.minSize=0;this.maxSize=2000;this.animate=false;this.useShim=false;this.shim=null;if(!A){this.proxy=Ext.SplitBar.createProxy(this.orientation)}else{this.proxy=Ext.get(A).dom}this.dd=new Ext.dd.DDProxy(this.el.dom.id,"XSplitBars",{dragElId:this.proxy.id});this.dd.b4StartDrag=this.onStartProxyDrag.createDelegate(this);this.dd.endDrag=this.onEndProxyDrag.createDelegate(this);this.dragSpecs={};this.adapter=new Ext.SplitBar.BasicLayoutAdapter();this.adapter.init(this);if(this.orientation==Ext.SplitBar.HORIZONTAL){this.placement=D||(this.el.getX()>this.resizingEl.getX()?Ext.SplitBar.LEFT:Ext.SplitBar.RIGHT);this.el.addClass("x-splitbar-h")
}else{this.placement=D||(this.el.getY()>this.resizingEl.getY()?Ext.SplitBar.TOP:Ext.SplitBar.BOTTOM);this.el.addClass("x-splitbar-v")}this.addEvents("resize","moved","beforeresize","beforeapply");Ext.SplitBar.superclass.constructor.call(this)};Ext.extend(Ext.SplitBar,Ext.util.Observable,{onStartProxyDrag:function(A,E){this.fireEvent("beforeresize",this);this.overlay=Ext.DomHelper.append(document.body,{cls:"x-drag-overlay",html:"&#160;"},true);this.overlay.unselectable();this.overlay.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true));this.overlay.show();Ext.get(this.proxy).setDisplayed("block");var C=this.adapter.getElementSize(this);this.activeMinSize=this.getMinimumSize();this.activeMaxSize=this.getMaximumSize();var D=C-this.activeMinSize;var B=Math.max(this.activeMaxSize-C,0);if(this.orientation==Ext.SplitBar.HORIZONTAL){this.dd.resetConstraints();this.dd.setXConstraint(this.placement==Ext.SplitBar.LEFT?D:B,this.placement==Ext.SplitBar.LEFT?B:D,this.tickSize);this.dd.setYConstraint(0,0)}else{this.dd.resetConstraints();
this.dd.setXConstraint(0,0);this.dd.setYConstraint(this.placement==Ext.SplitBar.TOP?D:B,this.placement==Ext.SplitBar.TOP?B:D,this.tickSize)}this.dragSpecs.startSize=C;this.dragSpecs.startPoint=[A,E];Ext.dd.DDProxy.prototype.b4StartDrag.call(this.dd,A,E)},onEndProxyDrag:function(C){Ext.get(this.proxy).setDisplayed(false);var B=Ext.lib.Event.getXY(C);if(this.overlay){Ext.destroy(this.overlay);delete this.overlay}var A;if(this.orientation==Ext.SplitBar.HORIZONTAL){A=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.LEFT?B[0]-this.dragSpecs.startPoint[0]:this.dragSpecs.startPoint[0]-B[0])}else{A=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.TOP?B[1]-this.dragSpecs.startPoint[1]:this.dragSpecs.startPoint[1]-B[1])}A=Math.min(Math.max(A,this.activeMinSize),this.activeMaxSize);if(A!=this.dragSpecs.startSize){if(this.fireEvent("beforeapply",this,A)!==false){this.adapter.setElementSize(this,A);this.fireEvent("moved",this,A);this.fireEvent("resize",this,A)}}},getAdapter:function(){return this.adapter},setAdapter:function(A){this.adapter=A;
this.adapter.init(this)},getMinimumSize:function(){return this.minSize},setMinimumSize:function(A){this.minSize=A},getMaximumSize:function(){return this.maxSize},setMaximumSize:function(A){this.maxSize=A},setCurrentSize:function(B){var A=this.animate;this.animate=false;this.adapter.setElementSize(this,B);this.animate=A},destroy:function(A){Ext.destroy(this.shim,Ext.get(this.proxy));this.dd.unreg();if(A){this.el.remove()}this.purgeListeners()}});Ext.SplitBar.createProxy=function(B){var C=new Ext.Element(document.createElement("div"));document.body.appendChild(C.dom);C.unselectable();var A="x-splitbar-proxy";C.addClass(A+" "+(B==Ext.SplitBar.HORIZONTAL?A+"-h":A+"-v"));return C.dom};Ext.SplitBar.BasicLayoutAdapter=function(){};Ext.SplitBar.BasicLayoutAdapter.prototype={init:function(A){},getElementSize:function(A){if(A.orientation==Ext.SplitBar.HORIZONTAL){return A.resizingEl.getWidth()}else{return A.resizingEl.getHeight()}},setElementSize:function(B,A,C){if(B.orientation==Ext.SplitBar.HORIZONTAL){if(!B.animate){B.resizingEl.setWidth(A);
if(C){C(B,A)}}else{B.resizingEl.setWidth(A,true,0.1,C,"easeOut")}}else{if(!B.animate){B.resizingEl.setHeight(A);if(C){C(B,A)}}else{B.resizingEl.setHeight(A,true,0.1,C,"easeOut")}}}};Ext.SplitBar.AbsoluteLayoutAdapter=function(A){this.basic=new Ext.SplitBar.BasicLayoutAdapter();this.container=Ext.get(A)};Ext.SplitBar.AbsoluteLayoutAdapter.prototype={init:function(A){this.basic.init(A)},getElementSize:function(A){return this.basic.getElementSize(A)},setElementSize:function(B,A,C){this.basic.setElementSize(B,A,this.moveSplitter.createDelegate(this,[B]))},moveSplitter:function(A){var B=Ext.SplitBar;switch(A.placement){case B.LEFT:A.el.setX(A.resizingEl.getRight());break;case B.RIGHT:A.el.setStyle("right",(this.container.getWidth()-A.resizingEl.getLeft())+"px");break;case B.TOP:A.el.setY(A.resizingEl.getBottom());break;case B.BOTTOM:A.el.setY(A.resizingEl.getTop()-A.el.getHeight());break}}};Ext.SplitBar.VERTICAL=1;Ext.SplitBar.HORIZONTAL=2;Ext.SplitBar.LEFT=1;Ext.SplitBar.RIGHT=2;Ext.SplitBar.TOP=3;Ext.SplitBar.BOTTOM=4;
Ext.Container=Ext.extend(Ext.BoxComponent,{bufferResize:50,autoDestroy:true,forceLayout:false,defaultType:"panel",resizeEvent:"resize",bubbleEvents:["add","remove"],initComponent:function(){Ext.Container.superclass.initComponent.call(this);this.addEvents("afterlayout","beforeadd","beforeremove","add","remove");var A=this.items;if(A){delete this.items;this.add(A)}},initItems:function(){if(!this.items){this.items=new Ext.util.MixedCollection(false,this.getComponentId);this.getLayout()}},setLayout:function(A){if(this.layout&&this.layout!=A){this.layout.setContainer(null)}this.layout=A;this.initItems();A.setContainer(this)},afterRender:function(){Ext.Container.superclass.afterRender.call(this);if(!this.layout){this.layout="auto"}if(Ext.isObject(this.layout)&&!this.layout.layout){this.layoutConfig=this.layout;this.layout=this.layoutConfig.type}if(Ext.isString(this.layout)){this.layout=new Ext.Container.LAYOUTS[this.layout.toLowerCase()](this.layoutConfig)}this.setLayout(this.layout);if(this.activeItem!==undefined&&this.layout.setActiveItem){var A=this.activeItem;
delete this.activeItem;this.layout.setActiveItem(A)}if(!this.ownerCt){this.doLayout(false,true)}if(this.monitorResize===true){Ext.EventManager.onWindowResize(this.doLayout,this,[false])}},getLayoutTarget:function(){return this.el},getComponentId:function(A){return A.getItemId()},add:function(B){this.initItems();var D=arguments.length>1;if(D||Ext.isArray(B)){var A=[];Ext.each(D?arguments:B,function(F){A.push(this.add(F))},this);return A}var E=this.lookupComponent(this.applyDefaults(B));var C=this.items.length;if(this.fireEvent("beforeadd",this,E,C)!==false&&this.onBeforeAdd(E)!==false){this.items.add(E);E.onAdded(this,C);this.onAdd(E);this.fireEvent("add",this,E,C)}return E},onAdd:function(A){},onAdded:function(A,B){this.ownerCt=A;this.initRef();this.cascade(function(C){C.initRef()});this.fireEvent("added",this,A,B)},insert:function(D,B){var C=arguments,F=C.length,A=[],E,G;this.initItems();if(F>2){for(E=F-1;E>=1;--E){A.push(this.insert(D,C[E]))}return A}G=this.lookupComponent(this.applyDefaults(B));D=Math.min(D,this.items.length);
if(this.fireEvent("beforeadd",this,G,D)!==false&&this.onBeforeAdd(G)!==false){if(G.ownerCt==this){this.items.remove(G)}this.items.insert(D,G);G.onAdded(this,D);this.onAdd(G);this.fireEvent("add",this,G,D)}return G},applyDefaults:function(B){var A=this.defaults;if(A){if(Ext.isFunction(A)){A=A.call(this,B)}if(Ext.isString(B)){B=Ext.ComponentMgr.get(B);Ext.apply(B,A)}else{if(!B.events){Ext.applyIf(B.isAction?B.initialConfig:B,A)}else{Ext.apply(B,A)}}}return B},onBeforeAdd:function(A){if(A.ownerCt){A.ownerCt.remove(A,false)}if(this.hideBorders===true){A.border=(A.border===true)}},remove:function(A,B){this.initItems();var C=this.getComponent(A);if(C&&this.fireEvent("beforeremove",this,C)!==false){this.doRemove(C,B);this.fireEvent("remove",this,C)}return C},onRemove:function(A){},doRemove:function(D,C){var B=this.layout,A=B&&this.rendered;if(A){B.onRemove(D)}this.items.remove(D);D.onRemoved();this.onRemove(D);if(C===true||(C!==false&&this.autoDestroy)){D.destroy()}if(A){B.afterRemove(D)}},removeAll:function(C){this.initItems();
var E,F=[],B=[];this.items.each(function(G){F.push(G)});for(var D=0,A=F.length;D<A;++D){E=F[D];this.remove(E,C);if(E.ownerCt!==this){B.push(E)}}return B},getComponent:function(A){if(Ext.isObject(A)){A=A.getItemId()}return this.items.get(A)},lookupComponent:function(A){if(Ext.isString(A)){return Ext.ComponentMgr.get(A)}else{if(!A.events){return this.createComponent(A)}}return A},createComponent:function(A,C){if(A.render){return A}var B=Ext.create(Ext.apply({ownerCt:this},A),C||this.defaultType);delete B.initialConfig.ownerCt;delete B.ownerCt;return B},canLayout:function(){var A=this.getVisibilityEl();return A&&A.dom&&!A.isStyle("display","none")},doLayout:function(E,D){var H=this.rendered,G=D||this.forceLayout;if(this.collapsed||!this.canLayout()){this.deferLayout=this.deferLayout||!E;if(!G){return }E=E&&!this.deferLayout}else{delete this.deferLayout}if(H&&this.layout){this.layout.layout()}if(E!==true&&this.items){var C=this.items.items;for(var B=0,A=C.length;B<A;B++){var F=C[B];if(F.doLayout){F.doLayout(false,G)
}}}if(H){this.onLayout(E,G)}this.hasLayout=true;delete this.forceLayout},onLayout:Ext.emptyFn,shouldBufferLayout:function(){var A=this.hasLayout;if(this.ownerCt){return A?!this.hasLayoutPending():false}return A},hasLayoutPending:function(){var A=false;this.ownerCt.bubble(function(B){if(B.layoutPending){A=true;return false}});return A},onShow:function(){Ext.Container.superclass.onShow.call(this);if(Ext.isDefined(this.deferLayout)){delete this.deferLayout;this.doLayout(true)}},getLayout:function(){if(!this.layout){var A=new Ext.layout.AutoLayout(this.layoutConfig);this.setLayout(A)}return this.layout},beforeDestroy:function(){var A;if(this.items){while(A=this.items.first()){this.doRemove(A,true)}}if(this.monitorResize){Ext.EventManager.removeResizeListener(this.doLayout,this)}Ext.destroy(this.layout);Ext.Container.superclass.beforeDestroy.call(this)},cascade:function(F,E,B){if(F.apply(E||this,B||[this])!==false){if(this.items){var D=this.items.items;for(var C=0,A=D.length;C<A;C++){if(D[C].cascade){D[C].cascade(F,E,B)
}else{F.apply(E||D[C],B||[D[C]])}}}}return this},findById:function(C){var A=null,B=this;this.cascade(function(D){if(B!=D&&D.id===C){A=D;return false}});return A},findByType:function(B,A){return this.findBy(function(C){return C.isXType(B,A)})},find:function(B,A){return this.findBy(function(C){return C[B]===A})},findBy:function(D,C){var A=[],B=this;this.cascade(function(E){if(B!=E&&D.call(C||E,E,B)===true){A.push(E)}});return A},get:function(A){return this.getComponent(A)}});Ext.Container.LAYOUTS={};Ext.reg("container",Ext.Container);Ext.layout.ContainerLayout=Ext.extend(Object,{monitorResize:false,activeItem:null,constructor:function(A){this.id=Ext.id(null,"ext-layout-");Ext.apply(this,A)},type:"container",IEMeasureHack:function(F,C){var A=F.dom.childNodes,B=A.length,I,H=[],G,D,E;for(D=0;D<B;D++){I=A[D];G=Ext.get(I);if(G){H[D]=G.getStyle("display");G.setStyle({display:"none"})}}E=F?F.getViewSize(C):{};for(D=0;D<B;D++){I=A[D];G=Ext.get(I);if(G){G.setStyle({display:H[D]})}}return E},getLayoutTargetSize:Ext.EmptyFn,layout:function(){var A=this.container,B=A.getLayoutTarget();
if(!(this.hasLayout||Ext.isEmpty(this.targetCls))){B.addClass(this.targetCls)}this.onLayout(A,B);A.fireEvent("afterlayout",A,this)},onLayout:function(A,B){this.renderAll(A,B)},isValidParent:function(B,A){return A&&B.getPositionEl().dom.parentNode==(A.dom||A)},renderAll:function(D,E){var B=D.items.items,C,F,A=B.length;for(C=0;C<A;C++){F=B[C];if(F&&(!F.rendered||!this.isValidParent(F,E))){this.renderItem(F,C,E)}}},renderItem:function(C,A,B){if(C){if(!C.rendered){C.render(B,A);this.configureItem(C)}else{if(!this.isValidParent(C,B)){if(Ext.isNumber(A)){A=B.dom.childNodes[A]}B.dom.insertBefore(C.getPositionEl().dom,A||null);C.container=B;this.configureItem(C)}}}},getRenderedItems:function(E){var D=E.getLayoutTarget(),F=E.items.items,A=F.length,C,G,B=[];for(C=0;C<A;C++){if((G=F[C]).rendered&&this.isValidParent(G,D)&&G.shouldLayout!==false){B.push(G)}}return B},configureItem:function(B){if(this.extraCls){var A=B.getPositionEl?B.getPositionEl():B;A.addClass(this.extraCls)}if(B.doLayout&&this.forceLayout){B.doLayout()}if(this.renderHidden&&B!=this.activeItem){B.hide()
}},onRemove:function(B){if(this.activeItem==B){delete this.activeItem}if(B.rendered&&this.extraCls){var A=B.getPositionEl?B.getPositionEl():B;A.removeClass(this.extraCls)}},afterRemove:function(A){if(A.removeRestore){A.removeMode="container";delete A.removeRestore}},onResize:function(){var B=this.container,A;if(B.collapsed){return }if(A=B.bufferResize&&B.shouldBufferLayout()){if(!this.resizeTask){this.resizeTask=new Ext.util.DelayedTask(this.runLayout,this);this.resizeBuffer=Ext.isNumber(A)?A:50}B.layoutPending=true;this.resizeTask.delay(this.resizeBuffer)}else{this.runLayout()}},runLayout:function(){var A=this.container;this.layout();A.onLayout();delete A.layoutPending},setContainer:function(B){if(this.monitorResize&&B!=this.container){var A=this.container;if(A){A.un(A.resizeEvent,this.onResize,this)}if(B){B.on(B.resizeEvent,this.onResize,this)}}this.container=B},parseMargins:function(B){if(Ext.isNumber(B)){B=B.toString()}var C=B.split(" "),A=C.length;if(A==1){C[1]=C[2]=C[3]=C[0]}else{if(A==2){C[2]=C[0];C[3]=C[1]
}else{if(A==3){C[3]=C[1]}}}return{top:parseInt(C[0],10)||0,right:parseInt(C[1],10)||0,bottom:parseInt(C[2],10)||0,left:parseInt(C[3],10)||0}},fieldTpl:(function(){var A=new Ext.Template('<div class="x-form-item {itemCls}" tabIndex="-1">','<label for="{id}" style="{labelStyle}" class="x-form-item-label">{label}{labelSeparator}</label>','<div class="x-form-element" id="x-form-el-{id}" style="{elementStyle}">','</div><div class="{clearCls}"></div>',"</div>");A.disableFormats=true;return A.compile()})(),destroy:function(){if(this.resizeTask&&this.resizeTask.cancel){this.resizeTask.cancel()}if(this.container){this.container.un(this.container.resizeEvent,this.onResize,this)}if(!Ext.isEmpty(this.targetCls)){var A=this.container.getLayoutTarget();if(A){A.removeClass(this.targetCls)}}}});Ext.layout.AutoLayout=Ext.extend(Ext.layout.ContainerLayout,{type:"auto",monitorResize:true,onLayout:function(C,E){Ext.layout.AutoLayout.superclass.onLayout.call(this,C,E);var D=this.getRenderedItems(C),A=D.length,B,F;for(B=0;B<A;B++){F=D[B];
if(F.doLayout){F.doLayout(true)}}}});Ext.Container.LAYOUTS["auto"]=Ext.layout.AutoLayout;Ext.layout.FitLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"fit",getLayoutTargetSize:function(){var A=this.container.getLayoutTarget();if(!A){return{}}return A.getStyleSize()},onLayout:function(A,B){Ext.layout.FitLayout.superclass.onLayout.call(this,A,B);if(!A.collapsed){this.setItemSize(this.activeItem||A.items.itemAt(0),this.getLayoutTargetSize())}},setItemSize:function(B,A){if(B&&A.height>0){B.setSize(A)}}});Ext.Container.LAYOUTS["fit"]=Ext.layout.FitLayout;Ext.layout.CardLayout=Ext.extend(Ext.layout.FitLayout,{deferredRender:false,layoutOnCardChange:false,renderHidden:true,type:"card",setActiveItem:function(D){var A=this.activeItem,B=this.container;D=B.getComponent(D);if(D&&A!=D){if(A){A.hide();if(A.hidden!==true){return false}A.fireEvent("deactivate",A)}var C=D.doLayout&&(this.layoutOnCardChange||!D.rendered);this.activeItem=D;delete D.deferLayout;D.show();this.layout();if(C){D.doLayout()}D.fireEvent("activate",D)
}},renderAll:function(A,B){if(this.deferredRender){this.renderItem(this.activeItem,undefined,B)}else{Ext.layout.CardLayout.superclass.renderAll.call(this,A,B)}}});Ext.Container.LAYOUTS["card"]=Ext.layout.CardLayout;Ext.layout.AnchorLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"anchor",defaultAnchor:"100%",parseAnchorRE:/^(r|right|b|bottom)$/i,getLayoutTargetSize:function(){var B=this.container.getLayoutTarget(),A={};if(B){A=B.getViewSize();if(Ext.isIE&&Ext.isStrict&&A.width==0){A=B.getStyleSize()}A.width-=B.getPadding("lr");A.height-=B.getPadding("tb")}return A},onLayout:function(K,U){Ext.layout.AnchorLayout.superclass.onLayout.call(this,K,U);var N=this.getLayoutTargetSize(),I=N.width,M=N.height,O=U.getStyle("overflow"),L=this.getRenderedItems(K),R=L.length,F=[],H,A,T,J,G,C,E,D,S=0,Q,B;if(I<20&&M<20){return }if(K.anchorSize){if(typeof K.anchorSize=="number"){A=K.anchorSize}else{A=K.anchorSize.width;T=K.anchorSize.height}}else{A=K.initialConfig.width;T=K.initialConfig.height}for(Q=0;Q<R;
Q++){J=L[Q];B=J.getPositionEl();if(!J.anchor&&J.items&&!Ext.isNumber(J.width)&&!(Ext.isIE6&&Ext.isStrict)){J.anchor=this.defaultAnchor}if(J.anchor){G=J.anchorSpec;if(!G){D=J.anchor.split(" ");J.anchorSpec=G={right:this.parseAnchor(D[0],J.initialConfig.width,A),bottom:this.parseAnchor(D[1],J.initialConfig.height,T)}}C=G.right?this.adjustWidthAnchor(G.right(I)-B.getMargins("lr"),J):undefined;E=G.bottom?this.adjustHeightAnchor(G.bottom(M)-B.getMargins("tb"),J):undefined;if(C||E){F.push({component:J,width:C||undefined,height:E||undefined})}}}for(Q=0,R=F.length;Q<R;Q++){H=F[Q];H.component.setSize(H.width,H.height)}if(O&&O!="hidden"&&!this.adjustmentPass){var P=this.getLayoutTargetSize();if(P.width!=N.width||P.height!=N.height){this.adjustmentPass=true;this.onLayout(K,U)}}delete this.adjustmentPass},parseAnchor:function(B,F,A){if(B&&B!="none"){var D;if(this.parseAnchorRE.test(B)){var E=A-F;return function(G){if(G!==D){D=G;return G-E}}}else{if(B.indexOf("%")!=-1){var C=parseFloat(B.replace("%",""))*0.01;return function(G){if(G!==D){D=G;
return Math.floor(G*C)}}}else{B=parseInt(B,10);if(!isNaN(B)){return function(G){if(G!==D){D=G;return G+B}}}}}}return false},adjustWidthAnchor:function(B,A){return B},adjustHeightAnchor:function(B,A){return B}});Ext.Container.LAYOUTS["anchor"]=Ext.layout.AnchorLayout;Ext.layout.ColumnLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"column",extraCls:"x-column",scrollOffset:0,targetCls:"x-column-layout-ct",isValidParent:function(B,A){return this.innerCt&&B.getPositionEl().dom.parentNode==this.innerCt.dom},getLayoutTargetSize:function(){var B=this.container.getLayoutTarget(),A;if(B){A=B.getViewSize();if(Ext.isIE&&Ext.isStrict&&A.width==0){A=B.getStyleSize()}A.width-=B.getPadding("lr");A.height-=B.getPadding("tb")}return A},renderAll:function(A,B){if(!this.innerCt){this.innerCt=B.createChild({cls:"x-column-inner"});this.innerCt.createChild({cls:"x-clear"})}Ext.layout.ColumnLayout.superclass.renderAll.call(this,A,this.innerCt)},onLayout:function(D,G){var E=D.items.items,F=E.length,I,B,A,J=[];this.renderAll(D,G);
var M=this.getLayoutTargetSize();if(M.width<1&&M.height<1){return }var K=M.width-this.scrollOffset,C=M.height,L=K;this.innerCt.setWidth(K);for(B=0;B<F;B++){I=E[B];A=I.getPositionEl().getMargins("lr");J[B]=A;if(!I.columnWidth){L-=(I.getWidth()+A)}}L=L<0?0:L;for(B=0;B<F;B++){I=E[B];A=J[B];if(I.columnWidth){I.setSize(Math.floor(I.columnWidth*L)-A)}}if(Ext.isIE){if(B=G.getStyle("overflow")&&B!="hidden"&&!this.adjustmentPass){var H=this.getLayoutTargetSize();if(H.width!=M.width){this.adjustmentPass=true;this.onLayout(D,G)}}}delete this.adjustmentPass}});Ext.Container.LAYOUTS["column"]=Ext.layout.ColumnLayout;Ext.layout.BorderLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,rendered:false,type:"border",targetCls:"x-border-layout-ct",getLayoutTargetSize:function(){var A=this.container.getLayoutTarget();return A?A.getViewSize():{}},onLayout:function(C,Y){var D,R,V,G,N=C.items.items,S=N.length;if(!this.rendered){D=[];for(R=0;R<S;R++){V=N[R];G=V.region;if(V.collapsed){D.push(V)}V.collapsed=false;if(!V.rendered){V.render(Y,R);
V.getPositionEl().addClass("x-border-panel")}this[G]=G!="center"&&V.split?new Ext.layout.BorderLayout.SplitRegion(this,V.initialConfig,G):new Ext.layout.BorderLayout.Region(this,V.initialConfig,G);this[G].render(Y,V)}this.rendered=true}var M=this.getLayoutTargetSize();if(M.width<20||M.height<20){if(D){this.restoreCollapsed=D}return }else{if(this.restoreCollapsed){D=this.restoreCollapsed;delete this.restoreCollapsed}}var K=M.width,T=M.height,J=K,Q=T,H=0,I=0,O=this.north,L=this.south,F=this.west,U=this.east,V=this.center,X,P,B,W;if(!V&&Ext.layout.BorderLayout.WARN!==false){throw"No center region defined in BorderLayout "+C.id}if(O&&O.isVisible()){X=O.getSize();P=O.getMargins();X.width=K-(P.left+P.right);X.x=P.left;X.y=P.top;H=X.height+X.y+P.bottom;Q-=H;O.applyLayout(X)}if(L&&L.isVisible()){X=L.getSize();P=L.getMargins();X.width=K-(P.left+P.right);X.x=P.left;W=(X.height+P.top+P.bottom);X.y=T-W+P.top;Q-=W;L.applyLayout(X)}if(F&&F.isVisible()){X=F.getSize();P=F.getMargins();X.height=Q-(P.top+P.bottom);X.x=P.left;X.y=H+P.top;
B=(X.width+P.left+P.right);I+=B;J-=B;F.applyLayout(X)}if(U&&U.isVisible()){X=U.getSize();P=U.getMargins();X.height=Q-(P.top+P.bottom);B=(X.width+P.left+P.right);X.x=K-B+P.left;X.y=H+P.top;J-=B;U.applyLayout(X)}if(V){P=V.getMargins();var E={x:I+P.left,y:H+P.top,width:J-(P.left+P.right),height:Q-(P.top+P.bottom)};V.applyLayout(E)}if(D){for(R=0,S=D.length;R<S;R++){D[R].collapse(false)}}if(Ext.isIE&&Ext.isStrict){Y.repaint()}if(R=Y.getStyle("overflow")&&R!="hidden"&&!this.adjustmentPass){var A=this.getLayoutTargetSize();if(A.width!=M.width||A.height!=M.height){this.adjustmentPass=true;this.onLayout(C,Y)}}delete this.adjustmentPass},destroy:function(){var B=["north","south","east","west"],A,C;for(A=0;A<B.length;A++){C=this[B[A]];if(C){if(C.destroy){C.destroy()}else{if(C.split){C.split.destroy(true)}}}}Ext.layout.BorderLayout.superclass.destroy.call(this)}});Ext.layout.BorderLayout.Region=function(B,A,C){Ext.apply(this,A);this.layout=B;this.position=C;this.state={};if(typeof this.margins=="string"){this.margins=this.layout.parseMargins(this.margins)
}this.margins=Ext.applyIf(this.margins||{},this.defaultMargins);if(this.collapsible){if(typeof this.cmargins=="string"){this.cmargins=this.layout.parseMargins(this.cmargins)}if(this.collapseMode=="mini"&&!this.cmargins){this.cmargins={left:0,top:0,right:0,bottom:0}}else{this.cmargins=Ext.applyIf(this.cmargins||{},C=="north"||C=="south"?this.defaultNSCMargins:this.defaultEWCMargins)}}};Ext.layout.BorderLayout.Region.prototype={collapsible:false,split:false,floatable:true,minWidth:50,minHeight:50,defaultMargins:{left:0,top:0,right:0,bottom:0},defaultNSCMargins:{left:5,top:5,right:5,bottom:5},defaultEWCMargins:{left:5,top:0,right:5,bottom:0},floatingZIndex:100,isCollapsed:false,render:function(B,C){this.panel=C;C.el.enableDisplayMode();this.targetEl=B;this.el=C.el;var A=C.getState,D=this.position;C.getState=function(){return Ext.apply(A.call(C)||{},this.state)}.createDelegate(this);if(D!="center"){C.allowQueuedExpand=false;C.on({beforecollapse:this.beforeCollapse,collapse:this.onCollapse,beforeexpand:this.beforeExpand,expand:this.onExpand,hide:this.onHide,show:this.onShow,scope:this});
if(this.collapsible||this.floatable){C.collapseEl="el";C.slideAnchor=this.getSlideAnchor()}if(C.tools&&C.tools.toggle){C.tools.toggle.addClass("x-tool-collapse-"+D);C.tools.toggle.addClassOnOver("x-tool-collapse-"+D+"-over")}}},getCollapsedEl:function(){if(!this.collapsedEl){if(!this.toolTemplate){var B=new Ext.Template('<div class="x-tool x-tool-{id}">&#160;</div>');B.disableFormats=true;B.compile();Ext.layout.BorderLayout.Region.prototype.toolTemplate=B}this.collapsedEl=this.targetEl.createChild({cls:"x-layout-collapsed x-layout-collapsed-"+this.position,id:this.panel.id+"-xcollapsed"});this.collapsedEl.enableDisplayMode("block");if(this.collapseMode=="mini"){this.collapsedEl.addClass("x-layout-cmini-"+this.position);this.miniCollapsedEl=this.collapsedEl.createChild({cls:"x-layout-mini x-layout-mini-"+this.position,html:"&#160;"});this.miniCollapsedEl.addClassOnOver("x-layout-mini-over");this.collapsedEl.addClassOnOver("x-layout-collapsed-over");this.collapsedEl.on("click",this.onExpandClick,this,{stopEvent:true})
}else{if(this.collapsible!==false&&!this.hideCollapseTool){var A=this.expandToolEl=this.toolTemplate.append(this.collapsedEl.dom,{id:"expand-"+this.position},true);A.addClassOnOver("x-tool-expand-"+this.position+"-over");A.on("click",this.onExpandClick,this,{stopEvent:true})}if(this.floatable!==false||this.titleCollapse){this.collapsedEl.addClassOnOver("x-layout-collapsed-over");this.collapsedEl.on("click",this[this.floatable?"collapseClick":"onExpandClick"],this)}}}return this.collapsedEl},onExpandClick:function(A){if(this.isSlid){this.panel.expand(false)}else{this.panel.expand()}},onCollapseClick:function(A){this.panel.collapse()},beforeCollapse:function(C,A){this.lastAnim=A;if(this.splitEl){this.splitEl.hide()}this.getCollapsedEl().show();var B=this.panel.getEl();this.originalZIndex=B.getStyle("z-index");B.setStyle("z-index",100);this.isCollapsed=true;this.layout.layout()},onCollapse:function(A){this.panel.el.setStyle("z-index",1);if(this.lastAnim===false||this.panel.animCollapse===false){this.getCollapsedEl().dom.style.visibility="visible"
}else{this.getCollapsedEl().slideIn(this.panel.slideAnchor,{duration:0.2})}this.state.collapsed=true;this.panel.saveState()},beforeExpand:function(A){if(this.isSlid){this.afterSlideIn()}var B=this.getCollapsedEl();this.el.show();if(this.position=="east"||this.position=="west"){this.panel.setSize(undefined,B.getHeight())}else{this.panel.setSize(B.getWidth(),undefined)}B.hide();B.dom.style.visibility="hidden";this.panel.el.setStyle("z-index",this.floatingZIndex)},onExpand:function(){this.isCollapsed=false;if(this.splitEl){this.splitEl.show()}this.layout.layout();this.panel.el.setStyle("z-index",this.originalZIndex);this.state.collapsed=false;this.panel.saveState()},collapseClick:function(A){if(this.isSlid){A.stopPropagation();this.slideIn()}else{A.stopPropagation();this.slideOut()}},onHide:function(){if(this.isCollapsed){this.getCollapsedEl().hide()}else{if(this.splitEl){this.splitEl.hide()}}},onShow:function(){if(this.isCollapsed){this.getCollapsedEl().show()}else{if(this.splitEl){this.splitEl.show()}}},isVisible:function(){return !this.panel.hidden
},getMargins:function(){return this.isCollapsed&&this.cmargins?this.cmargins:this.margins},getSize:function(){return this.isCollapsed?this.getCollapsedEl().getSize():this.panel.getSize()},setPanel:function(A){this.panel=A},getMinWidth:function(){return this.minWidth},getMinHeight:function(){return this.minHeight},applyLayoutCollapsed:function(A){var B=this.getCollapsedEl();B.setLeftTop(A.x,A.y);B.setSize(A.width,A.height)},applyLayout:function(A){if(this.isCollapsed){this.applyLayoutCollapsed(A)}else{this.panel.setPosition(A.x,A.y);this.panel.setSize(A.width,A.height)}},beforeSlide:function(){this.panel.beforeEffect()},afterSlide:function(){this.panel.afterEffect()},initAutoHide:function(){if(this.autoHide!==false){if(!this.autoHideHd){this.autoHideSlideTask=new Ext.util.DelayedTask(this.slideIn,this);this.autoHideHd={"mouseout":function(A){if(!A.within(this.el,true)){this.autoHideSlideTask.delay(500)}},"mouseover":function(A){this.autoHideSlideTask.cancel()},scope:this}}this.el.on(this.autoHideHd);this.collapsedEl.on(this.autoHideHd)
}},clearAutoHide:function(){if(this.autoHide!==false){this.el.un("mouseout",this.autoHideHd.mouseout);this.el.un("mouseover",this.autoHideHd.mouseover);this.collapsedEl.un("mouseout",this.autoHideHd.mouseout);this.collapsedEl.un("mouseover",this.autoHideHd.mouseover)}},clearMonitor:function(){Ext.getDoc().un("click",this.slideInIf,this)},slideOut:function(){if(this.isSlid||this.el.hasActiveFx()){return }this.isSlid=true;var B=this.panel.tools,C,A;if(B&&B.toggle){B.toggle.hide()}this.el.show();A=this.panel.collapsed;this.panel.collapsed=false;if(this.position=="east"||this.position=="west"){C=this.panel.deferHeight;this.panel.deferHeight=false;this.panel.setSize(undefined,this.collapsedEl.getHeight());this.panel.deferHeight=C}else{this.panel.setSize(this.collapsedEl.getWidth(),undefined)}this.panel.collapsed=A;this.restoreLT=[this.el.dom.style.left,this.el.dom.style.top];this.el.alignTo(this.collapsedEl,this.getCollapseAnchor());this.el.setStyle("z-index",this.floatingZIndex+2);this.panel.el.replaceClass("x-panel-collapsed","x-panel-floating");
if(this.animFloat!==false){this.beforeSlide();this.el.slideIn(this.getSlideAnchor(),{callback:function(){this.afterSlide();this.initAutoHide();Ext.getDoc().on("click",this.slideInIf,this)},scope:this,block:true})}else{this.initAutoHide();Ext.getDoc().on("click",this.slideInIf,this)}},afterSlideIn:function(){this.clearAutoHide();this.isSlid=false;this.clearMonitor();this.el.setStyle("z-index","");this.panel.el.replaceClass("x-panel-floating","x-panel-collapsed");this.el.dom.style.left=this.restoreLT[0];this.el.dom.style.top=this.restoreLT[1];var A=this.panel.tools;if(A&&A.toggle){A.toggle.show()}},slideIn:function(A){if(!this.isSlid||this.el.hasActiveFx()){Ext.callback(A);return }this.isSlid=false;if(this.animFloat!==false){this.beforeSlide();this.el.slideOut(this.getSlideAnchor(),{callback:function(){this.el.hide();this.afterSlide();this.afterSlideIn();Ext.callback(A)},scope:this,block:true})}else{this.el.hide();this.afterSlideIn()}},slideInIf:function(A){if(!A.within(this.el)){this.slideIn()}},anchors:{"west":"left","east":"right","north":"top","south":"bottom"},sanchors:{"west":"l","east":"r","north":"t","south":"b"},canchors:{"west":"tl-tr","east":"tr-tl","north":"tl-bl","south":"bl-tl"},getAnchor:function(){return this.anchors[this.position]
},getCollapseAnchor:function(){return this.canchors[this.position]},getSlideAnchor:function(){return this.sanchors[this.position]},getAlignAdj:function(){var A=this.cmargins;switch(this.position){case"west":return[0,0];break;case"east":return[0,0];break;case"north":return[0,0];break;case"south":return[0,0];break}},getExpandAdj:function(){var B=this.collapsedEl,A=this.cmargins;switch(this.position){case"west":return[-(A.right+B.getWidth()+A.left),0];break;case"east":return[A.right+B.getWidth()+A.left,0];break;case"north":return[0,-(A.top+A.bottom+B.getHeight())];break;case"south":return[0,A.top+A.bottom+B.getHeight()];break}},destroy:function(){if(this.autoHideSlideTask&&this.autoHideSlideTask.cancel){this.autoHideSlideTask.cancel()}Ext.destroyMembers(this,"miniCollapsedEl","collapsedEl","expandToolEl")}};Ext.layout.BorderLayout.SplitRegion=function(B,A,C){Ext.layout.BorderLayout.SplitRegion.superclass.constructor.call(this,B,A,C);this.applyLayout=this.applyFns[C]};Ext.extend(Ext.layout.BorderLayout.SplitRegion,Ext.layout.BorderLayout.Region,{splitTip:"Drag to resize.",collapsibleSplitTip:"Drag to resize. Double click to hide.",useSplitTips:false,splitSettings:{north:{orientation:Ext.SplitBar.VERTICAL,placement:Ext.SplitBar.TOP,maxFn:"getVMaxSize",minProp:"minHeight",maxProp:"maxHeight"},south:{orientation:Ext.SplitBar.VERTICAL,placement:Ext.SplitBar.BOTTOM,maxFn:"getVMaxSize",minProp:"minHeight",maxProp:"maxHeight"},east:{orientation:Ext.SplitBar.HORIZONTAL,placement:Ext.SplitBar.RIGHT,maxFn:"getHMaxSize",minProp:"minWidth",maxProp:"maxWidth"},west:{orientation:Ext.SplitBar.HORIZONTAL,placement:Ext.SplitBar.LEFT,maxFn:"getHMaxSize",minProp:"minWidth",maxProp:"maxWidth"}},applyFns:{west:function(C){if(this.isCollapsed){return this.applyLayoutCollapsed(C)
}var D=this.splitEl.dom,B=D.style;this.panel.setPosition(C.x,C.y);var A=D.offsetWidth;B.left=(C.x+C.width-A)+"px";B.top=(C.y)+"px";B.height=Math.max(0,C.height)+"px";this.panel.setSize(C.width-A,C.height)},east:function(C){if(this.isCollapsed){return this.applyLayoutCollapsed(C)}var D=this.splitEl.dom,B=D.style;var A=D.offsetWidth;this.panel.setPosition(C.x+A,C.y);B.left=(C.x)+"px";B.top=(C.y)+"px";B.height=Math.max(0,C.height)+"px";this.panel.setSize(C.width-A,C.height)},north:function(C){if(this.isCollapsed){return this.applyLayoutCollapsed(C)}var D=this.splitEl.dom,B=D.style;var A=D.offsetHeight;this.panel.setPosition(C.x,C.y);B.left=(C.x)+"px";B.top=(C.y+C.height-A)+"px";B.width=Math.max(0,C.width)+"px";this.panel.setSize(C.width,C.height-A)},south:function(C){if(this.isCollapsed){return this.applyLayoutCollapsed(C)}var D=this.splitEl.dom,B=D.style;var A=D.offsetHeight;this.panel.setPosition(C.x,C.y+A);B.left=(C.x)+"px";B.top=(C.y)+"px";B.width=Math.max(0,C.width)+"px";this.panel.setSize(C.width,C.height-A)
}},render:function(A,C){Ext.layout.BorderLayout.SplitRegion.superclass.render.call(this,A,C);var D=this.position;this.splitEl=A.createChild({cls:"x-layout-split x-layout-split-"+D,html:"&#160;",id:this.panel.id+"-xsplit"});if(this.collapseMode=="mini"){this.miniSplitEl=this.splitEl.createChild({cls:"x-layout-mini x-layout-mini-"+D,html:"&#160;"});this.miniSplitEl.addClassOnOver("x-layout-mini-over");this.miniSplitEl.on("click",this.onCollapseClick,this,{stopEvent:true})}var B=this.splitSettings[D];this.split=new Ext.SplitBar(this.splitEl.dom,C.el,B.orientation);this.split.tickSize=this.tickSize;this.split.placement=B.placement;this.split.getMaximumSize=this[B.maxFn].createDelegate(this);this.split.minSize=this.minSize||this[B.minProp];this.split.on("beforeapply",this.onSplitMove,this);this.split.useShim=this.useShim===true;this.maxSize=this.maxSize||this[B.maxProp];if(C.hidden){this.splitEl.hide()}if(this.useSplitTips){this.splitEl.dom.title=this.collapsible?this.collapsibleSplitTip:this.splitTip}if(this.collapsible){this.splitEl.on("dblclick",this.onCollapseClick,this)
}},getSize:function(){if(this.isCollapsed){return this.collapsedEl.getSize()}var A=this.panel.getSize();if(this.position=="north"||this.position=="south"){A.height+=this.splitEl.dom.offsetHeight}else{A.width+=this.splitEl.dom.offsetWidth}return A},getHMaxSize:function(){var B=this.maxSize||10000;var A=this.layout.center;return Math.min(B,(this.el.getWidth()+A.el.getWidth())-A.getMinWidth())},getVMaxSize:function(){var B=this.maxSize||10000;var A=this.layout.center;return Math.min(B,(this.el.getHeight()+A.el.getHeight())-A.getMinHeight())},onSplitMove:function(B,A){var C=this.panel.getSize();this.lastSplitSize=A;if(this.position=="north"||this.position=="south"){this.panel.setSize(C.width,A);this.state.height=A}else{this.panel.setSize(A,C.height);this.state.width=A}this.layout.layout();this.panel.saveState();return false},getSplitBar:function(){return this.split},destroy:function(){Ext.destroy(this.miniSplitEl,this.split,this.splitEl);Ext.layout.BorderLayout.SplitRegion.superclass.destroy.call(this)}});Ext.Container.LAYOUTS["border"]=Ext.layout.BorderLayout;
Ext.layout.FormLayout=Ext.extend(Ext.layout.AnchorLayout,{labelSeparator:":",trackLabels:true,type:"form",onRemove:function(C){Ext.layout.FormLayout.superclass.onRemove.call(this,C);if(this.trackLabels){C.un("show",this.onFieldShow,this);C.un("hide",this.onFieldHide,this)}var B=C.getPositionEl(),A=C.getItemCt&&C.getItemCt();if(C.rendered&&A){if(B&&B.dom){B.insertAfter(A)}Ext.destroy(A);Ext.destroyMembers(C,"label","itemCt");if(C.customItemCt){Ext.destroyMembers(C,"getItemCt","customItemCt")}}},setContainer:function(A){Ext.layout.FormLayout.superclass.setContainer.call(this,A);if(A.labelAlign){A.addClass("x-form-label-"+A.labelAlign)}if(A.hideLabels){Ext.apply(this,{labelStyle:"display:none",elementStyle:"padding-left:0;",labelAdjust:0})}else{this.labelSeparator=Ext.isDefined(A.labelSeparator)?A.labelSeparator:this.labelSeparator;A.labelWidth=A.labelWidth||100;if(Ext.isNumber(A.labelWidth)){var B=Ext.isNumber(A.labelPad)?A.labelPad:5;Ext.apply(this,{labelAdjust:A.labelWidth+B,labelStyle:"width:"+A.labelWidth+"px;",elementStyle:"padding-left:"+(A.labelWidth+B)+"px"})
}if(A.labelAlign=="top"){Ext.apply(this,{labelStyle:"width:auto;",labelAdjust:0,elementStyle:"padding-left:0;"})}}},isHide:function(A){return A.hideLabel||this.container.hideLabels},onFieldShow:function(A){A.getItemCt().removeClass("x-hide-"+A.hideMode);if(A.isComposite){A.doLayout()}},onFieldHide:function(A){A.getItemCt().addClass("x-hide-"+A.hideMode)},getLabelStyle:function(E){var B="",C=[this.labelStyle,E];for(var D=0,A=C.length;D<A;++D){if(C[D]){B+=C[D];if(B.substr(-1,1)!=";"){B+=";"}}}return B},renderItem:function(D,A,C){if(D&&(D.isFormField||D.fieldLabel)&&D.inputType!="hidden"){var B=this.getTemplateArgs(D);if(Ext.isNumber(A)){A=C.dom.childNodes[A]||null}if(A){D.itemCt=this.fieldTpl.insertBefore(A,B,true)}else{D.itemCt=this.fieldTpl.append(C,B,true)}if(!D.getItemCt){Ext.apply(D,{getItemCt:function(){return D.itemCt},customItemCt:true})}D.label=D.getItemCt().child("label.x-form-item-label");if(!D.rendered){D.render("x-form-el-"+D.id)}else{if(!this.isValidParent(D,C)){Ext.fly("x-form-el-"+D.id).appendChild(D.getPositionEl())
}}if(this.trackLabels){if(D.hidden){this.onFieldHide(D)}D.on({scope:this,show:this.onFieldShow,hide:this.onFieldHide})}this.configureItem(D)}else{Ext.layout.FormLayout.superclass.renderItem.apply(this,arguments)}},getTemplateArgs:function(C){var A=!C.fieldLabel||C.hideLabel,B=(C.itemCls||this.container.itemCls||"")+(C.hideLabel?" x-hide-label":"");if(Ext.isIE9&&Ext.isIEQuirks&&C instanceof Ext.form.TextField){B+=" x-input-wrapper"}return{id:C.id,label:C.fieldLabel,itemCls:B,clearCls:C.clearCls||"x-form-clear-left",labelStyle:this.getLabelStyle(C.labelStyle),elementStyle:this.elementStyle||"",labelSeparator:A?"":(Ext.isDefined(C.labelSeparator)?C.labelSeparator:this.labelSeparator)}},adjustWidthAnchor:function(A,C){if(C.label&&!this.isHide(C)&&(this.container.labelAlign!="top")){var B=Ext.isIE6||(Ext.isIE&&!Ext.isStrict);return A-this.labelAdjust+(B?-3:0)}return A},adjustHeightAnchor:function(A,B){if(B.label&&!this.isHide(B)&&(this.container.labelAlign=="top")){return A-B.label.getHeight()}return A},isValidParent:function(B,A){return A&&this.container.getEl().contains(B.getPositionEl())
}});Ext.Container.LAYOUTS["form"]=Ext.layout.FormLayout;Ext.layout.AccordionLayout=Ext.extend(Ext.layout.FitLayout,{fill:true,autoWidth:true,titleCollapse:true,hideCollapseTool:false,collapseFirst:false,animate:false,sequence:false,activeOnTop:false,type:"accordion",renderItem:function(A){if(this.animate===false){A.animCollapse=false}A.collapsible=true;if(this.autoWidth){A.autoWidth=true}if(this.titleCollapse){A.titleCollapse=true}if(this.hideCollapseTool){A.hideCollapseTool=true}if(this.collapseFirst!==undefined){A.collapseFirst=this.collapseFirst}if(!this.activeItem&&!A.collapsed){this.setActiveItem(A,true)}else{if(this.activeItem&&this.activeItem!=A){A.collapsed=true}}Ext.layout.AccordionLayout.superclass.renderItem.apply(this,arguments);A.header.addClass("x-accordion-hd");A.on("beforeexpand",this.beforeExpand,this)},onRemove:function(A){Ext.layout.AccordionLayout.superclass.onRemove.call(this,A);if(A.rendered){A.header.removeClass("x-accordion-hd")}A.un("beforeexpand",this.beforeExpand,this)},beforeExpand:function(C,B){var A=this.activeItem;
if(A){if(this.sequence){delete this.activeItem;if(!A.collapsed){A.collapse({callback:function(){C.expand(B||true)},scope:this});return false}}else{A.collapse(this.animate)}}this.setActive(C);if(this.activeOnTop){C.el.dom.parentNode.insertBefore(C.el.dom,C.el.dom.parentNode.firstChild)}this.layout()},setItemSize:function(F,E){if(this.fill&&F){var D=0,C,B=this.getRenderedItems(this.container),A=B.length,G;for(C=0;C<A;C++){if((G=B[C])!=F&&!G.hidden){D+=G.header.getHeight()}}E.height-=D;F.setSize(E)}},setActiveItem:function(A){this.setActive(A,true)},setActive:function(C,B){var A=this.activeItem;C=this.container.getComponent(C);if(A!=C){if(C.rendered&&C.collapsed&&B){C.expand()}else{if(A){A.fireEvent("deactivate",A)}this.activeItem=C;C.fireEvent("activate",C)}}}});Ext.Container.LAYOUTS.accordion=Ext.layout.AccordionLayout;Ext.layout.Accordion=Ext.layout.AccordionLayout;Ext.layout.TableLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:false,type:"table",targetCls:"x-table-layout-ct",tableAttrs:null,setContainer:function(A){Ext.layout.TableLayout.superclass.setContainer.call(this,A);
this.currentRow=0;this.currentColumn=0;this.cells=[]},onLayout:function(C,E){var D=C.items.items,A=D.length,F,B;if(!this.table){E.addClass("x-table-layout-ct");this.table=E.createChild(Ext.apply({tag:"table",cls:"x-table-layout",cellspacing:0,cn:{tag:"tbody"}},this.tableAttrs),null,true)}this.renderAll(C,E)},getRow:function(A){var B=this.table.tBodies[0].childNodes[A];if(!B){B=document.createElement("tr");this.table.tBodies[0].appendChild(B)}return B},getNextCell:function(H){var A=this.getNextNonSpan(this.currentColumn,this.currentRow);var E=this.currentColumn=A[0],D=this.currentRow=A[1];for(var G=D;G<D+(H.rowspan||1);G++){if(!this.cells[G]){this.cells[G]=[]}for(var C=E;C<E+(H.colspan||1);C++){this.cells[G][C]=true}}var F=document.createElement("td");if(H.cellId){F.id=H.cellId}var B="x-table-layout-cell";if(H.cellCls){B+=" "+H.cellCls}F.className=B;if(H.colspan){F.colSpan=H.colspan}if(H.rowspan){F.rowSpan=H.rowspan}this.getRow(D).appendChild(F);return F},getNextNonSpan:function(A,C){var B=this.columns;while((B&&A>=B)||(this.cells[C]&&this.cells[C][A])){if(B&&A>=B){C++;
A=0}else{A++}}return[A,C]},renderItem:function(D,A,C){if(!this.table){this.table=C.createChild(Ext.apply({tag:"table",cls:"x-table-layout",cellspacing:0,cn:{tag:"tbody"}},this.tableAttrs),null,true)}if(D&&!D.rendered){D.render(this.getNextCell(D));this.configureItem(D)}else{if(D&&!this.isValidParent(D,C)){var B=this.getNextCell(D);B.insertBefore(D.getPositionEl().dom,null);D.container=Ext.get(B);this.configureItem(D)}}},isValidParent:function(B,A){return B.getPositionEl().up("table",5).dom.parentNode===(A.dom||A)},destroy:function(){delete this.table;Ext.layout.TableLayout.superclass.destroy.call(this)}});Ext.Container.LAYOUTS["table"]=Ext.layout.TableLayout;Ext.layout.AbsoluteLayout=Ext.extend(Ext.layout.AnchorLayout,{extraCls:"x-abs-layout-item",type:"absolute",onLayout:function(A,B){B.position();this.paddingLeft=B.getPadding("l");this.paddingTop=B.getPadding("t");Ext.layout.AbsoluteLayout.superclass.onLayout.call(this,A,B)},adjustWidthAnchor:function(B,A){return B?B-A.getPosition(true)[0]+this.paddingLeft:B
},adjustHeightAnchor:function(B,A){return B?B-A.getPosition(true)[1]+this.paddingTop:B}});Ext.Container.LAYOUTS["absolute"]=Ext.layout.AbsoluteLayout;Ext.layout.BoxLayout=Ext.extend(Ext.layout.ContainerLayout,{defaultMargins:{left:0,top:0,right:0,bottom:0},padding:"0",pack:"start",monitorResize:true,type:"box",scrollOffset:0,extraCls:"x-box-item",targetCls:"x-box-layout-ct",innerCls:"x-box-inner",constructor:function(A){Ext.layout.BoxLayout.superclass.constructor.call(this,A);if(Ext.isString(this.defaultMargins)){this.defaultMargins=this.parseMargins(this.defaultMargins)}var D=this.overflowHandler;if(typeof D=="string"){D={type:D}}var C="none";if(D&&D.type!=undefined){C=D.type}var B=Ext.layout.boxOverflow[C];if(B[this.type]){B=B[this.type]}this.overflowHandler=new B(this,D)},onLayout:function(B,G){Ext.layout.BoxLayout.superclass.onLayout.call(this,B,G);var D=this.getLayoutTargetSize(),H=this.getVisibleItems(B),C=this.calculateChildBoxes(H,D),F=C.boxes,I=C.meta;if(D.width>0){var J=this.overflowHandler,A=I.tooNarrow?"handleOverflow":"clearOverflow";
var E=J[A](C,D);if(E){if(E.targetSize){D=E.targetSize}if(E.recalculate){H=this.getVisibleItems(B);C=this.calculateChildBoxes(H,D);F=C.boxes}}}this.layoutTargetLastSize=D;this.childBoxCache=C;this.updateInnerCtSize(D,C);this.updateChildBoxes(F);this.handleTargetOverflow(D,B,G)},updateChildBoxes:function(C){for(var B=0,E=C.length;B<E;B++){var D=C[B],A=D.component;if(D.dirtySize){A.setSize(D.width,D.height)}if(isNaN(D.left)||isNaN(D.top)){continue}A.setPosition(D.left,D.top)}},updateInnerCtSize:function(C,G){var H=this.align,F=this.padding,E=C.width,A=C.height;if(this.type=="hbox"){var B=E,D=G.meta.maxHeight+F.top+F.bottom;if(H=="stretch"){D=A}else{if(H=="middle"){D=Math.max(A,D)}}}else{var D=A,B=G.meta.maxWidth+F.left+F.right;if(H=="stretch"){B=E}else{if(H=="center"){B=Math.max(E,B)}}}this.innerCt.setSize(B||undefined,D||undefined)},handleTargetOverflow:function(D,A,C){var E=C.getStyle("overflow");if(E&&E!="hidden"&&!this.adjustmentPass){var B=this.getLayoutTargetSize();if(B.width!=D.width||B.height!=D.height){this.adjustmentPass=true;
this.onLayout(A,C)}}delete this.adjustmentPass},isValidParent:function(B,A){return this.innerCt&&B.getPositionEl().dom.parentNode==this.innerCt.dom},getVisibleItems:function(E){var E=E||this.container,D=E.getLayoutTarget(),F=E.items.items,A=F.length,C,G,B=[];for(C=0;C<A;C++){if((G=F[C]).rendered&&this.isValidParent(G,D)&&G.hidden!==true&&G.collapsed!==true&&G.shouldLayout!==false){B.push(G)}}return B},renderAll:function(A,B){if(!this.innerCt){this.innerCt=B.createChild({cls:this.innerCls});this.padding=this.parseMargins(this.padding)}Ext.layout.BoxLayout.superclass.renderAll.call(this,A,this.innerCt)},getLayoutTargetSize:function(){var B=this.container.getLayoutTarget(),A;if(B){A=B.getViewSize();if(Ext.isIE&&Ext.isStrict&&A.width==0){A=B.getStyleSize()}A.width-=B.getPadding("lr");A.height-=B.getPadding("tb")}return A},renderItem:function(A){if(Ext.isString(A.margins)){A.margins=this.parseMargins(A.margins)}else{if(!A.margins){A.margins=this.defaultMargins}}Ext.layout.BoxLayout.superclass.renderItem.apply(this,arguments)
},destroy:function(){Ext.destroy(this.overflowHandler);Ext.layout.BoxLayout.superclass.destroy.apply(this,arguments)}});Ext.layout.boxOverflow.None=Ext.extend(Object,{constructor:function(B,A){this.layout=B;Ext.apply(this,A||{})},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn});Ext.layout.boxOverflow.none=Ext.layout.boxOverflow.None;Ext.layout.boxOverflow.Menu=Ext.extend(Ext.layout.boxOverflow.None,{afterCls:"x-strip-right",noItemsMenuText:'<div class="x-toolbar-no-items">(None)</div>',constructor:function(A){Ext.layout.boxOverflow.Menu.superclass.constructor.apply(this,arguments);this.menuItems=[]},createInnerElements:function(){if(!this.afterCt){this.afterCt=this.layout.innerCt.insertSibling({cls:this.afterCls},"before")}},clearOverflow:function(A,F){var E=F.width+(this.afterCt?this.afterCt.getWidth():0),B=this.menuItems;this.hideTrigger();for(var C=0,D=B.length;C<D;C++){B.pop().component.show()}return{targetSize:{height:F.height,width:E}}},showTrigger:function(){this.createMenu();this.menuTrigger.show()
},hideTrigger:function(){if(this.menuTrigger!=undefined){this.menuTrigger.hide()}},beforeMenuShow:function(G){var B=this.menuItems,A=B.length,F,E;var C=function(I,H){return I.isXType("buttongroup")&&!(H instanceof Ext.Toolbar.Separator)};this.clearMenu();G.removeAll();for(var D=0;D<A;D++){F=B[D].component;if(E&&(C(F,E)||C(E,F))){G.add("-")}this.addComponentToMenu(G,F);E=F}if(G.items.length<1){G.add(this.noItemsMenuText)}},createMenuConfig:function(C,A){var B=Ext.apply({},C.initialConfig),D=C.toggleGroup;Ext.copyTo(B,C,["iconCls","icon","itemId","disabled","handler","scope","menu"]);Ext.apply(B,{text:C.overflowText||C.text,hideOnClick:A});if(D||C.enableToggle){Ext.apply(B,{group:D,checked:C.pressed,listeners:{checkchange:function(F,E){C.toggle(E)}}})}delete B.ownerCt;delete B.xtype;delete B.id;return B},addComponentToMenu:function(B,A){if(A instanceof Ext.Toolbar.Separator){B.add("-")}else{if(Ext.isFunction(A.isXType)){if(A.isXType("splitbutton")){B.add(this.createMenuConfig(A,true))}else{if(A.isXType("button")){B.add(this.createMenuConfig(A,!A.menu))
}else{if(A.isXType("buttongroup")){A.items.each(function(C){this.addComponentToMenu(B,C)},this)}}}}}},clearMenu:function(){var A=this.moreMenu;if(A&&A.items){A.items.each(function(B){delete B.menu})}},createMenu:function(){if(!this.menuTrigger){this.createInnerElements();this.menu=new Ext.menu.Menu({ownerCt:this.layout.container,listeners:{scope:this,beforeshow:this.beforeMenuShow}});this.menuTrigger=new Ext.Button({iconCls:"x-toolbar-more-icon",cls:"x-toolbar-more",menu:this.menu,renderTo:this.afterCt})}},destroy:function(){Ext.destroy(this.menu,this.menuTrigger)}});Ext.layout.boxOverflow.menu=Ext.layout.boxOverflow.Menu;Ext.layout.boxOverflow.HorizontalMenu=Ext.extend(Ext.layout.boxOverflow.Menu,{constructor:function(){Ext.layout.boxOverflow.HorizontalMenu.superclass.constructor.apply(this,arguments);var C=this,B=C.layout,A=B.calculateChildBoxes;B.calculateChildBoxes=function(D,H){var K=A.apply(B,arguments),J=K.meta,E=C.menuItems;var I=0;for(var F=0,G=E.length;F<G;F++){I+=E[F].width}J.minimumWidth+=I;J.tooNarrow=J.minimumWidth>H.width;
return K}},handleOverflow:function(D,G){this.showTrigger();var I=G.width-this.afterCt.getWidth(),J=D.boxes,E=0,P=false;for(var M=0,C=J.length;M<C;M++){E+=J[M].width}var A=I-E,F=0;for(var M=0,C=this.menuItems.length;M<C;M++){var L=this.menuItems[M],K=L.component,B=L.width;if(B<A){K.show();A-=B;F++;P=true}else{break}}if(P){this.menuItems=this.menuItems.slice(F)}else{for(var H=J.length-1;H>=0;H--){var O=J[H].component,N=J[H].left+J[H].width;if(N>=I){this.menuItems.unshift({component:O,width:J[H].width});O.hide()}else{break}}}if(this.menuItems.length==0){this.hideTrigger()}return{targetSize:{height:G.height,width:I},recalculate:P}}});Ext.layout.boxOverflow.menu.hbox=Ext.layout.boxOverflow.HorizontalMenu;Ext.layout.boxOverflow.Scroller=Ext.extend(Ext.layout.boxOverflow.None,{animateScroll:true,scrollIncrement:100,wheelIncrement:3,scrollRepeatInterval:400,scrollDuration:0.4,beforeCls:"x-strip-left",afterCls:"x-strip-right",scrollerCls:"x-strip-scroller",beforeScrollerCls:"x-strip-scroller-left",afterScrollerCls:"x-strip-scroller-right",createWheelListener:function(){this.layout.innerCt.on({scope:this,mousewheel:function(A){A.stopEvent();
this.scrollBy(A.getWheelDelta()*this.wheelIncrement*-1,false)}})},handleOverflow:function(A,B){this.createInnerElements();this.showScrollers()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){this.createScrollers();this.beforeScroller.show();this.afterScroller.show();this.updateScrollButtons()},hideScrollers:function(){if(this.beforeScroller!=undefined){this.beforeScroller.hide();this.afterScroller.hide()}},createScrollers:function(){if(!this.beforeScroller&&!this.afterScroller){var A=this.beforeCt.createChild({cls:String.format("{0} {1} ",this.scrollerCls,this.beforeScrollerCls)});var B=this.afterCt.createChild({cls:String.format("{0} {1}",this.scrollerCls,this.afterScrollerCls)});A.addClassOnOver(this.beforeScrollerCls+"-hover");B.addClassOnOver(this.afterScrollerCls+"-hover");A.setVisibilityMode(Ext.Element.DISPLAY);B.setVisibilityMode(Ext.Element.DISPLAY);this.beforeRepeater=new Ext.util.ClickRepeater(A,{interval:this.scrollRepeatInterval,handler:this.scrollLeft,scope:this});this.afterRepeater=new Ext.util.ClickRepeater(B,{interval:this.scrollRepeatInterval,handler:this.scrollRight,scope:this});
this.beforeScroller=A;this.afterScroller=B}},destroy:function(){Ext.destroy(this.beforeScroller,this.afterScroller,this.beforeRepeater,this.afterRepeater,this.beforeCt,this.afterCt)},scrollBy:function(B,A){this.scrollTo(this.getScrollPosition()+B,A)},getItem:function(A){if(Ext.isString(A)){A=Ext.getCmp(A)}else{if(Ext.isNumber(A)){A=this.items[A]}}return A},getScrollAnim:function(){return{duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){if(this.beforeScroller==undefined||this.afterScroller==undefined){return }var D=this.atExtremeBefore()?"addClass":"removeClass",C=this.atExtremeAfter()?"addClass":"removeClass",A=this.beforeScrollerCls+"-disabled",B=this.afterScrollerCls+"-disabled";this.beforeScroller[D](A);this.afterScroller[C](B);this.scrolling=false},atExtremeBefore:function(){return this.getScrollPosition()===0},scrollLeft:function(A){this.scrollBy(-this.scrollIncrement,A)},scrollRight:function(A){this.scrollBy(this.scrollIncrement,A)},scrollToItem:function(D,B){D=this.getItem(D);
if(D!=undefined){var A=this.getItemVisibility(D);if(!A.fullyVisible){var C=D.getBox(true,true),E=C.x;if(A.hiddenRight){E-=(this.layout.innerCt.getWidth()-C.width)}this.scrollTo(E,B)}}},getItemVisibility:function(E){var D=this.getItem(E).getBox(true,true),A=D.x,C=D.x+D.width,F=this.getScrollPosition(),B=this.layout.innerCt.getWidth()+F;return{hiddenLeft:A<F,hiddenRight:C>B,fullyVisible:A>F&&C<B}}});Ext.layout.boxOverflow.scroller=Ext.layout.boxOverflow.Scroller;Ext.layout.boxOverflow.VerticalScroller=Ext.extend(Ext.layout.boxOverflow.Scroller,{scrollIncrement:75,wheelIncrement:2,handleOverflow:function(A,B){Ext.layout.boxOverflow.VerticalScroller.superclass.handleOverflow.apply(this,arguments);return{targetSize:{height:B.height-(this.beforeCt.getHeight()+this.afterCt.getHeight()),width:B.width}}},createInnerElements:function(){var A=this.layout.innerCt;if(!this.beforeCt){this.beforeCt=A.insertSibling({cls:this.beforeCls},"before");this.afterCt=A.insertSibling({cls:this.afterCls},"after");this.createWheelListener()
}},scrollTo:function(A,B){var D=this.getScrollPosition(),C=A.constrain(0,this.getMaxScrollBottom());if(C!=D&&!this.scrolling){if(B==undefined){B=this.animateScroll}this.layout.innerCt.scrollTo("top",C,B?this.getScrollAnim():false);if(B){this.scrolling=true}else{this.scrolling=false;this.updateScrollButtons()}}},getScrollPosition:function(){return parseInt(this.layout.innerCt.dom.scrollTop,10)||0},getMaxScrollBottom:function(){return this.layout.innerCt.dom.scrollHeight-this.layout.innerCt.getHeight()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollBottom()}});Ext.layout.boxOverflow.scroller.vbox=Ext.layout.boxOverflow.VerticalScroller;Ext.layout.boxOverflow.HorizontalScroller=Ext.extend(Ext.layout.boxOverflow.Scroller,{handleOverflow:function(A,B){Ext.layout.boxOverflow.HorizontalScroller.superclass.handleOverflow.apply(this,arguments);return{targetSize:{height:B.height,width:B.width-(this.beforeCt.getWidth()+this.afterCt.getWidth())}}},createInnerElements:function(){var A=this.layout.innerCt;
if(!this.beforeCt){this.afterCt=A.insertSibling({cls:this.afterCls},"before");this.beforeCt=A.insertSibling({cls:this.beforeCls},"before");this.createWheelListener()}},scrollTo:function(A,B){var D=this.getScrollPosition(),C=A.constrain(0,this.getMaxScrollRight());if(C!=D&&!this.scrolling){if(B==undefined){B=this.animateScroll}this.layout.innerCt.scrollTo("left",C,B?this.getScrollAnim():false);if(B){this.scrolling=true}else{this.scrolling=false;this.updateScrollButtons()}}},getScrollPosition:function(){return parseInt(this.layout.innerCt.dom.scrollLeft,10)||0},getMaxScrollRight:function(){return this.layout.innerCt.dom.scrollWidth-this.layout.innerCt.getWidth()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollRight()}});Ext.layout.boxOverflow.scroller.hbox=Ext.layout.boxOverflow.HorizontalScroller;Ext.layout.HBoxLayout=Ext.extend(Ext.layout.BoxLayout,{align:"top",type:"hbox",calculateChildBoxes:function(P,B){var d=P.length,r=this.padding,b=r.top,u=r.left,W=b+r.bottom,o=u+r.right,A=B.width-this.scrollOffset,E=B.height,M=Math.max(0,E-W),p=this.pack=="start",w=this.pack=="center",Y=this.pack=="end",l=0,q=0,t=0,J=0,x=0,g=[],I,j,m,v,U,H,s,h,C,V,O,n;
for(s=0;s<d;s++){I=P[s];m=I.height;j=I.width;H=!I.hasLayout&&typeof I.doLayout=="function";if(typeof j!="number"){if(I.flex&&!j){t+=I.flex}else{if(!j&&H){I.doLayout()}v=I.getSize();j=v.width;m=v.height}}U=I.margins;V=U.left+U.right;l+=V+(j||0);J+=V+(I.flex?I.minWidth||0:j);x+=V+(I.minWidth||j||0);if(typeof m!="number"){if(H){I.doLayout()}m=I.getHeight()}q=Math.max(q,m+U.top+U.bottom);g.push({component:I,height:m||undefined,width:j||undefined})}var k=J-A,N=x>A;var L=Math.max(0,A-l-o);if(N){for(s=0;s<d;s++){g[s].width=P[s].minWidth||P[s].width||g[s].width}}else{if(k>0){var a=[];for(var c=0,T=d;c<T;c++){var Z=P[c],R=Z.minWidth||0;if(Z.flex){g[c].width=R}else{a.push({minWidth:R,available:g[c].width-R,index:c})}}a.sort(function(y,i){return y.available>i.available?1:-1});for(var s=0,T=a.length;s<T;s++){var e=a[s].index;if(e==undefined){continue}var Z=P[e],K=g[e],S=K.width,R=Z.minWidth,D=Math.max(R,S-Math.ceil(k/(T-s))),F=S-D;g[e].width=D;k-=F}}else{var G=L,Q=t;for(s=0;s<d;s++){I=P[s];h=g[s];U=I.margins;O=U.top+U.bottom;
if(p&&I.flex&&!I.width){C=Math.ceil((I.flex/Q)*G);G-=C;Q-=I.flex;h.width=C;h.dirtySize=true}}}}if(w){u+=L/2}else{if(Y){u+=L}}for(s=0;s<d;s++){I=P[s];h=g[s];U=I.margins;u+=U.left;O=U.top+U.bottom;h.left=u;h.top=b+U.top;switch(this.align){case"stretch":n=M-O;h.height=n.constrain(I.minHeight||0,I.maxHeight||1000000);h.dirtySize=true;break;case"stretchmax":n=q-O;h.height=n.constrain(I.minHeight||0,I.maxHeight||1000000);h.dirtySize=true;break;case"middle":var X=M-h.height-O;if(X>0){h.top=b+O+(X/2)}}u+=h.width+U.right}return{boxes:g,meta:{maxHeight:q,nonFlexWidth:l,desiredWidth:J,minimumWidth:x,shortfall:J-A,tooNarrow:N}}}});Ext.Container.LAYOUTS.hbox=Ext.layout.HBoxLayout;Ext.layout.VBoxLayout=Ext.extend(Ext.layout.BoxLayout,{align:"left",type:"vbox",calculateChildBoxes:function(M,B){var c=M.length,r=this.padding,a=r.top,v=r.left,V=a+r.bottom,o=v+r.right,A=B.width-this.scrollOffset,C=B.height,k=Math.max(0,A-o),p=this.pack=="start",x=this.pack=="center",X=this.pack=="end",I=0,S=0,u=0,l=0,K=0,e=[],G,h,n,w,R,F,t,g,s,U,L,D,P;
for(t=0;t<c;t++){G=M[t];n=G.height;h=G.width;F=!G.hasLayout&&typeof G.doLayout=="function";if(typeof n!="number"){if(G.flex&&!n){u+=G.flex}else{if(!n&&F){G.doLayout()}w=G.getSize();h=w.width;n=w.height}}R=G.margins;L=R.top+R.bottom;I+=L+(n||0);l+=L+(G.flex?G.minHeight||0:n);K+=L+(G.minHeight||n||0);if(typeof h!="number"){if(F){G.doLayout()}h=G.getWidth()}S=Math.max(S,h+R.left+R.right);e.push({component:G,height:n||undefined,width:h||undefined})}var m=l-C,J=K>C;var O=Math.max(0,(C-I-V));if(J){for(t=0,P=c;t<P;t++){e[t].height=M[t].minHeight||M[t].height||e[t].height}}else{if(m>0){var j=[];for(var b=0,P=c;b<P;b++){var Y=M[b],Q=Y.minHeight||0;if(Y.flex){e[b].height=Q}else{j.push({minHeight:Q,available:e[b].height-Q,index:b})}}j.sort(function(y,i){return y.available>i.available?1:-1});for(var t=0,P=j.length;t<P;t++){var d=j[t].index;if(d==undefined){continue}var Y=M[d],H=e[d],T=H.height,Q=Y.minHeight,Z=Math.max(Q,T-Math.ceil(m/(P-t))),E=T-Z;e[d].height=Z;m-=E}}else{var q=O,N=u;for(t=0;t<c;t++){G=M[t];g=e[t];R=G.margins;
U=R.left+R.right;if(p&&G.flex&&!G.height){s=Math.ceil((G.flex/N)*q);q-=s;N-=G.flex;g.height=s;g.dirtySize=true}}}}if(x){a+=O/2}else{if(X){a+=O}}for(t=0;t<c;t++){G=M[t];g=e[t];R=G.margins;a+=R.top;U=R.left+R.right;g.left=v+R.left;g.top=a;switch(this.align){case"stretch":D=k-U;g.width=D.constrain(G.minWidth||0,G.maxWidth||1000000);g.dirtySize=true;break;case"stretchmax":D=S-U;g.width=D.constrain(G.minWidth||0,G.maxWidth||1000000);g.dirtySize=true;break;case"center":var W=k-g.width-U;if(W>0){g.left=v+U+(W/2)}}a+=g.height+R.bottom}return{boxes:e,meta:{maxWidth:S,nonFlexHeight:I,desiredHeight:l,minimumHeight:K,shortfall:l-C,tooNarrow:J}}}});Ext.Container.LAYOUTS.vbox=Ext.layout.VBoxLayout;Ext.layout.ToolbarLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"toolbar",triggerWidth:18,noItemsMenuText:'<div class="x-toolbar-no-items">(None)</div>',lastOverflow:false,tableHTML:['<table cellspacing="0" class="x-toolbar-ct">',"<tbody>","<tr>",'<td class="x-toolbar-left" align="{0}">','<table cellspacing="0">',"<tbody>",'<tr class="x-toolbar-left-row"></tr>',"</tbody>","</table>","</td>",'<td class="x-toolbar-right" align="right">','<table cellspacing="0" class="x-toolbar-right-ct">',"<tbody>","<tr>","<td>",'<table cellspacing="0">',"<tbody>",'<tr class="x-toolbar-right-row"></tr>',"</tbody>","</table>","</td>","<td>",'<table cellspacing="0">',"<tbody>",'<tr class="x-toolbar-extras-row"></tr>',"</tbody>","</table>","</td>","</tr>","</tbody>","</table>","</td>","</tr>","</tbody>","</table>"].join(""),onLayout:function(D,G){if(!this.leftTr){var F=D.buttonAlign=="center"?"center":"left";
G.addClass("x-toolbar-layout-ct");G.insertHtml("beforeEnd",String.format(this.tableHTML,F));this.leftTr=G.child("tr.x-toolbar-left-row",true);this.rightTr=G.child("tr.x-toolbar-right-row",true);this.extrasTr=G.child("tr.x-toolbar-extras-row",true);if(this.hiddenItem==undefined){this.hiddenItems=[]}}var H=D.buttonAlign=="right"?this.rightTr:this.leftTr,I=D.items.items,C=0;for(var B=0,E=I.length,J;B<E;B++,C++){J=I[B];if(J.isFill){H=this.rightTr;C=-1}else{if(!J.rendered){J.render(this.insertCell(J,H,C));this.configureItem(J)}else{if(!J.xtbHidden&&!this.isValidParent(J,H.childNodes[C])){var A=this.insertCell(J,H,C);A.appendChild(J.getPositionEl().dom);J.container=Ext.get(A)}}}}this.cleanup(this.leftTr);this.cleanup(this.rightTr);this.cleanup(this.extrasTr);this.fitToSize(G)},cleanup:function(B){var D=B.childNodes,A,C;for(A=D.length-1;A>=0&&(C=D[A]);A--){if(!C.firstChild){B.removeChild(C)}}},insertCell:function(D,B,A){var C=document.createElement("td");C.className="x-toolbar-cell";B.insertBefore(C,B.childNodes[A]||null);
return C},hideItem:function(A){this.hiddenItems.push(A);A.xtbHidden=true;A.xtbWidth=A.getPositionEl().dom.parentNode.offsetWidth;A.hide()},unhideItem:function(A){A.show();A.xtbHidden=false;this.hiddenItems.remove(A)},getItemWidth:function(A){return A.hidden?(A.xtbWidth||0):A.getPositionEl().dom.parentNode.offsetWidth},fitToSize:function(I){if(this.container.enableOverflow===false){return }var B=I.dom.clientWidth,H=I.dom.firstChild.offsetWidth,K=B-this.triggerWidth,A=this.lastWidth||0,C=this.hiddenItems,E=C.length!=0,L=B>=A;this.lastWidth=B;if(H>B||(E&&L)){var J=this.container.items.items,G=J.length,D=0,M;for(var F=0;F<G;F++){M=J[F];if(!M.isFill){D+=this.getItemWidth(M);if(D>K){if(!(M.hidden||M.xtbHidden)){this.hideItem(M)}}else{if(M.xtbHidden){this.unhideItem(M)}}}}}E=C.length!=0;if(E){this.initMore();if(!this.lastOverflow){this.container.fireEvent("overflowchange",this.container,true);this.lastOverflow=true}}else{if(this.more){this.clearMenu();this.more.destroy();delete this.more;if(this.lastOverflow){this.container.fireEvent("overflowchange",this.container,false);
this.lastOverflow=false}}}},createMenuConfig:function(C,A){var B=Ext.apply({},C.initialConfig),D=C.toggleGroup;Ext.copyTo(B,C,["iconCls","icon","itemId","disabled","handler","scope","menu"]);Ext.apply(B,{text:C.overflowText||C.text,hideOnClick:A});if(D||C.enableToggle){Ext.apply(B,{group:D,checked:C.pressed,listeners:{checkchange:function(F,E){C.toggle(E)}}})}delete B.ownerCt;delete B.xtype;delete B.id;return B},addComponentToMenu:function(B,A){if(A instanceof Ext.Toolbar.Separator){B.add("-")}else{if(Ext.isFunction(A.isXType)){if(A.isXType("splitbutton")){B.add(this.createMenuConfig(A,true))}else{if(A.isXType("button")){B.add(this.createMenuConfig(A,!A.menu))}else{if(A.isXType("buttongroup")){A.items.each(function(C){this.addComponentToMenu(B,C)},this)}}}}}},clearMenu:function(){var A=this.moreMenu;if(A&&A.items){A.items.each(function(B){delete B.menu})}},beforeMoreShow:function(G){var B=this.container.items.items,A=B.length,F,E;var C=function(I,H){return I.isXType("buttongroup")&&!(H instanceof Ext.Toolbar.Separator)
};this.clearMenu();G.removeAll();for(var D=0;D<A;D++){F=B[D];if(F.xtbHidden){if(E&&(C(F,E)||C(E,F))){G.add("-")}this.addComponentToMenu(G,F);E=F}}if(G.items.length<1){G.add(this.noItemsMenuText)}},initMore:function(){if(!this.more){this.moreMenu=new Ext.menu.Menu({ownerCt:this.container,listeners:{beforeshow:this.beforeMoreShow,scope:this}});this.more=new Ext.Button({iconCls:"x-toolbar-more-icon",cls:"x-toolbar-more",menu:this.moreMenu,ownerCt:this.container});var A=this.insertCell(this.more,this.extrasTr,100);this.more.render(A)}},destroy:function(){Ext.destroy(this.more,this.moreMenu);delete this.leftTr;delete this.rightTr;delete this.extrasTr;Ext.layout.ToolbarLayout.superclass.destroy.call(this)}});Ext.Container.LAYOUTS.toolbar=Ext.layout.ToolbarLayout;Ext.layout.MenuLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,type:"menu",setContainer:function(A){this.monitorResize=!A.floating;A.on("autosize",this.doAutoSize,this);Ext.layout.MenuLayout.superclass.setContainer.call(this,A)},renderItem:function(D,A,C){if(!this.itemTpl){this.itemTpl=Ext.layout.MenuLayout.prototype.itemTpl=new Ext.XTemplate('<li id="{itemId}" class="{itemCls}">','<tpl if="needsIcon">','<img alt="{altText}" src="{icon}" class="{iconCls}"/>',"</tpl>","</li>")
}if(D&&!D.rendered){if(Ext.isNumber(A)){A=C.dom.childNodes[A]}var B=this.getItemArgs(D);D.render(D.positionEl=A?this.itemTpl.insertBefore(A,B,true):this.itemTpl.append(C,B,true));D.positionEl.menuItemId=D.getItemId();if(!B.isMenuItem&&B.needsIcon){D.positionEl.addClass("x-menu-list-item-indent")}this.configureItem(D)}else{if(D&&!this.isValidParent(D,C)){if(Ext.isNumber(A)){A=C.dom.childNodes[A]}C.dom.insertBefore(D.getActionEl().dom,A||null)}}},getItemArgs:function(C){var A=C instanceof Ext.menu.Item,B=!(A||C instanceof Ext.menu.Separator);return{isMenuItem:A,needsIcon:B&&(C.icon||C.iconCls),icon:C.icon||Ext.BLANK_IMAGE_URL,iconCls:"x-menu-item-icon "+(C.iconCls||""),itemId:"x-menu-el-"+C.id,itemCls:"x-menu-list-item ",altText:C.altText||""}},isValidParent:function(B,A){return B.el.up("li.x-menu-list-item",5).dom.parentNode===(A.dom||A)},onLayout:function(A,B){Ext.layout.MenuLayout.superclass.onLayout.call(this,A,B);this.doAutoSize()},doAutoSize:function(){var C=this.container,A=C.width;if(C.floating){if(A){C.setWidth(A)
}else{if(Ext.isIE){C.setWidth(Ext.isStrict&&(Ext.isIE7||Ext.isIE8||Ext.isIE9)?"auto":C.minWidth);var D=C.getEl(),B=D.dom.offsetWidth;C.setWidth(C.getLayoutTarget().getWidth()+D.getFrameWidth("lr"))}}}}});Ext.Container.LAYOUTS["menu"]=Ext.layout.MenuLayout;Ext.Viewport=Ext.extend(Ext.Container,{initComponent:function(){Ext.Viewport.superclass.initComponent.call(this);document.getElementsByTagName("html")[0].className+=" x-viewport";this.el=Ext.getBody();this.el.setHeight=Ext.emptyFn;this.el.setWidth=Ext.emptyFn;this.el.setSize=Ext.emptyFn;this.el.dom.scroll="no";this.allowDomMove=false;this.autoWidth=true;this.autoHeight=true;Ext.EventManager.onWindowResize(this.fireResize,this);this.renderTo=this.el},fireResize:function(A,B){this.fireEvent("resize",this,A,B,A,B)}});Ext.reg("viewport",Ext.Viewport);Ext.Panel=Ext.extend(Ext.Container,{baseCls:"x-panel",collapsedCls:"x-panel-collapsed",maskDisabled:true,animCollapse:Ext.enableFx,headerAsText:true,buttonAlign:"right",collapsed:false,collapseFirst:true,minButtonWidth:75,elements:"body",preventBodyReset:false,padding:undefined,resizeEvent:"bodyresize",toolTarget:"header",collapseEl:"bwrap",slideAnchor:"t",disabledClass:"",deferHeight:true,expandDefaults:{duration:0.25},collapseDefaults:{duration:0.25},initComponent:function(){Ext.Panel.superclass.initComponent.call(this);
this.addEvents("bodyresize","titlechange","iconchange","collapse","expand","beforecollapse","beforeexpand","beforeclose","close","activate","deactivate");if(this.unstyled){this.baseCls="x-plain"}this.toolbars=[];if(this.tbar){this.elements+=",tbar";this.topToolbar=this.createToolbar(this.tbar);this.tbar=null}if(this.bbar){this.elements+=",bbar";this.bottomToolbar=this.createToolbar(this.bbar);this.bbar=null}if(this.header===true){this.elements+=",header";this.header=null}else{if(this.headerCfg||(this.title&&this.header!==false)){this.elements+=",header"}}if(this.footerCfg||this.footer===true){this.elements+=",footer";this.footer=null}if(this.buttons){this.fbar=this.buttons;this.buttons=null}if(this.fbar){this.createFbar(this.fbar)}if(this.autoLoad){this.on("render",this.doAutoLoad,this,{delay:10})}},createFbar:function(B){var A=this.minButtonWidth;this.elements+=",footer";this.fbar=this.createToolbar(B,{buttonAlign:this.buttonAlign,toolbarCls:"x-panel-fbar",enableOverflow:false,defaults:function(C){return{minWidth:C.minWidth||A}
}});this.fbar.items.each(function(C){C.minWidth=C.minWidth||this.minButtonWidth},this);this.buttons=this.fbar.items.items},createToolbar:function(B,C){var A;if(Ext.isArray(B)){B={items:B}}A=B.events?Ext.apply(B,C):this.createComponent(Ext.apply({},B,C),"toolbar");this.toolbars.push(A);return A},createElement:function(A,C){if(this[A]){C.appendChild(this[A].dom);return }if(A==="bwrap"||this.elements.indexOf(A)!=-1){if(this[A+"Cfg"]){this[A]=Ext.fly(C).createChild(this[A+"Cfg"])}else{var B=document.createElement("div");B.className=this[A+"Cls"];this[A]=Ext.get(C.appendChild(B))}if(this[A+"CssClass"]){this[A].addClass(this[A+"CssClass"])}if(this[A+"Style"]){this[A].applyStyles(this[A+"Style"])}}},onRender:function(E,D){Ext.Panel.superclass.onRender.call(this,E,D);this.createClasses();var A=this.el,F=A.dom,I,G;if(this.collapsible&&!this.hideCollapseTool){this.tools=this.tools?this.tools.slice(0):[];this.tools[this.collapseFirst?"unshift":"push"]({id:"toggle",handler:this.toggleCollapse,scope:this})}if(this.tools){G=this.tools;
this.elements+=(this.header!==false)?",header":""}this.tools={};A.addClass(this.baseCls);if(F.firstChild){this.header=A.down("."+this.headerCls);this.bwrap=A.down("."+this.bwrapCls);var H=this.bwrap?this.bwrap:A;this.tbar=H.down("."+this.tbarCls);this.body=H.down("."+this.bodyCls);this.bbar=H.down("."+this.bbarCls);this.footer=H.down("."+this.footerCls);this.fromMarkup=true}if(this.preventBodyReset===true){A.addClass("x-panel-reset")}if(this.cls){A.addClass(this.cls)}if(this.buttons){this.elements+=",footer"}if(this.frame){A.insertHtml("afterBegin",String.format(Ext.Element.boxMarkup,this.baseCls));this.createElement("header",F.firstChild.firstChild.firstChild);this.createElement("bwrap",F);I=this.bwrap.dom;var C=F.childNodes[1],B=F.childNodes[2];I.appendChild(C);I.appendChild(B);var J=I.firstChild.firstChild.firstChild;this.createElement("tbar",J);this.createElement("body",J);this.createElement("bbar",J);this.createElement("footer",I.lastChild.firstChild.firstChild);if(!this.footer){this.bwrap.dom.lastChild.className+=" x-panel-nofooter"
}this.ft=Ext.get(this.bwrap.dom.lastChild);this.mc=Ext.get(J)}else{this.createElement("header",F);this.createElement("bwrap",F);I=this.bwrap.dom;this.createElement("tbar",I);this.createElement("body",I);this.createElement("bbar",I);this.createElement("footer",I);if(!this.header){this.body.addClass(this.bodyCls+"-noheader");if(this.tbar){this.tbar.addClass(this.tbarCls+"-noheader")}}}if(Ext.isDefined(this.padding)){this.body.setStyle("padding",this.body.addUnits(this.padding))}if(this.border===false){this.el.addClass(this.baseCls+"-noborder");this.body.addClass(this.bodyCls+"-noborder");if(this.header){this.header.addClass(this.headerCls+"-noborder")}if(this.footer){this.footer.addClass(this.footerCls+"-noborder")}if(this.tbar){this.tbar.addClass(this.tbarCls+"-noborder")}if(this.bbar){this.bbar.addClass(this.bbarCls+"-noborder")}}if(this.bodyBorder===false){this.body.addClass(this.bodyCls+"-noborder")}this.bwrap.enableDisplayMode("block");if(this.header){this.header.unselectable();if(this.headerAsText){this.header.dom.innerHTML='<span class="'+this.headerTextCls+'">'+this.header.dom.innerHTML+"</span>";
if(this.iconCls){this.setIconClass(this.iconCls)}}}if(this.floating){this.makeFloating(this.floating)}if(this.collapsible&&this.titleCollapse&&this.header){this.mon(this.header,"click",this.toggleCollapse,this);this.header.setStyle("cursor","pointer")}if(G){this.addTool.apply(this,G)}if(this.fbar){this.footer.addClass("x-panel-btns");this.fbar.ownerCt=this;this.fbar.render(this.footer);this.footer.createChild({cls:"x-clear"})}if(this.tbar&&this.topToolbar){this.topToolbar.ownerCt=this;this.topToolbar.render(this.tbar)}if(this.bbar&&this.bottomToolbar){this.bottomToolbar.ownerCt=this;this.bottomToolbar.render(this.bbar)}},setIconClass:function(B){var A=this.iconCls;this.iconCls=B;if(this.rendered&&this.header){if(this.frame){this.header.addClass("x-panel-icon");this.header.replaceClass(A,this.iconCls)}else{var E=this.header,C=E.child("img.x-panel-inline-icon");if(C){Ext.fly(C).replaceClass(A,this.iconCls)}else{var D=E.child("span."+this.headerTextCls);if(D){Ext.DomHelper.insertBefore(D.dom,{tag:"img",alt:"",src:Ext.BLANK_IMAGE_URL,cls:"x-panel-inline-icon "+this.iconCls})
}}}}this.fireEvent("iconchange",this,B,A)},makeFloating:function(A){this.floating=true;this.el=new Ext.Layer(Ext.apply({},A,{shadow:Ext.isDefined(this.shadow)?this.shadow:"sides",shadowOffset:this.shadowOffset,constrain:false,shim:this.shim===false?false:undefined}),this.el)},getTopToolbar:function(){return this.topToolbar},getBottomToolbar:function(){return this.bottomToolbar},getFooterToolbar:function(){return this.fbar},addButton:function(A,C,B){if(!this.fbar){this.createFbar([])}if(C){if(Ext.isString(A)){A={text:A}}A=Ext.apply({handler:C,scope:B},A)}return this.fbar.add(A)},addTool:function(){if(!this.rendered){if(!this.tools){this.tools=[]}Ext.each(arguments,function(H){this.tools.push(H)},this);return }if(!this[this.toolTarget]){return }if(!this.toolTemplate){var F=new Ext.Template('<div class="x-tool x-tool-{id}">&#160;</div>');F.disableFormats=true;F.compile();Ext.Panel.prototype.toolTemplate=F}for(var E=0,C=arguments,B=C.length;E<B;E++){var A=C[E];if(!this.tools[A.id]){var G="x-tool-"+A.id+"-over";var D=this.toolTemplate.insertFirst(this[this.toolTarget],A,true);
this.tools[A.id]=D;D.enableDisplayMode("block");this.mon(D,"click",this.createToolHandler(D,A,G,this));if(A.on){this.mon(D,A.on)}if(A.hidden){D.hide()}if(A.qtip){if(Ext.isObject(A.qtip)){Ext.QuickTips.register(Ext.apply({target:D.id},A.qtip))}else{D.dom.qtip=A.qtip}}D.addClassOnOver(G)}}},onLayout:function(B,A){Ext.Panel.superclass.onLayout.apply(this,arguments);if(this.hasLayout&&this.toolbars.length>0){Ext.each(this.toolbars,function(C){C.doLayout(undefined,A)});this.syncHeight()}},syncHeight:function(){var B=this.toolbarHeight,C=this.body,A=this.lastSize.height,D;if(this.autoHeight||!Ext.isDefined(A)||A=="auto"){return }if(B!=this.getToolbarHeight()){B=Math.max(0,A-this.getFrameHeight());C.setHeight(B);D=C.getSize();this.toolbarHeight=this.getToolbarHeight();this.onBodyResize(D.width,D.height)}},onShow:function(){if(this.floating){return this.el.show()}Ext.Panel.superclass.onShow.call(this)},onHide:function(){if(this.floating){return this.el.hide()}Ext.Panel.superclass.onHide.call(this)},createToolHandler:function(C,A,D,B){return function(E){C.removeClass(D);
if(A.stopEvent!==false){E.stopEvent()}if(A.handler){A.handler.call(A.scope||C,E,C,B,A)}}},afterRender:function(){if(this.floating&&!this.hidden){this.el.show()}if(this.title){this.setTitle(this.title)}Ext.Panel.superclass.afterRender.call(this);if(this.collapsed){this.collapsed=false;this.collapse(false)}this.initEvents()},getKeyMap:function(){if(!this.keyMap){this.keyMap=new Ext.KeyMap(this.el,this.keys)}return this.keyMap},initEvents:function(){if(this.keys){this.getKeyMap()}if(this.draggable){this.initDraggable()}if(this.toolbars.length>0){Ext.each(this.toolbars,function(A){A.doLayout();A.on({scope:this,afterlayout:this.syncHeight,remove:this.syncHeight})},this);this.syncHeight()}},initDraggable:function(){this.dd=new Ext.Panel.DD(this,Ext.isBoolean(this.draggable)?null:this.draggable)},beforeEffect:function(A){if(this.floating){this.el.beforeAction()}if(A!==false){this.el.addClass("x-panel-animated")}},afterEffect:function(A){this.syncShadow();this.el.removeClass("x-panel-animated")},createEffect:function(B,A,C){var D={scope:C,block:true};
if(B===true){D.callback=A;return D}else{if(!B.callback){D.callback=A}else{D.callback=function(){A.call(C);Ext.callback(B.callback,B.scope)}}}return Ext.applyIf(D,B)},collapse:function(B){if(this.collapsed||this.el.hasFxBlock()||this.fireEvent("beforecollapse",this,B)===false){return }var A=B===true||(B!==false&&this.animCollapse);this.beforeEffect(A);this.onCollapse(A,B);return this},onCollapse:function(A,B){if(A){this[this.collapseEl].slideOut(this.slideAnchor,Ext.apply(this.createEffect(B||true,this.afterCollapse,this),this.collapseDefaults))}else{this[this.collapseEl].hide(this.hideMode);this.afterCollapse(false)}},afterCollapse:function(A){this.collapsed=true;this.el.addClass(this.collapsedCls);if(A!==false){this[this.collapseEl].hide(this.hideMode)}this.afterEffect(A);this.cascade(function(B){if(B.lastSize){B.lastSize={width:undefined,height:undefined}}});this.fireEvent("collapse",this)},expand:function(B){if(!this.collapsed||this.el.hasFxBlock()||this.fireEvent("beforeexpand",this,B)===false){return }var A=B===true||(B!==false&&this.animCollapse);
this.el.removeClass(this.collapsedCls);this.beforeEffect(A);this.onExpand(A,B);return this},onExpand:function(A,B){if(A){this[this.collapseEl].slideIn(this.slideAnchor,Ext.apply(this.createEffect(B||true,this.afterExpand,this),this.expandDefaults))}else{this[this.collapseEl].show(this.hideMode);this.afterExpand(false)}},afterExpand:function(A){this.collapsed=false;if(A!==false){this[this.collapseEl].show(this.hideMode)}this.afterEffect(A);if(this.deferLayout){delete this.deferLayout;this.doLayout(true)}this.fireEvent("expand",this)},toggleCollapse:function(A){this[this.collapsed?"expand":"collapse"](A);return this},onDisable:function(){if(this.rendered&&this.maskDisabled){this.el.mask()}Ext.Panel.superclass.onDisable.call(this)},onEnable:function(){if(this.rendered&&this.maskDisabled){this.el.unmask()}Ext.Panel.superclass.onEnable.call(this)},onResize:function(F,D,C,E){var A=F,B=D;if(Ext.isDefined(A)||Ext.isDefined(B)){if(!this.collapsed){if(Ext.isNumber(A)){this.body.setWidth(A=this.adjustBodyWidth(A-this.getFrameWidth()))
}else{if(A=="auto"){A=this.body.setWidth("auto").dom.offsetWidth}else{A=this.body.dom.offsetWidth}}if(this.tbar){this.tbar.setWidth(A);if(this.topToolbar){this.topToolbar.setSize(A)}}if(this.bbar){this.bbar.setWidth(A);if(this.bottomToolbar){this.bottomToolbar.setSize(A);if(Ext.isIE){this.bbar.setStyle("position","static");this.bbar.setStyle("position","")}}}if(this.footer){this.footer.setWidth(A);if(this.fbar){this.fbar.setSize(Ext.isIE?(A-this.footer.getFrameWidth("lr")):"auto")}}if(Ext.isNumber(B)){B=Math.max(0,B-this.getFrameHeight());this.body.setHeight(B)}else{if(B=="auto"){this.body.setHeight(B)}}if(this.disabled&&this.el._mask){this.el._mask.setSize(this.el.dom.clientWidth,this.el.getHeight())}}else{this.queuedBodySize={width:A,height:B};if(!this.queuedExpand&&this.allowQueuedExpand!==false){this.queuedExpand=true;this.on("expand",function(){delete this.queuedExpand;this.onResize(this.queuedBodySize.width,this.queuedBodySize.height)},this,{single:true})}}this.onBodyResize(A,B)}this.syncShadow();Ext.Panel.superclass.onResize.call(this,F,D,C,E)
},onBodyResize:function(A,B){this.fireEvent("bodyresize",this,A,B)},getToolbarHeight:function(){var A=0;if(this.rendered){Ext.each(this.toolbars,function(B){A+=B.getHeight()},this)}return A},adjustBodyHeight:function(A){return A},adjustBodyWidth:function(A){return A},onPosition:function(){this.syncShadow()},getFrameWidth:function(){var B=this.el.getFrameWidth("lr")+this.bwrap.getFrameWidth("lr");if(this.frame){var A=this.bwrap.dom.firstChild;B+=(Ext.fly(A).getFrameWidth("l")+Ext.fly(A.firstChild).getFrameWidth("r"));B+=this.mc.getFrameWidth("lr")}return B},getFrameHeight:function(){var A=this.el.getFrameWidth("tb")+this.bwrap.getFrameWidth("tb");A+=(this.tbar?this.tbar.getHeight():0)+(this.bbar?this.bbar.getHeight():0);if(this.frame){A+=this.el.dom.firstChild.offsetHeight+this.ft.dom.offsetHeight+this.mc.getFrameWidth("tb")}else{A+=(this.header?this.header.getHeight():0)+(this.footer?this.footer.getHeight():0)}return A},getInnerWidth:function(){return this.getSize().width-this.getFrameWidth()},getInnerHeight:function(){return this.body.getHeight()
},syncShadow:function(){if(this.floating){this.el.sync(true)}},getLayoutTarget:function(){return this.body},getContentTarget:function(){return this.body},setTitle:function(B,A){this.title=B;if(this.header&&this.headerAsText){this.header.child("span").update(B)}if(A){this.setIconClass(A)}this.fireEvent("titlechange",this,B);return this},getUpdater:function(){return this.body.getUpdater()},load:function(){var A=this.body.getUpdater();A.update.apply(A,arguments);return this},beforeDestroy:function(){Ext.Panel.superclass.beforeDestroy.call(this);if(this.header){this.header.removeAllListeners()}if(this.tools){for(var A in this.tools){Ext.destroy(this.tools[A])}}if(this.toolbars.length>0){Ext.each(this.toolbars,function(B){B.un("afterlayout",this.syncHeight,this);B.un("remove",this.syncHeight,this)},this)}if(Ext.isArray(this.buttons)){while(this.buttons.length){Ext.destroy(this.buttons[0])}}if(this.rendered){Ext.destroy(this.ft,this.header,this.footer,this.tbar,this.bbar,this.body,this.mc,this.bwrap,this.dd);if(this.fbar){Ext.destroy(this.fbar,this.fbar.el)
}}Ext.destroy(this.toolbars)},createClasses:function(){this.headerCls=this.baseCls+"-header";this.headerTextCls=this.baseCls+"-header-text";this.bwrapCls=this.baseCls+"-bwrap";this.tbarCls=this.baseCls+"-tbar";this.bodyCls=this.baseCls+"-body";this.bbarCls=this.baseCls+"-bbar";this.footerCls=this.baseCls+"-footer"},createGhost:function(A,E,B){var D=document.createElement("div");D.className="x-panel-ghost "+(A?A:"");if(this.header){D.appendChild(this.el.dom.firstChild.cloneNode(true))}Ext.fly(D.appendChild(document.createElement("ul"))).setHeight(this.bwrap.getHeight());D.style.width=this.el.dom.offsetWidth+"px";if(!B){this.container.dom.appendChild(D)}else{Ext.getDom(B).appendChild(D)}if(E!==false&&this.el.useShim!==false){var C=new Ext.Layer({shadow:false,useDisplay:true,constrain:false},D);C.show();return C}else{return new Ext.Element(D)}},doAutoLoad:function(){var A=this.body.getUpdater();if(this.renderer){A.setRenderer(this.renderer)}A.update(Ext.isObject(this.autoLoad)?this.autoLoad:{url:this.autoLoad})},getTool:function(A){return this.tools[A]
}});Ext.reg("panel",Ext.Panel);Ext.Editor=function(B,A){if(B.field){this.field=Ext.create(B.field,"textfield");A=Ext.apply({},B);delete A.field}else{this.field=B}Ext.Editor.superclass.constructor.call(this,A)};Ext.extend(Ext.Editor,Ext.Component,{allowBlur:true,value:"",alignment:"c-c?",offsets:[0,0],shadow:"frame",constrain:false,swallowKeys:true,completeOnEnter:true,cancelOnEsc:true,updateEl:false,initComponent:function(){Ext.Editor.superclass.initComponent.call(this);this.addEvents("beforestartedit","startedit","beforecomplete","complete","canceledit","specialkey")},onRender:function(B,A){this.el=new Ext.Layer({shadow:this.shadow,cls:"x-editor",parentEl:B,shim:this.shim,shadowOffset:this.shadowOffset||4,id:this.id,constrain:this.constrain});if(this.zIndex){this.el.setZIndex(this.zIndex)}this.el.setStyle("overflow",Ext.isGecko?"auto":"hidden");if(this.field.msgTarget!="title"){this.field.msgTarget="qtip"}this.field.inEditor=true;this.mon(this.field,{scope:this,blur:this.onBlur,specialkey:this.onSpecialKey});
if(this.field.grow){this.mon(this.field,"autosize",this.el.sync,this.el,{delay:1})}this.field.render(this.el).show();this.field.getEl().dom.name="";if(this.swallowKeys){this.field.el.swallowEvent(["keypress","keydown"])}},onSpecialKey:function(E,D){var B=D.getKey(),A=this.completeOnEnter&&B==D.ENTER,C=this.cancelOnEsc&&B==D.ESC;if(A||C){D.stopEvent();if(A){this.completeEdit()}else{this.cancelEdit()}if(E.triggerBlur){E.triggerBlur()}}this.fireEvent("specialkey",E,D)},startEdit:function(B,C){if(this.editing){this.completeEdit()}this.boundEl=Ext.get(B);var A=C!==undefined?C:this.boundEl.dom.innerHTML;if(!this.rendered){this.render(this.parentEl||document.body)}if(this.fireEvent("beforestartedit",this,this.boundEl,A)!==false){this.startValue=A;this.field.reset();this.field.setValue(A);this.realign(true);this.editing=true;this.show()}},doAutoSize:function(){if(this.autoSize){var B=this.boundEl.getSize(),A=this.field.getSize();switch(this.autoSize){case"width":this.setSize(B.width,A.height);break;case"height":this.setSize(A.width,B.height);
break;case"none":this.setSize(A.width,A.height);break;default:this.setSize(B.width,B.height)}}},setSize:function(A,B){delete this.field.lastSize;this.field.setSize(A,B);if(this.el){if(Ext.isGecko2||Ext.isOpera||(Ext.isIE7&&Ext.isStrict)){this.el.setSize(A,B)}this.el.sync()}},realign:function(A){if(A===true){this.doAutoSize()}this.el.alignTo(this.boundEl,this.alignment,this.offsets)},completeEdit:function(A){if(!this.editing){return }if(this.field.assertValue){this.field.assertValue()}var B=this.getValue();if(!this.field.isValid()){if(this.revertInvalid!==false){this.cancelEdit(A)}return }if(String(B)===String(this.startValue)&&this.ignoreNoChange){this.hideEdit(A);return }if(this.fireEvent("beforecomplete",this,B,this.startValue)!==false){B=this.getValue();if(this.updateEl&&this.boundEl){this.boundEl.update(B)}this.hideEdit(A);this.fireEvent("complete",this,B,this.startValue)}},onShow:function(){this.el.show();if(this.hideEl!==false){this.boundEl.hide()}this.field.show().focus(false,true);this.fireEvent("startedit",this.boundEl,this.startValue)
},cancelEdit:function(A){if(this.editing){var B=this.getValue();this.setValue(this.startValue);this.hideEdit(A);this.fireEvent("canceledit",this,B,this.startValue)}},hideEdit:function(A){if(A!==true){this.editing=false;this.hide()}},onBlur:function(){if(this.allowBlur===true&&this.editing&&this.selectSameEditor!==true){this.completeEdit()}},onHide:function(){if(this.editing){this.completeEdit();return }this.field.blur();if(this.field.collapse){this.field.collapse()}this.el.hide();if(this.hideEl!==false){this.boundEl.show()}},setValue:function(A){this.field.setValue(A)},getValue:function(){return this.field.getValue()},beforeDestroy:function(){Ext.destroyMembers(this,"field");delete this.parentEl;delete this.boundEl}});Ext.reg("editor",Ext.Editor);Ext.ColorPalette=Ext.extend(Ext.Component,{itemCls:"x-color-palette",value:null,clickEvent:"click",ctype:"Ext.ColorPalette",allowReselect:false,colors:["000000","993300","333300","003300","003366","000080","333399","333333","800000","FF6600","808000","008000","008080","0000FF","666699","808080","FF0000","FF9900","99CC00","339966","33CCCC","3366FF","800080","969696","FF00FF","FFCC00","FFFF00","00FF00","00FFFF","00CCFF","993366","C0C0C0","FF99CC","FFCC99","FFFF99","CCFFCC","CCFFFF","99CCFF","CC99FF","FFFFFF"],initComponent:function(){Ext.ColorPalette.superclass.initComponent.call(this);
this.addEvents("select");if(this.handler){this.on("select",this.handler,this.scope,true)}},onRender:function(B,A){this.autoEl={tag:"div",cls:this.itemCls};Ext.ColorPalette.superclass.onRender.call(this,B,A);var C=this.tpl||new Ext.XTemplate('<tpl for="."><a href="#" class="color-{.}" hidefocus="on"><em><span style="background:#{.}" unselectable="on">&#160;</span></em></a></tpl>');C.overwrite(this.el,this.colors);this.mon(this.el,this.clickEvent,this.handleClick,this,{delegate:"a"});if(this.clickEvent!="click"){this.mon(this.el,"click",Ext.emptyFn,this,{delegate:"a",preventDefault:true})}},afterRender:function(){Ext.ColorPalette.superclass.afterRender.call(this);if(this.value){var A=this.value;this.value=null;this.select(A,true)}},handleClick:function(B,A){B.preventDefault();if(!this.disabled){var C=A.className.match(/(?:^|\s)color-(.{6})(?:\s|$)/)[1];this.select(C.toUpperCase())}},select:function(B,A){B=B.replace("#","");if(B!=this.value||this.allowReselect){var C=this.el;if(this.value){C.child("a.color-"+this.value).removeClass("x-color-palette-sel")
}C.child("a.color-"+B).addClass("x-color-palette-sel");this.value=B;if(A!==true){this.fireEvent("select",this,B)}}}});Ext.reg("colorpalette",Ext.ColorPalette);Ext.DatePicker=Ext.extend(Ext.BoxComponent,{todayText:"Today",okText:"&#160;OK&#160;",cancelText:"Cancel",todayTip:"{0} (Spacebar)",minText:"This date is before the minimum date",maxText:"This date is after the maximum date",format:"m/d/y",disabledDaysText:"Disabled",disabledDatesText:"Disabled",monthNames:Date.monthNames,dayNames:Date.dayNames,nextText:"Next Month (Control+Right)",prevText:"Previous Month (Control+Left)",monthYearText:"Choose a month (Control+Up/Down to move years)",startDay:0,showToday:true,focusOnSelect:true,initHour:12,initComponent:function(){Ext.DatePicker.superclass.initComponent.call(this);this.value=this.value?this.value.clearTime(true):new Date().clearTime();this.addEvents("select");if(this.handler){this.on("select",this.handler,this.scope||this)}this.initDisabledDays()},initDisabledDays:function(){if(!this.disabledDatesRE&&this.disabledDates){var B=this.disabledDates,A=B.length-1,C="(?:";
Ext.each(B,function(E,D){C+=Ext.isDate(E)?"^"+Ext.escapeRe(E.dateFormat(this.format))+"$":B[D];if(D!=A){C+="|"}},this);this.disabledDatesRE=new RegExp(C+")")}},setDisabledDates:function(A){if(Ext.isArray(A)){this.disabledDates=A;this.disabledDatesRE=null}else{this.disabledDatesRE=A}this.initDisabledDays();this.update(this.value,true)},setDisabledDays:function(A){this.disabledDays=A;this.update(this.value,true)},setMinDate:function(A){this.minDate=A;this.update(this.value,true)},setMaxDate:function(A){this.maxDate=A;this.update(this.value,true)},setValue:function(A){this.value=A.clearTime(true);this.update(this.value)},getValue:function(){return this.value},focus:function(){this.update(this.activeDate)},onEnable:function(A){Ext.DatePicker.superclass.onEnable.call(this);this.doDisabled(false);this.update(A?this.value:this.activeDate);if(Ext.isIE){this.el.repaint()}},onDisable:function(){Ext.DatePicker.superclass.onDisable.call(this);this.doDisabled(true);if(Ext.isIE&&!Ext.isIE8){Ext.each([].concat(this.textNodes,this.el.query("th span")),function(A){Ext.fly(A).repaint()
})}},doDisabled:function(A){this.keyNav.setDisabled(A);this.prevRepeater.setDisabled(A);this.nextRepeater.setDisabled(A);if(this.showToday){this.todayKeyListener.setDisabled(A);this.todayBtn.setDisabled(A)}},onRender:function(D,B){var A=['<table cellspacing="0">','<tr><td class="x-date-left"><a href="#" title="',this.prevText,'">&#160;</a></td><td class="x-date-middle" align="center"></td><td class="x-date-right"><a href="#" title="',this.nextText,'">&#160;</a></td></tr>','<tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr>'],C=this.dayNames,F;for(F=0;F<7;F++){var H=this.startDay+F;if(H>6){H=H-7}A.push("<th><span>",C[H].substr(0,1),"</span></th>")}A[A.length]="</tr></thead><tbody><tr>";for(F=0;F<42;F++){if(F%7===0&&F!==0){A[A.length]="</tr><tr>"}A[A.length]='<td><a href="#" hidefocus="on" class="x-date-date" tabIndex="1"><em><span></span></em></a></td>'}A.push("</tr></tbody></table></td></tr>",this.showToday?'<tr><td colspan="3" class="x-date-bottom" align="center"></td></tr>':"",'</table><div class="x-date-mp"></div>');
var G=document.createElement("div");G.className="x-date-picker";G.innerHTML=A.join("");D.dom.insertBefore(G,B);this.el=Ext.get(G);this.eventEl=Ext.get(G.firstChild);this.prevRepeater=new Ext.util.ClickRepeater(this.el.child("td.x-date-left a"),{handler:this.showPrevMonth,scope:this,preventDefault:true,stopDefault:true});this.nextRepeater=new Ext.util.ClickRepeater(this.el.child("td.x-date-right a"),{handler:this.showNextMonth,scope:this,preventDefault:true,stopDefault:true});this.monthPicker=this.el.down("div.x-date-mp");this.monthPicker.enableDisplayMode("block");this.keyNav=new Ext.KeyNav(this.eventEl,{"left":function(I){if(I.ctrlKey){this.showPrevMonth()}else{this.update(this.activeDate.add("d",-1))}},"right":function(I){if(I.ctrlKey){this.showNextMonth()}else{this.update(this.activeDate.add("d",1))}},"up":function(I){if(I.ctrlKey){this.showNextYear()}else{this.update(this.activeDate.add("d",-7))}},"down":function(I){if(I.ctrlKey){this.showPrevYear()}else{this.update(this.activeDate.add("d",7))}},"pageUp":function(I){this.showNextMonth()
},"pageDown":function(I){this.showPrevMonth()},"enter":function(I){I.stopPropagation();return true},scope:this});this.el.unselectable();this.cells=this.el.select("table.x-date-inner tbody td");this.textNodes=this.el.query("table.x-date-inner tbody span");this.mbtn=new Ext.Button({text:"&#160;",tooltip:this.monthYearText,renderTo:this.el.child("td.x-date-middle",true)});this.mbtn.el.child("em").addClass("x-btn-arrow");if(this.showToday){this.todayKeyListener=this.eventEl.addKeyListener(Ext.EventObject.SPACE,this.selectToday,this);var E=(new Date()).dateFormat(this.format);this.todayBtn=new Ext.Button({renderTo:this.el.child("td.x-date-bottom",true),text:String.format(this.todayText,E),tooltip:String.format(this.todayTip,E),handler:this.selectToday,scope:this})}this.mon(this.eventEl,"mousewheel",this.handleMouseWheel,this);this.mon(this.eventEl,"click",this.handleDateClick,this,{delegate:"a.x-date-date"});this.mon(this.mbtn,"click",this.showMonthPicker,this);this.onEnable(true)},createMonthPicker:function(){if(!this.monthPicker.dom.firstChild){var A=['<table border="0" cellspacing="0">'];
for(var B=0;B<6;B++){A.push('<tr><td class="x-date-mp-month"><a href="#">',Date.getShortMonthName(B),"</a></td>",'<td class="x-date-mp-month x-date-mp-sep"><a href="#">',Date.getShortMonthName(B+6),"</a></td>",B===0?'<td class="x-date-mp-ybtn" align="center"><a class="x-date-mp-prev"></a></td><td class="x-date-mp-ybtn" align="center"><a class="x-date-mp-next"></a></td></tr>':'<td class="x-date-mp-year"><a href="#"></a></td><td class="x-date-mp-year"><a href="#"></a></td></tr>')}A.push('<tr class="x-date-mp-btns"><td colspan="4"><button type="button" class="x-date-mp-ok">',this.okText,'</button><button type="button" class="x-date-mp-cancel">',this.cancelText,"</button></td></tr>","</table>");this.monthPicker.update(A.join(""));this.mon(this.monthPicker,"click",this.onMonthClick,this);this.mon(this.monthPicker,"dblclick",this.onMonthDblClick,this);this.mpMonths=this.monthPicker.select("td.x-date-mp-month");this.mpYears=this.monthPicker.select("td.x-date-mp-year");this.mpMonths.each(function(C,D,E){E+=1;if((E%2)===0){C.dom.xmonth=5+Math.round(E*0.5)
}else{C.dom.xmonth=Math.round((E-1)*0.5)}})}},showMonthPicker:function(){if(!this.disabled){this.createMonthPicker();var A=this.el.getSize();this.monthPicker.setSize(A);this.monthPicker.child("table").setSize(A);this.mpSelMonth=(this.activeDate||this.value).getMonth();this.updateMPMonth(this.mpSelMonth);this.mpSelYear=(this.activeDate||this.value).getFullYear();this.updateMPYear(this.mpSelYear);this.monthPicker.slideIn("t",{duration:0.2})}},updateMPYear:function(E){this.mpyear=E;var C=this.mpYears.elements;for(var B=1;B<=10;B++){var D=C[B-1],A;if((B%2)===0){A=E+Math.round(B*0.5);D.firstChild.innerHTML=A;D.xyear=A}else{A=E-(5-Math.round(B*0.5));D.firstChild.innerHTML=A;D.xyear=A}this.mpYears.item(B-1)[A==this.mpSelYear?"addClass":"removeClass"]("x-date-mp-sel")}},updateMPMonth:function(A){this.mpMonths.each(function(B,C,D){B[B.dom.xmonth==A?"addClass":"removeClass"]("x-date-mp-sel")})},selectMPMonth:function(A){},onMonthClick:function(D,B){D.stopEvent();var C=new Ext.Element(B),A;if(C.is("button.x-date-mp-cancel")){this.hideMonthPicker()
}else{if(C.is("button.x-date-mp-ok")){var E=new Date(this.mpSelYear,this.mpSelMonth,(this.activeDate||this.value).getDate());if(E.getMonth()!=this.mpSelMonth){E=new Date(this.mpSelYear,this.mpSelMonth,1).getLastDateOfMonth()}this.update(E);this.hideMonthPicker()}else{if((A=C.up("td.x-date-mp-month",2))){this.mpMonths.removeClass("x-date-mp-sel");A.addClass("x-date-mp-sel");this.mpSelMonth=A.dom.xmonth}else{if((A=C.up("td.x-date-mp-year",2))){this.mpYears.removeClass("x-date-mp-sel");A.addClass("x-date-mp-sel");this.mpSelYear=A.dom.xyear}else{if(C.is("a.x-date-mp-prev")){this.updateMPYear(this.mpyear-10)}else{if(C.is("a.x-date-mp-next")){this.updateMPYear(this.mpyear+10)}}}}}}},onMonthDblClick:function(D,B){D.stopEvent();var C=new Ext.Element(B),A;if((A=C.up("td.x-date-mp-month",2))){this.update(new Date(this.mpSelYear,A.dom.xmonth,(this.activeDate||this.value).getDate()));this.hideMonthPicker()}else{if((A=C.up("td.x-date-mp-year",2))){this.update(new Date(A.dom.xyear,this.mpSelMonth,(this.activeDate||this.value).getDate()));
this.hideMonthPicker()}}},hideMonthPicker:function(A){if(this.monthPicker){if(A===true){this.monthPicker.hide()}else{this.monthPicker.slideOut("t",{duration:0.2})}}},showPrevMonth:function(A){this.update(this.activeDate.add("mo",-1))},showNextMonth:function(A){this.update(this.activeDate.add("mo",1))},showPrevYear:function(){this.update(this.activeDate.add("y",-1))},showNextYear:function(){this.update(this.activeDate.add("y",1))},handleMouseWheel:function(A){A.stopEvent();if(!this.disabled){var B=A.getWheelDelta();if(B>0){this.showPrevMonth()}else{if(B<0){this.showNextMonth()}}}},handleDateClick:function(B,A){B.stopEvent();if(!this.disabled&&A.dateValue&&!Ext.fly(A.parentNode).hasClass("x-date-disabled")){this.cancelFocus=this.focusOnSelect===false;this.setValue(new Date(A.dateValue));delete this.cancelFocus;this.fireEvent("select",this,this.value)}},selectToday:function(){if(this.todayBtn&&!this.todayBtn.disabled){this.setValue(new Date().clearTime());this.fireEvent("select",this,this.value)}},update:function(b,V){if(this.rendered){var A=this.activeDate,M=this.isVisible();
this.activeDate=b;if(!V&&A&&this.el){var L=b.getTime();if(A.getMonth()==b.getMonth()&&A.getFullYear()==b.getFullYear()){this.cells.removeClass("x-date-selected");this.cells.each(function(d){if(d.dom.firstChild.dateValue==L){d.addClass("x-date-selected");if(M&&!this.cancelFocus){Ext.fly(d.dom.firstChild).focus(50)}return false}},this);return }}var H=b.getDaysInMonth(),N=b.getFirstDateOfMonth(),E=N.getDay()-this.startDay;if(E<0){E+=7}H+=E;var W=b.add("mo",-1),F=W.getDaysInMonth()-E,D=this.cells.elements,O=this.textNodes,Y=(new Date(W.getFullYear(),W.getMonth(),F,this.initHour)),X=new Date().clearTime().getTime(),R=b.clearTime(true).getTime(),Q=this.minDate?this.minDate.clearTime(true):Number.NEGATIVE_INFINITY,T=this.maxDate?this.maxDate.clearTime(true):Number.POSITIVE_INFINITY,a=this.disabledDatesRE,P=this.disabledDatesText,e=this.disabledDays?this.disabledDays.join(""):false,Z=this.disabledDaysText,U=this.format;if(this.showToday){var J=new Date().clearTime(),C=(J<Q||J>T||(a&&U&&a.test(J.dateFormat(U)))||(e&&e.indexOf(J.getDay())!=-1));
if(!this.disabled){this.todayBtn.setDisabled(C);this.todayKeyListener[C?"disable":"enable"]()}}var I=function(i,d){d.title="";var g=Y.clearTime(true).getTime();d.firstChild.dateValue=g;if(g==X){d.className+=" x-date-today";d.title=i.todayText}if(g==R){d.className+=" x-date-selected";if(M){Ext.fly(d.firstChild).focus(50)}}if(g<Q){d.className=" x-date-disabled";d.title=i.minText;return }if(g>T){d.className=" x-date-disabled";d.title=i.maxText;return }if(e){if(e.indexOf(Y.getDay())!=-1){d.title=Z;d.className=" x-date-disabled"}}if(a&&U){var h=Y.dateFormat(U);if(a.test(h)){d.title=P.replace("%0",h);d.className=" x-date-disabled"}}};var S=0;for(;S<E;S++){O[S].innerHTML=(++F);Y.setDate(Y.getDate()+1);D[S].className="x-date-prevday";I(this,D[S])}for(;S<H;S++){var B=S-E+1;O[S].innerHTML=(B);Y.setDate(Y.getDate()+1);D[S].className="x-date-active";I(this,D[S])}var c=0;for(;S<42;S++){O[S].innerHTML=(++c);Y.setDate(Y.getDate()+1);D[S].className="x-date-nextday";I(this,D[S])}this.mbtn.setText(this.monthNames[b.getMonth()]+" "+b.getFullYear());
if(!this.internalRender){var G=this.el.dom.firstChild,K=G.offsetWidth;this.el.setWidth(K+this.el.getBorderWidth("lr"));Ext.fly(G).setWidth(K);this.internalRender=true;if(Ext.isOpera&&!this.secondPass){G.rows[0].cells[1].style.width=(K-(G.rows[0].cells[0].offsetWidth+G.rows[0].cells[2].offsetWidth))+"px";this.secondPass=true;this.update.defer(10,this,[b])}}}},beforeDestroy:function(){if(this.rendered){Ext.destroy(this.keyNav,this.monthPicker,this.eventEl,this.mbtn,this.nextRepeater,this.prevRepeater,this.cells.el,this.todayBtn);delete this.textNodes;delete this.cells.elements}}});Ext.reg("datepicker",Ext.DatePicker);Ext.LoadMask=function(C,B){this.el=Ext.get(C);Ext.apply(this,B);if(this.store){this.store.on({scope:this,beforeload:this.onBeforeLoad,load:this.onLoad,exception:this.onLoad});this.removeMask=Ext.value(this.removeMask,false)}else{var A=this.el.getUpdater();A.showLoadIndicator=false;A.on({scope:this,beforeupdate:this.onBeforeLoad,update:this.onLoad,failure:this.onLoad});this.removeMask=Ext.value(this.removeMask,true)
}};Ext.LoadMask.prototype={msg:"Loading...",msgCls:"x-mask-loading",disabled:false,disable:function(){this.disabled=true},enable:function(){this.disabled=false},onLoad:function(){this.el.unmask(this.removeMask)},onBeforeLoad:function(){if(!this.disabled){this.el.mask(this.msg,this.msgCls)}},show:function(){this.onBeforeLoad()},hide:function(){this.onLoad()},destroy:function(){if(this.store){this.store.un("beforeload",this.onBeforeLoad,this);this.store.un("load",this.onLoad,this);this.store.un("exception",this.onLoad,this)}else{var A=this.el.getUpdater();A.un("beforeupdate",this.onBeforeLoad,this);A.un("update",this.onLoad,this);A.un("failure",this.onLoad,this)}}};Ext.slider.Thumb=Ext.extend(Object,{dragging:false,constructor:function(A){Ext.apply(this,A||{},{cls:"x-slider-thumb",constrain:false});Ext.slider.Thumb.superclass.constructor.call(this,A);if(this.slider.vertical){Ext.apply(this,Ext.slider.Thumb.Vertical)}},render:function(){this.el=this.slider.innerEl.insertFirst({cls:this.cls});this.initEvents()},enable:function(){this.disabled=false;
this.el.removeClass(this.slider.disabledClass)},disable:function(){this.disabled=true;this.el.addClass(this.slider.disabledClass)},initEvents:function(){var A=this.el;A.addClassOnOver("x-slider-thumb-over");this.tracker=new Ext.dd.DragTracker({onBeforeStart:this.onBeforeDragStart.createDelegate(this),onStart:this.onDragStart.createDelegate(this),onDrag:this.onDrag.createDelegate(this),onEnd:this.onDragEnd.createDelegate(this),tolerance:3,autoStart:300});this.tracker.initEl(A)},onBeforeDragStart:function(A){if(this.disabled){return false}else{this.slider.promoteThumb(this);return true}},onDragStart:function(A){this.el.addClass("x-slider-thumb-drag");this.dragging=true;this.dragStartValue=this.value;this.slider.fireEvent("dragstart",this.slider,A,this)},onDrag:function(E){var C=this.slider,B=this.index,D=this.getNewValue();if(this.constrain){var A=C.thumbs[B+1],F=C.thumbs[B-1];if(F!=undefined&&D<=F.value){D=F.value}if(A!=undefined&&D>=A.value){D=A.value}}C.setValue(B,D,false);C.fireEvent("drag",C,E,this)},getNewValue:function(){var A=this.slider,B=A.innerEl.translatePoints(this.tracker.getXY());
return Ext.util.Format.round(A.reverseValue(B.left),A.decimalPrecision)},onDragEnd:function(C){var A=this.slider,B=this.value;this.el.removeClass("x-slider-thumb-drag");this.dragging=false;A.fireEvent("dragend",A,C);if(this.dragStartValue!=B){A.fireEvent("changecomplete",A,B,this)}},destroy:function(){Ext.destroyMembers(this,"tracker","el")}});Ext.slider.MultiSlider=Ext.extend(Ext.BoxComponent,{vertical:false,minValue:0,maxValue:100,decimalPrecision:0,keyIncrement:1,increment:0,clickRange:[5,15],clickToChange:true,animate:true,constrainThumbs:true,topThumbZIndex:10000,initComponent:function(){if(!Ext.isDefined(this.value)){this.value=this.minValue}this.thumbs=[];Ext.slider.MultiSlider.superclass.initComponent.call(this);this.keyIncrement=Math.max(this.increment,this.keyIncrement);this.addEvents("beforechange","change","changecomplete","dragstart","drag","dragend");if(this.values==undefined||Ext.isEmpty(this.values)){this.values=[0]}var A=this.values;for(var B=0;B<A.length;B++){this.addThumb(A[B])}if(this.vertical){Ext.apply(this,Ext.slider.Vertical)
}},addThumb:function(B){var A=new Ext.slider.Thumb({value:B,slider:this,index:this.thumbs.length,constrain:this.constrainThumbs});this.thumbs.push(A);if(this.rendered){A.render()}},promoteThumb:function(D){var A=this.thumbs,F,B;for(var E=0,C=A.length;E<C;E++){B=A[E];if(B==D){F=this.topThumbZIndex}else{F=""}B.el.setStyle("zIndex",F)}},onRender:function(){this.autoEl={cls:"x-slider "+(this.vertical?"x-slider-vert":"x-slider-horz"),cn:{cls:"x-slider-end",cn:{cls:"x-slider-inner",cn:[{tag:"a",cls:"x-slider-focus",href:"#",tabIndex:"-1",hidefocus:"on"}]}}};Ext.slider.MultiSlider.superclass.onRender.apply(this,arguments);this.endEl=this.el.first();this.innerEl=this.endEl.first();this.focusEl=this.innerEl.child(".x-slider-focus");for(var B=0;B<this.thumbs.length;B++){this.thumbs[B].render()}var A=this.innerEl.child(".x-slider-thumb");this.halfThumb=(this.vertical?A.getHeight():A.getWidth())/2;this.initEvents()},initEvents:function(){this.mon(this.el,{scope:this,mousedown:this.onMouseDown,keydown:this.onKeyDown});this.focusEl.swallowEvent("click",true)
},onMouseDown:function(D){if(this.disabled){return }var C=false;for(var B=0;B<this.thumbs.length;B++){C=C||D.target==this.thumbs[B].el.dom}if(this.clickToChange&&!C){var A=this.innerEl.translatePoints(D.getXY());this.onClickChange(A)}this.focus()},onClickChange:function(C){if(C.top>this.clickRange[0]&&C.top<this.clickRange[1]){var A=this.getNearest(C,"left"),B=A.index;this.setValue(B,Ext.util.Format.round(this.reverseValue(C.left),this.decimalPrecision),undefined,true)}},getNearest:function(I,B){var K=B=="top"?this.innerEl.getHeight()-I[B]:I[B],F=this.reverseValue(K),H=(this.maxValue-this.minValue)+5,E=0,C=null;for(var D=0;D<this.thumbs.length;D++){var A=this.thumbs[D],J=A.value,G=Math.abs(J-F);if(Math.abs(G<=H)){C=A;E=D;H=G}}return C},onKeyDown:function(B){if(this.disabled||this.thumbs.length!==1){B.preventDefault();return }var A=B.getKey(),C;switch(A){case B.UP:case B.RIGHT:B.stopEvent();C=B.ctrlKey?this.maxValue:this.getValue(0)+this.keyIncrement;this.setValue(0,C,undefined,true);break;case B.DOWN:case B.LEFT:B.stopEvent();
C=B.ctrlKey?this.minValue:this.getValue(0)-this.keyIncrement;this.setValue(0,C,undefined,true);break;default:B.preventDefault()}},doSnap:function(B){if(!(this.increment&&B)){return B}var D=B,C=this.increment,A=B%C;if(A!=0){D-=A;if(A*2>=C){D+=C}else{if(A*2<-C){D-=C}}}return D.constrain(this.minValue,this.maxValue)},afterRender:function(){Ext.slider.MultiSlider.superclass.afterRender.apply(this,arguments);for(var C=0;C<this.thumbs.length;C++){var B=this.thumbs[C];if(B.value!==undefined){var A=this.normalizeValue(B.value);if(A!==B.value){this.setValue(C,A,false)}else{this.moveThumb(C,this.translateValue(A),false)}}}},getRatio:function(){var A=this.innerEl.getWidth(),B=this.maxValue-this.minValue;return B==0?A:(A/B)},normalizeValue:function(A){A=this.doSnap(A);A=Ext.util.Format.round(A,this.decimalPrecision);A=A.constrain(this.minValue,this.maxValue);return A},setMinValue:function(E){this.minValue=E;var D=0,B=this.thumbs,A=B.length,C;for(;D<A;++D){C=B[D];C.value=C.value<E?E:C.value}this.syncThumb()},setMaxValue:function(E){this.maxValue=E;
var D=0,B=this.thumbs,A=B.length,C;for(;D<A;++D){C=B[D];C.value=C.value>E?E:C.value}this.syncThumb()},setValue:function(D,C,B,F){var A=this.thumbs[D],E=A.el;C=this.normalizeValue(C);if(C!==A.value&&this.fireEvent("beforechange",this,C,A.value,A)!==false){A.value=C;if(this.rendered){this.moveThumb(D,this.translateValue(C),B!==false);this.fireEvent("change",this,C,A);if(F){this.fireEvent("changecomplete",this,C,A)}}}},translateValue:function(A){var B=this.getRatio();return(A*B)-(this.minValue*B)-this.halfThumb},reverseValue:function(B){var A=this.getRatio();return(B+(this.minValue*A))/A},moveThumb:function(D,C,B){var A=this.thumbs[D].el;if(!B||this.animate===false){A.setLeft(C)}else{A.shift({left:C,stopFx:true,duration:0.35})}},focus:function(){this.focusEl.focus(10)},onResize:function(C,E){var B=this.thumbs,A=B.length,D=0;for(;D<A;++D){B[D].el.stopFx()}if(Ext.isNumber(C)){this.innerEl.setWidth(C-(this.el.getPadding("l")+this.endEl.getPadding("r")))}this.syncThumb();Ext.slider.MultiSlider.superclass.onResize.apply(this,arguments)
},onDisable:function(){Ext.slider.MultiSlider.superclass.onDisable.call(this);for(var B=0;B<this.thumbs.length;B++){var A=this.thumbs[B],C=A.el;A.disable();if(Ext.isIE){var D=C.getXY();C.hide();this.innerEl.addClass(this.disabledClass).dom.disabled=true;if(!this.thumbHolder){this.thumbHolder=this.endEl.createChild({cls:"x-slider-thumb "+this.disabledClass})}this.thumbHolder.show().setXY(D)}}},onEnable:function(){Ext.slider.MultiSlider.superclass.onEnable.call(this);for(var B=0;B<this.thumbs.length;B++){var A=this.thumbs[B],C=A.el;A.enable();if(Ext.isIE){this.innerEl.removeClass(this.disabledClass).dom.disabled=false;if(this.thumbHolder){this.thumbHolder.hide()}C.show();this.syncThumb()}}},syncThumb:function(){if(this.rendered){for(var A=0;A<this.thumbs.length;A++){this.moveThumb(A,this.translateValue(this.thumbs[A].value))}}},getValue:function(A){return this.thumbs[A].value},getValues:function(){var A=[];for(var B=0;B<this.thumbs.length;B++){A.push(this.thumbs[B].value)}return A},beforeDestroy:function(){var B=this.thumbs;
for(var C=0,A=B.length;C<A;++C){B[C].destroy();B[C]=null}Ext.destroyMembers(this,"endEl","innerEl","focusEl","thumbHolder");Ext.slider.MultiSlider.superclass.beforeDestroy.call(this)}});Ext.reg("multislider",Ext.slider.MultiSlider);Ext.slider.SingleSlider=Ext.extend(Ext.slider.MultiSlider,{constructor:function(A){A=A||{};Ext.applyIf(A,{values:[A.value||0]});Ext.slider.SingleSlider.superclass.constructor.call(this,A)},getValue:function(){return Ext.slider.SingleSlider.superclass.getValue.call(this,0)},setValue:function(D,B){var C=Ext.toArray(arguments),A=C.length;if(A==1||(A<=3&&typeof arguments[1]!="number")){C.unshift(0)}return Ext.slider.SingleSlider.superclass.setValue.apply(this,C)},syncThumb:function(){return Ext.slider.SingleSlider.superclass.syncThumb.apply(this,[0].concat(arguments))},getNearest:function(){return this.thumbs[0]}});Ext.Slider=Ext.slider.SingleSlider;Ext.reg("slider",Ext.slider.SingleSlider);Ext.slider.Vertical={onResize:function(A,B){this.innerEl.setHeight(B-(this.el.getPadding("t")+this.endEl.getPadding("b")));
this.syncThumb()},getRatio:function(){var B=this.innerEl.getHeight(),A=this.maxValue-this.minValue;return B/A},moveThumb:function(D,C,B){var A=this.thumbs[D],E=A.el;if(!B||this.animate===false){E.setBottom(C)}else{E.shift({bottom:C,stopFx:true,duration:0.35})}},onClickChange:function(C){if(C.left>this.clickRange[0]&&C.left<this.clickRange[1]){var A=this.getNearest(C,"top"),B=A.index,D=this.minValue+this.reverseValue(this.innerEl.getHeight()-C.top);this.setValue(B,Ext.util.Format.round(D,this.decimalPrecision),undefined,true)}}};Ext.slider.Thumb.Vertical={getNewValue:function(){var B=this.slider,C=B.innerEl,D=C.translatePoints(this.tracker.getXY()),A=C.getHeight()-D.top;return B.minValue+Ext.util.Format.round(A/B.getRatio(),B.decimalPrecision)}};Ext.ProgressBar=Ext.extend(Ext.BoxComponent,{baseCls:"x-progress",animate:false,waitTimer:null,initComponent:function(){Ext.ProgressBar.superclass.initComponent.call(this);this.addEvents("update")},onRender:function(D,A){var C=new Ext.Template('<div class="{cls}-wrap">','<div class="{cls}-inner">','<div class="{cls}-bar">','<div class="{cls}-text">',"<div>&#160;</div>","</div>","</div>",'<div class="{cls}-text {cls}-text-back">',"<div>&#160;</div>","</div>","</div>","</div>");
this.el=A?C.insertBefore(A,{cls:this.baseCls},true):C.append(D,{cls:this.baseCls},true);if(this.id){this.el.dom.id=this.id}var B=this.el.dom.firstChild;this.progressBar=Ext.get(B.firstChild);if(this.textEl){this.textEl=Ext.get(this.textEl);delete this.textTopEl}else{this.textTopEl=Ext.get(this.progressBar.dom.firstChild);var E=Ext.get(B.childNodes[1]);this.textTopEl.setStyle("z-index",99).addClass("x-hidden");this.textEl=new Ext.CompositeElement([this.textTopEl.dom.firstChild,E.dom.firstChild]);this.textEl.setWidth(B.offsetWidth)}this.progressBar.setHeight(B.offsetHeight)},afterRender:function(){Ext.ProgressBar.superclass.afterRender.call(this);if(this.value){this.updateProgress(this.value,this.text)}else{this.updateText(this.text)}},updateProgress:function(C,D,B){this.value=C||0;if(D){this.updateText(D)}if(this.rendered&&!this.isDestroyed){var A=Math.floor(C*this.el.dom.firstChild.offsetWidth);this.progressBar.setWidth(A,B===true||(B!==false&&this.animate));if(this.textTopEl){this.textTopEl.removeClass("x-hidden").setWidth(A)
}}this.fireEvent("update",this,C,D);return this},wait:function(B){if(!this.waitTimer){var A=this;B=B||{};this.updateText(B.text);this.waitTimer=Ext.TaskMgr.start({run:function(C){var D=B.increment||10;C-=1;this.updateProgress(((((C+D)%D)+1)*(100/D))*0.01,null,B.animate)},interval:B.interval||1000,duration:B.duration,onStop:function(){if(B.fn){B.fn.apply(B.scope||this)}this.reset()},scope:A})}return this},isWaiting:function(){return this.waitTimer!==null},updateText:function(A){this.text=A||"&#160;";if(this.rendered){this.textEl.update(this.text)}return this},syncProgressBar:function(){if(this.value){this.updateProgress(this.value,this.text)}return this},setSize:function(A,C){Ext.ProgressBar.superclass.setSize.call(this,A,C);if(this.textTopEl){var B=this.el.dom.firstChild;this.textEl.setSize(B.offsetWidth,B.offsetHeight)}this.syncProgressBar();return this},reset:function(A){this.updateProgress(0);if(this.textTopEl){this.textTopEl.addClass("x-hidden")}this.clearTimer();if(A===true){this.hide()}return this},clearTimer:function(){if(this.waitTimer){this.waitTimer.onStop=null;
Ext.TaskMgr.stop(this.waitTimer);this.waitTimer=null}},onDestroy:function(){this.clearTimer();if(this.rendered){if(this.textEl.isComposite){this.textEl.clear()}Ext.destroyMembers(this,"textEl","progressBar","textTopEl")}Ext.ProgressBar.superclass.onDestroy.call(this)}});Ext.reg("progress",Ext.ProgressBar);(function(){var A=Ext.EventManager;var B=Ext.lib.Dom;Ext.dd.DragDrop=function(E,C,D){if(E){this.init(E,C,D)}};Ext.dd.DragDrop.prototype={id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},moveOnly:false,unlock:function(){this.locked=false},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,b4StartDrag:function(C,D){},startDrag:function(C,D){},b4Drag:function(C){},onDrag:function(C){},onDragEnter:function(C,D){},b4DragOver:function(C){},onDragOver:function(C,D){},b4DragOut:function(C){},onDragOut:function(C,D){},b4DragDrop:function(C){},onDragDrop:function(C,D){},onInvalidDrop:function(C){},b4EndDrag:function(C){},endDrag:function(C){},b4MouseDown:function(C){},onMouseDown:function(C){},onMouseUp:function(C){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(H,F,M){if(Ext.isNumber(F)){F={left:F,right:F,top:F,bottom:F}
}F=F||this.defaultPadding;var J=Ext.get(this.getEl()).getBox(),C=Ext.get(H),L=C.getScroll(),I,D=C.dom;if(D==document.body){I={x:L.left,y:L.top,width:Ext.lib.Dom.getViewWidth(),height:Ext.lib.Dom.getViewHeight()}}else{var K=C.getXY();I={x:K[0],y:K[1],width:D.clientWidth,height:D.clientHeight}}var G=J.y-I.y,E=J.x-I.x;this.resetConstraints();this.setXConstraint(E-(F.left||0),I.width-E-J.width-(F.right||0),this.xTickSize);this.setYConstraint(G-(F.top||0),I.height-G-J.height-(F.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(E,C,D){this.initTarget(E,C,D);A.on(this.id,"mousedown",this.handleMouseDown,this)},initTarget:function(E,C,D){this.config=D||{};this.DDM=Ext.dd.DDM;this.groups={};if(typeof E!=="string"){E=Ext.id(E)}this.id=E;this.addToGroup((C)?C:"default");this.handleElId=E;this.setDragElId(E);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];
this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(E,C,F,D){if(!C&&0!==C){this.padding=[E,E,E,E]}else{if(!F&&0!==F){this.padding=[E,C,E,C]}else{this.padding=[E,C,F,D]}}},setInitPosition:function(F,E){var G=this.getEl();if(!this.DDM.verifyEl(G)){return }var D=F||0;var C=E||0;var H=B.getXY(G);this.initPageX=H[0]-D;this.initPageY=H[1]-C;this.lastPageX=H[0];this.lastPageY=H[1];this.setStartPosition(H)},setStartPosition:function(D){var C=D||B.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=C[0];this.startPageY=C[1]},addToGroup:function(C){this.groups[C]=true;this.DDM.regDragDrop(this,C)},removeFromGroup:function(C){if(this.groups[C]){delete this.groups[C]}this.DDM.removeDDFromGroup(this,C)
},setDragElId:function(C){this.dragElId=C},setHandleElId:function(C){if(typeof C!=="string"){C=Ext.id(C)}this.handleElId=C;this.DDM.regHandle(this.id,C)},setOuterHandleElId:function(C){if(typeof C!=="string"){C=Ext.id(C)}A.on(C,"mousedown",this.handleMouseDown,this);this.setHandleElId(C);this.hasOuterHandles=true},unreg:function(){A.un(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},destroy:function(){this.unreg()},isLocked:function(){return(this.DDM.isLocked()||this.locked)},handleMouseDown:function(E,D){if(this.primaryButtonOnly&&E.button!=0){return }if(this.isLocked()){return }this.DDM.refreshCache(this.groups);var C=new Ext.lib.Point(Ext.lib.Event.getPageX(E),Ext.lib.Event.getPageY(E));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(C,this)){}else{if(this.clickValidator(E)){this.setStartPosition();this.b4MouseDown(E);this.onMouseDown(E);this.DDM.handleMouseDown(E,this);this.DDM.stopEvent(E)}else{}}},clickValidator:function(D){var C=D.getTarget();return(this.isValidHandleChild(C)&&(this.id==this.handleElId||this.DDM.handleWasClicked(C,this.id)))
},addInvalidHandleType:function(C){var D=C.toUpperCase();this.invalidHandleTypes[D]=D},addInvalidHandleId:function(C){if(typeof C!=="string"){C=Ext.id(C)}this.invalidHandleIds[C]=C},addInvalidHandleClass:function(C){this.invalidHandleClasses.push(C)},removeInvalidHandleType:function(C){var D=C.toUpperCase();delete this.invalidHandleTypes[D]},removeInvalidHandleId:function(C){if(typeof C!=="string"){C=Ext.id(C)}delete this.invalidHandleIds[C]},removeInvalidHandleClass:function(D){for(var E=0,C=this.invalidHandleClasses.length;E<C;++E){if(this.invalidHandleClasses[E]==D){delete this.invalidHandleClasses[E]}}},isValidHandleChild:function(F){var E=true;var H;try{H=F.nodeName.toUpperCase()}catch(G){H=F.nodeName}E=E&&!this.invalidHandleTypes[H];E=E&&!this.invalidHandleIds[F.id];for(var D=0,C=this.invalidHandleClasses.length;E&&D<C;++D){E=!Ext.fly(F).hasClass(this.invalidHandleClasses[D])}return E},setXTicks:function(F,C){this.xTicks=[];this.xTickSize=C;var E={};for(var D=this.initPageX;D>=this.minX;D=D-C){if(!E[D]){this.xTicks[this.xTicks.length]=D;
E[D]=true}}for(D=this.initPageX;D<=this.maxX;D=D+C){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(F,C){this.yTicks=[];this.yTickSize=C;var E={};for(var D=this.initPageY;D>=this.minY;D=D-C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true}}for(D=this.initPageY;D<=this.maxY;D=D+C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(E,D,C){this.leftConstraint=E;this.rightConstraint=D;this.minX=this.initPageX-E;this.maxX=this.initPageX+D;if(C){this.setXTicks(this.initPageX,C)}this.constrainX=true},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(C,E,D){this.topConstraint=C;this.bottomConstraint=E;this.minY=this.initPageY-C;this.maxY=this.initPageY+E;if(D){this.setYTicks(this.initPageY,D)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var D=(this.maintainOffset)?this.lastPageX-this.initPageX:0;
var C=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(D,C)}else{this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(I,F){if(!F){return I}else{if(F[0]>=I){return F[0]}else{for(var D=0,C=F.length;D<C;++D){var E=D+1;if(F[E]&&F[E]>=I){var H=I-F[D];var G=F[E]-I;return(G>H)?F[D]:F[E]}}return F[F.length-1]}}},toString:function(){return("DragDrop "+this.id)}}})();if(!Ext.dd.DragDropMgr){Ext.dd.DragDropMgr=function(){var A=Ext.EventManager;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,init:function(){this.initialized=true},POINT:0,INTERSECT:1,mode:0,_execOnAll:function(D,C){for(var E in this.ids){for(var B in this.ids[E]){var F=this.ids[E][B];if(!this.isTypeOfDD(F)){continue}F[D].apply(F,C)}}},_onLoad:function(){this.init();
A.on(document,"mouseup",this.handleMouseUp,this,true);A.on(document,"mousemove",this.handleMouseMove,this,true);A.on(window,"unload",this._onUnload,this,true);A.on(window,"resize",this._onResize,this,true)},_onResize:function(B){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:350,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(C,B){if(!this.initialized){this.init()}if(!this.ids[B]){this.ids[B]={}}this.ids[B][C.id]=C},removeDDFromGroup:function(D,B){if(!this.ids[B]){this.ids[B]={}}var C=this.ids[B];if(C&&C[D.id]){delete C[D.id]}},_remove:function(C){for(var B in C.groups){if(B&&this.ids[B]&&this.ids[B][C.id]){delete this.ids[B][C.id]}}delete this.handleIds[C.id]},regHandle:function(C,B){if(!this.handleIds[C]){this.handleIds[C]={}}this.handleIds[C][B]=B},isDragDrop:function(B){return(this.getDDById(B))?true:false},getRelated:function(G,C){var F=[];
for(var E in G.groups){for(var D in this.ids[E]){var B=this.ids[E][D];if(!this.isTypeOfDD(B)){continue}if(!C||B.isTarget){F[F.length]=B}}}return F},isLegalTarget:function(F,E){var C=this.getRelated(F,true);for(var D=0,B=C.length;D<B;++D){if(C[D].id==E.id){return true}}return false},isTypeOfDD:function(B){return(B&&B.__ygDragDrop)},isHandle:function(C,B){return(this.handleIds[C]&&this.handleIds[C][B])},getDDById:function(C){for(var B in this.ids){if(this.ids[B][C]){return this.ids[B][C]}}return null},handleMouseDown:function(D,C){if(Ext.QuickTips){Ext.QuickTips.ddDisable()}if(this.dragCurrent){this.handleMouseUp(D)}this.currentTarget=D.getTarget();this.dragCurrent=C;var B=C.getEl();this.startX=D.getPageX();this.startY=D.getPageY();this.deltaX=this.startX-B.offsetLeft;this.deltaY=this.startY-B.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var E=Ext.dd.DDM;E.startDrag(E.startX,E.startY)},this.clickTimeThresh)},startDrag:function(B,C){clearTimeout(this.clickTimeout);if(this.dragCurrent){this.dragCurrent.b4StartDrag(B,C);
this.dragCurrent.startDrag(B,C)}this.dragThreshMet=true},handleMouseUp:function(B){if(Ext.QuickTips){Ext.QuickTips.ddEnable()}if(!this.dragCurrent){return }clearTimeout(this.clickTimeout);if(this.dragThreshMet){this.fireEvents(B,true)}else{}this.stopDrag(B);this.stopEvent(B)},stopEvent:function(B){if(this.stopPropagation){B.stopPropagation()}if(this.preventDefault){B.preventDefault()}},stopDrag:function(B){if(this.dragCurrent){if(this.dragThreshMet){this.dragCurrent.b4EndDrag(B);this.dragCurrent.endDrag(B)}this.dragCurrent.onMouseUp(B)}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(D){if(!this.dragCurrent){return true}if(Ext.isIE&&(D.button!==0&&D.button!==1&&D.button!==2)){this.stopEvent(D);return this.handleMouseUp(D)}if(!this.dragThreshMet){var C=Math.abs(this.startX-D.getPageX());var B=Math.abs(this.startY-D.getPageY());if(C>this.clickPixelThresh||B>this.clickPixelThresh){this.startDrag(this.startX,this.startY)}}if(this.dragThreshMet){this.dragCurrent.b4Drag(D);this.dragCurrent.onDrag(D);
if(!this.dragCurrent.moveOnly){this.fireEvents(D,false)}}this.stopEvent(D);return true},fireEvents:function(K,L){var N=this.dragCurrent;if(!N||N.isLocked()){return }var O=K.getPoint();var B=[];var E=[];var I=[];var G=[];var D=[];for(var F in this.dragOvers){var C=this.dragOvers[F];if(!this.isTypeOfDD(C)){continue}if(!this.isOverTarget(O,C,this.mode)){E.push(C)}B[F]=true;delete this.dragOvers[F]}for(var M in N.groups){if("string"!=typeof M){continue}for(F in this.ids[M]){var H=this.ids[M][F];if(!this.isTypeOfDD(H)){continue}if(H.isTarget&&!H.isLocked()&&((H!=N)||(N.ignoreSelf===false))){if(this.isOverTarget(O,H,this.mode)){if(L){G.push(H)}else{if(!B[H.id]){D.push(H)}else{I.push(H)}this.dragOvers[H.id]=H}}}}}if(this.mode){if(E.length){N.b4DragOut(K,E);N.onDragOut(K,E)}if(D.length){N.onDragEnter(K,D)}if(I.length){N.b4DragOver(K,I);N.onDragOver(K,I)}if(G.length){N.b4DragDrop(K,G);N.onDragDrop(K,G)}}else{var J=0;for(F=0,J=E.length;F<J;++F){N.b4DragOut(K,E[F].id);N.onDragOut(K,E[F].id)}for(F=0,J=D.length;F<J;++F){N.onDragEnter(K,D[F].id)
}for(F=0,J=I.length;F<J;++F){N.b4DragOver(K,I[F].id);N.onDragOver(K,I[F].id)}for(F=0,J=G.length;F<J;++F){N.b4DragDrop(K,G[F].id);N.onDragDrop(K,G[F].id)}}if(L&&!G.length){N.onInvalidDrop(K)}},getBestMatch:function(D){var F=null;var C=D.length;if(C==1){F=D[0]}else{for(var E=0;E<C;++E){var B=D[E];if(B.cursorIsOver){F=B;break}else{if(!F||F.overlap.getArea()<B.overlap.getArea()){F=B}}}}return F},refreshCache:function(C){for(var B in C){if("string"!=typeof B){continue}for(var D in this.ids[B]){var E=this.ids[B][D];if(this.isTypeOfDD(E)){var F=this.getLocation(E);if(F){this.locationCache[E.id]=F}else{delete this.locationCache[E.id]}}}}},verifyEl:function(C){if(C){var B;if(Ext.isIE){try{B=C.offsetParent}catch(D){}}else{B=C.offsetParent}if(B){return true}}return false},getLocation:function(G){if(!this.isTypeOfDD(G)){return null}var E=G.getEl(),K,D,C,M,L,N,B,J,F,I;try{K=Ext.lib.Dom.getXY(E)}catch(H){}if(!K){return null}D=K[0];C=D+E.offsetWidth;M=K[1];L=M+E.offsetHeight;N=M-G.padding[0];B=C+G.padding[1];J=L+G.padding[2];
F=D-G.padding[3];I=new Ext.lib.Region(N,B,J,F);E=Ext.get(E.parentNode);while(E&&I){if(E.isScrollable()){I=I.intersect(E.getRegion())}E=E.parent()}return I},isOverTarget:function(J,B,D){var F=this.locationCache[B.id];if(!F||!this.useCache){F=this.getLocation(B);this.locationCache[B.id]=F}if(!F){return false}B.cursorIsOver=F.contains(J);var I=this.dragCurrent;if(!I||!I.getTargetCoord||(!D&&!I.constrainX&&!I.constrainY)){return B.cursorIsOver}B.overlap=null;var G=I.getTargetCoord(J.x,J.y);var C=I.getDragEl();var E=new Ext.lib.Region(G.y,G.x+C.offsetWidth,G.y+C.offsetHeight,G.x);var H=E.intersect(F);if(H){B.overlap=H;return(D)?true:B.cursorIsOver}else{return false}},_onUnload:function(C,B){A.removeListener(document,"mouseup",this.handleMouseUp,this);A.removeListener(document,"mousemove",this.handleMouseMove,this);A.removeListener(window,"resize",this._onResize,this);Ext.dd.DragDropMgr.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll("unreg",[]);for(var B in this.elementCache){delete this.elementCache[B]
}this.elementCache={};this.ids={}},elementCache:{},getElWrapper:function(C){var B=this.elementCache[C];if(!B||!B.el){B=this.elementCache[C]=new this.ElementWrapper(Ext.getDom(C))}return B},getElement:function(B){return Ext.getDom(B)},getCss:function(C){var B=Ext.getDom(C);return(B)?B.style:null},ElementWrapper:function(B){this.el=B||null;this.id=this.el&&B.id;this.css=this.el&&B.style},getPosX:function(B){return Ext.lib.Dom.getX(B)},getPosY:function(B){return Ext.lib.Dom.getY(B)},swapNode:function(D,B){if(D.swapNode){D.swapNode(B)}else{var E=B.parentNode;var C=B.nextSibling;if(C==D){E.insertBefore(D,B)}else{if(B==D.nextSibling){E.insertBefore(B,D)}else{D.parentNode.replaceChild(B,D);E.insertBefore(D,C)}}}},getScroll:function(){var D,B,E=document.documentElement,C=document.body;if(E&&(E.scrollTop||E.scrollLeft)){D=E.scrollTop;B=E.scrollLeft}else{if(C){D=C.scrollTop;B=C.scrollLeft}else{}}return{top:D,left:B}},getStyle:function(C,B){return Ext.fly(C).getStyle(B)},getScrollTop:function(){return this.getScroll().top
},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(B,D){var C=Ext.lib.Dom.getXY(D);Ext.lib.Dom.setXY(B,C)},numericSort:function(C,B){return(C-B)},_timeoutCount:0,_addListeners:function(){var B=Ext.dd.DDM;if(Ext.lib.Event&&document){B._onLoad()}else{if(B._timeoutCount>2000){}else{setTimeout(B._addListeners,10);if(document&&document.body){B._timeoutCount+=1}}}},handleWasClicked:function(B,D){if(this.isHandle(D,B.id)){return true}else{var C=B.parentNode;while(C){if(this.isHandle(D,C.id)){return true}else{C=C.parentNode}}}return false}}}();Ext.dd.DDM=Ext.dd.DragDropMgr;Ext.dd.DDM._addListeners()}Ext.dd.DD=function(C,A,B){if(C){this.init(C,A,B)}};Ext.extend(Ext.dd.DD,Ext.dd.DragDrop,{scroll:true,autoOffset:function(C,B){var A=C-this.startPageX;var D=B-this.startPageY;this.setDelta(A,D)},setDelta:function(B,A){this.deltaX=B;this.deltaY=A},setDragElPos:function(C,B){var A=this.getDragEl();this.alignElWithMouse(A,C,B)},alignElWithMouse:function(C,G,F){var E=this.getTargetCoord(G,F);var B=C.dom?C:Ext.fly(C,"_dd");
if(!this.deltaSetXY){var H=[E.x,E.y];B.setXY(H);var D=B.getLeft(true);var A=B.getTop(true);this.deltaSetXY=[D-E.x,A-E.y]}else{B.setLeftTop(E.x+this.deltaSetXY[0],E.y+this.deltaSetXY[1])}this.cachePosition(E.x,E.y);this.autoScroll(E.x,E.y,C.offsetHeight,C.offsetWidth);return E},cachePosition:function(B,A){if(B){this.lastPageX=B;this.lastPageY=A}else{var C=Ext.lib.Dom.getXY(this.getEl());this.lastPageX=C[0];this.lastPageY=C[1]}},autoScroll:function(J,I,E,K){if(this.scroll){var L=Ext.lib.Dom.getViewHeight();var B=Ext.lib.Dom.getViewWidth();var N=this.DDM.getScrollTop();var D=this.DDM.getScrollLeft();var H=E+I;var M=K+J;var G=(L+N-I-this.deltaY);var F=(B+D-J-this.deltaX);var C=40;var A=(document.all)?80:30;if(H>L&&G<C){window.scrollTo(D,N+A)}if(I<N&&N>0&&I-N<C){window.scrollTo(D,N-A)}if(M>B&&F<C){window.scrollTo(D+A,N)}if(J<D&&D>0&&J-D<C){window.scrollTo(D-A,N)}}},getTargetCoord:function(C,B){var A=C-this.deltaX;var D=B-this.deltaY;if(this.constrainX){if(A<this.minX){A=this.minX}if(A>this.maxX){A=this.maxX}}if(this.constrainY){if(D<this.minY){D=this.minY
}if(D>this.maxY){D=this.maxY}}A=this.getTick(A,this.xTicks);D=this.getTick(D,this.yTicks);return{x:A,y:D}},applyConfig:function(){Ext.dd.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(A){this.autoOffset(A.getPageX(),A.getPageY())},b4Drag:function(A){this.setDragElPos(A.getPageX(),A.getPageY())},toString:function(){return("DD "+this.id)}});Ext.dd.DDProxy=function(C,A,B){if(C){this.init(C,A,B);this.initFrame()}};Ext.dd.DDProxy.dragElId="ygddfdiv";Ext.extend(Ext.dd.DDProxy,Ext.dd.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var B=this;var A=document.body;if(!A||!A.firstChild){setTimeout(function(){B.createFrame()},50);return }var D=this.getDragEl();if(!D){D=document.createElement("div");D.id=this.dragElId;var C=D.style;C.position="absolute";C.visibility="hidden";C.cursor="move";C.border="2px solid #aaa";C.zIndex=999;A.insertBefore(D,A.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DDProxy.superclass.applyConfig.call(this);
this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(E,D){var C=this.getEl();var A=this.getDragEl();var B=A.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(B.width,10)/2),Math.round(parseInt(B.height,10)/2))}this.setDragElPos(E,D);Ext.fly(A).show()},_resizeProxy:function(){if(this.resizeFrame){var A=this.getEl();Ext.fly(this.getDragEl()).setSize(A.offsetWidth,A.offsetHeight)}},b4MouseDown:function(B){var A=B.getPageX();var C=B.getPageY();this.autoOffset(A,C);this.setDragElPos(A,C)},b4StartDrag:function(A,B){this.showFrame(A,B)},b4EndDrag:function(A){Ext.fly(this.getDragEl()).hide()},endDrag:function(C){var B=this.getEl();var A=this.getDragEl();A.style.visibility="";this.beforeMove();B.style.visibility="hidden";Ext.dd.DDM.moveToEl(B,A);A.style.visibility="hidden";B.style.visibility="";this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return("DDProxy "+this.id)
}});Ext.dd.DDTarget=function(C,A,B){if(C){this.initTarget(C,A,B)}};Ext.extend(Ext.dd.DDTarget,Ext.dd.DragDrop,{getDragEl:Ext.emptyFn,isValidHandleChild:Ext.emptyFn,startDrag:Ext.emptyFn,endDrag:Ext.emptyFn,onDrag:Ext.emptyFn,onDragDrop:Ext.emptyFn,onDragEnter:Ext.emptyFn,onDragOut:Ext.emptyFn,onDragOver:Ext.emptyFn,onInvalidDrop:Ext.emptyFn,onMouseDown:Ext.emptyFn,onMouseUp:Ext.emptyFn,setXConstraint:Ext.emptyFn,setYConstraint:Ext.emptyFn,resetConstraints:Ext.emptyFn,clearConstraints:Ext.emptyFn,clearTicks:Ext.emptyFn,setInitPosition:Ext.emptyFn,setDragElId:Ext.emptyFn,setHandleElId:Ext.emptyFn,setOuterHandleElId:Ext.emptyFn,addInvalidHandleClass:Ext.emptyFn,addInvalidHandleId:Ext.emptyFn,addInvalidHandleType:Ext.emptyFn,removeInvalidHandleClass:Ext.emptyFn,removeInvalidHandleId:Ext.emptyFn,removeInvalidHandleType:Ext.emptyFn,toString:function(){return("DDTarget "+this.id)}});Ext.dd.DragTracker=Ext.extend(Ext.util.Observable,{active:false,tolerance:5,autoStart:false,constructor:function(A){Ext.apply(this,A);this.addEvents("mousedown","mouseup","mousemove","dragstart","dragend","drag");
this.dragRegion=new Ext.lib.Region(0,0,0,0);if(this.el){this.initEl(this.el)}Ext.dd.DragTracker.superclass.constructor.call(this,A)},initEl:function(A){this.el=Ext.get(A);A.on("mousedown",this.onMouseDown,this,this.delegate?{delegate:this.delegate}:undefined)},destroy:function(){this.el.un("mousedown",this.onMouseDown,this);delete this.el},onMouseDown:function(B,A){if(this.fireEvent("mousedown",this,B)!==false&&this.onBeforeStart(B)!==false){this.startXY=this.lastXY=B.getXY();this.dragTarget=this.delegate?A:this.el.dom;if(this.preventDefault!==false){B.preventDefault()}Ext.getDoc().on({scope:this,mouseup:this.onMouseUp,mousemove:this.onMouseMove,selectstart:this.stopSelect});if(this.autoStart){this.timer=this.triggerStart.defer(this.autoStart===true?1000:this.autoStart,this,[B])}}},onMouseMove:function(D,C){if(this.active&&Ext.isIE&&!D.browserEvent.button){D.preventDefault();this.onMouseUp(D);return }D.preventDefault();var B=D.getXY(),A=this.startXY;this.lastXY=B;if(!this.active){if(Math.abs(A[0]-B[0])>this.tolerance||Math.abs(A[1]-B[1])>this.tolerance){this.triggerStart(D)
}else{return }}this.fireEvent("mousemove",this,D);this.onDrag(D);this.fireEvent("drag",this,D)},onMouseUp:function(C){var B=Ext.getDoc(),A=this.active;B.un("mousemove",this.onMouseMove,this);B.un("mouseup",this.onMouseUp,this);B.un("selectstart",this.stopSelect,this);C.preventDefault();this.clearStart();this.active=false;delete this.elRegion;this.fireEvent("mouseup",this,C);if(A){this.onEnd(C);this.fireEvent("dragend",this,C)}},triggerStart:function(A){this.clearStart();this.active=true;this.onStart(A);this.fireEvent("dragstart",this,A)},clearStart:function(){if(this.timer){clearTimeout(this.timer);delete this.timer}},stopSelect:function(A){A.stopEvent();return false},onBeforeStart:function(A){},onStart:function(A){},onDrag:function(A){},onEnd:function(A){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getXY:function(A){return A?this.constrainModes[A].call(this,this.lastXY):this.lastXY},getOffset:function(C){var B=this.getXY(C),A=this.startXY;return[A[0]-B[0],A[1]-B[1]]},constrainModes:{"point":function(B){if(!this.elRegion){this.elRegion=this.getDragCt().getRegion()
}var A=this.dragRegion;A.left=B[0];A.top=B[1];A.right=B[0];A.bottom=B[1];A.constrainTo(this.elRegion);return[A.left,A.top]}}});Ext.dd.ScrollManager=function(){var C=Ext.dd.DragDropMgr;var E={};var B=null;var H={};var G=function(K){B=null;A()};var I=function(){if(C.dragCurrent){C.refreshCache(C.dragCurrent.groups)}};var D=function(){if(C.dragCurrent){var K=Ext.dd.ScrollManager;var L=H.el.ddScrollConfig?H.el.ddScrollConfig.increment:K.increment;if(!K.animate){if(H.el.scroll(H.dir,L)){I()}}else{H.el.scroll(H.dir,L,true,K.animDuration,I)}}};var A=function(){if(H.id){clearInterval(H.id)}H.id=0;H.el=null;H.dir=""};var F=function(L,K){A();H.el=L;H.dir=K;var N=L.ddScrollConfig?L.ddScrollConfig.ddGroup:undefined,M=(L.ddScrollConfig&&L.ddScrollConfig.frequency)?L.ddScrollConfig.frequency:Ext.dd.ScrollManager.frequency;if(N===undefined||C.dragCurrent.ddGroup==N){H.id=setInterval(D,M)}};var J=function(N,P){if(P||!C.dragCurrent){return }var Q=Ext.dd.ScrollManager;if(!B||B!=C.dragCurrent){B=C.dragCurrent;Q.refreshCache()}var R=Ext.lib.Event.getXY(N);
var S=new Ext.lib.Point(R[0],R[1]);for(var L in E){var M=E[L],K=M._region;var O=M.ddScrollConfig?M.ddScrollConfig:Q;if(K&&K.contains(S)&&M.isScrollable()){if(K.bottom-S.y<=O.vthresh){if(H.el!=M){F(M,"down")}return }else{if(K.right-S.x<=O.hthresh){if(H.el!=M){F(M,"left")}return }else{if(S.y-K.top<=O.vthresh){if(H.el!=M){F(M,"up")}return }else{if(S.x-K.left<=O.hthresh){if(H.el!=M){F(M,"right")}return }}}}}}A()};C.fireEvents=C.fireEvents.createSequence(J,C);C.stopDrag=C.stopDrag.createSequence(G,C);return{register:function(M){if(Ext.isArray(M)){for(var L=0,K=M.length;L<K;L++){this.register(M[L])}}else{M=Ext.get(M);E[M.id]=M}},unregister:function(M){if(Ext.isArray(M)){for(var L=0,K=M.length;L<K;L++){this.unregister(M[L])}}else{M=Ext.get(M);delete E[M.id]}},vthresh:25,hthresh:25,increment:100,frequency:500,animate:true,animDuration:0.4,ddGroup:undefined,refreshCache:function(){for(var K in E){if(typeof E[K]=="object"){E[K]._region=E[K].getRegion()}}}}}();Ext.dd.Registry=function(){var D={};var B={};var A=0;var C=function(F,E){if(typeof F=="string"){return F
}var G=F.id;if(!G&&E!==false){G="extdd-"+(++A);F.id=G}return G};return{register:function(H,I){I=I||{};if(typeof H=="string"){H=document.getElementById(H)}I.ddel=H;D[C(H)]=I;if(I.isHandle!==false){B[I.ddel.id]=I}if(I.handles){var G=I.handles;for(var F=0,E=G.length;F<E;F++){B[C(G[F])]=I}}},unregister:function(H){var J=C(H,false);var I=D[J];if(I){delete D[J];if(I.handles){var G=I.handles;for(var F=0,E=G.length;F<E;F++){delete B[C(G[F],false)]}}}},getHandle:function(E){if(typeof E!="string"){E=E.id}return B[E]},getHandleFromEvent:function(F){var E=Ext.lib.Event.getTarget(F);return E?B[E.id]:null},getTarget:function(E){if(typeof E!="string"){E=E.id}return D[E]},getTargetFromEvent:function(F){var E=Ext.lib.Event.getTarget(F);return E?D[E.id]||B[E.id]:null}}}();Ext.dd.StatusProxy=function(A){Ext.apply(this,A);this.id=this.id||Ext.id();this.el=new Ext.Layer({dh:{id:this.id,tag:"div",cls:"x-dd-drag-proxy "+this.dropNotAllowed,children:[{tag:"div",cls:"x-dd-drop-icon"},{tag:"div",cls:"x-dd-drag-ghost"}]},shadow:!A||A.shadow!==false});
this.ghost=Ext.get(this.el.dom.childNodes[1]);this.dropStatus=this.dropNotAllowed};Ext.dd.StatusProxy.prototype={dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",setStatus:function(A){A=A||this.dropNotAllowed;if(this.dropStatus!=A){this.el.replaceClass(this.dropStatus,A);this.dropStatus=A}},reset:function(A){this.el.dom.className="x-dd-drag-proxy "+this.dropNotAllowed;this.dropStatus=this.dropNotAllowed;if(A){this.ghost.update("")}},update:function(A){if(typeof A=="string"){this.ghost.update(A)}else{this.ghost.update("");A.style.margin="0";this.ghost.dom.appendChild(A)}var B=this.ghost.dom.firstChild;if(B){Ext.fly(B).setStyle("float","none")}},getEl:function(){return this.el},getGhost:function(){return this.ghost},hide:function(A){this.el.hide();if(A){this.reset(true)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},show:function(){this.el.show()},sync:function(){this.el.sync()},repair:function(B,C,A){this.callback=C;this.scope=A;if(B&&this.animRepair!==false){this.el.addClass("x-dd-drag-repair");
this.el.hideUnders(true);this.anim=this.el.shift({duration:this.repairDuration||0.5,easing:"easeOut",xy:B,stopFx:true,callback:this.afterRepair,scope:this})}else{this.afterRepair()}},afterRepair:function(){this.hide(true);if(typeof this.callback=="function"){this.callback.call(this.scope||this)}this.callback=null;this.scope=null},destroy:function(){Ext.destroy(this.ghost,this.el)}};Ext.dd.DragSource=function(B,A){this.el=Ext.get(B);if(!this.dragData){this.dragData={}}Ext.apply(this,A);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy()}Ext.dd.DragSource.superclass.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:false,isTarget:false,scroll:this.scroll===true});this.dragging=false};Ext.extend(Ext.dd.DragSource,Ext.dd.DDProxy,{dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",getDragData:function(A){return this.dragData},onDragEnter:function(C,D){var B=Ext.dd.DragDropMgr.getDDById(D);this.cachedTarget=B;if(this.beforeDragEnter(B,C,D)!==false){if(B.isNotifyTarget){var A=B.notifyEnter(this,C,this.dragData);
this.proxy.setStatus(A)}else{this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(B,C,D)}}},beforeDragEnter:function(B,A,C){return true},alignElWithMouse:function(){Ext.dd.DragSource.superclass.alignElWithMouse.apply(this,arguments);this.proxy.sync()},onDragOver:function(C,D){var B=this.cachedTarget||Ext.dd.DragDropMgr.getDDById(D);if(this.beforeDragOver(B,C,D)!==false){if(B.isNotifyTarget){var A=B.notifyOver(this,C,this.dragData);this.proxy.setStatus(A)}if(this.afterDragOver){this.afterDragOver(B,C,D)}}},beforeDragOver:function(B,A,C){return true},onDragOut:function(B,C){var A=this.cachedTarget||Ext.dd.DragDropMgr.getDDById(C);if(this.beforeDragOut(A,B,C)!==false){if(A.isNotifyTarget){A.notifyOut(this,B,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(A,B,C)}}this.cachedTarget=null},beforeDragOut:function(B,A,C){return true},onDragDrop:function(B,C){var A=this.cachedTarget||Ext.dd.DragDropMgr.getDDById(C);if(this.beforeDragDrop(A,B,C)!==false){if(A.isNotifyTarget){if(A.notifyDrop(this,B,this.dragData)){this.onValidDrop(A,B,C)
}else{this.onInvalidDrop(A,B,C)}}else{this.onValidDrop(A,B,C)}if(this.afterDragDrop){this.afterDragDrop(A,B,C)}}delete this.cachedTarget},beforeDragDrop:function(B,A,C){return true},onValidDrop:function(B,A,C){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(B,A,C)}},getRepairXY:function(B,A){return this.el.getXY()},onInvalidDrop:function(B,A,C){this.beforeInvalidDrop(B,A,C);if(this.cachedTarget){if(this.cachedTarget.isNotifyTarget){this.cachedTarget.notifyOut(this,A,this.dragData)}this.cacheTarget=null}this.proxy.repair(this.getRepairXY(A,this.dragData),this.afterRepair,this);if(this.afterInvalidDrop){this.afterInvalidDrop(A,C)}},afterRepair:function(){if(Ext.enableFx){this.el.highlight(this.hlColor||"c3daf9")}this.dragging=false},beforeInvalidDrop:function(B,A,C){return true},handleMouseDown:function(B){if(this.dragging){return }var A=this.getDragData(B);if(A&&this.onBeforeDrag(A,B)!==false){this.dragData=A;this.proxy.stop();Ext.dd.DragSource.superclass.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(A,B){return true
},onStartDrag:Ext.emptyFn,startDrag:function(A,B){this.proxy.reset();this.dragging=true;this.proxy.update("");this.onInitDrag(A,B);this.proxy.show()},onInitDrag:function(A,C){var B=this.el.dom.cloneNode(true);B.id=Ext.id();this.proxy.update(B);this.onStartDrag(A,C);return true},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(true);this.dragging=false},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(A){},endDrag:function(A){this.onEndDrag(this.dragData,A)},onEndDrag:function(A,B){},autoOffset:function(A,B){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DragSource.superclass.destroy.call(this);Ext.destroy(this.proxy)}});Ext.dd.DropTarget=Ext.extend(Ext.dd.DDTarget,{constructor:function(B,A){this.el=Ext.get(B);Ext.apply(this,A);if(this.containerScroll){Ext.dd.ScrollManager.register(this.el)}Ext.dd.DropTarget.superclass.constructor.call(this,this.el.dom,this.ddGroup||this.group,{isTarget:true})},dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",isTarget:true,isNotifyTarget:true,notifyEnter:function(A,C,B){if(this.overClass){this.el.addClass(this.overClass)
}return this.dropAllowed},notifyOver:function(A,C,B){return this.dropAllowed},notifyOut:function(A,C,B){if(this.overClass){this.el.removeClass(this.overClass)}},notifyDrop:function(A,C,B){return false},destroy:function(){Ext.dd.DropTarget.superclass.destroy.call(this);if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.el)}}});Ext.dd.DragZone=Ext.extend(Ext.dd.DragSource,{constructor:function(B,A){Ext.dd.DragZone.superclass.constructor.call(this,B,A);if(this.containerScroll){Ext.dd.ScrollManager.register(this.el)}},getDragData:function(A){return Ext.dd.Registry.getHandleFromEvent(A)},onInitDrag:function(A,B){this.proxy.update(this.dragData.ddel.cloneNode(true));this.onStartDrag(A,B);return true},afterRepair:function(){if(Ext.enableFx){Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor||"c3daf9")}this.dragging=false},getRepairXY:function(A){return Ext.Element.fly(this.dragData.ddel).getXY()},destroy:function(){Ext.dd.DragZone.superclass.destroy.call(this);if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.el)
}}});Ext.dd.DropZone=function(B,A){Ext.dd.DropZone.superclass.constructor.call(this,B,A)};Ext.extend(Ext.dd.DropZone,Ext.dd.DropTarget,{getTargetFromEvent:function(A){return Ext.dd.Registry.getTargetFromEvent(A)},onNodeEnter:function(D,A,C,B){},onNodeOver:function(D,A,C,B){return this.dropAllowed},onNodeOut:function(D,A,C,B){},onNodeDrop:function(D,A,C,B){return false},onContainerOver:function(A,C,B){return this.dropNotAllowed},onContainerDrop:function(A,C,B){return false},notifyEnter:function(A,C,B){return this.dropNotAllowed},notifyOver:function(A,C,B){var D=this.getTargetFromEvent(C);if(!D){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,A,C,B);this.lastOverNode=null}return this.onContainerOver(A,C,B)}if(this.lastOverNode!=D){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,A,C,B)}this.onNodeEnter(D,A,C,B);this.lastOverNode=D}return this.onNodeOver(D,A,C,B)},notifyOut:function(A,C,B){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,A,C,B);this.lastOverNode=null}},notifyDrop:function(A,C,B){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,A,C,B);
this.lastOverNode=null}var D=this.getTargetFromEvent(C);return D?this.onNodeDrop(D,A,C,B):this.onContainerDrop(A,C,B)},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)}});Ext.Element.addMethods({initDD:function(C,B,D){var A=new Ext.dd.DD(Ext.id(this.dom),C,B);return Ext.apply(A,D)},initDDProxy:function(C,B,D){var A=new Ext.dd.DDProxy(Ext.id(this.dom),C,B);return Ext.apply(A,D)},initDDTarget:function(C,B,D){var A=new Ext.dd.DDTarget(Ext.id(this.dom),C,B);return Ext.apply(A,D)}});Ext.data.Api=(function(){var A={};return{actions:{create:"create",read:"read",update:"update",destroy:"destroy"},restActions:{create:"POST",read:"GET",update:"PUT",destroy:"DELETE"},isAction:function(B){return(Ext.data.Api.actions[B])?true:false},getVerb:function(B){if(A[B]){return A[B]}for(var C in this.actions){if(this.actions[C]===B){A[B]=C;break}}return(A[B]!==undefined)?A[B]:null},isValid:function(B){var E=[];var D=this.actions;for(var C in B){if(!(C in D)){E.push(C)}}return(!E.length)?true:E},hasUniqueUrl:function(C,F){var B=(C.api[F])?C.api[F].url:null;
var E=true;for(var D in C.api){if((E=(D===F)?true:(C.api[D].url!=B)?true:false)===false){break}}return E},prepare:function(B){if(!B.api){B.api={}}for(var D in this.actions){var C=this.actions[D];B.api[C]=B.api[C]||B.url||B.directFn;if(typeof (B.api[C])=="string"){B.api[C]={url:B.api[C],method:(B.restful===true)?Ext.data.Api.restActions[C]:undefined}}}},restify:function(B){B.restful=true;for(var C in this.restActions){B.api[this.actions[C]].method||(B.api[this.actions[C]].method=this.restActions[C])}B.onWrite=B.onWrite.createInterceptor(function(H,I,F,E){var D=I.reader;var G=new Ext.data.Response({action:H,raw:F});switch(F.status){case 200:return true;break;case 201:if(Ext.isEmpty(G.raw.responseText)){G.success=true}else{return true}break;case 204:G.success=true;G.data=null;break;default:return true;break}if(G.success===true){this.fireEvent("write",this,H,G.data,G,E,I.request.arg)}else{this.fireEvent("exception",this,"remote",H,I,G,E)}I.request.callback.call(I.request.scope,G.data,G,G.success);return false},B)}}
})();Ext.data.Response=function(B,A){Ext.apply(this,B,{raw:A})};Ext.data.Response.prototype={message:null,success:false,status:null,root:null,raw:null,getMessage:function(){return this.message},getSuccess:function(){return this.success},getStatus:function(){return this.status},getRoot:function(){return this.root},getRawResponse:function(){return this.raw}};Ext.data.Api.Error=Ext.extend(Ext.Error,{constructor:function(B,A){this.arg=A;Ext.Error.call(this,B)},name:"Ext.data.Api"});Ext.apply(Ext.data.Api.Error.prototype,{lang:{"action-url-undefined":"No fallback url defined for this action.  When defining a DataProxy api, please be sure to define an url for each CRUD action in Ext.data.Api.actions or define a default url in addition to your api-configuration.","invalid":"received an invalid API-configuration.  Please ensure your proxy API-configuration contains only the actions defined in Ext.data.Api.actions","invalid-url":"Invalid url.  Please review your proxy configuration.","execute":'Attempted to execute an unknown action.  Valid API actions are defined in Ext.data.Api.actions"'}});
Ext.data.SortTypes={none:function(A){return A},stripTagsRE:/<\/?[^>]+>/gi,asText:function(A){return String(A).replace(this.stripTagsRE,"")},asUCText:function(A){return String(A).toUpperCase().replace(this.stripTagsRE,"")},asUCString:function(A){return String(A).toUpperCase()},asDate:function(A){if(!A){return 0}if(Ext.isDate(A)){return A.getTime()}return Date.parse(String(A))},asFloat:function(A){var B=parseFloat(String(A).replace(/,/g,""));return isNaN(B)?0:B},asInt:function(A){var B=parseInt(String(A).replace(/,/g,""),10);return isNaN(B)?0:B}};Ext.data.Record=function(A,B){this.id=(B||B===0)?B:Ext.data.Record.id(this);this.data=A||{}};Ext.data.Record.create=function(E){var C=Ext.extend(Ext.data.Record,{});var D=C.prototype;D.fields=new Ext.util.MixedCollection(false,function(F){return F.name});for(var B=0,A=E.length;B<A;B++){D.fields.add(new Ext.data.Field(E[B]))}C.getField=function(F){return D.fields.get(F)};return C};Ext.data.Record.PREFIX="ext-record";Ext.data.Record.AUTO_ID=1;Ext.data.Record.EDIT="edit";Ext.data.Record.REJECT="reject";
Ext.data.Record.COMMIT="commit";Ext.data.Record.id=function(A){A.phantom=true;return[Ext.data.Record.PREFIX,"-",Ext.data.Record.AUTO_ID++].join("")};Ext.data.Record.prototype={dirty:false,editing:false,error:null,modified:null,phantom:false,join:function(A){this.store=A},set:function(A,C){var B=Ext.isPrimitive(C)?String:Ext.encode;if(B(this.data[A])==B(C)){return }this.dirty=true;if(!this.modified){this.modified={}}if(this.modified[A]===undefined){this.modified[A]=this.data[A]}this.data[A]=C;if(!this.editing){this.afterEdit()}},afterEdit:function(){if(this.store!=undefined&&typeof this.store.afterEdit=="function"){this.store.afterEdit(this)}},afterReject:function(){if(this.store){this.store.afterReject(this)}},afterCommit:function(){if(this.store){this.store.afterCommit(this)}},get:function(A){return this.data[A]},beginEdit:function(){this.editing=true;this.modified=this.modified||{}},cancelEdit:function(){this.editing=false;delete this.modified},endEdit:function(){this.editing=false;if(this.dirty){this.afterEdit()
}},reject:function(B){var A=this.modified;for(var C in A){if(typeof A[C]!="function"){this.data[C]=A[C]}}this.dirty=false;delete this.modified;this.editing=false;if(B!==true){this.afterReject()}},commit:function(A){this.dirty=false;delete this.modified;this.editing=false;if(A!==true){this.afterCommit()}},getChanges:function(){var A=this.modified,B={};for(var C in A){if(A.hasOwnProperty(C)){B[C]=this.data[C]}}return B},hasError:function(){return this.error!==null},clearError:function(){this.error=null},copy:function(A){return new this.constructor(Ext.apply({},this.data),A||this.id)},isModified:function(A){return !!(this.modified&&this.modified.hasOwnProperty(A))},isValid:function(){return this.fields.find(function(A){return(A.allowBlank===false&&Ext.isEmpty(this.data[A.name]))?true:false},this)?false:true},markDirty:function(){this.dirty=true;if(!this.modified){this.modified={}}this.fields.each(function(A){this.modified[A.name]=this.data[A.name]},this)}};Ext.StoreMgr=Ext.apply(new Ext.util.MixedCollection(),{register:function(){for(var A=0,B;
(B=arguments[A]);A++){this.add(B)}},unregister:function(){for(var A=0,B;(B=arguments[A]);A++){this.remove(this.lookup(B))}},lookup:function(E){if(Ext.isArray(E)){var B=["field1"],D=!Ext.isArray(E[0]);if(!D){for(var C=2,A=E[0].length;C<=A;++C){B.push("field"+C)}}return new Ext.data.ArrayStore({fields:B,data:E,expandData:D,autoDestroy:true,autoCreated:true})}return Ext.isObject(E)?(E.events?E:Ext.create(E,"store")):this.get(E)},getKey:function(A){return A.storeId}});Ext.data.Store=Ext.extend(Ext.util.Observable,{writer:undefined,remoteSort:false,autoDestroy:false,pruneModifiedRecords:false,lastOptions:null,autoSave:true,batch:true,restful:false,paramNames:undefined,defaultParamNames:{start:"start",limit:"limit",sort:"sort",dir:"dir"},isDestroyed:false,hasMultiSort:false,batchKey:"_ext_batch_",constructor:function(A){this.data=new Ext.util.MixedCollection(false);this.data.getKey=function(B){return B.id};this.removed=[];if(A&&A.data){this.inlineData=A.data;delete A.data}Ext.apply(this,A);this.baseParams=Ext.isObject(this.baseParams)?this.baseParams:{};
this.paramNames=Ext.applyIf(this.paramNames||{},this.defaultParamNames);if((this.url||this.api)&&!this.proxy){this.proxy=new Ext.data.HttpProxy({url:this.url,api:this.api})}if(this.restful===true&&this.proxy){this.batch=false;Ext.data.Api.restify(this.proxy)}if(this.reader){if(!this.recordType){this.recordType=this.reader.recordType}if(this.reader.onMetaChange){this.reader.onMetaChange=this.reader.onMetaChange.createSequence(this.onMetaChange,this)}if(this.writer){if(this.writer instanceof (Ext.data.DataWriter)===false){this.writer=this.buildWriter(this.writer)}this.writer.meta=this.reader.meta;this.pruneModifiedRecords=true}}if(this.recordType){this.fields=this.recordType.prototype.fields}this.modified=[];this.addEvents("datachanged","metachange","add","remove","update","clear","exception","beforeload","load","loadexception","beforewrite","write","beforesave","save");if(this.proxy){this.relayEvents(this.proxy,["loadexception","exception"])}if(this.writer){this.on({scope:this,add:this.createRecords,remove:this.destroyRecord,update:this.updateRecord,clear:this.onClear})
}this.sortToggle={};if(this.sortField){this.setDefaultSort(this.sortField,this.sortDir)}else{if(this.sortInfo){this.setDefaultSort(this.sortInfo.field,this.sortInfo.direction)}}Ext.data.Store.superclass.constructor.call(this);if(this.id){this.storeId=this.id;delete this.id}if(this.storeId){Ext.StoreMgr.register(this)}if(this.inlineData){this.loadData(this.inlineData);delete this.inlineData}else{if(this.autoLoad){this.load.defer(10,this,[typeof this.autoLoad=="object"?this.autoLoad:undefined])}}this.batchCounter=0;this.batches={}},buildWriter:function(B){var A=undefined,C=(B.format||"json").toLowerCase();switch(C){case"json":A=Ext.data.JsonWriter;break;case"xml":A=Ext.data.XmlWriter;break;default:A=Ext.data.JsonWriter}return new A(B)},destroy:function(){if(!this.isDestroyed){if(this.storeId){Ext.StoreMgr.unregister(this)}this.clearData();this.data=null;Ext.destroy(this.proxy);this.reader=this.writer=null;this.purgeListeners();this.isDestroyed=true}},add:function(C){var E,A,B,D;C=[].concat(C);if(C.length<1){return 
}for(E=0,A=C.length;E<A;E++){B=C[E];B.join(this);if(B.dirty||B.phantom){this.modified.push(B)}}D=this.data.length;this.data.addAll(C);if(this.snapshot){this.snapshot.addAll(C)}this.fireEvent("add",this,C,D)},addSorted:function(A){var B=this.findInsertIndex(A);this.insert(B,A)},doUpdate:function(A){var B=A.id;this.getById(B).join(null);this.data.replace(B,A);if(this.snapshot){this.snapshot.replace(B,A)}A.join(this);this.fireEvent("update",this,A,Ext.data.Record.COMMIT)},remove:function(A){if(Ext.isArray(A)){Ext.each(A,function(C){this.remove(C)},this);return }var B=this.data.indexOf(A);if(B>-1){A.join(null);this.data.removeAt(B)}if(this.pruneModifiedRecords){this.modified.remove(A)}if(this.snapshot){this.snapshot.remove(A)}if(B>-1){this.fireEvent("remove",this,A,B)}},removeAt:function(A){this.remove(this.getAt(A))},removeAll:function(B){var A=[];this.each(function(C){A.push(C)});this.clearData();if(this.snapshot){this.snapshot.clear()}if(this.pruneModifiedRecords){this.modified=[]}if(B!==true){this.fireEvent("clear",this,A)
}},onClear:function(B,A){Ext.each(A,function(D,C){this.destroyRecord(this,D,C)},this)},insert:function(D,C){var E,A,B;C=[].concat(C);for(E=0,A=C.length;E<A;E++){B=C[E];this.data.insert(D+E,B);B.join(this);if(B.dirty||B.phantom){this.modified.push(B)}}if(this.snapshot){this.snapshot.addAll(C)}this.fireEvent("add",this,C,D)},indexOf:function(A){return this.data.indexOf(A)},indexOfId:function(A){return this.data.indexOfKey(A)},getById:function(A){return(this.snapshot||this.data).key(A)},getAt:function(A){return this.data.itemAt(A)},getRange:function(B,A){return this.data.getRange(B,A)},storeOptions:function(A){A=Ext.apply({},A);delete A.callback;delete A.scope;this.lastOptions=A},clearData:function(){this.data.each(function(A){A.join(null)});this.data.clear()},load:function(B){B=Ext.apply({},B);this.storeOptions(B);if(this.sortInfo&&this.remoteSort){var A=this.paramNames;B.params=Ext.apply({},B.params);B.params[A.sort]=this.sortInfo.field;B.params[A.dir]=this.sortInfo.direction}try{return this.execute("read",null,B)
}catch(C){this.handleException(C);return false}},updateRecord:function(B,A,C){if(C==Ext.data.Record.EDIT&&this.autoSave===true&&(!A.phantom||(A.phantom&&A.isValid()))){this.save()}},createRecords:function(C,B,E){var D=this.modified,G=B.length,A,F;for(F=0;F<G;F++){A=B[F];if(A.phantom&&A.isValid()){A.markDirty();if(D.indexOf(A)==-1){D.push(A)}}}if(this.autoSave===true){this.save()}},destroyRecord:function(B,A,C){if(this.modified.indexOf(A)!=-1){this.modified.remove(A)}if(!A.phantom){this.removed.push(A);A.lastIndex=C;if(this.autoSave===true){this.save()}}},execute:function(E,A,C,B){if(!Ext.data.Api.isAction(E)){throw new Ext.data.Api.Error("execute",E)}C=Ext.applyIf(C||{},{params:{}});if(B!==undefined){this.addToBatch(B)}var D=true;if(E==="read"){D=this.fireEvent("beforeload",this,C);Ext.applyIf(C.params,this.baseParams)}else{if(this.writer.listful===true&&this.restful!==true){A=(Ext.isArray(A))?A:[A]}else{if(Ext.isArray(A)&&A.length==1){A=A.shift()}}if((D=this.fireEvent("beforewrite",this,E,A,C))!==false){this.writer.apply(C.params,this.baseParams,E,A)
}}if(D!==false){if(this.writer&&this.proxy.url&&!this.proxy.restful&&!Ext.data.Api.hasUniqueUrl(this.proxy,E)){C.params.xaction=E}this.proxy.request(Ext.data.Api.actions[E],A,C.params,this.reader,this.createCallback(E,A,B),this,C)}return D},save:function(){if(!this.writer){throw new Ext.data.Store.Error("writer-undefined")}var G=[],H,I,E,C={},D;if(this.removed.length){G.push(["destroy",this.removed])}var B=[].concat(this.getModifiedRecords());if(B.length){var F=[];for(D=B.length-1;D>=0;D--){if(B[D].phantom===true){var A=B.splice(D,1).shift();if(A.isValid()){F.push(A)}}else{if(!B[D].isValid()){B.splice(D,1)}}}if(F.length){G.push(["create",F])}if(B.length){G.push(["update",B])}}H=G.length;if(H){E=++this.batchCounter;for(D=0;D<H;++D){I=G[D];C[I[0]]=I[1]}if(this.fireEvent("beforesave",this,C)!==false){for(D=0;D<H;++D){I=G[D];this.doTransaction(I[0],I[1],E)}return E}}return -1},doTransaction:function(E,B,C){function F(G){try{this.execute(E,G,undefined,C)}catch(H){this.handleException(H)}}if(this.batch===false){for(var D=0,A=B.length;
D<A;D++){F.call(this,B[D])}}else{F.call(this,B)}},addToBatch:function(B){var A=this.batches,C=this.batchKey+B,D=A[C];if(!D){A[C]=D={id:B,count:0,data:{}}}++D.count},removeFromBatch:function(C,F,E){var B=this.batches,D=this.batchKey+C,G=B[D],A;if(G){A=G.data[F]||[];G.data[F]=A.concat(E);if(G.count===1){E=G.data;delete B[D];this.fireEvent("save",this,C,E)}else{--G.count}}},createCallback:function(C,A,B){var D=Ext.data.Api.actions;return(C=="read")?this.loadRecords:function(F,E,G){this["on"+Ext.util.Format.capitalize(C)+"Records"](G,A,[].concat(F));if(G===true){this.fireEvent("write",this,C,F,E,A)}this.removeFromBatch(B,C,F)}},clearModified:function(A){if(Ext.isArray(A)){for(var B=A.length-1;B>=0;B--){this.modified.splice(this.modified.indexOf(A[B]),1)}}else{this.modified.splice(this.modified.indexOf(A),1)}},reMap:function(B){if(Ext.isArray(B)){for(var D=0,A=B.length;D<A;D++){this.reMap(B[D])}}else{delete this.data.map[B._phid];this.data.map[B.id]=B;var C=this.data.keys.indexOf(B._phid);this.data.keys.splice(C,1,B.id);
delete B._phid}},onCreateRecords:function(D,A,B){if(D===true){try{this.reader.realize(A,B)}catch(C){this.handleException(C);if(Ext.isArray(A)){this.onCreateRecords(D,A,B)}}}},onUpdateRecords:function(D,A,B){if(D===true){try{this.reader.update(A,B)}catch(C){this.handleException(C);if(Ext.isArray(A)){this.onUpdateRecords(D,A,B)}}}},onDestroyRecords:function(E,B,D){B=(B instanceof Ext.data.Record)?[B]:[].concat(B);for(var C=0,A=B.length;C<A;C++){this.removed.splice(this.removed.indexOf(B[C]),1)}if(E===false){for(C=B.length-1;C>=0;C--){this.insert(B[C].lastIndex,B[C])}}},handleException:function(A){Ext.handleError(A)},reload:function(A){this.load(Ext.applyIf(A||{},this.lastOptions))},loadRecords:function(B,J,G){var E,F;if(this.isDestroyed===true){return }if(!B||G===false){if(G!==false){this.fireEvent("load",this,[],J)}if(J.callback){J.callback.call(J.scope||this,[],J,false,B)}return }var A=B.records,H=B.totalRecords||A.length;if(!J||J.add!==true){if(this.pruneModifiedRecords){this.modified=[]}for(E=0,F=A.length;E<F;
E++){A[E].join(this)}if(this.snapshot){this.data=this.snapshot;delete this.snapshot}this.clearData();this.data.addAll(A);this.totalLength=H;this.applySort();this.fireEvent("datachanged",this)}else{var I=[],D,C=0;for(E=0,F=A.length;E<F;++E){D=A[E];if(this.indexOfId(D.id)>-1){this.doUpdate(D)}else{I.push(D);++C}}this.totalLength=Math.max(H,this.data.length+C);this.add(I)}this.fireEvent("load",this,A,J);if(J.callback){J.callback.call(J.scope||this,A,J,true)}},loadData:function(C,A){var B=this.reader.readRecords(C);this.loadRecords(B,{add:A},true)},getCount:function(){return this.data.length||0},getTotalCount:function(){return this.totalLength||0},getSortState:function(){return this.sortInfo},applySort:function(){if((this.sortInfo||this.multiSortInfo)&&!this.remoteSort){this.sortData()}},sortData:function(){var A=this.hasMultiSort?this.multiSortInfo:this.sortInfo,H=A.direction||"ASC",G=A.sorters,C=[];if(!this.hasMultiSort){G=[{direction:H,field:A.field}]}for(var D=0,B=G.length;D<B;D++){C.push(this.createSortFunction(G[D].field,G[D].direction))
}if(C.length==0){return }var F=H.toUpperCase()=="DESC"?-1:1;var E=function(K,J){var I=C[0].call(this,K,J);if(C.length>1){for(var M=1,L=C.length;M<L;M++){I=I||C[M].call(this,K,J)}}return F*I};this.data.sort(H,E);if(this.snapshot&&this.snapshot!=this.data){this.snapshot.sort(H,E)}},createSortFunction:function(C,B){B=B||"ASC";var A=B.toUpperCase()=="DESC"?-1:1;var D=this.fields.get(C).sortType;return function(F,E){var H=D(F.data[C]),G=D(E.data[C]);return A*(H>G?1:(H<G?-1:0))}},setDefaultSort:function(B,A){A=A?A.toUpperCase():"ASC";this.sortInfo={field:B,direction:A};this.sortToggle[B]=A},sort:function(B,A){if(Ext.isArray(arguments[0])){return this.multiSort.call(this,B,A)}else{return this.singleSort(B,A)}},singleSort:function(F,C){var E=this.fields.get(F);if(!E){return false}var B=E.name,A=this.sortInfo||null,D=this.sortToggle?this.sortToggle[B]:null;if(!C){if(A&&A.field==B){C=(this.sortToggle[B]||"ASC").toggle("ASC","DESC")}else{C=E.sortDir}}this.sortToggle[B]=C;this.sortInfo={field:B,direction:C};this.hasMultiSort=false;
if(this.remoteSort){if(!this.load(this.lastOptions)){if(D){this.sortToggle[B]=D}if(A){this.sortInfo=A}}}else{this.applySort();this.fireEvent("datachanged",this)}return true},multiSort:function(B,A){this.hasMultiSort=true;A=A||"ASC";if(this.multiSortInfo&&A==this.multiSortInfo.direction){A=A.toggle("ASC","DESC")}this.multiSortInfo={sorters:B,direction:A};if(this.remoteSort){this.singleSort(B[0].field,B[0].direction)}else{this.applySort();this.fireEvent("datachanged",this)}},each:function(B,A){this.data.each(B,A)},getModifiedRecords:function(){return this.modified},sum:function(E,F,A){var C=this.data.items,B=0;F=F||0;A=(A||A===0)?A:C.length-1;for(var D=F;D<=A;D++){B+=(C[D].data[E]||0)}return B},createFilterFn:function(D,C,E,A,B){if(Ext.isEmpty(C,false)){return false}C=this.data.createValueMatcher(C,E,A,B);return function(F){return C.test(F.data[D])}},createMultipleFilterFn:function(A){return function(B){var H=true;for(var D=0,C=A.length;D<C;D++){var G=A[D],F=G.fn,E=G.scope;H=H&&F.call(E,B)}return H}},filter:function(K,J,G,H,E){var I;
if(Ext.isObject(K)){K=[K]}if(Ext.isArray(K)){var B=[];for(var F=0,D=K.length;F<D;F++){var A=K[F],C=A.fn,L=A.scope||this;if(!Ext.isFunction(C)){C=this.createFilterFn(A.property,A.value,A.anyMatch,A.caseSensitive,A.exactMatch)}B.push({fn:C,scope:L})}I=this.createMultipleFilterFn(B)}else{I=this.createFilterFn(K,J,G,H,E)}return I?this.filterBy(I):this.clearFilter()},filterBy:function(B,A){this.snapshot=this.snapshot||this.data;this.data=this.queryBy(B,A||this);this.fireEvent("datachanged",this)},clearFilter:function(A){if(this.isFiltered()){this.data=this.snapshot;delete this.snapshot;if(A!==true){this.fireEvent("datachanged",this)}}},isFiltered:function(){return !!this.snapshot&&this.snapshot!=this.data},query:function(D,C,E,A){var B=this.createFilterFn(D,C,E,A);return B?this.queryBy(B):this.data.clone()},queryBy:function(B,A){var C=this.snapshot||this.data;return C.filterBy(B,A||this)},find:function(D,C,F,E,A){var B=this.createFilterFn(D,C,E,A);return B?this.data.findIndexBy(B,null,F):-1},findExact:function(B,A,C){return this.data.findIndexBy(function(D){return D.get(B)===A
},this,C)},findBy:function(B,A,C){return this.data.findIndexBy(B,A,C)},collect:function(G,H,B){var F=(B===true&&this.snapshot)?this.snapshot.items:this.data.items;var I,J,A=[],C={};for(var D=0,E=F.length;D<E;D++){I=F[D].data[G];J=String(I);if((H||!Ext.isEmpty(I))&&!C[J]){C[J]=true;A[A.length]=I}}return A},afterEdit:function(A){if(this.modified.indexOf(A)==-1){this.modified.push(A)}this.fireEvent("update",this,A,Ext.data.Record.EDIT)},afterReject:function(A){this.modified.remove(A);this.fireEvent("update",this,A,Ext.data.Record.REJECT)},afterCommit:function(A){this.modified.remove(A);this.fireEvent("update",this,A,Ext.data.Record.COMMIT)},commitChanges:function(){var A=this.modified.slice(0),C=A.length,B;for(B=0;B<C;B++){A[B].commit()}this.modified=[];this.removed=[]},rejectChanges:function(){var A=this.modified.slice(0),E=this.removed.slice(0).reverse(),C=A.length,D=E.length,B;for(B=0;B<C;B++){A[B].reject()}for(B=0;B<D;B++){this.insert(E[B].lastIndex||0,E[B]);E[B].reject()}this.modified=[];this.removed=[]},onMetaChange:function(A){this.recordType=this.reader.recordType;
this.fields=this.recordType.prototype.fields;delete this.snapshot;if(this.reader.meta.sortInfo){this.sortInfo=this.reader.meta.sortInfo}else{if(this.sortInfo&&!this.fields.get(this.sortInfo.field)){delete this.sortInfo}}if(this.writer){this.writer.meta=this.reader.meta}this.modified=[];this.fireEvent("metachange",this,this.reader.meta)},findInsertIndex:function(A){this.suspendEvents();var C=this.data.clone();this.data.add(A);this.applySort();var B=this.data.indexOf(A);this.data=C;this.resumeEvents();return B},setBaseParam:function(A,B){this.baseParams=this.baseParams||{};this.baseParams[A]=B}});Ext.reg("store",Ext.data.Store);Ext.data.Store.Error=Ext.extend(Ext.Error,{name:"Ext.data.Store"});Ext.apply(Ext.data.Store.Error.prototype,{lang:{"writer-undefined":"Attempted to execute a write-action without a DataWriter installed."}});Ext.data.Field=Ext.extend(Object,{constructor:function(B){if(Ext.isString(B)){B={name:B}}Ext.apply(this,B);var D=Ext.data.Types,A=this.sortType,C;if(this.type){if(Ext.isString(this.type)){this.type=Ext.data.Types[this.type.toUpperCase()]||D.AUTO
}}else{this.type=D.AUTO}if(Ext.isString(A)){this.sortType=Ext.data.SortTypes[A]}else{if(Ext.isEmpty(A)){this.sortType=this.type.sortType}}if(!this.convert){this.convert=this.type.convert}},dateFormat:null,useNull:false,defaultValue:"",mapping:null,sortType:null,sortDir:"ASC",allowBlank:true});Ext.data.DataReader=function(A,B){this.meta=A;this.recordType=Ext.isArray(B)?Ext.data.Record.create(B):B;if(this.recordType){this.buildExtractors()}};Ext.data.DataReader.prototype={getTotal:Ext.emptyFn,getRoot:Ext.emptyFn,getMessage:Ext.emptyFn,getSuccess:Ext.emptyFn,getId:Ext.emptyFn,buildExtractors:Ext.emptyFn,extractValues:Ext.emptyFn,realize:function(A,C){if(Ext.isArray(A)){for(var B=A.length-1;B>=0;B--){if(Ext.isArray(C)){this.realize(A.splice(B,1).shift(),C.splice(B,1).shift())}else{this.realize(A.splice(B,1).shift(),C)}}}else{if(Ext.isArray(C)&&C.length==1){C=C.shift()}if(!this.isData(C)){throw new Ext.data.DataReader.Error("realize",A)}A.phantom=false;A._phid=A.id;A.id=this.getId(C);A.data=C;A.commit();A.store.reMap(A)
}},update:function(A,C){if(Ext.isArray(A)){for(var B=A.length-1;B>=0;B--){if(Ext.isArray(C)){this.update(A.splice(B,1).shift(),C.splice(B,1).shift())}else{this.update(A.splice(B,1).shift(),C)}}}else{if(Ext.isArray(C)&&C.length==1){C=C.shift()}if(this.isData(C)){A.data=Ext.apply(A.data,C)}A.commit()}},extractData:function(I,A){var H=(this instanceof Ext.data.JsonReader)?"json":"node";var C=[];if(this.isData(I)&&!(this instanceof Ext.data.XmlReader)){I=[I]}var G=this.recordType.prototype.fields,L=G.items,K=G.length,C=[];if(A===true){var J=this.recordType;for(var E=0;E<I.length;E++){var B=I[E];var F=new J(this.extractValues(B,L,K),this.getId(B));F[H]=B;C.push(F)}}else{for(var E=0;E<I.length;E++){var D=this.extractValues(I[E],L,K);D[this.meta.idProperty]=this.getId(I[E]);C.push(D)}}return C},isData:function(A){return(A&&Ext.isObject(A)&&!Ext.isEmpty(this.getId(A)))?true:false},onMetaChange:function(A){delete this.ef;this.meta=A;this.recordType=Ext.data.Record.create(A.fields);this.buildExtractors()}};Ext.data.DataReader.Error=Ext.extend(Ext.Error,{constructor:function(B,A){this.arg=A;
Ext.Error.call(this,B)},name:"Ext.data.DataReader"});Ext.apply(Ext.data.DataReader.Error.prototype,{lang:{"update":"#update received invalid data from server.  Please see docs for DataReader#update and review your DataReader configuration.","realize":"#realize was called with invalid remote-data.  Please see the docs for DataReader#realize and review your DataReader configuration.","invalid-response":"#readResponse received an invalid response from the server."}});Ext.data.DataWriter=function(A){Ext.apply(this,A)};Ext.data.DataWriter.prototype={writeAllFields:false,listful:false,apply:function(E,F,D,A){var C=[],B=D+"Record";if(Ext.isArray(A)){Ext.each(A,function(G){C.push(this[B](G))},this)}else{if(A instanceof Ext.data.Record){C=this[B](A)}}this.render(E,F,C)},render:Ext.emptyFn,updateRecord:Ext.emptyFn,createRecord:Ext.emptyFn,destroyRecord:Ext.emptyFn,toHash:function(F,C){var E=F.fields.map,D={},B=(this.writeAllFields===false&&F.phantom===false)?F.getChanges():F.data,A;Ext.iterate(B,function(H,G){if((A=E[H])){D[A.mapping?A.mapping:A.name]=G
}});if(F.phantom){if(F.fields.containsKey(this.meta.idProperty)&&Ext.isEmpty(F.data[this.meta.idProperty])){delete D[this.meta.idProperty]}}else{D[this.meta.idProperty]=F.id}return D},toArray:function(B){var A=[];Ext.iterate(B,function(D,C){A.push({name:D,value:C})},this);return A}};Ext.data.DataProxy=function(A){A=A||{};this.api=A.api;this.url=A.url;this.restful=A.restful;this.listeners=A.listeners;this.prettyUrls=A.prettyUrls;this.addEvents("exception","beforeload","load","loadexception","beforewrite","write");Ext.data.DataProxy.superclass.constructor.call(this);try{Ext.data.Api.prepare(this)}catch(B){if(B instanceof Ext.data.Api.Error){B.toConsole()}}Ext.data.DataProxy.relayEvents(this,["beforewrite","write","exception"])};Ext.extend(Ext.data.DataProxy,Ext.util.Observable,{restful:false,setApi:function(){if(arguments.length==1){var A=Ext.data.Api.isValid(arguments[0]);if(A===true){this.api=arguments[0]}else{throw new Ext.data.Api.Error("invalid",A)}}else{if(arguments.length==2){if(!Ext.data.Api.isAction(arguments[0])){throw new Ext.data.Api.Error("invalid",arguments[0])
}this.api[arguments[0]]=arguments[1]}}Ext.data.Api.prepare(this)},isApiAction:function(A){return(this.api[A])?true:false},request:function(E,B,F,A,G,D,C){if(!this.api[E]&&!this.load){throw new Ext.data.DataProxy.Error("action-undefined",E)}F=F||{};if((E===Ext.data.Api.actions.read)?this.fireEvent("beforeload",this,F):this.fireEvent("beforewrite",this,E,B,F)!==false){this.doRequest.apply(this,arguments)}else{G.call(D||this,null,C,false)}},load:null,doRequest:function(E,B,F,A,G,D,C){this.load(F,A,G,D,C)},onRead:Ext.emptyFn,onWrite:Ext.emptyFn,buildUrl:function(D,B){B=B||null;var C=(this.conn&&this.conn.url)?this.conn.url:(this.api[D])?this.api[D].url:this.url;if(!C){throw new Ext.data.Api.Error("invalid-url",D)}var E=null;var A=C.match(/(.*)(\.json|\.xml|\.html)$/);if(A){E=A[2];C=A[1]}if((this.restful===true||this.prettyUrls===true)&&B instanceof Ext.data.Record&&!B.phantom){C+="/"+B.id}return(E===null)?C:C+E},destroy:function(){this.purgeListeners()}});Ext.apply(Ext.data.DataProxy,Ext.util.Observable.prototype);
Ext.util.Observable.call(Ext.data.DataProxy);Ext.data.DataProxy.Error=Ext.extend(Ext.Error,{constructor:function(B,A){this.arg=A;Ext.Error.call(this,B)},name:"Ext.data.DataProxy"});Ext.apply(Ext.data.DataProxy.Error.prototype,{lang:{"action-undefined":"DataProxy attempted to execute an API-action but found an undefined url / function.  Please review your Proxy url/api-configuration.","api-invalid":"Recieved an invalid API-configuration.  Please ensure your proxy API-configuration contains only the actions from Ext.data.Api.actions."}});Ext.data.Request=function(A){Ext.apply(this,A)};Ext.data.Request.prototype={action:undefined,rs:undefined,params:undefined,callback:Ext.emptyFn,scope:undefined,reader:undefined};Ext.data.Response=function(A){Ext.apply(this,A)};Ext.data.Response.prototype={action:undefined,success:undefined,message:undefined,data:undefined,raw:undefined,records:undefined};Ext.data.ScriptTagProxy=function(A){Ext.apply(this,A);Ext.data.ScriptTagProxy.superclass.constructor.call(this,A);this.head=document.getElementsByTagName("head")[0]
};Ext.data.ScriptTagProxy.TRANS_ID=1000;Ext.extend(Ext.data.ScriptTagProxy,Ext.data.DataProxy,{timeout:30000,callbackParam:"callback",nocache:true,doRequest:function(E,F,D,G,I,J,K){var C=Ext.urlEncode(Ext.apply(D,this.extraParams));var B=this.buildUrl(E,F);if(!B){throw new Ext.data.Api.Error("invalid-url",B)}B=Ext.urlAppend(B,C);if(this.nocache){B=Ext.urlAppend(B,"_dc="+(new Date().getTime()))}var A=++Ext.data.ScriptTagProxy.TRANS_ID;var L={id:A,action:E,cb:"stcCallback"+A,scriptId:"stcScript"+A,params:D,arg:K,url:B,callback:I,scope:J,reader:G};window[L.cb]=this.createCallback(E,F,L);B+=String.format("&{0}={1}",this.callbackParam,L.cb);if(this.autoAbort!==false){this.abort()}L.timeoutId=this.handleFailure.defer(this.timeout,this,[L]);var H=document.createElement("script");H.setAttribute("src",B);H.setAttribute("type","text/javascript");H.setAttribute("id",L.scriptId);this.head.appendChild(H);this.trans=L},createCallback:function(D,B,C){var A=this;return function(E){A.trans=false;A.destroyTrans(C,true);if(D===Ext.data.Api.actions.read){A.onRead.call(A,D,C,E)
}else{A.onWrite.call(A,D,C,E,B)}}},onRead:function(D,C,B){var A;try{A=C.reader.readRecords(B)}catch(E){this.fireEvent("loadexception",this,C,B,E);this.fireEvent("exception",this,"response",D,C,B,E);C.callback.call(C.scope||window,null,C.arg,false);return }if(A.success===false){this.fireEvent("loadexception",this,C,B);this.fireEvent("exception",this,"remote",D,C,B,null)}else{this.fireEvent("load",this,B,C.arg)}C.callback.call(C.scope||window,A,C.arg,A.success)},onWrite:function(F,E,C,B){var A=E.reader;try{var D=A.readResponse(F,C)}catch(G){this.fireEvent("exception",this,"response",F,E,D,G);E.callback.call(E.scope||window,null,D,false);return }if(!D.success===true){this.fireEvent("exception",this,"remote",F,E,D,B);E.callback.call(E.scope||window,null,D,false);return }this.fireEvent("write",this,F,D.data,D,B,E.arg);E.callback.call(E.scope||window,D.data,D,true)},isLoading:function(){return this.trans?true:false},abort:function(){if(this.isLoading()){this.destroyTrans(this.trans)}},destroyTrans:function(B,A){this.head.removeChild(document.getElementById(B.scriptId));
clearTimeout(B.timeoutId);if(A){window[B.cb]=undefined;try{delete window[B.cb]}catch(C){}}else{window[B.cb]=function(){window[B.cb]=undefined;try{delete window[B.cb]}catch(D){}}}},handleFailure:function(A){this.trans=false;this.destroyTrans(A,false);if(A.action===Ext.data.Api.actions.read){this.fireEvent("loadexception",this,null,A.arg)}this.fireEvent("exception",this,"response",A.action,{response:null,options:A.arg});A.callback.call(A.scope||window,null,A.arg,false)},destroy:function(){this.abort();Ext.data.ScriptTagProxy.superclass.destroy.call(this)}});Ext.data.HttpProxy=function(A){Ext.data.HttpProxy.superclass.constructor.call(this,A);this.conn=A;this.conn.url=null;this.useAjax=!A||!A.events;var C=Ext.data.Api.actions;this.activeRequest={};for(var B in C){this.activeRequest[C[B]]=undefined}};Ext.extend(Ext.data.HttpProxy,Ext.data.DataProxy,{getConnection:function(){return this.useAjax?Ext.Ajax:this.conn},setUrl:function(A,B){this.conn.url=A;if(B===true){this.url=A;this.api=null;Ext.data.Api.prepare(this)}},doRequest:function(F,D,H,C,B,E,A){var G={method:(this.api[F])?this.api[F]["method"]:undefined,request:{callback:B,scope:E,arg:A},reader:C,callback:this.createCallback(F,D),scope:this};
if(H.jsonData){G.jsonData=H.jsonData}else{if(H.xmlData){G.xmlData=H.xmlData}else{G.params=H||{}}}this.conn.url=this.buildUrl(F,D);if(this.useAjax){Ext.applyIf(G,this.conn);if(this.activeRequest[F]){}this.activeRequest[F]=Ext.Ajax.request(G)}else{this.conn.request(G)}this.conn.url=null},createCallback:function(B,A){return function(E,D,C){this.activeRequest[B]=undefined;if(!D){if(B===Ext.data.Api.actions.read){this.fireEvent("loadexception",this,E,C)}this.fireEvent("exception",this,"response",B,E,C);E.request.callback.call(E.request.scope,null,E.request.arg,false);return }if(B===Ext.data.Api.actions.read){this.onRead(B,E,C)}else{this.onWrite(B,E,C,A)}}},onRead:function(D,F,B){var A;try{A=F.reader.read(B)}catch(E){this.fireEvent("loadexception",this,F,B,E);this.fireEvent("exception",this,"response",D,F,B,E);F.request.callback.call(F.request.scope,null,F.request.arg,false);return }if(A.success===false){this.fireEvent("loadexception",this,F,B);var C=F.reader.readResponse(D,B);this.fireEvent("exception",this,"remote",D,F,C,null)
}else{this.fireEvent("load",this,F,F.request.arg)}F.request.callback.call(F.request.scope,A,F.request.arg,A.success)},onWrite:function(E,G,C,B){var A=G.reader;var D;try{D=A.readResponse(E,C)}catch(F){this.fireEvent("exception",this,"response",E,G,C,F);G.request.callback.call(G.request.scope,null,G.request.arg,false);return }if(D.success===true){this.fireEvent("write",this,E,D.data,D,B,G.request.arg)}else{this.fireEvent("exception",this,"remote",E,G,D,B)}G.request.callback.call(G.request.scope,D.data,D,D.success)},destroy:function(){if(!this.useAjax){this.conn.abort()}else{if(this.activeRequest){var B=Ext.data.Api.actions;for(var A in B){if(this.activeRequest[B[A]]){Ext.Ajax.abort(this.activeRequest[B[A]])}}}}Ext.data.HttpProxy.superclass.destroy.call(this)}});Ext.data.MemoryProxy=function(B){var A={};A[Ext.data.Api.actions.read]=true;Ext.data.MemoryProxy.superclass.constructor.call(this,{api:A});this.data=B};Ext.extend(Ext.data.MemoryProxy,Ext.data.DataProxy,{doRequest:function(B,C,A,D,F,G,H){A=A||{};var I;try{I=D.readRecords(this.data)
}catch(E){this.fireEvent("loadexception",this,null,H,E);this.fireEvent("exception",this,"response",B,H,null,E);F.call(G,null,H,false);return }F.call(G,I,H,true)}});Ext.data.Types=new function(){var A=Ext.data.SortTypes;Ext.apply(this,{stripRe:/[\$,%]/g,AUTO:{convert:function(B){return B},sortType:A.none,type:"auto"},STRING:{convert:function(B){return(B===undefined||B===null)?"":String(B)},sortType:A.asUCString,type:"string"},INT:{convert:function(B){return B!==undefined&&B!==null&&B!==""?parseInt(String(B).replace(Ext.data.Types.stripRe,""),10):(this.useNull?null:0)},sortType:A.none,type:"int"},FLOAT:{convert:function(B){return B!==undefined&&B!==null&&B!==""?parseFloat(String(B).replace(Ext.data.Types.stripRe,""),10):(this.useNull?null:0)},sortType:A.none,type:"float"},BOOL:{convert:function(B){return B===true||B==="true"||B==1},sortType:A.none,type:"bool"},DATE:{convert:function(C){var D=this.dateFormat;if(!C){return null}if(Ext.isDate(C)){return C}if(D){if(D=="timestamp"){return new Date(C*1000)}if(D=="time"){return new Date(parseInt(C,10))
}return Date.parseDate(C,D)}var B=Date.parse(C);return B?new Date(B):null},sortType:A.asDate,type:"date"}});Ext.apply(this,{BOOLEAN:this.BOOL,INTEGER:this.INT,NUMBER:this.FLOAT})};Ext.data.JsonWriter=Ext.extend(Ext.data.DataWriter,{encode:true,encodeDelete:false,constructor:function(A){Ext.data.JsonWriter.superclass.constructor.call(this,A)},render:function(C,D,B){if(this.encode===true){Ext.apply(C,D);C[this.meta.root]=Ext.encode(B)}else{var A=Ext.apply({},D);A[this.meta.root]=B;C.jsonData=A}},createRecord:function(A){return this.toHash(A)},updateRecord:function(A){return this.toHash(A)},destroyRecord:function(B){if(this.encodeDelete){var A={};A[this.meta.idProperty]=B.id;return A}else{return B.id}}});Ext.data.JsonReader=function(A,B){A=A||{};Ext.applyIf(A,{idProperty:"id",successProperty:"success",totalProperty:"total"});Ext.data.JsonReader.superclass.constructor.call(this,A,B||A.fields)};Ext.extend(Ext.data.JsonReader,Ext.data.DataReader,{read:function(A){var B=A.responseText;var C=Ext.decode(B);if(!C){throw {message:"JsonReader.read: Json object not found"}
}return this.readRecords(C)},readResponse:function(E,B){var G=(B.responseText!==undefined)?Ext.decode(B.responseText):B;if(!G){throw new Ext.data.JsonReader.Error("response")}var A=this.getRoot(G),F=this.getSuccess(G);if(F&&E===Ext.data.Api.actions.create){var D=Ext.isDefined(A);if(D&&Ext.isEmpty(A)){throw new Ext.data.JsonReader.Error("root-empty",this.meta.root)}else{if(!D){throw new Ext.data.JsonReader.Error("root-undefined-response",this.meta.root)}}}var C=new Ext.data.Response({action:E,success:F,data:(A)?this.extractData(A,false):[],message:this.getMessage(G),raw:G});if(Ext.isEmpty(C.success)){throw new Ext.data.JsonReader.Error("successProperty-response",this.meta.successProperty)}return C},readRecords:function(A){this.jsonData=A;if(A.metaData){this.onMetaChange(A.metaData)}var K=this.meta,F=this.recordType,B=F.prototype.fields,J=B.items,G=B.length,H;var E=this.getRoot(A),D=E.length,C=D,I=true;if(K.totalProperty){H=parseInt(this.getTotal(A),10);if(!isNaN(H)){C=H}}if(K.successProperty){H=this.getSuccess(A);
if(H===false||H==="false"){I=false}}return{success:I,records:this.extractData(E,true),totalRecords:C}},buildExtractors:function(){if(this.ef){return }var I=this.meta,F=this.recordType,E=F.prototype.fields,H=E.items,G=E.length;if(I.totalProperty){this.getTotal=this.createAccessor(I.totalProperty)}if(I.successProperty){this.getSuccess=this.createAccessor(I.successProperty)}if(I.messageProperty){this.getMessage=this.createAccessor(I.messageProperty)}this.getRoot=I.root?this.createAccessor(I.root):function(J){return J};if(I.id||I.idProperty){var D=this.createAccessor(I.id||I.idProperty);this.getId=function(K){var J=D(K);return(J===undefined||J==="")?null:J}}else{this.getId=function(){return null}}var C=[];for(var B=0;B<G;B++){E=H[B];var A=(E.mapping!==undefined&&E.mapping!==null)?E.mapping:E.name;C.push(this.createAccessor(A))}this.ef=C},simpleAccess:function(B,A){return B[A]},createAccessor:function(){var A=/[\[\.]/;return function(C){if(Ext.isEmpty(C)){return Ext.emptyFn}if(Ext.isFunction(C)){return C}var B=String(C).search(A);
if(B>=0){return new Function("obj","return obj"+(B>0?".":"")+C)}return function(D){return D[C]}}}(),extractValues:function(G,D,A){var F,C={};for(var E=0;E<A;E++){F=D[E];var B=this.ef[E](G);C[F.name]=F.convert((B!==undefined)?B:F.defaultValue,G)}return C}});Ext.data.JsonReader.Error=Ext.extend(Ext.Error,{constructor:function(B,A){this.arg=A;Ext.Error.call(this,B)},name:"Ext.data.JsonReader"});Ext.apply(Ext.data.JsonReader.Error.prototype,{lang:{"response":"An error occurred while json-decoding your server response","successProperty-response":'Could not locate your "successProperty" in your server response.  Please review your JsonReader config to ensure the config-property "successProperty" matches the property in your server-response.  See the JsonReader docs.',"root-undefined-config":'Your JsonReader was configured without a "root" property.  Please review your JsonReader config and make sure to define the root property.  See the JsonReader docs.',"idProperty-undefined":'Your JsonReader was configured without an "idProperty"  Please review your JsonReader configuration and ensure the "idProperty" is set (e.g.: "id").  See the JsonReader docs.',"root-empty":'Data was expected to be returned by the server in the "root" property of the response.  Please review your JsonReader configuration to ensure the "root" property matches that returned in the server-response.  See JsonReader docs.'}});
Ext.data.ArrayReader=Ext.extend(Ext.data.JsonReader,{readRecords:function(L){this.arrayData=L;var H=this.meta,D=H?Ext.num(H.idIndex,H.id):null,B=this.recordType,K=B.prototype.fields,R=[],E=true,F;var N=this.getRoot(L);for(var Q=0,S=N.length;Q<S;Q++){var M=N[Q],A={},J=((D||D===0)&&M[D]!==undefined&&M[D]!==""?M[D]:null);for(var P=0,I=K.length;P<I;P++){var T=K.items[P],O=T.mapping!==undefined&&T.mapping!==null?T.mapping:P;F=M[O]!==undefined?M[O]:T.defaultValue;F=T.convert(F,M);A[T.name]=F}var C=new B(A,J);C.json=M;R[R.length]=C}var G=R.length;if(H.totalProperty){F=parseInt(this.getTotal(L),10);if(!isNaN(F)){G=F}}if(H.successProperty){F=this.getSuccess(L);if(F===false||F==="false"){E=false}}return{success:E,records:R,totalRecords:G}}});Ext.data.ArrayStore=Ext.extend(Ext.data.Store,{constructor:function(A){Ext.data.ArrayStore.superclass.constructor.call(this,Ext.apply(A,{reader:new Ext.data.ArrayReader(A)}))},loadData:function(E,B){if(this.expandData===true){var D=[];for(var C=0,A=E.length;C<A;C++){D[D.length]=[E[C]]
}E=D}Ext.data.ArrayStore.superclass.loadData.call(this,E,B)}});Ext.reg("arraystore",Ext.data.ArrayStore);Ext.data.SimpleStore=Ext.data.ArrayStore;Ext.reg("simplestore",Ext.data.SimpleStore);Ext.data.JsonStore=Ext.extend(Ext.data.Store,{constructor:function(A){Ext.data.JsonStore.superclass.constructor.call(this,Ext.apply(A,{reader:new Ext.data.JsonReader(A)}))}});Ext.reg("jsonstore",Ext.data.JsonStore);Ext.data.XmlWriter=function(A){Ext.data.XmlWriter.superclass.constructor.apply(this,arguments);this.tpl=(typeof (this.tpl)==="string")?new Ext.XTemplate(this.tpl).compile():this.tpl.compile()};Ext.extend(Ext.data.XmlWriter,Ext.data.DataWriter,{documentRoot:"xrequest",forceDocumentRoot:false,root:"records",xmlVersion:"1.0",xmlEncoding:"ISO-8859-15",tpl:'<tpl for="."><\u003fxml version="{version}" encoding="{encoding}"\u003f><tpl if="documentRoot"><{documentRoot}><tpl for="baseParams"><tpl for="."><{name}>{value}</{name}></tpl></tpl></tpl><tpl if="records.length&gt;1"><{root}></tpl><tpl for="records"><{parent.record}><tpl for="."><{name}>{value}</{name}></tpl></{parent.record}></tpl><tpl if="records.length&gt;1"></{root}></tpl><tpl if="documentRoot"></{documentRoot}></tpl></tpl>',render:function(B,C,A){C=this.toArray(C);
B.xmlData=this.tpl.applyTemplate({version:this.xmlVersion,encoding:this.xmlEncoding,documentRoot:(C.length>0||this.forceDocumentRoot===true)?this.documentRoot:false,record:this.meta.record,root:this.root,baseParams:C,records:(Ext.isArray(A[0]))?A:[A]})},createRecord:function(A){return this.toArray(this.toHash(A))},updateRecord:function(A){return this.toArray(this.toHash(A))},destroyRecord:function(B){var A={};A[this.meta.idProperty]=B.id;return this.toArray(A)}});Ext.data.XmlReader=function(A,B){A=A||{};Ext.applyIf(A,{idProperty:A.idProperty||A.idPath||A.id,successProperty:A.successProperty||A.success});Ext.data.XmlReader.superclass.constructor.call(this,A,B||A.fields)};Ext.extend(Ext.data.XmlReader,Ext.data.DataReader,{read:function(A){var B=A.responseXML;if(!B){throw {message:"XmlReader.read: XML Document not available"}}return this.readRecords(B)},readRecords:function(D){this.xmlData=D;var A=D.documentElement||D,C=Ext.DomQuery,F=0,E=true;if(this.meta.totalProperty){F=this.getTotal(A,0)}if(this.meta.successProperty){E=this.getSuccess(A)
}var B=this.extractData(C.select(this.meta.record,A),true);return{success:E,records:B,totalRecords:F||B.length}},readResponse:function(F,B){var E=Ext.DomQuery,G=B.responseXML,A=G.documentElement||G;var C=new Ext.data.Response({action:F,success:this.getSuccess(A),message:this.getMessage(A),data:this.extractData(E.select(this.meta.record,A)||E.select(this.meta.root,A),false),raw:G});if(Ext.isEmpty(C.success)){throw new Ext.data.DataReader.Error("successProperty-response",this.meta.successProperty)}if(F===Ext.data.Api.actions.create){var D=Ext.isDefined(C.data);if(D&&Ext.isEmpty(C.data)){throw new Ext.data.JsonReader.Error("root-empty",this.meta.root)}else{if(!D){throw new Ext.data.JsonReader.Error("root-undefined-response",this.meta.root)}}}return C},getSuccess:function(){return true},buildExtractors:function(){if(this.ef){return }var I=this.meta,F=this.recordType,E=F.prototype.fields,H=E.items,G=E.length;if(I.totalProperty){this.getTotal=this.createAccessor(I.totalProperty)}if(I.successProperty){this.getSuccess=this.createAccessor(I.successProperty)
}if(I.messageProperty){this.getMessage=this.createAccessor(I.messageProperty)}this.getRoot=function(J){return(!Ext.isEmpty(J[this.meta.record]))?J[this.meta.record]:J[this.meta.root]};if(I.idPath||I.idProperty){var D=this.createAccessor(I.idPath||I.idProperty);this.getId=function(J){var K=D(J)||J.id;return(K===undefined||K==="")?null:K}}else{this.getId=function(){return null}}var C=[];for(var B=0;B<G;B++){E=H[B];var A=(E.mapping!==undefined&&E.mapping!==null)?E.mapping:E.name;C.push(this.createAccessor(A))}this.ef=C},createAccessor:function(){var A=Ext.DomQuery;return function(B){if(Ext.isFunction(B)){return B}switch(B){case this.meta.totalProperty:return function(C,D){return A.selectNumber(B,C,D)};break;case this.meta.successProperty:return function(D,E){var C=A.selectValue(B,D,true);var F=C!==false&&C!=="false";return F};break;default:return function(C,D){return A.selectValue(B,C,D)};break}}}(),extractValues:function(G,D,A){var F,C={};for(var E=0;E<A;E++){F=D[E];var B=this.ef[E](G);C[F.name]=F.convert((B!==undefined)?B:F.defaultValue,G)
}return C}});Ext.data.XmlStore=Ext.extend(Ext.data.Store,{constructor:function(A){Ext.data.XmlStore.superclass.constructor.call(this,Ext.apply(A,{reader:new Ext.data.XmlReader(A)}))}});Ext.reg("xmlstore",Ext.data.XmlStore);Ext.data.GroupingStore=Ext.extend(Ext.data.Store,{constructor:function(D){D=D||{};this.hasMultiSort=true;this.multiSortInfo=this.multiSortInfo||{sorters:[]};var E=this.multiSortInfo.sorters,C=D.groupField||this.groupField,B=D.sortInfo||this.sortInfo,A=D.groupDir||this.groupDir;if(C){E.push({field:C,direction:A})}if(B){E.push(B)}Ext.data.GroupingStore.superclass.constructor.call(this,D);this.addEvents("groupchange");this.applyGroupField()},remoteGroup:false,groupOnSort:false,groupDir:"ASC",clearGrouping:function(){this.groupField=false;if(this.remoteGroup){if(this.baseParams){delete this.baseParams.groupBy;delete this.baseParams.groupDir}var A=this.lastOptions;if(A&&A.params){delete A.params.groupBy;delete A.params.groupDir}this.reload()}else{this.sort();this.fireEvent("datachanged",this)}},groupBy:function(E,A,D){D=D?(String(D).toUpperCase()=="DESC"?"DESC":"ASC"):this.groupDir;
if(this.groupField==E&&this.groupDir==D&&!A){return }var C=this.multiSortInfo.sorters;if(C.length>0&&C[0].field==this.groupField){C.shift()}this.groupField=E;this.groupDir=D;this.applyGroupField();var B=function(){this.fireEvent("groupchange",this,this.getGroupState())};if(this.groupOnSort){this.sort(E,D);B.call(this);return }if(this.remoteGroup){this.on("load",B,this,{single:true});this.reload()}else{this.sort(C);B.call(this)}},sort:function(G,C){if(this.remoteSort){return Ext.data.GroupingStore.superclass.sort.call(this,G,C)}var F=[];if(Ext.isArray(arguments[0])){F=arguments[0]}else{if(G==undefined){F=this.sortInfo?[this.sortInfo]:[]}else{var E=this.fields.get(G);if(!E){return false}var B=E.name,A=this.sortInfo||null,D=this.sortToggle?this.sortToggle[B]:null;if(!C){if(A&&A.field==B){C=(this.sortToggle[B]||"ASC").toggle("ASC","DESC")}else{C=E.sortDir}}this.sortToggle[B]=C;this.sortInfo={field:B,direction:C};F=[this.sortInfo]}}if(this.groupField){F.unshift({direction:this.groupDir,field:this.groupField})}return this.multiSort.call(this,F,C)
},applyGroupField:function(){if(this.remoteGroup){if(!this.baseParams){this.baseParams={}}Ext.apply(this.baseParams,{groupBy:this.groupField,groupDir:this.groupDir});var A=this.lastOptions;if(A&&A.params){A.params.groupDir=this.groupDir;delete A.params.groupBy}}},applyGrouping:function(A){if(this.groupField!==false){this.groupBy(this.groupField,true,this.groupDir);return true}else{if(A===true){this.fireEvent("datachanged",this)}return false}},getGroupState:function(){return this.groupOnSort&&this.groupField!==false?(this.sortInfo?this.sortInfo.field:undefined):this.groupField}});Ext.reg("groupingstore",Ext.data.GroupingStore);Ext.data.DirectProxy=function(A){Ext.apply(this,A);if(typeof this.paramOrder=="string"){this.paramOrder=this.paramOrder.split(/[\s,|]/)}Ext.data.DirectProxy.superclass.constructor.call(this,A)};Ext.extend(Ext.data.DirectProxy,Ext.data.DataProxy,{paramOrder:undefined,paramsAsHash:true,directFn:undefined,doRequest:function(B,C,A,E,I,J,L){var H=[],G=this.api[B]||this.directFn;switch(B){case Ext.data.Api.actions.create:H.push(A.jsonData);
break;case Ext.data.Api.actions.read:if(G.directCfg.method.len>0){if(this.paramOrder){for(var D=0,F=this.paramOrder.length;D<F;D++){H.push(A[this.paramOrder[D]])}}else{if(this.paramsAsHash){H.push(A)}}}break;case Ext.data.Api.actions.update:H.push(A.jsonData);break;case Ext.data.Api.actions.destroy:H.push(A.jsonData);break}var K={params:A||{},request:{callback:I,scope:J,arg:L},reader:E};H.push(this.createCallback(B,C,K),this);G.apply(window,H)},createCallback:function(D,A,B){var C=this;return function(E,F){if(!F.status){if(D===Ext.data.Api.actions.read){C.fireEvent("loadexception",C,B,F,null)}C.fireEvent("exception",C,"remote",D,B,F,null);B.request.callback.call(B.request.scope,null,B.request.arg,false);return }if(D===Ext.data.Api.actions.read){C.onRead(D,B,E,F)}else{C.onWrite(D,B,E,F,A)}}},onRead:function(F,E,A,D){var B;try{B=E.reader.readRecords(A)}catch(C){this.fireEvent("loadexception",this,E,D,C);this.fireEvent("exception",this,"response",F,E,D,C);E.request.callback.call(E.request.scope,null,E.request.arg,false);
return }this.fireEvent("load",this,D,E.request.arg);E.request.callback.call(E.request.scope,B,E.request.arg,true)},onWrite:function(F,D,A,C,B){var E=D.reader.extractData(D.reader.getRoot(A),false);var G=D.reader.getSuccess(A);G=(G!==false);if(G){this.fireEvent("write",this,F,E,C,B,D.request.arg)}else{this.fireEvent("exception",this,"remote",F,D,A,B)}D.request.callback.call(D.request.scope,E,C,G)}});Ext.data.DirectStore=Ext.extend(Ext.data.Store,{constructor:function(A){var B=Ext.apply({},{batchTransactions:false},A);Ext.data.DirectStore.superclass.constructor.call(this,Ext.apply(B,{proxy:Ext.isDefined(B.proxy)?B.proxy:new Ext.data.DirectProxy(Ext.copyTo({},B,"paramOrder,paramsAsHash,directFn,api")),reader:(!Ext.isDefined(B.reader)&&B.fields)?new Ext.data.JsonReader(Ext.copyTo({},B,"totalProperty,root,idProperty"),B.fields):B.reader}))}});Ext.reg("directstore",Ext.data.DirectStore);Ext.Direct=Ext.extend(Ext.util.Observable,{exceptions:{TRANSPORT:"xhr",PARSE:"parse",LOGIN:"login",SERVER:"exception"},constructor:function(){this.addEvents("event","exception");
this.transactions={};this.providers={}},addProvider:function(D){var B=arguments;if(B.length>1){for(var C=0,A=B.length;C<A;C++){this.addProvider(B[C])}return }if(!D.events){D=new Ext.Direct.PROVIDERS[D.type](D)}D.id=D.id||Ext.id();this.providers[D.id]=D;D.on("data",this.onProviderData,this);D.on("exception",this.onProviderException,this);if(!D.isConnected()){D.connect()}return D},getProvider:function(A){return this.providers[A]},removeProvider:function(B){var A=B.id?B:this.providers[B];A.un("data",this.onProviderData,this);A.un("exception",this.onProviderException,this);delete this.providers[A.id];return A},addTransaction:function(A){this.transactions[A.tid]=A;return A},removeTransaction:function(A){delete this.transactions[A.tid||A];return A},getTransaction:function(A){return this.transactions[A.tid||A]},onProviderData:function(D,C){if(Ext.isArray(C)){for(var B=0,A=C.length;B<A;B++){this.onProviderData(D,C[B])}return }if(C.name&&C.name!="event"&&C.name!="exception"){this.fireEvent(C.name,C)}else{if(C.type=="exception"){this.fireEvent("exception",C)
}}this.fireEvent("event",C,D)},createEvent:function(A,B){return new Ext.Direct.eventTypes[A.type](Ext.apply(A,B))}});Ext.Direct=new Ext.Direct();Ext.Direct.TID=1;Ext.Direct.PROVIDERS={};Ext.Direct.Transaction=function(A){Ext.apply(this,A);this.tid=++Ext.Direct.TID;this.retryCount=0};Ext.Direct.Transaction.prototype={send:function(){this.provider.queueTransaction(this)},retry:function(){this.retryCount++;this.send()},getProvider:function(){return this.provider}};Ext.Direct.Event=function(A){Ext.apply(this,A)};Ext.Direct.Event.prototype={status:true,getData:function(){return this.data}};Ext.Direct.RemotingEvent=Ext.extend(Ext.Direct.Event,{type:"rpc",getTransaction:function(){return this.transaction||Ext.Direct.getTransaction(this.tid)}});Ext.Direct.ExceptionEvent=Ext.extend(Ext.Direct.RemotingEvent,{status:false,type:"exception"});Ext.Direct.eventTypes={"rpc":Ext.Direct.RemotingEvent,"event":Ext.Direct.Event,"exception":Ext.Direct.ExceptionEvent};Ext.direct.Provider=Ext.extend(Ext.util.Observable,{priority:1,constructor:function(A){Ext.apply(this,A);
this.addEvents("connect","disconnect","data","exception");Ext.direct.Provider.superclass.constructor.call(this,A)},isConnected:function(){return false},connect:Ext.emptyFn,disconnect:Ext.emptyFn});Ext.direct.JsonProvider=Ext.extend(Ext.direct.Provider,{parseResponse:function(A){if(!Ext.isEmpty(A.responseText)){if(typeof A.responseText=="object"){return A.responseText}return Ext.decode(A.responseText)}return null},getEvents:function(G){var E=null;try{E=this.parseResponse(G)}catch(F){var D=new Ext.Direct.ExceptionEvent({data:F,xhr:G,code:Ext.Direct.exceptions.PARSE,message:"Error parsing json response: \n\n "+E});return[D]}var C=[];if(Ext.isArray(E)){for(var B=0,A=E.length;B<A;B++){C.push(Ext.Direct.createEvent(E[B]))}}else{C.push(Ext.Direct.createEvent(E))}return C}});Ext.direct.PollingProvider=Ext.extend(Ext.direct.JsonProvider,{priority:3,interval:3000,constructor:function(A){Ext.direct.PollingProvider.superclass.constructor.call(this,A);this.addEvents("beforepoll","poll")},isConnected:function(){return !!this.pollTask
},connect:function(){if(this.url&&!this.pollTask){this.pollTask=Ext.TaskMgr.start({run:function(){if(this.fireEvent("beforepoll",this)!==false){if(typeof this.url=="function"){this.url(this.baseParams)}else{Ext.Ajax.request({url:this.url,callback:this.onData,scope:this,params:this.baseParams})}}},interval:this.interval,scope:this});this.fireEvent("connect",this)}else{if(!this.url){throw"Error initializing PollingProvider, no url configured."}}},disconnect:function(){if(this.pollTask){Ext.TaskMgr.stop(this.pollTask);delete this.pollTask;this.fireEvent("disconnect",this)}},onData:function(D,G,F){if(G){var C=this.getEvents(F);for(var B=0,A=C.length;B<A;B++){var E=C[B];this.fireEvent("data",this,E)}}else{var E=new Ext.Direct.ExceptionEvent({data:E,code:Ext.Direct.exceptions.TRANSPORT,message:"Unable to connect to the server.",xhr:F});this.fireEvent("data",this,E)}}});Ext.Direct.PROVIDERS["polling"]=Ext.direct.PollingProvider;Ext.direct.RemotingProvider=Ext.extend(Ext.direct.JsonProvider,{enableBuffer:10,maxRetries:1,timeout:undefined,constructor:function(A){Ext.direct.RemotingProvider.superclass.constructor.call(this,A);
this.addEvents("beforecall","call");this.namespace=(Ext.isString(this.namespace))?Ext.ns(this.namespace):this.namespace||window;this.transactions={};this.callBuffer=[]},initAPI:function(){var F=this.actions;for(var G in F){var C=this.namespace[G]||(this.namespace[G]={}),D=F[G];for(var E=0,B=D.length;E<B;E++){var A=D[E];C[A.name]=this.createMethod(G,A)}}},isConnected:function(){return !!this.connected},connect:function(){if(this.url){this.initAPI();this.connected=true;this.fireEvent("connect",this)}else{if(!this.url){throw"Error initializing RemotingProvider, no url configured."}}},disconnect:function(){if(this.connected){this.connected=false;this.fireEvent("disconnect",this)}},onData:function(A,F,G){if(F){var H=this.getEvents(G);for(var B=0,C=H.length;B<C;B++){var D=H[B],I=this.getTransaction(D);this.fireEvent("data",this,D);if(I){this.doCallback(I,D,true);Ext.Direct.removeTransaction(I)}}}else{var E=[].concat(A.ts);for(var B=0,C=E.length;B<C;B++){var I=this.getTransaction(E[B]);if(I&&I.retryCount<this.maxRetries){I.retry()
}else{var D=new Ext.Direct.ExceptionEvent({data:D,transaction:I,code:Ext.Direct.exceptions.TRANSPORT,message:"Unable to connect to the server.",xhr:G});this.fireEvent("data",this,D);if(I){this.doCallback(I,D,false);Ext.Direct.removeTransaction(I)}}}}},getCallData:function(A){return{action:A.action,method:A.method,data:A.data,type:"rpc",tid:A.tid}},doSend:function(D){var F={url:this.url,callback:this.onData,scope:this,ts:D,timeout:this.timeout},B;if(Ext.isArray(D)){B=[];for(var C=0,A=D.length;C<A;C++){B.push(this.getCallData(D[C]))}}else{B=this.getCallData(D)}if(this.enableUrlEncode){var E={};E[Ext.isString(this.enableUrlEncode)?this.enableUrlEncode:"data"]=Ext.encode(B);F.params=E}else{F.jsonData=B}Ext.Ajax.request(F)},combineAndSend:function(){var A=this.callBuffer.length;if(A>0){this.doSend(A==1?this.callBuffer[0]:this.callBuffer);this.callBuffer=[]}},queueTransaction:function(A){if(A.form){this.processForm(A);return }this.callBuffer.push(A);if(this.enableBuffer){if(!this.callTask){this.callTask=new Ext.util.DelayedTask(this.combineAndSend,this)
}this.callTask.delay(Ext.isNumber(this.enableBuffer)?this.enableBuffer:10)}else{this.combineAndSend()}},doCall:function(G,A,B){var F=null,D=B[A.len],E=B[A.len+1];if(A.len!==0){F=B.slice(0,A.len)}var C=new Ext.Direct.Transaction({provider:this,args:B,action:G,method:A.name,data:F,cb:E&&Ext.isFunction(D)?D.createDelegate(E):D});if(this.fireEvent("beforecall",this,C,A)!==false){Ext.Direct.addTransaction(C);this.queueTransaction(C);this.fireEvent("call",this,C,A)}},doForm:function(H,B,E,G,D){var C=new Ext.Direct.Transaction({provider:this,action:H,method:B.name,args:[E,G,D],cb:D&&Ext.isFunction(G)?G.createDelegate(D):G,isForm:true});if(this.fireEvent("beforecall",this,C,B)!==false){Ext.Direct.addTransaction(C);var A=String(E.getAttribute("enctype")).toLowerCase()=="multipart/form-data",F={extTID:C.tid,extAction:H,extMethod:B.name,extType:"rpc",extUpload:String(A)};Ext.apply(C,{form:Ext.getDom(E),isUpload:A,params:G&&Ext.isObject(G.params)?Ext.apply(F,G.params):F});this.fireEvent("call",this,C,B);this.processForm(C)
}},processForm:function(A){Ext.Ajax.request({url:this.url,params:A.params,callback:this.onData,scope:this,form:A.form,isUpload:A.isUpload,ts:A})},createMethod:function(C,A){var B;if(!A.formHandler){B=function(){this.doCall(C,A,Array.prototype.slice.call(arguments,0))}.createDelegate(this)}else{B=function(E,F,D){this.doForm(C,A,E,F,D)}.createDelegate(this)}B.directCfg={action:C,method:A};return B},getTransaction:function(A){return A&&A.tid?Ext.Direct.getTransaction(A.tid):null},doCallback:function(C,E){var D=E.status?"success":"failure";if(C&&C.cb){var B=C.cb,A=Ext.isDefined(E.result)?E.result:E.data;if(Ext.isFunction(B)){B(A,E)}else{Ext.callback(B[D],B.scope,[A,E]);Ext.callback(B.callback,B.scope,[A,E])}}}});Ext.Direct.PROVIDERS["remoting"]=Ext.direct.RemotingProvider;Ext.Resizable=Ext.extend(Ext.util.Observable,{constructor:function(D,E){this.el=Ext.get(D);if(E&&E.wrap){E.resizeChild=this.el;this.el=this.el.wrap(typeof E.wrap=="object"?E.wrap:{cls:"xresizable-wrap"});this.el.id=this.el.dom.id=E.resizeChild.id+"-rzwrap";
this.el.setStyle("overflow","hidden");this.el.setPositioning(E.resizeChild.getPositioning());E.resizeChild.clearPositioning();if(!E.width||!E.height){var F=E.resizeChild.getSize();this.el.setSize(F.width,F.height)}if(E.pinned&&!E.adjustments){E.adjustments="auto"}}this.proxy=this.el.createProxy({tag:"div",cls:"x-resizable-proxy",id:this.el.id+"-rzproxy"},Ext.getBody());this.proxy.unselectable();this.proxy.enableDisplayMode("block");Ext.apply(this,E);if(this.pinned){this.disableTrackOver=true;this.el.addClass("x-resizable-pinned")}var I=this.el.getStyle("position");if(I!="absolute"&&I!="fixed"){this.el.setStyle("position","relative")}if(!this.handles){this.handles="s,e,se";if(this.multiDirectional){this.handles+=",n,w"}}if(this.handles=="all"){this.handles="n s e w ne nw se sw"}var M=this.handles.split(/\s*?[,;]\s*?| /);var C=Ext.Resizable.positions;for(var H=0,J=M.length;H<J;H++){if(M[H]&&C[M[H]]){var L=C[M[H]];this[L]=new Ext.Resizable.Handle(this,L,this.disableTrackOver,this.transparent,this.handleCls)}}this.corner=this.southeast;
if(this.handles.indexOf("n")!=-1||this.handles.indexOf("w")!=-1){this.updateBox=true}this.activeHandle=null;if(this.resizeChild){if(typeof this.resizeChild=="boolean"){this.resizeChild=Ext.get(this.el.dom.firstChild,true)}else{this.resizeChild=Ext.get(this.resizeChild,true)}}if(this.adjustments=="auto"){var B=this.resizeChild;var K=this.west,G=this.east,A=this.north,M=this.south;if(B&&(K||A)){B.position("relative");B.setLeft(K?K.el.getWidth():0);B.setTop(A?A.el.getHeight():0)}this.adjustments=[(G?-G.el.getWidth():0)+(K?-K.el.getWidth():0),(A?-A.el.getHeight():0)+(M?-M.el.getHeight():0)-1]}if(this.draggable){this.dd=this.dynamic?this.el.initDD(null):this.el.initDDProxy(null,{dragElId:this.proxy.id});this.dd.setHandleElId(this.resizeChild?this.resizeChild.id:this.el.id);if(this.constrainTo){this.dd.constrainTo(this.constrainTo)}}this.addEvents("beforeresize","resize");if(this.width!==null&&this.height!==null){this.resizeTo(this.width,this.height)}else{this.updateChildSize()}if(Ext.isIE){this.el.dom.style.zoom=1}Ext.Resizable.superclass.constructor.call(this)
},adjustments:[0,0],animate:false,disableTrackOver:false,draggable:false,duration:0.35,dynamic:false,easing:"easeOutStrong",enabled:true,handles:false,multiDirectional:false,height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:5,minWidth:5,maxHeight:10000,maxWidth:10000,minX:0,minY:0,pinned:false,preserveRatio:false,resizeChild:false,transparent:false,resizeTo:function(B,A){this.el.setSize(B,A);this.updateChildSize();this.fireEvent("resize",this,B,A,null)},startSizing:function(C,B){this.fireEvent("beforeresize",this,C);if(this.enabled){if(!this.overlay){this.overlay=this.el.createProxy({tag:"div",cls:"x-resizable-overlay",html:"&#160;"},Ext.getBody());this.overlay.unselectable();this.overlay.enableDisplayMode("block");this.overlay.on({scope:this,mousemove:this.onMouseMove,mouseup:this.onMouseUp})}this.overlay.setStyle("cursor",B.el.getStyle("cursor"));this.resizing=true;this.startBox=this.el.getBox();this.startPoint=C.getXY();this.offsets=[(this.startBox.x+this.startBox.width)-this.startPoint[0],(this.startBox.y+this.startBox.height)-this.startPoint[1]];
this.overlay.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true));this.overlay.show();if(this.constrainTo){var A=Ext.get(this.constrainTo);this.resizeRegion=A.getRegion().adjust(A.getFrameWidth("t"),A.getFrameWidth("l"),-A.getFrameWidth("b"),-A.getFrameWidth("r"))}this.proxy.setStyle("visibility","hidden");this.proxy.show();this.proxy.setBox(this.startBox);if(!this.dynamic){this.proxy.setStyle("visibility","visible")}}},onMouseDown:function(A,B){if(this.enabled){B.stopEvent();this.activeHandle=A;this.startSizing(B,A)}},onMouseUp:function(B){this.activeHandle=null;var A=this.resizeElement();this.resizing=false;this.handleOut();this.overlay.hide();this.proxy.hide();this.fireEvent("resize",this,A.width,A.height,B)},updateChildSize:function(){if(this.resizeChild){var C=this.el;var D=this.resizeChild;var B=this.adjustments;if(C.dom.offsetWidth){var A=C.getSize(true);D.setSize(A.width+B[0],A.height+B[1])}if(Ext.isIE){setTimeout(function(){if(C.dom.offsetWidth){var E=C.getSize(true);D.setSize(E.width+B[0],E.height+B[1])
}},10)}}},snap:function(C,E,B){if(!E||!C){return C}var D=C;var A=C%E;if(A>0){if(A>(E/2)){D=C+(E-A)}else{D=C-A}}return Math.max(B,D)},resizeElement:function(){var A=this.proxy.getBox();if(this.updateBox){this.el.setBox(A,false,this.animate,this.duration,null,this.easing)}else{this.el.setSize(A.width,A.height,this.animate,this.duration,null,this.easing)}this.updateChildSize();if(!this.dynamic){this.proxy.hide()}if(this.draggable&&this.constrainTo){this.dd.resetConstraints();this.dd.constrainTo(this.constrainTo)}return A},constrain:function(B,C,A,D){if(B-C<A){C=B-A}else{if(B-C>D){C=B-D}}return C},onMouseMove:function(T){if(this.enabled&&this.activeHandle){try{if(this.resizeRegion&&!this.resizeRegion.contains(T.getPoint())){return }var Q=this.curSize||this.startBox,I=this.startBox.x,H=this.startBox.y,C=I,B=H,J=Q.width,R=Q.height,D=J,L=R,K=this.minWidth,U=this.minHeight,P=this.maxWidth,X=this.maxHeight,F=this.widthIncrement,A=this.heightIncrement,V=T.getXY(),O=-(this.startPoint[0]-Math.max(this.minX,V[0])),M=-(this.startPoint[1]-Math.max(this.minY,V[1])),G=this.activeHandle.position,Y,E;
switch(G){case"east":J+=O;J=Math.min(Math.max(K,J),P);break;case"south":R+=M;R=Math.min(Math.max(U,R),X);break;case"southeast":J+=O;R+=M;J=Math.min(Math.max(K,J),P);R=Math.min(Math.max(U,R),X);break;case"north":M=this.constrain(R,M,U,X);H+=M;R-=M;break;case"west":O=this.constrain(J,O,K,P);I+=O;J-=O;break;case"northeast":J+=O;J=Math.min(Math.max(K,J),P);M=this.constrain(R,M,U,X);H+=M;R-=M;break;case"northwest":O=this.constrain(J,O,K,P);M=this.constrain(R,M,U,X);H+=M;R-=M;I+=O;J-=O;break;case"southwest":O=this.constrain(J,O,K,P);R+=M;R=Math.min(Math.max(U,R),X);I+=O;J-=O;break}var N=this.snap(J,F,K);var W=this.snap(R,A,U);if(N!=J||W!=R){switch(G){case"northeast":H-=W-R;break;case"north":H-=W-R;break;case"southwest":I-=N-J;break;case"west":I-=N-J;break;case"northwest":I-=N-J;H-=W-R;break}J=N;R=W}if(this.preserveRatio){switch(G){case"southeast":case"east":R=L*(J/D);R=Math.min(Math.max(U,R),X);J=D*(R/L);break;case"south":J=D*(R/L);J=Math.min(Math.max(K,J),P);R=L*(J/D);break;case"northeast":J=D*(R/L);J=Math.min(Math.max(K,J),P);
R=L*(J/D);break;case"north":Y=J;J=D*(R/L);J=Math.min(Math.max(K,J),P);R=L*(J/D);I+=(Y-J)/2;break;case"southwest":R=L*(J/D);R=Math.min(Math.max(U,R),X);Y=J;J=D*(R/L);I+=Y-J;break;case"west":E=R;R=L*(J/D);R=Math.min(Math.max(U,R),X);H+=(E-R)/2;Y=J;J=D*(R/L);I+=Y-J;break;case"northwest":Y=J;E=R;R=L*(J/D);R=Math.min(Math.max(U,R),X);J=D*(R/L);H+=E-R;I+=Y-J;break}}this.proxy.setBounds(I,H,J,R);if(this.dynamic){this.resizeElement()}}catch(S){}}},handleOver:function(){if(this.enabled){this.el.addClass("x-resizable-over")}},handleOut:function(){if(!this.resizing){this.el.removeClass("x-resizable-over")}},getEl:function(){return this.el},getResizeChild:function(){return this.resizeChild},destroy:function(B){Ext.destroy(this.dd,this.overlay,this.proxy);this.overlay=null;this.proxy=null;var C=Ext.Resizable.positions;for(var A in C){if(typeof C[A]!="function"&&this[C[A]]){this[C[A]].destroy()}}if(B){this.el.update("");Ext.destroy(this.el);this.el=null}this.purgeListeners()},syncHandleHeight:function(){var A=this.el.getHeight(true);
if(this.west){this.west.el.setHeight(A)}if(this.east){this.east.el.setHeight(A)}}});Ext.Resizable.positions={n:"north",s:"south",e:"east",w:"west",se:"southeast",sw:"southwest",nw:"northwest",ne:"northeast"};Ext.Resizable.Handle=Ext.extend(Object,{constructor:function(D,F,C,E,A){if(!this.tpl){var B=Ext.DomHelper.createTemplate({tag:"div",cls:"x-resizable-handle x-resizable-handle-{0}"});B.compile();Ext.Resizable.Handle.prototype.tpl=B}this.position=F;this.rz=D;this.el=this.tpl.append(D.el.dom,[this.position],true);this.el.unselectable();if(E){this.el.setOpacity(0)}if(!Ext.isEmpty(A)){this.el.addClass(A)}this.el.on("mousedown",this.onMouseDown,this);if(!C){this.el.on({scope:this,mouseover:this.onMouseOver,mouseout:this.onMouseOut})}},afterResize:function(A){},onMouseDown:function(A){this.rz.onMouseDown(this,A)},onMouseOver:function(A){this.rz.handleOver(this,A)},onMouseOut:function(A){this.rz.handleOut(this,A)},destroy:function(){Ext.destroy(this.el);this.el=null}});Ext.Window=Ext.extend(Ext.Panel,{baseCls:"x-window",resizable:true,draggable:true,closable:true,closeAction:"close",constrain:false,constrainHeader:false,plain:false,minimizable:false,maximizable:false,minHeight:100,minWidth:200,expandOnShow:true,showAnimDuration:0.25,hideAnimDuration:0.25,collapsible:false,initHidden:undefined,hidden:true,elements:"header,body",frame:true,floating:true,initComponent:function(){this.initTools();
Ext.Window.superclass.initComponent.call(this);this.addEvents("resize","maximize","minimize","restore");if(Ext.isDefined(this.initHidden)){this.hidden=this.initHidden}if(this.hidden===false){this.hidden=true;this.show()}},getState:function(){return Ext.apply(Ext.Window.superclass.getState.call(this)||{},this.getBox(true))},onRender:function(B,A){Ext.Window.superclass.onRender.call(this,B,A);if(this.plain){this.el.addClass("x-window-plain")}this.focusEl=this.el.createChild({tag:"a",href:"#",cls:"x-dlg-focus",tabIndex:"-1",html:"&#160;"});this.focusEl.swallowEvent("click",true);this.proxy=this.el.createProxy("x-window-proxy");this.proxy.enableDisplayMode("block");if(this.modal){this.mask=this.container.createChild({cls:"ext-el-mask"},this.el.dom);this.mask.enableDisplayMode("block");this.mask.hide();this.mon(this.mask,"click",this.focus,this)}if(this.maximizable){this.mon(this.header,"dblclick",this.toggleMaximize,this)}},initEvents:function(){Ext.Window.superclass.initEvents.call(this);if(this.animateTarget){this.setAnimateTarget(this.animateTarget)
}if(this.resizable){this.resizer=new Ext.Resizable(this.el,{minWidth:this.minWidth,minHeight:this.minHeight,handles:this.resizeHandles||"all",pinned:true,resizeElement:this.resizerAction,handleCls:"x-window-handle"});this.resizer.window=this;this.mon(this.resizer,"beforeresize",this.beforeResize,this)}if(this.draggable){this.header.addClass("x-window-draggable")}this.mon(this.el,"mousedown",this.toFront,this);this.manager=this.manager||Ext.WindowMgr;this.manager.register(this);if(this.maximized){this.maximized=false;this.maximize()}if(this.closable){var A=this.getKeyMap();A.on(27,this.onEsc,this);A.disable()}},initDraggable:function(){this.dd=new Ext.Window.DD(this)},onEsc:function(A,B){if(this.activeGhost){this.unghost()}B.stopEvent();this[this.closeAction]()},beforeDestroy:function(){if(this.rendered){this.hide();this.clearAnchor();Ext.destroy(this.focusEl,this.resizer,this.dd,this.proxy,this.mask)}Ext.Window.superclass.beforeDestroy.call(this)},onDestroy:function(){if(this.manager){this.manager.unregister(this)
}Ext.Window.superclass.onDestroy.call(this)},initTools:function(){if(this.minimizable){this.addTool({id:"minimize",handler:this.minimize.createDelegate(this,[])})}if(this.maximizable){this.addTool({id:"maximize",handler:this.maximize.createDelegate(this,[])});this.addTool({id:"restore",handler:this.restore.createDelegate(this,[]),hidden:true})}if(this.closable){this.addTool({id:"close",handler:this[this.closeAction].createDelegate(this,[])})}},resizerAction:function(){var A=this.proxy.getBox();this.proxy.hide();this.window.handleResize(A);return A},beforeResize:function(){this.resizer.minHeight=Math.max(this.minHeight,this.getFrameHeight()+40);this.resizer.minWidth=Math.max(this.minWidth,this.getFrameWidth()+40);this.resizeBox=this.el.getBox()},updateHandles:function(){if(Ext.isIE&&this.resizer){this.resizer.syncHandleHeight();this.el.repaint()}},handleResize:function(B){var A=this.resizeBox;if(A.x!=B.x||A.y!=B.y){this.updateBox(B)}else{this.setSize(B);if(Ext.isIE6&&Ext.isStrict){this.doLayout()}}this.focus();
this.updateHandles();this.saveState()},focus:function(){var E=this.focusEl,A=this.defaultButton,C=typeof A,D,B;if(Ext.isDefined(A)){if(Ext.isNumber(A)&&this.fbar){E=this.fbar.items.get(A)}else{if(Ext.isString(A)){E=Ext.getCmp(A)}else{E=A}}D=E.getEl();B=Ext.getDom(this.container);if(D&&B){if(B!=document.body&&!Ext.lib.Region.getRegion(B).contains(Ext.lib.Region.getRegion(D.dom))){return }}}E=E||this.focusEl;E.focus.defer(10,E)},setAnimateTarget:function(A){A=Ext.get(A);this.animateTarget=A},beforeShow:function(){delete this.el.lastXY;delete this.el.lastLT;if(this.x===undefined||this.y===undefined){var A=this.el.getAlignToXY(this.container,"c-c");var B=this.el.translatePoints(A[0],A[1]);this.x=this.x===undefined?B.left:this.x;this.y=this.y===undefined?B.top:this.y}this.el.setLeftTop(this.x,this.y);if(this.expandOnShow){this.expand(false)}if(this.modal){Ext.getBody().addClass("x-body-masked");this.mask.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true));this.mask.show()}},show:function(C,A,B){if(!this.rendered){this.render(Ext.getBody())
}if(this.hidden===false){this.toFront();return this}if(this.fireEvent("beforeshow",this)===false){return this}if(A){this.on("show",A,B,{single:true})}this.hidden=false;if(Ext.isDefined(C)){this.setAnimateTarget(C)}this.beforeShow();if(this.animateTarget){this.animShow()}else{this.afterShow()}return this},afterShow:function(B){if(this.isDestroyed){return false}this.proxy.hide();this.el.setStyle("display","block");this.el.show();if(this.maximized){this.fitContainer()}if(Ext.isMac&&Ext.isGecko2){this.cascade(this.setAutoScroll)}if(this.monitorResize||this.modal||this.constrain||this.constrainHeader){Ext.EventManager.onWindowResize(this.onWindowResize,this)}this.doConstrain();this.doLayout();if(this.keyMap){this.keyMap.enable()}this.toFront();this.updateHandles();if(B&&(Ext.isIE||Ext.isWebKit)){var A=this.getSize();this.onResize(A.width,A.height)}this.onShow();this.fireEvent("show",this)},animShow:function(){this.proxy.show();this.proxy.setBox(this.animateTarget.getBox());this.proxy.setOpacity(0);var A=this.getBox();
this.el.setStyle("display","none");this.proxy.shift(Ext.apply(A,{callback:this.afterShow.createDelegate(this,[true],false),scope:this,easing:"easeNone",duration:this.showAnimDuration,opacity:0.5}))},hide:function(C,A,B){if(this.hidden||this.fireEvent("beforehide",this)===false){return this}if(A){this.on("hide",A,B,{single:true})}this.hidden=true;if(C!==undefined){this.setAnimateTarget(C)}if(this.modal){this.mask.hide();Ext.getBody().removeClass("x-body-masked")}if(this.animateTarget){this.animHide()}else{this.el.hide();this.afterHide()}return this},afterHide:function(){this.proxy.hide();if(this.monitorResize||this.modal||this.constrain||this.constrainHeader){Ext.EventManager.removeResizeListener(this.onWindowResize,this)}if(this.keyMap){this.keyMap.disable()}this.onHide();this.fireEvent("hide",this)},animHide:function(){this.proxy.setOpacity(0.5);this.proxy.show();var A=this.getBox(false);this.proxy.setBox(A);this.el.hide();this.proxy.shift(Ext.apply(this.animateTarget.getBox(),{callback:this.afterHide,scope:this,duration:this.hideAnimDuration,easing:"easeNone",opacity:0}))
},onShow:Ext.emptyFn,onHide:Ext.emptyFn,onWindowResize:function(){if(this.maximized){this.fitContainer()}if(this.modal){this.mask.setSize("100%","100%");var A=this.mask.dom.offsetHeight;this.mask.setSize(Ext.lib.Dom.getViewWidth(true),Ext.lib.Dom.getViewHeight(true))}this.doConstrain()},doConstrain:function(){if(this.constrain||this.constrainHeader){var B;if(this.constrain){B={right:this.el.shadowOffset,left:this.el.shadowOffset,bottom:this.el.shadowOffset}}else{var A=this.getSize();B={right:-(A.width-100),bottom:-(A.height-25+this.el.getConstrainOffset())}}var C=this.el.getConstrainToXY(this.container,true,B);if(C){this.setPosition(C[0],C[1])}}},ghost:function(A){var C=this.createGhost(A);var B=this.getBox(true);C.setLeftTop(B.x,B.y);C.setWidth(B.width);this.el.hide();this.activeGhost=C;return C},unghost:function(B,A){if(!this.activeGhost){return }if(B!==false){this.el.show();this.focus.defer(10,this);if(Ext.isMac&&Ext.isGecko2){this.cascade(this.setAutoScroll)}}if(A!==false){this.setPosition(this.activeGhost.getLeft(true),this.activeGhost.getTop(true))
}this.activeGhost.hide();this.activeGhost.remove();delete this.activeGhost},minimize:function(){this.fireEvent("minimize",this);return this},close:function(){if(this.fireEvent("beforeclose",this)!==false){if(this.hidden){this.doClose()}else{this.hide(null,this.doClose,this)}}},doClose:function(){this.fireEvent("close",this);this.destroy()},maximize:function(){if(!this.maximized){this.expand(false);this.restoreSize=this.getSize();this.restorePos=this.getPosition(true);if(this.maximizable){this.tools.maximize.hide();this.tools.restore.show()}this.maximized=true;this.el.disableShadow();if(this.dd){this.dd.lock()}if(this.collapsible){this.tools.toggle.hide()}this.el.addClass("x-window-maximized");this.container.addClass("x-window-maximized-ct");this.setPosition(0,0);this.fitContainer();this.fireEvent("maximize",this)}return this},restore:function(){if(this.maximized){var A=this.tools;this.el.removeClass("x-window-maximized");if(A.restore){A.restore.hide()}if(A.maximize){A.maximize.show()}this.setPosition(this.restorePos[0],this.restorePos[1]);
this.setSize(this.restoreSize.width,this.restoreSize.height);delete this.restorePos;delete this.restoreSize;this.maximized=false;this.el.enableShadow(true);if(this.dd){this.dd.unlock()}if(this.collapsible&&A.toggle){A.toggle.show()}this.container.removeClass("x-window-maximized-ct");this.doConstrain();this.fireEvent("restore",this)}return this},toggleMaximize:function(){return this[this.maximized?"restore":"maximize"]()},fitContainer:function(){var A=this.container.getViewSize(false);this.setSize(A.width,A.height)},setZIndex:function(A){if(this.modal){this.mask.setStyle("z-index",A)}this.el.setZIndex(++A);A+=5;if(this.resizer){this.resizer.proxy.setStyle("z-index",++A)}this.lastZIndex=A},alignTo:function(B,A,C){var D=this.el.getAlignToXY(B,A,C);this.setPagePosition(D[0],D[1]);return this},anchorTo:function(C,E,D,B){this.clearAnchor();this.anchorTarget={el:C,alignment:E,offsets:D};Ext.EventManager.onWindowResize(this.doAnchor,this);var A=typeof B;if(A!="undefined"){Ext.EventManager.on(window,"scroll",this.doAnchor,this,{buffer:A=="number"?B:50})
}return this.doAnchor()},doAnchor:function(){var A=this.anchorTarget;this.alignTo(A.el,A.alignment,A.offsets);return this},clearAnchor:function(){if(this.anchorTarget){Ext.EventManager.removeResizeListener(this.doAnchor,this);Ext.EventManager.un(window,"scroll",this.doAnchor,this);delete this.anchorTarget}return this},toFront:function(A){if(this.manager.bringToFront(this)){if(!A||!A.getTarget().focus){this.focus()}}return this},setActive:function(A){if(A){if(!this.maximized){this.el.enableShadow(true)}this.fireEvent("activate",this)}else{this.el.disableShadow();this.fireEvent("deactivate",this)}},toBack:function(){this.manager.sendToBack(this);return this},center:function(){var A=this.el.getAlignToXY(this.container,"c-c");this.setPagePosition(A[0],A[1]);return this}});Ext.reg("window",Ext.Window);Ext.Window.DD=Ext.extend(Ext.dd.DD,{constructor:function(A){this.win=A;Ext.Window.DD.superclass.constructor.call(this,A.el.id,"WindowDD-"+A.id);this.setHandleElId(A.header.id);this.scroll=false},moveOnly:true,headerOffsets:[100,25],startDrag:function(){var A=this.win;
this.proxy=A.ghost(A.initialConfig.cls);if(A.constrain!==false){var C=A.el.shadowOffset;this.constrainTo(A.container,{right:C,left:C,bottom:C})}else{if(A.constrainHeader!==false){var B=this.proxy.getSize();this.constrainTo(A.container,{right:-(B.width-this.headerOffsets[0]),bottom:-(B.height-this.headerOffsets[1])})}}},b4Drag:Ext.emptyFn,onDrag:function(A){this.alignElWithMouse(this.proxy,A.getPageX(),A.getPageY())},endDrag:function(A){this.win.unghost();this.win.saveState()}});Ext.WindowGroup=function(){var F={};var D=[];var E=null;var C=function(I,H){return(!I._lastAccess||I._lastAccess<H._lastAccess)?-1:1};var G=function(){var J=D,H=J.length;if(H>0){J.sort(C);var I=J[0].manager.zseed;for(var K=0;K<H;K++){var L=J[K];if(L&&!L.hidden){L.setZIndex(I+(K*10))}}}A()};var B=function(H){if(H!=E){if(E){E.setActive(false)}E=H;if(H){H.setActive(true)}}};var A=function(){for(var H=D.length-1;H>=0;--H){if(!D[H].hidden){B(D[H]);return }}B(null)};return{zseed:9000,register:function(H){if(H.manager){H.manager.unregister(H)}H.manager=this;
F[H.id]=H;D.push(H);H.on("hide",A)},unregister:function(H){delete H.manager;delete F[H.id];H.un("hide",A);D.remove(H)},get:function(H){return typeof H=="object"?H:F[H]},bringToFront:function(H){H=this.get(H);if(H!=E){H._lastAccess=new Date().getTime();G();return true}return false},sendToBack:function(H){H=this.get(H);H._lastAccess=-(new Date().getTime());G();return H},hideAll:function(){for(var H in F){if(F[H]&&typeof F[H]!="function"&&F[H].isVisible()){F[H].hide()}}},getActive:function(){return E},getBy:function(J,I){var K=[];for(var H=D.length-1;H>=0;--H){var L=D[H];if(J.call(I||L,L)!==false){K.push(L)}}return K},each:function(I,H){for(var J in F){if(F[J]&&typeof F[J]!="function"){if(I.call(H||F[J],F[J])===false){return }}}}}};Ext.WindowMgr=new Ext.WindowGroup();Ext.MessageBox=function(){var T,B,P,S,G,K,R,A,M,O,I,F,Q,U,N,H="",D="",L=["ok","yes","no","cancel"];var C=function(W){Q[W].blur();if(T.isVisible()){T.hide();V();Ext.callback(B.fn,B.scope||window,[W,U.dom.value,B],1)}};var V=function(){if(B&&B.cls){T.el.removeClass(B.cls)
}M.reset()};var E=function(Y,W,X){if(B&&B.closable!==false){T.hide();V()}if(X){X.stopEvent()}};var J=function(W){var Y=0,X;if(!W){Ext.each(L,function(Z){Q[Z].hide()});return Y}T.footer.dom.style.display="";Ext.iterate(Q,function(Z,a){X=W[Z];if(X){a.show();a.setText(Ext.isString(X)?X:Ext.MessageBox.buttonText[Z]);Y+=a.getEl().getWidth()+15}else{a.hide()}});return Y};return{getDialog:function(W){if(!T){var Y=[];Q={};Ext.each(L,function(Z){Y.push(Q[Z]=new Ext.Button({text:this.buttonText[Z],handler:C.createCallback(Z),hideMode:"offsets"}))},this);T=new Ext.Window({autoCreate:true,title:W,resizable:false,constrain:true,constrainHeader:true,minimizable:false,maximizable:false,stateful:false,modal:true,shim:true,buttonAlign:"center",width:400,height:100,minHeight:80,plain:true,footer:true,closable:true,close:function(){if(B&&B.buttons&&B.buttons.no&&!B.buttons.cancel){C("no")}else{C("cancel")}},fbar:new Ext.Toolbar({items:Y,enableOverflow:false})});T.render(document.body);T.getEl().addClass("x-window-dlg");P=T.mask;
G=T.body.createChild({html:'<div class="ext-mb-icon"></div><div class="ext-mb-content"><span class="ext-mb-text"></span><br /><div class="ext-mb-fix-cursor"><input type="text" class="ext-mb-input" /><textarea class="ext-mb-textarea"></textarea></div></div>'});I=Ext.get(G.dom.firstChild);var X=G.dom.childNodes[1];K=Ext.get(X.firstChild);R=Ext.get(X.childNodes[2].firstChild);R.enableDisplayMode();R.addKeyListener([10,13],function(){if(T.isVisible()&&B&&B.buttons){if(B.buttons.ok){C("ok")}else{if(B.buttons.yes){C("yes")}}}});A=Ext.get(X.childNodes[2].childNodes[1]);A.enableDisplayMode();M=new Ext.ProgressBar({renderTo:G});G.createChild({cls:"x-clear"})}return T},updateText:function(Z){if(!T.isVisible()&&!B.width){T.setSize(this.maxWidth,100)}K.update(Z?Z+" ":"&#160;");var X=D!=""?(I.getWidth()+I.getMargins("lr")):0,b=K.getWidth()+K.getMargins("lr"),Y=T.getFrameWidth("lr"),a=T.body.getFrameWidth("lr"),W;W=Math.max(Math.min(B.width||X+b+Y+a,B.maxWidth||this.maxWidth),Math.max(B.minWidth||this.minWidth,N||0));if(B.prompt===true){U.setWidth(W-X-Y-a)
}if(B.progress===true||B.wait===true){M.setSize(W-X-Y-a)}if(Ext.isIE&&W==N){W+=4}K.update(Z||"&#160;");T.setSize(W,"auto").center();return this},updateProgress:function(X,W,Y){M.updateProgress(X,W);if(Y){this.updateText(Y)}return this},isVisible:function(){return T&&T.isVisible()},hide:function(){var W=T?T.activeGhost:null;if(this.isVisible()||W){T.hide();V();if(W){T.unghost(false,false)}}return this},show:function(Z){if(this.isVisible()){this.hide()}B=Z;var a=this.getDialog(B.title||"&#160;");a.setTitle(B.title||"&#160;");var W=(B.closable!==false&&B.progress!==true&&B.wait!==true);a.tools.close.setDisplayed(W);U=R;B.prompt=B.prompt||(B.multiline?true:false);if(B.prompt){if(B.multiline){R.hide();A.show();A.setHeight(Ext.isNumber(B.multiline)?B.multiline:this.defaultTextHeight);U=A}else{R.show();A.hide()}}else{R.hide();A.hide()}U.dom.value=B.value||"";if(B.prompt){a.focusEl=U}else{var Y=B.buttons;var X=null;if(Y&&Y.ok){X=Q["ok"]}else{if(Y&&Y.yes){X=Q["yes"]}}if(X){a.focusEl=X}}if(Ext.isDefined(B.iconCls)){a.setIconClass(B.iconCls)
}this.setIcon(Ext.isDefined(B.icon)?B.icon:H);N=J(B.buttons);M.setVisible(B.progress===true||B.wait===true);this.updateProgress(0,B.progressText);this.updateText(B.msg);if(B.cls){a.el.addClass(B.cls)}a.proxyDrag=B.proxyDrag===true;a.modal=B.modal!==false;a.mask=B.modal!==false?P:false;if(!a.isVisible()){document.body.appendChild(T.el.dom);a.setAnimateTarget(B.animEl);a.on("show",function(){if(W===true){a.keyMap.enable()}else{a.keyMap.disable()}},this,{single:true});a.show(B.animEl)}if(B.wait===true){M.wait(B.waitConfig)}return this},setIcon:function(W){if(!T){H=W;return }H=undefined;if(W&&W!=""){I.removeClass("x-hidden");I.replaceClass(D,W);G.addClass("x-dlg-icon");D=W}else{I.replaceClass(D,"x-hidden");G.removeClass("x-dlg-icon");D=""}return this},progress:function(Y,X,W){this.show({title:Y,msg:X,buttons:false,progress:true,closable:false,minWidth:this.minProgressWidth,progressText:W});return this},wait:function(Y,X,W){this.show({title:X,msg:Y,buttons:false,closable:false,wait:true,modal:true,minWidth:this.minProgressWidth,waitConfig:W});
return this},alert:function(Z,Y,X,W){this.show({title:Z,msg:Y,buttons:this.OK,fn:X,scope:W,minWidth:this.minWidth});return this},confirm:function(Z,Y,X,W){this.show({title:Z,msg:Y,buttons:this.YESNO,fn:X,scope:W,icon:this.QUESTION,minWidth:this.minWidth});return this},prompt:function(b,a,Y,X,W,Z){this.show({title:b,msg:a,buttons:this.OKCANCEL,fn:Y,minWidth:this.minPromptWidth,scope:X,prompt:true,multiline:W,value:Z});return this},OK:{ok:true},CANCEL:{cancel:true},OKCANCEL:{ok:true,cancel:true},YESNO:{yes:true,no:true},YESNOCANCEL:{yes:true,no:true,cancel:true},INFO:"ext-mb-info",WARNING:"ext-mb-warning",QUESTION:"ext-mb-question",ERROR:"ext-mb-error",defaultTextHeight:75,maxWidth:600,minWidth:100,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:"OK",cancel:"Cancel",yes:"Yes",no:"No"}}}();Ext.Msg=Ext.MessageBox;Ext.dd.PanelProxy=Ext.extend(Object,{constructor:function(A,B){this.panel=A;this.id=this.panel.id+"-ddproxy";Ext.apply(this,B)},insertProxy:true,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost
},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){if(this.ghost){if(this.proxy){this.proxy.remove();delete this.proxy}this.panel.el.dom.style.display="";this.ghost.remove();delete this.ghost}},show:function(){if(!this.ghost){this.ghost=this.panel.createGhost(this.panel.initialConfig.cls,undefined,Ext.getBody());this.ghost.setXY(this.panel.el.getXY());if(this.insertProxy){this.proxy=this.panel.el.insertSibling({cls:"x-panel-dd-spacer"});this.proxy.setSize(this.panel.getSize())}this.panel.el.dom.style.display="none"}},repair:function(B,C,A){this.hide();if(typeof C=="function"){C.call(A||this)}},moveProxy:function(A,B){if(this.proxy){A.insertBefore(this.proxy.dom,B)}}});Ext.Panel.DD=Ext.extend(Ext.dd.DragSource,{constructor:function(B,A){this.panel=B;this.dragData={panel:B};this.proxy=new Ext.dd.PanelProxy(B,A);Ext.Panel.DD.superclass.constructor.call(this,B.el,A);var D=B.header,C=B.body;if(D){this.setHandleElId(D.id);C=B.header}C.setStyle("cursor","move");this.scroll=false
},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(A,B){this.proxy.show()},b4MouseDown:function(B){var A=B.getPageX(),C=B.getPageY();this.autoOffset(A,C)},onInitDrag:function(A,B){this.onStartDrag(A,B);return true},createFrame:Ext.emptyFn,getDragEl:function(A){return this.proxy.ghost.dom},endDrag:function(A){this.proxy.hide();this.panel.saveState()},autoOffset:function(A,B){A-=this.startPageX;B-=this.startPageY;this.setDelta(A,B)}});Ext.state.Provider=Ext.extend(Ext.util.Observable,{constructor:function(){this.addEvents("statechange");this.state={};Ext.state.Provider.superclass.constructor.call(this)},get:function(B,A){return typeof this.state[B]=="undefined"?A:this.state[B]},clear:function(A){delete this.state[A];this.fireEvent("statechange",this,A,null)},set:function(A,B){this.state[A]=B;this.fireEvent("statechange",this,A,B)},decodeValue:function(B){var E=/^(a|n|d|b|s|o|e)\:(.*)$/,G=E.exec(unescape(B)),D,C,A,F;if(!G||!G[1]){return }C=G[1];A=G[2];switch(C){case"e":return null;case"n":return parseFloat(A);
case"d":return new Date(Date.parse(A));case"b":return(A=="1");case"a":D=[];if(A!=""){Ext.each(A.split("^"),function(H){D.push(this.decodeValue(H))},this)}return D;case"o":D={};if(A!=""){Ext.each(A.split("^"),function(H){F=H.split("=");D[F[0]]=this.decodeValue(F[1])},this)}return D;default:return A}},encodeValue:function(C){var B,F="",E=0,A,D;if(C==null){return"e:1"}else{if(typeof C=="number"){B="n:"+C}else{if(typeof C=="boolean"){B="b:"+(C?"1":"0")}else{if(Ext.isDate(C)){B="d:"+C.toGMTString()}else{if(Ext.isArray(C)){for(A=C.length;E<A;E++){F+=this.encodeValue(C[E]);if(E!=A-1){F+="^"}}B="a:"+F}else{if(typeof C=="object"){for(D in C){if(typeof C[D]!="function"&&C[D]!==undefined){F+=D+"="+this.encodeValue(C[D])+"^"}}B="o:"+F.substring(0,F.length-1)}else{B="s:"+C}}}}}}return escape(B)}});Ext.state.Manager=function(){var A=new Ext.state.Provider();return{setProvider:function(B){A=B},get:function(C,B){return A.get(C,B)},set:function(B,C){A.set(B,C)},clear:function(B){A.clear(B)},getProvider:function(){return A}}}();
Ext.state.CookieProvider=Ext.extend(Ext.state.Provider,{constructor:function(A){Ext.state.CookieProvider.superclass.constructor.call(this);this.path="/";this.expires=new Date(new Date().getTime()+(1000*60*60*24*7));this.domain=null;this.secure=false;Ext.apply(this,A);this.state=this.readCookies()},set:function(A,B){if(typeof B=="undefined"||B===null){this.clear(A);return }this.setCookie(A,B);Ext.state.CookieProvider.superclass.set.call(this,A,B)},clear:function(A){this.clearCookie(A);Ext.state.CookieProvider.superclass.clear.call(this,A)},readCookies:function(){var C={},F=document.cookie+";",B=/\s?(.*?)=(.*?);/g,E,A,D;while((E=B.exec(F))!=null){A=E[1];D=E[2];if(A&&A.substring(0,3)=="ys-"){C[A.substr(3)]=this.decodeValue(D)}}return C},setCookie:function(A,B){document.cookie="ys-"+A+"="+this.encodeValue(B)+((this.expires==null)?"":("; expires="+this.expires.toGMTString()))+((this.path==null)?"":("; path="+this.path))+((this.domain==null)?"":("; domain="+this.domain))+((this.secure==true)?"; secure":"")},clearCookie:function(A){document.cookie="ys-"+A+"=null; expires=Thu, 01-Jan-70 00:00:01 GMT"+((this.path==null)?"":("; path="+this.path))+((this.domain==null)?"":("; domain="+this.domain))+((this.secure==true)?"; secure":"")
}});Ext.DataView=Ext.extend(Ext.BoxComponent,{selectedClass:"x-view-selected",emptyText:"",deferEmptyText:true,trackOver:false,blockRefresh:false,last:false,initComponent:function(){Ext.DataView.superclass.initComponent.call(this);if(Ext.isString(this.tpl)||Ext.isArray(this.tpl)){this.tpl=new Ext.XTemplate(this.tpl)}this.addEvents("beforeclick","click","mouseenter","mouseleave","containerclick","dblclick","contextmenu","containercontextmenu","selectionchange","beforeselect");this.store=Ext.StoreMgr.lookup(this.store);this.all=new Ext.CompositeElementLite();this.selected=new Ext.CompositeElementLite()},afterRender:function(){Ext.DataView.superclass.afterRender.call(this);this.mon(this.getTemplateTarget(),{"click":this.onClick,"dblclick":this.onDblClick,"contextmenu":this.onContextMenu,scope:this});if(this.overClass||this.trackOver){this.mon(this.getTemplateTarget(),{"mouseover":this.onMouseOver,"mouseout":this.onMouseOut,scope:this})}if(this.store){this.bindStore(this.store,true)}},refresh:function(){this.clearSelections(false,true);
var B=this.getTemplateTarget(),A=this.store.getRange();B.update("");if(A.length<1){if(!this.deferEmptyText||this.hasSkippedEmptyText){B.update(this.emptyText)}this.all.clear()}else{this.tpl.overwrite(B,this.collectData(A,0));this.all.fill(Ext.query(this.itemSelector,B.dom));this.updateIndexes(0)}this.hasSkippedEmptyText=true},getTemplateTarget:function(){return this.el},prepareData:function(A){return A},collectData:function(B,E){var D=[],C=0,A=B.length;for(;C<A;C++){D[D.length]=this.prepareData(B[C].data,E+C,B[C])}return D},bufferRender:function(A,B){var C=document.createElement("div");this.tpl.overwrite(C,this.collectData(A,B));return Ext.query(this.itemSelector,C)},onUpdate:function(F,A){var B=this.store.indexOf(A);if(B>-1){var E=this.isSelected(B),C=this.all.elements[B],D=this.bufferRender([A],B)[0];this.all.replaceElement(B,D,true);if(E){this.selected.replaceElement(C,D);this.all.item(B).addClass(this.selectedClass)}this.updateIndexes(B,B)}},onAdd:function(E,C,D){if(this.all.getCount()===0){this.refresh();
return }var B=this.bufferRender(C,D),F,A=this.all.elements;if(D<this.all.getCount()){F=this.all.item(D).insertSibling(B,"before",true);A.splice.apply(A,[D,0].concat(B))}else{F=this.all.last().insertSibling(B,"after",true);A.push.apply(A,B)}this.updateIndexes(D)},onRemove:function(C,A,B){this.deselect(B);this.all.removeElement(B,true);this.updateIndexes(B);if(this.store.getCount()===0){this.refresh()}},refreshNode:function(A){this.onUpdate(this.store,this.store.getAt(A))},updateIndexes:function(D,C){var B=this.all.elements;D=D||0;C=C||((C===0)?0:(B.length-1));for(var A=D;A<=C;A++){B[A].viewIndex=A}},getStore:function(){return this.store},bindStore:function(A,B){if(!B&&this.store){if(A!==this.store&&this.store.autoDestroy){this.store.destroy()}else{this.store.un("beforeload",this.onBeforeLoad,this);this.store.un("datachanged",this.onDataChanged,this);this.store.un("add",this.onAdd,this);this.store.un("remove",this.onRemove,this);this.store.un("update",this.onUpdate,this);this.store.un("clear",this.refresh,this)}if(!A){this.store=null
}}if(A){A=Ext.StoreMgr.lookup(A);A.on({scope:this,beforeload:this.onBeforeLoad,datachanged:this.onDataChanged,add:this.onAdd,remove:this.onRemove,update:this.onUpdate,clear:this.refresh})}this.store=A;if(A){this.refresh()}},onDataChanged:function(){if(this.blockRefresh!==true){this.refresh.apply(this,arguments)}},findItemFromChild:function(A){return Ext.fly(A).findParent(this.itemSelector,this.getTemplateTarget())},onClick:function(C){var B=C.getTarget(this.itemSelector,this.getTemplateTarget()),A;if(B){A=this.indexOf(B);if(this.onItemClick(B,A,C)!==false){this.fireEvent("click",this,A,B,C)}}else{if(this.fireEvent("containerclick",this,C)!==false){this.onContainerClick(C)}}},onContainerClick:function(A){this.clearSelections()},onContextMenu:function(B){var A=B.getTarget(this.itemSelector,this.getTemplateTarget());if(A){this.fireEvent("contextmenu",this,this.indexOf(A),A,B)}else{this.fireEvent("containercontextmenu",this,B)}},onDblClick:function(B){var A=B.getTarget(this.itemSelector,this.getTemplateTarget());if(A){this.fireEvent("dblclick",this,this.indexOf(A),A,B)
}},onMouseOver:function(B){var A=B.getTarget(this.itemSelector,this.getTemplateTarget());if(A&&A!==this.lastItem){this.lastItem=A;Ext.fly(A).addClass(this.overClass);this.fireEvent("mouseenter",this,this.indexOf(A),A,B)}},onMouseOut:function(A){if(this.lastItem){if(!A.within(this.lastItem,true,true)){Ext.fly(this.lastItem).removeClass(this.overClass);this.fireEvent("mouseleave",this,this.indexOf(this.lastItem),this.lastItem,A);delete this.lastItem}}},onItemClick:function(B,A,C){if(this.fireEvent("beforeclick",this,A,B,C)===false){return false}if(this.multiSelect){this.doMultiSelection(B,A,C);C.preventDefault()}else{if(this.singleSelect){this.doSingleSelection(B,A,C);C.preventDefault()}}return true},doSingleSelection:function(B,A,C){if(C.ctrlKey&&this.isSelected(A)){this.deselect(A)}else{this.select(A,false)}},doMultiSelection:function(C,A,D){if(D.shiftKey&&this.last!==false){var B=this.last;this.selectRange(B,A,D.ctrlKey);this.last=B}else{if((D.ctrlKey||this.simpleSelect)&&this.isSelected(A)){this.deselect(A)}else{this.select(A,D.ctrlKey||D.shiftKey||this.simpleSelect)
}}},getSelectionCount:function(){return this.selected.getCount()},getSelectedNodes:function(){return this.selected.elements},getSelectedIndexes:function(){var B=[],D=this.selected.elements,C=0,A=D.length;for(;C<A;C++){B.push(D[C].viewIndex)}return B},getSelectedRecords:function(){return this.getRecords(this.selected.elements)},getRecords:function(C){var B=[],D=0,A=C.length;for(;D<A;D++){B[B.length]=this.store.getAt(C[D].viewIndex)}return B},getRecord:function(A){return this.store.getAt(A.viewIndex)},clearSelections:function(A,B){if((this.multiSelect||this.singleSelect)&&this.selected.getCount()>0){if(!B){this.selected.removeClass(this.selectedClass)}this.selected.clear();this.last=false;if(!A){this.fireEvent("selectionchange",this,this.selected.elements)}}},isSelected:function(A){return this.selected.contains(this.getNode(A))},deselect:function(A){if(this.isSelected(A)){A=this.getNode(A);this.selected.removeElement(A);if(this.last==A.viewIndex){this.last=false}Ext.fly(A).removeClass(this.selectedClass);this.fireEvent("selectionchange",this,this.selected.elements)
}},select:function(D,F,B){if(Ext.isArray(D)){if(!F){this.clearSelections(true)}for(var C=0,A=D.length;C<A;C++){this.select(D[C],true,true)}if(!B){this.fireEvent("selectionchange",this,this.selected.elements)}}else{var E=this.getNode(D);if(!F){this.clearSelections(true)}if(E&&!this.isSelected(E)){if(this.fireEvent("beforeselect",this,E,this.selected.elements)!==false){Ext.fly(E).addClass(this.selectedClass);this.selected.add(E);this.last=E.viewIndex;if(!B){this.fireEvent("selectionchange",this,this.selected.elements)}}}}},selectRange:function(C,A,B){if(!B){this.clearSelections(true)}this.select(this.getNodes(C,A),true)},getNode:function(B){if(Ext.isString(B)){return document.getElementById(B)}else{if(Ext.isNumber(B)){return this.all.elements[B]}else{if(B instanceof Ext.data.Record){var A=this.store.indexOf(B);return this.all.elements[A]}}}return B},getNodes:function(E,A){var D=this.all.elements,B=[],C;E=E||0;A=!Ext.isDefined(A)?Math.max(D.length-1,0):A;if(E<=A){for(C=E;C<=A&&D[C];C++){B.push(D[C])}}else{for(C=E;
C>=A&&D[C];C--){B.push(D[C])}}return B},indexOf:function(A){A=this.getNode(A);if(Ext.isNumber(A.viewIndex)){return A.viewIndex}return this.all.indexOf(A)},onBeforeLoad:function(){if(this.loadingText){this.clearSelections(false,true);this.getTemplateTarget().update('<div class="loading-indicator">'+this.loadingText+"</div>");this.all.clear()}},onDestroy:function(){this.all.clear();this.selected.clear();Ext.DataView.superclass.onDestroy.call(this);this.bindStore(null)}});Ext.DataView.prototype.setStore=Ext.DataView.prototype.bindStore;Ext.reg("dataview",Ext.DataView);Ext.list.ListView=Ext.extend(Ext.DataView,{itemSelector:"dl",selectedClass:"x-list-selected",overClass:"x-list-over",scrollOffset:undefined,columnResize:true,columnSort:true,maxColumnWidth:Ext.isIE?99:100,initComponent:function(){if(this.columnResize){this.colResizer=new Ext.list.ColumnResizer(this.colResizer);this.colResizer.init(this)}if(this.columnSort){this.colSorter=new Ext.list.Sorter(this.columnSort);this.colSorter.init(this)}if(!this.internalTpl){this.internalTpl=new Ext.XTemplate('<div class="x-list-header"><div class="x-list-header-inner">','<tpl for="columns">','<div style="width:{[values.width*100]}%;text-align:{align};"><em unselectable="on" id="',this.id,'-xlhd-{#}">',"{header}","</em></div>","</tpl>",'<div class="x-clear"></div>',"</div></div>",'<div class="x-list-body"><div class="x-list-body-inner">',"</div></div>")
}if(!this.tpl){this.tpl=new Ext.XTemplate('<tpl for="rows">',"<dl>",'<tpl for="parent.columns">','<dt style="width:{[values.width*100]}%;text-align:{align};">','<em unselectable="on"<tpl if="cls"> class="{cls}</tpl>">',"{[values.tpl.apply(parent)]}","</em></dt>","</tpl>",'<div class="x-clear"></div>',"</dl>","</tpl>")}var H=this.columns,F=0,G=0,I=H.length,B=[];for(var E=0;E<I;E++){var J=H[E];if(!J.isColumn){J.xtype=J.xtype?(/^lv/.test(J.xtype)?J.xtype:"lv"+J.xtype):"lvcolumn";J=Ext.create(J)}if(J.width){F+=J.width*100;if(F>this.maxColumnWidth){J.width-=(F-this.maxColumnWidth)/100}G++}B.push(J)}H=this.columns=B;if(G<I){var C=I-G;if(F<this.maxColumnWidth){var A=((this.maxColumnWidth-F)/C)/100;for(var D=0;D<I;D++){var J=H[D];if(!J.width){J.width=A}}}}Ext.list.ListView.superclass.initComponent.call(this)},onRender:function(){this.autoEl={cls:"x-list-wrap"};Ext.list.ListView.superclass.onRender.apply(this,arguments);this.internalTpl.overwrite(this.el,{columns:this.columns});this.innerBody=Ext.get(this.el.dom.childNodes[1].firstChild);
this.innerHd=Ext.get(this.el.dom.firstChild.firstChild);if(this.hideHeaders){this.el.dom.firstChild.style.display="none"}},getTemplateTarget:function(){return this.innerBody},collectData:function(){var A=Ext.list.ListView.superclass.collectData.apply(this,arguments);return{columns:this.columns,rows:A}},verifyInternalSize:function(){if(this.lastSize){this.onResize(this.lastSize.width,this.lastSize.height)}},onResize:function(C,E){var B=this.innerBody.dom,F=this.innerHd.dom,D=C-Ext.num(this.scrollOffset,Ext.getScrollBarWidth())+"px",A;if(!B){return }A=B.parentNode;if(Ext.isNumber(C)){if(this.reserveScrollOffset||((A.offsetWidth-A.clientWidth)>10)){B.style.width=D;F.style.width=D}else{B.style.width=C+"px";F.style.width=C+"px";setTimeout(function(){if((A.offsetWidth-A.clientWidth)>10){B.style.width=D;F.style.width=D}},10)}}if(Ext.isNumber(E)){A.style.height=Math.max(0,E-F.parentNode.offsetHeight)+"px"}},updateIndexes:function(){Ext.list.ListView.superclass.updateIndexes.apply(this,arguments);this.verifyInternalSize()
},findHeaderIndex:function(E){E=E.dom||E;var A=E.parentNode,C=A.parentNode.childNodes,B=0,D;for(;D=C[B];B++){if(D==A){return B}}return -1},setHdWidths:function(){var D=this.innerHd.dom.getElementsByTagName("div"),C=0,B=this.columns,A=B.length;for(;C<A;C++){D[C].style.width=(B[C].width*100)+"%"}}});Ext.reg("listview",Ext.list.ListView);Ext.ListView=Ext.list.ListView;Ext.list.Column=Ext.extend(Object,{isColumn:true,align:"left",header:"",width:null,cls:"",constructor:function(A){if(!A.tpl){A.tpl=new Ext.XTemplate("{"+A.dataIndex+"}")}else{if(Ext.isString(A.tpl)){A.tpl=new Ext.XTemplate(A.tpl)}}Ext.apply(this,A)}});Ext.reg("lvcolumn",Ext.list.Column);Ext.list.NumberColumn=Ext.extend(Ext.list.Column,{format:"0,000.00",constructor:function(A){A.tpl=A.tpl||new Ext.XTemplate("{"+A.dataIndex+':number("'+(A.format||this.format)+'")}');Ext.list.NumberColumn.superclass.constructor.call(this,A)}});Ext.reg("lvnumbercolumn",Ext.list.NumberColumn);Ext.list.DateColumn=Ext.extend(Ext.list.Column,{format:"m/d/Y",constructor:function(A){A.tpl=A.tpl||new Ext.XTemplate("{"+A.dataIndex+':date("'+(A.format||this.format)+'")}');
Ext.list.DateColumn.superclass.constructor.call(this,A)}});Ext.reg("lvdatecolumn",Ext.list.DateColumn);Ext.list.BooleanColumn=Ext.extend(Ext.list.Column,{trueText:"true",falseText:"false",undefinedText:"&#160;",constructor:function(D){D.tpl=D.tpl||new Ext.XTemplate("{"+D.dataIndex+":this.format}");var B=this.trueText,C=this.falseText,A=this.undefinedText;D.tpl.format=function(E){if(E===undefined){return A}if(!E||E==="false"){return C}return B};Ext.list.DateColumn.superclass.constructor.call(this,D)}});Ext.reg("lvbooleancolumn",Ext.list.BooleanColumn);Ext.list.ColumnResizer=Ext.extend(Ext.util.Observable,{minPct:0.05,constructor:function(A){Ext.apply(this,A);Ext.list.ColumnResizer.superclass.constructor.call(this)},init:function(A){this.view=A;A.on("render",this.initEvents,this)},initEvents:function(A){A.mon(A.innerHd,"mousemove",this.handleHdMove,this);this.tracker=new Ext.dd.DragTracker({onBeforeStart:this.onBeforeStart.createDelegate(this),onStart:this.onStart.createDelegate(this),onDrag:this.onDrag.createDelegate(this),onEnd:this.onEnd.createDelegate(this),tolerance:3,autoStart:300});
this.tracker.initEl(A.innerHd);A.on("beforedestroy",this.tracker.destroy,this.tracker)},handleHdMove:function(G,D){var C=5,B=G.getPageX(),H=G.getTarget("em",3,true);if(H){var F=H.getRegion(),E=H.dom.style,A=H.dom.parentNode;if(B-F.left<=C&&A!=A.parentNode.firstChild){this.activeHd=Ext.get(A.previousSibling.firstChild);E.cursor=Ext.isWebKit?"e-resize":"col-resize"}else{if(F.right-B<=C&&A!=A.parentNode.lastChild.previousSibling){this.activeHd=H;E.cursor=Ext.isWebKit?"w-resize":"col-resize"}else{delete this.activeHd;E.cursor=""}}}},onBeforeStart:function(A){this.dragHd=this.activeHd;return !!this.dragHd},onStart:function(E){var D=this,B=D.view,C=D.dragHd,A=D.tracker.getXY()[0];D.proxy=B.el.createChild({cls:"x-list-resizer"});D.dragX=C.getX();D.headerIndex=B.findHeaderIndex(C);D.headersDisabled=B.disableHeaders;B.disableHeaders=true;D.proxy.setHeight(B.el.getHeight());D.proxy.setX(D.dragX);D.proxy.setWidth(A-D.dragX);this.setBoundaries()},setBoundaries:function(I){var J=this.view,G=this.headerIndex,C=J.innerHd.getWidth(),I=J.innerHd.getX(),B=Math.ceil(C*this.minPct),K=C-B,E=J.columns.length,D=J.innerHd.select("em",true),F=B+I,A=K+I,H;
if(E==2){this.minX=F;this.maxX=A}else{H=D.item(G+2);this.minX=D.item(G).getX()+B;this.maxX=H?H.getX()-B:A;if(G==0){this.minX=F}else{if(G==E-2){this.maxX=A}}}},onDrag:function(C){var B=this,A=B.tracker.getXY()[0].constrain(B.minX,B.maxX);B.proxy.setWidth(A-this.dragX)},onEnd:function(G){var E=this.proxy.getWidth(),F=this.headerIndex,J=this.view,C=J.columns,B=J.innerHd.getWidth(),I=Math.ceil(E*J.maxColumnWidth/B)/100,D=this.headersDisabled,K=C[F],H=C[F+1],A=K.width+H.width;this.proxy.remove();K.width=I;H.width=A-I;delete this.dragHd;J.setHdWidths();J.refresh();setTimeout(function(){J.disableHeaders=D},100)}});Ext.ListView.ColumnResizer=Ext.list.ColumnResizer;Ext.list.Sorter=Ext.extend(Ext.util.Observable,{sortClasses:["sort-asc","sort-desc"],constructor:function(A){Ext.apply(this,A);Ext.list.Sorter.superclass.constructor.call(this)},init:function(A){this.view=A;A.on("render",this.initEvents,this)},initEvents:function(A){A.mon(A.innerHd,"click",this.onHdClick,this);A.innerHd.setStyle("cursor","pointer");A.mon(A.store,"datachanged",this.updateSortState,this);
this.updateSortState.defer(10,this,[A.store])},updateSortState:function(C){var F=C.getSortState();if(!F){return }this.sortState=F;var E=this.view.columns,G=-1;for(var D=0,A=E.length;D<A;D++){if(E[D].dataIndex==F.field){G=D;break}}if(G!=-1){var B=F.direction;this.updateSortIcon(G,B)}},updateSortIcon:function(B,A){var D=this.sortClasses;var C=this.view.innerHd.select("em").removeClass(D);C.item(B).addClass(D[A=="DESC"?1:0])},onHdClick:function(C){var B=C.getTarget("em",3);if(B&&!this.view.disableHeaders){var A=this.view.findHeaderIndex(B);this.view.store.sort(this.view.columns[A].dataIndex)}}});Ext.ListView.Sorter=Ext.list.Sorter;Ext.TabPanel=Ext.extend(Ext.Panel,{deferredRender:true,tabWidth:120,minTabWidth:30,resizeTabs:false,enableTabScroll:false,scrollIncrement:0,scrollRepeatInterval:400,scrollDuration:0.35,animScroll:true,tabPosition:"top",baseCls:"x-tab-panel",autoTabs:false,autoTabSelector:"div.x-tab",activeTab:undefined,tabMargin:2,plain:false,wheelIncrement:20,idDelimiter:"__",itemCls:"x-tab-item",elements:"body",headerAsText:false,frame:false,hideBorders:true,initComponent:function(){this.frame=false;
Ext.TabPanel.superclass.initComponent.call(this);this.addEvents("beforetabchange","tabchange","contextmenu");this.setLayout(new Ext.layout.CardLayout(Ext.apply({layoutOnCardChange:this.layoutOnTabChange,deferredRender:this.deferredRender},this.layoutConfig)));if(this.tabPosition=="top"){this.elements+=",header";this.stripTarget="header"}else{this.elements+=",footer";this.stripTarget="footer"}if(!this.stack){this.stack=Ext.TabPanel.AccessStack()}this.initItems()},onRender:function(C,A){Ext.TabPanel.superclass.onRender.call(this,C,A);if(this.plain){var F=this.tabPosition=="top"?"header":"footer";this[F].addClass("x-tab-panel-"+F+"-plain")}var B=this[this.stripTarget];this.stripWrap=B.createChild({cls:"x-tab-strip-wrap",cn:{tag:"ul",cls:"x-tab-strip x-tab-strip-"+this.tabPosition}});var E=(this.tabPosition=="bottom"?this.stripWrap:null);B.createChild({cls:"x-tab-strip-spacer"},E);this.strip=new Ext.Element(this.stripWrap.dom.firstChild);this.edge=this.strip.createChild({tag:"li",cls:"x-tab-edge",cn:[{tag:"span",cls:"x-tab-strip-text",cn:"&#160;"}]});
this.strip.createChild({cls:"x-clear"});this.body.addClass("x-tab-panel-body-"+this.tabPosition);if(!this.itemTpl){var D=new Ext.Template('<li class="{cls}" id="{id}"><a class="x-tab-strip-close"></a>','<a class="x-tab-right" href="#"><em class="x-tab-left">','<span class="x-tab-strip-inner"><span class="x-tab-strip-text {iconCls}">{text}</span></span>',"</em></a></li>");D.disableFormats=true;D.compile();Ext.TabPanel.prototype.itemTpl=D}this.items.each(this.initTab,this)},afterRender:function(){Ext.TabPanel.superclass.afterRender.call(this);if(this.autoTabs){this.readTabs(false)}if(this.activeTab!==undefined){var A=Ext.isObject(this.activeTab)?this.activeTab:this.items.get(this.activeTab);delete this.activeTab;this.setActiveTab(A)}},initEvents:function(){Ext.TabPanel.superclass.initEvents.call(this);this.mon(this.strip,{scope:this,mousedown:this.onStripMouseDown,contextmenu:this.onStripContextMenu});if(this.enableTabScroll){this.mon(this.strip,"mousewheel",this.onWheel,this)}},findTargets:function(C){var B=null,A=C.getTarget("li:not(.x-tab-edge)",this.strip);
if(A){B=this.getComponent(A.id.split(this.idDelimiter)[1]);if(B.disabled){return{close:null,item:null,el:null}}}return{close:C.getTarget(".x-tab-strip-close",this.strip),item:B,el:A}},onStripMouseDown:function(B){if(B.button!==0){return }B.preventDefault();var A=this.findTargets(B);if(A.close){if(A.item.fireEvent("beforeclose",A.item)!==false){A.item.fireEvent("close",A.item);this.remove(A.item)}return }if(A.item&&A.item!=this.activeTab){this.setActiveTab(A.item)}},onStripContextMenu:function(B){B.preventDefault();var A=this.findTargets(B);if(A.item){this.fireEvent("contextmenu",this,A.item,B)}},readTabs:function(D){if(D===true){this.items.each(function(G){this.remove(G)},this)}var C=this.el.query(this.autoTabSelector);for(var B=0,A=C.length;B<A;B++){var E=C[B],F=E.getAttribute("title");E.removeAttribute("title");this.add({title:F,contentEl:E})}},initTab:function(D,B){var E=this.strip.dom.childNodes[B],F=this.getTemplateArgs(D),C=E?this.itemTpl.insertBefore(E,F):this.itemTpl.append(this.strip,F),A="x-tab-strip-over",G=Ext.get(C);
G.hover(function(){if(!D.disabled){G.addClass(A)}},function(){G.removeClass(A)});if(D.tabTip){G.child("span.x-tab-strip-text",true).qtip=D.tabTip}D.tabEl=C;G.select("a").on("click",function(H){if(!H.getPageX()){this.onStripMouseDown(H)}},this,{preventDefault:true});D.on({scope:this,disable:this.onItemDisabled,enable:this.onItemEnabled,titlechange:this.onItemTitleChanged,iconchange:this.onItemIconChanged,beforeshow:this.onBeforeShowItem})},getTemplateArgs:function(B){var A=B.closable?"x-tab-strip-closable":"";if(B.disabled){A+=" x-item-disabled"}if(B.iconCls){A+=" x-tab-with-icon"}if(B.tabCls){A+=" "+B.tabCls}return{id:this.id+this.idDelimiter+B.getItemId(),text:B.title,cls:A,iconCls:B.iconCls||""}},onAdd:function(B){Ext.TabPanel.superclass.onAdd.call(this,B);if(this.rendered){var A=this.items;this.initTab(B,A.indexOf(B));this.delegateUpdates()}},onBeforeAdd:function(B){var A=B.events?(this.items.containsKey(B.getItemId())?B:null):this.items.get(B);if(A){this.setActiveTab(B);return false}Ext.TabPanel.superclass.onBeforeAdd.apply(this,arguments);
var C=B.elements;B.elements=C?C.replace(",header",""):C;B.border=(B.border===true)},onRemove:function(C){var B=Ext.get(C.tabEl);if(B){B.select("a").removeAllListeners();Ext.destroy(B)}Ext.TabPanel.superclass.onRemove.call(this,C);this.stack.remove(C);delete C.tabEl;C.un("disable",this.onItemDisabled,this);C.un("enable",this.onItemEnabled,this);C.un("titlechange",this.onItemTitleChanged,this);C.un("iconchange",this.onItemIconChanged,this);C.un("beforeshow",this.onBeforeShowItem,this);if(C==this.activeTab){var A=this.stack.next();if(A){this.setActiveTab(A)}else{if(this.items.getCount()>0){this.setActiveTab(0)}else{this.setActiveTab(null)}}}if(!this.destroying){this.delegateUpdates()}},onBeforeShowItem:function(A){if(A!=this.activeTab){this.setActiveTab(A);return false}},onItemDisabled:function(B){var A=this.getTabEl(B);if(A){Ext.fly(A).addClass("x-item-disabled")}this.stack.remove(B)},onItemEnabled:function(B){var A=this.getTabEl(B);if(A){Ext.fly(A).removeClass("x-item-disabled")}},onItemTitleChanged:function(B){var A=this.getTabEl(B);
if(A){Ext.fly(A).child("span.x-tab-strip-text",true).innerHTML=B.title}},onItemIconChanged:function(D,A,C){var B=this.getTabEl(D);if(B){B=Ext.get(B);B.child("span.x-tab-strip-text").replaceClass(C,A);B[Ext.isEmpty(A)?"removeClass":"addClass"]("x-tab-with-icon")}},getTabEl:function(A){var B=this.getComponent(A);return B?B.tabEl:null},onResize:function(){Ext.TabPanel.superclass.onResize.apply(this,arguments);this.delegateUpdates()},beginUpdate:function(){this.suspendUpdates=true},endUpdate:function(){this.suspendUpdates=false;this.delegateUpdates()},hideTabStripItem:function(B){B=this.getComponent(B);var A=this.getTabEl(B);if(A){A.style.display="none";this.delegateUpdates()}this.stack.remove(B)},unhideTabStripItem:function(B){B=this.getComponent(B);var A=this.getTabEl(B);if(A){A.style.display="";this.delegateUpdates()}},delegateUpdates:function(){var A=this.rendered;if(this.suspendUpdates){return }if(this.resizeTabs&&A){this.autoSizeTabs()}if(this.enableTabScroll&&A){this.autoScrollTabs()}},autoSizeTabs:function(){var G=this.items.length,B=this.tabPosition!="bottom"?"header":"footer",C=this[B].dom.offsetWidth,A=this[B].dom.clientWidth;
if(!this.resizeTabs||G<1||!A){return }var I=Math.max(Math.min(Math.floor((A-4)/G)-this.tabMargin,this.tabWidth),this.minTabWidth);this.lastTabWidth=I;var K=this.strip.query("li:not(.x-tab-edge)");for(var E=0,H=K.length;E<H;E++){var J=K[E],L=Ext.fly(J).child(".x-tab-strip-inner",true),F=J.offsetWidth,D=L.offsetWidth;L.style.width=(I-(F-D))+"px"}},adjustBodyWidth:function(A){if(this.header){this.header.setWidth(A)}if(this.footer){this.footer.setWidth(A)}return A},setActiveTab:function(C){C=this.getComponent(C);if(this.fireEvent("beforetabchange",this,C,this.activeTab)===false){return }if(!this.rendered){this.activeTab=C;return }if(this.activeTab!=C){if(this.activeTab){var A=this.getTabEl(this.activeTab);if(A){Ext.fly(A).removeClass("x-tab-strip-active")}}this.activeTab=C;if(C){var B=this.getTabEl(C);Ext.fly(B).addClass("x-tab-strip-active");this.stack.add(C);this.layout.setActiveItem(C);this.delegateUpdates();if(this.scrolling){this.scrollToTab(C,this.animScroll)}}this.fireEvent("tabchange",this,C)}},getActiveTab:function(){return this.activeTab||null
},getItem:function(A){return this.getComponent(A)},autoScrollTabs:function(){this.pos=this.tabPosition=="bottom"?this.footer:this.header;var G=this.items.length,D=this.pos.dom.offsetWidth,C=this.pos.dom.clientWidth,F=this.stripWrap,E=F.dom,B=E.offsetWidth,H=this.getScrollPos(),A=this.edge.getOffsetsTo(this.stripWrap)[0]+H;if(!this.enableTabScroll||B<20){return }if(G==0||A<=C){E.scrollLeft=0;F.setWidth(C);if(this.scrolling){this.scrolling=false;this.pos.removeClass("x-tab-scrolling");this.scrollLeft.hide();this.scrollRight.hide();if(Ext.isAir||Ext.isWebKit){E.style.marginLeft="";E.style.marginRight=""}}}else{if(!this.scrolling){this.pos.addClass("x-tab-scrolling");if(Ext.isAir||Ext.isWebKit){E.style.marginLeft="18px";E.style.marginRight="18px"}}C-=F.getMargins("lr");F.setWidth(C>20?C:20);if(!this.scrolling){if(!this.scrollLeft){this.createScrollers()}else{this.scrollLeft.show();this.scrollRight.show()}}this.scrolling=true;if(H>(A-C)){E.scrollLeft=A-C}else{this.scrollToTab(this.activeTab,false)}this.updateScrollButtons()
}},createScrollers:function(){this.pos.addClass("x-tab-scrolling-"+this.tabPosition);var C=this.stripWrap.dom.offsetHeight;var A=this.pos.insertFirst({cls:"x-tab-scroller-left"});A.setHeight(C);A.addClassOnOver("x-tab-scroller-left-over");this.leftRepeater=new Ext.util.ClickRepeater(A,{interval:this.scrollRepeatInterval,handler:this.onScrollLeft,scope:this});this.scrollLeft=A;var B=this.pos.insertFirst({cls:"x-tab-scroller-right"});B.setHeight(C);B.addClassOnOver("x-tab-scroller-right-over");this.rightRepeater=new Ext.util.ClickRepeater(B,{interval:this.scrollRepeatInterval,handler:this.onScrollRight,scope:this});this.scrollRight=B},getScrollWidth:function(){return this.edge.getOffsetsTo(this.stripWrap)[0]+this.getScrollPos()},getScrollPos:function(){return parseInt(this.stripWrap.dom.scrollLeft,10)||0},getScrollArea:function(){return parseInt(this.stripWrap.dom.clientWidth,10)||0},getScrollAnim:function(){return{duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},getScrollIncrement:function(){return this.scrollIncrement||(this.resizeTabs?this.lastTabWidth+2:100)
},scrollToTab:function(E,A){if(!E){return }var C=this.getTabEl(E),G=this.getScrollPos(),D=this.getScrollArea(),F=Ext.fly(C).getOffsetsTo(this.stripWrap)[0]+G,B=F+C.offsetWidth;if(F<G){this.scrollTo(F,A)}else{if(B>(G+D)){this.scrollTo(B-D,A)}}},scrollTo:function(B,A){this.stripWrap.scrollTo("left",B,A?this.getScrollAnim():false);if(!A){this.updateScrollButtons()}},onWheel:function(D){var E=D.getWheelDelta()*this.wheelIncrement*-1;D.stopEvent();var F=this.getScrollPos(),C=F+E,A=this.getScrollWidth()-this.getScrollArea();var B=Math.max(0,Math.min(A,C));if(B!=F){this.scrollTo(B,false)}},onScrollRight:function(){var A=this.getScrollWidth()-this.getScrollArea(),C=this.getScrollPos(),B=Math.min(A,C+this.getScrollIncrement());if(B!=C){this.scrollTo(B,this.animScroll)}},onScrollLeft:function(){var B=this.getScrollPos(),A=Math.max(0,B-this.getScrollIncrement());if(A!=B){this.scrollTo(A,this.animScroll)}},updateScrollButtons:function(){var A=this.getScrollPos();this.scrollLeft[A===0?"addClass":"removeClass"]("x-tab-scroller-left-disabled");
this.scrollRight[A>=(this.getScrollWidth()-this.getScrollArea())?"addClass":"removeClass"]("x-tab-scroller-right-disabled")},beforeDestroy:function(){Ext.destroy(this.leftRepeater,this.rightRepeater);this.deleteMembers("strip","edge","scrollLeft","scrollRight","stripWrap");this.activeTab=null;Ext.TabPanel.superclass.beforeDestroy.apply(this)}});Ext.reg("tabpanel",Ext.TabPanel);Ext.TabPanel.prototype.activate=Ext.TabPanel.prototype.setActiveTab;Ext.TabPanel.AccessStack=function(){var A=[];return{add:function(B){A.push(B);if(A.length>10){A.shift()}},remove:function(E){var D=[];for(var C=0,B=A.length;C<B;C++){if(A[C]!=E){D.push(A[C])}}A=D},next:function(){return A.pop()}}};Ext.Button=Ext.extend(Ext.BoxComponent,{hidden:false,disabled:false,pressed:false,enableToggle:false,menuAlign:"tl-bl?",type:"button",menuClassTarget:"tr:nth(2)",clickEvent:"click",handleMouseEvents:true,tooltipType:"qtip",buttonSelector:"button:first-child",scale:"small",iconAlign:"left",arrowAlign:"right",initComponent:function(){if(this.menu){if(Ext.isArray(this.menu)){this.menu={items:this.menu}
}if(Ext.isObject(this.menu)){this.menu.ownerCt=this}this.menu=Ext.menu.MenuMgr.get(this.menu);this.menu.ownerCt=undefined}Ext.Button.superclass.initComponent.call(this);this.addEvents("click","toggle","mouseover","mouseout","menushow","menuhide","menutriggerover","menutriggerout");if(Ext.isString(this.toggleGroup)){this.enableToggle=true}},getTemplateArgs:function(){return[this.type,"x-btn-"+this.scale+" x-btn-icon-"+this.scale+"-"+this.iconAlign,this.getMenuClass(),this.cls,this.id]},setButtonClass:function(){if(this.useSetClass){if(!Ext.isEmpty(this.oldCls)){this.el.removeClass([this.oldCls,"x-btn-pressed"])}this.oldCls=(this.iconCls||this.icon)?(this.text?"x-btn-text-icon":"x-btn-icon"):"x-btn-noicon";this.el.addClass([this.oldCls,this.pressed?"x-btn-pressed":null])}},getMenuClass:function(){return this.menu?(this.arrowAlign!="bottom"?"x-btn-arrow":"x-btn-arrow-bottom"):""},onRender:function(C,A){if(!this.template){if(!Ext.Button.buttonTemplate){Ext.Button.buttonTemplate=new Ext.Template('<table id="{4}" cellspacing="0" class="x-btn {3}"><tbody class="{1}">','<tr><td class="x-btn-tl"><i>&#160;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&#160;</i></td></tr>','<tr><td class="x-btn-ml"><i>&#160;</i></td><td class="x-btn-mc"><em class="{2}" unselectable="on"><button type="{0}"></button></em></td><td class="x-btn-mr"><i>&#160;</i></td></tr>','<tr><td class="x-btn-bl"><i>&#160;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&#160;</i></td></tr>',"</tbody></table>");
Ext.Button.buttonTemplate.compile()}this.template=Ext.Button.buttonTemplate}var B,D=this.getTemplateArgs();if(A){B=this.template.insertBefore(A,D,true)}else{B=this.template.append(C,D,true)}this.btnEl=B.child(this.buttonSelector);this.mon(this.btnEl,{scope:this,focus:this.onFocus,blur:this.onBlur});this.initButtonEl(B,this.btnEl);Ext.ButtonToggleMgr.register(this)},initButtonEl:function(B,C){this.el=B;this.setIcon(this.icon);this.setText(this.text);this.setIconClass(this.iconCls);if(Ext.isDefined(this.tabIndex)){C.dom.tabIndex=this.tabIndex}if(this.tooltip){this.setTooltip(this.tooltip,true)}if(this.handleMouseEvents){this.mon(B,{scope:this,mouseover:this.onMouseOver,mousedown:this.onMouseDown})}if(this.menu){this.mon(this.menu,{scope:this,show:this.onMenuShow,hide:this.onMenuHide})}if(this.repeat){var A=new Ext.util.ClickRepeater(B,Ext.isObject(this.repeat)?this.repeat:{});this.mon(A,"click",this.onRepeatClick,this)}else{this.mon(B,this.clickEvent,this.onClick,this)}},afterRender:function(){Ext.Button.superclass.afterRender.call(this);
this.useSetClass=true;this.setButtonClass();this.doc=Ext.getDoc();this.doAutoWidth()},setIconClass:function(A){this.iconCls=A;if(this.el){this.btnEl.dom.className="";this.btnEl.addClass(["x-btn-text",A||""]);this.setButtonClass()}return this},setTooltip:function(B,A){if(this.rendered){if(!A){this.clearTip()}if(Ext.isObject(B)){Ext.QuickTips.register(Ext.apply({target:this.btnEl.id},B));this.tooltip=B}else{this.btnEl.dom[this.tooltipType]=B}}else{this.tooltip=B}return this},clearTip:function(){if(Ext.isObject(this.tooltip)){Ext.QuickTips.unregister(this.btnEl)}},beforeDestroy:function(){if(this.rendered){this.clearTip()}if(this.menu&&this.destroyMenu!==false){Ext.destroy(this.btnEl,this.menu)}Ext.destroy(this.repeater)},onDestroy:function(){if(this.rendered){this.doc.un("mouseover",this.monitorMouseOver,this);this.doc.un("mouseup",this.onMouseUp,this);delete this.doc;delete this.btnEl;Ext.ButtonToggleMgr.unregister(this)}Ext.Button.superclass.onDestroy.call(this)},doAutoWidth:function(){if(this.autoWidth!==false&&this.el&&this.text&&this.width===undefined){this.el.setWidth("auto");
if(Ext.isIE7&&Ext.isStrict){var A=this.btnEl;if(A&&A.getWidth()>20){A.clip();A.setWidth(Ext.util.TextMetrics.measure(A,this.text).width+A.getFrameWidth("lr"))}}if(this.minWidth){if(this.el.getWidth()<this.minWidth){this.el.setWidth(this.minWidth)}}}},setHandler:function(B,A){this.handler=B;this.scope=A;return this},setText:function(A){this.text=A;if(this.el){this.btnEl.update(A||"&#160;");this.setButtonClass()}this.doAutoWidth();return this},setIcon:function(A){this.icon=A;if(this.el){this.btnEl.setStyle("background-image",A?"url("+A+")":"");this.setButtonClass()}return this},getText:function(){return this.text},toggle:function(B,A){B=B===undefined?!this.pressed:!!B;if(B!=this.pressed){if(this.rendered){this.el[B?"addClass":"removeClass"]("x-btn-pressed")}this.pressed=B;if(!A){this.fireEvent("toggle",this,B);if(this.toggleHandler){this.toggleHandler.call(this.scope||this,this,B)}}}return this},onDisable:function(){this.onDisableChange(true)},onEnable:function(){this.onDisableChange(false)},onDisableChange:function(A){if(this.el){if(!Ext.isIE6||!this.text){this.el[A?"addClass":"removeClass"](this.disabledClass)
}this.el.dom.disabled=A}this.disabled=A},showMenu:function(){if(this.rendered&&this.menu){if(this.tooltip){Ext.QuickTips.getQuickTip().cancelShow(this.btnEl)}if(this.menu.isVisible()){this.menu.hide()}this.menu.ownerCt=this;this.menu.show(this.el,this.menuAlign)}return this},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){return this.menu&&this.menu.ownerCt==this&&this.menu.isVisible()},onRepeatClick:function(A,B){this.onClick(B)},onClick:function(A){if(A){A.preventDefault()}if(A.button!==0){return }if(!this.disabled){this.doToggle();if(this.menu&&!this.hasVisibleMenu()&&!this.ignoreNextClick){this.showMenu()}this.fireEvent("click",this,A);if(this.handler){this.handler.call(this.scope||this,this,A)}}},doToggle:function(){if(this.enableToggle&&(this.allowDepress!==false||!this.pressed)){this.toggle()}},isMenuTriggerOver:function(B,A){return this.menu&&!A},isMenuTriggerOut:function(B,A){return this.menu&&!A},onMouseOver:function(B){if(!this.disabled){var A=B.within(this.el,true);
if(!A){this.el.addClass("x-btn-over");if(!this.monitoringMouseOver){this.doc.on("mouseover",this.monitorMouseOver,this);this.monitoringMouseOver=true}this.fireEvent("mouseover",this,B)}if(this.isMenuTriggerOver(B,A)){this.fireEvent("menutriggerover",this,this.menu,B)}}},monitorMouseOver:function(A){if(A.target!=this.el.dom&&!A.within(this.el)){if(this.monitoringMouseOver){this.doc.un("mouseover",this.monitorMouseOver,this);this.monitoringMouseOver=false}this.onMouseOut(A)}},onMouseOut:function(B){var A=B.within(this.el)&&B.target!=this.el.dom;this.el.removeClass("x-btn-over");this.fireEvent("mouseout",this,B);if(this.isMenuTriggerOut(B,A)){this.fireEvent("menutriggerout",this,this.menu,B)}},focus:function(){this.btnEl.focus()},blur:function(){this.btnEl.blur()},onFocus:function(A){if(!this.disabled){this.el.addClass("x-btn-focus")}},onBlur:function(A){this.el.removeClass("x-btn-focus")},getClickEl:function(B,A){return this.el},onMouseDown:function(A){if(!this.disabled&&A.button===0){this.getClickEl(A).addClass("x-btn-click");
this.doc.on("mouseup",this.onMouseUp,this)}},onMouseUp:function(A){if(A.button===0){this.getClickEl(A,true).removeClass("x-btn-click");this.doc.un("mouseup",this.onMouseUp,this)}},onMenuShow:function(A){if(this.menu.ownerCt==this){this.menu.ownerCt=this;this.ignoreNextClick=0;this.el.addClass("x-btn-menu-active");this.fireEvent("menushow",this,this.menu)}},onMenuHide:function(A){if(this.menu.ownerCt==this){this.el.removeClass("x-btn-menu-active");this.ignoreNextClick=this.restoreClick.defer(250,this);this.fireEvent("menuhide",this,this.menu);delete this.menu.ownerCt}},restoreClick:function(){this.ignoreNextClick=0}});Ext.reg("button",Ext.Button);Ext.ButtonToggleMgr=function(){var A={};function B(E,G){if(G){var F=A[E.toggleGroup];for(var D=0,C=F.length;D<C;D++){if(F[D]!=E){F[D].toggle(false)}}}}return{register:function(C){if(!C.toggleGroup){return }var D=A[C.toggleGroup];if(!D){D=A[C.toggleGroup]=[]}D.push(C);C.on("toggle",B)},unregister:function(C){if(!C.toggleGroup){return }var D=A[C.toggleGroup];if(D){D.remove(C);
C.un("toggle",B)}},getPressed:function(F){var E=A[F];if(E){for(var D=0,C=E.length;D<C;D++){if(E[D].pressed===true){return E[D]}}}return null}}}();Ext.SplitButton=Ext.extend(Ext.Button,{arrowSelector:"em",split:true,initComponent:function(){Ext.SplitButton.superclass.initComponent.call(this);this.addEvents("arrowclick")},onRender:function(){Ext.SplitButton.superclass.onRender.apply(this,arguments);if(this.arrowTooltip){this.el.child(this.arrowSelector).dom[this.tooltipType]=this.arrowTooltip}},setArrowHandler:function(B,A){this.arrowHandler=B;this.scope=A},getMenuClass:function(){return"x-btn-split"+(this.arrowAlign=="bottom"?"-bottom":"")},isClickOnArrow:function(C){if(this.arrowAlign!="bottom"){var B=this.el.child("em.x-btn-split");var A=B.getRegion().right-B.getPadding("r");return C.getPageX()>A}else{return C.getPageY()>this.btnEl.getRegion().bottom}},onClick:function(B,A){B.preventDefault();if(!this.disabled){if(this.isClickOnArrow(B)){if(this.menu&&!this.menu.isVisible()&&!this.ignoreNextClick){this.showMenu()
}this.fireEvent("arrowclick",this,B);if(this.arrowHandler){this.arrowHandler.call(this.scope||this,this,B)}}else{this.doToggle();this.fireEvent("click",this,B);if(this.handler){this.handler.call(this.scope||this,this,B)}}}},isMenuTriggerOver:function(A){return this.menu&&A.target.tagName==this.arrowSelector},isMenuTriggerOut:function(B,A){return this.menu&&B.target.tagName!=this.arrowSelector}});Ext.reg("splitbutton",Ext.SplitButton);Ext.CycleButton=Ext.extend(Ext.SplitButton,{getItemText:function(A){if(A&&this.showText===true){var B="";if(this.prependText){B+=this.prependText}B+=A.text;return B}return undefined},setActiveItem:function(C,A){if(!Ext.isObject(C)){C=this.menu.getComponent(C)}if(C){if(!this.rendered){this.text=this.getItemText(C);this.iconCls=C.iconCls}else{var B=this.getItemText(C);if(B){this.setText(B)}this.setIconClass(C.iconCls)}this.activeItem=C;if(!C.checked){C.setChecked(true,A)}if(this.forceIcon){this.setIconClass(this.forceIcon)}if(!A){this.fireEvent("change",this,C)}}},getActiveItem:function(){return this.activeItem
},initComponent:function(){this.addEvents("change");if(this.changeHandler){this.on("change",this.changeHandler,this.scope||this);delete this.changeHandler}this.itemCount=this.items.length;this.menu={cls:"x-cycle-menu",items:[]};var A=0;Ext.each(this.items,function(C,B){Ext.apply(C,{group:C.group||this.id,itemIndex:B,checkHandler:this.checkHandler,scope:this,checked:C.checked||false});this.menu.items.push(C);if(C.checked){A=B}},this);Ext.CycleButton.superclass.initComponent.call(this);this.on("click",this.toggleSelected,this);this.setActiveItem(A,true)},checkHandler:function(A,B){if(B){this.setActiveItem(A)}},toggleSelected:function(){var A=this.menu;A.render();if(!A.hasLayout){A.doLayout()}var D,B;for(var C=1;C<this.itemCount;C++){D=(this.activeItem.itemIndex+C)%this.itemCount;B=A.items.itemAt(D);if(!B.disabled){B.setChecked(true);break}}}});Ext.reg("cycle",Ext.CycleButton);Ext.Toolbar=function(A){if(Ext.isArray(A)){A={items:A,layout:"toolbar"}}else{A=Ext.apply({layout:"toolbar"},A);if(A.buttons){A.items=A.buttons
}}Ext.Toolbar.superclass.constructor.call(this,A)};(function(){var A=Ext.Toolbar;Ext.extend(A,Ext.Container,{defaultType:"button",enableOverflow:false,trackMenus:true,internalDefaults:{removeMode:"container",hideParent:true},toolbarCls:"x-toolbar",initComponent:function(){A.superclass.initComponent.call(this);this.addEvents("overflowchange")},onRender:function(C,B){if(!this.el){if(!this.autoCreate){this.autoCreate={cls:this.toolbarCls+" x-small-editor"}}this.el=C.createChild(Ext.apply({id:this.id},this.autoCreate),B);Ext.Toolbar.superclass.onRender.apply(this,arguments)}},lookupComponent:function(B){if(Ext.isString(B)){if(B=="-"){B=new A.Separator()}else{if(B==" "){B=new A.Spacer()}else{if(B=="->"){B=new A.Fill()}else{B=new A.TextItem(B)}}}this.applyDefaults(B)}else{if(B.isFormField||B.render){B=this.createComponent(B)}else{if(B.tag){B=new A.Item({autoEl:B})}else{if(B.tagName){B=new A.Item({el:B})}else{if(Ext.isObject(B)){B=B.xtype?this.createComponent(B):this.constructButton(B)}}}}}return B},applyDefaults:function(C){if(!Ext.isString(C)){C=Ext.Toolbar.superclass.applyDefaults.call(this,C);
var B=this.internalDefaults;if(C.events){Ext.applyIf(C.initialConfig,B);Ext.apply(C,B)}else{Ext.applyIf(C,B)}}return C},addSeparator:function(){return this.add(new A.Separator())},addSpacer:function(){return this.add(new A.Spacer())},addFill:function(){this.add(new A.Fill())},addElement:function(B){return this.addItem(new A.Item({el:B}))},addItem:function(B){return this.add.apply(this,arguments)},addButton:function(C){if(Ext.isArray(C)){var E=[];for(var D=0,B=C.length;D<B;D++){E.push(this.addButton(C[D]))}return E}return this.add(this.constructButton(C))},addText:function(B){return this.addItem(new A.TextItem(B))},addDom:function(B){return this.add(new A.Item({autoEl:B}))},addField:function(B){return this.add(B)},insertButton:function(C,F){if(Ext.isArray(F)){var E=[];for(var D=0,B=F.length;D<B;D++){E.push(this.insertButton(C+D,F[D]))}return E}return Ext.Toolbar.superclass.insert.call(this,C,F)},trackMenu:function(C,B){if(this.trackMenus&&C.menu){var D=B?"mun":"mon";this[D](C,"menutriggerover",this.onButtonTriggerOver,this);
this[D](C,"menushow",this.onButtonMenuShow,this);this[D](C,"menuhide",this.onButtonMenuHide,this)}},constructButton:function(C){var B=C.events?C:this.createComponent(C,C.split?"splitbutton":this.defaultType);return B},onAdd:function(B){Ext.Toolbar.superclass.onAdd.call(this);this.trackMenu(B);if(this.disabled){B.disable()}},onRemove:function(B){Ext.Toolbar.superclass.onRemove.call(this);if(B==this.activeMenuBtn){delete this.activeMenuBtn}this.trackMenu(B,true)},onDisable:function(){this.items.each(function(B){if(B.disable){B.disable()}})},onEnable:function(){this.items.each(function(B){if(B.enable){B.enable()}})},onButtonTriggerOver:function(B){if(this.activeMenuBtn&&this.activeMenuBtn!=B){this.activeMenuBtn.hideMenu();B.showMenu();this.activeMenuBtn=B}},onButtonMenuShow:function(B){this.activeMenuBtn=B},onButtonMenuHide:function(B){delete this.activeMenuBtn}});Ext.reg("toolbar",Ext.Toolbar);A.Item=Ext.extend(Ext.BoxComponent,{hideParent:true,enable:Ext.emptyFn,disable:Ext.emptyFn,focus:Ext.emptyFn});Ext.reg("tbitem",A.Item);
A.Separator=Ext.extend(A.Item,{onRender:function(C,B){this.el=C.createChild({tag:"span",cls:"xtb-sep"},B)}});Ext.reg("tbseparator",A.Separator);A.Spacer=Ext.extend(A.Item,{onRender:function(C,B){this.el=C.createChild({tag:"div",cls:"xtb-spacer",style:this.width?"width:"+this.width+"px":""},B)}});Ext.reg("tbspacer",A.Spacer);A.Fill=Ext.extend(A.Item,{render:Ext.emptyFn,isFill:true});Ext.reg("tbfill",A.Fill);A.TextItem=Ext.extend(A.Item,{constructor:function(B){A.TextItem.superclass.constructor.call(this,Ext.isString(B)?{text:B}:B)},onRender:function(C,B){this.autoEl={cls:"xtb-text",html:this.text||""};A.TextItem.superclass.onRender.call(this,C,B)},setText:function(B){if(this.rendered){this.el.update(B)}else{this.text=B}}});Ext.reg("tbtext",A.TextItem);A.Button=Ext.extend(Ext.Button,{});A.SplitButton=Ext.extend(Ext.SplitButton,{});Ext.reg("tbbutton",A.Button);Ext.reg("tbsplit",A.SplitButton)})();Ext.ButtonGroup=Ext.extend(Ext.Panel,{baseCls:"x-btn-group",layout:"table",defaultType:"button",frame:true,internalDefaults:{removeMode:"container",hideParent:true},initComponent:function(){this.layoutConfig=this.layoutConfig||{};
Ext.applyIf(this.layoutConfig,{columns:this.columns});if(!this.title){this.addClass("x-btn-group-notitle")}this.on("afterlayout",this.onAfterLayout,this);Ext.ButtonGroup.superclass.initComponent.call(this)},applyDefaults:function(B){B=Ext.ButtonGroup.superclass.applyDefaults.call(this,B);var A=this.internalDefaults;if(B.events){Ext.applyIf(B.initialConfig,A);Ext.apply(B,A)}else{Ext.applyIf(B,A)}return B},onAfterLayout:function(){var A=this.body.getFrameWidth("lr")+this.body.dom.firstChild.offsetWidth;this.body.setWidth(A);this.el.setWidth(A+this.getFrameWidth())}});Ext.reg("buttongroup",Ext.ButtonGroup);(function(){var A=Ext.Toolbar;Ext.PagingToolbar=Ext.extend(Ext.Toolbar,{pageSize:20,displayMsg:"Displaying {0} - {1} of {2}",emptyMsg:"No data to display",beforePageText:"Page",afterPageText:"of {0}",firstText:"First Page",prevText:"Previous Page",nextText:"Next Page",lastText:"Last Page",refreshText:"Refresh",initComponent:function(){var C=[this.first=new A.Button({tooltip:this.firstText,overflowText:this.firstText,iconCls:"x-tbar-page-first",disabled:true,handler:this.moveFirst,scope:this}),this.prev=new A.Button({tooltip:this.prevText,overflowText:this.prevText,iconCls:"x-tbar-page-prev",disabled:true,handler:this.movePrevious,scope:this}),"-",this.beforePageText,this.inputItem=new Ext.form.NumberField({cls:"x-tbar-page-number",allowDecimals:false,allowNegative:false,enableKeyEvents:true,selectOnFocus:true,submitValue:false,listeners:{scope:this,keydown:this.onPagingKeyDown,blur:this.onPagingBlur}}),this.afterTextItem=new A.TextItem({text:String.format(this.afterPageText,1)}),"-",this.next=new A.Button({tooltip:this.nextText,overflowText:this.nextText,iconCls:"x-tbar-page-next",disabled:true,handler:this.moveNext,scope:this}),this.last=new A.Button({tooltip:this.lastText,overflowText:this.lastText,iconCls:"x-tbar-page-last",disabled:true,handler:this.moveLast,scope:this}),"-",this.refresh=new A.Button({tooltip:this.refreshText,overflowText:this.refreshText,iconCls:"x-tbar-loading",handler:this.doRefresh,scope:this})];
var B=this.items||this.buttons||[];if(this.prependButtons){this.items=B.concat(C)}else{this.items=C.concat(B)}delete this.buttons;if(this.displayInfo){this.items.push("->");this.items.push(this.displayItem=new A.TextItem({}))}Ext.PagingToolbar.superclass.initComponent.call(this);this.addEvents("change","beforechange");this.on("afterlayout",this.onFirstLayout,this,{single:true});this.cursor=0;this.bindStore(this.store,true)},onFirstLayout:function(){if(this.dsLoaded){this.onLoad.apply(this,this.dsLoaded)}},updateInfo:function(){if(this.displayItem){var B=this.store.getCount();var C=B==0?this.emptyMsg:String.format(this.displayMsg,this.cursor+1,this.cursor+B,this.store.getTotalCount());this.displayItem.setText(C)}},onLoad:function(B,D,H){if(!this.rendered){this.dsLoaded=[B,D,H];return }var E=this.getParams();this.cursor=(H.params&&H.params[E.start])?H.params[E.start]:0;var G=this.getPageData(),C=G.activePage,F=G.pages;this.afterTextItem.setText(String.format(this.afterPageText,G.pages));this.inputItem.setValue(C);
this.first.setDisabled(C==1);this.prev.setDisabled(C==1);this.next.setDisabled(C==F);this.last.setDisabled(C==F);this.refresh.enable();this.updateInfo();this.fireEvent("change",this,G)},getPageData:function(){var B=this.store.getTotalCount();return{total:B,activePage:Math.ceil((this.cursor+this.pageSize)/this.pageSize),pages:B<this.pageSize?1:Math.ceil(B/this.pageSize)}},changePage:function(B){this.doLoad(((B-1)*this.pageSize).constrain(0,this.store.getTotalCount()))},onLoadError:function(){if(!this.rendered){return }this.refresh.enable()},readPage:function(D){var B=this.inputItem.getValue(),C;if(!B||isNaN(C=parseInt(B,10))){this.inputItem.setValue(D.activePage);return false}return C},onPagingFocus:function(){this.inputItem.select()},onPagingBlur:function(B){this.inputItem.setValue(this.getPageData().activePage)},onPagingKeyDown:function(F,E){var C=E.getKey(),G=this.getPageData(),D;if(C==E.RETURN){E.stopEvent();D=this.readPage(G);if(D!==false){D=Math.min(Math.max(1,D),G.pages)-1;this.doLoad(D*this.pageSize)}}else{if(C==E.HOME||C==E.END){E.stopEvent();
D=C==E.HOME?1:G.pages;F.setValue(D)}else{if(C==E.UP||C==E.PAGEUP||C==E.DOWN||C==E.PAGEDOWN){E.stopEvent();if((D=this.readPage(G))){var B=E.shiftKey?10:1;if(C==E.DOWN||C==E.PAGEDOWN){B*=-1}D+=B;if(D>=1&D<=G.pages){F.setValue(D)}}}}}},getParams:function(){return this.paramNames||this.store.paramNames},beforeLoad:function(){if(this.rendered&&this.refresh){this.refresh.disable()}},doLoad:function(D){var C={},B=this.getParams();C[B.start]=D;C[B.limit]=this.pageSize;if(this.fireEvent("beforechange",this,C)!==false){this.store.load({params:C})}},moveFirst:function(){this.doLoad(0)},movePrevious:function(){this.doLoad(Math.max(0,this.cursor-this.pageSize))},moveNext:function(){this.doLoad(this.cursor+this.pageSize)},moveLast:function(){var C=this.store.getTotalCount(),B=C%this.pageSize;this.doLoad(B?(C-B):C-this.pageSize)},doRefresh:function(){this.doLoad(this.cursor)},bindStore:function(C,D){var B;if(!D&&this.store){if(C!==this.store&&this.store.autoDestroy){this.store.destroy()}else{this.store.un("beforeload",this.beforeLoad,this);
this.store.un("load",this.onLoad,this);this.store.un("exception",this.onLoadError,this)}if(!C){this.store=null}}if(C){C=Ext.StoreMgr.lookup(C);C.on({scope:this,beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError});B=true}this.store=C;if(B){this.onLoad(C,null,{})}},unbind:function(B){this.bindStore(null)},bind:function(B){this.bindStore(B)},onDestroy:function(){this.bindStore(null);Ext.PagingToolbar.superclass.onDestroy.call(this)}})})();Ext.reg("paging",Ext.PagingToolbar);Ext.History=(function(){var E,C;var J=false;var D;function F(){var K=location.href,L=K.indexOf("#"),M=L>=0?K.substr(L+1):null;if(Ext.isGecko){M=decodeURIComponent(M)}return M}function A(){C.value=D}function G(K){D=K;Ext.History.fireEvent("change",K)}function H(L){var K=['<html><body><div id="state">',Ext.util.Format.htmlEncode(L),"</div></body></html>"].join("");try{var N=E.contentWindow.document;N.open();N.write(K);N.close();return true}catch(M){return false}}function B(){if(!E.contentWindow||!E.contentWindow.document){setTimeout(B,10);
return }var N=E.contentWindow.document;var L=N.getElementById("state");var K=L?L.innerText:null;var M=F();setInterval(function(){N=E.contentWindow.document;L=N.getElementById("state");var P=L?L.innerText:null;var O=F();if(P!==K){K=P;G(K);location.hash=K;M=K;A()}else{if(O!==M){M=O;H(O)}}},50);J=true;Ext.History.fireEvent("ready",Ext.History)}function I(){D=C.value?C.value:F();if(Ext.isIE){B()}else{var K=F();setInterval(function(){var L=F();if(L!==K){K=L;G(K);A()}},50);J=true;Ext.History.fireEvent("ready",Ext.History)}}return{fieldId:"x-history-field",iframeId:"x-history-frame",events:{},init:function(L,K){if(J){Ext.callback(L,K,[this]);return }if(!Ext.isReady){Ext.onReady(function(){Ext.History.init(L,K)});return }C=Ext.getDom(Ext.History.fieldId);if(Ext.isIE){E=Ext.getDom(Ext.History.iframeId)}this.addEvents("ready","change");if(L){this.on("ready",L,K,{single:true})}I()},add:function(K,L){if(L!==false){if(this.getToken()==K){return true}}if(Ext.isIE){return H(K)}else{location.hash=K;return true}},back:function(){history.go(-1)
},forward:function(){history.go(1)},getToken:function(){return J?D:F()}}})();Ext.apply(Ext.History,new Ext.util.Observable());Ext.Tip=Ext.extend(Ext.Panel,{minWidth:40,maxWidth:300,shadow:"sides",defaultAlign:"tl-bl?",autoRender:true,quickShowInterval:250,frame:true,hidden:true,baseCls:"x-tip",floating:{shadow:true,shim:true,useDisplay:true,constrain:false},autoHeight:true,closeAction:"hide",initComponent:function(){Ext.Tip.superclass.initComponent.call(this);if(this.closable&&!this.title){this.elements+=",header"}},afterRender:function(){Ext.Tip.superclass.afterRender.call(this);if(this.closable){this.addTool({id:"close",handler:this[this.closeAction],scope:this})}},showAt:function(A){Ext.Tip.superclass.show.call(this);if(this.measureWidth!==false&&(!this.initialConfig||typeof this.initialConfig.width!="number")){this.doAutoWidth()}if(this.constrainPosition){A=this.el.adjustForConstraints(A)}this.setPagePosition(A[0],A[1])},doAutoWidth:function(A){A=A||0;var B=this.body.getTextWidth();if(this.title){B=Math.max(B,this.header.child("span").getTextWidth(this.title))
}B+=this.getFrameWidth()+(this.closable?20:0)+this.body.getPadding("lr")+A;this.setWidth(B.constrain(this.minWidth,this.maxWidth));if(Ext.isIE7&&!this.repainted){this.el.repaint();this.repainted=true}},showBy:function(A,B){if(!this.rendered){this.render(Ext.getBody())}this.showAt(this.el.getAlignToXY(A,B||this.defaultAlign))},initDraggable:function(){this.dd=new Ext.Tip.DD(this,typeof this.draggable=="boolean"?null:this.draggable);this.header.addClass("x-tip-draggable")}});Ext.reg("tip",Ext.Tip);Ext.Tip.DD=function(B,A){Ext.apply(this,A);this.tip=B;Ext.Tip.DD.superclass.constructor.call(this,B.el.id,"WindowDD-"+B.id);this.setHandleElId(B.header.id);this.scroll=false};Ext.extend(Ext.Tip.DD,Ext.dd.DD,{moveOnly:true,scroll:false,headerOffsets:[100,25],startDrag:function(){this.tip.el.disableShadow()},endDrag:function(A){this.tip.el.enableShadow(true)}});Ext.ToolTip=Ext.extend(Ext.Tip,{showDelay:500,hideDelay:200,dismissDelay:5000,trackMouse:false,anchorToTarget:true,anchorOffset:0,targetCounter:0,constrainPosition:false,initComponent:function(){Ext.ToolTip.superclass.initComponent.call(this);
this.lastActive=new Date();this.initTarget(this.target);this.origAnchor=this.anchor},onRender:function(B,A){Ext.ToolTip.superclass.onRender.call(this,B,A);this.anchorCls="x-tip-anchor-"+this.getAnchorPosition();this.anchorEl=this.el.createChild({cls:"x-tip-anchor "+this.anchorCls})},afterRender:function(){Ext.ToolTip.superclass.afterRender.call(this);this.anchorEl.setStyle("z-index",this.el.getZIndex()+1).setVisibilityMode(Ext.Element.DISPLAY)},initTarget:function(C){var A;if((A=Ext.get(C))){if(this.target){var B=Ext.get(this.target);this.mun(B,"mouseover",this.onTargetOver,this);this.mun(B,"mouseout",this.onTargetOut,this);this.mun(B,"mousemove",this.onMouseMove,this)}this.mon(A,{mouseover:this.onTargetOver,mouseout:this.onTargetOut,mousemove:this.onMouseMove,scope:this});this.target=A}if(this.anchor){this.anchorTarget=this.target}},onMouseMove:function(B){var A=this.delegate?B.getTarget(this.delegate):this.triggerElement=true;if(A){this.targetXY=B.getXY();if(A===this.triggerElement){if(!this.hidden&&this.trackMouse){this.setPagePosition(this.getTargetXY())
}}else{this.hide();this.lastActive=new Date(0);this.onTargetOver(B)}}else{if(!this.closable&&this.isVisible()){this.hide()}}},getTargetXY:function(){if(this.delegate){this.anchorTarget=this.triggerElement}if(this.anchor){this.targetCounter++;var C=this.getOffsets(),K=(this.anchorToTarget&&!this.trackMouse)?this.el.getAlignToXY(this.anchorTarget,this.getAnchorAlign()):this.targetXY,A=Ext.lib.Dom.getViewWidth()-5,G=Ext.lib.Dom.getViewHeight()-5,H=document.documentElement,E=document.body,J=(H.scrollLeft||E.scrollLeft||0)+5,I=(H.scrollTop||E.scrollTop||0)+5,B=[K[0]+C[0],K[1]+C[1]],F=this.getSize();this.anchorEl.removeClass(this.anchorCls);if(this.targetCounter<2){if(B[0]<J){if(this.anchorToTarget){this.defaultAlign="l-r";if(this.mouseOffset){this.mouseOffset[0]*=-1}}this.anchor="left";return this.getTargetXY()}if(B[0]+F.width>A){if(this.anchorToTarget){this.defaultAlign="r-l";if(this.mouseOffset){this.mouseOffset[0]*=-1}}this.anchor="right";return this.getTargetXY()}if(B[1]<I){if(this.anchorToTarget){this.defaultAlign="t-b";
if(this.mouseOffset){this.mouseOffset[1]*=-1}}this.anchor="top";return this.getTargetXY()}if(B[1]+F.height>G){if(this.anchorToTarget){this.defaultAlign="b-t";if(this.mouseOffset){this.mouseOffset[1]*=-1}}this.anchor="bottom";return this.getTargetXY()}}this.anchorCls="x-tip-anchor-"+this.getAnchorPosition();this.anchorEl.addClass(this.anchorCls);this.targetCounter=0;return B}else{var D=this.getMouseOffset();return[this.targetXY[0]+D[0],this.targetXY[1]+D[1]]}},getMouseOffset:function(){var A=this.anchor?[0,0]:[15,18];if(this.mouseOffset){A[0]+=this.mouseOffset[0];A[1]+=this.mouseOffset[1]}return A},getAnchorPosition:function(){if(this.anchor){this.tipAnchor=this.anchor.charAt(0)}else{var A=this.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);if(!A){throw"AnchorTip.defaultAlign is invalid"}this.tipAnchor=A[1].charAt(0)}switch(this.tipAnchor){case"t":return"top";case"b":return"bottom";case"r":return"right"}return"left"},getAnchorAlign:function(){switch(this.anchor){case"top":return"tl-bl";case"left":return"tl-tr";
case"right":return"tr-tl";default:return"bl-tl"}},getOffsets:function(){var B,A=this.getAnchorPosition().charAt(0);if(this.anchorToTarget&&!this.trackMouse){switch(A){case"t":B=[0,9];break;case"b":B=[0,-13];break;case"r":B=[-13,0];break;default:B=[9,0];break}}else{switch(A){case"t":B=[-15-this.anchorOffset,30];break;case"b":B=[-19-this.anchorOffset,-13-this.el.dom.offsetHeight];break;case"r":B=[-15-this.el.dom.offsetWidth,-13-this.anchorOffset];break;default:B=[25,-13-this.anchorOffset];break}}var C=this.getMouseOffset();B[0]+=C[0];B[1]+=C[1];return B},onTargetOver:function(B){if(this.disabled||B.within(this.target.dom,true)){return }var A=B.getTarget(this.delegate);if(A){this.triggerElement=A;this.clearTimer("hide");this.targetXY=B.getXY();this.delayShow()}},delayShow:function(){if(this.hidden&&!this.showTimer){if(this.lastActive.getElapsed()<this.quickShowInterval){this.show()}else{this.showTimer=this.show.defer(this.showDelay,this)}}else{if(!this.hidden&&this.autoHide!==false){this.show()}}},onTargetOut:function(A){if(this.disabled||A.within(this.target.dom,true)){return 
}this.clearTimer("show");if(this.autoHide!==false){this.delayHide()}},delayHide:function(){if(!this.hidden&&!this.hideTimer){this.hideTimer=this.hide.defer(this.hideDelay,this)}},hide:function(){this.clearTimer("dismiss");this.lastActive=new Date();if(this.anchorEl){this.anchorEl.hide()}Ext.ToolTip.superclass.hide.call(this);delete this.triggerElement},show:function(){if(this.anchor){this.showAt([-1000,-1000]);this.origConstrainPosition=this.constrainPosition;this.constrainPosition=false;this.anchor=this.origAnchor}this.showAt(this.getTargetXY());if(this.anchor){this.anchorEl.show();this.syncAnchor();this.constrainPosition=this.origConstrainPosition}else{this.anchorEl.hide()}},showAt:function(A){this.lastActive=new Date();this.clearTimers();Ext.ToolTip.superclass.showAt.call(this,A);if(this.dismissDelay&&this.autoHide!==false){this.dismissTimer=this.hide.defer(this.dismissDelay,this)}if(this.anchor&&!this.anchorEl.isVisible()){this.syncAnchor();this.anchorEl.show()}else{this.anchorEl.hide()}},syncAnchor:function(){var A,B,C;
switch(this.tipAnchor.charAt(0)){case"t":A="b";B="tl";C=[20+this.anchorOffset,2];break;case"r":A="l";B="tr";C=[-2,11+this.anchorOffset];break;case"b":A="t";B="bl";C=[20+this.anchorOffset,-2];break;default:A="r";B="tl";C=[2,11+this.anchorOffset];break}this.anchorEl.alignTo(this.el,A+"-"+B,C)},setPagePosition:function(A,B){Ext.ToolTip.superclass.setPagePosition.call(this,A,B);if(this.anchor){this.syncAnchor()}},clearTimer:function(A){A=A+"Timer";clearTimeout(this[A]);delete this[A]},clearTimers:function(){this.clearTimer("show");this.clearTimer("dismiss");this.clearTimer("hide")},onShow:function(){Ext.ToolTip.superclass.onShow.call(this);Ext.getDoc().on("mousedown",this.onDocMouseDown,this)},onHide:function(){Ext.ToolTip.superclass.onHide.call(this);Ext.getDoc().un("mousedown",this.onDocMouseDown,this)},onDocMouseDown:function(A){if(this.autoHide!==true&&!this.closable&&!A.within(this.el.dom)){this.disable();this.doEnable.defer(100,this)}},doEnable:function(){if(!this.isDestroyed){this.enable()}},onDisable:function(){this.clearTimers();
this.hide()},adjustPosition:function(A,D){if(this.constrainPosition){var C=this.targetXY[1],B=this.getSize().height;if(D<=C&&(D+B)>=C){D=C-B-5}}return{x:A,y:D}},beforeDestroy:function(){this.clearTimers();Ext.destroy(this.anchorEl);delete this.anchorEl;delete this.target;delete this.anchorTarget;delete this.triggerElement;Ext.ToolTip.superclass.beforeDestroy.call(this)},onDestroy:function(){Ext.getDoc().un("mousedown",this.onDocMouseDown,this);Ext.ToolTip.superclass.onDestroy.call(this)}});Ext.reg("tooltip",Ext.ToolTip);Ext.QuickTip=Ext.extend(Ext.ToolTip,{interceptTitles:false,tagConfig:{namespace:"ext",attribute:"qtip",width:"qwidth",target:"target",title:"qtitle",hide:"hide",cls:"qclass",align:"qalign",anchor:"anchor"},initComponent:function(){this.target=this.target||Ext.getDoc();this.targets=this.targets||{};Ext.QuickTip.superclass.initComponent.call(this)},register:function(D){var F=Ext.isArray(D)?D:arguments;for(var E=0,A=F.length;E<A;E++){var H=F[E];var G=H.target;if(G){if(Ext.isArray(G)){for(var C=0,B=G.length;
C<B;C++){this.targets[Ext.id(G[C])]=H}}else{this.targets[Ext.id(G)]=H}}}},unregister:function(A){delete this.targets[Ext.id(A)]},cancelShow:function(B){var A=this.activeTarget;B=Ext.get(B).dom;if(this.isVisible()){if(A&&A.el==B){this.hide()}}else{if(A&&A.el==B){this.clearTimer("show")}}},getTipCfg:function(D){var B=D.getTarget(),C,A;if(this.interceptTitles&&B.title&&Ext.isString(B.title)){C=B.title;B.qtip=C;B.removeAttribute("title");D.preventDefault()}else{A=this.tagConfig;C=B.qtip||Ext.fly(B).getAttribute(A.attribute,A.namespace)}return C},onTargetOver:function(G){if(this.disabled){return }this.targetXY=G.getXY();var C=G.getTarget();if(!C||C.nodeType!==1||C==document||C==document.body){return }if(this.activeTarget&&((C==this.activeTarget.el)||Ext.fly(this.activeTarget.el).contains(C))){this.clearTimer("hide");this.show();return }if(C&&this.targets[C.id]){this.activeTarget=this.targets[C.id];this.activeTarget.el=C;this.anchor=this.activeTarget.anchor;if(this.anchor){this.anchorTarget=C}this.delayShow();return 
}var E,F=Ext.fly(C),B=this.tagConfig,D=B.namespace;if(E=this.getTipCfg(G)){var A=F.getAttribute(B.hide,D);this.activeTarget={el:C,text:E,width:F.getAttribute(B.width,D),autoHide:A!="user"&&A!=="false",title:F.getAttribute(B.title,D),cls:F.getAttribute(B.cls,D),align:F.getAttribute(B.align,D)};this.anchor=F.getAttribute(B.anchor,D);if(this.anchor){this.anchorTarget=C}this.delayShow()}},onTargetOut:function(A){if(this.activeTarget&&A.within(this.activeTarget.el)&&!this.getTipCfg(A)){return }this.clearTimer("show");if(this.autoHide!==false){this.delayHide()}},showAt:function(B){var A=this.activeTarget;if(A){if(!this.rendered){this.render(Ext.getBody());this.activeTarget=A}if(A.width){this.setWidth(A.width);this.body.setWidth(this.adjustBodyWidth(A.width-this.getFrameWidth()));this.measureWidth=false}else{this.measureWidth=true}this.setTitle(A.title||"");this.body.update(A.text);this.autoHide=A.autoHide;this.dismissDelay=A.dismissDelay||this.dismissDelay;if(this.lastCls){this.el.removeClass(this.lastCls);delete this.lastCls
}if(A.cls){this.el.addClass(A.cls);this.lastCls=A.cls}if(this.anchor){this.constrainPosition=false}else{if(A.align){B=this.el.getAlignToXY(A.el,A.align);this.constrainPosition=false}else{this.constrainPosition=true}}}Ext.QuickTip.superclass.showAt.call(this,B)},hide:function(){delete this.activeTarget;Ext.QuickTip.superclass.hide.call(this)}});Ext.reg("quicktip",Ext.QuickTip);Ext.QuickTips=function(){var B,A=false;return{init:function(C){if(!B){if(!Ext.isReady){Ext.onReady(function(){Ext.QuickTips.init(C)});return }B=new Ext.QuickTip({elements:"header,body",disabled:A});if(C!==false){B.render(Ext.getBody())}}},ddDisable:function(){if(B&&!A){B.disable()}},ddEnable:function(){if(B&&!A){B.enable()}},enable:function(){if(B){B.enable()}A=false},disable:function(){if(B){B.disable()}A=true},isEnabled:function(){return B!==undefined&&!B.disabled},getQuickTip:function(){return B},register:function(){B.register.apply(B,arguments)},unregister:function(){B.unregister.apply(B,arguments)},tips:function(){B.register.apply(B,arguments)
}}}();Ext.slider.Tip=Ext.extend(Ext.Tip,{minWidth:10,offsets:[0,-10],init:function(A){A.on({scope:this,dragstart:this.onSlide,drag:this.onSlide,dragend:this.hide,destroy:this.destroy})},onSlide:function(B,C,A){this.show();this.body.update(this.getText(A));this.doAutoWidth();this.el.alignTo(A.el,"b-t?",this.offsets)},getText:function(A){return String(A.value)}});Ext.ux.SliderTip=Ext.slider.Tip;Ext.tree.TreePanel=Ext.extend(Ext.Panel,{rootVisible:true,animate:Ext.enableFx,lines:true,enableDD:false,hlDrop:Ext.enableFx,pathSeparator:"/",bubbleEvents:[],initComponent:function(){Ext.tree.TreePanel.superclass.initComponent.call(this);if(!this.eventModel){this.eventModel=new Ext.tree.TreeEventModel(this)}var A=this.loader;if(!A){A=new Ext.tree.TreeLoader({dataUrl:this.dataUrl,requestMethod:this.requestMethod})}else{if(Ext.isObject(A)&&!A.load){A=new Ext.tree.TreeLoader(A)}}this.loader=A;this.nodeHash={};if(this.root){var B=this.root;delete this.root;this.setRootNode(B)}this.addEvents("append","remove","movenode","insert","beforeappend","beforeremove","beforemovenode","beforeinsert","beforeload","load","textchange","beforeexpandnode","beforecollapsenode","expandnode","disabledchange","collapsenode","beforeclick","click","containerclick","checkchange","beforedblclick","dblclick","containerdblclick","contextmenu","containercontextmenu","beforechildrenrendered","startdrag","enddrag","dragdrop","beforenodedrop","nodedrop","nodedragover");
if(this.singleExpand){this.on("beforeexpandnode",this.restrictExpand,this)}},proxyNodeEvent:function(C,B,A,G,F,E,D){if(C=="collapse"||C=="expand"||C=="beforecollapse"||C=="beforeexpand"||C=="move"||C=="beforemove"){C=C+"node"}return this.fireEvent(C,B,A,G,F,E,D)},getRootNode:function(){return this.root},setRootNode:function(B){this.destroyRoot();if(!B.render){B=this.loader.createNode(B)}this.root=B;B.ownerTree=this;B.isRoot=true;this.registerNode(B);if(!this.rootVisible){var A=B.attributes.uiProvider;B.ui=A?new A(B):new Ext.tree.RootTreeNodeUI(B)}if(this.innerCt){this.clearInnerCt();this.renderRoot()}return B},clearInnerCt:function(){this.innerCt.update("")},renderRoot:function(){this.root.render();if(!this.rootVisible){this.root.renderChildren()}},getNodeById:function(A){return this.nodeHash[A]},registerNode:function(A){this.nodeHash[A.id]=A},unregisterNode:function(A){delete this.nodeHash[A.id]},toString:function(){return"[Tree"+(this.id?" "+this.id:"")+"]"},restrictExpand:function(A){var B=A.parentNode;if(B){if(B.expandedChild&&B.expandedChild.parentNode==B){B.expandedChild.collapse()
}B.expandedChild=A}},getChecked:function(A,B){B=B||this.root;var C=[];var D=function(){if(this.attributes.checked){C.push(!A?this:(A=="id"?this.id:this.attributes[A]))}};B.cascade(D);return C},getLoader:function(){return this.loader},expandAll:function(){this.root.expand(true)},collapseAll:function(){this.root.collapse(true)},getSelectionModel:function(){if(!this.selModel){this.selModel=new Ext.tree.DefaultSelectionModel()}return this.selModel},expandPath:function(F,A,G){if(Ext.isEmpty(F)){if(G){G(false,undefined)}return }A=A||"id";var D=F.split(this.pathSeparator);var C=this.root;if(C.attributes[A]!=D[1]){if(G){G(false,null)}return }var B=1;var E=function(){if(++B==D.length){if(G){G(true,C)}return }var H=C.findChild(A,D[B]);if(!H){if(G){G(false,C)}return }C=H;H.expand(false,false,E)};C.expand(false,false,E)},selectPath:function(E,A,F){if(Ext.isEmpty(E)){if(F){F(false,undefined)}return }A=A||"id";var C=E.split(this.pathSeparator),B=C.pop();if(C.length>1){var D=function(H,G){if(H&&G){var I=G.findChild(A,B);if(I){I.select();
if(F){F(true,I)}}else{if(F){F(false,I)}}}else{if(F){F(false,I)}}};this.expandPath(C.join(this.pathSeparator),A,D)}else{this.root.select();if(F){F(true,this.root)}}},getTreeEl:function(){return this.body},onRender:function(B,A){Ext.tree.TreePanel.superclass.onRender.call(this,B,A);this.el.addClass("x-tree");this.innerCt=this.body.createChild({tag:"ul",cls:"x-tree-root-ct "+(this.useArrows?"x-tree-arrows":this.lines?"x-tree-lines":"x-tree-no-lines")})},initEvents:function(){Ext.tree.TreePanel.superclass.initEvents.call(this);if(this.containerScroll){Ext.dd.ScrollManager.register(this.body)}if((this.enableDD||this.enableDrop)&&!this.dropZone){this.dropZone=new Ext.tree.TreeDropZone(this,this.dropConfig||{ddGroup:this.ddGroup||"TreeDD",appendOnly:this.ddAppendOnly===true})}if((this.enableDD||this.enableDrag)&&!this.dragZone){this.dragZone=new Ext.tree.TreeDragZone(this,this.dragConfig||{ddGroup:this.ddGroup||"TreeDD",scroll:this.ddScroll})}this.getSelectionModel().init(this)},afterRender:function(){Ext.tree.TreePanel.superclass.afterRender.call(this);
this.renderRoot()},beforeDestroy:function(){if(this.rendered){Ext.dd.ScrollManager.unregister(this.body);Ext.destroy(this.dropZone,this.dragZone)}this.destroyRoot();Ext.destroy(this.loader);this.nodeHash=this.root=this.loader=null;Ext.tree.TreePanel.superclass.beforeDestroy.call(this)},destroyRoot:function(){if(this.root&&this.root.destroy){this.root.destroy(true)}}});Ext.tree.TreePanel.nodeTypes={};Ext.reg("treepanel",Ext.tree.TreePanel);Ext.tree.TreeEventModel=function(A){this.tree=A;this.tree.on("render",this.initEvents,this)};Ext.tree.TreeEventModel.prototype={initEvents:function(){var A=this.tree;if(A.trackMouseOver!==false){A.mon(A.innerCt,{scope:this,mouseover:this.delegateOver,mouseout:this.delegateOut})}A.mon(A.getTreeEl(),{scope:this,click:this.delegateClick,dblclick:this.delegateDblClick,contextmenu:this.delegateContextMenu})},getNode:function(B){var A;if(A=B.getTarget(".x-tree-node-el",10)){var C=Ext.fly(A,"_treeEvents").getAttribute("tree-node-id","ext");if(C){return this.tree.getNodeById(C)}}return null
},getNodeTarget:function(B){var A=B.getTarget(".x-tree-node-icon",1);if(!A){A=B.getTarget(".x-tree-node-el",6)}return A},delegateOut:function(B,A){if(!this.beforeEvent(B)){return }if(B.getTarget(".x-tree-ec-icon",1)){var C=this.getNode(B);this.onIconOut(B,C);if(C==this.lastEcOver){delete this.lastEcOver}}if((A=this.getNodeTarget(B))&&!B.within(A,true)){this.onNodeOut(B,this.getNode(B))}},delegateOver:function(B,A){if(!this.beforeEvent(B)){return }if(Ext.isGecko&&!this.trackingDoc){Ext.getBody().on("mouseover",this.trackExit,this);this.trackingDoc=true}if(this.lastEcOver){this.onIconOut(B,this.lastEcOver);delete this.lastEcOver}if(B.getTarget(".x-tree-ec-icon",1)){this.lastEcOver=this.getNode(B);this.onIconOver(B,this.lastEcOver)}if(A=this.getNodeTarget(B)){this.onNodeOver(B,this.getNode(B))}},trackExit:function(A){if(this.lastOverNode){if(this.lastOverNode.ui&&!A.within(this.lastOverNode.ui.getEl())){this.onNodeOut(A,this.lastOverNode)}delete this.lastOverNode;Ext.getBody().un("mouseover",this.trackExit,this);
this.trackingDoc=false}},delegateClick:function(B,A){if(this.beforeEvent(B)){if(B.getTarget("input[type=checkbox]",1)){this.onCheckboxClick(B,this.getNode(B))}else{if(B.getTarget(".x-tree-ec-icon",1)){this.onIconClick(B,this.getNode(B))}else{if(this.getNodeTarget(B)){this.onNodeClick(B,this.getNode(B))}}}}else{this.checkContainerEvent(B,"click")}},delegateDblClick:function(B,A){if(this.beforeEvent(B)){if(this.getNodeTarget(B)){this.onNodeDblClick(B,this.getNode(B))}}else{this.checkContainerEvent(B,"dblclick")}},delegateContextMenu:function(B,A){if(this.beforeEvent(B)){if(this.getNodeTarget(B)){this.onNodeContextMenu(B,this.getNode(B))}}else{this.checkContainerEvent(B,"contextmenu")}},checkContainerEvent:function(B,A){if(this.disabled){B.stopEvent();return false}this.onContainerEvent(B,A)},onContainerEvent:function(B,A){this.tree.fireEvent("container"+A,this.tree,B)},onNodeClick:function(B,A){A.ui.onClick(B)},onNodeOver:function(B,A){this.lastOverNode=A;A.ui.onOver(B)},onNodeOut:function(B,A){A.ui.onOut(B)},onIconOver:function(B,A){A.ui.addClass("x-tree-ec-over")
},onIconOut:function(B,A){A.ui.removeClass("x-tree-ec-over")},onIconClick:function(B,A){A.ui.ecClick(B)},onCheckboxClick:function(B,A){A.ui.onCheckChange(B)},onNodeDblClick:function(B,A){A.ui.onDblClick(B)},onNodeContextMenu:function(B,A){A.ui.onContextMenu(B)},beforeEvent:function(B){var A=this.getNode(B);if(this.disabled||!A||!A.ui){B.stopEvent();return false}return true},disable:function(){this.disabled=true},enable:function(){this.disabled=false}};Ext.tree.DefaultSelectionModel=Ext.extend(Ext.util.Observable,{constructor:function(A){this.selNode=null;this.addEvents("selectionchange","beforeselect");Ext.apply(this,A);Ext.tree.DefaultSelectionModel.superclass.constructor.call(this)},init:function(A){this.tree=A;A.mon(A.getTreeEl(),"keydown",this.onKeyDown,this);A.on("click",this.onNodeClick,this)},onNodeClick:function(A,B){this.select(A)},select:function(C,A){if(!Ext.fly(C.ui.wrap).isVisible()&&A){return A.call(this,C)}var B=this.selNode;if(C==B){C.ui.onSelectedChange(true)}else{if(this.fireEvent("beforeselect",this,C,B)!==false){if(B&&B.ui){B.ui.onSelectedChange(false)
}this.selNode=C;C.ui.onSelectedChange(true);this.fireEvent("selectionchange",this,C,B)}}return C},unselect:function(B,A){if(this.selNode==B){this.clearSelections(A)}},clearSelections:function(A){var B=this.selNode;if(B){B.ui.onSelectedChange(false);this.selNode=null;if(A!==true){this.fireEvent("selectionchange",this,null)}}return B},getSelectedNode:function(){return this.selNode},isSelected:function(A){return this.selNode==A},selectPrevious:function(A){if(!(A=A||this.selNode||this.lastSelNode)){return null}var C=A.previousSibling;if(C){if(!C.isExpanded()||C.childNodes.length<1){return this.select(C,this.selectPrevious)}else{var B=C.lastChild;while(B&&B.isExpanded()&&Ext.fly(B.ui.wrap).isVisible()&&B.childNodes.length>0){B=B.lastChild}return this.select(B,this.selectPrevious)}}else{if(A.parentNode&&(this.tree.rootVisible||!A.parentNode.isRoot)){return this.select(A.parentNode,this.selectPrevious)}}return null},selectNext:function(B){if(!(B=B||this.selNode||this.lastSelNode)){return null}if(B.firstChild&&B.isExpanded()&&Ext.fly(B.ui.wrap).isVisible()){return this.select(B.firstChild,this.selectNext)
}else{if(B.nextSibling){return this.select(B.nextSibling,this.selectNext)}else{if(B.parentNode){var A=null;B.parentNode.bubble(function(){if(this.nextSibling){A=this.getOwnerTree().selModel.select(this.nextSibling,this.selectNext);return false}});return A}}}return null},onKeyDown:function(C){var B=this.selNode||this.lastSelNode;var D=this;if(!B){return }var A=C.getKey();switch(A){case C.DOWN:C.stopEvent();this.selectNext();break;case C.UP:C.stopEvent();this.selectPrevious();break;case C.RIGHT:C.preventDefault();if(B.hasChildNodes()){if(!B.isExpanded()){B.expand()}else{if(B.firstChild){this.select(B.firstChild,C)}}}break;case C.LEFT:C.preventDefault();if(B.hasChildNodes()&&B.isExpanded()){B.collapse()}else{if(B.parentNode&&(this.tree.rootVisible||B.parentNode!=this.tree.getRootNode())){this.select(B.parentNode,C)}}break}}});Ext.tree.MultiSelectionModel=Ext.extend(Ext.util.Observable,{constructor:function(A){this.selNodes=[];this.selMap={};this.addEvents("selectionchange");Ext.apply(this,A);Ext.tree.MultiSelectionModel.superclass.constructor.call(this)
},init:function(A){this.tree=A;A.mon(A.getTreeEl(),"keydown",this.onKeyDown,this);A.on("click",this.onNodeClick,this)},onNodeClick:function(A,B){if(B.ctrlKey&&this.isSelected(A)){this.unselect(A)}else{this.select(A,B,B.ctrlKey)}},select:function(A,C,B){if(B!==true){this.clearSelections(true)}if(this.isSelected(A)){this.lastSelNode=A;return A}this.selNodes.push(A);this.selMap[A.id]=A;this.lastSelNode=A;A.ui.onSelectedChange(true);this.fireEvent("selectionchange",this,this.selNodes);return A},unselect:function(B){if(this.selMap[B.id]){B.ui.onSelectedChange(false);var C=this.selNodes;var A=C.indexOf(B);if(A!=-1){this.selNodes.splice(A,1)}delete this.selMap[B.id];this.fireEvent("selectionchange",this,this.selNodes)}},clearSelections:function(B){var D=this.selNodes;if(D.length>0){for(var C=0,A=D.length;C<A;C++){D[C].ui.onSelectedChange(false)}this.selNodes=[];this.selMap={};if(B!==true){this.fireEvent("selectionchange",this,this.selNodes)}}},isSelected:function(A){return this.selMap[A.id]?true:false},getSelectedNodes:function(){return this.selNodes.concat([])
},onKeyDown:Ext.tree.DefaultSelectionModel.prototype.onKeyDown,selectNext:Ext.tree.DefaultSelectionModel.prototype.selectNext,selectPrevious:Ext.tree.DefaultSelectionModel.prototype.selectPrevious});Ext.data.Tree=Ext.extend(Ext.util.Observable,{constructor:function(A){this.nodeHash={};this.root=null;if(A){this.setRootNode(A)}this.addEvents("append","remove","move","insert","beforeappend","beforeremove","beforemove","beforeinsert");Ext.data.Tree.superclass.constructor.call(this)},pathSeparator:"/",proxyNodeEvent:function(){return this.fireEvent.apply(this,arguments)},getRootNode:function(){return this.root},setRootNode:function(A){this.root=A;A.ownerTree=this;A.isRoot=true;this.registerNode(A);return A},getNodeById:function(A){return this.nodeHash[A]},registerNode:function(A){this.nodeHash[A.id]=A},unregisterNode:function(A){delete this.nodeHash[A.id]},toString:function(){return"[Tree"+(this.id?" "+this.id:"")+"]"}});Ext.data.Node=Ext.extend(Ext.util.Observable,{constructor:function(A){this.attributes=A||{};this.leaf=this.attributes.leaf;
this.id=this.attributes.id;if(!this.id){this.id=Ext.id(null,"xnode-");this.attributes.id=this.id}this.childNodes=[];this.parentNode=null;this.firstChild=null;this.lastChild=null;this.previousSibling=null;this.nextSibling=null;this.addEvents({"append":true,"remove":true,"move":true,"insert":true,"beforeappend":true,"beforeremove":true,"beforemove":true,"beforeinsert":true});this.listeners=this.attributes.listeners;Ext.data.Node.superclass.constructor.call(this)},fireEvent:function(B){if(Ext.data.Node.superclass.fireEvent.apply(this,arguments)===false){return false}var A=this.getOwnerTree();if(A){if(A.proxyNodeEvent.apply(A,arguments)===false){return false}}return true},isLeaf:function(){return this.leaf===true},setFirstChild:function(A){this.firstChild=A},setLastChild:function(A){this.lastChild=A},isLast:function(){return(!this.parentNode?true:this.parentNode.lastChild==this)},isFirst:function(){return(!this.parentNode?true:this.parentNode.firstChild==this)},hasChildNodes:function(){return !this.isLeaf()&&this.childNodes.length>0
},isExpandable:function(){return this.attributes.expandable||this.hasChildNodes()},appendChild:function(E){var F=false;if(Ext.isArray(E)){F=E}else{if(arguments.length>1){F=arguments}}if(F){for(var D=0,A=F.length;D<A;D++){this.appendChild(F[D])}}else{if(this.fireEvent("beforeappend",this.ownerTree,this,E)===false){return false}var B=this.childNodes.length;var C=E.parentNode;if(C){if(E.fireEvent("beforemove",E.getOwnerTree(),E,C,this,B)===false){return false}C.removeChild(E)}B=this.childNodes.length;if(B===0){this.setFirstChild(E)}this.childNodes.push(E);E.parentNode=this;var G=this.childNodes[B-1];if(G){E.previousSibling=G;G.nextSibling=E}else{E.previousSibling=null}E.nextSibling=null;this.setLastChild(E);E.setOwnerTree(this.getOwnerTree());this.fireEvent("append",this.ownerTree,this,E,B);if(C){E.fireEvent("move",this.ownerTree,E,C,this,B)}return E}},removeChild:function(C,B){var A=this.childNodes.indexOf(C);if(A==-1){return false}if(this.fireEvent("beforeremove",this.ownerTree,this,C)===false){return false}this.childNodes.splice(A,1);
if(C.previousSibling){C.previousSibling.nextSibling=C.nextSibling}if(C.nextSibling){C.nextSibling.previousSibling=C.previousSibling}if(this.firstChild==C){this.setFirstChild(C.nextSibling)}if(this.lastChild==C){this.setLastChild(C.previousSibling)}this.fireEvent("remove",this.ownerTree,this,C);if(B){C.destroy(true)}else{C.clear()}return C},clear:function(A){this.setOwnerTree(null,A);this.parentNode=this.previousSibling=this.nextSibling=null;if(A){this.firstChild=this.lastChild=null}},destroy:function(A){if(A===true){this.purgeListeners();this.clear(true);Ext.each(this.childNodes,function(B){B.destroy(true)});this.childNodes=null}else{this.remove(true)}},insertBefore:function(D,A){if(!A){return this.appendChild(D)}if(D==A){return false}if(this.fireEvent("beforeinsert",this.ownerTree,this,D,A)===false){return false}var B=this.childNodes.indexOf(A);var C=D.parentNode;var E=B;if(C==this&&this.childNodes.indexOf(D)<B){E--}if(C){if(D.fireEvent("beforemove",D.getOwnerTree(),D,C,this,B,A)===false){return false}C.removeChild(D)
}if(E===0){this.setFirstChild(D)}this.childNodes.splice(E,0,D);D.parentNode=this;var F=this.childNodes[E-1];if(F){D.previousSibling=F;F.nextSibling=D}else{D.previousSibling=null}D.nextSibling=A;A.previousSibling=D;D.setOwnerTree(this.getOwnerTree());this.fireEvent("insert",this.ownerTree,this,D,A);if(C){D.fireEvent("move",this.ownerTree,D,C,this,E,A)}return D},remove:function(A){if(this.parentNode){this.parentNode.removeChild(this,A)}return this},removeAll:function(A){var C=this.childNodes,B;while((B=C[0])){this.removeChild(B,A)}return this},item:function(A){return this.childNodes[A]},replaceChild:function(A,C){var B=C?C.nextSibling:null;this.removeChild(C);this.insertBefore(A,B);return C},indexOf:function(A){return this.childNodes.indexOf(A)},getOwnerTree:function(){if(!this.ownerTree){var A=this;while(A){if(A.ownerTree){this.ownerTree=A.ownerTree;break}A=A.parentNode}}return this.ownerTree},getDepth:function(){var B=0;var A=this;while(A.parentNode){++B;A=A.parentNode}return B},setOwnerTree:function(A,B){if(A!=this.ownerTree){if(this.ownerTree){this.ownerTree.unregisterNode(this)
}this.ownerTree=A;if(B!==true){Ext.each(this.childNodes,function(C){C.setOwnerTree(A)})}if(A){A.registerNode(this)}}},setId:function(B){if(B!==this.id){var A=this.ownerTree;if(A){A.unregisterNode(this)}this.id=this.attributes.id=B;if(A){A.registerNode(this)}this.onIdChange(B)}},onIdChange:Ext.emptyFn,getPath:function(B){B=B||"id";var D=this.parentNode;var A=[this.attributes[B]];while(D){A.unshift(D.attributes[B]);D=D.parentNode}var C=this.getOwnerTree().pathSeparator;return C+A.join(C)},bubble:function(C,B,A){var D=this;while(D){if(C.apply(B||D,A||[D])===false){break}D=D.parentNode}},cascade:function(F,E,B){if(F.apply(E||this,B||[this])!==false){var D=this.childNodes;for(var C=0,A=D.length;C<A;C++){D[C].cascade(F,E,B)}}},eachChild:function(F,E,B){var D=this.childNodes;for(var C=0,A=D.length;C<A;C++){if(F.apply(E||D[C],B||[D[C]])===false){break}}},findChild:function(B,C,A){return this.findChildBy(function(){return this.attributes[B]==C},null,A)},findChildBy:function(G,F,B){var E=this.childNodes,A=E.length,D=0,H,C;
for(;D<A;D++){H=E[D];if(G.call(F||H,H)===true){return H}else{if(B){C=H.findChildBy(G,F,B);if(C!=null){return C}}}}return null},sort:function(E,D){var C=this.childNodes;var A=C.length;if(A>0){var F=D?function(){E.apply(D,arguments)}:E;C.sort(F);for(var B=0;B<A;B++){var G=C[B];G.previousSibling=C[B-1];G.nextSibling=C[B+1];if(B===0){this.setFirstChild(G)}if(B==A-1){this.setLastChild(G)}}}},contains:function(A){return A.isAncestor(this)},isAncestor:function(A){var B=this.parentNode;while(B){if(B==A){return true}B=B.parentNode}return false},toString:function(){return"[Node"+(this.id?" "+this.id:"")+"]"}});Ext.tree.TreeNode=Ext.extend(Ext.data.Node,{constructor:function(A){A=A||{};if(Ext.isString(A)){A={text:A}}this.childrenRendered=false;this.rendered=false;Ext.tree.TreeNode.superclass.constructor.call(this,A);this.expanded=A.expanded===true;this.isTarget=A.isTarget!==false;this.draggable=A.draggable!==false&&A.allowDrag!==false;this.allowChildren=A.allowChildren!==false&&A.allowDrop!==false;this.text=A.text;this.disabled=A.disabled===true;
this.hidden=A.hidden===true;this.addEvents("textchange","beforeexpand","beforecollapse","expand","disabledchange","collapse","beforeclick","click","checkchange","beforedblclick","dblclick","contextmenu","beforechildrenrendered");var B=this.attributes.uiProvider||this.defaultUI||Ext.tree.TreeNodeUI;this.ui=new B(this)},preventHScroll:true,isExpanded:function(){return this.expanded},getUI:function(){return this.ui},getLoader:function(){var A;return this.loader||((A=this.getOwnerTree())&&A.loader?A.loader:(this.loader=new Ext.tree.TreeLoader()))},setFirstChild:function(A){var B=this.firstChild;Ext.tree.TreeNode.superclass.setFirstChild.call(this,A);if(this.childrenRendered&&B&&A!=B){B.renderIndent(true,true)}if(this.rendered){this.renderIndent(true,true)}},setLastChild:function(B){var A=this.lastChild;Ext.tree.TreeNode.superclass.setLastChild.call(this,B);if(this.childrenRendered&&A&&B!=A){A.renderIndent(true,true)}if(this.rendered){this.renderIndent(true,true)}},appendChild:function(B){if(!B.render&&!Ext.isArray(B)){B=this.getLoader().createNode(B)
}var A=Ext.tree.TreeNode.superclass.appendChild.call(this,B);if(A&&this.childrenRendered){A.render()}this.ui.updateExpandIcon();return A},removeChild:function(B,A){this.ownerTree.getSelectionModel().unselect(B);Ext.tree.TreeNode.superclass.removeChild.apply(this,arguments);if(!A){var C=B.ui.rendered;if(C){B.ui.remove()}if(C&&this.childNodes.length<1){this.collapse(false,false)}else{this.ui.updateExpandIcon()}if(!this.firstChild&&!this.isHiddenRoot()){this.childrenRendered=false}}return B},insertBefore:function(C,A){if(!C.render){C=this.getLoader().createNode(C)}var B=Ext.tree.TreeNode.superclass.insertBefore.call(this,C,A);if(B&&A&&this.childrenRendered){C.render()}this.ui.updateExpandIcon();return B},setText:function(B){var A=this.text;this.text=this.attributes.text=B;if(this.rendered){this.ui.onTextChange(this,B,A)}this.fireEvent("textchange",this,B,A)},setIconCls:function(B){var A=this.attributes.iconCls;this.attributes.iconCls=B;if(this.rendered){this.ui.onIconClsChange(this,B,A)}},setTooltip:function(A,B){this.attributes.qtip=A;
this.attributes.qtipTitle=B;if(this.rendered){this.ui.onTipChange(this,A,B)}},setIcon:function(A){this.attributes.icon=A;if(this.rendered){this.ui.onIconChange(this,A)}},setHref:function(A,B){this.attributes.href=A;this.attributes.hrefTarget=B;if(this.rendered){this.ui.onHrefChange(this,A,B)}},setCls:function(B){var A=this.attributes.cls;this.attributes.cls=B;if(this.rendered){this.ui.onClsChange(this,B,A)}},select:function(){var A=this.getOwnerTree();if(A){A.getSelectionModel().select(this)}},unselect:function(A){var B=this.getOwnerTree();if(B){B.getSelectionModel().unselect(this,A)}},isSelected:function(){var A=this.getOwnerTree();return A?A.getSelectionModel().isSelected(this):false},expand:function(A,C,D,B){if(!this.expanded){if(this.fireEvent("beforeexpand",this,A,C)===false){return }if(!this.childrenRendered){this.renderChildren()}this.expanded=true;if(!this.isHiddenRoot()&&(this.getOwnerTree().animate&&C!==false)||C){this.ui.animExpand(function(){this.fireEvent("expand",this);this.runCallback(D,B||this,[this]);
if(A===true){this.expandChildNodes(true,true)}}.createDelegate(this));return }else{this.ui.expand();this.fireEvent("expand",this);this.runCallback(D,B||this,[this])}}else{this.runCallback(D,B||this,[this])}if(A===true){this.expandChildNodes(true)}},runCallback:function(A,C,B){if(Ext.isFunction(A)){A.apply(C,B)}},isHiddenRoot:function(){return this.isRoot&&!this.getOwnerTree().rootVisible},collapse:function(B,F,G,E){if(this.expanded&&!this.isHiddenRoot()){if(this.fireEvent("beforecollapse",this,B,F)===false){return }this.expanded=false;if((this.getOwnerTree().animate&&F!==false)||F){this.ui.animCollapse(function(){this.fireEvent("collapse",this);this.runCallback(G,E||this,[this]);if(B===true){this.collapseChildNodes(true)}}.createDelegate(this));return }else{this.ui.collapse();this.fireEvent("collapse",this);this.runCallback(G,E||this,[this])}}else{if(!this.expanded){this.runCallback(G,E||this,[this])}}if(B===true){var D=this.childNodes;for(var C=0,A=D.length;C<A;C++){D[C].collapse(true,false)}}},delayedExpand:function(A){if(!this.expandProcId){this.expandProcId=this.expand.defer(A,this)
}},cancelExpand:function(){if(this.expandProcId){clearTimeout(this.expandProcId)}this.expandProcId=false},toggle:function(){if(this.expanded){this.collapse()}else{this.expand()}},ensureVisible:function(C,B){var A=this.getOwnerTree();A.expandPath(this.parentNode?this.parentNode.getPath():this.getPath(),false,function(){var D=A.getNodeById(this.id);A.getTreeEl().scrollChildIntoView(D.ui.anchor);this.runCallback(C,B||this,[this])}.createDelegate(this))},expandChildNodes:function(B,E){var D=this.childNodes,C,A=D.length;for(C=0;C<A;C++){D[C].expand(B,E)}},collapseChildNodes:function(B){var D=this.childNodes;for(var C=0,A=D.length;C<A;C++){D[C].collapse(B)}},disable:function(){this.disabled=true;this.unselect();if(this.rendered&&this.ui.onDisableChange){this.ui.onDisableChange(this,true)}this.fireEvent("disabledchange",this,true)},enable:function(){this.disabled=false;if(this.rendered&&this.ui.onDisableChange){this.ui.onDisableChange(this,false)}this.fireEvent("disabledchange",this,false)},renderChildren:function(B){if(B!==false){this.fireEvent("beforechildrenrendered",this)
}var D=this.childNodes;for(var C=0,A=D.length;C<A;C++){D[C].render(true)}this.childrenRendered=true},sort:function(E,D){Ext.tree.TreeNode.superclass.sort.apply(this,arguments);if(this.childrenRendered){var C=this.childNodes;for(var B=0,A=C.length;B<A;B++){C[B].render(true)}}},render:function(A){this.ui.render(A);if(!this.rendered){this.getOwnerTree().registerNode(this);this.rendered=true;if(this.expanded){this.expanded=false;this.expand(false,false)}}},renderIndent:function(B,E){if(E){this.ui.childIndent=null}this.ui.renderIndent();if(B===true&&this.childrenRendered){var D=this.childNodes;for(var C=0,A=D.length;C<A;C++){D[C].renderIndent(true,E)}}},beginUpdate:function(){this.childrenRendered=false},endUpdate:function(){if(this.expanded&&this.rendered){this.renderChildren()}},destroy:function(A){if(A===true){this.unselect(true)}Ext.tree.TreeNode.superclass.destroy.call(this,A);Ext.destroy(this.ui,this.loader);this.ui=this.loader=null},onIdChange:function(A){this.ui.onIdChange(A)}});Ext.tree.TreePanel.nodeTypes.node=Ext.tree.TreeNode;
Ext.tree.AsyncTreeNode=function(A){this.loaded=A&&A.loaded===true;this.loading=false;Ext.tree.AsyncTreeNode.superclass.constructor.apply(this,arguments);this.addEvents("beforeload","load")};Ext.extend(Ext.tree.AsyncTreeNode,Ext.tree.TreeNode,{expand:function(B,E,G,C){if(this.loading){var F;var D=function(){if(!this.loading){clearInterval(F);this.expand(B,E,G,C)}}.createDelegate(this);F=setInterval(D,200);return }if(!this.loaded){if(this.fireEvent("beforeload",this)===false){return }this.loading=true;this.ui.beforeLoad(this);var A=this.loader||this.attributes.loader||this.getOwnerTree().getLoader();if(A){A.load(this,this.loadComplete.createDelegate(this,[B,E,G,C]),this);return }}Ext.tree.AsyncTreeNode.superclass.expand.call(this,B,E,G,C)},isLoading:function(){return this.loading},loadComplete:function(A,C,D,B){this.loading=false;this.loaded=true;this.ui.afterLoad(this);this.fireEvent("load",this);this.expand(A,C,D,B)},isLoaded:function(){return this.loaded},hasChildNodes:function(){if(!this.isLeaf()&&!this.loaded){return true
}else{return Ext.tree.AsyncTreeNode.superclass.hasChildNodes.call(this)}},reload:function(B,A){this.collapse(false,false);while(this.firstChild){this.removeChild(this.firstChild).destroy()}this.childrenRendered=false;this.loaded=false;if(this.isHiddenRoot()){this.expanded=false}this.expand(false,false,B,A)}});Ext.tree.TreePanel.nodeTypes.async=Ext.tree.AsyncTreeNode;Ext.tree.TreeNodeUI=Ext.extend(Object,{constructor:function(A){Ext.apply(this,{node:A,rendered:false,animating:false,wasLeaf:true,ecc:"x-tree-ec-icon x-tree-elbow",emptyIcon:Ext.BLANK_IMAGE_URL})},removeChild:function(A){if(this.rendered){this.ctNode.removeChild(A.ui.getEl())}},beforeLoad:function(){this.addClass("x-tree-node-loading")},afterLoad:function(){this.removeClass("x-tree-node-loading")},onTextChange:function(B,C,A){if(this.rendered){this.textNode.innerHTML=C}},onIconClsChange:function(C,A,B){if(this.rendered){Ext.fly(this.iconNode).replaceClass(B,A)}},onIconChange:function(B,A){if(this.rendered){var C=Ext.isEmpty(A);this.iconNode.src=C?this.emptyIcon:A;
Ext.fly(this.iconNode)[C?"removeClass":"addClass"]("x-tree-node-inline-icon")}},onTipChange:function(B,C,D){if(this.rendered){var A=Ext.isDefined(D);if(this.textNode.setAttributeNS){this.textNode.setAttributeNS("ext","qtip",C);if(A){this.textNode.setAttributeNS("ext","qtitle",D)}}else{this.textNode.setAttribute("ext:qtip",C);if(A){this.textNode.setAttribute("ext:qtitle",D)}}}},onHrefChange:function(B,A,C){if(this.rendered){this.anchor.href=this.getHref(A);if(Ext.isDefined(C)){this.anchor.target=C}}},onClsChange:function(C,A,B){if(this.rendered){Ext.fly(this.elNode).replaceClass(B,A)}},onDisableChange:function(A,B){this.disabled=B;if(this.checkbox){this.checkbox.disabled=B}this[B?"addClass":"removeClass"]("x-tree-node-disabled")},onSelectedChange:function(A){if(A){this.focus();this.addClass("x-tree-selected")}else{this.removeClass("x-tree-selected")}},onMove:function(A,G,E,F,D,B){this.childIndent=null;if(this.rendered){var H=F.ui.getContainer();if(!H){this.holder=document.createElement("div");this.holder.appendChild(this.wrap);
return }var C=B?B.ui.getEl():null;if(C){H.insertBefore(this.wrap,C)}else{H.appendChild(this.wrap)}this.node.renderIndent(true,E!=F)}},addClass:function(A){if(this.elNode){Ext.fly(this.elNode).addClass(A)}},removeClass:function(A){if(this.elNode){Ext.fly(this.elNode).removeClass(A)}},remove:function(){if(this.rendered){this.holder=document.createElement("div");this.holder.appendChild(this.wrap)}},fireEvent:function(){return this.node.fireEvent.apply(this.node,arguments)},initEvents:function(){this.node.on("move",this.onMove,this);if(this.node.disabled){this.onDisableChange(this.node,true)}if(this.node.hidden){this.hide()}var B=this.node.getOwnerTree();var A=B.enableDD||B.enableDrag||B.enableDrop;if(A&&(!this.node.isRoot||B.rootVisible)){Ext.dd.Registry.register(this.elNode,{node:this.node,handles:this.getDDHandles(),isHandle:false})}},getDDHandles:function(){return[this.iconNode,this.textNode,this.elNode]},hide:function(){this.node.hidden=true;if(this.wrap){this.wrap.style.display="none"}},show:function(){this.node.hidden=false;
if(this.wrap){this.wrap.style.display=""}},onContextMenu:function(A){if(this.node.hasListener("contextmenu")||this.node.getOwnerTree().hasListener("contextmenu")){A.preventDefault();this.focus();this.fireEvent("contextmenu",this.node,A)}},onClick:function(B){if(this.dropping){B.stopEvent();return }if(this.fireEvent("beforeclick",this.node,B)!==false){var A=B.getTarget("a");if(!this.disabled&&this.node.attributes.href&&A){this.fireEvent("click",this.node,B);return }else{if(A&&B.ctrlKey){B.stopEvent()}}B.preventDefault();if(this.disabled){return }if(this.node.attributes.singleClickExpand&&!this.animating&&this.node.isExpandable()){this.node.toggle()}this.fireEvent("click",this.node,B)}else{B.stopEvent()}},onDblClick:function(A){A.preventDefault();if(this.disabled){return }if(this.fireEvent("beforedblclick",this.node,A)!==false){if(this.checkbox){this.toggleCheck()}if(!this.animating&&this.node.isExpandable()){this.node.toggle()}this.fireEvent("dblclick",this.node,A)}},onOver:function(A){this.addClass("x-tree-node-over")
},onOut:function(A){this.removeClass("x-tree-node-over")},onCheckChange:function(){var A=this.checkbox.checked;this.checkbox.defaultChecked=A;this.node.attributes.checked=A;this.fireEvent("checkchange",this.node,A)},ecClick:function(A){if(!this.animating&&this.node.isExpandable()){this.node.toggle()}},startDrop:function(){this.dropping=true},endDrop:function(){setTimeout(function(){this.dropping=false}.createDelegate(this),50)},expand:function(){this.updateExpandIcon();this.ctNode.style.display=""},focus:function(){if(!this.node.preventHScroll){try{this.anchor.focus()}catch(C){}}else{try{var B=this.node.getOwnerTree().getTreeEl().dom;var A=B.scrollLeft;this.anchor.focus();B.scrollLeft=A}catch(C){}}},toggleCheck:function(B){var A=this.checkbox;if(A){A.checked=(B===undefined?!A.checked:B);this.onCheckChange()}},blur:function(){try{this.anchor.blur()}catch(A){}},animExpand:function(B){var A=Ext.get(this.ctNode);A.stopFx();if(!this.node.isExpandable()){this.updateExpandIcon();this.ctNode.style.display="";Ext.callback(B);
return }this.animating=true;this.updateExpandIcon();A.slideIn("t",{callback:function(){this.animating=false;Ext.callback(B)},scope:this,duration:this.node.ownerTree.duration||0.25})},highlight:function(){var A=this.node.getOwnerTree();Ext.fly(this.wrap).highlight(A.hlColor||"C3DAF9",{endColor:A.hlBaseColor})},collapse:function(){this.updateExpandIcon();this.ctNode.style.display="none"},animCollapse:function(B){var A=Ext.get(this.ctNode);A.enableDisplayMode("block");A.stopFx();this.animating=true;this.updateExpandIcon();A.slideOut("t",{callback:function(){this.animating=false;Ext.callback(B)},scope:this,duration:this.node.ownerTree.duration||0.25})},getContainer:function(){return this.ctNode},getEl:function(){return this.wrap},appendDDGhost:function(A){A.appendChild(this.elNode.cloneNode(true))},getDDRepairXY:function(){return Ext.lib.Dom.getXY(this.iconNode)},onRender:function(){this.render()},render:function(B){var D=this.node,A=D.attributes;var C=D.parentNode?D.parentNode.ui.getContainer():D.ownerTree.innerCt.dom;
if(!this.rendered){this.rendered=true;this.renderElements(D,A,C,B);if(A.qtip){this.onTipChange(D,A.qtip,A.qtipTitle)}else{if(A.qtipCfg){A.qtipCfg.target=Ext.id(this.textNode);Ext.QuickTips.register(A.qtipCfg)}}this.initEvents();if(!this.node.expanded){this.updateExpandIcon(true)}}else{if(B===true){C.appendChild(this.wrap)}}},renderElements:function(D,I,H,J){this.indentMarkup=D.parentNode?D.parentNode.ui.getChildIndent():"";var E=Ext.isBoolean(I.checked),A,B=this.getHref(I.href),C=['<li class="x-tree-node"><div ext:tree-node-id="',D.id,'" class="x-tree-node-el x-tree-node-leaf x-unselectable ',I.cls,'" unselectable="on">','<span class="x-tree-node-indent">',this.indentMarkup,"</span>",'<img alt="" src="',this.emptyIcon,'" class="x-tree-ec-icon x-tree-elbow" />','<img alt="" src="',I.icon||this.emptyIcon,'" class="x-tree-node-icon',(I.icon?" x-tree-node-inline-icon":""),(I.iconCls?" "+I.iconCls:""),'" unselectable="on" />',E?('<input class="x-tree-node-cb" type="checkbox" '+(I.checked?'checked="checked" />':"/>")):"",'<a hidefocus="on" class="x-tree-node-anchor" href="',B,'" tabIndex="1" ',I.hrefTarget?' target="'+I.hrefTarget+'"':"",'><span unselectable="on">',D.text,"</span></a></div>",'<ul class="x-tree-node-ct" style="display:none;"></ul>',"</li>"].join("");
if(J!==true&&D.nextSibling&&(A=D.nextSibling.ui.getEl())){this.wrap=Ext.DomHelper.insertHtml("beforeBegin",A,C)}else{this.wrap=Ext.DomHelper.insertHtml("beforeEnd",H,C)}this.elNode=this.wrap.childNodes[0];this.ctNode=this.wrap.childNodes[1];var G=this.elNode.childNodes;this.indentNode=G[0];this.ecNode=G[1];this.iconNode=G[2];var F=3;if(E){this.checkbox=G[3];this.checkbox.defaultChecked=this.checkbox.checked;F++}this.anchor=G[F];this.textNode=G[F].firstChild},getHref:function(A){return Ext.isEmpty(A)?(Ext.isGecko?"":"#"):A},getAnchor:function(){return this.anchor},getTextEl:function(){return this.textNode},getIconEl:function(){return this.iconNode},isChecked:function(){return this.checkbox?this.checkbox.checked:false},updateExpandIcon:function(){if(this.rendered){var F=this.node,D,C,A=F.isLast()?"x-tree-elbow-end":"x-tree-elbow",E=F.hasChildNodes();if(E||F.attributes.expandable){if(F.expanded){A+="-minus";D="x-tree-node-collapsed";C="x-tree-node-expanded"}else{A+="-plus";D="x-tree-node-expanded";C="x-tree-node-collapsed"
}if(this.wasLeaf){this.removeClass("x-tree-node-leaf");this.wasLeaf=false}if(this.c1!=D||this.c2!=C){Ext.fly(this.elNode).replaceClass(D,C);this.c1=D;this.c2=C}}else{if(!this.wasLeaf){Ext.fly(this.elNode).replaceClass("x-tree-node-expanded","x-tree-node-collapsed");delete this.c1;delete this.c2;this.wasLeaf=true}}var B="x-tree-ec-icon "+A;if(this.ecc!=B){this.ecNode.className=B;this.ecc=B}}},onIdChange:function(A){if(this.rendered){this.elNode.setAttribute("ext:tree-node-id",A)}},getChildIndent:function(){if(!this.childIndent){var A=[],B=this.node;while(B){if(!B.isRoot||(B.isRoot&&B.ownerTree.rootVisible)){if(!B.isLast()){A.unshift('<img alt="" src="'+this.emptyIcon+'" class="x-tree-elbow-line" />')}else{A.unshift('<img alt="" src="'+this.emptyIcon+'" class="x-tree-icon" />')}}B=B.parentNode}this.childIndent=A.join("")}return this.childIndent},renderIndent:function(){if(this.rendered){var A="",B=this.node.parentNode;if(B){A=B.ui.getChildIndent()}if(this.indentMarkup!=A){this.indentNode.innerHTML=A;this.indentMarkup=A
}this.updateExpandIcon()}},destroy:function(){if(this.elNode){Ext.dd.Registry.unregister(this.elNode.id)}Ext.each(["textnode","anchor","checkbox","indentNode","ecNode","iconNode","elNode","ctNode","wrap","holder"],function(A){if(this[A]){Ext.fly(this[A]).remove();delete this[A]}},this);delete this.node}});Ext.tree.RootTreeNodeUI=Ext.extend(Ext.tree.TreeNodeUI,{render:function(){if(!this.rendered){var A=this.node.ownerTree.innerCt.dom;this.node.expanded=true;A.innerHTML='<div class="x-tree-root-node"></div>';this.wrap=this.ctNode=A.firstChild}},collapse:Ext.emptyFn,expand:Ext.emptyFn});Ext.tree.TreeLoader=function(A){this.baseParams={};Ext.apply(this,A);this.addEvents("beforeload","load","loadexception");Ext.tree.TreeLoader.superclass.constructor.call(this);if(Ext.isString(this.paramOrder)){this.paramOrder=this.paramOrder.split(/[\s,|]/)}};Ext.extend(Ext.tree.TreeLoader,Ext.util.Observable,{uiProviders:{},clearOnLoad:true,paramOrder:undefined,paramsAsHash:false,nodeParameter:"node",directFn:undefined,load:function(B,C,A){if(this.clearOnLoad){while(B.firstChild){B.removeChild(B.firstChild)
}}if(this.doPreload(B)){this.runCallback(C,A||B,[B])}else{if(this.directFn||this.dataUrl||this.url){this.requestData(B,C,A||B)}}},doPreload:function(D){if(D.attributes.children){if(D.childNodes.length<1){var C=D.attributes.children;D.beginUpdate();for(var B=0,A=C.length;B<A;B++){var E=D.appendChild(this.createNode(C[B]));if(this.preloadChildren){this.doPreload(E)}}D.endUpdate()}return true}return false},getParams:function(F){var E=Ext.apply({},this.baseParams),G=this.nodeParameter,B=this.paramOrder;G&&(E[G]=F.id);if(this.directFn){var C=[F.id];if(B){if(G&&B.indexOf(G)>-1){C=[]}for(var D=0,A=B.length;D<A;D++){C.push(E[B[D]])}}else{if(this.paramsAsHash){C=[E]}}return C}else{return E}},requestData:function(C,D,B){if(this.fireEvent("beforeload",this,C,D)!==false){if(this.directFn){var A=this.getParams(C);A.push(this.processDirectResponse.createDelegate(this,[{callback:D,node:C,scope:B}],true));this.directFn.apply(window,A)}else{this.transId=Ext.Ajax.request({method:this.requestMethod,url:this.dataUrl||this.url,success:this.handleResponse,failure:this.handleFailure,scope:this,argument:{callback:D,node:C,scope:B},params:this.getParams(C)})
}}else{this.runCallback(D,B||C,[])}},processDirectResponse:function(A,B,C){if(B.status){this.handleResponse({responseData:Ext.isArray(A)?A:null,responseText:A,argument:C})}else{this.handleFailure({argument:C})}},runCallback:function(A,C,B){if(Ext.isFunction(A)){A.apply(C,B)}},isLoading:function(){return !!this.transId},abort:function(){if(this.isLoading()){Ext.Ajax.abort(this.transId)}},createNode:function(attr){if(this.baseAttrs){Ext.applyIf(attr,this.baseAttrs)}if(this.applyLoader!==false&&!attr.loader){attr.loader=this}if(Ext.isString(attr.uiProvider)){attr.uiProvider=this.uiProviders[attr.uiProvider]||eval(attr.uiProvider)}if(attr.nodeType){return new Ext.tree.TreePanel.nodeTypes[attr.nodeType](attr)}else{return attr.leaf?new Ext.tree.TreeNode(attr):new Ext.tree.AsyncTreeNode(attr)}},processResponse:function(D,C,H,I){var J=D.responseText;try{var A=D.responseData||Ext.decode(J);C.beginUpdate();for(var E=0,F=A.length;E<F;E++){var B=this.createNode(A[E]);if(B){C.appendChild(B)}}C.endUpdate();this.runCallback(H,I||C,[C])
}catch(G){this.handleFailure(D)}},handleResponse:function(B){this.transId=false;var A=B.argument;this.processResponse(B,A.node,A.callback,A.scope);this.fireEvent("load",this,A.node,B)},handleFailure:function(B){this.transId=false;var A=B.argument;this.fireEvent("loadexception",this,A.node,B);this.runCallback(A.callback,A.scope||A.node,[A.node])},destroy:function(){this.abort();this.purgeListeners()}});Ext.tree.TreeFilter=function(A,B){this.tree=A;this.filtered={};Ext.apply(this,B)};Ext.tree.TreeFilter.prototype={clearBlank:false,reverse:false,autoClear:false,remove:false,filter:function(D,A,B){A=A||"text";var C;if(typeof D=="string"){var E=D.length;if(E==0&&this.clearBlank){this.clear();return }D=D.toLowerCase();C=function(F){return F.attributes[A].substr(0,E).toLowerCase()==D}}else{if(D.exec){C=function(F){return D.test(F.attributes[A])}}else{throw"Illegal filter type, must be string or regex"}}this.filterBy(C,null,B)},filterBy:function(D,C,B){B=B||this.tree.root;if(this.autoClear){this.clear()}var A=this.filtered,H=this.reverse;
var E=function(J){if(J==B){return true}if(A[J.id]){return false}var I=D.call(C||J,J);if(!I||H){A[J.id]=J;J.ui.hide();return false}return true};B.cascade(E);if(this.remove){for(var G in A){if(typeof G!="function"){var F=A[G];if(F&&F.parentNode){F.parentNode.removeChild(F)}}}}},clear:function(){var B=this.tree;var A=this.filtered;for(var D in A){if(typeof D!="function"){var C=A[D];if(C){C.ui.show()}}}this.filtered={}}};Ext.tree.TreeSorter=Ext.extend(Object,{constructor:function(A,C){Ext.apply(this,C);A.on({scope:this,beforechildrenrendered:this.doSort,append:this.updateSort,insert:this.updateSort,textchange:this.updateSortParent});var E=this.dir&&this.dir.toLowerCase()=="desc",H=this.property||"text",D=this.sortType,G=this.folderSort,B=this.caseSensitive===true,F=this.leafAttr||"leaf";if(Ext.isString(D)){D=Ext.data.SortTypes[D]}this.sortFn=function(N,L){var J=N.attributes,I=L.attributes;if(G){if(J[F]&&!I[F]){return 1}if(!J[F]&&I[F]){return -1}}var M=J[H],K=I[H],P=D?D(M):(B?M:M.toUpperCase()),O=D?D(K):(B?K:K.toUpperCase());
if(P<O){return E?1:-1}else{if(P>O){return E?-1:1}}return 0}},doSort:function(A){A.sort(this.sortFn)},updateSort:function(A,B){if(B.childrenRendered){this.doSort.defer(1,this,[B])}},updateSortParent:function(A){var B=A.parentNode;if(B&&B.childrenRendered){this.doSort.defer(1,this,[B])}}});if(Ext.dd.DropZone){Ext.tree.TreeDropZone=function(A,B){this.allowParentInsert=B.allowParentInsert||false;this.allowContainerDrop=B.allowContainerDrop||false;this.appendOnly=B.appendOnly||false;Ext.tree.TreeDropZone.superclass.constructor.call(this,A.getTreeEl(),B);this.tree=A;this.dragOverData={};this.lastInsertClass="x-tree-no-status"};Ext.extend(Ext.tree.TreeDropZone,Ext.dd.DropZone,{ddGroup:"TreeDD",expandDelay:1000,expandNode:function(A){if(A.hasChildNodes()&&!A.isExpanded()){A.expand(false,null,this.triggerCacheRefresh.createDelegate(this))}},queueExpand:function(A){this.expandProcId=this.expandNode.defer(this.expandDelay,this,[A])},cancelExpand:function(){if(this.expandProcId){clearTimeout(this.expandProcId);this.expandProcId=false
}},isValidDropPoint:function(A,I,G,D,C){if(!A||!C){return false}var E=A.node;var F=C.node;if(!(E&&E.isTarget&&I)){return false}if(I=="append"&&E.allowChildren===false){return false}if((I=="above"||I=="below")&&(E.parentNode&&E.parentNode.allowChildren===false)){return false}if(F&&(E==F||F.contains(E))){return false}var B=this.dragOverData;B.tree=this.tree;B.target=E;B.data=C;B.point=I;B.source=G;B.rawEvent=D;B.dropNode=F;B.cancel=false;var H=this.tree.fireEvent("nodedragover",B);return B.cancel===false&&H!==false},getDropPoint:function(E,D,I){var J=D.node;if(J.isRoot){return J.allowChildren!==false?"append":false}var B=D.ddel;var K=Ext.lib.Dom.getY(B),G=K+B.offsetHeight;var F=Ext.lib.Event.getPageY(E);var H=J.allowChildren===false||J.isLeaf();if(this.appendOnly||J.parentNode.allowChildren===false){return H?false:"append"}var C=false;if(!this.allowParentInsert){C=J.hasChildNodes()&&J.isExpanded()}var A=(G-K)/(H?2:3);if(F>=K&&F<(K+A)){return"above"}else{if(!C&&(H||F>=G-A&&F<=G)){return"below"}else{return"append"
}}},onNodeEnter:function(D,A,C,B){this.cancelExpand()},onContainerOver:function(A,C,B){if(this.allowContainerDrop&&this.isValidDropPoint({ddel:this.tree.getRootNode().ui.elNode,node:this.tree.getRootNode()},"append",A,C,B)){return this.dropAllowed}return this.dropNotAllowed},onNodeOver:function(B,G,F,E){var I=this.getDropPoint(F,B,G);var C=B.node;if(!this.expandProcId&&I=="append"&&C.hasChildNodes()&&!B.node.isExpanded()){this.queueExpand(C)}else{if(I!="append"){this.cancelExpand()}}var D=this.dropNotAllowed;if(this.isValidDropPoint(B,I,G,F,E)){if(I){var A=B.ddel;var H;if(I=="above"){D=B.node.isFirst()?"x-tree-drop-ok-above":"x-tree-drop-ok-between";H="x-tree-drag-insert-above"}else{if(I=="below"){D=B.node.isLast()?"x-tree-drop-ok-below":"x-tree-drop-ok-between";H="x-tree-drag-insert-below"}else{D="x-tree-drop-ok-append";H="x-tree-drag-append"}}if(this.lastInsertClass!=H){Ext.fly(A).replaceClass(this.lastInsertClass,H);this.lastInsertClass=H}}}return D},onNodeOut:function(D,A,C,B){this.cancelExpand();this.removeDropIndicators(D)
},onNodeDrop:function(G,B,F,D){var A=this.getDropPoint(F,G,B);var E=G.node;E.ui.startDrop();if(!this.isValidDropPoint(G,A,B,F,D)){E.ui.endDrop();return false}var C=D.node||(B.getTreeNode?B.getTreeNode(D,E,A,F):null);return this.processDrop(E,D,A,B,F,C)},onContainerDrop:function(A,E,C){if(this.allowContainerDrop&&this.isValidDropPoint({ddel:this.tree.getRootNode().ui.elNode,node:this.tree.getRootNode()},"append",A,E,C)){var D=this.tree.getRootNode();D.ui.startDrop();var B=C.node||(A.getTreeNode?A.getTreeNode(C,D,"append",E):null);return this.processDrop(D,C,"append",A,E,B)}return false},processDrop:function(H,F,B,A,G,D){var E={tree:this.tree,target:H,data:F,point:B,source:A,rawEvent:G,dropNode:D,cancel:!D,dropStatus:false};var C=this.tree.fireEvent("beforenodedrop",E);if(C===false||E.cancel===true||!E.dropNode){H.ui.endDrop();return E.dropStatus}H=E.target;if(B=="append"&&!H.isExpanded()){H.expand(false,null,function(){this.completeDrop(E)}.createDelegate(this))}else{this.completeDrop(E)}return true},completeDrop:function(G){var D=G.dropNode,E=G.point,C=G.target;
if(!Ext.isArray(D)){D=[D]}var F;for(var B=0,A=D.length;B<A;B++){F=D[B];if(E=="above"){C.parentNode.insertBefore(F,C)}else{if(E=="below"){C.parentNode.insertBefore(F,C.nextSibling)}else{C.appendChild(F)}}}F.ui.focus();if(Ext.enableFx&&this.tree.hlDrop){F.ui.highlight()}C.ui.endDrop();this.tree.fireEvent("nodedrop",G)},afterNodeMoved:function(A,C,E,D,B){if(Ext.enableFx&&this.tree.hlDrop){B.ui.focus();B.ui.highlight()}this.tree.fireEvent("nodedrop",this.tree,D,C,A,E)},getTree:function(){return this.tree},removeDropIndicators:function(B){if(B&&B.ddel){var A=B.ddel;Ext.fly(A).removeClass(["x-tree-drag-insert-above","x-tree-drag-insert-below","x-tree-drag-append"]);this.lastInsertClass="_noclass"}},beforeDragDrop:function(B,A,C){this.cancelExpand();return true},afterRepair:function(A){if(A&&Ext.enableFx){A.node.ui.highlight()}this.hideProxy()}})}if(Ext.dd.DragZone){Ext.tree.TreeDragZone=function(A,B){Ext.tree.TreeDragZone.superclass.constructor.call(this,A.innerCt,B);this.tree=A};Ext.extend(Ext.tree.TreeDragZone,Ext.dd.DragZone,{ddGroup:"TreeDD",onBeforeDrag:function(A,B){var C=A.node;
return C&&C.draggable&&!C.disabled},onInitDrag:function(B){var A=this.dragData;this.tree.getSelectionModel().select(A.node);this.tree.eventModel.disable();this.proxy.update("");A.node.ui.appendDDGhost(this.proxy.ghost.dom);this.tree.fireEvent("startdrag",this.tree,A.node,B)},getRepairXY:function(B,A){return A.node.ui.getDDRepairXY()},onEndDrag:function(A,B){this.tree.eventModel.enable.defer(100,this.tree.eventModel);this.tree.fireEvent("enddrag",this.tree,A.node,B)},onValidDrop:function(A,B,C){this.tree.fireEvent("dragdrop",this.tree,this.dragData.node,A,B);this.hideProxy()},beforeInvalidDrop:function(A,C){var B=this.tree.getSelectionModel();B.clearSelections();B.select(this.dragData.node)},afterRepair:function(){if(Ext.enableFx&&this.tree.hlDrop){Ext.Element.fly(this.dragData.ddel).highlight(this.hlColor||"c3daf9")}this.dragging=false}})}Ext.tree.TreeEditor=function(A,C,B){C=C||{};var D=C.events?C:new Ext.form.TextField(C);Ext.tree.TreeEditor.superclass.constructor.call(this,D,B);this.tree=A;if(!A.rendered){A.on("render",this.initEditor,this)
}else{this.initEditor(A)}};Ext.extend(Ext.tree.TreeEditor,Ext.Editor,{alignment:"l-l",autoSize:false,hideEl:false,cls:"x-small-editor x-tree-editor",shim:false,shadow:"frame",maxWidth:250,editDelay:350,initEditor:function(A){A.on({scope:this,beforeclick:this.beforeNodeClick,dblclick:this.onNodeDblClick});this.on({scope:this,complete:this.updateNode,beforestartedit:this.fitToTree,specialkey:this.onSpecialKey});this.on("startedit",this.bindScroll,this,{delay:10})},fitToTree:function(B,C){var E=this.tree.getTreeEl().dom,D=C.dom;if(E.scrollLeft>D.offsetLeft){E.scrollLeft=D.offsetLeft}var A=Math.min(this.maxWidth,(E.clientWidth>20?E.clientWidth:E.offsetWidth)-Math.max(0,D.offsetLeft-E.scrollLeft)-5);this.setSize(A,"")},triggerEdit:function(A,C){this.completeEdit();if(A.attributes.editable!==false){this.editNode=A;if(this.tree.autoScroll){Ext.fly(A.ui.getEl()).scrollIntoView(this.tree.body)}var B=A.text||"";if(!Ext.isGecko&&Ext.isEmpty(A.text)){A.setText("&#160;")}this.autoEditTimer=this.startEdit.defer(this.editDelay,this,[A.ui.textNode,B]);
return false}},bindScroll:function(){this.tree.getTreeEl().on("scroll",this.cancelEdit,this)},beforeNodeClick:function(A,B){clearTimeout(this.autoEditTimer);if(this.tree.getSelectionModel().isSelected(A)){B.stopEvent();return this.triggerEdit(A)}},onNodeDblClick:function(A,B){clearTimeout(this.autoEditTimer)},updateNode:function(A,B){this.tree.getTreeEl().un("scroll",this.cancelEdit,this);this.editNode.setText(B)},onHide:function(){Ext.tree.TreeEditor.superclass.onHide.call(this);if(this.editNode){this.editNode.ui.focus.defer(50,this.editNode.ui)}},onSpecialKey:function(C,B){var A=B.getKey();if(A==B.ESC){B.stopEvent();this.cancelEdit()}else{if(A==B.ENTER&&!B.hasModifier()){B.stopEvent();this.completeEdit()}}},onDestroy:function(){clearTimeout(this.autoEditTimer);Ext.tree.TreeEditor.superclass.onDestroy.call(this);var A=this.tree;A.un("beforeclick",this.beforeNodeClick,this);A.un("dblclick",this.onNodeDblClick,this)}});var swfobject=function(){var d="undefined",R="object",t="Shockwave Flash",x="ShockwaveFlash.ShockwaveFlash",Q="application/x-shockwave-flash",s="SWFObjectExprInst",X="onreadystatechange",p=window,J=document,T=navigator,u=false,v=[H],O=[],o=[],j=[],L,r,e,b,k=false,A=false,N,h,M=true,n=function(){var AB=typeof J.getElementById!=d&&typeof J.getElementsByTagName!=d&&typeof J.createElement!=d,AI=T.userAgent.toLowerCase(),z=T.platform.toLowerCase(),AF=z?(/win/).test(z):/win/.test(AI),AD=z?(/mac/).test(z):/mac/.test(AI),AG=/webkit/.test(AI)?parseFloat(AI.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,y=!+"\v1",AH=[0,0,0],AC=null;
if(typeof T.plugins!=d&&typeof T.plugins[t]==R){AC=T.plugins[t].description;if(AC&&!(typeof T.mimeTypes!=d&&T.mimeTypes[Q]&&!T.mimeTypes[Q].enabledPlugin)){u=true;y=false;AC=AC.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AH[0]=parseInt(AC.replace(/^(.*)\..*$/,"$1"),10);AH[1]=parseInt(AC.replace(/^.*\.(.*)\s.*$/,"$1"),10);AH[2]=/[a-zA-Z]/.test(AC)?parseInt(AC.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof p.ActiveXObject!=d){try{var AE=new ActiveXObject(x);if(AE){AC=AE.GetVariable("$version");if(AC){y=true;AC=AC.split(" ")[1].split(",");AH=[parseInt(AC[0],10),parseInt(AC[1],10),parseInt(AC[2],10)]}}}catch(AA){}}}return{w3:AB,pv:AH,wk:AG,ie:y,win:AF,mac:AD}}(),K=function(){if(!n.w3){return }if((typeof J.readyState!=d&&J.readyState=="complete")||(typeof J.readyState==d&&(J.getElementsByTagName("body")[0]||J.body))){F()}if(!k){if(typeof J.addEventListener!=d){J.addEventListener("DOMContentLoaded",F,false)}if(n.ie&&n.win){J.attachEvent(X,function(){if(J.readyState=="complete"){J.detachEvent(X,arguments.callee);F()}});
if(p==top){(function(){if(k){return }try{J.documentElement.doScroll("left")}catch(y){setTimeout(arguments.callee,0);return }F()})()}}if(n.wk){(function(){if(k){return }if(!(/loaded|complete/).test(J.readyState)){setTimeout(arguments.callee,0);return }F()})()}S(F)}}();function F(){if(k){return }try{var AA=J.getElementsByTagName("body")[0].appendChild(c("span"));AA.parentNode.removeChild(AA)}catch(AB){return }k=true;var y=v.length;for(var z=0;z<y;z++){v[z]()}}function l(y){if(k){y()}else{v[v.length]=y}}function S(z){if(typeof p.addEventListener!=d){p.addEventListener("load",z,false)}else{if(typeof J.addEventListener!=d){J.addEventListener("load",z,false)}else{if(typeof p.attachEvent!=d){I(p,"onload",z)}else{if(typeof p.onload=="function"){var y=p.onload;p.onload=function(){y();z()}}else{p.onload=z}}}}}function H(){if(u){w()}else{i()}}function w(){var y=J.getElementsByTagName("body")[0];var AB=c(R);AB.setAttribute("type",Q);var AA=y.appendChild(AB);if(AA){var z=0;(function(){if(typeof AA.GetVariable!=d){var AC=AA.GetVariable("$version");
if(AC){AC=AC.split(" ")[1].split(",");n.pv=[parseInt(AC[0],10),parseInt(AC[1],10),parseInt(AC[2],10)]}}else{if(z<10){z++;setTimeout(arguments.callee,10);return }}y.removeChild(AB);AA=null;i()})()}else{i()}}function i(){var AH=O.length;if(AH>0){for(var AG=0;AG<AH;AG++){var z=O[AG].id;var AC=O[AG].callbackFn;var AB={success:false,id:z};if(n.pv[0]>0){var AF=C(z);if(AF){if(g(O[AG].swfVersion)&&!(n.wk&&n.wk<312)){W(z,true);if(AC){AB.success=true;AB.ref=Z(z);AC(AB)}}else{if(O[AG].expressInstall&&a()){var AJ={};AJ.data=O[AG].expressInstall;AJ.width=AF.getAttribute("width")||"0";AJ.height=AF.getAttribute("height")||"0";if(AF.getAttribute("class")){AJ.styleclass=AF.getAttribute("class")}if(AF.getAttribute("align")){AJ.align=AF.getAttribute("align")}var AI={};var y=AF.getElementsByTagName("param");var AD=y.length;for(var AE=0;AE<AD;AE++){if(y[AE].getAttribute("name").toLowerCase()!="movie"){AI[y[AE].getAttribute("name")]=y[AE].getAttribute("value")}}q(AJ,AI,z,AC)}else{P(AF);if(AC){AC(AB)}}}}}else{W(z,true);if(AC){var AA=Z(z);
if(AA&&typeof AA.SetVariable!=d){AB.success=true;AB.ref=AA}AC(AB)}}}}}function Z(AB){var y=null;var z=C(AB);if(z&&z.nodeName=="OBJECT"){if(typeof z.SetVariable!=d){y=z}else{var AA=z.getElementsByTagName(R)[0];if(AA){y=AA}}}return y}function a(){return !A&&g("6.0.65")&&(n.win||n.mac)&&!(n.wk&&n.wk<312)}function q(AB,AC,y,AA){A=true;e=AA||null;b={success:false,id:y};var AF=C(y);if(AF){if(AF.nodeName=="OBJECT"){L=G(AF);r=null}else{L=AF;r=y}AB.id=s;if(typeof AB.width==d||(!(/%$/).test(AB.width)&&parseInt(AB.width,10)<310)){AB.width="310"}if(typeof AB.height==d||(!(/%$/).test(AB.height)&&parseInt(AB.height,10)<137)){AB.height="137"}J.title=J.title.slice(0,47)+" - Flash Player Installation";var AE=n.ie&&n.win?"ActiveX":"PlugIn",AD="MMredirectURL="+p.location.toString().replace(/&/g,"%26")+"&MMplayerType="+AE+"&MMdoctitle="+J.title;if(typeof AC.flashvars!=d){AC.flashvars+="&"+AD}else{AC.flashvars=AD}if(n.ie&&n.win&&AF.readyState!=4){var z=c("div");y+="SWFObjectNew";z.setAttribute("id",y);AF.parentNode.insertBefore(z,AF);
AF.style.display="none";(function(){if(AF.readyState==4){AF.parentNode.removeChild(AF)}else{setTimeout(arguments.callee,10)}})()}U(AB,AC,y)}}function P(z){if(n.ie&&n.win&&z.readyState!=4){var y=c("div");z.parentNode.insertBefore(y,z);y.parentNode.replaceChild(G(z),y);z.style.display="none";(function(){if(z.readyState==4){z.parentNode.removeChild(z)}else{setTimeout(arguments.callee,10)}})()}else{z.parentNode.replaceChild(G(z),z)}}function G(AC){var AB=c("div");if(n.win&&n.ie){AB.innerHTML=AC.innerHTML}else{var z=AC.getElementsByTagName(R)[0];if(z){var AD=z.childNodes;if(AD){var y=AD.length;for(var AA=0;AA<y;AA++){if(!(AD[AA].nodeType==1&&AD[AA].nodeName=="PARAM")&&!(AD[AA].nodeType==8)){AB.appendChild(AD[AA].cloneNode(true))}}}}}return AB}function U(AJ,AH,z){var y,AB=C(z);if(n.wk&&n.wk<312){return y}if(AB){if(typeof AJ.id==d){AJ.id=z}if(n.ie&&n.win){var AI="";for(var AF in AJ){if(AJ[AF]!=Object.prototype[AF]){if(AF.toLowerCase()=="data"){AH.movie=AJ[AF]}else{if(AF.toLowerCase()=="styleclass"){AI+=' class="'+AJ[AF]+'"'
}else{if(AF.toLowerCase()!="classid"){AI+=" "+AF+'="'+AJ[AF]+'"'}}}}}var AG="";for(var AE in AH){if(AH[AE]!=Object.prototype[AE]){AG+='<param name="'+AE+'" value="'+AH[AE]+'" />'}}AB.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AI+">"+AG+"</object>";o[o.length]=AJ.id;y=C(AJ.id)}else{var AA=c(R);AA.setAttribute("type",Q);for(var AD in AJ){if(AJ[AD]!=Object.prototype[AD]){if(AD.toLowerCase()=="styleclass"){AA.setAttribute("class",AJ[AD])}else{if(AD.toLowerCase()!="classid"){AA.setAttribute(AD,AJ[AD])}}}}for(var AC in AH){if(AH[AC]!=Object.prototype[AC]&&AC.toLowerCase()!="movie"){E(AA,AC,AH[AC])}}AB.parentNode.replaceChild(AA,AB);y=AA}}return y}function E(AA,y,z){var AB=c("param");AB.setAttribute("name",y);AB.setAttribute("value",z);AA.appendChild(AB)}function Y(z){var y=C(z);if(y&&y.nodeName=="OBJECT"){if(n.ie&&n.win){y.style.display="none";(function(){if(y.readyState==4){B(z)}else{setTimeout(arguments.callee,10)}})()}else{y.parentNode.removeChild(y)}}}function B(AA){var z=C(AA);if(z){for(var y in z){if(typeof z[y]=="function"){z[y]=null
}}z.parentNode.removeChild(z)}}function C(AA){var y=null;try{y=J.getElementById(AA)}catch(z){}return y}function c(y){return J.createElement(y)}function I(AA,y,z){AA.attachEvent(y,z);j[j.length]=[AA,y,z]}function g(AA){var z=n.pv,y=AA.split(".");y[0]=parseInt(y[0],10);y[1]=parseInt(y[1],10)||0;y[2]=parseInt(y[2],10)||0;return(z[0]>y[0]||(z[0]==y[0]&&z[1]>y[1])||(z[0]==y[0]&&z[1]==y[1]&&z[2]>=y[2]))?true:false}function V(AD,z,AE,AC){if(n.ie&&n.mac){return }var AB=J.getElementsByTagName("head")[0];if(!AB){return }var y=(AE&&typeof AE=="string")?AE:"screen";if(AC){N=null;h=null}if(!N||h!=y){var AA=c("style");AA.setAttribute("type","text/css");AA.setAttribute("media",y);N=AB.appendChild(AA);if(n.ie&&n.win&&typeof J.styleSheets!=d&&J.styleSheets.length>0){N=J.styleSheets[J.styleSheets.length-1]}h=y}if(n.ie&&n.win){if(N&&typeof N.addRule==R){N.addRule(AD,z)}}else{if(N&&typeof J.createTextNode!=d){N.appendChild(J.createTextNode(AD+" {"+z+"}"))}}}function W(AA,y){if(!M){return }var z=y?"visible":"hidden";if(k&&C(AA)){C(AA).style.visibility=z
}else{V("#"+AA,"visibility:"+z)}}function m(z){var AA=/[\\\"<>\.;]/;var y=AA.exec(z)!=null;return y&&typeof encodeURIComponent!=d?encodeURIComponent(z):z}var D=function(){if(n.ie&&n.win){window.attachEvent("onunload",function(){var AD=j.length;for(var AC=0;AC<AD;AC++){j[AC][0].detachEvent(j[AC][1],j[AC][2])}var AA=o.length;for(var AB=0;AB<AA;AB++){Y(o[AB])}for(var z in n){n[z]=null}n=null;for(var y in swfobject){swfobject[y]=null}swfobject=null;window.detachEvent("onunload",arguments.callee)})}}();return{registerObject:function(AC,y,AB,AA){if(n.w3&&AC&&y){var z={};z.id=AC;z.swfVersion=y;z.expressInstall=AB;z.callbackFn=AA;O[O.length]=z;W(AC,false)}else{if(AA){AA({success:false,id:AC})}}},getObjectById:function(y){if(n.w3){return Z(y)}},embedSWF:function(AC,AI,AF,AH,z,AB,AA,AE,AG,AD){var y={success:false,id:AI};if(n.w3&&!(n.wk&&n.wk<312)&&AC&&AI&&AF&&AH&&z){W(AI,false);l(function(){AF+="";AH+="";var AK={};if(AG&&typeof AG===R){for(var AM in AG){AK[AM]=AG[AM]}}AK.data=AC;AK.width=AF;AK.height=AH;var AN={};if(AE&&typeof AE===R){for(var AL in AE){AN[AL]=AE[AL]
}}if(AA&&typeof AA===R){for(var AJ in AA){if(typeof AN.flashvars!=d){AN.flashvars+="&"+AJ+"="+AA[AJ]}else{AN.flashvars=AJ+"="+AA[AJ]}}}if(g(z)){var AO=U(AK,AN,AI);if(AK.id==AI){W(AI,true)}y.success=true;y.ref=AO}else{if(AB&&a()){AK.data=AB;q(AK,AN,AI,AD);return }else{W(AI,true)}}if(AD){AD(y)}})}else{if(AD){AD(y)}}},switchOffAutoHideShow:function(){M=false},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:g,createSWF:function(AA,z,y){if(n.w3){return U(AA,z,y)}else{return undefined}},showExpressInstall:function(AA,AB,y,z){if(n.w3&&a()){q(AA,AB,y,z)}},removeSWF:function(y){if(n.w3){Y(y)}},createCSS:function(AB,AA,z,y){if(n.w3){V(AB,AA,z,y)}},addDomLoadEvent:l,addLoadEvent:S,getQueryParamValue:function(AB){var AA=J.location.search||J.location.hash;if(AA){if(/\?/.test(AA)){AA=AA.split("?")[1]}if(AB==null){return m(AA)}var z=AA.split("&");for(var y=0;y<z.length;y++){if(z[y].substring(0,z[y].indexOf("="))==AB){return m(z[y].substring((z[y].indexOf("=")+1)))
}}}return""},expressInstallCallback:function(){if(A){var y=C(s);if(y&&L){y.parentNode.replaceChild(L,y);if(r){W(r,true);if(n.ie&&n.win){L.style.display="block"}}if(e){e(b)}}A=false}}}}();Ext.FlashComponent=Ext.extend(Ext.BoxComponent,{flashVersion:"9.0.115",backgroundColor:"#ffffff",wmode:"opaque",flashVars:undefined,flashParams:undefined,url:undefined,swfId:undefined,swfWidth:"100%",swfHeight:"100%",expressInstall:false,initComponent:function(){Ext.FlashComponent.superclass.initComponent.call(this);this.addEvents("initialize")},onRender:function(){Ext.FlashComponent.superclass.onRender.apply(this,arguments);var B=Ext.apply({allowScriptAccess:"always",bgcolor:this.backgroundColor,wmode:this.wmode},this.flashParams),A=Ext.apply({allowedDomain:document.location.hostname,YUISwfId:this.getId(),YUIBridgeCallback:"Ext.FlashEventProxy.onEvent"},this.flashVars);new swfobject.embedSWF(this.url,this.id,this.swfWidth,this.swfHeight,this.flashVersion,this.expressInstall?Ext.FlashComponent.EXPRESS_INSTALL_URL:undefined,A,B);
this.swf=Ext.getDom(this.id);this.el=Ext.get(this.swf)},getSwfId:function(){return this.swfId||(this.swfId="extswf"+(++Ext.Component.AUTO_ID))},getId:function(){return this.id||(this.id="extflashcmp"+(++Ext.Component.AUTO_ID))},onFlashEvent:function(A){switch(A.type){case"swfReady":this.initSwf();return ;case"log":return }A.component=this;this.fireEvent(A.type.toLowerCase().replace(/event$/,""),A)},initSwf:function(){this.onSwfReady(!!this.isInitialized);this.isInitialized=true;this.fireEvent("initialize",this)},beforeDestroy:function(){if(this.rendered){swfobject.removeSWF(this.swf.id)}Ext.FlashComponent.superclass.beforeDestroy.call(this)},onSwfReady:Ext.emptyFn});Ext.FlashComponent.EXPRESS_INSTALL_URL="http://swfobject.googlecode.com/svn/trunk/swfobject/expressInstall.swf";Ext.reg("flash",Ext.FlashComponent);Ext.FlashEventProxy={onEvent:function(C,B){var A=Ext.getCmp(C);if(A){A.onFlashEvent(B)}else{arguments.callee.defer(10,this,[C,B])}}};Ext.chart.Chart=Ext.extend(Ext.FlashComponent,{refreshBuffer:100,chartStyle:{padding:10,animationEnabled:true,font:{name:"Tahoma",color:4473924,size:11},dataTip:{padding:5,border:{color:10075112,size:1},background:{color:14346230,alpha:0.9},font:{name:"Tahoma",color:1393291,size:10,bold:true}}},extraStyle:null,seriesStyles:null,disableCaching:Ext.isIE||Ext.isOpera,disableCacheParam:"_dc",initComponent:function(){Ext.chart.Chart.superclass.initComponent.call(this);
if(!this.url){this.url=Ext.chart.Chart.CHART_URL}if(this.disableCaching){this.url=Ext.urlAppend(this.url,String.format("{0}={1}",this.disableCacheParam,new Date().getTime()))}this.addEvents("itemmouseover","itemmouseout","itemclick","itemdoubleclick","itemdragstart","itemdrag","itemdragend","beforerefresh","refresh");this.store=Ext.StoreMgr.lookup(this.store)},setStyle:function(A,B){this.swf.setStyle(A,Ext.encode(B))},setStyles:function(A){this.swf.setStyles(Ext.encode(A))},setSeriesStyles:function(B){this.seriesStyles=B;var A=[];Ext.each(B,function(C){A.push(Ext.encode(C))});this.swf.setSeriesStyles(A)},setCategoryNames:function(A){this.swf.setCategoryNames(A)},setLegendRenderer:function(C,B){var A=this;B=B||A;A.removeFnProxy(A.legendFnName);A.legendFnName=A.createFnProxy(function(D){return C.call(B,D)});A.swf.setLegendLabelFunction(A.legendFnName)},setTipRenderer:function(C,B){var A=this;B=B||A;A.removeFnProxy(A.tipFnName);A.tipFnName=A.createFnProxy(function(G,E,F){var D=A.store.getAt(E);return C.call(B,A,D,E,F)
});A.swf.setDataTipFunction(A.tipFnName)},setSeries:function(A){this.series=A;this.refresh()},bindStore:function(A,B){if(!B&&this.store){if(A!==this.store&&this.store.autoDestroy){this.store.destroy()}else{this.store.un("datachanged",this.refresh,this);this.store.un("add",this.delayRefresh,this);this.store.un("remove",this.delayRefresh,this);this.store.un("update",this.delayRefresh,this);this.store.un("clear",this.refresh,this)}}if(A){A=Ext.StoreMgr.lookup(A);A.on({scope:this,datachanged:this.refresh,add:this.delayRefresh,remove:this.delayRefresh,update:this.delayRefresh,clear:this.refresh})}this.store=A;if(A&&!B){this.refresh()}},onSwfReady:function(B){Ext.chart.Chart.superclass.onSwfReady.call(this,B);var A;this.swf.setType(this.type);if(this.chartStyle){this.setStyles(Ext.apply({},this.extraStyle,this.chartStyle))}if(this.categoryNames){this.setCategoryNames(this.categoryNames)}if(this.tipRenderer){A=this.getFunctionRef(this.tipRenderer);this.setTipRenderer(A.fn,A.scope)}if(this.legendRenderer){A=this.getFunctionRef(this.legendRenderer);
this.setLegendRenderer(A.fn,A.scope)}if(!B){this.bindStore(this.store,true)}this.refresh.defer(10,this)},delayRefresh:function(){if(!this.refreshTask){this.refreshTask=new Ext.util.DelayedTask(this.refresh,this)}this.refreshTask.delay(this.refreshBuffer)},refresh:function(){if(this.fireEvent("beforerefresh",this)!==false){var J=false;var H=[],C=this.store.data.items;for(var F=0,I=C.length;F<I;F++){H[F]=C[F].data}var E=[];var D=0;var K=null;var G=0;if(this.series){D=this.series.length;for(G=0;G<D;G++){K=this.series[G];var B={};for(var A in K){if(A=="style"&&K.style!==null){B.style=Ext.encode(K.style);J=true}else{B[A]=K[A]}}E.push(B)}}if(D>0){for(G=0;G<D;G++){K=E[G];if(!K.type){K.type=this.type}K.dataProvider=H}}else{E.push({type:this.type,dataProvider:H})}this.swf.setDataProvider(E);if(this.seriesStyles){this.setSeriesStyles(this.seriesStyles)}this.fireEvent("refresh",this)}},createFnProxy:function(A){var B="extFnProxy"+(++Ext.chart.Chart.PROXY_FN_ID);Ext.chart.Chart.proxyFunction[B]=A;return"Ext.chart.Chart.proxyFunction."+B
},removeFnProxy:function(A){if(!Ext.isEmpty(A)){A=A.replace("Ext.chart.Chart.proxyFunction.","");delete Ext.chart.Chart.proxyFunction[A]}},getFunctionRef:function(A){if(Ext.isFunction(A)){return{fn:A,scope:this}}else{return{fn:A.fn,scope:A.scope||this}}},onDestroy:function(){if(this.refreshTask&&this.refreshTask.cancel){this.refreshTask.cancel()}Ext.chart.Chart.superclass.onDestroy.call(this);this.bindStore(null);this.removeFnProxy(this.tipFnName);this.removeFnProxy(this.legendFnName)}});Ext.reg("chart",Ext.chart.Chart);Ext.chart.Chart.PROXY_FN_ID=0;Ext.chart.Chart.proxyFunction={};Ext.chart.Chart.CHART_URL="http://yui.yahooapis.com/2.8.2/build/charts/assets/charts.swf";Ext.chart.PieChart=Ext.extend(Ext.chart.Chart,{type:"pie",onSwfReady:function(A){Ext.chart.PieChart.superclass.onSwfReady.call(this,A);this.setDataField(this.dataField);this.setCategoryField(this.categoryField)},setDataField:function(A){this.dataField=A;this.swf.setDataField(A)},setCategoryField:function(A){this.categoryField=A;this.swf.setCategoryField(A)
}});Ext.reg("piechart",Ext.chart.PieChart);Ext.chart.CartesianChart=Ext.extend(Ext.chart.Chart,{onSwfReady:function(A){Ext.chart.CartesianChart.superclass.onSwfReady.call(this,A);this.labelFn=[];if(this.xField){this.setXField(this.xField)}if(this.yField){this.setYField(this.yField)}if(this.xAxis){this.setXAxis(this.xAxis)}if(this.xAxes){this.setXAxes(this.xAxes)}if(this.yAxis){this.setYAxis(this.yAxis)}if(this.yAxes){this.setYAxes(this.yAxes)}if(Ext.isDefined(this.constrainViewport)){this.swf.setConstrainViewport(this.constrainViewport)}},setXField:function(A){this.xField=A;this.swf.setHorizontalField(A)},setYField:function(A){this.yField=A;this.swf.setVerticalField(A)},setXAxis:function(A){this.xAxis=this.createAxis("xAxis",A);this.swf.setHorizontalAxis(this.xAxis)},setXAxes:function(C){var B;for(var A=0;A<C.length;A++){B=this.createAxis("xAxis"+A,C[A]);this.swf.setHorizontalAxis(B)}},setYAxis:function(A){this.yAxis=this.createAxis("yAxis",A);this.swf.setVerticalAxis(this.yAxis)},setYAxes:function(C){var B;for(var A=0;
A<C.length;A++){B=this.createAxis("yAxis"+A,C[A]);this.swf.setVerticalAxis(B)}},createAxis:function(B,D){var E=Ext.apply({},D),C,A;if(this[B]){A=this[B].labelFunction;this.removeFnProxy(A);this.labelFn.remove(A)}if(E.labelRenderer){C=this.getFunctionRef(E.labelRenderer);E.labelFunction=this.createFnProxy(function(F){return C.fn.call(C.scope,F)});delete E.labelRenderer;this.labelFn.push(E.labelFunction)}if(B.indexOf("xAxis")>-1&&E.position=="left"){E.position="bottom"}return E},onDestroy:function(){Ext.chart.CartesianChart.superclass.onDestroy.call(this);Ext.each(this.labelFn,function(A){this.removeFnProxy(A)},this)}});Ext.reg("cartesianchart",Ext.chart.CartesianChart);Ext.chart.LineChart=Ext.extend(Ext.chart.CartesianChart,{type:"line"});Ext.reg("linechart",Ext.chart.LineChart);Ext.chart.ColumnChart=Ext.extend(Ext.chart.CartesianChart,{type:"column"});Ext.reg("columnchart",Ext.chart.ColumnChart);Ext.chart.StackedColumnChart=Ext.extend(Ext.chart.CartesianChart,{type:"stackcolumn"});Ext.reg("stackedcolumnchart",Ext.chart.StackedColumnChart);
Ext.chart.BarChart=Ext.extend(Ext.chart.CartesianChart,{type:"bar"});Ext.reg("barchart",Ext.chart.BarChart);Ext.chart.StackedBarChart=Ext.extend(Ext.chart.CartesianChart,{type:"stackbar"});Ext.reg("stackedbarchart",Ext.chart.StackedBarChart);Ext.chart.Axis=function(A){Ext.apply(this,A)};Ext.chart.Axis.prototype={type:null,orientation:"horizontal",reverse:false,labelFunction:null,hideOverlappingLabels:true,labelSpacing:2};Ext.chart.NumericAxis=Ext.extend(Ext.chart.Axis,{type:"numeric",minimum:NaN,maximum:NaN,majorUnit:NaN,minorUnit:NaN,snapToUnits:true,alwaysShowZero:true,scale:"linear",roundMajorUnit:true,calculateByLabelSize:true,position:"left",adjustMaximumByMajorUnit:true,adjustMinimumByMajorUnit:true});Ext.chart.TimeAxis=Ext.extend(Ext.chart.Axis,{type:"time",minimum:null,maximum:null,majorUnit:NaN,majorTimeUnit:null,minorUnit:NaN,minorTimeUnit:null,snapToUnits:true,stackingEnabled:false,calculateByLabelSize:true});Ext.chart.CategoryAxis=Ext.extend(Ext.chart.Axis,{type:"category",categoryNames:null,calculateCategoryCount:false});
Ext.chart.Series=function(A){Ext.apply(this,A)};Ext.chart.Series.prototype={type:null,displayName:null};Ext.chart.CartesianSeries=Ext.extend(Ext.chart.Series,{xField:null,yField:null,showInLegend:true,axis:"primary"});Ext.chart.ColumnSeries=Ext.extend(Ext.chart.CartesianSeries,{type:"column"});Ext.chart.LineSeries=Ext.extend(Ext.chart.CartesianSeries,{type:"line"});Ext.chart.BarSeries=Ext.extend(Ext.chart.CartesianSeries,{type:"bar"});Ext.chart.PieSeries=Ext.extend(Ext.chart.Series,{type:"pie",dataField:null,categoryField:null});Ext.menu.Menu=Ext.extend(Ext.Container,{minWidth:120,shadow:"sides",subMenuAlign:"tl-tr?",defaultAlign:"tl-bl?",allowOtherMenus:false,ignoreParentClicks:false,enableScrolling:true,maxHeight:null,scrollIncrement:24,showSeparator:true,defaultOffsets:[0,0],plain:false,floating:true,zIndex:15000,hidden:true,layout:"menu",hideMode:"offsets",scrollerHeight:8,autoLayout:true,defaultType:"menuitem",bufferResize:false,initComponent:function(){if(Ext.isArray(this.initialConfig)){Ext.apply(this,{items:this.initialConfig})
}this.addEvents("click","mouseover","mouseout","itemclick");Ext.menu.MenuMgr.register(this);if(this.floating){Ext.EventManager.onWindowResize(this.hide,this)}else{if(this.initialConfig.hidden!==false){this.hidden=false}this.internalDefaults={hideOnClick:false}}Ext.menu.Menu.superclass.initComponent.call(this);if(this.autoLayout){var A=this.doLayout.createDelegate(this,[]);this.on({add:A,remove:A})}},getLayoutTarget:function(){return this.ul},onRender:function(B,A){if(!B){B=Ext.getBody()}var C={id:this.getId(),cls:"x-menu "+((this.floating)?"x-menu-floating x-layer ":"")+(this.cls||"")+(this.plain?" x-menu-plain":"")+(this.showSeparator?"":" x-menu-nosep"),style:this.style,cn:[{tag:"a",cls:"x-menu-focus",href:"#",onclick:"return false;",tabIndex:"-1"},{tag:"ul",cls:"x-menu-list"}]};if(this.floating){this.el=new Ext.Layer({shadow:this.shadow,dh:C,constrain:false,parentEl:B,zindex:this.zIndex})}else{this.el=B.createChild(C)}Ext.menu.Menu.superclass.onRender.call(this,B,A);if(!this.keyNav){this.keyNav=new Ext.menu.MenuNav(this)
}this.focusEl=this.el.child("a.x-menu-focus");this.ul=this.el.child("ul.x-menu-list");this.mon(this.ul,{scope:this,click:this.onClick,mouseover:this.onMouseOver,mouseout:this.onMouseOut});if(this.enableScrolling){this.mon(this.el,{scope:this,delegate:".x-menu-scroller",click:this.onScroll,mouseover:this.deactivateActive})}},findTargetItem:function(B){var A=B.getTarget(".x-menu-list-item",this.ul,true);if(A&&A.menuItemId){return this.items.get(A.menuItemId)}},onClick:function(B){var A=this.findTargetItem(B);if(A){if(A.isFormField){this.setActiveItem(A)}else{if(A instanceof Ext.menu.BaseItem){if(A.menu&&this.ignoreParentClicks){A.expandMenu();B.preventDefault()}else{if(A.onClick){A.onClick(B);this.fireEvent("click",this,A,B)}}}}}},setActiveItem:function(A,B){if(A!=this.activeItem){this.deactivateActive();if((this.activeItem=A).isFormField){A.focus()}else{A.activate(B)}}else{if(B){A.expandMenu()}}},deactivateActive:function(){var A=this.activeItem;if(A){if(A.isFormField){if(A.collapse){A.collapse()}}else{A.deactivate()
}delete this.activeItem}},tryActivate:function(F,E){var B=this.items;for(var C=F,A=B.length;C>=0&&C<A;C+=E){var D=B.get(C);if(D.isVisible()&&!D.disabled&&(D.canActivate||D.isFormField)){this.setActiveItem(D,false);return D}}return false},onMouseOver:function(B){var A=this.findTargetItem(B);if(A){if(A.canActivate&&!A.disabled){this.setActiveItem(A,true)}}this.over=true;this.fireEvent("mouseover",this,B,A)},onMouseOut:function(B){var A=this.findTargetItem(B);if(A){if(A==this.activeItem&&A.shouldDeactivate&&A.shouldDeactivate(B)){this.activeItem.deactivate();delete this.activeItem}}this.over=false;this.fireEvent("mouseout",this,B,A)},onScroll:function(D,B){if(D){D.stopEvent()}var A=this.ul.dom,C=Ext.fly(B).is(".x-menu-scroller-top");A.scrollTop+=this.scrollIncrement*(C?-1:1);if(C?A.scrollTop<=0:A.scrollTop+this.activeMax>=A.scrollHeight){this.onScrollerOut(null,B)}},onScrollerIn:function(D,B){var A=this.ul.dom,C=Ext.fly(B).is(".x-menu-scroller-top");if(C?A.scrollTop>0:A.scrollTop+this.activeMax<A.scrollHeight){Ext.fly(B).addClass(["x-menu-item-active","x-menu-scroller-active"])
}},onScrollerOut:function(B,A){Ext.fly(A).removeClass(["x-menu-item-active","x-menu-scroller-active"])},show:function(B,C,A){if(this.floating){this.parentMenu=A;if(!this.el){this.render();this.doLayout(false,true)}this.showAt(this.el.getAlignToXY(B,C||this.defaultAlign,this.defaultOffsets),A)}else{Ext.menu.Menu.superclass.show.call(this)}},showAt:function(B,A){if(this.fireEvent("beforeshow",this)!==false){this.parentMenu=A;if(!this.el){this.render()}if(this.enableScrolling){this.el.setXY(B);B[1]=this.constrainScroll(B[1]);B=[this.el.adjustForConstraints(B)[0],B[1]]}else{B=this.el.adjustForConstraints(B)}this.el.setXY(B);this.el.show();Ext.menu.Menu.superclass.onShow.call(this);if(Ext.isIE){this.fireEvent("autosize",this);if(!Ext.isIE8){this.el.repaint()}}this.hidden=false;this.focus();this.fireEvent("show",this)}},constrainScroll:function(H){var B,D=this.ul.setHeight("auto").getHeight(),A=H,G,E,F,C;if(this.floating){E=Ext.fly(this.el.dom.parentNode);F=E.getScroll().top;C=E.getViewSize().height;G=H-F;B=this.maxHeight?this.maxHeight:C-G;
if(D>C){B=C;A=H-G}else{if(B<D){A=H-(D-B);B=D}}}else{B=this.getHeight()}if(this.maxHeight){B=Math.min(this.maxHeight,B)}if(D>B&&B>0){this.activeMax=B-this.scrollerHeight*2-this.el.getFrameWidth("tb")-Ext.num(this.el.shadowOffset,0);this.ul.setHeight(this.activeMax);this.createScrollers();this.el.select(".x-menu-scroller").setDisplayed("")}else{this.ul.setHeight(D);this.el.select(".x-menu-scroller").setDisplayed("none")}this.ul.dom.scrollTop=0;return A},createScrollers:function(){if(!this.scroller){this.scroller={pos:0,top:this.el.insertFirst({tag:"div",cls:"x-menu-scroller x-menu-scroller-top",html:"&#160;"}),bottom:this.el.createChild({tag:"div",cls:"x-menu-scroller x-menu-scroller-bottom",html:"&#160;"})};this.scroller.top.hover(this.onScrollerIn,this.onScrollerOut,this);this.scroller.topRepeater=new Ext.util.ClickRepeater(this.scroller.top,{listeners:{click:this.onScroll.createDelegate(this,[null,this.scroller.top],false)}});this.scroller.bottom.hover(this.onScrollerIn,this.onScrollerOut,this);this.scroller.bottomRepeater=new Ext.util.ClickRepeater(this.scroller.bottom,{listeners:{click:this.onScroll.createDelegate(this,[null,this.scroller.bottom],false)}})
}},onLayout:function(){if(this.isVisible()){if(this.enableScrolling){this.constrainScroll(this.el.getTop())}if(this.floating){this.el.sync()}}},focus:function(){if(!this.hidden){this.doFocus.defer(50,this)}},doFocus:function(){if(!this.hidden){this.focusEl.focus()}},hide:function(A){if(!this.isDestroyed){this.deepHide=A;Ext.menu.Menu.superclass.hide.call(this);delete this.deepHide}},onHide:function(){Ext.menu.Menu.superclass.onHide.call(this);this.deactivateActive();if(this.el&&this.floating){this.el.hide()}var A=this.parentMenu;if(this.deepHide===true&&A){if(A.floating){A.hide(true)}else{A.deactivateActive()}}},lookupComponent:function(A){if(Ext.isString(A)){A=(A=="separator"||A=="-")?new Ext.menu.Separator():new Ext.menu.TextItem(A);this.applyDefaults(A)}else{if(Ext.isObject(A)){A=this.getMenuItem(A)}else{if(A.tagName||A.el){A=new Ext.BoxComponent({el:A})}}}return A},applyDefaults:function(B){if(!Ext.isString(B)){B=Ext.menu.Menu.superclass.applyDefaults.call(this,B);var A=this.internalDefaults;if(A){if(B.events){Ext.applyIf(B.initialConfig,A);
Ext.apply(B,A)}else{Ext.applyIf(B,A)}}}return B},getMenuItem:function(A){A.ownerCt=this;if(!A.isXType){if(!A.xtype&&Ext.isBoolean(A.checked)){return new Ext.menu.CheckItem(A)}return Ext.create(A,this.defaultType)}return A},addSeparator:function(){return this.add(new Ext.menu.Separator())},addElement:function(A){return this.add(new Ext.menu.BaseItem({el:A}))},addItem:function(A){return this.add(A)},addMenuItem:function(A){return this.add(this.getMenuItem(A))},addText:function(A){return this.add(new Ext.menu.TextItem(A))},onDestroy:function(){Ext.EventManager.removeResizeListener(this.hide,this);var A=this.parentMenu;if(A&&A.activeChild==this){delete A.activeChild}delete this.parentMenu;Ext.menu.Menu.superclass.onDestroy.call(this);Ext.menu.MenuMgr.unregister(this);if(this.keyNav){this.keyNav.disable()}var B=this.scroller;if(B){Ext.destroy(B.topRepeater,B.bottomRepeater,B.top,B.bottom)}Ext.destroy(this.el,this.focusEl,this.ul)}});Ext.reg("menu",Ext.menu.Menu);Ext.menu.MenuNav=Ext.extend(Ext.KeyNav,function(){function A(D,C){if(!C.tryActivate(C.items.indexOf(C.activeItem)-1,-1)){C.tryActivate(C.items.length-1,-1)
}}function B(D,C){if(!C.tryActivate(C.items.indexOf(C.activeItem)+1,1)){C.tryActivate(0,1)}}return{constructor:function(C){Ext.menu.MenuNav.superclass.constructor.call(this,C.el);this.scope=this.menu=C},doRelay:function(E,D){var C=E.getKey();if(this.menu.activeItem&&this.menu.activeItem.isFormField&&C!=E.TAB){return false}if(!this.menu.activeItem&&E.isNavKeyPress()&&C!=E.SPACE&&C!=E.RETURN){this.menu.tryActivate(0,1);return false}return D.call(this.scope||this,E,this.menu)},tab:function(D,C){D.stopEvent();if(D.shiftKey){A(D,C)}else{B(D,C)}},up:A,down:B,right:function(D,C){if(C.activeItem){C.activeItem.expandMenu(true)}},left:function(D,C){C.hide();if(C.parentMenu&&C.parentMenu.activeItem){C.parentMenu.activeItem.activate()}},enter:function(D,C){if(C.activeItem){D.stopPropagation();C.activeItem.onClick(D);C.fireEvent("click",this,C.activeItem);return true}}}}());Ext.menu.MenuMgr=function(){var G,E,B,D={},A=false,K=new Date();function M(){G={};E=new Ext.util.MixedCollection();B=Ext.getDoc().addKeyListener(27,I);
B.disable()}function I(){if(E&&E.length>0){var N=E.clone();N.each(function(O){O.hide()});return true}return false}function F(N){E.remove(N);if(E.length<1){B.disable();Ext.getDoc().un("mousedown",L);A=false}}function J(N){var O=E.last();K=new Date();E.add(N);if(!A){B.enable();Ext.getDoc().on("mousedown",L);A=true}if(N.parentMenu){N.getEl().setZIndex(parseInt(N.parentMenu.getEl().getStyle("z-index"),10)+3);N.parentMenu.activeChild=N}else{if(O&&!O.isDestroyed&&O.isVisible()){N.getEl().setZIndex(parseInt(O.getEl().getStyle("z-index"),10)+3)}}}function C(N){if(N.activeChild){N.activeChild.hide()}if(N.autoHideTimer){clearTimeout(N.autoHideTimer);delete N.autoHideTimer}}function H(N){var O=N.parentMenu;if(!O&&!N.allowOtherMenus){I()}else{if(O&&O.activeChild){O.activeChild.hide()}}}function L(N){if(K.getElapsed()>50&&E.length>0&&!N.getTarget(".x-menu")){I()}}return{hideAll:function(){return I()},register:function(N){if(!G){M()}G[N.id]=N;N.on({beforehide:C,hide:F,beforeshow:H,show:J})},get:function(N){if(typeof N=="string"){if(!G){return null
}return G[N]}else{if(N.events){return N}else{if(typeof N.length=="number"){return new Ext.menu.Menu({items:N})}else{return Ext.create(N,"menu")}}}},unregister:function(N){delete G[N.id];N.un("beforehide",C);N.un("hide",F);N.un("beforeshow",H);N.un("show",J)},registerCheckable:function(N){var O=N.group;if(O){if(!D[O]){D[O]=[]}D[O].push(N)}},unregisterCheckable:function(N){var O=N.group;if(O){D[O].remove(N)}},onCheckChange:function(P,Q){if(P.group&&Q){var S=D[P.group],O=0,N=S.length,R;for(;O<N;O++){R=S[O];if(R!=P){R.setChecked(false)}}}},getCheckedItem:function(P){var Q=D[P];if(Q){for(var O=0,N=Q.length;O<N;O++){if(Q[O].checked){return Q[O]}}}return null},setCheckedItem:function(P,R){var Q=D[P];if(Q){for(var O=0,N=Q.length;O<N;O++){if(Q[O].id==R){Q[O].setChecked(true)}}}return null}}}();Ext.menu.BaseItem=Ext.extend(Ext.Component,{canActivate:false,activeClass:"x-menu-item-active",hideOnClick:true,clickHideDelay:1,ctype:"Ext.menu.BaseItem",actionMode:"container",initComponent:function(){Ext.menu.BaseItem.superclass.initComponent.call(this);
this.addEvents("click","activate","deactivate");if(this.handler){this.on("click",this.handler,this.scope)}},onRender:function(B,A){Ext.menu.BaseItem.superclass.onRender.apply(this,arguments);if(this.ownerCt&&this.ownerCt instanceof Ext.menu.Menu){this.parentMenu=this.ownerCt}else{this.container.addClass("x-menu-list-item");this.mon(this.el,{scope:this,click:this.onClick,mouseenter:this.activate,mouseleave:this.deactivate})}},setHandler:function(B,A){if(this.handler){this.un("click",this.handler,this.scope)}this.on("click",this.handler=B,this.scope=A)},onClick:function(A){if(!this.disabled&&this.fireEvent("click",this,A)!==false&&(this.parentMenu&&this.parentMenu.fireEvent("itemclick",this,A)!==false)){this.handleClick(A)}else{A.stopEvent()}},activate:function(){if(this.disabled){return false}var A=this.container;A.addClass(this.activeClass);this.region=A.getRegion().adjust(2,2,-2,-2);this.fireEvent("activate",this);return true},deactivate:function(){this.container.removeClass(this.activeClass);this.fireEvent("deactivate",this)
},shouldDeactivate:function(A){return !this.region||!this.region.contains(A.getPoint())},handleClick:function(B){var A=this.parentMenu;if(this.hideOnClick){if(A.floating){this.clickHideDelayTimer=A.hide.defer(this.clickHideDelay,A,[true])}else{A.deactivateActive()}}},beforeDestroy:function(){clearTimeout(this.clickHideDelayTimer);Ext.menu.BaseItem.superclass.beforeDestroy.call(this)},expandMenu:Ext.emptyFn,hideMenu:Ext.emptyFn});Ext.reg("menubaseitem",Ext.menu.BaseItem);Ext.menu.TextItem=Ext.extend(Ext.menu.BaseItem,{hideOnClick:false,itemCls:"x-menu-text",constructor:function(A){if(typeof A=="string"){A={text:A}}Ext.menu.TextItem.superclass.constructor.call(this,A)},onRender:function(){var A=document.createElement("span");A.className=this.itemCls;A.innerHTML=this.text;this.el=A;Ext.menu.TextItem.superclass.onRender.apply(this,arguments)}});Ext.reg("menutextitem",Ext.menu.TextItem);Ext.menu.Separator=Ext.extend(Ext.menu.BaseItem,{itemCls:"x-menu-sep",hideOnClick:false,activeClass:"",onRender:function(A){var B=document.createElement("span");
B.className=this.itemCls;B.innerHTML="&#160;";this.el=B;A.addClass("x-menu-sep-li");Ext.menu.Separator.superclass.onRender.apply(this,arguments)}});Ext.reg("menuseparator",Ext.menu.Separator);Ext.menu.Item=Ext.extend(Ext.menu.BaseItem,{itemCls:"x-menu-item",canActivate:true,showDelay:200,altText:"",hideDelay:200,ctype:"Ext.menu.Item",initComponent:function(){Ext.menu.Item.superclass.initComponent.call(this);if(this.menu){if(Ext.isArray(this.menu)){this.menu={items:this.menu}}if(Ext.isObject(this.menu)){this.menu.ownerCt=this}this.menu=Ext.menu.MenuMgr.get(this.menu);this.menu.ownerCt=undefined}},onRender:function(C,A){if(!this.itemTpl){this.itemTpl=Ext.menu.Item.prototype.itemTpl=new Ext.XTemplate('<a id="{id}" class="{cls}" hidefocus="true" unselectable="on" href="{href}"','<tpl if="hrefTarget">',' target="{hrefTarget}"',"</tpl>",">",'<img alt="{altText}" src="{icon}" class="x-menu-item-icon {iconCls}"/>','<span class="x-menu-item-text">{text}</span>',"</a>")}var B=this.getTemplateArgs();this.el=A?this.itemTpl.insertBefore(A,B,true):this.itemTpl.append(C,B,true);
this.iconEl=this.el.child("img.x-menu-item-icon");this.textEl=this.el.child(".x-menu-item-text");if(!this.href){this.mon(this.el,"click",Ext.emptyFn,null,{preventDefault:true})}Ext.menu.Item.superclass.onRender.call(this,C,A)},getTemplateArgs:function(){return{id:this.id,cls:this.itemCls+(this.menu?" x-menu-item-arrow":"")+(this.cls?" "+this.cls:""),href:this.href||"#",hrefTarget:this.hrefTarget,icon:this.icon||Ext.BLANK_IMAGE_URL,iconCls:this.iconCls||"",text:this.itemText||this.text||"&#160;",altText:this.altText||""}},setText:function(A){this.text=A||"&#160;";if(this.rendered){this.textEl.update(this.text);this.parentMenu.layout.doAutoSize()}},setIconClass:function(A){var B=this.iconCls;this.iconCls=A;if(this.rendered){this.iconEl.replaceClass(B,this.iconCls)}},beforeDestroy:function(){clearTimeout(this.showTimer);clearTimeout(this.hideTimer);if(this.menu){delete this.menu.ownerCt;this.menu.destroy()}Ext.menu.Item.superclass.beforeDestroy.call(this)},handleClick:function(A){if(!this.href){A.stopEvent()}Ext.menu.Item.superclass.handleClick.apply(this,arguments)
},activate:function(A){if(Ext.menu.Item.superclass.activate.apply(this,arguments)){this.focus();if(A){this.expandMenu()}}return true},shouldDeactivate:function(A){if(Ext.menu.Item.superclass.shouldDeactivate.call(this,A)){if(this.menu&&this.menu.isVisible()){return !this.menu.getEl().getRegion().contains(A.getPoint())}return true}return false},deactivate:function(){Ext.menu.Item.superclass.deactivate.apply(this,arguments);this.hideMenu()},expandMenu:function(A){if(!this.disabled&&this.menu){clearTimeout(this.hideTimer);delete this.hideTimer;if(!this.menu.isVisible()&&!this.showTimer){this.showTimer=this.deferExpand.defer(this.showDelay,this,[A])}else{if(this.menu.isVisible()&&A){this.menu.tryActivate(0,1)}}}},deferExpand:function(A){delete this.showTimer;this.menu.show(this.container,this.parentMenu.subMenuAlign||"tl-tr?",this.parentMenu);if(A){this.menu.tryActivate(0,1)}},hideMenu:function(){clearTimeout(this.showTimer);delete this.showTimer;if(!this.hideTimer&&this.menu&&this.menu.isVisible()){this.hideTimer=this.deferHide.defer(this.hideDelay,this)
}},deferHide:function(){delete this.hideTimer;if(this.menu.over){this.parentMenu.setActiveItem(this,false)}else{this.menu.hide()}}});Ext.reg("menuitem",Ext.menu.Item);Ext.menu.CheckItem=Ext.extend(Ext.menu.Item,{itemCls:"x-menu-item x-menu-check-item",groupClass:"x-menu-group-item",checked:false,ctype:"Ext.menu.CheckItem",initComponent:function(){Ext.menu.CheckItem.superclass.initComponent.call(this);this.addEvents("beforecheckchange","checkchange");if(this.checkHandler){this.on("checkchange",this.checkHandler,this.scope)}Ext.menu.MenuMgr.registerCheckable(this)},onRender:function(A){Ext.menu.CheckItem.superclass.onRender.apply(this,arguments);if(this.group){this.el.addClass(this.groupClass)}if(this.checked){this.checked=false;this.setChecked(true,true)}},destroy:function(){Ext.menu.MenuMgr.unregisterCheckable(this);Ext.menu.CheckItem.superclass.destroy.apply(this,arguments)},setChecked:function(B,A){var C=A===true;if(this.checked!=B&&(C||this.fireEvent("beforecheckchange",this,B)!==false)){Ext.menu.MenuMgr.onCheckChange(this,B);
if(this.container){this.container[B?"addClass":"removeClass"]("x-menu-item-checked")}this.checked=B;if(!C){this.fireEvent("checkchange",this,B)}}},handleClick:function(A){if(!this.disabled&&!(this.checked&&this.group)){this.setChecked(!this.checked)}Ext.menu.CheckItem.superclass.handleClick.apply(this,arguments)}});Ext.reg("menucheckitem",Ext.menu.CheckItem);Ext.menu.DateMenu=Ext.extend(Ext.menu.Menu,{enableScrolling:false,hideOnClick:true,pickerId:null,cls:"x-date-menu",initComponent:function(){this.on("beforeshow",this.onBeforeShow,this);if(this.strict=(Ext.isIE7&&Ext.isStrict)){this.on("show",this.onShow,this,{single:true,delay:20})}Ext.apply(this,{plain:true,showSeparator:false,items:this.picker=new Ext.DatePicker(Ext.applyIf({internalRender:this.strict||!Ext.isIE,ctCls:"x-menu-date-item",id:this.pickerId},this.initialConfig))});this.picker.purgeListeners();Ext.menu.DateMenu.superclass.initComponent.call(this);this.relayEvents(this.picker,["select"]);this.on("show",this.picker.focus,this.picker);this.on("select",this.menuHide,this);
if(this.handler){this.on("select",this.handler,this.scope||this)}},menuHide:function(){if(this.hideOnClick){this.hide(true)}},onBeforeShow:function(){if(this.picker){this.picker.hideMonthPicker(true)}},onShow:function(){var A=this.picker.getEl();A.setWidth(A.getWidth())}});Ext.reg("datemenu",Ext.menu.DateMenu);Ext.menu.ColorMenu=Ext.extend(Ext.menu.Menu,{enableScrolling:false,hideOnClick:true,cls:"x-color-menu",paletteId:null,initComponent:function(){Ext.apply(this,{plain:true,showSeparator:false,items:this.palette=new Ext.ColorPalette(Ext.applyIf({id:this.paletteId},this.initialConfig))});this.palette.purgeListeners();Ext.menu.ColorMenu.superclass.initComponent.call(this);this.relayEvents(this.palette,["select"]);this.on("select",this.menuHide,this);if(this.handler){this.on("select",this.handler,this.scope||this)}},menuHide:function(){if(this.hideOnClick){this.hide(true)}}});Ext.reg("colormenu",Ext.menu.ColorMenu);Ext.form.Field=Ext.extend(Ext.BoxComponent,{invalidClass:"x-form-invalid",invalidText:"The value in this field is invalid",focusClass:"x-form-focus",validationEvent:"keyup",validateOnBlur:true,validationDelay:250,defaultAutoCreate:{tag:"input",type:"text",size:"20",autocomplete:"off"},fieldClass:"x-form-field",msgTarget:"qtip",msgFx:"normal",readOnly:false,disabled:false,submitValue:true,isFormField:true,msgDisplay:"",hasFocus:false,initComponent:function(){Ext.form.Field.superclass.initComponent.call(this);
this.addEvents("focus","blur","specialkey","change","invalid","valid")},getName:function(){return this.rendered&&this.el.dom.name?this.el.dom.name:this.name||this.id||""},onRender:function(C,A){if(!this.el){var B=this.getAutoCreate();if(!B.name){B.name=this.name||this.id}if(this.inputType){B.type=this.inputType}this.autoEl=B}Ext.form.Field.superclass.onRender.call(this,C,A);if(this.submitValue===false){this.el.dom.removeAttribute("name")}var D=this.el.dom.type;if(D){if(D=="password"){D="text"}this.el.addClass("x-form-"+D)}if(this.readOnly){this.setReadOnly(true)}if(this.tabIndex!==undefined){this.el.dom.setAttribute("tabIndex",this.tabIndex)}this.el.addClass([this.fieldClass,this.cls])},getItemCt:function(){return this.itemCt},initValue:function(){if(this.value!==undefined){this.setValue(this.value)}else{if(!Ext.isEmpty(this.el.dom.value)&&this.el.dom.value!=this.emptyText){this.setValue(this.el.dom.value)}}this.originalValue=this.getValue()},isDirty:function(){if(this.disabled||!this.rendered){return false}return String(this.getValue())!==String(this.originalValue)
},setReadOnly:function(A){if(this.rendered){this.el.dom.readOnly=A}this.readOnly=A},afterRender:function(){Ext.form.Field.superclass.afterRender.call(this);this.initEvents();this.initValue()},fireKey:function(A){if(A.isSpecialKey()){this.fireEvent("specialkey",this,A)}},reset:function(){this.setValue(this.originalValue);this.clearInvalid()},initEvents:function(){this.mon(this.el,Ext.EventManager.getKeyEvent(),this.fireKey,this);this.mon(this.el,"focus",this.onFocus,this);this.mon(this.el,"blur",this.onBlur,this,this.inEditor?{buffer:10}:null)},preFocus:Ext.emptyFn,onFocus:function(){this.preFocus();if(this.focusClass){this.el.addClass(this.focusClass)}if(!this.hasFocus){this.hasFocus=true;this.startValue=this.getValue();this.fireEvent("focus",this)}},beforeBlur:Ext.emptyFn,onBlur:function(){this.beforeBlur();if(this.focusClass){this.el.removeClass(this.focusClass)}this.hasFocus=false;if(this.validationEvent!==false&&(this.validateOnBlur||this.validationEvent=="blur")){this.validate()}var A=this.getValue();if(String(A)!==String(this.startValue)){this.fireEvent("change",this,A,this.startValue)
}this.fireEvent("blur",this);this.postBlur()},postBlur:Ext.emptyFn,isValid:function(A){if(this.disabled){return true}var C=this.preventMark;this.preventMark=A===true;var B=this.validateValue(this.processValue(this.getRawValue()),A);this.preventMark=C;return B},validate:function(){if(this.disabled||this.validateValue(this.processValue(this.getRawValue()))){this.clearInvalid();return true}return false},processValue:function(A){return A},validateValue:function(B){var A=this.getErrors(B)[0];if(A==undefined){return true}else{this.markInvalid(A);return false}},getErrors:function(){return[]},getActiveError:function(){return this.activeError||""},markInvalid:function(C){if(this.rendered&&!this.preventMark){C=C||this.invalidText;var A=this.getMessageHandler();if(A){A.mark(this,C)}else{if(this.msgTarget){this.el.addClass(this.invalidClass);var B=Ext.getDom(this.msgTarget);if(B){B.innerHTML=C;B.style.display=this.msgDisplay}}}}this.setActiveError(C)},clearInvalid:function(){if(this.rendered&&!this.preventMark){this.el.removeClass(this.invalidClass);
var A=this.getMessageHandler();if(A){A.clear(this)}else{if(this.msgTarget){this.el.removeClass(this.invalidClass);var B=Ext.getDom(this.msgTarget);if(B){B.innerHTML="";B.style.display="none"}}}}this.unsetActiveError()},setActiveError:function(B,A){this.activeError=B;if(A!==true){this.fireEvent("invalid",this,B)}},unsetActiveError:function(A){delete this.activeError;if(A!==true){this.fireEvent("valid",this)}},getMessageHandler:function(){return Ext.form.MessageTargets[this.msgTarget]},getErrorCt:function(){return this.el.findParent(".x-form-element",5,true)||this.el.findParent(".x-form-field-wrap",5,true)},alignErrorEl:function(){this.errorEl.setWidth(this.getErrorCt().getWidth(true)-20)},alignErrorIcon:function(){this.errorIcon.alignTo(this.el,"tl-tr",[2,0])},getRawValue:function(){var A=this.rendered?this.el.getValue():Ext.value(this.value,"");if(A===this.emptyText){A=""}return A},getValue:function(){if(!this.rendered){return this.value}var A=this.el.getValue();if(A===this.emptyText||A===undefined){A=""}return A
},setRawValue:function(A){return this.rendered?(this.el.dom.value=(Ext.isEmpty(A)?"":A)):""},setValue:function(A){this.value=A;if(this.rendered){this.el.dom.value=(Ext.isEmpty(A)?"":A);this.validate()}return this},append:function(A){this.setValue([this.getValue(),A].join(""))}});Ext.form.MessageTargets={"qtip":{mark:function(A,B){A.el.addClass(A.invalidClass);A.el.dom.qtip=B;A.el.dom.qclass="x-form-invalid-tip";if(Ext.QuickTips){Ext.QuickTips.enable()}},clear:function(A){A.el.removeClass(A.invalidClass);A.el.dom.qtip=""}},"title":{mark:function(A,B){A.el.addClass(A.invalidClass);A.el.dom.title=B},clear:function(A){A.el.dom.title=""}},"under":{mark:function(B,C){B.el.addClass(B.invalidClass);if(!B.errorEl){var A=B.getErrorCt();if(!A){B.el.dom.title=C;return }B.errorEl=A.createChild({cls:"x-form-invalid-msg"});B.on("resize",B.alignErrorEl,B);B.on("destroy",function(){Ext.destroy(this.errorEl)},B)}B.alignErrorEl();B.errorEl.update(C);Ext.form.Field.msgFx[B.msgFx].show(B.errorEl,B)},clear:function(A){A.el.removeClass(A.invalidClass);
if(A.errorEl){Ext.form.Field.msgFx[A.msgFx].hide(A.errorEl,A)}else{A.el.dom.title=""}}},"side":{mark:function(B,C){B.el.addClass(B.invalidClass);if(!B.errorIcon){var A=B.getErrorCt();if(!A){B.el.dom.title=C;return }B.errorIcon=A.createChild({cls:"x-form-invalid-icon"});if(B.ownerCt){B.ownerCt.on("afterlayout",B.alignErrorIcon,B);B.ownerCt.on("expand",B.alignErrorIcon,B)}B.on("resize",B.alignErrorIcon,B);B.on("destroy",function(){Ext.destroy(this.errorIcon)},B)}B.alignErrorIcon();B.errorIcon.dom.qtip=C;B.errorIcon.dom.qclass="x-form-invalid-tip";B.errorIcon.show()},clear:function(A){A.el.removeClass(A.invalidClass);if(A.errorIcon){A.errorIcon.dom.qtip="";A.errorIcon.hide()}else{A.el.dom.title=""}}}};Ext.form.Field.msgFx={normal:{show:function(A,B){A.setDisplayed("block")},hide:function(A,B){A.setDisplayed(false).update("")}},slide:{show:function(A,B){A.slideIn("t",{stopFx:true})},hide:function(A,B){A.slideOut("t",{stopFx:true,useDisplay:true})}},slideRight:{show:function(A,B){A.fixDisplay();A.alignTo(B.el,"tl-tr");
A.slideIn("l",{stopFx:true})},hide:function(A,B){A.slideOut("l",{stopFx:true,useDisplay:true})}}};Ext.reg("field",Ext.form.Field);Ext.form.TextField=Ext.extend(Ext.form.Field,{grow:false,growMin:30,growMax:800,vtype:null,maskRe:null,disableKeyFilter:false,allowBlank:true,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:"The minimum length for this field is {0}",maxLengthText:"The maximum length for this field is {0}",selectOnFocus:false,blankText:"This field is required",validator:null,regex:null,regexText:"",emptyText:null,emptyClass:"x-form-empty-field",initComponent:function(){Ext.form.TextField.superclass.initComponent.call(this);this.addEvents("autosize","keydown","keyup","keypress")},initEvents:function(){Ext.form.TextField.superclass.initEvents.call(this);if(this.validationEvent=="keyup"){this.validationTask=new Ext.util.DelayedTask(this.validate,this);this.mon(this.el,"keyup",this.filterValidation,this)}else{if(this.validationEvent!==false&&this.validationEvent!="blur"){this.mon(this.el,this.validationEvent,this.validate,this,{buffer:this.validationDelay})
}}if(this.selectOnFocus||this.emptyText){this.mon(this.el,"mousedown",this.onMouseDown,this);if(this.emptyText){this.applyEmptyText()}}if(this.maskRe||(this.vtype&&this.disableKeyFilter!==true&&(this.maskRe=Ext.form.VTypes[this.vtype+"Mask"]))){this.mon(this.el,"keypress",this.filterKeys,this)}if(this.grow){this.mon(this.el,"keyup",this.onKeyUpBuffered,this,{buffer:50});this.mon(this.el,"click",this.autoSize,this)}if(this.enableKeyEvents){this.mon(this.el,{scope:this,keyup:this.onKeyUp,keydown:this.onKeyDown,keypress:this.onKeyPress})}},onMouseDown:function(A){if(!this.hasFocus){this.mon(this.el,"mouseup",Ext.emptyFn,this,{single:true,preventDefault:true})}},processValue:function(A){if(this.stripCharsRe){var B=A.replace(this.stripCharsRe,"");if(B!==A){this.setRawValue(B);return B}}return A},filterValidation:function(A){if(!A.isNavKeyPress()){this.validationTask.delay(this.validationDelay)}},onDisable:function(){Ext.form.TextField.superclass.onDisable.call(this);if(Ext.isIE){this.el.dom.unselectable="on"}},onEnable:function(){Ext.form.TextField.superclass.onEnable.call(this);
if(Ext.isIE){this.el.dom.unselectable=""}},onKeyUpBuffered:function(A){if(this.doAutoSize(A)){this.autoSize()}},doAutoSize:function(A){return !A.isNavKeyPress()},onKeyUp:function(A){this.fireEvent("keyup",this,A)},onKeyDown:function(A){this.fireEvent("keydown",this,A)},onKeyPress:function(A){this.fireEvent("keypress",this,A)},reset:function(){Ext.form.TextField.superclass.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){if(this.rendered&&this.emptyText&&this.getRawValue().length<1&&!this.hasFocus){this.setRawValue(this.emptyText);this.el.addClass(this.emptyClass)}},preFocus:function(){var A=this.el,B;if(this.emptyText){if(A.dom.value==this.emptyText){this.setRawValue("");B=true}A.removeClass(this.emptyClass)}if(this.selectOnFocus||B){A.dom.select()}},postBlur:function(){this.applyEmptyText()},filterKeys:function(B){if(B.ctrlKey){return }var A=B.getKey();if(Ext.isGecko&&(B.isNavKeyPress()||A==B.BACKSPACE||(A==B.DELETE&&B.button==-1))){return }var C=String.fromCharCode(B.getCharCode());if(!Ext.isGecko&&B.isSpecialKey()&&!C){return 
}if(!this.maskRe.test(C)){B.stopEvent()}},setValue:function(A){if(this.emptyText&&this.el&&!Ext.isEmpty(A)){this.el.removeClass(this.emptyClass)}Ext.form.TextField.superclass.setValue.apply(this,arguments);this.applyEmptyText();this.autoSize();return this},getErrors:function(A){var D=Ext.form.TextField.superclass.getErrors.apply(this,arguments);A=Ext.isDefined(A)?A:this.processValue(this.getRawValue());if(Ext.isFunction(this.validator)){var C=this.validator(A);if(C!==true){D.push(C)}}if(A.length<1||A===this.emptyText){if(this.allowBlank){return D}else{D.push(this.blankText)}}if(!this.allowBlank&&(A.length<1||A===this.emptyText)){D.push(this.blankText)}if(A.length<this.minLength){D.push(String.format(this.minLengthText,this.minLength))}if(A.length>this.maxLength){D.push(String.format(this.maxLengthText,this.maxLength))}if(this.vtype){var B=Ext.form.VTypes;if(!B[this.vtype](A,this)){D.push(this.vtypeText||B[this.vtype+"Text"])}}if(this.regex&&!this.regex.test(A)){D.push(this.regexText)}return D},selectText:function(F,A){var C=this.getRawValue();
var D=false;if(C.length>0){F=F===undefined?0:F;A=A===undefined?C.length:A;var E=this.el.dom;if(E.setSelectionRange){E.setSelectionRange(F,A)}else{if(E.createTextRange){var B=E.createTextRange();B.moveStart("character",F);B.moveEnd("character",A-C.length);B.select()}}D=Ext.isGecko||Ext.isOpera}else{D=true}if(D){this.focus()}},autoSize:function(){if(!this.grow||!this.rendered){return }if(!this.metrics){this.metrics=Ext.util.TextMetrics.createInstance(this.el)}var C=this.el;var B=C.dom.value;var D=document.createElement("div");D.appendChild(document.createTextNode(B));B=D.innerHTML;Ext.removeNode(D);D=null;B+="&#160;";var A=Math.min(this.growMax,Math.max(this.metrics.getWidth(B)+10,this.growMin));this.el.setWidth(A);this.fireEvent("autosize",this,A)},onDestroy:function(){if(this.validationTask){this.validationTask.cancel();this.validationTask=null}Ext.form.TextField.superclass.onDestroy.call(this)}});Ext.reg("textfield",Ext.form.TextField);Ext.form.TriggerField=Ext.extend(Ext.form.TextField,{defaultAutoCreate:{tag:"input",type:"text",size:"16",autocomplete:"off"},hideTrigger:false,editable:true,readOnly:false,wrapFocusClass:"x-trigger-wrap-focus",autoSize:Ext.emptyFn,monitorTab:true,deferHeight:true,mimicing:false,actionMode:"wrap",defaultTriggerWidth:17,onResize:function(A,C){Ext.form.TriggerField.superclass.onResize.call(this,A,C);
var B=this.getTriggerWidth();if(Ext.isNumber(A)){this.el.setWidth(A-B)}this.wrap.setWidth(this.el.getWidth()+B)},getTriggerWidth:function(){var A=this.trigger.getWidth();if(!this.hideTrigger&&!this.readOnly&&A===0){A=this.defaultTriggerWidth}return A},alignErrorIcon:function(){if(this.wrap){this.errorIcon.alignTo(this.wrap,"tl-tr",[2,0])}},onRender:function(B,A){this.doc=Ext.isIE?Ext.getBody():Ext.getDoc();Ext.form.TriggerField.superclass.onRender.call(this,B,A);this.wrap=this.el.wrap({cls:"x-form-field-wrap x-form-field-trigger-wrap"});this.trigger=this.wrap.createChild(this.triggerConfig||{tag:"img",src:Ext.BLANK_IMAGE_URL,alt:"",cls:"x-form-trigger "+this.triggerClass});this.initTrigger();if(!this.width){this.wrap.setWidth(this.el.getWidth()+this.trigger.getWidth())}this.resizeEl=this.positionEl=this.wrap},getWidth:function(){return(this.el.getWidth()+this.trigger.getWidth())},updateEditState:function(){if(this.rendered){if(this.readOnly){this.el.dom.readOnly=true;this.el.addClass("x-trigger-noedit");this.mun(this.el,"click",this.onTriggerClick,this);
this.trigger.setDisplayed(false)}else{if(!this.editable){this.el.dom.readOnly=true;this.el.addClass("x-trigger-noedit");this.mon(this.el,"click",this.onTriggerClick,this)}else{this.el.dom.readOnly=false;this.el.removeClass("x-trigger-noedit");this.mun(this.el,"click",this.onTriggerClick,this)}this.trigger.setDisplayed(!this.hideTrigger)}this.onResize(this.width||this.wrap.getWidth())}},setHideTrigger:function(A){if(A!=this.hideTrigger){this.hideTrigger=A;this.updateEditState()}},setEditable:function(A){if(A!=this.editable){this.editable=A;this.updateEditState()}},setReadOnly:function(A){if(A!=this.readOnly){this.readOnly=A;this.updateEditState()}},afterRender:function(){Ext.form.TriggerField.superclass.afterRender.call(this);this.updateEditState()},initTrigger:function(){this.mon(this.trigger,"click",this.onTriggerClick,this,{preventDefault:true});this.trigger.addClassOnOver("x-form-trigger-over");this.trigger.addClassOnClick("x-form-trigger-click")},onDestroy:function(){Ext.destroy(this.trigger,this.wrap);if(this.mimicing){this.doc.un("mousedown",this.mimicBlur,this)
}delete this.doc;Ext.form.TriggerField.superclass.onDestroy.call(this)},onFocus:function(){Ext.form.TriggerField.superclass.onFocus.call(this);if(!this.mimicing){this.wrap.addClass(this.wrapFocusClass);this.mimicing=true;this.doc.on("mousedown",this.mimicBlur,this,{delay:10});if(this.monitorTab){this.on("specialkey",this.checkTab,this)}}},checkTab:function(A,B){if(B.getKey()==B.TAB){this.triggerBlur()}},onBlur:Ext.emptyFn,mimicBlur:function(A){if(!this.isDestroyed&&!this.wrap.contains(A.target)&&this.validateBlur(A)){this.triggerBlur()}},triggerBlur:function(){this.mimicing=false;this.doc.un("mousedown",this.mimicBlur,this);if(this.monitorTab&&this.el){this.un("specialkey",this.checkTab,this)}Ext.form.TriggerField.superclass.onBlur.call(this);if(this.wrap){this.wrap.removeClass(this.wrapFocusClass)}},beforeBlur:Ext.emptyFn,validateBlur:function(A){return true},onTriggerClick:Ext.emptyFn});Ext.form.TwinTriggerField=Ext.extend(Ext.form.TriggerField,{initComponent:function(){Ext.form.TwinTriggerField.superclass.initComponent.call(this);
this.triggerConfig={tag:"span",cls:"x-form-twin-triggers",cn:[{tag:"img",src:Ext.BLANK_IMAGE_URL,alt:"",cls:"x-form-trigger "+this.trigger1Class},{tag:"img",src:Ext.BLANK_IMAGE_URL,alt:"",cls:"x-form-trigger "+this.trigger2Class}]}},getTrigger:function(A){return this.triggers[A]},afterRender:function(){Ext.form.TwinTriggerField.superclass.afterRender.call(this);var C=this.triggers,B=0,A=C.length;for(;B<A;++B){if(this["hideTrigger"+(B+1)]){C[B].hide()}}},initTrigger:function(){var A=this.trigger.select(".x-form-trigger",true),B=this;A.each(function(D,F,C){var E="Trigger"+(C+1);D.hide=function(){var G=B.wrap.getWidth();this.dom.style.display="none";B.el.setWidth(G-B.trigger.getWidth());B["hidden"+E]=true};D.show=function(){var G=B.wrap.getWidth();this.dom.style.display="";B.el.setWidth(G-B.trigger.getWidth());B["hidden"+E]=false};this.mon(D,"click",this["on"+E+"Click"],this,{preventDefault:true});D.addClassOnOver("x-form-trigger-over");D.addClassOnClick("x-form-trigger-click")},this);this.triggers=A.elements},getTriggerWidth:function(){var A=0;
Ext.each(this.triggers,function(D,C){var E="Trigger"+(C+1),B=D.getWidth();if(B===0&&!this["hidden"+E]){A+=this.defaultTriggerWidth}else{A+=B}},this);return A},onDestroy:function(){Ext.destroy(this.triggers);Ext.form.TwinTriggerField.superclass.onDestroy.call(this)},onTrigger1Click:Ext.emptyFn,onTrigger2Click:Ext.emptyFn});Ext.reg("trigger",Ext.form.TriggerField);Ext.form.TextArea=Ext.extend(Ext.form.TextField,{growMin:60,growMax:1000,growAppend:"&#160;\n&#160;",enterIsSpecial:false,preventScrollbars:false,onRender:function(B,A){if(!this.el){this.defaultAutoCreate={tag:"textarea",style:"width:100px;height:60px;",autocomplete:"off"}}Ext.form.TextArea.superclass.onRender.call(this,B,A);if(this.grow){this.textSizeEl=Ext.DomHelper.append(document.body,{tag:"pre",cls:"x-form-grow-sizer"});if(this.preventScrollbars){this.el.setStyle("overflow","hidden")}this.el.setHeight(this.growMin)}},onDestroy:function(){Ext.removeNode(this.textSizeEl);Ext.form.TextArea.superclass.onDestroy.call(this)},fireKey:function(A){if(A.isSpecialKey()&&(this.enterIsSpecial||(A.getKey()!=A.ENTER||A.hasModifier()))){this.fireEvent("specialkey",this,A)
}},doAutoSize:function(A){return !A.isNavKeyPress()||A.getKey()==A.ENTER},filterValidation:function(A){if(!A.isNavKeyPress()||(!this.enterIsSpecial&&A.keyCode==A.ENTER)){this.validationTask.delay(this.validationDelay)}},autoSize:function(){if(!this.grow||!this.textSizeEl){return }var C=this.el,A=Ext.util.Format.htmlEncode(C.dom.value),D=this.textSizeEl,B;Ext.fly(D).setWidth(this.el.getWidth());if(A.length<1){A="&#160;&#160;"}else{A+=this.growAppend;if(Ext.isIE){A=A.replace(/\n/g,"&#160;<br />")}}D.innerHTML=A;B=Math.min(this.growMax,Math.max(D.offsetHeight,this.growMin));if(B!=this.lastHeight){this.lastHeight=B;this.el.setHeight(B);this.fireEvent("autosize",this,B)}}});Ext.reg("textarea",Ext.form.TextArea);Ext.form.NumberField=Ext.extend(Ext.form.TextField,{fieldClass:"x-form-field x-form-num-field",allowDecimals:true,decimalSeparator:".",decimalPrecision:2,allowNegative:true,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,minText:"The minimum value for this field is {0}",maxText:"The maximum value for this field is {0}",nanText:"{0} is not a valid number",baseChars:"0123456789",autoStripChars:false,initEvents:function(){var A=this.baseChars+"";
if(this.allowDecimals){A+=this.decimalSeparator}if(this.allowNegative){A+="-"}A=Ext.escapeRe(A);this.maskRe=new RegExp("["+A+"]");if(this.autoStripChars){this.stripCharsRe=new RegExp("[^"+A+"]","gi")}Ext.form.NumberField.superclass.initEvents.call(this)},getErrors:function(B){var C=Ext.form.NumberField.superclass.getErrors.apply(this,arguments);B=Ext.isDefined(B)?B:this.processValue(this.getRawValue());if(B.length<1){return C}B=String(B).replace(this.decimalSeparator,".");if(isNaN(B)){C.push(String.format(this.nanText,B))}var A=this.parseValue(B);if(A<this.minValue){C.push(String.format(this.minText,this.minValue))}if(A>this.maxValue){C.push(String.format(this.maxText,this.maxValue))}return C},getValue:function(){return this.fixPrecision(this.parseValue(Ext.form.NumberField.superclass.getValue.call(this)))},setValue:function(A){A=Ext.isNumber(A)?A:parseFloat(String(A).replace(this.decimalSeparator,"."));A=this.fixPrecision(A);A=isNaN(A)?"":String(A).replace(".",this.decimalSeparator);return Ext.form.NumberField.superclass.setValue.call(this,A)
},setMinValue:function(A){this.minValue=Ext.num(A,Number.NEGATIVE_INFINITY)},setMaxValue:function(A){this.maxValue=Ext.num(A,Number.MAX_VALUE)},parseValue:function(A){A=parseFloat(String(A).replace(this.decimalSeparator,"."));return isNaN(A)?"":A},fixPrecision:function(B){var A=isNaN(B);if(!this.allowDecimals||this.decimalPrecision==-1||A||!B){return A?"":B}return parseFloat(parseFloat(B).toFixed(this.decimalPrecision))},beforeBlur:function(){var A=this.parseValue(this.getRawValue());if(!Ext.isEmpty(A)){this.setValue(A)}}});Ext.reg("numberfield",Ext.form.NumberField);Ext.form.DateField=Ext.extend(Ext.form.TriggerField,{format:"m/d/Y",altFormats:"m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j",disabledDaysText:"Disabled",disabledDatesText:"Disabled",minText:"The date in this field must be equal to or after {0}",maxText:"The date in this field must be equal to or before {0}",invalidText:"{0} is not a valid date - it must be in the format {1}",triggerClass:"x-form-date-trigger",showToday:true,startDay:0,defaultAutoCreate:{tag:"input",type:"text",size:"10",autocomplete:"off"},initTime:"12",initTimeFormat:"H",safeParse:function(B,C){if(Date.formatContainsHourInfo(C)){return Date.parseDate(B,C)
}else{var A=Date.parseDate(B+" "+this.initTime,C+" "+this.initTimeFormat);if(A){return A.clearTime()}}},initComponent:function(){Ext.form.DateField.superclass.initComponent.call(this);this.addEvents("select");if(Ext.isString(this.minValue)){this.minValue=this.parseDate(this.minValue)}if(Ext.isString(this.maxValue)){this.maxValue=this.parseDate(this.maxValue)}this.disabledDatesRE=null;this.initDisabledDays()},initEvents:function(){Ext.form.DateField.superclass.initEvents.call(this);this.keyNav=new Ext.KeyNav(this.el,{"down":function(A){this.onTriggerClick()},scope:this,forceKeyDown:true})},initDisabledDays:function(){if(this.disabledDates){var B=this.disabledDates,A=B.length-1,C="(?:";Ext.each(B,function(E,D){C+=Ext.isDate(E)?"^"+Ext.escapeRe(E.dateFormat(this.format))+"$":B[D];if(D!=A){C+="|"}},this);this.disabledDatesRE=new RegExp(C+")")}},setDisabledDates:function(A){this.disabledDates=A;this.initDisabledDays();if(this.menu){this.menu.picker.setDisabledDates(this.disabledDatesRE)}},setDisabledDays:function(A){this.disabledDays=A;
if(this.menu){this.menu.picker.setDisabledDays(A)}},setMinValue:function(A){this.minValue=(Ext.isString(A)?this.parseDate(A):A);if(this.menu){this.menu.picker.setMinDate(this.minValue)}},setMaxValue:function(A){this.maxValue=(Ext.isString(A)?this.parseDate(A):A);if(this.menu){this.menu.picker.setMaxDate(this.maxValue)}},getErrors:function(E){var G=Ext.form.DateField.superclass.getErrors.apply(this,arguments);E=this.formatDate(E||this.processValue(this.getRawValue()));if(E.length<1){return G}var C=E;E=this.parseDate(E);if(!E){G.push(String.format(this.invalidText,C,this.format));return G}var F=E.getTime();if(this.minValue&&F<this.minValue.clearTime().getTime()){G.push(String.format(this.minText,this.formatDate(this.minValue)))}if(this.maxValue&&F>this.maxValue.clearTime().getTime()){G.push(String.format(this.maxText,this.formatDate(this.maxValue)))}if(this.disabledDays){var A=E.getDay();for(var B=0;B<this.disabledDays.length;B++){if(A===this.disabledDays[B]){G.push(this.disabledDaysText);break}}}var D=this.formatDate(E);
if(this.disabledDatesRE&&this.disabledDatesRE.test(D)){G.push(String.format(this.disabledDatesText,D))}return G},validateBlur:function(){return !this.menu||!this.menu.isVisible()},getValue:function(){return this.parseDate(Ext.form.DateField.superclass.getValue.call(this))||""},setValue:function(A){return Ext.form.DateField.superclass.setValue.call(this,this.formatDate(this.parseDate(A)))},parseDate:function(F){if(!F||Ext.isDate(F)){return F}var B=this.safeParse(F,this.format),C=this.altFormats,E=this.altFormatsArray;if(!B&&C){E=E||C.split("|");for(var D=0,A=E.length;D<A&&!B;D++){B=this.safeParse(F,E[D])}}return B},onDestroy:function(){Ext.destroy(this.menu,this.keyNav);Ext.form.DateField.superclass.onDestroy.call(this)},formatDate:function(A){return Ext.isDate(A)?A.dateFormat(this.format):A},onTriggerClick:function(){if(this.disabled){return }if(this.menu==null){this.menu=new Ext.menu.DateMenu({hideOnClick:false,focusOnSelect:false})}this.onFocus();Ext.apply(this.menu.picker,{minDate:this.minValue,maxDate:this.maxValue,disabledDatesRE:this.disabledDatesRE,disabledDatesText:this.disabledDatesText,disabledDays:this.disabledDays,disabledDaysText:this.disabledDaysText,format:this.format,showToday:this.showToday,startDay:this.startDay,minText:String.format(this.minText,this.formatDate(this.minValue)),maxText:String.format(this.maxText,this.formatDate(this.maxValue))});
this.menu.picker.setValue(this.getValue()||new Date());this.menu.show(this.el,"tl-bl?");this.menuEvents("on")},menuEvents:function(A){this.menu[A]("select",this.onSelect,this);this.menu[A]("hide",this.onMenuHide,this);this.menu[A]("show",this.onFocus,this)},onSelect:function(A,B){this.setValue(B);this.fireEvent("select",this,B);this.menu.hide()},onMenuHide:function(){this.focus(false,60);this.menuEvents("un")},beforeBlur:function(){var A=this.parseDate(this.getRawValue());if(A){this.setValue(A)}}});Ext.reg("datefield",Ext.form.DateField);Ext.form.DisplayField=Ext.extend(Ext.form.Field,{validationEvent:false,validateOnBlur:false,defaultAutoCreate:{tag:"div"},fieldClass:"x-form-display-field",htmlEncode:false,initEvents:Ext.emptyFn,isValid:function(){return true},validate:function(){return true},getRawValue:function(){var A=this.rendered?this.el.dom.innerHTML:Ext.value(this.value,"");if(A===this.emptyText){A=""}if(this.htmlEncode){A=Ext.util.Format.htmlDecode(A)}return A},getValue:function(){return this.getRawValue()
},getName:function(){return this.name},setRawValue:function(A){if(this.htmlEncode){A=Ext.util.Format.htmlEncode(A)}return this.rendered?(this.el.dom.innerHTML=(Ext.isEmpty(A)?"":A)):(this.value=A)},setValue:function(A){this.setRawValue(A);return this}});Ext.reg("displayfield",Ext.form.DisplayField);Ext.form.ComboBox=Ext.extend(Ext.form.TriggerField,{defaultAutoCreate:{tag:"input",type:"text",size:"24",autocomplete:"off"},listClass:"",selectedClass:"x-combo-selected",listEmptyText:"",triggerClass:"x-form-arrow-trigger",shadow:"sides",listAlign:"tl-bl?",maxHeight:300,minHeight:90,triggerAction:"query",minChars:4,autoSelect:true,typeAhead:false,queryDelay:500,pageSize:0,selectOnFocus:false,queryParam:"query",loadingText:"Loading...",resizable:false,handleHeight:8,allQuery:"",mode:"remote",minListWidth:70,forceSelection:false,typeAheadDelay:250,lazyInit:true,clearFilterOnReset:true,submitValue:undefined,initComponent:function(){Ext.form.ComboBox.superclass.initComponent.call(this);this.addEvents("expand","collapse","beforeselect","select","beforequery");
if(this.transform){var C=Ext.getDom(this.transform);if(!this.hiddenName){this.hiddenName=C.name}if(!this.store){this.mode="local";var G=[],D=C.options;for(var B=0,A=D.length;B<A;B++){var F=D[B],E=(F.hasAttribute?F.hasAttribute("value"):F.getAttributeNode("value").specified)?F.value:F.text;if(F.selected&&Ext.isEmpty(this.value,true)){this.value=E}G.push([E,F.text])}this.store=new Ext.data.ArrayStore({idIndex:0,fields:["value","text"],data:G,autoDestroy:true});this.valueField="value";this.displayField="text"}C.name=Ext.id();if(!this.lazyRender){this.target=true;this.el=Ext.DomHelper.insertBefore(C,this.autoCreate||this.defaultAutoCreate);this.render(this.el.parentNode,C)}Ext.removeNode(C)}else{if(this.store){this.store=Ext.StoreMgr.lookup(this.store);if(this.store.autoCreated){this.displayField=this.valueField="field1";if(!this.store.expandData){this.displayField="field2"}this.mode="local"}}}this.selectedIndex=-1;if(this.mode=="local"){if(!Ext.isDefined(this.initialConfig.queryDelay)){this.queryDelay=10}if(!Ext.isDefined(this.initialConfig.minChars)){this.minChars=0
}}},onRender:function(B,A){if(this.hiddenName&&!Ext.isDefined(this.submitValue)){this.submitValue=false}Ext.form.ComboBox.superclass.onRender.call(this,B,A);if(this.hiddenName){this.hiddenField=this.el.insertSibling({tag:"input",type:"hidden",name:this.hiddenName,id:(this.hiddenId||Ext.id())},"before",true)}if(Ext.isGecko){this.el.dom.setAttribute("autocomplete","off")}if(!this.lazyInit){this.initList()}else{this.on("focus",this.initList,this,{single:true})}},initValue:function(){Ext.form.ComboBox.superclass.initValue.call(this);if(this.hiddenField){this.hiddenField.value=Ext.value(Ext.isDefined(this.hiddenValue)?this.hiddenValue:this.value,"")}},getParentZIndex:function(){var A;if(this.ownerCt){this.findParentBy(function(B){A=parseInt(B.getPositionEl().getStyle("z-index"),10);return !!A})}return A},getZIndex:function(B){B=B||Ext.getDom(this.getListParent()||Ext.getBody());var A=parseInt(Ext.fly(B).getStyle("z-index"),10);if(!A){A=this.getParentZIndex()}return(A||12000)+5},initList:function(){if(!this.list){var A="x-combo-list",C=Ext.getDom(this.getListParent()||Ext.getBody());
this.list=new Ext.Layer({parentEl:C,shadow:this.shadow,cls:[A,this.listClass].join(" "),constrain:false,zindex:this.getZIndex(C)});var B=this.listWidth||Math.max(this.wrap.getWidth(),this.minListWidth);this.list.setSize(B,0);this.list.swallowEvent("mousewheel");this.assetHeight=0;if(this.syncFont!==false){this.list.setStyle("font-size",this.el.getStyle("font-size"))}if(this.title){this.header=this.list.createChild({cls:A+"-hd",html:this.title});this.assetHeight+=this.header.getHeight()}this.innerList=this.list.createChild({cls:A+"-inner"});this.mon(this.innerList,"mouseover",this.onViewOver,this);this.mon(this.innerList,"mousemove",this.onViewMove,this);this.innerList.setWidth(B-this.list.getFrameWidth("lr"));if(this.pageSize){this.footer=this.list.createChild({cls:A+"-ft"});this.pageTb=new Ext.PagingToolbar({store:this.store,pageSize:this.pageSize,renderTo:this.footer});this.assetHeight+=this.footer.getHeight()}if(!this.tpl){this.tpl='<tpl for="."><div class="'+A+'-item">{'+this.displayField+"}</div></tpl>"}this.view=new Ext.DataView({applyTo:this.innerList,tpl:this.tpl,singleSelect:true,selectedClass:this.selectedClass,itemSelector:this.itemSelector||"."+A+"-item",emptyText:this.listEmptyText,deferEmptyText:false});
this.mon(this.view,{containerclick:this.onViewClick,click:this.onViewClick,scope:this});this.bindStore(this.store,true);if(this.resizable){this.resizer=new Ext.Resizable(this.list,{pinned:true,handles:"se"});this.mon(this.resizer,"resize",function(F,D,E){this.maxHeight=E-this.handleHeight-this.list.getFrameWidth("tb")-this.assetHeight;this.listWidth=D;this.innerList.setWidth(D-this.list.getFrameWidth("lr"));this.restrictHeight()},this);this[this.pageSize?"footer":"innerList"].setStyle("margin-bottom",this.handleHeight+"px")}}},getListParent:function(){return document.body},getStore:function(){return this.store},bindStore:function(A,B){if(this.store&&!B){if(this.store!==A&&this.store.autoDestroy){this.store.destroy()}else{this.store.un("beforeload",this.onBeforeLoad,this);this.store.un("load",this.onLoad,this);this.store.un("exception",this.collapse,this)}if(!A){this.store=null;if(this.view){this.view.bindStore(null)}if(this.pageTb){this.pageTb.bindStore(null)}}}if(A){if(!B){this.lastQuery=null;if(this.pageTb){this.pageTb.bindStore(A)
}}this.store=Ext.StoreMgr.lookup(A);this.store.on({scope:this,beforeload:this.onBeforeLoad,load:this.onLoad,exception:this.collapse});if(this.view){this.view.bindStore(A)}}},reset:function(){if(this.clearFilterOnReset&&this.mode=="local"){this.store.clearFilter()}Ext.form.ComboBox.superclass.reset.call(this)},initEvents:function(){Ext.form.ComboBox.superclass.initEvents.call(this);this.keyNav=new Ext.KeyNav(this.el,{"up":function(A){this.inKeyMode=true;this.selectPrev()},"down":function(A){if(!this.isExpanded()){this.onTriggerClick()}else{this.inKeyMode=true;this.selectNext()}},"enter":function(A){this.onViewClick()},"esc":function(A){this.collapse()},"tab":function(A){if(this.forceSelection===true){this.collapse()}else{this.onViewClick(false)}return true},scope:this,doRelay:function(C,B,A){if(A=="down"||this.scope.isExpanded()){var D=Ext.KeyNav.prototype.doRelay.apply(this,arguments);if(!Ext.isIE&&Ext.EventManager.useKeydown){this.scope.fireKey(C)}return D}return true},forceKeyDown:true,defaultEventAction:"stopEvent"});
this.queryDelay=Math.max(this.queryDelay||10,this.mode=="local"?10:250);this.dqTask=new Ext.util.DelayedTask(this.initQuery,this);if(this.typeAhead){this.taTask=new Ext.util.DelayedTask(this.onTypeAhead,this)}if(!this.enableKeyEvents){this.mon(this.el,"keyup",this.onKeyUp,this)}},onDestroy:function(){if(this.dqTask){this.dqTask.cancel();this.dqTask=null}this.bindStore(null);Ext.destroy(this.resizer,this.view,this.pageTb,this.list);Ext.destroyMembers(this,"hiddenField");Ext.form.ComboBox.superclass.onDestroy.call(this)},fireKey:function(A){if(!this.isExpanded()){Ext.form.ComboBox.superclass.fireKey.call(this,A)}},onResize:function(A,B){Ext.form.ComboBox.superclass.onResize.apply(this,arguments);if(!isNaN(A)&&this.isVisible()&&this.list){this.doResize(A)}else{this.bufferSize=A}},doResize:function(A){if(!Ext.isDefined(this.listWidth)){var B=Math.max(A,this.minListWidth);this.list.setWidth(B);this.innerList.setWidth(B-this.list.getFrameWidth("lr"))}},onEnable:function(){Ext.form.ComboBox.superclass.onEnable.apply(this,arguments);
if(this.hiddenField){this.hiddenField.disabled=false}},onDisable:function(){Ext.form.ComboBox.superclass.onDisable.apply(this,arguments);if(this.hiddenField){this.hiddenField.disabled=true}},onBeforeLoad:function(){if(!this.hasFocus){return }this.innerList.update(this.loadingText?'<div class="loading-indicator">'+this.loadingText+"</div>":"");this.restrictHeight();this.selectedIndex=-1},onLoad:function(){if(!this.hasFocus){return }if(this.store.getCount()>0||this.listEmptyText){this.expand();this.restrictHeight();if(this.lastQuery==this.allQuery){if(this.editable){this.el.dom.select()}if(this.autoSelect!==false&&!this.selectByValue(this.value,true)){this.select(0,true)}}else{if(this.autoSelect!==false){this.selectNext()}if(this.typeAhead&&this.lastKey!=Ext.EventObject.BACKSPACE&&this.lastKey!=Ext.EventObject.DELETE){this.taTask.delay(this.typeAheadDelay)}}}else{this.collapse()}},onTypeAhead:function(){if(this.store.getCount()>0){var B=this.store.getAt(0);var C=B.data[this.displayField];var A=C.length;var D=this.getRawValue().length;
if(D!=A){this.setRawValue(C);this.selectText(D,C.length)}}},assertValue:function(){var B=this.getRawValue(),A;if(this.valueField&&Ext.isDefined(this.value)){A=this.findRecord(this.valueField,this.value)}if(!A||A.get(this.displayField)!=B){A=this.findRecord(this.displayField,B)}if(!A&&this.forceSelection){if(B.length>0&&B!=this.emptyText){this.el.dom.value=Ext.value(this.lastSelectionText,"");this.applyEmptyText()}else{this.clearValue()}}else{if(A&&this.valueField){if(this.value==B){return }B=A.get(this.valueField||this.displayField)}this.setValue(B)}},onSelect:function(A,B){if(this.fireEvent("beforeselect",this,A,B)!==false){this.setValue(A.data[this.valueField||this.displayField]);this.collapse();this.fireEvent("select",this,A,B)}},getName:function(){var A=this.hiddenField;return A&&A.name?A.name:this.hiddenName||Ext.form.ComboBox.superclass.getName.call(this)},getValue:function(){if(this.valueField){return Ext.isDefined(this.value)?this.value:""}else{return Ext.form.ComboBox.superclass.getValue.call(this)}},clearValue:function(){if(this.hiddenField){this.hiddenField.value=""
}this.setRawValue("");this.lastSelectionText="";this.applyEmptyText();this.value=""},setValue:function(A){var C=A;if(this.valueField){var B=this.findRecord(this.valueField,A);if(B){C=B.data[this.displayField]}else{if(Ext.isDefined(this.valueNotFoundText)){C=this.valueNotFoundText}}}this.lastSelectionText=C;if(this.hiddenField){this.hiddenField.value=Ext.value(A,"")}Ext.form.ComboBox.superclass.setValue.call(this,C);this.value=A;return this},findRecord:function(C,B){var A;if(this.store.getCount()>0){this.store.each(function(D){if(D.data[C]==B){A=D;return false}})}return A},onViewMove:function(B,A){this.inKeyMode=false},onViewOver:function(D,B){if(this.inKeyMode){return }var C=this.view.findItemFromChild(B);if(C){var A=this.view.indexOf(C);this.select(A,false)}},onViewClick:function(B){var A=this.view.getSelectedIndexes()[0],C=this.store,D=C.getAt(A);if(D){this.onSelect(D,A)}else{this.collapse()}if(B!==false){this.el.focus()}},restrictHeight:function(){this.innerList.dom.style.height="";var B=this.innerList.dom,E=this.list.getFrameWidth("tb")+(this.resizable?this.handleHeight:0)+this.assetHeight,C=Math.max(B.clientHeight,B.offsetHeight,B.scrollHeight),A=this.getPosition()[1]-Ext.getBody().getScroll().top,F=Ext.lib.Dom.getViewHeight()-A-this.getSize().height,D=Math.max(A,F,this.minHeight||0)-this.list.shadowOffset-E-5;
C=Math.min(C,D,this.maxHeight);this.innerList.setHeight(C);this.list.beginUpdate();this.list.setHeight(C+E);this.list.alignTo.apply(this.list,[this.el].concat(this.listAlign));this.list.endUpdate()},isExpanded:function(){return this.list&&this.list.isVisible()},selectByValue:function(A,C){if(!Ext.isEmpty(A,true)){var B=this.findRecord(this.valueField||this.displayField,A);if(B){this.select(this.store.indexOf(B),C);return true}}return false},select:function(A,C){this.selectedIndex=A;this.view.select(A);if(C!==false){var B=this.view.getNode(A);if(B){this.innerList.scrollChildIntoView(B,false)}}},selectNext:function(){var A=this.store.getCount();if(A>0){if(this.selectedIndex==-1){this.select(0)}else{if(this.selectedIndex<A-1){this.select(this.selectedIndex+1)}}}},selectPrev:function(){var A=this.store.getCount();if(A>0){if(this.selectedIndex==-1){this.select(0)}else{if(this.selectedIndex!==0){this.select(this.selectedIndex-1)}}}},onKeyUp:function(B){var A=B.getKey();if(this.editable!==false&&this.readOnly!==true&&(A==B.BACKSPACE||!B.isSpecialKey())){this.lastKey=A;
this.dqTask.delay(this.queryDelay)}Ext.form.ComboBox.superclass.onKeyUp.call(this,B)},validateBlur:function(){return !this.list||!this.list.isVisible()},initQuery:function(){this.doQuery(this.getRawValue())},beforeBlur:function(){this.assertValue()},postBlur:function(){Ext.form.ComboBox.superclass.postBlur.call(this);this.collapse();this.inKeyMode=false},doQuery:function(C,B){C=Ext.isEmpty(C)?"":C;var A={query:C,forceAll:B,combo:this,cancel:false};if(this.fireEvent("beforequery",A)===false||A.cancel){return false}C=A.query;B=A.forceAll;if(B===true||(C.length>=this.minChars)){if(this.lastQuery!==C){this.lastQuery=C;if(this.mode=="local"){this.selectedIndex=-1;if(B){this.store.clearFilter()}else{this.store.filter(this.displayField,C)}this.onLoad()}else{this.store.baseParams[this.queryParam]=C;this.store.load({params:this.getParams(C)});this.expand()}}else{this.selectedIndex=-1;this.onLoad()}}},getParams:function(A){var B={},C=this.store.paramNames;if(this.pageSize){B[C.start]=0;B[C.limit]=this.pageSize}return B},collapse:function(){if(!this.isExpanded()){return 
}this.list.hide();Ext.getDoc().un("mousewheel",this.collapseIf,this);Ext.getDoc().un("mousedown",this.collapseIf,this);this.fireEvent("collapse",this)},collapseIf:function(A){if(!this.isDestroyed&&!A.within(this.wrap)&&!A.within(this.list)){this.collapse()}},expand:function(){if(this.isExpanded()||!this.hasFocus){return }if(this.title||this.pageSize){this.assetHeight=0;if(this.title){this.assetHeight+=this.header.getHeight()}if(this.pageSize){this.assetHeight+=this.footer.getHeight()}}if(this.bufferSize){this.doResize(this.bufferSize);delete this.bufferSize}this.list.alignTo.apply(this.list,[this.el].concat(this.listAlign));this.list.setZIndex(this.getZIndex());this.list.show();if(Ext.isGecko2){this.innerList.setOverflow("auto")}this.mon(Ext.getDoc(),{scope:this,mousewheel:this.collapseIf,mousedown:this.collapseIf});this.fireEvent("expand",this)},onTriggerClick:function(){if(this.readOnly||this.disabled){return }if(this.isExpanded()){this.collapse();this.el.focus()}else{this.onFocus({});if(this.triggerAction=="all"){this.doQuery(this.allQuery,true)
}else{this.doQuery(this.getRawValue())}this.el.focus()}}});Ext.reg("combo",Ext.form.ComboBox);Ext.form.Checkbox=Ext.extend(Ext.form.Field,{focusClass:undefined,fieldClass:"x-form-field",checked:false,boxLabel:"&#160;",defaultAutoCreate:{tag:"input",type:"checkbox",autocomplete:"off"},actionMode:"wrap",initComponent:function(){Ext.form.Checkbox.superclass.initComponent.call(this);this.addEvents("check")},onResize:function(){Ext.form.Checkbox.superclass.onResize.apply(this,arguments);if(!this.boxLabel&&!this.fieldLabel){this.el.alignTo(this.wrap,"c-c")}},initEvents:function(){Ext.form.Checkbox.superclass.initEvents.call(this);this.mon(this.el,{scope:this,click:this.onClick,change:this.onClick})},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,onRender:function(B,A){Ext.form.Checkbox.superclass.onRender.call(this,B,A);if(this.inputValue!==undefined){this.el.dom.value=this.inputValue}this.wrap=this.el.wrap({cls:"x-form-check-wrap"});if(this.boxLabel){this.wrap.createChild({tag:"label",htmlFor:this.el.id,cls:"x-form-cb-label",html:this.boxLabel})
}if(this.checked){this.setValue(true)}else{this.checked=this.el.dom.checked}if(Ext.isIE&&!Ext.isStrict){this.wrap.repaint()}this.resizeEl=this.positionEl=this.wrap},onDestroy:function(){Ext.destroy(this.wrap);Ext.form.Checkbox.superclass.onDestroy.call(this)},initValue:function(){this.originalValue=this.getValue()},getValue:function(){if(this.rendered){return this.el.dom.checked}return this.checked},onClick:function(){if(this.el.dom.checked!=this.checked){this.setValue(this.el.dom.checked)}},setValue:function(A){var C=this.checked,B=this.inputValue;if(A===false){this.checked=false}else{this.checked=(A===true||A==="true"||A=="1"||(B?A==B:String(A).toLowerCase()=="on"))}if(this.rendered){this.el.dom.checked=this.checked;this.el.dom.defaultChecked=this.checked}if(C!=this.checked){this.fireEvent("check",this,this.checked);if(this.handler){this.handler.call(this.scope||this,this,this.checked)}}return this}});Ext.reg("checkbox",Ext.form.Checkbox);Ext.form.CheckboxGroup=Ext.extend(Ext.form.Field,{columns:"auto",vertical:false,allowBlank:true,blankText:"You must select at least one item in this group",defaultType:"checkbox",groupCls:"x-form-check-group",initComponent:function(){this.addEvents("change");
this.on("change",this.validate,this);Ext.form.CheckboxGroup.superclass.initComponent.call(this)},onRender:function(H,F){if(!this.el){var M={autoEl:{id:this.id},cls:this.groupCls,layout:"column",renderTo:H,bufferResize:false};var A={xtype:"container",defaultType:this.defaultType,layout:"form",defaults:{hideLabel:true,anchor:"100%"}};if(this.items[0].items){Ext.apply(M,{layoutConfig:{columns:this.items.length},defaults:this.defaults,items:this.items});for(var E=0,J=this.items.length;E<J;E++){Ext.applyIf(this.items[E],A)}}else{var D,K=[];if(typeof this.columns=="string"){this.columns=this.items.length}if(!Ext.isArray(this.columns)){var I=[];for(var E=0;E<this.columns;E++){I.push((100/this.columns)*0.01)}this.columns=I}D=this.columns.length;for(var E=0;E<D;E++){var B=Ext.apply({items:[]},A);B[this.columns[E]<=1?"columnWidth":"width"]=this.columns[E];if(this.defaults){B.defaults=Ext.apply(B.defaults||{},this.defaults)}K.push(B)}if(this.vertical){var O=Math.ceil(this.items.length/D),L=0;for(var E=0,J=this.items.length;
E<J;E++){if(E>0&&E%O==0){L++}if(this.items[E].fieldLabel){this.items[E].hideLabel=false}K[L].items.push(this.items[E])}}else{for(var E=0,J=this.items.length;E<J;E++){var N=E%D;if(this.items[E].fieldLabel){this.items[E].hideLabel=false}K[N].items.push(this.items[E])}}Ext.apply(M,{layoutConfig:{columns:D},items:K})}this.panel=new Ext.Container(M);this.panel.ownerCt=this;this.el=this.panel.getEl();if(this.forId&&this.itemCls){var C=this.el.up(this.itemCls).child("label",true);if(C){C.setAttribute("htmlFor",this.forId)}}var G=this.panel.findBy(function(P){return P.isFormField},this);this.items=new Ext.util.MixedCollection();this.items.addAll(G)}Ext.form.CheckboxGroup.superclass.onRender.call(this,H,F)},initValue:function(){if(this.value){this.setValue.apply(this,this.buffered?this.value:[this.value]);delete this.buffered;delete this.value}},afterRender:function(){Ext.form.CheckboxGroup.superclass.afterRender.call(this);this.eachItem(function(A){A.on("check",this.fireChecked,this);A.inGroup=true})},doLayout:function(){if(this.rendered){this.panel.forceLayout=this.ownerCt.forceLayout;
this.panel.doLayout()}},fireChecked:function(){var A=[];this.eachItem(function(B){if(B.checked){A.push(B)}});this.fireEvent("change",this,A)},getErrors:function(){var B=Ext.form.CheckboxGroup.superclass.getErrors.apply(this,arguments);if(!this.allowBlank){var A=true;this.eachItem(function(C){if(C.checked){return(A=false)}});if(A){B.push(this.blankText)}}return B},isDirty:function(){if(this.disabled||!this.rendered){return false}var A=false;this.eachItem(function(B){if(B.isDirty()){A=true;return false}});return A},setReadOnly:function(A){if(this.rendered){this.eachItem(function(B){B.setReadOnly(A)})}this.readOnly=A},onDisable:function(){this.eachItem(function(A){A.disable()})},onEnable:function(){this.eachItem(function(A){A.enable()})},onResize:function(A,B){this.panel.setSize(A,B);this.panel.doLayout()},reset:function(){if(this.originalValue){this.eachItem(function(A){if(A.setValue){A.setValue(false);A.originalValue=A.getValue()}});this.resetOriginal=true;this.setValue(this.originalValue);delete this.resetOriginal
}else{this.eachItem(function(A){if(A.reset){A.reset()}})}(function(){this.clearInvalid()}).defer(50,this)},setValue:function(){if(this.rendered){this.onSetValue.apply(this,arguments)}else{this.buffered=true;this.value=arguments}return this},onSetValue:function(D,C){if(arguments.length==1){if(Ext.isArray(D)){Ext.each(D,function(G,E){if(Ext.isObject(G)&&G.setValue){G.setValue(true);if(this.resetOriginal===true){G.originalValue=G.getValue()}}else{var F=this.items.itemAt(E);if(F){F.setValue(G)}}},this)}else{if(Ext.isObject(D)){for(var A in D){var B=this.getBox(A);if(B){B.setValue(D[A])}}}else{this.setValueForItem(D)}}}else{var B=this.getBox(D);if(B){B.setValue(C)}}},beforeDestroy:function(){Ext.destroy(this.panel);if(!this.rendered){Ext.destroy(this.items)}Ext.form.CheckboxGroup.superclass.beforeDestroy.call(this)},setValueForItem:function(A){A=String(A).split(",");this.eachItem(function(B){if(A.indexOf(B.inputValue)>-1){B.setValue(true)}})},getBox:function(B){var A=null;this.eachItem(function(C){if(B==C||C.dataIndex==B||C.id==B||C.getName()==B){A=C;
return false}});return A},getValue:function(){var A=[];this.eachItem(function(B){if(B.checked){A.push(B)}});return A},eachItem:function(B,A){if(this.items&&this.items.each){this.items.each(B,A||this)}},getRawValue:Ext.emptyFn,setRawValue:Ext.emptyFn});Ext.reg("checkboxgroup",Ext.form.CheckboxGroup);Ext.form.CompositeField=Ext.extend(Ext.form.Field,{defaultMargins:"0 5 0 0",skipLastItemMargin:true,isComposite:true,combineErrors:true,labelConnector:", ",initComponent:function(){var F=[],B=this.items,E;for(var D=0,C=B.length;D<C;D++){E=B[D];if(!Ext.isEmpty(E.ref)){E.ref="../"+E.ref}F.push(E.fieldLabel);Ext.applyIf(E,this.defaults);if(!(D==C-1&&this.skipLastItemMargin)){Ext.applyIf(E,{margins:this.defaultMargins})}}this.fieldLabel=this.fieldLabel||this.buildLabel(F);this.fieldErrors=new Ext.util.MixedCollection(true,function(G){return G.field});this.fieldErrors.on({scope:this,add:this.updateInvalidMark,remove:this.updateInvalidMark,replace:this.updateInvalidMark});Ext.form.CompositeField.superclass.initComponent.apply(this,arguments);
this.innerCt=new Ext.Container({layout:"hbox",items:this.items,cls:"x-form-composite",defaultMargins:"0 3 0 0",ownerCt:this});this.innerCt.ownerCt=undefined;var A=this.innerCt.findBy(function(G){return G.isFormField},this);this.items=new Ext.util.MixedCollection();this.items.addAll(A)},onRender:function(C,A){if(!this.el){var D=this.innerCt;D.render(C);this.el=D.getEl();if(this.combineErrors){this.eachItem(function(E){Ext.apply(E,{markInvalid:this.onFieldMarkInvalid.createDelegate(this,[E],0),clearInvalid:this.onFieldClearInvalid.createDelegate(this,[E],0)})})}var B=this.el.parent().parent().child("label",true);if(B){B.setAttribute("for",this.items.items[0].id)}}Ext.form.CompositeField.superclass.onRender.apply(this,arguments)},onFieldMarkInvalid:function(D,C){var B=D.getName(),A={field:B,errorName:D.fieldLabel||B,error:C};this.fieldErrors.replace(B,A);if(!D.preventMark){D.el.addClass(D.invalidClass)}},onFieldClearInvalid:function(A){this.fieldErrors.removeKey(A.getName());A.el.removeClass(A.invalidClass)},updateInvalidMark:function(){var A=Ext.isIE6&&Ext.isStrict;
if(this.fieldErrors.length==0){this.clearInvalid();if(A){this.clearInvalid.defer(50,this)}}else{var B=this.buildCombinedErrorMessage(this.fieldErrors.items);this.sortErrors();this.markInvalid(B);if(A){this.markInvalid(B)}}},validateValue:function(C,A){var B=true;this.eachItem(function(D){if(!D.isValid(A)){B=false}});return B},buildCombinedErrorMessage:function(E){var D=[],B;for(var C=0,A=E.length;C<A;C++){B=E[C];D.push(String.format("{0}: {1}",B.errorName,B.error))}return D.join("<br />")},sortErrors:function(){var A=this.items;this.fieldErrors.sort("ASC",function(E,C){var B=function(G){return function(H){return H.getName()==G}};var F=A.findIndexBy(B(E.field)),D=A.findIndexBy(B(C.field));return F<D?-1:1})},reset:function(){this.eachItem(function(A){A.reset()});(function(){this.clearInvalid()}).defer(50,this)},clearInvalidChildren:function(){this.eachItem(function(A){A.clearInvalid()})},buildLabel:function(A){return Ext.clean(A).join(this.labelConnector)},isDirty:function(){if(this.disabled||!this.rendered){return false
}var A=false;this.eachItem(function(B){if(B.isDirty()){A=true;return false}});return A},eachItem:function(B,A){if(this.items&&this.items.each){this.items.each(B,A||this)}},onResize:function(E,C,A,D){var B=this.innerCt;if(this.rendered&&B.rendered){B.setSize(E,C)}Ext.form.CompositeField.superclass.onResize.apply(this,arguments)},doLayout:function(C,B){if(this.rendered){var A=this.innerCt;A.forceLayout=this.ownerCt.forceLayout;A.doLayout(C,B)}},beforeDestroy:function(){Ext.destroy(this.innerCt);Ext.form.CompositeField.superclass.beforeDestroy.call(this)},setReadOnly:function(A){if(A==undefined){A=true}A=!!A;if(this.rendered){this.eachItem(function(B){B.setReadOnly(A)})}this.readOnly=A},onShow:function(){Ext.form.CompositeField.superclass.onShow.call(this);this.doLayout()},onDisable:function(){this.eachItem(function(A){A.disable()})},onEnable:function(){this.eachItem(function(A){A.enable()})}});Ext.reg("compositefield",Ext.form.CompositeField);Ext.form.Radio=Ext.extend(Ext.form.Checkbox,{inputType:"radio",markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,getGroupValue:function(){var A=this.el.up("form")||Ext.getBody();
var B=A.child('input[name="'+this.el.dom.name+'"]:checked',true);return B?B.value:null},setValue:function(B){var A,D,C;if(typeof B=="boolean"){Ext.form.Radio.superclass.setValue.call(this,B)}else{if(this.rendered){A=this.getCheckEl();C=A.child('input[name="'+this.el.dom.name+'"][value="'+B+'"]',true);if(C){Ext.getCmp(C.id).setValue(true)}}}if(this.rendered&&this.checked){A=A||this.getCheckEl();D=this.getCheckEl().select('input[name="'+this.el.dom.name+'"]');D.each(function(E){if(E.dom.id!=this.id){Ext.getCmp(E.dom.id).setValue(false)}},this)}return this},getCheckEl:function(){if(this.inGroup){return this.el.up(".x-form-radio-group")}return this.el.up("form")||Ext.getBody()}});Ext.reg("radio",Ext.form.Radio);Ext.form.RadioGroup=Ext.extend(Ext.form.CheckboxGroup,{allowBlank:true,blankText:"You must select one item in this group",defaultType:"radio",groupCls:"x-form-radio-group",getValue:function(){var A=null;this.eachItem(function(B){if(B.checked){A=B;return false}});return A},onSetValue:function(C,B){if(arguments.length>1){var A=this.getBox(C);
if(A){A.setValue(B);if(A.checked){this.eachItem(function(D){if(D!==A){D.setValue(false)}})}}}else{this.setValueForItem(C)}},setValueForItem:function(A){A=String(A).split(",")[0];this.eachItem(function(B){B.setValue(A==B.inputValue)})},fireChecked:function(){if(!this.checkTask){this.checkTask=new Ext.util.DelayedTask(this.bufferChecked,this)}this.checkTask.delay(10)},bufferChecked:function(){var A=null;this.eachItem(function(B){if(B.checked){A=B;return false}});this.fireEvent("change",this,A)},onDestroy:function(){if(this.checkTask){this.checkTask.cancel();this.checkTask=null}Ext.form.RadioGroup.superclass.onDestroy.call(this)}});Ext.reg("radiogroup",Ext.form.RadioGroup);Ext.form.Hidden=Ext.extend(Ext.form.Field,{inputType:"hidden",shouldLayout:false,onRender:function(){Ext.form.Hidden.superclass.onRender.apply(this,arguments)},initEvents:function(){this.originalValue=this.getValue()},setSize:Ext.emptyFn,setWidth:Ext.emptyFn,setHeight:Ext.emptyFn,setPosition:Ext.emptyFn,setPagePosition:Ext.emptyFn,markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn});
Ext.reg("hidden",Ext.form.Hidden);Ext.form.BasicForm=Ext.extend(Ext.util.Observable,{constructor:function(B,A){Ext.apply(this,A);if(Ext.isString(this.paramOrder)){this.paramOrder=this.paramOrder.split(/[\s,|]/)}this.items=new Ext.util.MixedCollection(false,function(C){return C.getItemId()});this.addEvents("beforeaction","actionfailed","actioncomplete");if(B){this.initEl(B)}Ext.form.BasicForm.superclass.constructor.call(this)},timeout:30,paramOrder:undefined,paramsAsHash:false,waitTitle:"Please Wait...",activeAction:null,trackResetOnLoad:false,initEl:function(A){this.el=Ext.get(A);this.id=this.el.id||Ext.id();if(!this.standardSubmit){this.el.on("submit",this.onSubmit,this)}this.el.addClass("x-form")},getEl:function(){return this.el},onSubmit:function(A){A.stopEvent()},destroy:function(A){if(A!==true){this.items.each(function(B){Ext.destroy(B)});Ext.destroy(this.el)}this.items.clear();this.purgeListeners()},isValid:function(){var A=true;this.items.each(function(B){if(!B.validate()){A=false}});return A},isDirty:function(){var A=false;
this.items.each(function(B){if(B.isDirty()){A=true;return false}});return A},doAction:function(B,A){if(Ext.isString(B)){B=new Ext.form.Action.ACTION_TYPES[B](this,A)}if(this.fireEvent("beforeaction",this,B)!==false){this.beforeAction(B);B.run.defer(100,B)}return this},submit:function(B){B=B||{};if(this.standardSubmit){var A=B.clientValidation===false||this.isValid();if(A){var C=this.el.dom;if(this.url&&Ext.isEmpty(C.action)){C.action=this.url}C.submit()}return A}var D=String.format("{0}submit",this.api?"direct":"");this.doAction(D,B);return this},load:function(A){var B=String.format("{0}load",this.api?"direct":"");this.doAction(B,A);return this},updateRecord:function(B){B.beginEdit();var A=B.fields,D,C;A.each(function(E){D=this.findField(E.name);if(D){C=D.getValue();if(Ext.type(C)!==false&&C.getGroupValue){C=C.getGroupValue()}else{if(D.eachItem){C=[];D.eachItem(function(F){C.push(F.getValue())})}}B.set(E.name,C)}},this);B.endEdit();return this},loadRecord:function(A){this.setValues(A.data);return this},beforeAction:function(A){this.items.each(function(C){if(C.isFormField&&C.syncValue){C.syncValue()
}});var B=A.options;if(B.waitMsg){if(this.waitMsgTarget===true){this.el.mask(B.waitMsg,"x-mask-loading")}else{if(this.waitMsgTarget){this.waitMsgTarget=Ext.get(this.waitMsgTarget);this.waitMsgTarget.mask(B.waitMsg,"x-mask-loading")}else{Ext.MessageBox.wait(B.waitMsg,B.waitTitle||this.waitTitle)}}}},afterAction:function(A,C){this.activeAction=null;var B=A.options;if(B.waitMsg){if(this.waitMsgTarget===true){this.el.unmask()}else{if(this.waitMsgTarget){this.waitMsgTarget.unmask()}else{Ext.MessageBox.updateProgress(1);Ext.MessageBox.hide()}}}if(C){if(B.reset){this.reset()}Ext.callback(B.success,B.scope,[this,A]);this.fireEvent("actioncomplete",this,A)}else{Ext.callback(B.failure,B.scope,[this,A]);this.fireEvent("actionfailed",this,A)}},findField:function(C){var B=this.items.get(C);if(!Ext.isObject(B)){var A=function(D){if(D.isFormField){if(D.dataIndex==C||D.id==C||D.getName()==C){B=D;return false}else{if(D.isComposite){return D.items.each(A)}else{if(D instanceof Ext.form.CheckboxGroup&&D.rendered){return D.eachItem(A)
}}}}};this.items.each(A)}return B||null},markInvalid:function(G){if(Ext.isArray(G)){for(var C=0,A=G.length;C<A;C++){var B=G[C];var D=this.findField(B.id);if(D){D.markInvalid(B.msg)}}}else{var E,F;for(F in G){if(!Ext.isFunction(G[F])&&(E=this.findField(F))){E.markInvalid(G[F])}}}return this},setValues:function(C){if(Ext.isArray(C)){for(var D=0,A=C.length;D<A;D++){var B=C[D];var E=this.findField(B.id);if(E){E.setValue(B.value);if(this.trackResetOnLoad){E.originalValue=E.getValue()}}}}else{var F,G;for(G in C){if(!Ext.isFunction(C[G])&&(F=this.findField(G))){F.setValue(C[G]);if(this.trackResetOnLoad){F.originalValue=F.getValue()}}}}return this},getValues:function(B){var A=Ext.lib.Ajax.serializeForm(this.el.dom);if(B===true){return A}return Ext.urlDecode(A)},getFieldValues:function(A){var D={},E,B,C;this.items.each(function(F){if(!F.disabled&&(A!==true||F.isDirty())){E=F.getName();B=D[E];C=F.getValue();if(Ext.isDefined(B)){if(Ext.isArray(B)){D[E].push(C)}else{D[E]=[B,C]}}else{D[E]=C}}});return D},clearInvalid:function(){this.items.each(function(A){A.clearInvalid()
});return this},reset:function(){this.items.each(function(A){A.reset()});return this},add:function(){this.items.addAll(Array.prototype.slice.call(arguments,0));return this},remove:function(A){this.items.remove(A);return this},cleanDestroyed:function(){this.items.filterBy(function(A){return !!A.isDestroyed}).each(this.remove,this)},render:function(){this.items.each(function(A){if(A.isFormField&&!A.rendered&&document.getElementById(A.id)){A.applyToMarkup(A.id)}});return this},applyToFields:function(A){this.items.each(function(B){Ext.apply(B,A)});return this},applyIfToFields:function(A){this.items.each(function(B){Ext.applyIf(B,A)});return this},callFieldMethod:function(B,A){A=A||[];this.items.each(function(C){if(Ext.isFunction(C[B])){C[B].apply(C,A)}});return this}});Ext.BasicForm=Ext.form.BasicForm;Ext.FormPanel=Ext.extend(Ext.Panel,{minButtonWidth:75,labelAlign:"left",monitorValid:false,monitorPoll:200,layout:"form",initComponent:function(){this.form=this.createForm();Ext.FormPanel.superclass.initComponent.call(this);
this.bodyCfg={tag:"form",cls:this.baseCls+"-body",method:this.method||"POST",id:this.formId||Ext.id()};if(this.fileUpload){this.bodyCfg.enctype="multipart/form-data"}this.initItems();this.addEvents("clientvalidation");this.relayEvents(this.form,["beforeaction","actionfailed","actioncomplete"])},createForm:function(){var A=Ext.applyIf({listeners:{}},this.initialConfig);return new Ext.form.BasicForm(null,A)},initFields:function(){var C=this.form;var A=this;var B=function(D){if(A.isField(D)){C.add(D)}else{if(D.findBy&&D!=A){A.applySettings(D);if(D.items&&D.items.each){D.items.each(B,this)}}}};this.items.each(B,this)},applySettings:function(B){var A=B.ownerCt;Ext.applyIf(B,{labelAlign:A.labelAlign,labelWidth:A.labelWidth,itemCls:A.itemCls})},getLayoutTarget:function(){return this.form.el},getForm:function(){return this.form},onRender:function(B,A){this.initFields();Ext.FormPanel.superclass.onRender.call(this,B,A);this.form.initEl(this.body)},beforeDestroy:function(){this.stopMonitoring();this.form.destroy(true);Ext.FormPanel.superclass.beforeDestroy.call(this)
},isField:function(A){return !!A.setValue&&!!A.getValue&&!!A.markInvalid&&!!A.clearInvalid},initEvents:function(){Ext.FormPanel.superclass.initEvents.call(this);this.on({scope:this,add:this.onAddEvent,remove:this.onRemoveEvent});if(this.monitorValid){this.startMonitoring()}},onAdd:function(A){Ext.FormPanel.superclass.onAdd.call(this,A);this.processAdd(A)},onAddEvent:function(A,B){if(A!==this){this.processAdd(B)}},processAdd:function(A){if(this.isField(A)){this.form.add(A)}else{if(A.findBy){this.applySettings(A);this.form.add.apply(this.form,A.findBy(this.isField))}}},onRemove:function(A){Ext.FormPanel.superclass.onRemove.call(this,A);this.processRemove(A)},onRemoveEvent:function(A,B){if(A!==this){this.processRemove(B)}},processRemove:function(A){if(!this.destroying){if(this.isField(A)){this.form.remove(A)}else{if(A.findBy){Ext.each(A.findBy(this.isField),this.form.remove,this.form);this.form.cleanDestroyed()}}}},startMonitoring:function(){if(!this.validTask){this.validTask=new Ext.util.TaskRunner();this.validTask.start({run:this.bindHandler,interval:this.monitorPoll||200,scope:this})
}},stopMonitoring:function(){if(this.validTask){this.validTask.stopAll();this.validTask=null}},load:function(){this.form.load.apply(this.form,arguments)},onDisable:function(){Ext.FormPanel.superclass.onDisable.call(this);if(this.form){this.form.items.each(function(){this.disable()})}},onEnable:function(){Ext.FormPanel.superclass.onEnable.call(this);if(this.form){this.form.items.each(function(){this.enable()})}},bindHandler:function(){var E=true;this.form.items.each(function(F){if(!F.isValid(true)){E=false;return false}});if(this.fbar){var B=this.fbar.items.items;for(var D=0,A=B.length;D<A;D++){var C=B[D];if(C.formBind===true&&C.disabled===E){C.setDisabled(!E)}}}this.fireEvent("clientvalidation",this,E)}});Ext.reg("form",Ext.FormPanel);Ext.form.FormPanel=Ext.FormPanel;Ext.form.FieldSet=Ext.extend(Ext.Panel,{baseCls:"x-fieldset",layout:"form",animCollapse:false,onRender:function(B,A){if(!this.el){this.el=document.createElement("fieldset");this.el.id=this.id;if(this.title||this.header||this.checkboxToggle){this.el.appendChild(document.createElement("legend")).className=this.baseCls+"-header"
}}Ext.form.FieldSet.superclass.onRender.call(this,B,A);if(this.checkboxToggle){var C=typeof this.checkboxToggle=="object"?this.checkboxToggle:{tag:"input",type:"checkbox",name:this.checkboxName||this.id+"-checkbox"};this.checkbox=this.header.insertFirst(C);this.checkbox.dom.checked=!this.collapsed;this.mon(this.checkbox,"click",this.onCheckClick,this)}},onCollapse:function(A,B){if(this.checkbox){this.checkbox.dom.checked=false}Ext.form.FieldSet.superclass.onCollapse.call(this,A,B)},onExpand:function(A,B){if(this.checkbox){this.checkbox.dom.checked=true}Ext.form.FieldSet.superclass.onExpand.call(this,A,B)},onCheckClick:function(){this[this.checkbox.dom.checked?"expand":"collapse"]()}});Ext.reg("fieldset",Ext.form.FieldSet);Ext.form.HtmlEditor=Ext.extend(Ext.form.Field,{enableFormat:true,enableFontSize:true,enableColors:true,enableAlignments:true,enableLists:true,enableSourceEdit:true,enableLinks:true,enableFont:true,createLinkText:"Please enter the URL for the link:",defaultLinkValue:"http://",fontFamilies:["Arial","Courier New","Tahoma","Times New Roman","Verdana"],defaultFont:"tahoma",defaultValue:(Ext.isOpera||Ext.isIE6)?"&#160;":"&#8203;",actionMode:"wrap",validationEvent:false,deferHeight:true,initialized:false,activated:false,sourceEditMode:false,onFocus:Ext.emptyFn,iframePad:3,hideMode:"offsets",defaultAutoCreate:{tag:"textarea",style:"width:500px;height:300px;",autocomplete:"off"},initComponent:function(){this.addEvents("initialize","activate","beforesync","beforepush","sync","push","editmodechange");
Ext.form.HtmlEditor.superclass.initComponent.call(this)},createFontOptions:function(){var D=[],B=this.fontFamilies,C,F;for(var E=0,A=B.length;E<A;E++){C=B[E];F=C.toLowerCase();D.push('<option value="',F,'" style="font-family:',C,';"',(this.defaultFont==F?' selected="true">':">"),C,"</option>")}return D.join("")},createToolbar:function(E){var C=[];var A=Ext.QuickTips&&Ext.QuickTips.isEnabled();function D(I,G,H){return{itemId:I,cls:"x-btn-icon",iconCls:"x-edit-"+I,enableToggle:G!==false,scope:E,handler:H||E.relayBtnCmd,clickEvent:"mousedown",tooltip:A?E.buttonTips[I]||undefined:undefined,overflowText:E.buttonTips[I].title||undefined,tabIndex:-1}}if(this.enableFont&&!Ext.isSafari2){var F=new Ext.Toolbar.Item({autoEl:{tag:"select",cls:"x-font-select",html:this.createFontOptions()}});C.push(F,"-")}if(this.enableFormat){C.push(D("bold"),D("italic"),D("underline"))}if(this.enableFontSize){C.push("-",D("increasefontsize",false,this.adjustFont),D("decreasefontsize",false,this.adjustFont))}if(this.enableColors){C.push("-",{itemId:"forecolor",cls:"x-btn-icon",iconCls:"x-edit-forecolor",clickEvent:"mousedown",tooltip:A?E.buttonTips.forecolor||undefined:undefined,tabIndex:-1,menu:new Ext.menu.ColorMenu({allowReselect:true,focus:Ext.emptyFn,value:"000000",plain:true,listeners:{scope:this,select:function(H,G){this.execCmd("forecolor",Ext.isWebKit||Ext.isIE?"#"+G:G);
this.deferFocus()}},clickEvent:"mousedown"})},{itemId:"backcolor",cls:"x-btn-icon",iconCls:"x-edit-backcolor",clickEvent:"mousedown",tooltip:A?E.buttonTips.backcolor||undefined:undefined,tabIndex:-1,menu:new Ext.menu.ColorMenu({focus:Ext.emptyFn,value:"FFFFFF",plain:true,allowReselect:true,listeners:{scope:this,select:function(H,G){if(Ext.isGecko){this.execCmd("useCSS",false);this.execCmd("hilitecolor",G);this.execCmd("useCSS",true);this.deferFocus()}else{this.execCmd(Ext.isOpera?"hilitecolor":"backcolor",Ext.isWebKit||Ext.isIE?"#"+G:G);this.deferFocus()}}},clickEvent:"mousedown"})})}if(this.enableAlignments){C.push("-",D("justifyleft"),D("justifycenter"),D("justifyright"))}if(!Ext.isSafari2){if(this.enableLinks){C.push("-",D("createlink",false,this.createLink))}if(this.enableLists){C.push("-",D("insertorderedlist"),D("insertunorderedlist"))}if(this.enableSourceEdit){C.push("-",D("sourceedit",true,function(G){this.toggleSourceEdit(!this.sourceEditMode)}))}}var B=new Ext.Toolbar({renderTo:this.wrap.dom.firstChild,items:C});
if(F){this.fontSelect=F.el;this.mon(this.fontSelect,"change",function(){var G=this.fontSelect.dom.value;this.relayCmd("fontname",G);this.deferFocus()},this)}this.mon(B.el,"click",function(G){G.preventDefault()});this.tb=B;this.tb.doLayout()},onDisable:function(){this.wrap.mask();Ext.form.HtmlEditor.superclass.onDisable.call(this)},onEnable:function(){this.wrap.unmask();Ext.form.HtmlEditor.superclass.onEnable.call(this)},setReadOnly:function(B){Ext.form.HtmlEditor.superclass.setReadOnly.call(this,B);if(this.initialized){if(Ext.isIE){this.getEditorBody().contentEditable=!B}else{this.setDesignMode(!B)}var A=this.getEditorBody();if(A){A.style.cursor=this.readOnly?"default":"text"}this.disableItems(B)}},getDocMarkup:function(){var A=Ext.fly(this.iframe).getHeight()-this.iframePad*2;return String.format('<html><head><style type="text/css">body{border: 0; margin: 0; padding: {0}px; height: {1}px; cursor: text}</style></head><body></body></html>',this.iframePad,A)},getEditorBody:function(){var A=this.getDoc();return A.body||A.documentElement
},getDoc:function(){return Ext.isIE?this.getWin().document:(this.iframe.contentDocument||this.getWin().document)},getWin:function(){return Ext.isIE?this.iframe.contentWindow:window.frames[this.iframe.name]},onRender:function(B,A){Ext.form.HtmlEditor.superclass.onRender.call(this,B,A);this.el.dom.style.border="0 none";this.el.dom.setAttribute("tabIndex",-1);this.el.addClass("x-hidden");if(Ext.isIE){this.el.applyStyles("margin-top:-1px;margin-bottom:-1px;")}this.wrap=this.el.wrap({cls:"x-html-editor-wrap",cn:{cls:"x-html-editor-tb"}});this.createToolbar(this);this.disableItems(true);this.tb.doLayout();this.createIFrame();if(!this.width){var C=this.el.getSize();this.setSize(C.width,this.height||C.height)}this.resizeEl=this.positionEl=this.wrap},createIFrame:function(){var A=document.createElement("iframe");A.name=Ext.id();A.frameBorder="0";A.style.overflow="auto";A.src=Ext.SSL_SECURE_URL;this.wrap.dom.appendChild(A);this.iframe=A;this.monitorTask=Ext.TaskMgr.start({run:this.checkDesignMode,scope:this,interval:100})
},initFrame:function(){Ext.TaskMgr.stop(this.monitorTask);var B=this.getDoc();this.win=this.getWin();B.open();B.write(this.getDocMarkup());B.close();var A={run:function(){var C=this.getDoc();if(C.body||C.readyState=="complete"){Ext.TaskMgr.stop(A);this.setDesignMode(true);this.initEditor.defer(10,this)}},interval:10,duration:10000,scope:this};Ext.TaskMgr.start(A)},checkDesignMode:function(){if(this.wrap&&this.wrap.dom.offsetWidth){var A=this.getDoc();if(!A){return }if(!A.editorInitialized||this.getDesignMode()!="on"){this.initFrame()}}},setDesignMode:function(B){var A=this.getDoc();if(A){if(this.readOnly){B=false}A.designMode=(/on|true/i).test(String(B).toLowerCase())?"on":"off"}},getDesignMode:function(){var A=this.getDoc();if(!A){return""}return String(A.designMode).toLowerCase()},disableItems:function(A){if(this.fontSelect){this.fontSelect.dom.disabled=A}this.tb.items.each(function(B){if(B.getItemId()!="sourceedit"){B.setDisabled(A)}})},onResize:function(B,C){Ext.form.HtmlEditor.superclass.onResize.apply(this,arguments);
if(this.el&&this.iframe){if(Ext.isNumber(B)){var E=B-this.wrap.getFrameWidth("lr");this.el.setWidth(E);this.tb.setWidth(E);this.iframe.style.width=Math.max(E,0)+"px"}if(Ext.isNumber(C)){var A=C-this.wrap.getFrameWidth("tb")-this.tb.el.getHeight();this.el.setHeight(A);this.iframe.style.height=Math.max(A,0)+"px";var D=this.getEditorBody();if(D){D.style.height=Math.max((A-(this.iframePad*2)),0)+"px"}}}},toggleSourceEdit:function(B){var D,A;if(B===undefined){B=!this.sourceEditMode}this.sourceEditMode=B===true;var C=this.tb.getComponent("sourceedit");if(C.pressed!==this.sourceEditMode){C.toggle(this.sourceEditMode);if(!C.xtbHidden){return }}if(this.sourceEditMode){this.previousSize=this.getSize();D=Ext.get(this.iframe).getHeight();this.disableItems(true);this.syncValue();this.iframe.className="x-hidden";this.el.removeClass("x-hidden");this.el.dom.removeAttribute("tabIndex");this.el.focus();this.el.dom.style.height=D+"px"}else{A=parseInt(this.el.dom.style.height,10);if(this.initialized){this.disableItems(this.readOnly)
}this.pushValue();this.iframe.className="";this.el.addClass("x-hidden");this.el.dom.setAttribute("tabIndex",-1);this.deferFocus();this.setSize(this.previousSize);delete this.previousSize;this.iframe.style.height=A+"px"}this.fireEvent("editmodechange",this,this.sourceEditMode)},createLink:function(){var A=prompt(this.createLinkText,this.defaultLinkValue);if(A&&A!="http://"){this.relayCmd("createlink",A)}},initEvents:function(){this.originalValue=this.getValue()},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,setValue:function(A){Ext.form.HtmlEditor.superclass.setValue.call(this,A);this.pushValue();return this},cleanHtml:function(A){A=String(A);if(Ext.isWebKit){A=A.replace(/\sclass="(?:Apple-style-span|khtml-block-placeholder)"/gi,"")}if(A.charCodeAt(0)==this.defaultValue.replace(/\D/g,"")){A=A.substring(1)}return A},syncValue:function(){if(this.initialized){var D=this.getEditorBody();var C=D.innerHTML;if(Ext.isWebKit){var B=D.getAttribute("style");var A=B.match(/text-align:(.*?);/i);if(A&&A[1]){C='<div style="'+A[0]+'">'+C+"</div>"
}}C=this.cleanHtml(C);if(this.fireEvent("beforesync",this,C)!==false){this.el.dom.value=C;this.fireEvent("sync",this,C)}}},getValue:function(){this[this.sourceEditMode?"pushValue":"syncValue"]();return Ext.form.HtmlEditor.superclass.getValue.call(this)},pushValue:function(){if(this.initialized){var A=this.el.dom.value;if(!this.activated&&A.length<1){A=this.defaultValue}if(this.fireEvent("beforepush",this,A)!==false){this.getEditorBody().innerHTML=A;if(Ext.isGecko){this.setDesignMode(false);this.setDesignMode(true)}this.fireEvent("push",this,A)}}},deferFocus:function(){this.focus.defer(10,this)},focus:function(){if(this.win&&!this.sourceEditMode){this.win.focus()}else{this.el.focus()}},initEditor:function(){try{var C=this.getEditorBody(),A=this.el.getStyles("font-size","font-family","background-image","background-repeat","background-color","color"),E,B;A["background-attachment"]="fixed";C.bgProperties="fixed";Ext.DomHelper.applyStyles(C,A);E=this.getDoc();if(E){try{Ext.EventManager.removeAll(E)}catch(D){}}B=this.onEditorEvent.createDelegate(this);
Ext.EventManager.on(E,{mousedown:B,dblclick:B,click:B,keyup:B,buffer:100});if(Ext.isGecko){Ext.EventManager.on(E,"keypress",this.applyCommand,this)}if(Ext.isIE||Ext.isWebKit||Ext.isOpera){Ext.EventManager.on(E,"keydown",this.fixKeys,this)}E.editorInitialized=true;this.initialized=true;this.pushValue();this.setReadOnly(this.readOnly);this.fireEvent("initialize",this)}catch(D){}},beforeDestroy:function(){if(this.monitorTask){Ext.TaskMgr.stop(this.monitorTask)}if(this.rendered){Ext.destroy(this.tb);var B=this.getDoc();if(B){try{Ext.EventManager.removeAll(B);for(var C in B){delete B[C]}}catch(A){}}if(this.wrap){this.wrap.dom.innerHTML="";this.wrap.remove()}}Ext.form.HtmlEditor.superclass.beforeDestroy.call(this)},onFirstFocus:function(){this.activated=true;this.disableItems(this.readOnly);if(Ext.isGecko){this.win.focus();var A=this.win.getSelection();if(!A.focusNode||A.focusNode.nodeType!=3){var B=A.getRangeAt(0);B.selectNodeContents(this.getEditorBody());B.collapse(true);this.deferFocus()}try{this.execCmd("useCSS",true);
this.execCmd("styleWithCSS",false)}catch(C){}}this.fireEvent("activate",this)},adjustFont:function(B){var D=B.getItemId()=="increasefontsize"?1:-1,C=this.getDoc(),A=parseInt(C.queryCommandValue("FontSize")||2,10);if((Ext.isSafari&&!Ext.isSafari2)||Ext.isChrome||Ext.isAir){if(A<=10){A=1+D}else{if(A<=13){A=2+D}else{if(A<=16){A=3+D}else{if(A<=18){A=4+D}else{if(A<=24){A=5+D}else{A=6+D}}}}}A=A.constrain(1,6)}else{if(Ext.isSafari){D*=2}A=Math.max(1,A+D)+(Ext.isSafari?"px":0)}this.execCmd("FontSize",A)},onEditorEvent:function(A){this.updateToolbar()},updateToolbar:function(){if(this.readOnly){return }if(!this.activated){this.onFirstFocus();return }var B=this.tb.items.map,C=this.getDoc();if(this.enableFont&&!Ext.isSafari2){var A=(C.queryCommandValue("FontName")||this.defaultFont).toLowerCase();if(A!=this.fontSelect.dom.value){this.fontSelect.dom.value=A}}if(this.enableFormat){B.bold.toggle(C.queryCommandState("bold"));B.italic.toggle(C.queryCommandState("italic"));B.underline.toggle(C.queryCommandState("underline"))}if(this.enableAlignments){B.justifyleft.toggle(C.queryCommandState("justifyleft"));
B.justifycenter.toggle(C.queryCommandState("justifycenter"));B.justifyright.toggle(C.queryCommandState("justifyright"))}if(!Ext.isSafari2&&this.enableLists){B.insertorderedlist.toggle(C.queryCommandState("insertorderedlist"));B.insertunorderedlist.toggle(C.queryCommandState("insertunorderedlist"))}Ext.menu.MenuMgr.hideAll();this.syncValue()},relayBtnCmd:function(A){this.relayCmd(A.getItemId())},relayCmd:function(B,A){(function(){this.focus();this.execCmd(B,A);this.updateToolbar()}).defer(10,this)},execCmd:function(B,A){var C=this.getDoc();C.execCommand(B,false,A===undefined?null:A);this.syncValue()},applyCommand:function(B){if(B.ctrlKey){var C=B.getCharCode(),A;if(C>0){C=String.fromCharCode(C);switch(C){case"b":A="bold";break;case"i":A="italic";break;case"u":A="underline";break}if(A){this.win.focus();this.execCmd(A);this.deferFocus();B.preventDefault()}}}},insertAtCursor:function(C){if(!this.activated){return }if(Ext.isIE){this.win.focus();var B=this.getDoc(),A=B.selection.createRange();if(A){A.pasteHTML(C);this.syncValue();
this.deferFocus()}}else{this.win.focus();this.execCmd("InsertHTML",C);this.deferFocus()}},fixKeys:function(){if(Ext.isIE){return function(E){var A=E.getKey(),D=this.getDoc(),B;if(A==E.TAB){E.stopEvent();B=D.selection.createRange();if(B){B.collapse(true);B.pasteHTML("&nbsp;&nbsp;&nbsp;&nbsp;");this.deferFocus()}}else{if(A==E.ENTER){B=D.selection.createRange();if(B){var C=B.parentElement();if(!C||C.tagName.toLowerCase()!="li"){E.stopEvent();B.pasteHTML("<br />");B.collapse(false);B.select()}}}}}}else{if(Ext.isOpera){return function(B){var A=B.getKey();if(A==B.TAB){B.stopEvent();this.win.focus();this.execCmd("InsertHTML","&nbsp;&nbsp;&nbsp;&nbsp;");this.deferFocus()}}}else{if(Ext.isWebKit){return function(B){var A=B.getKey();if(A==B.TAB){B.stopEvent();this.execCmd("InsertText","\t");this.deferFocus()}else{if(A==B.ENTER){B.stopEvent();this.execCmd("InsertHtml","<br /><br />");this.deferFocus()}}}}}}}(),getToolbar:function(){return this.tb},buttonTips:{bold:{title:"Bold (Ctrl+B)",text:"Make the selected text bold.",cls:"x-html-editor-tip"},italic:{title:"Italic (Ctrl+I)",text:"Make the selected text italic.",cls:"x-html-editor-tip"},underline:{title:"Underline (Ctrl+U)",text:"Underline the selected text.",cls:"x-html-editor-tip"},increasefontsize:{title:"Grow Text",text:"Increase the font size.",cls:"x-html-editor-tip"},decreasefontsize:{title:"Shrink Text",text:"Decrease the font size.",cls:"x-html-editor-tip"},backcolor:{title:"Text Highlight Color",text:"Change the background color of the selected text.",cls:"x-html-editor-tip"},forecolor:{title:"Font Color",text:"Change the color of the selected text.",cls:"x-html-editor-tip"},justifyleft:{title:"Align Text Left",text:"Align text to the left.",cls:"x-html-editor-tip"},justifycenter:{title:"Center Text",text:"Center text in the editor.",cls:"x-html-editor-tip"},justifyright:{title:"Align Text Right",text:"Align text to the right.",cls:"x-html-editor-tip"},insertunorderedlist:{title:"Bullet List",text:"Start a bulleted list.",cls:"x-html-editor-tip"},insertorderedlist:{title:"Numbered List",text:"Start a numbered list.",cls:"x-html-editor-tip"},createlink:{title:"Hyperlink",text:"Make the selected text a hyperlink.",cls:"x-html-editor-tip"},sourceedit:{title:"Source Edit",text:"Switch to source editing mode.",cls:"x-html-editor-tip"}}});
Ext.reg("htmleditor",Ext.form.HtmlEditor);Ext.form.TimeField=Ext.extend(Ext.form.ComboBox,{minValue:undefined,maxValue:undefined,minText:"The time in this field must be equal to or after {0}",maxText:"The time in this field must be equal to or before {0}",invalidText:"{0} is not a valid time",format:"g:i A",altFormats:"g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H|gi a|hi a|giA|hiA|gi A|hi A",increment:15,mode:"local",triggerAction:"all",typeAhead:false,initDate:"1/1/2008",initDateFormat:"j/n/Y",initComponent:function(){if(Ext.isDefined(this.minValue)){this.setMinValue(this.minValue,true)}if(Ext.isDefined(this.maxValue)){this.setMaxValue(this.maxValue,true)}if(!this.store){this.generateStore(true)}Ext.form.TimeField.superclass.initComponent.call(this)},setMinValue:function(B,A){this.setLimit(B,true,A);return this},setMaxValue:function(B,A){this.setLimit(B,false,A);return this},generateStore:function(B){var C=this.minValue||new Date(this.initDate).clearTime(),A=this.maxValue||new Date(this.initDate).clearTime().add("mi",(24*60)-1),D=[];
while(C<=A){D.push(C.dateFormat(this.format));C=C.add("mi",this.increment)}this.bindStore(D,B)},setLimit:function(B,E,A){var D;if(Ext.isString(B)){D=this.parseDate(B)}else{if(Ext.isDate(B)){D=B}}if(D){var C=new Date(this.initDate).clearTime();C.setHours(D.getHours(),D.getMinutes(),D.getSeconds(),D.getMilliseconds());this[E?"minValue":"maxValue"]=C;if(!A){this.generateStore()}}},getValue:function(){var A=Ext.form.TimeField.superclass.getValue.call(this);return this.formatDate(this.parseDate(A))||""},setValue:function(A){return Ext.form.TimeField.superclass.setValue.call(this,this.formatDate(this.parseDate(A)))},validateValue:Ext.form.DateField.prototype.validateValue,formatDate:Ext.form.DateField.prototype.formatDate,parseDate:function(G){if(!G||Ext.isDate(G)){return G}var H=this.initDate+" ",F=this.initDateFormat+" ",B=Date.parseDate(H+G,F+this.format),C=this.altFormats;if(!B&&C){if(!this.altFormatsArray){this.altFormatsArray=C.split("|")}for(var E=0,D=this.altFormatsArray,A=D.length;E<A&&!B;E++){B=Date.parseDate(H+G,F+D[E])
}}return B}});Ext.reg("timefield",Ext.form.TimeField);Ext.form.SliderField=Ext.extend(Ext.form.Field,{useTips:true,tipText:null,actionMode:"wrap",initComponent:function(){var B=Ext.copyTo({id:this.id+"-slider"},this.initialConfig,["vertical","minValue","maxValue","decimalPrecision","keyIncrement","increment","clickToChange","animate"]);if(this.useTips){var A=this.tipText?{getText:this.tipText}:{};B.plugins=[new Ext.slider.Tip(A)]}this.slider=new Ext.Slider(B);Ext.form.SliderField.superclass.initComponent.call(this)},onRender:function(B,A){this.autoCreate={id:this.id,name:this.name,type:"hidden",tag:"input"};Ext.form.SliderField.superclass.onRender.call(this,B,A);this.wrap=this.el.wrap({cls:"x-form-field-wrap"});this.resizeEl=this.positionEl=this.wrap;this.slider.render(this.wrap)},onResize:function(B,C,D,A){Ext.form.SliderField.superclass.onResize.call(this,B,C,D,A);this.slider.setSize(B,C)},initEvents:function(){Ext.form.SliderField.superclass.initEvents.call(this);this.slider.on("change",this.onChange,this)},onChange:function(B,A){this.setValue(A,undefined,true)
},onEnable:function(){Ext.form.SliderField.superclass.onEnable.call(this);this.slider.enable()},onDisable:function(){Ext.form.SliderField.superclass.onDisable.call(this);this.slider.disable()},beforeDestroy:function(){Ext.destroy(this.slider);Ext.form.SliderField.superclass.beforeDestroy.call(this)},alignErrorIcon:function(){this.errorIcon.alignTo(this.slider.el,"tl-tr",[2,0])},setMinValue:function(A){this.slider.setMinValue(A);return this},setMaxValue:function(A){this.slider.setMaxValue(A);return this},setValue:function(C,B,A){if(!A){this.slider.setValue(C,B)}return Ext.form.SliderField.superclass.setValue.call(this,this.slider.getValue())},getValue:function(){return this.slider.getValue()}});Ext.reg("sliderfield",Ext.form.SliderField);Ext.form.Label=Ext.extend(Ext.BoxComponent,{onRender:function(B,A){if(!this.el){this.el=document.createElement("label");this.el.id=this.getId();this.el.innerHTML=this.text?Ext.util.Format.htmlEncode(this.text):(this.html||"");if(this.forId){this.el.setAttribute("for",this.forId)
}}Ext.form.Label.superclass.onRender.call(this,B,A)},setText:function(A,B){var C=B===false;this[!C?"text":"html"]=A;delete this[C?"text":"html"];if(this.rendered){this.el.dom.innerHTML=B!==false?Ext.util.Format.htmlEncode(A):A}return this}});Ext.reg("label",Ext.form.Label);Ext.form.Action=function(B,A){this.form=B;this.options=A||{}};Ext.form.Action.CLIENT_INVALID="client";Ext.form.Action.SERVER_INVALID="server";Ext.form.Action.CONNECT_FAILURE="connect";Ext.form.Action.LOAD_FAILURE="load";Ext.form.Action.prototype={type:"default",run:function(A){},success:function(A){},handleResponse:function(A){},failure:function(A){this.response=A;this.failureType=Ext.form.Action.CONNECT_FAILURE;this.form.afterAction(this,false)},processResponse:function(A){this.response=A;if(!A.responseText&&!A.responseXML){return true}this.result=this.handleResponse(A);return this.result},decodeResponse:function(A){try{return Ext.decode(A.responseText)}catch(B){return false}},getUrl:function(C){var A=this.options.url||this.form.url||this.form.el.dom.action;
if(C){var B=this.getParams();if(B){A=Ext.urlAppend(A,B)}}return A},getMethod:function(){return(this.options.method||this.form.method||this.form.el.dom.method||"POST").toUpperCase()},getParams:function(){var A=this.form.baseParams;var B=this.options.params;if(B){if(typeof B=="object"){B=Ext.urlEncode(Ext.applyIf(B,A))}else{if(typeof B=="string"&&A){B+="&"+Ext.urlEncode(A)}}}else{if(A){B=Ext.urlEncode(A)}}return B},createCallback:function(A){var A=A||{};return{success:this.success,failure:this.failure,scope:this,timeout:(A.timeout*1000)||(this.form.timeout*1000),upload:this.form.fileUpload?this.success:undefined}}};Ext.form.Action.Submit=function(B,A){Ext.form.Action.Submit.superclass.constructor.call(this,B,A)};Ext.extend(Ext.form.Action.Submit,Ext.form.Action,{type:"submit",run:function(){var E=this.options,F=this.getMethod(),D=F=="GET";if(E.clientValidation===false||this.form.isValid()){if(E.submitEmptyText===false){var A=this.form.items,C=[],B=function(G){if(G.el.getValue()==G.emptyText){C.push(G);G.el.dom.value=""
}if(G.isComposite&&G.rendered){G.items.each(B)}};A.each(B)}Ext.Ajax.request(Ext.apply(this.createCallback(E),{form:this.form.el.dom,url:this.getUrl(D),method:F,headers:E.headers,params:!D?this.getParams():null,isUpload:this.form.fileUpload}));if(E.submitEmptyText===false){Ext.each(C,function(G){if(G.applyEmptyText){G.applyEmptyText()}})}}else{if(E.clientValidation!==false){this.failureType=Ext.form.Action.CLIENT_INVALID;this.form.afterAction(this,false)}}},success:function(B){var A=this.processResponse(B);if(A===true||A.success){this.form.afterAction(this,true);return }if(A.errors){this.form.markInvalid(A.errors)}this.failureType=Ext.form.Action.SERVER_INVALID;this.form.afterAction(this,false)},handleResponse:function(C){if(this.form.errorReader){var B=this.form.errorReader.read(C);var F=[];if(B.records){for(var D=0,A=B.records.length;D<A;D++){var E=B.records[D];F[D]=E.data}}if(F.length<1){F=null}return{success:B.success,errors:F}}return this.decodeResponse(C)}});Ext.form.Action.Load=function(B,A){Ext.form.Action.Load.superclass.constructor.call(this,B,A);
this.reader=this.form.reader};Ext.extend(Ext.form.Action.Load,Ext.form.Action,{type:"load",run:function(){Ext.Ajax.request(Ext.apply(this.createCallback(this.options),{method:this.getMethod(),url:this.getUrl(false),headers:this.options.headers,params:this.getParams()}))},success:function(B){var A=this.processResponse(B);if(A===true||!A.success||!A.data){this.failureType=Ext.form.Action.LOAD_FAILURE;this.form.afterAction(this,false);return }this.form.clearInvalid();this.form.setValues(A.data);this.form.afterAction(this,true)},handleResponse:function(B){if(this.form.reader){var A=this.form.reader.read(B);var C=A.records&&A.records[0]?A.records[0].data:null;return{success:A.success,data:C}}return this.decodeResponse(B)}});Ext.form.Action.DirectLoad=Ext.extend(Ext.form.Action.Load,{constructor:function(B,A){Ext.form.Action.DirectLoad.superclass.constructor.call(this,B,A)},type:"directload",run:function(){var A=this.getParams();A.push(this.success,this);this.form.api.load.apply(window,A)},getParams:function(){var C=[],G={};
var E=this.form.baseParams;var F=this.options.params;Ext.apply(G,F,E);var B=this.form.paramOrder;if(B){for(var D=0,A=B.length;D<A;D++){C.push(G[B[D]])}}else{if(this.form.paramsAsHash){C.push(G)}}return C},processResponse:function(A){this.result=A;return A},success:function(A,B){if(B.type==Ext.Direct.exceptions.SERVER){A={}}Ext.form.Action.DirectLoad.superclass.success.call(this,A)}});Ext.form.Action.DirectSubmit=Ext.extend(Ext.form.Action.Submit,{constructor:function(B,A){Ext.form.Action.DirectSubmit.superclass.constructor.call(this,B,A)},type:"directsubmit",run:function(){var A=this.options;if(A.clientValidation===false||this.form.isValid()){this.success.params=this.getParams();this.form.api.submit(this.form.el.dom,this.success,this)}else{if(A.clientValidation!==false){this.failureType=Ext.form.Action.CLIENT_INVALID;this.form.afterAction(this,false)}}},getParams:function(){var C={};var A=this.form.baseParams;var B=this.options.params;Ext.apply(C,B,A);return C},processResponse:function(A){this.result=A;return A
},success:function(A,B){if(B.type==Ext.Direct.exceptions.SERVER){A={}}Ext.form.Action.DirectSubmit.superclass.success.call(this,A)}});Ext.form.Action.ACTION_TYPES={"load":Ext.form.Action.Load,"submit":Ext.form.Action.Submit,"directload":Ext.form.Action.DirectLoad,"directsubmit":Ext.form.Action.DirectSubmit};Ext.form.VTypes=function(){var C=/^[a-zA-Z_]+$/,D=/^[a-zA-Z0-9_]+$/,B=/^(\w+)([\-+.\'][\w]+)*@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/,A=/(((^https?)|(^ftp)):\/\/([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*\/?)/i;return{"email":function(E){return B.test(E)},"emailText":'This field should be an e-mail address in the format "user@example.com"',"emailMask":/[a-z0-9_\.\-\+\'@]/i,"url":function(E){return A.test(E)},"urlText":'This field should be a URL in the format "http://www.example.com"',"alpha":function(E){return C.test(E)},"alphaText":"This field should only contain letters and _","alphaMask":/[a-z_]/i,"alphanum":function(E){return D.test(E)},"alphanumText":"This field should only contain letters, numbers and _","alphanumMask":/[a-z0-9_]/i}
}();Ext.grid.GridPanel=Ext.extend(Ext.Panel,{autoExpandColumn:false,autoExpandMax:1000,autoExpandMin:50,columnLines:false,ddText:"{0} selected row{1}",deferRowRender:true,enableColumnHide:true,enableColumnMove:true,enableDragDrop:false,enableHdMenu:true,loadMask:false,minColumnWidth:25,stripeRows:false,trackMouseOver:true,stateEvents:["columnmove","columnresize","sortchange","groupchange"],view:null,bubbleEvents:[],rendered:false,viewReady:false,initComponent:function(){Ext.grid.GridPanel.superclass.initComponent.call(this);if(this.columnLines){this.cls=(this.cls||"")+" x-grid-with-col-lines"}this.autoScroll=false;this.autoWidth=false;if(Ext.isArray(this.columns)){this.colModel=new Ext.grid.ColumnModel(this.columns);delete this.columns}if(this.ds){this.store=this.ds;delete this.ds}if(this.cm){this.colModel=this.cm;delete this.cm}if(this.sm){this.selModel=this.sm;delete this.sm}this.store=Ext.StoreMgr.lookup(this.store);this.addEvents("click","dblclick","contextmenu","mousedown","mouseup","mouseover","mouseout","keypress","keydown","cellmousedown","rowmousedown","headermousedown","groupmousedown","rowbodymousedown","containermousedown","cellclick","celldblclick","rowclick","rowdblclick","headerclick","headerdblclick","groupclick","groupdblclick","containerclick","containerdblclick","rowbodyclick","rowbodydblclick","rowcontextmenu","cellcontextmenu","headercontextmenu","groupcontextmenu","containercontextmenu","rowbodycontextmenu","bodyscroll","columnresize","columnmove","sortchange","groupchange","reconfigure","viewready")
},onRender:function(C,A){Ext.grid.GridPanel.superclass.onRender.apply(this,arguments);var D=this.getGridEl();this.el.addClass("x-grid-panel");this.mon(D,{scope:this,mousedown:this.onMouseDown,click:this.onClick,dblclick:this.onDblClick,contextmenu:this.onContextMenu});this.relayEvents(D,["mousedown","mouseup","mouseover","mouseout","keypress","keydown"]);var B=this.getView();B.init(this);B.render();this.getSelectionModel().init(this)},initEvents:function(){Ext.grid.GridPanel.superclass.initEvents.call(this);if(this.loadMask){this.loadMask=new Ext.LoadMask(this.bwrap,Ext.apply({store:this.store},this.loadMask))}},initStateEvents:function(){Ext.grid.GridPanel.superclass.initStateEvents.call(this);this.mon(this.colModel,"hiddenchange",this.saveState,this,{delay:100})},applyState:function(A){var H=this.colModel,E=A.columns,G=this.store,J,F,I;if(E){for(var C=0,D=E.length;C<D;C++){J=E[C];F=H.getColumnById(J.id);if(F){I=H.getIndexById(J.id);H.setState(I,{hidden:J.hidden,width:J.width,sortable:J.sortable});if(I!=C){H.moveColumn(I,C)
}}}}if(G){J=A.sort;if(J){G[G.remoteSort?"setDefaultSort":"sort"](J.field,J.direction)}J=A.group;if(G.groupBy){if(J){G.groupBy(J)}else{G.clearGrouping()}}}var B=Ext.apply({},A);delete B.columns;delete B.sort;Ext.grid.GridPanel.superclass.applyState.call(this,B)},getState:function(){var E={columns:[]},B=this.store,D,A;for(var C=0,F;(F=this.colModel.config[C]);C++){E.columns[C]={id:F.id,width:F.width};if(F.hidden){E.columns[C].hidden=true}if(F.sortable){E.columns[C].sortable=true}}if(B){D=B.getSortState();if(D){E.sort=D}if(B.getGroupState){A=B.getGroupState();if(A){E.group=A}}}return E},afterRender:function(){Ext.grid.GridPanel.superclass.afterRender.call(this);var A=this.view;this.on("bodyresize",A.layout,A);A.layout(true);if(this.deferRowRender){if(!this.deferRowRenderTask){this.deferRowRenderTask=new Ext.util.DelayedTask(A.afterRender,this.view)}this.deferRowRenderTask.delay(10)}else{A.afterRender()}this.viewReady=true},reconfigure:function(A,B){var C=this.rendered;if(C){if(this.loadMask){this.loadMask.destroy();
this.loadMask=new Ext.LoadMask(this.bwrap,Ext.apply({},{store:A},this.initialConfig.loadMask))}}if(this.view){this.view.initData(A,B)}this.store=A;this.colModel=B;if(C){this.view.refresh(true)}this.fireEvent("reconfigure",this,A,B)},onDestroy:function(){if(this.deferRowRenderTask&&this.deferRowRenderTask.cancel){this.deferRowRenderTask.cancel()}if(this.rendered){Ext.destroy(this.view,this.loadMask)}else{if(this.store&&this.store.autoDestroy){this.store.destroy()}}Ext.destroy(this.colModel,this.selModel);this.store=this.selModel=this.colModel=this.view=this.loadMask=null;Ext.grid.GridPanel.superclass.onDestroy.call(this)},processEvent:function(A,B){this.view.processEvent(A,B)},onClick:function(A){this.processEvent("click",A)},onMouseDown:function(A){this.processEvent("mousedown",A)},onContextMenu:function(B,A){this.processEvent("contextmenu",B)},onDblClick:function(A){this.processEvent("dblclick",A)},walkCells:function(J,C,B,E,I){var H=this.colModel,F=H.getColumnCount(),A=this.store,G=A.getCount(),D=true;if(B<0){if(C<0){J--;
D=false}while(J>=0){if(!D){C=F-1}D=false;while(C>=0){if(E.call(I||this,J,C,H)===true){return[J,C]}C--}J--}}else{if(C>=F){J++;D=false}while(J<G){if(!D){C=0}D=false;while(C<F){if(E.call(I||this,J,C,H)===true){return[J,C]}C++}J++}}return null},getGridEl:function(){return this.body},stopEditing:Ext.emptyFn,getSelectionModel:function(){if(!this.selModel){this.selModel=new Ext.grid.RowSelectionModel(this.disableSelection?{selectRow:Ext.emptyFn}:null)}return this.selModel},getStore:function(){return this.store},getColumnModel:function(){return this.colModel},getView:function(){if(!this.view){this.view=new Ext.grid.GridView(this.viewConfig)}return this.view},getDragDropText:function(){var A=this.selModel.getCount();return String.format(this.ddText,A,A==1?"":"s")}});Ext.reg("grid",Ext.grid.GridPanel);Ext.grid.PivotGrid=Ext.extend(Ext.grid.GridPanel,{aggregator:"sum",renderer:undefined,initComponent:function(){Ext.grid.PivotGrid.superclass.initComponent.apply(this,arguments);this.initAxes();this.enableColumnResize=false;
this.viewConfig=Ext.apply(this.viewConfig||{},{forceFit:true});this.colModel=new Ext.grid.ColumnModel({})},getAggregator:function(){if(typeof this.aggregator=="string"){return Ext.grid.PivotAggregatorMgr.types[this.aggregator]}else{return this.aggregator}},setAggregator:function(A){this.aggregator=A},setMeasure:function(A){this.measure=A},setLeftAxis:function(B,A){this.leftAxis=B;if(A){this.view.refresh()}},setTopAxis:function(B,A){this.topAxis=B;if(A){this.view.refresh()}},initAxes:function(){var A=Ext.grid.PivotAxis;if(!(this.leftAxis instanceof A)){this.setLeftAxis(new A({orientation:"vertical",dimensions:this.leftAxis||[],store:this.store}))}if(!(this.topAxis instanceof A)){this.setTopAxis(new A({orientation:"horizontal",dimensions:this.topAxis||[],store:this.store}))}},extractData:function(){var C=this.store.data.items,O=C.length,M=[],G,F,E,D;if(O==0){return[]}var H=this.leftAxis.getTuples(),K=H.length,I=this.topAxis.getTuples(),A=I.length,B=this.getAggregator();for(F=0;F<O;F++){G=C[F];for(E=0;E<K;E++){M[E]=M[E]||[];
if(H[E].matcher(G)===true){for(D=0;D<A;D++){M[E][D]=M[E][D]||[];if(I[D].matcher(G)){M[E][D].push(G)}}}}}var J=M.length,L,N;for(F=0;F<J;F++){N=M[F];L=N.length;for(E=0;E<L;E++){M[F][E]=B(M[F][E],this.measure)}}return M},getView:function(){if(!this.view){this.view=new Ext.grid.PivotGridView(this.viewConfig)}return this.view}});Ext.reg("pivotgrid",Ext.grid.PivotGrid);Ext.grid.PivotAggregatorMgr=new Ext.AbstractManager();Ext.grid.PivotAggregatorMgr.registerType("sum",function(A,C){var E=A.length,D=0,B;for(B=0;B<E;B++){D+=A[B].get(C)}return D});Ext.grid.PivotAggregatorMgr.registerType("avg",function(A,C){var E=A.length,D=0,B;for(B=0;B<E;B++){D+=A[B].get(C)}return(D/E)||"n/a"});Ext.grid.PivotAggregatorMgr.registerType("min",function(A,C){var E=[],D=A.length,B;for(B=0;B<D;B++){E.push(A[B].get(C))}return Math.min.apply(this,E)||"n/a"});Ext.grid.PivotAggregatorMgr.registerType("max",function(A,C){var E=[],D=A.length,B;for(B=0;B<D;B++){E.push(A[B].get(C))}return Math.max.apply(this,E)||"n/a"});Ext.grid.PivotAggregatorMgr.registerType("count",function(A,B){return A.length
});Ext.grid.GridView=Ext.extend(Ext.util.Observable,{deferEmptyText:true,scrollOffset:undefined,autoFill:false,forceFit:false,sortClasses:["sort-asc","sort-desc"],sortAscText:"Sort Ascending",sortDescText:"Sort Descending",columnsText:"Columns",selectedRowClass:"x-grid3-row-selected",borderWidth:2,tdClass:"x-grid3-cell",hdCls:"x-grid3-hd",markDirty:true,cellSelectorDepth:4,rowSelectorDepth:10,rowBodySelectorDepth:10,cellSelector:"td.x-grid3-cell",rowSelector:"div.x-grid3-row",rowBodySelector:"div.x-grid3-row-body",firstRowCls:"x-grid3-row-first",lastRowCls:"x-grid3-row-last",rowClsRe:/(?:^|\s+)x-grid3-row-(first|last|alt)(?:\s+|$)/g,headerMenuOpenCls:"x-grid3-hd-menu-open",rowOverCls:"x-grid3-row-over",constructor:function(A){Ext.apply(this,A);this.addEvents("beforerowremoved","beforerowsinserted","beforerefresh","rowremoved","rowsinserted","rowupdated","refresh");Ext.grid.GridView.superclass.constructor.call(this)},masterTpl:new Ext.Template('<div class="x-grid3" hidefocus="true">','<div class="x-grid3-viewport">','<div class="x-grid3-header">','<div class="x-grid3-header-inner">','<div class="x-grid3-header-offset" style="{ostyle}">{header}</div>',"</div>",'<div class="x-clear"></div>',"</div>",'<div class="x-grid3-scroller">','<div class="x-grid3-body" style="{bstyle}">{body}</div>','<a href="#" class="x-grid3-focus" tabIndex="-1"></a>',"</div>","</div>",'<div class="x-grid3-resize-marker">&#160;</div>','<div class="x-grid3-resize-proxy">&#160;</div>',"</div>"),headerTpl:new Ext.Template('<table border="0" cellspacing="0" cellpadding="0" style="{tstyle}">',"<thead>",'<tr class="x-grid3-hd-row">{cells}</tr>',"</thead>","</table>"),bodyTpl:new Ext.Template("{rows}"),cellTpl:new Ext.Template('<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} {css}" style="{style}" tabIndex="0" {cellAttr}>','<div class="x-grid3-cell-inner x-grid3-col-{id}" unselectable="on" {attr}>{value}</div>',"</td>"),initTemplates:function(){var C=this.templates||{},D,B,F=new Ext.Template('<td class="x-grid3-hd x-grid3-cell x-grid3-td-{id} {css}" style="{style}">','<div {tooltip} {attr} class="x-grid3-hd-inner x-grid3-hd-{id}" unselectable="on" style="{istyle}">',this.grid.enableHdMenu?'<a class="x-grid3-hd-btn" href="#"></a>':"","{value}",'<img alt="" class="x-grid3-sort-icon" src="',Ext.BLANK_IMAGE_URL,'" />',"</div>","</td>"),A=['<tr class="x-grid3-row-body-tr" style="{bodyStyle}">','<td colspan="{cols}" class="x-grid3-body-cell" tabIndex="0" hidefocus="on">','<div class="x-grid3-row-body">{body}</div>',"</td>","</tr>"].join(""),E=['<table class="x-grid3-row-table" border="0" cellspacing="0" cellpadding="0" style="{tstyle}">',"<tbody>","<tr>{cells}</tr>",this.enableRowBody?A:"","</tbody>","</table>"].join("");
Ext.applyIf(C,{hcell:F,cell:this.cellTpl,body:this.bodyTpl,header:this.headerTpl,master:this.masterTpl,row:new Ext.Template('<div class="x-grid3-row {alt}" style="{tstyle}">'+E+"</div>"),rowInner:new Ext.Template(E)});for(B in C){D=C[B];if(D&&Ext.isFunction(D.compile)&&!D.compiled){D.disableFormats=true;D.compile()}}this.templates=C;this.colRe=new RegExp("x-grid3-td-([^\\s]+)","")},fly:function(A){if(!this._flyweight){this._flyweight=new Ext.Element.Flyweight(document.body)}this._flyweight.dom=A;return this._flyweight},getEditorParent:function(){return this.scroller.dom},initElements:function(){var B=Ext.Element,D=Ext.get(this.grid.getGridEl().dom.firstChild),E=new B(D.child("div.x-grid3-viewport")),C=new B(E.child("div.x-grid3-header")),A=new B(E.child("div.x-grid3-scroller"));if(this.grid.hideHeaders){C.setDisplayed(false)}if(this.forceFit){A.setStyle("overflow-x","hidden")}Ext.apply(this,{el:D,mainWrap:E,scroller:A,mainHd:C,innerHd:C.child("div.x-grid3-header-inner").dom,mainBody:new B(B.fly(A).child("div.x-grid3-body")),focusEl:new B(B.fly(A).child("a")),resizeMarker:new B(D.child("div.x-grid3-resize-marker")),resizeProxy:new B(D.child("div.x-grid3-resize-proxy"))});
this.focusEl.swallowEvent("click",true)},getRows:function(){return this.hasRows()?this.mainBody.dom.childNodes:[]},findCell:function(A){if(!A){return false}return this.fly(A).findParent(this.cellSelector,this.cellSelectorDepth)},findCellIndex:function(D,C){var B=this.findCell(D),A;if(B){A=this.fly(B).hasClass(C);if(!C||A){return this.getCellIndex(B)}}return false},getCellIndex:function(B){if(B){var A=B.className.match(this.colRe);if(A&&A[1]){return this.cm.getIndexById(A[1])}}return false},findHeaderCell:function(B){var A=this.findCell(B);return A&&this.fly(A).hasClass(this.hdCls)?A:null},findHeaderIndex:function(A){return this.findCellIndex(A,this.hdCls)},findRow:function(A){if(!A){return false}return this.fly(A).findParent(this.rowSelector,this.rowSelectorDepth)},findRowIndex:function(A){var B=this.findRow(A);return B?B.rowIndex:false},findRowBody:function(A){if(!A){return false}return this.fly(A).findParent(this.rowBodySelector,this.rowBodySelectorDepth)},getRow:function(A){return this.getRows()[A]},getCell:function(B,A){return Ext.fly(this.getRow(B)).query(this.cellSelector)[A]
},getHeaderCell:function(A){return this.mainHd.dom.getElementsByTagName("td")[A]},addRowClass:function(B,A){var C=this.getRow(B);if(C){this.fly(C).addClass(A)}},removeRowClass:function(C,A){var B=this.getRow(C);if(B){this.fly(B).removeClass(A)}},removeRow:function(A){Ext.removeNode(this.getRow(A));this.syncFocusEl(A)},removeRows:function(C,A){var B=this.mainBody.dom,D;for(D=C;D<=A;D++){Ext.removeNode(B.childNodes[C])}this.syncFocusEl(C)},getScrollState:function(){var A=this.scroller.dom;return{left:A.scrollLeft,top:A.scrollTop}},restoreScroll:function(A){var B=this.scroller.dom;B.scrollLeft=A.left;B.scrollTop=A.top},scrollToTop:function(){var A=this.scroller.dom;A.scrollTop=0;A.scrollLeft=0},syncScroll:function(){this.syncHeaderScroll();var A=this.scroller.dom;this.grid.fireEvent("bodyscroll",A.scrollLeft,A.scrollTop)},syncHeaderScroll:function(){var A=this.innerHd,B=this.scroller.dom.scrollLeft;A.scrollLeft=B;A.scrollLeft=B},updateSortIcon:function(D,C){var A=this.sortClasses,B=A[C=="DESC"?1:0],E=this.mainHd.select("td").removeClass(A);
E.item(D).addClass(B)},updateAllColumnWidths:function(){var E=this.getTotalWidth(),H=this.cm.getColumnCount(),J=this.getRows(),F=J.length,B=[],I,A,G,D,C;for(D=0;D<H;D++){B[D]=this.getColumnWidth(D);this.getHeaderCell(D).style.width=B[D]}this.updateHeaderWidth();for(D=0;D<F;D++){I=J[D];I.style.width=E;A=I.firstChild;if(A){A.style.width=E;G=A.rows[0];for(C=0;C<H;C++){G.childNodes[C].style.width=B[C]}}}this.onAllColumnWidthsUpdated(B,E)},updateColumnWidth:function(D,B){var C=this.getColumnWidth(D),H=this.getTotalWidth(),G=this.getHeaderCell(D),A=this.getRows(),E=A.length,J,F,I;this.updateHeaderWidth();G.style.width=C;for(F=0;F<E;F++){J=A[F];I=J.firstChild;J.style.width=H;if(I){I.style.width=H;I.rows[0].childNodes[D].style.width=C}}this.onColumnWidthUpdated(D,C,H)},updateColumnHidden:function(B,H){var G=this.getTotalWidth(),I=H?"none":"",F=this.getHeaderCell(B),A=this.getRows(),D=A.length,J,C,E;this.updateHeaderWidth();F.style.display=I;for(E=0;E<D;E++){J=A[E];J.style.width=G;C=J.firstChild;if(C){C.style.width=G;C.rows[0].childNodes[B].style.display=I
}}this.onColumnHiddenUpdated(B,H,G);delete this.lastViewWidth;this.layout()},doRender:function(D,S,J,A,O,Q){var G=this.templates,C=G.cell,V=G.row,L=O-1,B="width:"+this.getTotalWidth()+";",H=[],I=[],K={tstyle:B},N={},T=S.length,U,F,E,R,P,M;for(P=0;P<T;P++){E=S[P];I=[];M=P+A;for(R=0;R<O;R++){F=D[R];N.id=F.id;N.css=R===0?"x-grid3-cell-first ":(R==L?"x-grid3-cell-last ":"");N.attr=N.cellAttr="";N.style=F.style;N.value=F.renderer.call(F.scope,E.data[F.name],N,E,M,R,J);if(Ext.isEmpty(N.value)){N.value="&#160;"}if(this.markDirty&&E.dirty&&typeof E.modified[F.name]!="undefined"){N.css+=" x-grid3-dirty-cell"}I[I.length]=C.apply(N)}U=[];if(Q&&((M+1)%2===0)){U[0]="x-grid3-row-alt"}if(E.dirty){U[1]=" x-grid3-dirty-row"}K.cols=O;if(this.getRowClass){U[2]=this.getRowClass(E,M,K,J)}K.alt=U.join(" ");K.cells=I.join("");H[H.length]=V.apply(K)}return H.join("")},processRows:function(A,F){if(!this.ds||this.ds.getCount()<1){return }var D=this.getRows(),C=D.length,E,B;F=F||!this.grid.stripeRows;A=A||0;for(B=0;B<C;B++){E=D[B];if(E){E.rowIndex=B;
if(!F){E.className=E.className.replace(this.rowClsRe," ");if((B+1)%2===0){E.className+=" x-grid3-row-alt"}}}}if(A===0){Ext.fly(D[0]).addClass(this.firstRowCls)}Ext.fly(D[C-1]).addClass(this.lastRowCls)},afterRender:function(){if(!this.ds||!this.cm){return }this.mainBody.dom.innerHTML=this.renderBody()||"&#160;";this.processRows(0,true);if(this.deferEmptyText!==true){this.applyEmptyText()}this.grid.fireEvent("viewready",this.grid)},afterRenderUI:function(){var A=this.grid;this.initElements();Ext.fly(this.innerHd).on("click",this.handleHdDown,this);this.mainHd.on({scope:this,mouseover:this.handleHdOver,mouseout:this.handleHdOut,mousemove:this.handleHdMove});this.scroller.on("scroll",this.syncScroll,this);if(A.enableColumnResize!==false){this.splitZone=new Ext.grid.GridView.SplitDragZone(A,this.mainHd.dom)}if(A.enableColumnMove){this.columnDrag=new Ext.grid.GridView.ColumnDragZone(A,this.innerHd);this.columnDrop=new Ext.grid.HeaderDropZone(A,this.mainHd.dom)}if(A.enableHdMenu!==false){this.hmenu=new Ext.menu.Menu({id:A.id+"-hctx"});
this.hmenu.add({itemId:"asc",text:this.sortAscText,cls:"xg-hmenu-sort-asc"},{itemId:"desc",text:this.sortDescText,cls:"xg-hmenu-sort-desc"});if(A.enableColumnHide!==false){this.colMenu=new Ext.menu.Menu({id:A.id+"-hcols-menu"});this.colMenu.on({scope:this,beforeshow:this.beforeColMenuShow,itemclick:this.handleHdMenuClick});this.hmenu.add("-",{itemId:"columns",hideOnClick:false,text:this.columnsText,menu:this.colMenu,iconCls:"x-cols-icon"})}this.hmenu.on("itemclick",this.handleHdMenuClick,this)}if(A.trackMouseOver){this.mainBody.on({scope:this,mouseover:this.onRowOver,mouseout:this.onRowOut})}if(A.enableDragDrop||A.enableDrag){this.dragZone=new Ext.grid.GridDragZone(A,{ddGroup:A.ddGroup||"GridDD"})}this.updateHeaderSortState()},renderUI:function(){var A=this.templates;return A.master.apply({body:A.body.apply({rows:"&#160;"}),header:this.renderHeaders(),ostyle:"width:"+this.getOffsetWidth()+";",bstyle:"width:"+this.getTotalWidth()+";"})},processEvent:function(B,F){var G=F.getTarget(),A=this.grid,D=this.findHeaderIndex(G),I,H,C,E;
A.fireEvent(B,F);if(D!==false){A.fireEvent("header"+B,A,D,F)}else{I=this.findRowIndex(G);if(I!==false){H=this.findCellIndex(G);if(H!==false){C=A.colModel.getColumnAt(H);if(A.fireEvent("cell"+B,A,I,H,F)!==false){if(!C||(C.processEvent&&(C.processEvent(B,F,A,I,H)!==false))){A.fireEvent("row"+B,A,I,F)}}}else{if(A.fireEvent("row"+B,A,I,F)!==false){(E=this.findRowBody(G))&&A.fireEvent("rowbody"+B,A,I,F)}}}else{A.fireEvent("container"+B,A,F)}}},layout:function(I){if(!this.mainBody){return }var A=this.grid,D=A.getGridEl(),C=D.getSize(true),H=C.width,B=C.height,G=this.scroller,F,E,J;if(H<20||B<20){return }if(A.autoHeight){F=G.dom.style;F.overflow="visible";if(Ext.isWebKit){F.position="static"}}else{this.el.setSize(H,B);E=this.mainHd.getHeight();J=B-E;G.setSize(H,J);if(this.innerHd){this.innerHd.style.width=(H)+"px"}}if(this.forceFit||(I===true&&this.autoFill)){if(this.lastViewWidth!=H){this.fitColumns(false,false);this.lastViewWidth=H}}else{this.autoExpand();this.syncHeaderScroll()}this.onLayout(H,J)},onLayout:function(A,B){},onColumnWidthUpdated:function(C,A,B){},onAllColumnWidthsUpdated:function(A,B){},onColumnHiddenUpdated:function(B,C,A){},updateColumnText:function(A,B){},afterMove:function(A){},init:function(A){this.grid=A;
this.initTemplates();this.initData(A.store,A.colModel);this.initUI(A)},getColumnId:function(A){return this.cm.getColumnId(A)},getOffsetWidth:function(){return(this.cm.getTotalWidth()+this.getScrollOffset())+"px"},getScrollOffset:function(){return Ext.num(this.scrollOffset,Ext.getScrollBarWidth())},renderHeaders:function(){var E=this.cm,F=this.templates,A=F.hcell,D={},G=E.getColumnCount(),H=G-1,I=[],C,B;for(C=0;C<G;C++){if(C==0){B="x-grid3-cell-first "}else{B=C==H?"x-grid3-cell-last ":""}D={id:E.getColumnId(C),value:E.getColumnHeader(C)||"",style:this.getColumnStyle(C,true),css:B,tooltip:this.getColumnTooltip(C)};if(E.config[C].align=="right"){D.istyle="padding-right: 16px;"}else{delete D.istyle}I[C]=A.apply(D)}return F.header.apply({cells:I.join(""),tstyle:String.format("width: {0};",this.getTotalWidth())})},getColumnTooltip:function(A){var B=this.cm.getColumnTooltip(A);if(B){if(Ext.QuickTips.isEnabled()){return'ext:qtip="'+B+'"'}else{return'title="'+B+'"'}}return""},beforeUpdate:function(){this.grid.stopEditing(true)
},updateHeaders:function(){this.innerHd.firstChild.innerHTML=this.renderHeaders();this.updateHeaderWidth(false)},updateHeaderWidth:function(C){var B=this.innerHd.firstChild,A=this.getTotalWidth();B.style.width=this.getOffsetWidth();B.firstChild.style.width=A;if(C!==false){this.mainBody.dom.style.width=A}},focusRow:function(A){this.focusCell(A,0,false)},focusCell:function(D,B,C){this.syncFocusEl(this.ensureVisible(D,B,C));var A=this.focusEl;if(Ext.isGecko){A.focus()}else{A.focus.defer(1,A)}},resolveCell:function(G,D,F){if(!Ext.isNumber(G)){G=G.rowIndex}if(!this.ds){return null}if(G<0||G>=this.ds.getCount()){return null}D=(D!==undefined?D:0);var C=this.getRow(G),B=this.cm,E=B.getColumnCount(),A;if(!(F===false&&D===0)){while(D<E&&B.isHidden(D)){D++}A=this.getCell(G,D)}return{row:C,cell:A}},getResolvedXY:function(B){if(!B){return null}var A=B.cell,C=B.row;if(A){return Ext.fly(A).getXY()}else{return[this.el.getX(),Ext.fly(C).getY()]}},syncFocusEl:function(D,A,C){var B=D;if(!Ext.isArray(B)){D=Math.min(D,Math.max(0,this.getRows().length-1));
if(isNaN(D)){return }B=this.getResolvedXY(this.resolveCell(D,A,C))}this.focusEl.setXY(B||this.scroller.getXY())},ensureVisible:function(Q,E,D){var O=this.resolveCell(Q,E,D);if(!O||!O.row){return null}var I=O.row,F=O.cell,L=this.scroller.dom,C=I,P=0,M=this.el.dom;while(C&&C!=M){P+=C.offsetTop;C=C.offsetParent}P-=this.mainHd.dom.offsetHeight;M=parseInt(L.scrollTop,10);var N=P+I.offsetHeight,A=L.clientHeight,K=M+A;if(P<M){L.scrollTop=P}else{if(N>K){L.scrollTop=N-A}}if(D!==false){var J=parseInt(F.offsetLeft,10),H=J+F.offsetWidth,G=parseInt(L.scrollLeft,10),B=G+L.clientWidth;if(J<G){L.scrollLeft=J}else{if(H>B){L.scrollLeft=H-L.clientWidth}}}return this.getResolvedXY(O)},insertRows:function(A,H,E,G){var D=A.getCount()-1;if(!G&&H===0&&E>=D){this.fireEvent("beforerowsinserted",this,H,E);this.refresh();this.fireEvent("rowsinserted",this,H,E)}else{if(!G){this.fireEvent("beforerowsinserted",this,H,E)}var B=this.renderRows(H,E),F=this.getRow(H);if(F){if(H===0){Ext.fly(this.getRow(0)).removeClass(this.firstRowCls)}Ext.DomHelper.insertHtml("beforeBegin",F,B)
}else{var C=this.getRow(D-1);if(C){Ext.fly(C).removeClass(this.lastRowCls)}Ext.DomHelper.insertHtml("beforeEnd",this.mainBody.dom,B)}if(!G){this.processRows(H);this.fireEvent("rowsinserted",this,H,E)}else{if(H===0||H>=D){Ext.fly(this.getRow(H)).addClass(H===0?this.firstRowCls:this.lastRowCls)}}}this.syncFocusEl(H)},deleteRows:function(A,C,B){if(A.getRowCount()<1){this.refresh()}else{this.fireEvent("beforerowsdeleted",this,C,B);this.removeRows(C,B);this.processRows(C);this.fireEvent("rowsdeleted",this,C,B)}},getColumnStyle:function(B,D){var A=this.cm,F=A.config,C=D?"":F[B].css||"",E=F[B].align;C+=String.format("width: {0};",this.getColumnWidth(B));if(A.isHidden(B)){C+="display: none; "}if(E){C+=String.format("text-align: {0};",E)}return C},getColumnWidth:function(B){var C=this.cm.getColumnWidth(B),A=this.borderWidth;if(Ext.isNumber(C)){if(Ext.isBorderBox||(Ext.isWebKit&&!Ext.isSafari2)){return C+"px"}else{return Math.max(C-A,0)+"px"}}else{return C}},getTotalWidth:function(){return this.cm.getTotalWidth()+"px"},fitColumns:function(F,H,G){var A=this.grid,J=this.cm,Q=J.getTotalWidth(false),O=this.getGridInnerWidth(),P=O-Q,C=[],M=0,L=0,S,D,N;
if(O<20||P===0){return false}var E=J.getColumnCount(true),K=J.getColumnCount(false),B=E-(Ext.isNumber(G)?1:0);if(B===0){B=1;G=undefined}for(N=0;N<K;N++){if(!J.isFixed(N)&&N!==G){S=J.getColumnWidth(N);C.push(N,S);if(!J.isHidden(N)){M=N;L+=S}}}D=(O-J.getTotalWidth())/L;while(C.length){S=C.pop();N=C.pop();J.setColumnWidth(N,Math.max(A.minColumnWidth,Math.floor(S+S*D)),true)}Q=J.getTotalWidth(false);if(Q>O){var R=(B==E)?M:G,I=Math.max(1,J.getColumnWidth(R)-(Q-O));J.setColumnWidth(R,I,true)}if(F!==true){this.updateAllColumnWidths()}return true},autoExpand:function(J){var A=this.grid,H=this.cm,E=this.getGridInnerWidth(),C=H.getTotalWidth(false),F=A.autoExpandColumn;if(!this.userResized&&F){if(E!=C){var I=H.getIndexById(F),B=H.getColumnWidth(I),G=E-C+B,D=Math.min(Math.max(G,A.autoExpandMin),A.autoExpandMax);if(B!=D){H.setColumnWidth(I,D,true);if(J!==true){this.updateColumnWidth(I,D)}}}}},getGridInnerWidth:function(){return this.grid.getGridEl().getWidth(true)-this.getScrollOffset()},getColumnData:function(){var E=[],C=this.cm,F=C.getColumnCount(),A=this.ds.fields,D,B;
for(D=0;D<F;D++){B=C.getDataIndex(D);E[D]={name:Ext.isDefined(B)?B:(A.get(D)?A.get(D).name:undefined),renderer:C.getRenderer(D),scope:C.getRendererScope(D),id:C.getColumnId(D),style:this.getColumnStyle(D)}}return E},renderRows:function(H,C){var A=this.grid,F=A.store,I=A.stripeRows,E=A.colModel,G=E.getColumnCount(),D=F.getCount(),B;if(D<1){return""}H=H||0;C=Ext.isDefined(C)?C:D-1;B=F.getRange(H,C);return this.doRender(this.getColumnData(),B,F,H,G,I)},renderBody:function(){var A=this.renderRows()||"&#160;";return this.templates.body.apply({rows:A})},refreshRow:function(F){var J=this.ds,K=this.cm.getColumnCount(),C=this.getColumnData(),L=K-1,N=["x-grid3-row"],E={tstyle:String.format("width: {0};",this.getTotalWidth())},A=[],I=this.templates.cell,H,O,B,M,G,D;if(Ext.isNumber(F)){H=F;F=J.getAt(H)}else{H=J.indexOf(F)}if(!F||H<0){return }for(D=0;D<K;D++){B=C[D];if(D==0){G="x-grid3-cell-first"}else{G=(D==L)?"x-grid3-cell-last ":""}M={id:B.id,style:B.style,css:G,attr:"",cellAttr:""};M.value=B.renderer.call(B.scope,F.data[B.name],M,F,H,D,J);
if(Ext.isEmpty(M.value)){M.value="&#160;"}if(this.markDirty&&F.dirty&&typeof F.modified[B.name]!="undefined"){M.css+=" x-grid3-dirty-cell"}A[D]=I.apply(M)}O=this.getRow(H);O.className="";if(this.grid.stripeRows&&((H+1)%2===0)){N.push("x-grid3-row-alt")}if(this.getRowClass){E.cols=K;N.push(this.getRowClass(F,H,E,J))}this.fly(O).addClass(N).setStyle(E.tstyle);E.cells=A.join("");O.innerHTML=this.templates.rowInner.apply(E);this.fireEvent("rowupdated",this,H,F)},refresh:function(B){this.fireEvent("beforerefresh",this);this.grid.stopEditing(true);var A=this.renderBody();this.mainBody.update(A).setWidth(this.getTotalWidth());if(B===true){this.updateHeaders();this.updateHeaderSortState()}this.processRows(0,true);this.layout();this.applyEmptyText();this.fireEvent("refresh",this)},applyEmptyText:function(){if(this.emptyText&&!this.hasRows()){this.mainBody.update('<div class="x-grid-empty">'+this.emptyText+"</div>")}},updateHeaderSortState:function(){var B=this.ds.getSortState();if(!B){return }if(!this.sortState||(this.sortState.field!=B.field||this.sortState.direction!=B.direction)){this.grid.fireEvent("sortchange",this.grid,B)
}this.sortState=B;var C=this.cm.findColumnIndex(B.field);if(C!=-1){var A=B.direction;this.updateSortIcon(C,A)}},clearHeaderSortState:function(){if(!this.sortState){return }this.grid.fireEvent("sortchange",this.grid,null);this.mainHd.select("td").removeClass(this.sortClasses);delete this.sortState},destroy:function(){var I=this,A=I.grid,D=A.getGridEl(),H=I.dragZone,F=I.splitZone,G=I.columnDrag,E=I.columnDrop,J=I.scrollToTopTask,C,B;if(J&&J.cancel){J.cancel()}Ext.destroyMembers(I,"colMenu","hmenu");I.initData(null,null);I.purgeListeners();Ext.fly(I.innerHd).un("click",I.handleHdDown,I);if(A.enableColumnMove){C=G.dragData;B=G.proxy;Ext.destroy(G.el,B.ghost,B.el,E.el,E.proxyTop,E.proxyBottom,C.ddel,C.header);if(B.anim){Ext.destroy(B.anim)}delete B.ghost;delete C.ddel;delete C.header;G.destroy();delete Ext.dd.DDM.locationCache[G.id];delete G._domRef;delete E.proxyTop;delete E.proxyBottom;E.destroy();delete Ext.dd.DDM.locationCache["gridHeader"+D.id];delete E._domRef;delete Ext.dd.DDM.ids[E.ddGroup]}if(F){F.destroy();
delete F._domRef;delete Ext.dd.DDM.ids["gridSplitters"+D.id]}Ext.fly(I.innerHd).removeAllListeners();Ext.removeNode(I.innerHd);delete I.innerHd;Ext.destroy(I.el,I.mainWrap,I.mainHd,I.scroller,I.mainBody,I.focusEl,I.resizeMarker,I.resizeProxy,I.activeHdBtn,I._flyweight,H,F);delete A.container;if(H){H.destroy()}Ext.dd.DDM.currentTarget=null;delete Ext.dd.DDM.locationCache[D.id];Ext.EventManager.removeResizeListener(I.onWindowResize,I)},onDenyColumnHide:function(){},render:function(){if(this.autoFill){var A=this.grid.ownerCt;if(A&&A.getLayout()){A.on("afterlayout",function(){this.fitColumns(true,true);this.updateHeaders();this.updateHeaderSortState()},this,{single:true})}}else{if(this.forceFit){this.fitColumns(true,false)}else{if(this.grid.autoExpandColumn){this.autoExpand(true)}}}this.grid.getGridEl().dom.innerHTML=this.renderUI();this.afterRenderUI()},initData:function(A,E){var B=this;if(B.ds){var D=B.ds;D.un("add",B.onAdd,B);D.un("load",B.onLoad,B);D.un("clear",B.onClear,B);D.un("remove",B.onRemove,B);D.un("update",B.onUpdate,B);
D.un("datachanged",B.onDataChange,B);if(D!==A&&D.autoDestroy){D.destroy()}}if(A){A.on({scope:B,load:B.onLoad,add:B.onAdd,remove:B.onRemove,update:B.onUpdate,clear:B.onClear,datachanged:B.onDataChange})}if(B.cm){var C=B.cm;C.un("configchange",B.onColConfigChange,B);C.un("widthchange",B.onColWidthChange,B);C.un("headerchange",B.onHeaderChange,B);C.un("hiddenchange",B.onHiddenChange,B);C.un("columnmoved",B.onColumnMove,B)}if(E){delete B.lastViewWidth;E.on({scope:B,configchange:B.onColConfigChange,widthchange:B.onColWidthChange,headerchange:B.onHeaderChange,hiddenchange:B.onHiddenChange,columnmoved:B.onColumnMove})}B.ds=A;B.cm=E},onDataChange:function(){this.refresh(true);this.updateHeaderSortState();this.syncFocusEl(0)},onClear:function(){this.refresh();this.syncFocusEl(0)},onUpdate:function(B,A){this.refreshRow(A)},onAdd:function(B,A,C){this.insertRows(B,C,C+(A.length-1))},onRemove:function(B,A,C,D){if(D!==true){this.fireEvent("beforerowremoved",this,C,A)}this.removeRow(C);if(D!==true){this.processRows(C);this.applyEmptyText();
this.fireEvent("rowremoved",this,C,A)}},onLoad:function(){if(Ext.isGecko){if(!this.scrollToTopTask){this.scrollToTopTask=new Ext.util.DelayedTask(this.scrollToTop,this)}this.scrollToTopTask.delay(1)}else{this.scrollToTop()}},onColWidthChange:function(A,B,C){this.updateColumnWidth(B,C)},onHeaderChange:function(A,B,C){this.updateHeaders()},onHiddenChange:function(A,B,C){this.updateColumnHidden(B,C)},onColumnMove:function(A,C,B){this.indexMap=null;this.refresh(true);this.restoreScroll(this.getScrollState());this.afterMove(B);this.grid.fireEvent("columnmove",C,B)},onColConfigChange:function(){delete this.lastViewWidth;this.indexMap=null;this.refresh(true)},initUI:function(A){A.on("headerclick",this.onHeaderClick,this)},initEvents:Ext.emptyFn,onHeaderClick:function(B,A){if(this.headersDisabled||!this.cm.isSortable(A)){return }B.stopEditing(true);B.store.sort(this.cm.getDataIndex(A))},onRowOver:function(B,A){var C=this.findRowIndex(A);if(C!==false){this.addRowClass(C,this.rowOverCls)}},onRowOut:function(B,A){var C=this.findRowIndex(A);
if(C!==false&&!B.within(this.getRow(C),true)){this.removeRowClass(C,this.rowOverCls)}},onRowSelect:function(A){this.addRowClass(A,this.selectedRowClass)},onRowDeselect:function(A){this.removeRowClass(A,this.selectedRowClass)},onCellSelect:function(C,B){var A=this.getCell(C,B);if(A){this.fly(A).addClass("x-grid3-cell-selected")}},onCellDeselect:function(C,B){var A=this.getCell(C,B);if(A){this.fly(A).removeClass("x-grid3-cell-selected")}},handleWheel:function(A){A.stopPropagation()},onColumnSplitterMoved:function(A,B){this.userResized=true;this.grid.colModel.setColumnWidth(A,B,true);if(this.forceFit){this.fitColumns(true,false,A);this.updateAllColumnWidths()}else{this.updateColumnWidth(A,B);this.syncHeaderScroll()}this.grid.fireEvent("columnresize",A,B)},beforeColMenuShow:function(){var B=this.cm,D=B.getColumnCount(),A=this.colMenu,C;A.removeAll();for(C=0;C<D;C++){if(B.config[C].hideable!==false){A.add(new Ext.menu.CheckItem({text:B.getColumnHeader(C),itemId:"col-"+B.getColumnId(C),checked:!B.isHidden(C),disabled:B.config[C].hideable===false,hideOnClick:false}))
}}},handleHdMenuClick:function(C){var A=this.ds,B=this.cm.getDataIndex(this.hdCtxIndex);switch(C.getItemId()){case"asc":A.sort(B,"ASC");break;case"desc":A.sort(B,"DESC");break;default:this.handleHdMenuClickDefault(C)}return true},handleHdMenuClickDefault:function(C){var B=this.cm,D=C.getItemId(),A=B.getIndexById(D.substr(4));if(A!=-1){if(C.checked&&B.getColumnsBy(this.isHideableColumn,this).length<=1){this.onDenyColumnHide();return }B.setHidden(A,C.checked)}},handleHdDown:function(G,H){if(Ext.fly(H).hasClass("x-grid3-hd-btn")){G.stopEvent();var I=this.cm,E=this.findHeaderCell(H),F=this.getCellIndex(E),D=I.isSortable(F),C=this.hmenu,B=C.items,A=this.headerMenuOpenCls;this.hdCtxIndex=F;Ext.fly(E).addClass(A);B.get("asc").setDisabled(!D);B.get("desc").setDisabled(!D);C.on("hide",function(){Ext.fly(E).removeClass(A)},this,{single:true});C.show(H,"tl-bl?")}},handleHdMove:function(I){var G=this.findHeaderCell(this.activeHdRef);if(G&&!this.headersDisabled){var J=this.splitHandleWidth||5,H=this.activeHdRegion,N=G.style,K=this.cm,M="",E=I.getPageX();
if(this.grid.enableColumnResize!==false){var A=this.activeHdIndex,B=this.getPreviousVisible(A),L=K.isResizable(A),C=B&&K.isResizable(B),D=E-H.left<=J,F=H.right-E<=(!this.activeHdBtn?J:2);if(D&&C){M=Ext.isAir?"move":Ext.isWebKit?"e-resize":"col-resize"}else{if(F&&L){M=Ext.isAir?"move":Ext.isWebKit?"w-resize":"col-resize"}}}N.cursor=M}},getPreviousVisible:function(A){while(A>0){if(!this.cm.isHidden(A-1)){return A}A--}return undefined},handleHdOver:function(C,B){var D=this.findHeaderCell(B);if(D&&!this.headersDisabled){var A=this.fly(D);this.activeHdRef=B;this.activeHdIndex=this.getCellIndex(D);this.activeHdRegion=A.getRegion();if(!this.isMenuDisabled(this.activeHdIndex,A)){A.addClass("x-grid3-hd-over");this.activeHdBtn=A.child(".x-grid3-hd-btn");if(this.activeHdBtn){this.activeHdBtn.dom.style.height=(D.firstChild.offsetHeight-1)+"px"}}}},handleHdOut:function(B,A){var C=this.findHeaderCell(A);if(C&&(!Ext.isIE||!B.within(C,true))){this.activeHdRef=null;this.fly(C).removeClass("x-grid3-hd-over");C.style.cursor=""}},isMenuDisabled:function(A,B){return this.cm.isMenuDisabled(A)
},hasRows:function(){var A=this.mainBody.dom.firstChild;return A&&A.nodeType==1&&A.className!="x-grid-empty"},isHideableColumn:function(A){return !A.hidden},bind:function(A,B){this.initData(A,B)}});Ext.grid.GridView.SplitDragZone=Ext.extend(Ext.dd.DDProxy,{constructor:function(A,B){this.grid=A;this.view=A.getView();this.marker=this.view.resizeMarker;this.proxy=this.view.resizeProxy;Ext.grid.GridView.SplitDragZone.superclass.constructor.call(this,B,"gridSplitters"+this.grid.getGridEl().id,{dragElId:Ext.id(this.proxy.dom),resizeFrame:false});this.scroll=false;this.hw=this.view.splitHandleWidth||5},b4StartDrag:function(A,E){this.dragHeadersDisabled=this.view.headersDisabled;this.view.headersDisabled=true;var D=this.view.mainWrap.getHeight();this.marker.setHeight(D);this.marker.show();this.marker.alignTo(this.view.getHeaderCell(this.cellIndex),"tl-tl",[-2,0]);this.proxy.setHeight(D);var B=this.cm.getColumnWidth(this.cellIndex),C=Math.max(B-this.grid.minColumnWidth,0);this.resetConstraints();this.setXConstraint(C,1000);
this.setYConstraint(0,0);this.minX=A-C;this.maxX=A+1000;this.startPos=A;Ext.dd.DDProxy.prototype.b4StartDrag.call(this,A,E)},allowHeaderDrag:function(A){return true},handleMouseDown:function(A){var F=this.view.findHeaderCell(A.getTarget());if(F&&this.allowHeaderDrag(A)){var I=this.view.fly(F).getXY(),C=I[0],G=A.getXY(),B=G[0],E=F.offsetWidth,D=false;if((B-C)<=this.hw){D=-1}else{if((C+E)-B<=this.hw){D=0}}if(D!==false){this.cm=this.grid.colModel;var H=this.view.getCellIndex(F);if(D==-1){if(H+D<0){return }while(this.cm.isHidden(H+D)){--D;if(H+D<0){return }}}this.cellIndex=H+D;this.split=F.dom;if(this.cm.isResizable(this.cellIndex)&&!this.cm.isFixed(this.cellIndex)){Ext.grid.GridView.SplitDragZone.superclass.handleMouseDown.apply(this,arguments)}}else{if(this.view.columnDrag){this.view.columnDrag.callHandleMouseDown(A)}}}},endDrag:function(E){this.marker.hide();var A=this.view,C=Math.max(this.minX,E.getPageX()),D=C-this.startPos,B=this.dragHeadersDisabled;A.onColumnSplitterMoved(this.cellIndex,this.cm.getColumnWidth(this.cellIndex)+D);
setTimeout(function(){A.headersDisabled=B},50)},autoOffset:function(){this.setDelta(0,0)}});Ext.grid.PivotGridView=Ext.extend(Ext.grid.GridView,{colHeaderCellCls:"grid-hd-group-cell",title:"",getColumnHeaders:function(){return this.grid.topAxis.buildHeaders()},getRowHeaders:function(){return this.grid.leftAxis.buildHeaders()},renderRows:function(A,Q){var B=this.grid,L=B.extractData(),M=L.length,F=this.templates,P=B.renderer,G=typeof P=="function",T=this.getCellCls,K=typeof T=="function",D=F.cell,U=F.row,H=[],N={},C="width:"+this.getGridInnerWidth()+"px;",I,O,E,S,J;A=A||0;Q=Ext.isDefined(Q)?Q:M-1;for(S=0;S<M;S++){J=L[S];O=J.length;I=[];for(var R=0;R<O;R++){N.id=S+"-"+R;N.css=R===0?"x-grid3-cell-first ":(R==(O-1)?"x-grid3-cell-last ":"");N.attr=N.cellAttr="";N.value=J[R];if(Ext.isEmpty(N.value)){N.value="&#160;"}if(G){N.value=P(N.value)}if(K){N.css+=T(N.value)+" "}I[I.length]=D.apply(N)}H[H.length]=U.apply({tstyle:C,cols:O,cells:I.join(""),alt:""})}return H.join("")},masterTpl:new Ext.Template('<div class="x-grid3 x-pivotgrid" hidefocus="true">','<div class="x-grid3-viewport">','<div class="x-grid3-header">','<div class="x-grid3-header-title"><span>{title}</span></div>','<div class="x-grid3-header-inner">','<div class="x-grid3-header-offset" style="{ostyle}"></div>',"</div>",'<div class="x-clear"></div>',"</div>",'<div class="x-grid3-scroller">','<div class="x-grid3-row-headers"></div>','<div class="x-grid3-body" style="{bstyle}">{body}</div>','<a href="#" class="x-grid3-focus" tabIndex="-1"></a>',"</div>","</div>",'<div class="x-grid3-resize-marker">&#160;</div>','<div class="x-grid3-resize-proxy">&#160;</div>',"</div>"),initTemplates:function(){Ext.grid.PivotGridView.superclass.initTemplates.apply(this,arguments);
var A=this.templates||{};if(!A.gcell){A.gcell=new Ext.XTemplate('<td class="x-grid3-hd x-grid3-gcell x-grid3-td-{id} ux-grid-hd-group-row-{row} '+this.colHeaderCellCls+'" style="{style}">','<div {tooltip} class="x-grid3-hd-inner x-grid3-hd-{id}" unselectable="on" style="{istyle}">',this.grid.enableHdMenu?'<a class="x-grid3-hd-btn" href="#"></a>':"","{value}","</div>","</td>")}this.templates=A;this.hrowRe=new RegExp("ux-grid-hd-group-row-(\\d+)","")},initElements:function(){Ext.grid.PivotGridView.superclass.initElements.apply(this,arguments);this.rowHeadersEl=new Ext.Element(this.scroller.child("div.x-grid3-row-headers"));this.headerTitleEl=new Ext.Element(this.mainHd.child("div.x-grid3-header-title"))},getGridInnerWidth:function(){var A=Ext.grid.PivotGridView.superclass.getGridInnerWidth.apply(this,arguments);return A-this.getTotalRowHeaderWidth()},getTotalRowHeaderWidth:function(){var D=this.getRowHeaders(),C=D.length,B=0,A;for(A=0;A<C;A++){B+=D[A].width}return B},getTotalColumnHeaderHeight:function(){return this.getColumnHeaders().length*21
},getCellIndex:function(B){if(B){var A=B.className.match(this.colRe),C;if(A&&(C=A[1])){return parseInt(C.split("-")[1],10)}}return false},renderUI:function(){var B=this.templates,A=this.getGridInnerWidth();return B.master.apply({body:B.body.apply({rows:"&#160;"}),ostyle:"width:"+A+"px",bstyle:"width:"+A+"px"})},onLayout:function(B,A){Ext.grid.PivotGridView.superclass.onLayout.apply(this,arguments);var B=this.getGridInnerWidth();this.resizeColumnHeaders(B);this.resizeAllRows(B)},refresh:function(B){this.fireEvent("beforerefresh",this);this.grid.stopEditing(true);var A=this.renderBody();this.mainBody.update(A).setWidth(this.getGridInnerWidth());if(B===true){this.updateHeaders();this.updateHeaderSortState()}this.processRows(0,true);this.layout();this.applyEmptyText();this.fireEvent("refresh",this)},renderHeaders:Ext.emptyFn,fitColumns:Ext.emptyFn,resizeColumnHeaders:function(B){var A=this.grid.topAxis;if(A.rendered){A.el.setWidth(B)}},resizeRowHeaders:function(){var A=this.getTotalRowHeaderWidth(),B=String.format("margin-left: {0}px;",A);
this.rowHeadersEl.setWidth(A);this.mainBody.applyStyles(B);Ext.fly(this.innerHd).applyStyles(B);this.headerTitleEl.setWidth(A);this.headerTitleEl.setHeight(this.getTotalColumnHeaderHeight())},resizeAllRows:function(B){var D=this.getRows(),C=D.length,A;for(A=0;A<C;A++){Ext.fly(D[A]).setWidth(B);Ext.fly(D[A]).child("table").setWidth(B)}},updateHeaders:function(){this.renderGroupRowHeaders();this.renderGroupColumnHeaders()},renderGroupRowHeaders:function(){var A=this.grid.leftAxis;this.resizeRowHeaders();A.rendered=false;A.render(this.rowHeadersEl);this.setTitle(this.title)},setTitle:function(A){this.headerTitleEl.child("span").dom.innerHTML=A},renderGroupColumnHeaders:function(){var A=this.grid.topAxis;A.rendered=false;A.render(this.innerHd.firstChild)},isMenuDisabled:function(A,B){return true}});Ext.grid.PivotAxis=Ext.extend(Ext.Component,{orientation:"horizontal",defaultHeaderWidth:80,paddingWidth:7,setDimensions:function(A){this.dimensions=A},onRender:function(B,A){var C=this.orientation=="horizontal"?this.renderHorizontalRows():this.renderVerticalRows();
this.el=Ext.DomHelper.overwrite(B.dom,{tag:"table",cn:C},true)},renderHorizontalRows:function(){var H=this.buildHeaders(),A=H.length,F=[],C,G,E,D,B;for(D=0;D<A;D++){C=[];G=H[D].items;E=G.length;for(B=0;B<E;B++){C.push({tag:"td",html:G[B].header,colspan:G[B].span})}F[D]={tag:"tr",cn:C}}return F},renderVerticalRows:function(){var B=this.buildHeaders(),H=B.length,A=[],J=[],G,C,I,F,E,D;for(E=0;E<H;E++){C=B[E];F=C.width||80;G=C.items.length;for(D=0;D<G;D++){I=C.items[D];A[I.start]=A[I.start]||[];A[I.start].push({tag:"td",html:I.header,rowspan:I.span,width:Ext.isBorderBox?F:F-this.paddingWidth})}}G=A.length;for(E=0;E<G;E++){J[E]={tag:"tr",cn:A[E]}}return J},getTuples:function(){var B=new Ext.data.Store({});B.data=this.store.data.clone();B.fields=this.store.fields;var J=[],A=this.dimensions,C=A.length,H;for(H=0;H<C;H++){J.push({field:A[H].dataIndex,direction:A[H].direction||"ASC"})}B.sort(J);var E=B.data.items,L=[],I=[],M,G,D,F,K;C=E.length;for(H=0;H<C;H++){D=this.getRecordInfo(E[H]);F=D.data;G="";for(K in F){G+=F[K]+"---"
}if(L.indexOf(G)==-1){L.push(G);I.push(D)}}B.destroy();return I},getRecordInfo:function(A){var E=this.dimensions,D=E.length,G={},H,C,B;for(B=0;B<D;B++){H=E[B];C=H.dataIndex;G[C]=A.get(C)}var F=function(I){return function(J){for(var K in I){if(J.get(K)!=I[K]){return false}}return true}};return{data:G,matcher:F(G)}},buildHeaders:function(){var I=this.getTuples(),J=I.length,A=this.dimensions,E,O=A.length,C=[],L,P,K,N,M,B,H,G,F,D;for(F=0;F<O;F++){E=A[F];P=[];M=0;B=0;for(D=0;D<J;D++){L=I[D];H=D==(J-1);K=L.data[E.dataIndex];G=N!=undefined&&N!=K;if(F>0&&D>0){G=G||L.data[A[F-1].dataIndex]!=I[D-1].data[A[F-1].dataIndex]}if(G){P.push({header:N,span:M,start:B});B+=M;M=0}if(H){P.push({header:K,span:M+1,start:B});B+=M;M=0}N=K;M++}C.push({items:P,width:E.width||this.defaultHeaderWidth});N=undefined}return C}});Ext.grid.HeaderDragZone=Ext.extend(Ext.dd.DragZone,{maxDragWidth:120,constructor:function(A,C,B){this.grid=A;this.view=A.getView();this.ddGroup="gridHeader"+this.grid.getGridEl().id;Ext.grid.HeaderDragZone.superclass.constructor.call(this,C);
if(B){this.setHandleElId(Ext.id(C));this.setOuterHandleElId(Ext.id(B))}this.scroll=false},getDragData:function(C){var A=Ext.lib.Event.getTarget(C),B=this.view.findHeaderCell(A);if(B){return{ddel:B.firstChild,header:B}}return false},onInitDrag:function(A){this.dragHeadersDisabled=this.view.headersDisabled;this.view.headersDisabled=true;var B=this.dragData.ddel.cloneNode(true);B.id=Ext.id();B.style.width=Math.min(this.dragData.header.offsetWidth,this.maxDragWidth)+"px";this.proxy.update(B);return true},afterValidDrop:function(){this.completeDrop()},afterInvalidDrop:function(){this.completeDrop()},completeDrop:function(){var A=this.view,B=this.dragHeadersDisabled;setTimeout(function(){A.headersDisabled=B},50)}});Ext.grid.HeaderDropZone=Ext.extend(Ext.dd.DropZone,{proxyOffsets:[-4,-9],fly:Ext.Element.fly,constructor:function(A,C,B){this.grid=A;this.view=A.getView();this.proxyTop=Ext.DomHelper.append(document.body,{cls:"col-move-top",html:"&#160;"},true);this.proxyBottom=Ext.DomHelper.append(document.body,{cls:"col-move-bottom",html:"&#160;"},true);
this.proxyTop.hide=this.proxyBottom.hide=function(){this.setLeftTop(-100,-100);this.setStyle("visibility","hidden")};this.ddGroup="gridHeader"+this.grid.getGridEl().id;Ext.grid.HeaderDropZone.superclass.constructor.call(this,A.getGridEl().dom)},getTargetFromEvent:function(C){var A=Ext.lib.Event.getTarget(C),B=this.view.findCellIndex(A);if(B!==false){return this.view.getHeaderCell(B)}},nextVisible:function(C){var B=this.view,A=this.grid.colModel;C=C.nextSibling;while(C){if(!A.isHidden(B.getCellIndex(C))){return C}C=C.nextSibling}return null},prevVisible:function(C){var B=this.view,A=this.grid.colModel;C=C.prevSibling;while(C){if(!A.isHidden(B.getCellIndex(C))){return C}C=C.prevSibling}return null},positionIndicator:function(D,H,G){var A=Ext.lib.Event.getPageX(G),E=Ext.lib.Dom.getRegion(H.firstChild),C,F,B=E.top+this.proxyOffsets[1];if((E.right-A)<=(E.right-E.left)/2){C=E.right+this.view.borderWidth;F="after"}else{C=E.left;F="before"}if(this.grid.colModel.isFixed(this.view.getCellIndex(H))){return false}C+=this.proxyOffsets[0];
this.proxyTop.setLeftTop(C,B);this.proxyTop.show();if(!this.bottomOffset){this.bottomOffset=this.view.mainHd.getHeight()}this.proxyBottom.setLeftTop(C,B+this.proxyTop.dom.offsetHeight+this.bottomOffset);this.proxyBottom.show();return F},onNodeEnter:function(D,A,C,B){if(B.header!=D){this.positionIndicator(B.header,D,C)}},onNodeOver:function(E,B,D,C){var A=false;if(C.header!=E){A=this.positionIndicator(C.header,E,D)}if(!A){this.proxyTop.hide();this.proxyBottom.hide()}return A?this.dropAllowed:this.dropNotAllowed},onNodeOut:function(D,A,C,B){this.proxyTop.hide();this.proxyBottom.hide()},onNodeDrop:function(B,J,E,C){var D=C.header;if(D!=B){var H=this.grid.colModel,G=Ext.lib.Event.getPageX(E),A=Ext.lib.Dom.getRegion(B.firstChild),K=(A.right-G)<=((A.right-A.left)/2)?"after":"before",F=this.view.getCellIndex(D),I=this.view.getCellIndex(B);if(K=="after"){I++}if(F<I){I--}H.moveColumn(F,I);return true}return false}});Ext.grid.GridView.ColumnDragZone=Ext.extend(Ext.grid.HeaderDragZone,{constructor:function(A,B){Ext.grid.GridView.ColumnDragZone.superclass.constructor.call(this,A,B,null);
this.proxy.el.addClass("x-grid3-col-dd")},handleMouseDown:function(A){},callHandleMouseDown:function(A){Ext.grid.GridView.ColumnDragZone.superclass.handleMouseDown.call(this,A)}});Ext.grid.SplitDragZone=Ext.extend(Ext.dd.DDProxy,{fly:Ext.Element.fly,constructor:function(A,C,B){this.grid=A;this.view=A.getView();this.proxy=this.view.resizeProxy;Ext.grid.SplitDragZone.superclass.constructor.call(this,C,"gridSplitters"+this.grid.getGridEl().id,{dragElId:Ext.id(this.proxy.dom),resizeFrame:false});this.setHandleElId(Ext.id(C));this.setOuterHandleElId(Ext.id(B));this.scroll=false},b4StartDrag:function(A,D){this.view.headersDisabled=true;this.proxy.setHeight(this.view.mainWrap.getHeight());var B=this.cm.getColumnWidth(this.cellIndex);var C=Math.max(B-this.grid.minColumnWidth,0);this.resetConstraints();this.setXConstraint(C,1000);this.setYConstraint(0,0);this.minX=A-C;this.maxX=A+1000;this.startPos=A;Ext.dd.DDProxy.prototype.b4StartDrag.call(this,A,D)},handleMouseDown:function(C){var B=Ext.EventObject.setEvent(C);var A=this.fly(B.getTarget());
if(A.hasClass("x-grid-split")){this.cellIndex=this.view.getCellIndex(A.dom);this.split=A.dom;this.cm=this.grid.colModel;if(this.cm.isResizable(this.cellIndex)&&!this.cm.isFixed(this.cellIndex)){Ext.grid.SplitDragZone.superclass.handleMouseDown.apply(this,arguments)}}},endDrag:function(C){this.view.headersDisabled=false;var A=Math.max(this.minX,Ext.lib.Event.getPageX(C));var B=A-this.startPos;this.view.onColumnSplitterMoved(this.cellIndex,this.cm.getColumnWidth(this.cellIndex)+B)},autoOffset:function(){this.setDelta(0,0)}});Ext.grid.GridDragZone=function(B,A){this.view=B.getView();Ext.grid.GridDragZone.superclass.constructor.call(this,this.view.mainBody.dom,A);this.scroll=false;this.grid=B;this.ddel=document.createElement("div");this.ddel.className="x-grid-dd-wrap"};Ext.extend(Ext.grid.GridDragZone,Ext.dd.DragZone,{ddGroup:"GridDD",getDragData:function(B){var A=Ext.lib.Event.getTarget(B);var D=this.view.findRowIndex(A);if(D!==false){var C=this.grid.selModel;if(!C.isSelected(D)||B.hasModifier()){C.handleMouseDown(this.grid,D,B)
}return{grid:this.grid,ddel:this.ddel,rowIndex:D,selections:C.getSelections()}}return false},onInitDrag:function(B){var A=this.dragData;this.ddel.innerHTML=this.grid.getDragDropText();this.proxy.update(this.ddel)},afterRepair:function(){this.dragging=false},getRepairXY:function(B,A){return false},onEndDrag:function(A,B){},onValidDrop:function(A,B,C){this.hideProxy()},beforeInvalidDrop:function(A,B){}});Ext.grid.ColumnModel=Ext.extend(Ext.util.Observable,{defaultWidth:100,defaultSortable:false,constructor:function(A){if(A.columns){Ext.apply(this,A);this.setConfig(A.columns,true)}else{this.setConfig(A,true)}this.addEvents("widthchange","headerchange","hiddenchange","columnmoved","configchange");Ext.grid.ColumnModel.superclass.constructor.call(this)},getColumnId:function(A){return this.config[A].id},getColumnAt:function(A){return this.config[A]},setConfig:function(C,B){var D,F,A;if(!B){delete this.totalWidth;for(D=0,A=this.config.length;D<A;D++){F=this.config[D];if(F.setEditor){F.setEditor(null)}}}this.defaults=Ext.apply({width:this.defaultWidth,sortable:this.defaultSortable},this.defaults);
this.config=C;this.lookup={};for(D=0,A=C.length;D<A;D++){F=Ext.applyIf(C[D],this.defaults);if(Ext.isEmpty(F.id)){F.id=D}if(!F.isColumn){var E=Ext.grid.Column.types[F.xtype||"gridcolumn"];F=new E(F);C[D]=F}this.lookup[F.id]=F}if(!B){this.fireEvent("configchange",this)}},getColumnById:function(A){return this.lookup[A]},getIndexById:function(C){for(var B=0,A=this.config.length;B<A;B++){if(this.config[B].id==C){return B}}return -1},moveColumn:function(D,B){var A=this.config,C=A[D];A.splice(D,1);A.splice(B,0,C);this.dataMap=null;this.fireEvent("columnmoved",this,D,B)},getColumnCount:function(B){var C=this.config.length,D=0,A;if(B===true){for(A=0;A<C;A++){if(!this.isHidden(A)){D++}}return D}return C},getColumnsBy:function(E,D){var B=this.config,F=B.length,A=[],C,G;for(C=0;C<F;C++){G=B[C];if(E.call(D||this,G,C)===true){A[A.length]=G}}return A},isSortable:function(A){return !!this.config[A].sortable},isMenuDisabled:function(A){return !!this.config[A].menuDisabled},getRenderer:function(A){return this.config[A].renderer||Ext.grid.ColumnModel.defaultRenderer
},getRendererScope:function(A){return this.config[A].scope},setRenderer:function(A,B){this.config[A].renderer=B},getColumnWidth:function(A){var B=this.config[A].width;if(typeof B!="number"){B=this.defaultWidth}return B},setColumnWidth:function(B,C,A){this.config[B].width=C;this.totalWidth=null;if(!A){this.fireEvent("widthchange",this,B,C)}},getTotalWidth:function(B){if(!this.totalWidth){this.totalWidth=0;for(var C=0,A=this.config.length;C<A;C++){if(B||!this.isHidden(C)){this.totalWidth+=this.getColumnWidth(C)}}}return this.totalWidth},getColumnHeader:function(A){return this.config[A].header},setColumnHeader:function(A,B){this.config[A].header=B;this.fireEvent("headerchange",this,A,B)},getColumnTooltip:function(A){return this.config[A].tooltip},setColumnTooltip:function(A,B){this.config[A].tooltip=B},getDataIndex:function(A){return this.config[A].dataIndex},setDataIndex:function(A,B){this.config[A].dataIndex=B},findColumnIndex:function(C){var D=this.config;for(var B=0,A=D.length;B<A;B++){if(D[B].dataIndex==C){return B
}}return -1},isCellEditable:function(B,D){var C=this.config[B],A=C.editable;return !!(A||(!Ext.isDefined(A)&&C.editor))},getCellEditor:function(A,B){return this.config[A].getCellEditor(B)},setEditable:function(A,B){this.config[A].editable=B},isHidden:function(A){return !!this.config[A].hidden},isFixed:function(A){return !!this.config[A].fixed},isResizable:function(A){return A>=0&&this.config[A].resizable!==false&&this.config[A].fixed!==true},setHidden:function(A,B){var C=this.config[A];if(C.hidden!==B){C.hidden=B;this.totalWidth=null;this.fireEvent("hiddenchange",this,A,B)}},setEditor:function(A,B){this.config[A].setEditor(B)},destroy:function(){var B=this.config.length,A=0;for(;A<B;A++){this.config[A].destroy()}delete this.config;delete this.lookup;this.purgeListeners()},setState:function(A,B){B=Ext.applyIf(B,this.defaults);Ext.apply(this.config[A],B)}});Ext.grid.ColumnModel.defaultRenderer=function(A){if(typeof A=="string"&&A.length<1){return"&#160;"}return A};Ext.grid.AbstractSelectionModel=Ext.extend(Ext.util.Observable,{constructor:function(){this.locked=false;
Ext.grid.AbstractSelectionModel.superclass.constructor.call(this)},init:function(A){this.grid=A;if(this.lockOnInit){delete this.lockOnInit;this.locked=false;this.lock()}this.initEvents()},lock:function(){if(!this.locked){this.locked=true;var A=this.grid;if(A){A.getView().on({scope:this,beforerefresh:this.sortUnLock,refresh:this.sortLock})}else{this.lockOnInit=true}}},sortLock:function(){this.locked=true},sortUnLock:function(){this.locked=false},unlock:function(){if(this.locked){this.locked=false;var A=this.grid,B;if(A){B=A.getView();B.un("beforerefresh",this.sortUnLock,this);B.un("refresh",this.sortLock,this)}else{delete this.lockOnInit}}},isLocked:function(){return this.locked},destroy:function(){this.unlock();this.purgeListeners()}});Ext.grid.RowSelectionModel=Ext.extend(Ext.grid.AbstractSelectionModel,{singleSelect:false,constructor:function(A){Ext.apply(this,A);this.selections=new Ext.util.MixedCollection(false,function(B){return B.id});this.last=false;this.lastActive=false;this.addEvents("selectionchange","beforerowselect","rowselect","rowdeselect");
Ext.grid.RowSelectionModel.superclass.constructor.call(this)},initEvents:function(){if(!this.grid.enableDragDrop&&!this.grid.enableDrag){this.grid.on("rowmousedown",this.handleMouseDown,this)}this.rowNav=new Ext.KeyNav(this.grid.getGridEl(),{up:this.onKeyPress,down:this.onKeyPress,scope:this});this.grid.getView().on({scope:this,refresh:this.onRefresh,rowupdated:this.onRowUpdated,rowremoved:this.onRemove})},onKeyPress:function(E,B){var A=B=="up",F=A?"selectPrevious":"selectNext",D=A?-1:1,C;if(!E.shiftKey||this.singleSelect){this[F](false)}else{if(this.last!==false&&this.lastActive!==false){C=this.last;this.selectRange(this.last,this.lastActive+D);this.grid.getView().focusRow(this.lastActive);if(C!==false){this.last=C}}else{this.selectFirstRow()}}},onRefresh:function(){var F=this.grid.store,D=this.getSelections(),C=0,A=D.length,B,E;this.silent=true;this.clearSelections(true);for(;C<A;C++){E=D[C];if((B=F.indexOfId(E.id))!=-1){this.selectRow(B,true)}}if(D.length!=this.selections.getCount()){this.fireEvent("selectionchange",this)
}this.silent=false},onRemove:function(A,B,C){if(this.selections.remove(C)!==false){this.fireEvent("selectionchange",this)}},onRowUpdated:function(A,B,C){if(this.isSelected(C)){A.onRowSelect(B)}},selectRecords:function(B,E){if(!E){this.clearSelections()}var D=this.grid.store,C=0,A=B.length;for(;C<A;C++){this.selectRow(D.indexOf(B[C]),true)}},getCount:function(){return this.selections.length},selectFirstRow:function(){this.selectRow(0)},selectLastRow:function(A){this.selectRow(this.grid.store.getCount()-1,A)},selectNext:function(A){if(this.hasNext()){this.selectRow(this.last+1,A);this.grid.getView().focusRow(this.last);return true}return false},selectPrevious:function(A){if(this.hasPrevious()){this.selectRow(this.last-1,A);this.grid.getView().focusRow(this.last);return true}return false},hasNext:function(){return this.last!==false&&(this.last+1)<this.grid.store.getCount()},hasPrevious:function(){return !!this.last},getSelections:function(){return[].concat(this.selections.items)},getSelected:function(){return this.selections.itemAt(0)
},each:function(E,D){var C=this.getSelections(),B=0,A=C.length;for(;B<A;B++){if(E.call(D||this,C[B],B)===false){return false}}return true},clearSelections:function(A){if(this.isLocked()){return }if(A!==true){var C=this.grid.store,B=this.selections;B.each(function(D){this.deselectRow(C.indexOfId(D.id))},this);B.clear()}else{this.selections.clear()}this.last=false},selectAll:function(){if(this.isLocked()){return }this.selections.clear();for(var B=0,A=this.grid.store.getCount();B<A;B++){this.selectRow(B,true)}},hasSelection:function(){return this.selections.length>0},isSelected:function(A){var B=Ext.isNumber(A)?this.grid.store.getAt(A):A;return(B&&this.selections.key(B.id)?true:false)},isIdSelected:function(A){return(this.selections.key(A)?true:false)},handleMouseDown:function(D,F,E){if(E.button!==0||this.isLocked()){return }var A=this.grid.getView();if(E.shiftKey&&!this.singleSelect&&this.last!==false){var C=this.last;this.selectRange(C,F,E.ctrlKey);this.last=C;A.focusRow(F)}else{var B=this.isSelected(F);if(E.ctrlKey&&B){this.deselectRow(F)
}else{if(!B||this.getCount()>1){this.selectRow(F,E.ctrlKey||E.shiftKey);A.focusRow(F)}}}},selectRows:function(C,D){if(!D){this.clearSelections()}for(var B=0,A=C.length;B<A;B++){this.selectRow(C[B],true)}},selectRange:function(B,A,D){var C;if(this.isLocked()){return }if(!D){this.clearSelections()}if(B<=A){for(C=B;C<=A;C++){this.selectRow(C,true)}}else{for(C=B;C>=A;C--){this.selectRow(C,true)}}},deselectRange:function(C,B,A){if(this.isLocked()){return }for(var D=C;D<=B;D++){this.deselectRow(D,A)}},selectRow:function(B,D,A){if(this.isLocked()||(B<0||B>=this.grid.store.getCount())||(D&&this.isSelected(B))){return }var C=this.grid.store.getAt(B);if(C&&this.fireEvent("beforerowselect",this,B,D,C)!==false){if(!D||this.singleSelect){this.clearSelections()}this.selections.add(C);this.last=this.lastActive=B;if(!A){this.grid.getView().onRowSelect(B)}if(!this.silent){this.fireEvent("rowselect",this,B,C);this.fireEvent("selectionchange",this)}}},deselectRow:function(B,A){if(this.isLocked()){return }if(this.last==B){this.last=false
}if(this.lastActive==B){this.lastActive=false}var C=this.grid.store.getAt(B);if(C){this.selections.remove(C);if(!A){this.grid.getView().onRowDeselect(B)}this.fireEvent("rowdeselect",this,B,C);this.fireEvent("selectionchange",this)}},acceptsNav:function(C,B,A){return !A.isHidden(B)&&A.isCellEditable(B,C)},onEditorKey:function(I,G){var C=G.getKey(),D,E=this.grid,K=E.lastEdit,F=E.activeEditor,B=G.shiftKey,J,K,A,H;if(C==G.TAB){G.stopEvent();F.completeEdit();if(B){D=E.walkCells(F.row,F.col-1,-1,this.acceptsNav,this)}else{D=E.walkCells(F.row,F.col+1,1,this.acceptsNav,this)}}else{if(C==G.ENTER){if(this.moveEditorOnEnter!==false){if(B){D=E.walkCells(K.row-1,K.col,-1,this.acceptsNav,this)}else{D=E.walkCells(K.row+1,K.col,1,this.acceptsNav,this)}}}}if(D){A=D[0];H=D[1];this.onEditorSelect(A,K.row);if(E.isEditor&&E.editing){J=E.activeEditor;if(J&&J.field.triggerBlur){J.field.triggerBlur()}}E.startEditing(A,H)}},onEditorSelect:function(B,A){if(A!=B){this.selectRow(B)}},destroy:function(){Ext.destroy(this.rowNav);this.rowNav=null;
Ext.grid.RowSelectionModel.superclass.destroy.call(this)}});Ext.grid.Column=Ext.extend(Ext.util.Observable,{isColumn:true,constructor:function(B){Ext.apply(this,B);if(Ext.isString(this.renderer)){this.renderer=Ext.util.Format[this.renderer]}else{if(Ext.isObject(this.renderer)){this.scope=this.renderer.scope;this.renderer=this.renderer.fn}}if(!this.scope){this.scope=this}var A=this.editor;delete this.editor;this.setEditor(A);this.addEvents("click","contextmenu","dblclick","mousedown");Ext.grid.Column.superclass.constructor.call(this)},processEvent:function(B,D,C,E,A){return this.fireEvent(B,this,C,E,D)},destroy:function(){if(this.setEditor){this.setEditor(null)}this.purgeListeners()},renderer:function(A){return A},getEditor:function(A){return this.editable!==false?this.editor:null},setEditor:function(B){var A=this.editor;if(A){if(A.gridEditor){A.gridEditor.destroy();delete A.gridEditor}else{A.destroy()}}this.editor=null;if(B){if(!B.isXType){B=Ext.create(B,"textfield")}this.editor=B}},getCellEditor:function(B){var A=this.getEditor(B);
if(A){if(!A.startEdit){if(!A.gridEditor){A.gridEditor=new Ext.grid.GridEditor(A)}A=A.gridEditor}}return A}});Ext.grid.BooleanColumn=Ext.extend(Ext.grid.Column,{trueText:"true",falseText:"false",undefinedText:"&#160;",constructor:function(A){Ext.grid.BooleanColumn.superclass.constructor.call(this,A);var C=this.trueText,D=this.falseText,B=this.undefinedText;this.renderer=function(E){if(E===undefined){return B}if(!E||E==="false"){return D}return C}}});Ext.grid.NumberColumn=Ext.extend(Ext.grid.Column,{format:"0,000.00",constructor:function(A){Ext.grid.NumberColumn.superclass.constructor.call(this,A);this.renderer=Ext.util.Format.numberRenderer(this.format)}});Ext.grid.DateColumn=Ext.extend(Ext.grid.Column,{format:"m/d/Y",constructor:function(A){Ext.grid.DateColumn.superclass.constructor.call(this,A);this.renderer=Ext.util.Format.dateRenderer(this.format)}});Ext.grid.TemplateColumn=Ext.extend(Ext.grid.Column,{constructor:function(A){Ext.grid.TemplateColumn.superclass.constructor.call(this,A);var B=(!Ext.isPrimitive(this.tpl)&&this.tpl.compile)?this.tpl:new Ext.XTemplate(this.tpl);
this.renderer=function(D,E,C){return B.apply(C.data)};this.tpl=B}});Ext.grid.ActionColumn=Ext.extend(Ext.grid.Column,{header:"&#160;",actionIdRe:/x-action-col-(\d+)/,altText:"",constructor:function(B){var F=this,C=B.items||(F.items=[F]),A=C.length,D,E;Ext.grid.ActionColumn.superclass.constructor.call(F,B);F.renderer=function(G,H){G=Ext.isFunction(B.renderer)?B.renderer.apply(this,arguments)||"":"";H.css+=" x-action-col-cell";for(D=0;D<A;D++){E=C[D];G+='<img alt="'+(E.altText||F.altText)+'" src="'+(E.icon||Ext.BLANK_IMAGE_URL)+'" class="x-action-col-icon x-action-col-'+String(D)+" "+(E.iconCls||"")+" "+(Ext.isFunction(E.getClass)?E.getClass.apply(E.scope||this.scope||this,arguments):"")+'"'+((E.tooltip)?' ext:qtip="'+E.tooltip+'"':"")+" />"}return G}},destroy:function(){delete this.items;delete this.renderer;return Ext.grid.ActionColumn.superclass.destroy.apply(this,arguments)},processEvent:function(C,G,D,H,B){var A=G.getTarget().className.match(this.actionIdRe),F,E;if(A&&(F=this.items[parseInt(A[1],10)])){if(C=="click"){(E=F.handler||this.handler)&&E.call(F.scope||this.scope||this,D,H,B,F,G)
}else{if((C=="mousedown")&&(F.stopSelection!==false)){return false}}}return Ext.grid.ActionColumn.superclass.processEvent.apply(this,arguments)}});Ext.grid.Column.types={gridcolumn:Ext.grid.Column,booleancolumn:Ext.grid.BooleanColumn,numbercolumn:Ext.grid.NumberColumn,datecolumn:Ext.grid.DateColumn,templatecolumn:Ext.grid.TemplateColumn,actioncolumn:Ext.grid.ActionColumn};Ext.grid.RowNumberer=Ext.extend(Object,{header:"",width:23,sortable:false,constructor:function(A){Ext.apply(this,A);if(this.rowspan){this.renderer=this.renderer.createDelegate(this)}},fixed:true,hideable:false,menuDisabled:true,dataIndex:"",id:"numberer",rowspan:undefined,renderer:function(B,C,A,D){if(this.rowspan){C.cellAttr='rowspan="'+this.rowspan+'"'}return D+1}});Ext.grid.CheckboxSelectionModel=Ext.extend(Ext.grid.RowSelectionModel,{header:'<div class="x-grid3-hd-checker">&#160;</div>',width:20,sortable:false,menuDisabled:true,fixed:true,hideable:false,dataIndex:"",id:"checker",isColumn:true,constructor:function(){Ext.grid.CheckboxSelectionModel.superclass.constructor.apply(this,arguments);
if(this.checkOnly){this.handleMouseDown=Ext.emptyFn}},initEvents:function(){Ext.grid.CheckboxSelectionModel.superclass.initEvents.call(this);this.grid.on("render",function(){Ext.fly(this.grid.getView().innerHd).on("mousedown",this.onHdMouseDown,this)},this)},processEvent:function(B,D,C,E,A){if(B=="mousedown"){this.onMouseDown(D,D.getTarget());return false}else{return Ext.grid.Column.prototype.processEvent.apply(this,arguments)}},onMouseDown:function(C,B){if(C.button===0&&B.className=="x-grid3-row-checker"){C.stopEvent();var D=C.getTarget(".x-grid3-row");if(D){var A=D.rowIndex;if(this.isSelected(A)){this.deselectRow(A)}else{this.selectRow(A,true);this.grid.getView().focusRow(A)}}}},onHdMouseDown:function(C,A){if(A.className=="x-grid3-hd-checker"){C.stopEvent();var B=Ext.fly(A.parentNode);var D=B.hasClass("x-grid3-hd-checker-on");if(D){B.removeClass("x-grid3-hd-checker-on");this.clearSelections()}else{B.addClass("x-grid3-hd-checker-on");this.selectAll()}}},renderer:function(B,C,A){return'<div class="x-grid3-row-checker">&#160;</div>'
},onEditorSelect:function(B,A){if(A!=B&&!this.checkOnly){this.selectRow(B)}}});Ext.grid.CellSelectionModel=Ext.extend(Ext.grid.AbstractSelectionModel,{constructor:function(A){Ext.apply(this,A);this.selection=null;this.addEvents("beforecellselect","cellselect","selectionchange");Ext.grid.CellSelectionModel.superclass.constructor.call(this)},initEvents:function(){this.grid.on("cellmousedown",this.handleMouseDown,this);this.grid.on(Ext.EventManager.getKeyEvent(),this.handleKeyDown,this);this.grid.getView().on({scope:this,refresh:this.onViewChange,rowupdated:this.onRowUpdated,beforerowremoved:this.clearSelections,beforerowsinserted:this.clearSelections});if(this.grid.isEditor){this.grid.on("beforeedit",this.beforeEdit,this)}},beforeEdit:function(A){this.select(A.row,A.column,false,true,A.record)},onRowUpdated:function(A,B,C){if(this.selection&&this.selection.record==C){A.onCellSelect(B,this.selection.cell[1])}},onViewChange:function(){this.clearSelections(true)},getSelectedCell:function(){return this.selection?this.selection.cell:null
},clearSelections:function(B){var A=this.selection;if(A){if(B!==true){this.grid.view.onCellDeselect(A.cell[0],A.cell[1])}this.selection=null;this.fireEvent("selectionchange",this,null)}},hasSelection:function(){return this.selection?true:false},handleMouseDown:function(B,D,A,C){if(C.button!==0||this.isLocked()){return }this.select(D,A)},select:function(F,C,B,E,D){if(this.fireEvent("beforecellselect",this,F,C)!==false){this.clearSelections();D=D||this.grid.store.getAt(F);this.selection={record:D,cell:[F,C]};if(!B){var A=this.grid.getView();A.onCellSelect(F,C);if(E!==true){A.focusCell(F,C)}}this.fireEvent("cellselect",this,F,C);this.fireEvent("selectionchange",this,this.selection)}},isSelectable:function(C,B,A){return !A.isHidden(B)},onEditorKey:function(B,A){if(A.getKey()==A.TAB){this.handleKeyDown(A)}},handleKeyDown:function(F){if(!F.isNavKeyPress()){return }var C=F.getKey(),E=this.grid,K=this.selection,B=this,H=function(N,L,M){return E.walkCells(N,L,M,E.isEditor&&E.editing?B.acceptsNav:B.isSelectable,B)},J,D,A,G,I;
switch(C){case F.ESC:case F.PAGE_UP:case F.PAGE_DOWN:break;default:F.stopEvent();break}if(!K){J=H(0,0,1);if(J){this.select(J[0],J[1])}return }J=K.cell;A=J[0];G=J[1];switch(C){case F.TAB:if(F.shiftKey){D=H(A,G-1,-1)}else{D=H(A,G+1,1)}break;case F.DOWN:D=H(A+1,G,1);break;case F.UP:D=H(A-1,G,-1);break;case F.RIGHT:D=H(A,G+1,1);break;case F.LEFT:D=H(A,G-1,-1);break;case F.ENTER:if(E.isEditor&&!E.editing){E.startEditing(A,G);return }break}if(D){A=D[0];G=D[1];this.select(A,G);if(E.isEditor&&E.editing){I=E.activeEditor;if(I&&I.field.triggerBlur){I.field.triggerBlur()}E.startEditing(A,G)}}},acceptsNav:function(C,B,A){return !A.isHidden(B)&&A.isCellEditable(B,C)}});Ext.grid.EditorGridPanel=Ext.extend(Ext.grid.GridPanel,{clicksToEdit:2,forceValidation:false,isEditor:true,detectEdit:false,autoEncode:false,trackMouseOver:false,initComponent:function(){Ext.grid.EditorGridPanel.superclass.initComponent.call(this);if(!this.selModel){this.selModel=new Ext.grid.CellSelectionModel()}this.activeEditor=null;this.addEvents("beforeedit","afteredit","validateedit")
},initEvents:function(){Ext.grid.EditorGridPanel.superclass.initEvents.call(this);this.getGridEl().on("mousewheel",this.stopEditing.createDelegate(this,[true]),this);this.on("columnresize",this.stopEditing,this,[true]);if(this.clicksToEdit==1){this.on("cellclick",this.onCellDblClick,this)}else{var A=this.getView();if(this.clicksToEdit=="auto"&&A.mainBody){A.mainBody.on("mousedown",this.onAutoEditClick,this)}this.on("celldblclick",this.onCellDblClick,this)}},onResize:function(){Ext.grid.EditorGridPanel.superclass.onResize.apply(this,arguments);var A=this.activeEditor;if(this.editing&&A){A.realign(true)}},onCellDblClick:function(B,C,A){this.startEditing(C,A)},onAutoEditClick:function(C,B){if(C.button!==0){return }var E=this.view.findRowIndex(B),A=this.view.findCellIndex(B);if(E!==false&&A!==false){this.stopEditing();if(this.selModel.getSelectedCell){var D=this.selModel.getSelectedCell();if(D&&D[0]===E&&D[1]===A){this.startEditing(E,A)}}else{if(this.selModel.isSelected(E)){this.startEditing(E,A)}}}},onEditComplete:function(B,D,A){this.editing=false;
this.lastActiveEditor=this.activeEditor;this.activeEditor=null;var C=B.record,F=this.colModel.getDataIndex(B.col);D=this.postEditValue(D,A,C,F);if(this.forceValidation===true||String(D)!==String(A)){var E={grid:this,record:C,field:F,originalValue:A,value:D,row:B.row,column:B.col,cancel:false};if(this.fireEvent("validateedit",E)!==false&&!E.cancel&&String(D)!==String(A)){C.set(F,E.value);delete E.cancel;this.fireEvent("afteredit",E)}}this.view.focusCell(B.row,B.col)},startEditing:function(G,C){this.stopEditing();if(this.colModel.isCellEditable(C,G)){this.view.ensureVisible(G,C,true);var D=this.store.getAt(G),F=this.colModel.getDataIndex(C),E={grid:this,record:D,field:F,value:D.data[F],row:G,column:C,cancel:false};if(this.fireEvent("beforeedit",E)!==false&&!E.cancel){this.editing=true;var B=this.colModel.getCellEditor(C,G);if(!B){return }if(!B.rendered){B.parentEl=this.view.getEditorParent(B);B.on({scope:this,render:{fn:function(H){H.field.focus(false,true)},single:true,scope:this},specialkey:function(I,H){this.getSelectionModel().onEditorKey(I,H)
},complete:this.onEditComplete,canceledit:this.stopEditing.createDelegate(this,[true])})}Ext.apply(B,{row:G,col:C,record:D});this.lastEdit={row:G,col:C};this.activeEditor=B;B.selectSameEditor=(this.activeEditor==this.lastActiveEditor);var A=this.preEditValue(D,F);B.startEdit(this.view.getCell(G,C).firstChild,Ext.isDefined(A)?A:"");(function(){delete B.selectSameEditor}).defer(50)}}},preEditValue:function(A,C){var B=A.data[C];return this.autoEncode&&Ext.isString(B)?Ext.util.Format.htmlDecode(B):B},postEditValue:function(C,A,B,D){return this.autoEncode&&Ext.isString(C)?Ext.util.Format.htmlEncode(C):C},stopEditing:function(B){if(this.editing){var A=this.lastActiveEditor=this.activeEditor;if(A){A[B===true?"cancelEdit":"completeEdit"]();this.view.focusCell(A.row,A.col)}this.activeEditor=null}this.editing=false}});Ext.reg("editorgrid",Ext.grid.EditorGridPanel);Ext.grid.GridEditor=function(B,A){Ext.grid.GridEditor.superclass.constructor.call(this,B,A);B.monitorTab=false};Ext.extend(Ext.grid.GridEditor,Ext.Editor,{alignment:"tl-tl",autoSize:"width",hideEl:false,cls:"x-small-editor x-grid-editor",shim:false,shadow:false});
Ext.grid.PropertyRecord=Ext.data.Record.create([{name:"name",type:"string"},"value"]);Ext.grid.PropertyStore=Ext.extend(Ext.util.Observable,{constructor:function(A,B){this.grid=A;this.store=new Ext.data.Store({recordType:Ext.grid.PropertyRecord});this.store.on("update",this.onUpdate,this);if(B){this.setSource(B)}Ext.grid.PropertyStore.superclass.constructor.call(this)},setSource:function(C){this.source=C;this.store.removeAll();var B=[];for(var A in C){if(this.isEditableValue(C[A])){B.push(new Ext.grid.PropertyRecord({name:A,value:C[A]},A))}}this.store.loadRecords({records:B},{},true)},onUpdate:function(E,A,D){if(D==Ext.data.Record.EDIT){var B=A.data.value;var C=A.modified.value;if(this.grid.fireEvent("beforepropertychange",this.source,A.id,B,C)!==false){this.source[A.id]=B;A.commit();this.grid.fireEvent("propertychange",this.source,A.id,B,C)}else{A.reject()}}},getProperty:function(A){return this.store.getAt(A)},isEditableValue:function(A){return Ext.isPrimitive(A)||Ext.isDate(A)},setValue:function(D,C,A){var B=this.getRec(D);
if(B){B.set("value",C);this.source[D]=C}else{if(A){this.source[D]=C;B=new Ext.grid.PropertyRecord({name:D,value:C},D);this.store.add(B)}}},remove:function(B){var A=this.getRec(B);if(A){this.store.remove(A);delete this.source[B]}},getRec:function(A){return this.store.getById(A)},getSource:function(){return this.source}});Ext.grid.PropertyColumnModel=Ext.extend(Ext.grid.ColumnModel,{nameText:"Name",valueText:"Value",dateFormat:"m/j/Y",trueText:"true",falseText:"false",constructor:function(C,B){var D=Ext.grid,E=Ext.form;this.grid=C;D.PropertyColumnModel.superclass.constructor.call(this,[{header:this.nameText,width:50,sortable:true,dataIndex:"name",id:"name",menuDisabled:true},{header:this.valueText,width:50,resizable:false,dataIndex:"value",id:"value",menuDisabled:true}]);this.store=B;var A=new E.Field({autoCreate:{tag:"select",children:[{tag:"option",value:"true",html:this.trueText},{tag:"option",value:"false",html:this.falseText}]},getValue:function(){return this.el.dom.value=="true"}});this.editors={"date":new D.GridEditor(new E.DateField({selectOnFocus:true})),"string":new D.GridEditor(new E.TextField({selectOnFocus:true})),"number":new D.GridEditor(new E.NumberField({selectOnFocus:true,style:"text-align:left;"})),"boolean":new D.GridEditor(A,{autoSize:"both"})};
this.renderCellDelegate=this.renderCell.createDelegate(this);this.renderPropDelegate=this.renderProp.createDelegate(this)},renderDate:function(A){return A.dateFormat(this.dateFormat)},renderBool:function(A){return this[A?"trueText":"falseText"]},isCellEditable:function(A,B){return A==1},getRenderer:function(A){return A==1?this.renderCellDelegate:this.renderPropDelegate},renderProp:function(A){return this.getPropertyName(A)},renderCell:function(D,B,C){var A=this.grid.customRenderers[C.get("name")];if(A){return A.apply(this,arguments)}var E=D;if(Ext.isDate(D)){E=this.renderDate(D)}else{if(typeof D=="boolean"){E=this.renderBool(D)}}return Ext.util.Format.htmlEncode(E)},getPropertyName:function(B){var A=this.grid.propertyNames;return A&&A[B]?A[B]:B},getCellEditor:function(A,E){var B=this.store.getProperty(E),D=B.data.name,C=B.data.value;if(this.grid.customEditors[D]){return this.grid.customEditors[D]}if(Ext.isDate(C)){return this.editors.date}else{if(typeof C=="number"){return this.editors.number}else{if(typeof C=="boolean"){return this.editors["boolean"]
}else{return this.editors.string}}}},destroy:function(){Ext.grid.PropertyColumnModel.superclass.destroy.call(this);this.destroyEditors(this.editors);this.destroyEditors(this.grid.customEditors)},destroyEditors:function(B){for(var A in B){Ext.destroy(B[A])}}});Ext.grid.PropertyGrid=Ext.extend(Ext.grid.EditorGridPanel,{enableColumnMove:false,stripeRows:false,trackMouseOver:false,clicksToEdit:1,enableHdMenu:false,viewConfig:{forceFit:true},initComponent:function(){this.customRenderers=this.customRenderers||{};this.customEditors=this.customEditors||{};this.lastEditRow=null;var B=new Ext.grid.PropertyStore(this);this.propStore=B;var A=new Ext.grid.PropertyColumnModel(this,B);B.store.sort("name","ASC");this.addEvents("beforepropertychange","propertychange");this.cm=A;this.ds=B.store;Ext.grid.PropertyGrid.superclass.initComponent.call(this);this.mon(this.selModel,"beforecellselect",function(E,D,C){if(C===0){this.startEditing.defer(200,this,[D,1]);return false}},this)},onRender:function(){Ext.grid.PropertyGrid.superclass.onRender.apply(this,arguments);
this.getGridEl().addClass("x-props-grid")},afterRender:function(){Ext.grid.PropertyGrid.superclass.afterRender.apply(this,arguments);if(this.source){this.setSource(this.source)}},setSource:function(A){this.propStore.setSource(A)},getSource:function(){return this.propStore.getSource()},setProperty:function(C,B,A){this.propStore.setValue(C,B,A)},removeProperty:function(A){this.propStore.remove(A)}});Ext.reg("propertygrid",Ext.grid.PropertyGrid);Ext.grid.GroupingView=Ext.extend(Ext.grid.GridView,{groupByText:"Group By This Field",showGroupsText:"Show in Groups",hideGroupedColumn:false,showGroupName:true,startCollapsed:false,enableGrouping:true,enableGroupingMenu:true,enableNoGroups:true,emptyGroupText:"(None)",ignoreAdd:false,groupTextTpl:"{text}",groupMode:"value",cancelEditOnToggle:true,initTemplates:function(){Ext.grid.GroupingView.superclass.initTemplates.call(this);this.state={};var A=this.grid.getSelectionModel();A.on(A.selectRow?"beforerowselect":"beforecellselect",this.onBeforeRowSelect,this);if(!this.startGroup){this.startGroup=new Ext.XTemplate('<div id="{groupId}" class="x-grid-group {cls}">','<div id="{groupId}-hd" class="x-grid-group-hd" style="{style}"><div class="x-grid-group-title">',this.groupTextTpl,"</div></div>",'<div id="{groupId}-bd" class="x-grid-group-body">')
}this.startGroup.compile();if(!this.endGroup){this.endGroup="</div></div>"}},findGroup:function(A){return Ext.fly(A).up(".x-grid-group",this.mainBody.dom)},getGroups:function(){return this.hasRows()?this.mainBody.dom.childNodes:[]},onAdd:function(D,A,B){if(this.canGroup()&&!this.ignoreAdd){var C=this.getScrollState();this.fireEvent("beforerowsinserted",D,B,B+(A.length-1));this.refresh();this.restoreScroll(C);this.fireEvent("rowsinserted",D,B,B+(A.length-1))}else{if(!this.canGroup()){Ext.grid.GroupingView.superclass.onAdd.apply(this,arguments)}}},onRemove:function(E,A,B,D){Ext.grid.GroupingView.superclass.onRemove.apply(this,arguments);var C=document.getElementById(A._groupId);if(C&&C.childNodes[1].childNodes.length<1){Ext.removeNode(C)}this.applyEmptyText()},refreshRow:function(A){if(this.ds.getCount()==1){this.refresh()}else{this.isUpdating=true;Ext.grid.GroupingView.superclass.refreshRow.apply(this,arguments);this.isUpdating=false}},beforeMenuShow:function(){var C,A=this.hmenu.items,B=this.cm.config[this.hdCtxIndex].groupable===false;
if((C=A.get("groupBy"))){C.setDisabled(B)}if((C=A.get("showGroups"))){C.setDisabled(B);C.setChecked(this.canGroup(),true)}},renderUI:function(){var A=Ext.grid.GroupingView.superclass.renderUI.call(this);if(this.enableGroupingMenu&&this.hmenu){this.hmenu.add("-",{itemId:"groupBy",text:this.groupByText,handler:this.onGroupByClick,scope:this,iconCls:"x-group-by-icon"});if(this.enableNoGroups){this.hmenu.add({itemId:"showGroups",text:this.showGroupsText,checked:true,checkHandler:this.onShowGroupsClick,scope:this})}this.hmenu.on("beforeshow",this.beforeMenuShow,this)}return A},processEvent:function(B,G){Ext.grid.GroupingView.superclass.processEvent.call(this,B,G);var F=G.getTarget(".x-grid-group-hd",this.mainBody);if(F){var E=this.getGroupField(),D=this.getPrefix(E),A=F.id.substring(D.length),C=new RegExp("gp-"+Ext.escapeRe(E)+"--hd");A=A.substr(0,A.length-3);if(A||C.test(F.id)){this.grid.fireEvent("group"+B,this.grid,E,A,G)}if(B=="mousedown"&&G.button==0){this.toggleGroup(F.parentNode)}}},onGroupByClick:function(){var A=this.grid;
this.enableGrouping=true;A.store.groupBy(this.cm.getDataIndex(this.hdCtxIndex));A.fireEvent("groupchange",A,A.store.getGroupState());this.beforeMenuShow();this.refresh()},onShowGroupsClick:function(A,B){this.enableGrouping=B;if(B){this.onGroupByClick()}else{this.grid.store.clearGrouping();this.grid.fireEvent("groupchange",this,null)}},toggleRowIndex:function(C,A){if(!this.canGroup()){return }var B=this.getRow(C);if(B){this.toggleGroup(this.findGroup(B),A)}},toggleGroup:function(C,B){var A=Ext.get(C),D=Ext.util.Format.htmlEncode(A.id);B=Ext.isDefined(B)?B:A.hasClass("x-grid-group-collapsed");if(this.state[D]!==B){if(this.cancelEditOnToggle!==false){this.grid.stopEditing(true)}this.state[D]=B;A[B?"removeClass":"addClass"]("x-grid-group-collapsed")}},toggleAllGroups:function(C){var B=this.getGroups();for(var D=0,A=B.length;D<A;D++){this.toggleGroup(B[D],C)}},expandAllGroups:function(){this.toggleAllGroups(true)},collapseAllGroups:function(){this.toggleAllGroups(false)},getGroup:function(A,E,G,H,B,F){var C=this.cm.config[B],D=G?G.call(C.scope,A,{},E,H,B,F):String(A);
if(D===""||D==="&#160;"){D=C.emptyGroupText||this.emptyGroupText}return D},getGroupField:function(){return this.grid.store.getGroupState()},afterRender:function(){if(!this.ds||!this.cm){return }Ext.grid.GroupingView.superclass.afterRender.call(this);if(this.grid.deferRowRender){this.updateGroupWidths()}},afterRenderUI:function(){Ext.grid.GroupingView.superclass.afterRenderUI.call(this);if(this.enableGroupingMenu&&this.hmenu){this.hmenu.add("-",{itemId:"groupBy",text:this.groupByText,handler:this.onGroupByClick,scope:this,iconCls:"x-group-by-icon"});if(this.enableNoGroups){this.hmenu.add({itemId:"showGroups",text:this.showGroupsText,checked:true,checkHandler:this.onShowGroupsClick,scope:this})}this.hmenu.on("beforeshow",this.beforeMenuShow,this)}},renderRows:function(){var A=this.getGroupField();var E=!!A;if(this.hideGroupedColumn){var B=this.cm.findColumnIndex(A),D=Ext.isDefined(this.lastGroupField);if(!E&&D){this.mainBody.update("");this.cm.setHidden(this.cm.findColumnIndex(this.lastGroupField),false);delete this.lastGroupField
}else{if(E&&!D){this.lastGroupField=A;this.cm.setHidden(B,true)}else{if(E&&D&&A!==this.lastGroupField){this.mainBody.update("");var C=this.cm.findColumnIndex(this.lastGroupField);this.cm.setHidden(C,false);this.lastGroupField=A;this.cm.setHidden(B,true)}}}}return Ext.grid.GroupingView.superclass.renderRows.apply(this,arguments)},doRender:function(C,F,N,A,M,O){if(F.length<1){return""}if(!this.canGroup()||this.isUpdating){return Ext.grid.GroupingView.superclass.doRender.apply(this,arguments)}var V=this.getGroupField(),L=this.cm.findColumnIndex(V),S,G="width:"+this.getTotalWidth()+";",E=this.cm.config[L],B=E.groupRenderer||E.renderer,P=this.showGroupName?(E.groupName||E.header)+": ":"",U=[],I,Q,R,K;for(Q=0,R=F.length;Q<R;Q++){var H=A+Q,J=F[Q],D=J.data[V];S=this.getGroup(D,J,B,H,L,N);if(!I||I.group!=S){K=this.constructId(D,V,L);this.state[K]=!(Ext.isDefined(this.state[K])?!this.state[K]:this.startCollapsed);I={group:S,gvalue:D,text:P+S,groupId:K,startRow:H,rs:[J],cls:this.state[K]?"":"x-grid-group-collapsed",style:G};
U.push(I)}else{I.rs.push(J)}J._groupId=K}var T=[];for(Q=0,R=U.length;Q<R;Q++){S=U[Q];this.doGroupStart(T,S,C,N,M);T[T.length]=Ext.grid.GroupingView.superclass.doRender.call(this,C,S.rs,N,S.startRow,M,O);this.doGroupEnd(T,S,C,N,M)}return T.join("")},getGroupId:function(A){var B=this.getGroupField();return this.constructId(A,B,this.cm.findColumnIndex(B))},constructId:function(C,E,A){var B=this.cm.config[A],D=B.groupRenderer||B.renderer,F=(this.groupMode=="value")?C:this.getGroup(C,{data:{}},D,0,A,this.ds);return this.getPrefix(E)+Ext.util.Format.htmlEncode(F)},canGroup:function(){return this.enableGrouping&&!!this.getGroupField()},getPrefix:function(A){return this.grid.getGridEl().id+"-gp-"+A+"-"},doGroupStart:function(A,D,B,E,C){A[A.length]=this.startGroup.apply(D)},doGroupEnd:function(A,D,B,E,C){A[A.length]=this.endGroup},getRows:function(){if(!this.canGroup()){return Ext.grid.GroupingView.superclass.getRows.call(this)}var G=[],C=this.getGroups(),F,E=0,A=C.length,D,B;for(;E<A;++E){F=C[E].childNodes[1];if(F){F=F.childNodes;
for(D=0,B=F.length;D<B;++D){G[G.length]=F[D]}}}return G},updateGroupWidths:function(){if(!this.canGroup()||!this.hasRows()){return }var C=Math.max(this.cm.getTotalWidth(),this.el.dom.offsetWidth-this.getScrollOffset())+"px";var B=this.getGroups();for(var D=0,A=B.length;D<A;D++){B[D].firstChild.style.width=C}},onColumnWidthUpdated:function(C,A,B){Ext.grid.GroupingView.superclass.onColumnWidthUpdated.call(this,C,A,B);this.updateGroupWidths()},onAllColumnWidthsUpdated:function(A,B){Ext.grid.GroupingView.superclass.onAllColumnWidthsUpdated.call(this,A,B);this.updateGroupWidths()},onColumnHiddenUpdated:function(B,C,A){Ext.grid.GroupingView.superclass.onColumnHiddenUpdated.call(this,B,C,A);this.updateGroupWidths()},onLayout:function(){this.updateGroupWidths()},onBeforeRowSelect:function(B,A){this.toggleRowIndex(A,true)}});Ext.grid.GroupingView.GROUP_ID=1000;
Ext.MessageBox.showCentered=function(A){Ext.MessageBox.getDialog().el.alignTo(A,"c-c?")};Ext.override(Ext.form.TextField,{validateOnBlur:false});Ext.isIE9=function(){if(navigator.userAgent.indexOf("MSIE 9")>0){return true}return false}();Ext.getAttribute=function(B){var A=B.getAttribute.createDelegate(B);if(Ext.isIE9){A=B.dom.getAttribute.createDelegate(B.dom)}return A};Ext.override(Ext.Element,{scrollIntoView:function(I,P,D){var G=new Number(0),R=Ext.getDom(I)||Ext.getBody().dom,A=this.dom,M=this.getOffsetsTo(R),C=R.scrollTop||G,F=R.scrollLeft||G,N=M[0]+F,J=M[1]+C,S=J+A.offsetHeight,K=N+A.offsetWidth,H=R.clientHeight,L=C+H,E=F+R.clientWidth,B=[F,C];if(A.offsetHeight>H||J<C){B[1]=J}else{if(S>L){B[1]=S-H}}if(P!==false){if(A.offsetWidth>R.clientWidth||N<F){B[0]=N}else{if(K>E){B[0]=K-R.clientWidth}}}if(B[0]==F&&B[1]==C){Ext.isObject(D)&&D.callback&&D.callback.call(D.scope||window);return }if(D&&Ext.lib.Anim){var Q,L=null,O;if(Ext.isObject(D)){Q=D.duration;L=D.scope?D.callback.createDelegate(D.scope):D.callback;O=D.easing
}Ext.fly(I).animate({scroll:{"to":B}},Q,L,O,"scroll")}else{R.scrollLeft=B[0];R.scrollTop=B[1]}return this}});
function _globalEval(script){eval(script)}var Resource={_loaded:[],_loading:{},_css:function(A){Ext.util.CSS.createStyleSheet(A)},loadCss:function(A){var B=document.createElement("link");B.setAttribute("rel","stylesheet");B.setAttribute("type","text/css");B.setAttribute("href",A);document.getElementsByTagName("head")[0].appendChild(B)},loadSynch:function(B){if(window.XMLHttpRequest){request=new XMLHttpRequest()}else{if(window.ActiveXObject){request=new ActiveXObject("Microsoft.XMLHTTP")}else{console.log("Unable to load script, unable to find XMLHttpRequest provider.");return }}if(request){request.open("GET",B,false);request.send(null);var A=request.status;if(A>=200&&A<300){}else{console.log("Unable to load script '"+B+"'. Status returned was "+A);return }}try{this._eval(request.responseText)}catch(C){console.log("Script Error '"+B+"'",C)}},load:function(){if(Ext.type(arguments[0])=="array"){var A=[].concat(arguments[0]);A.push(arguments[1]);Resource.load.apply(Resource,A);return }var A=Array.prototype.slice.call(arguments),D=A[A.length-1],E,C;
if(Ext.type(D)=="function"){E=D;C=window;A.pop()}else{if(Ext.type(D)=="object"){E=D.onLoad;C=D.scope;A.pop()}}var B=(function(){if(A.length>0){var F=A[0];A.shift();if(Resource._loaded.indexOf(F)==-1){if(!Resource._loading[F]){Resource._loading[F]=[B];Resource._requestResource(F)}else{Resource._loading[F].push(B)}}else{B()}}else{if(E){E.call(C)}}});B()},_requestResource:function(A){Ext.Ajax.request({url:A,method:"GET",params:{deps:"true"},disableCaching:false,success:function(B){Resource._eval(B.responseText);Resource._loaded.push(A);if(Resource._loading[A].length){Ext.each(Resource._loading[A],function(C){C()});delete Resource._loading[A]}}})},_eval:function(script){try{if(window.execScript){return window.execScript(script)}else{return window.eval(script)}}catch(e){try{return _globalEval(script)}catch(ne){console.error("Error loading resource",ne)}}}};
(function(){window.Service=function(C){var D=window["_svc_"+C.replace(/\./g,"_")+((C.match("Service$"))?"":"Service")];return D};var B=function(E){var C={};for(var D in E){C[D]=A(E[D])}};var A=function(C){return function(){var D=[].concat(arguments);C.apply(this,D)}}})();
Ext.namespace("shared.util.Date");shared.util.Date={dateToUTC:function(A){return new Date(A.getTime()+(A.getTimezoneOffset()*60000))},dateUTCToTZ:function(A,B){return new Date(A.getTime()+(B*1000))},utcMidnight:function(A){return Date.UTC(A.getFullYear(),A.getMonth(),A.getDate())},dateToTZ:function(A,B){return shared.util.Date.dateUTCToTZ(shared.util.Date.dateToUTC(A),B)},patterns:{ISO8601Long:"Y-m-d H:i:s",ISO8601Short:"Y-m-d",ShortDate:"n/j/Y",LongDate:"l, F d, Y",FullDateTime:"l, F d, Y g:i:s A",MonthDay:"F d",MonthDayYear:"d M Y",ShortTime:"g:i A",LongTime:"g:i:s A",SortableDateTime:"Y-m-d\\TH:i:s",UniversalSortableDateTime:"Y-m-d H:i:sO",YearMonth:"F, Y",MonthDayYear:"F d, Y",MonthDayYearDateTime:"F d, Y H:i:s",ShortMonthDayYearDateTime:"d M Y @ H:i"}};shared.util.Date.patterns.DateTimeWithGMTOffset="d M Y g:i P";shared.util.Date.patterns.Default="d M Y g:iA";shared.util.Date.patterns.Log="d M Y g:i:sA";shared.util.Date.patterns.GridDate="d M Y";shared.util.Date.patterns.Schedule="D d M Y";shared.util.Date.patterns.ScheduleDateAndTime="D d M Y g:iA";
shared.util.Date.patterns.ActionLogSnapshot="M d, Y g:i:s A";Date.prototype.toUTC=function(){return shared.util.Date.dateToUTC(this)};Date.prototype.toTZ=function(A){return shared.util.Date.dateToTZ(this,A)};
Ext.namespace("shared.util");shared.util.HumanTime={scanBuffer:6000,disabled:false,init:function(){if(this._inited){this.scan(true);return }this.updateTask=new Ext.util.DelayedTask(this.scan,this);this.updateTask.delay(1);this._inited=true},markup:function(A,B){return"<span class='human-time' ext:qtip='"+A.format(shared.util.Date.patterns.MonthDayYearDateTime)+"'q:timeFormat='"+(B||"normal")+"' q:time='"+A.getTime()+"'> "+shared.util.HumanTime.get(A)+"</span>"},scan:function(A){Ext.getBody().select("span.human-time").each(function(C){var B=new Date(parseInt(Ext.fly(C).getAttribute("time","q")));var D=C.dom.getAttribute("defaultText");C.update(this.get(B,D,Ext.fly(C).getAttribute("timeFormat","q")))},this);if(!A){this.updateTask.delay(this.scanBuffer)}},getUserOffsetTime:function(B,E){if(!B||B=="NaN"||!(B instanceof Date)||B.toString()=="Invalid Date"){return B}var D=B.getTime();var G=B.getTimezoneOffset()*60000;var C=D+G;var F=C+window.currentUser.gmtShift;var A=new Date(F);if(E==undefined){return A.format(shared.util.Date.patterns.Default)
}else{return A.format(E)}},get:function(C,B,F){var H=F==="short";if(!C||C=="NaN"||!(C instanceof Date)||C.toString()=="Invalid Date"){return B||C}if(!shared.util.HumanTime.disabled){var E=(new Date().getTime()-C.getTime())/1000;if(E<10&&!H){return $L("4655e13f-5735-4ca5-9ce2-af39399c826b","a few seconds ago")}if(E<60){if(H){return $L("fee463ba-8ed4-4fa6-b91c-ccd8188d70c6","< 1 minute ago")}else{return $L("50c9bc38-dbcc-4f53-a7e8-2ec52aa0f7db","less then a minute ago")}}if(E<3600){var A=Math.floor(E/60);if(A<2){return $L("ae7cbec6-624b-437c-a588-70602c799a36","a minute ago")}else{return $L("17abf6a0-3b1c-4685-8c23-3f6a04857236","$1 minutes ago",A)}}if(E<86400){var D=Math.floor(E/3600);if(D<2){return $L("00497947-aae7-4b6d-bce8-6602dc7c15b8","an hour ago")}else{return $L("64d95bd2-a139-44ba-835c-a034596a3089","$1 hours ago",D)}}if(E<604800){var G=Math.floor(E/86400);if(G<2){return $L("51fa7b02-f655-45e5-89c6-aceaa129437c","yesterday")}else{return $L("ffe52708-004d-4c59-ab03-3564b5a8b10c","$1 days ago",G)}}}return C.format(shared.util.Date.patterns.MonthDayYear)
}};Ext.util.Format.humanTime=shared.util.HumanTime.markup;
$L=function(){var B=$L._parseArguments(arguments);var A=B.text,C=B.params;if($L.editorMarkup){return $L._markup(A,B.uuid,C,B.original)}return $L._replace(A,C)};Ext.apply($L,{editorMarkup:false,plain:function(){var A=$L._parseArguments(arguments);return $L._replace(A.text,A.params)},attr:function(){var A=$L._parseArguments(arguments);return $L._markup(A.text,A.uuid,A.params,A.original).replace('"',"&quot;").replace("'","&apos;")},_markup:function(A,C,D,B){return'<i18nString q:stringId="'+C+'" q:originalText="'+escape(B)+'">'+$L._replace(A,D)+"</i18nString>"},_parseArguments:function(A){var C={};var F;if(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(A[0])){var D=C.uuid=A[0];C.text=D&&window.__i18nStrings&&__i18nStrings[D]?__i18nStrings[D]:A[1];C.original=A[1];F=2}else{C.text=A[0];C.original=A[0];F=1}var E=[];for(var B=F;B<A.length;B++){E.push(A[B])}C.params=E;return C},_replace:function(B,A){if(A.length>0){for(var C=0;C<A.length;C++){B=B.replace("$"+(C+1),A[C])}}return B}});$L.Time=$L.time=function(A){return A?A.format(shared.util.Date.patterns.Default):null
};$L.humanTime=function(A,B){shared.util.HumanTime.init();if(B){return'<span x:qtip="'+$L.time(A)+'">'+shared.util.HumanTime.get(A)+"</span>"}else{return shared.util.HumanTime.get(A)}};
Ext.namespace("shared.dwr");(function(){var A=shared.dwr.RequestTemplate={withTemplate:function(C){var B=A._getContext(C);B.tplData.rootTpl=A._unwrapArgs(arguments);return B},withClassTemplate:function(D,C){var B=A._getContext(D);var F=[];for(var E=2;E<arguments.length;E++){F.push(arguments[E])}B.tplData.classTemplates[C]=F;return B},withClassTemplates:function(C,E){var B=A._getContext(C);for(var D in E){B.tplData.classTemplates[D]=E[D]}return B},exec:function(B){return A._getContext(B).apply(window,A._unwrapArgs(arguments))},_applyToFunction:function(C){for(var B in A){if(B.indexOf("_")!=0){C[B]=A._bindFn(C,A[B])}}},_bindFn:function(C,B){return function(){var D=[C];Ext.each(arguments,function(E){D.push(E)});return B.apply(window,D)}},_getContext:function(B){return A._isValidContext(B)?B:A._buildContext(B)},_buildContext:function(C){var B=function(){var D=[A._buildTemplateArgument(B)];Ext.each(arguments,function(E){D.push(E)});return C.apply(window,D)};B.tplData={root:[],classTemplates:{}};A._applyToFunction(B);
return B},_isValidContext:function(B){return B.tplData!=undefined},_unwrapArgs:function(C){var B=[];for(var D=1;D<C.length;D++){B.push(C[D])}return B},_buildTemplateArgument:function(B){return{$RT$:true,rt:B.tplData.rootTpl,ct:B.tplData.classTemplates}}}})();
if(typeof dwr=="undefined"){dwr={}}(function(){if(!dwr.engine){dwr.engine={}}dwr.engine.setErrorHandler=function(handler){dwr.engine._errorHandler=handler};dwr.engine.setWarningHandler=function(handler){dwr.engine._warningHandler=handler};dwr.engine.setTextHtmlHandler=function(handler){dwr.engine._textHtmlHandler=handler};dwr.engine.setPollStatusHandler=function(handler){dwr.engine._pollStatusHandler=handler};dwr.engine.setTimeout=function(timeout){dwr.engine._timeout=timeout};dwr.engine.setPreHook=function(handler){dwr.engine._preHook=handler};dwr.engine.setPostHook=function(handler){dwr.engine._postHook=handler};dwr.engine.setHeaders=function(headers){dwr.engine._headers=headers};dwr.engine.setAttributes=function(attributes){dwr.engine._attributes=attributes};dwr.engine.setOrdered=function(ordered){dwr.engine._ordered=ordered};dwr.engine.setAsync=function(async){dwr.engine._async=async};dwr.engine.setActiveReverseAjax=function(activeReverseAjax){if(activeReverseAjax){if(dwr.engine._activeReverseAjax){return 
}if(!dwr.engine._retryIntervals||dwr.engine._retryIntervals.length==0){dwr.engine._retryIntervals=dwr.engine._defaultRetryIntervals}dwr.engine._activeReverseAjax=true;dwr.engine._poll()}else{if(dwr.engine._activeReverseAjax&&dwr.engine._pollBatch){dwr.engine.transport.abort(dwr.engine._pollBatch)}dwr.engine._activeReverseAjax=false}};dwr.engine.setNotifyServerOnPageUnload=function(notify,asyncUnload){dwr.engine._asyncUnload=(asyncUnload!==undefined)?asyncUnload:false;dwr.engine._isNotifyServerOnPageUnload=notify};dwr.engine.setMaxRetries=function(maxRetries){dwr.engine._maxRetries=maxRetries};dwr.engine.setRetryIntervals=function(intervalsArray){dwr.engine._retryIntervals=intervalsArray};dwr.engine.defaultErrorHandler=function(message,ex){dwr.engine._debug("Error: "+ex.name+", "+ex.message,true);if(message==null||message==""){alert("A server error has occurred.")}else{if(message.indexOf("0x80040111")!=-1){dwr.engine._debug(message)}else{alert(message)}}};dwr.engine.defaultWarningHandler=function(message,ex){dwr.engine._debug(message)
};dwr.engine.defaultPollStatusHandler=function(newStatus,ex){if(newStatus==false&&dwr.engine._errorHandler){dwr.engine._errorHandler(ex.message,ex)}};dwr.engine.beginBatch=function(){if(dwr.engine._batch){dwr.engine._handleError(null,{name:"dwr.engine.batchBegun",message:"Batch already begun"});return }dwr.engine._batch=dwr.engine.batch.create()};dwr.engine.endBatch=function(options){var batch=dwr.engine._batch;if(batch==null){dwr.engine._handleError(null,{name:"dwr.engine.batchNotBegun",message:"No batch in progress"});return }dwr.engine._batch=null;if(batch.map.callCount==0){return }if(options){dwr.engine.batch.merge(batch,options)}if(batch.async&&(dwr.engine._ordered||dwr.engine._internalOrdered)&&dwr.engine._batchesLength!=0){dwr.engine._batchQueue[dwr.engine._batchQueue.length]=batch}else{return dwr.engine.transport.send(batch)}};dwr.engine.openInDownload=function(data){var div=document.createElement("div");document.body.appendChild(div);div.innerHTML="<iframe width='0' height='0' scrolling='no' frameborder='0' src='"+data+"'></iframe>"
};dwr.version={major:parseInt("3"),minor:parseInt("0"),revision:parseInt("0"),build:parseInt("-1"),title:"RC3-dev",label:"3.0.0-RC3-dev"};dwr.engine._allowGetForSafariButMakeForgeryEasier="false";dwr.engine._scriptTagProtection="throw 'allowScriptTagRemoting is false.';";if(typeof pathToDwrServlet!="undefined"){dwr.engine._pathToDwrServlet=pathToDwrServlet}else{dwr.engine._pathToDwrServlet="/freescan-front/dwr"}dwr.engine._contextPath="/";dwr.engine._pollWithXhr="false";dwr.engine._pollOnline=true;dwr.engine._ModePlainCall="/call/plaincall/";dwr.engine._ModePlainPoll="/call/plainpoll/";dwr.engine._ModeHtmlCall="/call/htmlcall/";dwr.engine._ModeHtmlPoll="/call/htmlpoll/";dwr.engine._async=Boolean("true");dwr.engine._pageId=null;dwr.engine._dwrSessionId=null;dwr.engine._scriptSessionId="";dwr.engine._preHook=null;dwr.engine._postHook=null;dwr.engine._batches={};dwr.engine._batchesLength=0;dwr.engine._batchQueue=[];dwr.engine._ordered=false;dwr.engine._internalOrdered=false;dwr.engine._batch=null;dwr.engine._timeout=0;
dwr.engine._activeReverseAjax=false;dwr.engine._pollBatch=null;dwr.engine._pollCometInterval=200;dwr.engine.SSL_SECURE_URL="about:blank";dwr.engine._retries=0;dwr.engine._maxRetries=-1;dwr.engine._retryIntervals=[];dwr.engine._defaultRetryIntervals=[1,1,10];dwr.engine._textHtmlHandler=null;dwr.engine._headers=null;dwr.engine._attributes=null;dwr.engine._nextBatchId=0;dwr.engine._instanceId=-1;dwr.engine._propnames=["async","timeout","errorHandler","warningHandler","textHtmlHandler"];dwr.engine._partialResponseNo=0;dwr.engine._partialResponseYes=1;dwr.engine._partialResponseFlush=2;dwr.engine._isNotifyServerOnPageUnload=false;dwr.engine._asyncUnload=false;dwr.engine._mappedClasses={};dwr.engine._errorHandler=dwr.engine.defaultErrorHandler;dwr.engine._warningHandler=dwr.engine.defaultWarningHandler;dwr.engine._pollStatusHandler=dwr.engine.defaultPollStatusHandler;dwr.engine._postSeperator="\n";dwr.engine._defaultInterceptor=function(data){return data};dwr.engine._urlRewriteHandler=dwr.engine._defaultInterceptor;
dwr.engine._contentRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._replyRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._excludeObjectAttributes={"$dwrClassName":true,"$dwrByRef":true,"$_dwrConversionRef":true};dwr.engine._unloading=false;dwr.engine._unloader=function(){dwr.engine._unloading=true;dwr.engine._batchQueue.length=0;var batch;for(var batchId in dwr.engine._batches){batch=dwr.engine._batches[batchId];if(batch&&batch.map){if(batch.req){batch.req.abort()}}}if(dwr.engine._isNotifyServerOnPageUnload){dwr.engine._debug("calling unloader for: "+dwr.engine._scriptSessionId);batch={map:{callCount:1,"c0-scriptName":"__System","c0-methodName":"pageUnloaded","c0-id":0},paramCount:0,isPoll:false,async:dwr.engine._asyncUnload,headers:{},preHooks:[],postHooks:[],timeout:dwr.engine._timeout,errorHandler:null,warningHandler:null,textHtmlHandler:null,path:dwr.engine._pathToDwrServlet,handlers:[{exceptionHandler:null,callback:null}]};dwr.engine.transport.send(batch);dwr.engine._isNotifyServerOnPageUnload=false
}};function ignoreIfUnloading(batch,f){if(dwr.engine._unloading){return }if(batch&&batch.async==false){f()}else{setTimeout(function(){if(dwr.engine._unloading){return }f()},100)}}dwr.engine._execute=function(path,scriptName,methodName,args){var singleShot=false;if(dwr.engine._batch==null){dwr.engine.beginBatch();singleShot=true}var batch=dwr.engine._batch;if(batch.path==null){batch.path=path}else{if(batch.path!=path){dwr.engine._handleError(batch,{name:"dwr.engine.multipleServlets",message:"Can't batch requests to multiple DWR Servlets."});return }}dwr.engine.batch.addCall(batch,scriptName,methodName,args);batch.map.callCount++;if(singleShot){return dwr.engine.endBatch()}};dwr.engine._poll=function(){if(!dwr.engine._activeReverseAjax){return }dwr.engine._pollBatch=dwr.engine.batch.createPoll();dwr.engine.transport.send(dwr.engine._pollBatch)};dwr.engine._eval=function(script){if(script==null){return null}if(script==""){dwr.engine._debug("Warning: blank script",true);return null}return eval(script)};dwr.engine._callPostHooks=function(batch){if(batch.postHooks){for(var i=0;
i<batch.postHooks.length;i++){batch.postHooks[i]()}batch.postHooks=null}};dwr.engine._handleError=function(batch,ex){var errorHandlers=[];if(batch&&batch.isPoll){dwr.engine._handlePollRetry(batch,ex)}else{if(batch){for(var i=0;i<batch.map.callCount;i++){var handlers=batch.handlers[i];if(!handlers.completed){if(typeof handlers.errorHandler=="function"){errorHandlers.push(handlers.errorHandler)}handlers.completed=true}}dwr.engine.batch.remove(batch)}ignoreIfUnloading(batch,function(){dwr.engine._prepareException(ex);var errorHandler;while(errorHandlers.length>0){errorHandler=errorHandlers.shift();errorHandler(ex.message,ex)}if(batch&&typeof batch.errorHandler=="function"){batch.errorHandler(ex.message,ex)}else{if(dwr.engine._errorHandler){dwr.engine._errorHandler(ex.message,ex)}}})}};dwr.engine._handleTextHtmlResponse=function(batch,textHtmlObj){if(typeof batch.textHtmlHandler=="function"){batch.textHtmlHandler(textHtmlObj)}else{if(dwr.engine._textHtmlHandler){dwr.engine._textHtmlHandler(textHtmlObj)}}};dwr.engine._handlePollRetry=function(batch,ex){var retryInterval;
if(dwr.engine._retries<dwr.engine._retryIntervals.length){retryInterval=dwr.engine._retryIntervals[dwr.engine._retries]*1000}else{retryInterval=dwr.engine._retryIntervals[dwr.engine._retryIntervals.length-1]*1000}if(dwr.engine._maxRetries==-1||dwr.engine._retries<=dwr.engine._maxRetries){if(dwr.engine._retries==dwr.engine._retryIntervals.length-1){dwr.engine._debug("poll retry - going offline: "+retryInterval/1000+" seconds");dwr.engine._handlePollStatusChange(false,ex,batch)}dwr.engine._retries++;dwr.engine.batch.remove(batch);dwr.engine._debug("poll retry - interval: "+retryInterval/1000+" seconds");setTimeout(dwr.engine._poll,retryInterval)}else{dwr.engine._debug("max retries reached, stop polling for server status.")}};dwr.engine._handlePollStatusChange=function(newStatus,ex,batch){if(batch.isPoll){var changed=(dwr.engine._pollOnline!=newStatus);dwr.engine._pollOnline=newStatus;if(changed&&typeof dwr.engine._pollStatusHandler=="function"){dwr.engine._pollStatusHandler(newStatus,ex)}if(newStatus){dwr.engine._retries=0
}}};dwr.engine._handleWarning=function(batch,ex){ignoreIfUnloading(batch,function(){dwr.engine._prepareException(ex);if(batch&&typeof batch.warningHandler=="function"){batch.warningHandler(ex.message,ex)}else{if(dwr.engine._warningHandler){dwr.engine._warningHandler(ex.message,ex)}}if(batch){dwr.engine.batch.remove(batch)}})};dwr.engine._prepareException=function(ex){if(typeof ex=="string"){ex={name:"unknown",message:ex}}if(ex.message==null){ex.message=""}if(ex.name==null){ex.name="unknown"}};dwr.engine._delegate=(function(){function F(){}return(function(obj){F.prototype=obj;return new F()})})();dwr.engine._createFromMap=function(map){var obj=new this();for(prop in map){if(map.hasOwnProperty(prop)){obj[prop]=map[prop]}}return obj};dwr.engine._global=(function(){return this}).call(null);dwr.engine._getObject=function(prop){var parts=prop.split(".");var value;var scope=dwr.engine._global;while(parts.length>0){var currprop=parts.shift();value=scope[currprop];if(parts.length>0&&value==null){return undefined}scope=value
}return value};dwr.engine._setObject=function(prop,obj){var parts=prop.split(".");var level;var scope=dwr.engine._global;while(parts.length>0){var currprop=parts.shift();if(parts.length==0){scope[currprop]=obj}else{level=scope[currprop];if(level==null){scope[currprop]=level={}}scope=level}}};dwr.engine._debug=function(message,stacktrace){var written=false;try{if(window.console){if(stacktrace&&window.console.trace){window.console.trace()}window.console.log(message);written=true}else{if(window.opera&&window.opera.postError){window.opera.postError(message);written=true}else{if(window.Jaxer&&Jaxer.isOnServer){Jaxer.Log.info(message);written=true}}}}catch(ex){}if(!written){var debug=document.getElementById("dwr-debug");if(debug){var contents=message+"<br/>"+debug.innerHTML;if(contents.length>2048){contents=contents.substring(0,2048)}debug.innerHTML=contents}}};dwr.engine.remote={handleCallback:function(batchId,callId,reply){var batch=dwr.engine._batches[batchId];if(batch==null){dwr.engine._debug("Warning: batch == null in remoteHandleCallback for batchId="+batchId,true);
return }batch.reply=reply;try{var handlers=batch.handlers[callId];if(!handlers){dwr.engine._debug("Warning: Missing handlers. callId="+callId,true)}else{batch.handlers[callId].completed=true;if(typeof handlers.callback=="function"){handlers.callback.apply(handlers.callbackScope,[reply,handlers.callbackArg])}}}catch(ex){dwr.engine._handleError(batch,ex)}},handleFunctionCall:function(id,args){var func=dwr.engine.serialize.remoteFunctions[id];func.apply(window,args)},handleObjectCall:function(id,methodName,args){var obj=dwr.engine.serialize.remoteFunctions[id];obj[methodName].apply(obj,args)},handleSetCall:function(id,propertyName,data){var obj=dwr.engine.serialize.remoteFunctions[id];obj[propertyName]=data},handleFunctionClose:function(id){delete dwr.engine.serialize.remoteFunctions[id]},handleException:function(batchId,callId,ex){var batch=dwr.engine._batches[batchId];if(batch==null){dwr.engine._debug("Warning: null batch in remoteHandleException",true);return }var handlers=batch.handlers[callId];batch.handlers[callId].completed=true;
if(handlers==null){dwr.engine._debug("Warning: null handlers in remoteHandleException",true);return }if(ex.message==undefined){ex.message=""}if(typeof handlers.exceptionHandler=="function"){handlers.exceptionHandler.call(handlers.exceptionScope,ex.message,ex,handlers.exceptionArg)}else{if(typeof batch.errorHandler=="function"){batch.errorHandler(ex.message,ex)}}},handleBatchException:function(ex,batchId){var searchBatch=(dwr.engine._receivedBatch==null&&batchId!=null);if(searchBatch){dwr.engine._receivedBatch=dwr.engine._batches[batchId]}if(ex.message==undefined){ex.message=""}dwr.engine._handleError(dwr.engine._receivedBatch,ex);if(searchBatch){dwr.engine._receivedBatch=null;dwr.engine.batch.remove(dwr.engine._batches[batchId])}},handleNewWindowName:function(windowName){dwr.engine._debug("Setting new window name: "+windowName);if(window.name!=null&&window.name!=""){dwr.engine._debug("- Warning: This will override existing name of: "+window.name)}window.name=windowName},handleForeign:function(windowName,script){var foreign=window.open(null,windowName);
if(foreign!=null){if(foreign.dwr!=null){foreign.dwr.engine._eval(script)}else{dwr.engine._debug("Found window, but DWR did not exist in it")}}else{dwr.engine._debug("Could not find window")}},pollCometDisabled:function(ex,batchId){dwr.engine.setActiveReverseAjax(false);var searchBatch=(dwr.engine._receivedBatch==null&&batchId!=null);if(searchBatch){dwr.engine._receivedBatch=dwr.engine._batches[batchId]}if(ex.message==undefined){ex.message=""}dwr.engine._handleError(dwr.engine._receivedBatch,ex);if(searchBatch){dwr.engine._receivedBatch=null;dwr.engine.batch.remove(dwr.engine._batches[batchId])}},newObject:function(dwrClassName,memberMap){var classfunc=dwr.engine._mappedClasses[dwrClassName];if(classfunc&&classfunc.createFromMap){return classfunc.createFromMap(memberMap)}else{memberMap.$dwrClassName=dwrClassName;return memberMap}}};dwr.engine.serialize={domDocument:["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"],remoteFunctions:{},funcId:0,toDomElement:function(xml){return dwr.engine.serialize.toDomDocument(xml).documentElement
},toDomDocument:function(xml){var dom;if(window.DOMParser){var parser=new DOMParser();dom=parser.parseFromString(xml,"text/xml");if(!dom.documentElement||dom.documentElement.tagName=="parsererror"){var message=dom.documentElement.firstChild.data;message+="\n"+dom.documentElement.firstChild.nextSibling.firstChild.data;throw message}return dom}else{if(window.ActiveXObject){dom=dwr.engine.util.newActiveXObject(dwr.engine.serialize.domDocument);dom.loadXML(xml);return dom}else{var div=document.createElement("div");div.innerHTML=xml;return div}}},convert:function(batch,directrefmap,otherrefmap,data,name,depth){if(data==null){batch.map[name]="null:null";return }switch(typeof data){case"boolean":batch.map[name]="boolean:"+data;break;case"number":batch.map[name]="number:"+data;break;case"string":batch.map[name]="string:"+encodeURIComponent(data);break;case"object":var ref=dwr.engine.serialize.lookup(directrefmap,otherrefmap,data,name);var objstr=Object.prototype.toString.call(data);if(data.$dwrByRef){batch.map[name]=dwr.engine.serialize.convertByReference(batch,directrefmap,otherrefmap,data,name,depth+1)
}else{if(ref!=null){batch.map[name]=ref}else{if(objstr=="[object String]"){batch.map[name]="string:"+encodeURIComponent(data)}else{if(objstr=="[object Boolean]"){batch.map[name]="boolean:"+data}else{if(objstr=="[object Number]"){batch.map[name]="number:"+data}else{if(objstr=="[object Date]"){batch.map[name]="date:"+data.getTime()}else{if(objstr=="[object Array]"){batch.map[name]=dwr.engine.serialize.convertArray(batch,directrefmap,otherrefmap,data,name,depth+1)}else{if(data&&data.tagName&&data.tagName.toLowerCase()=="input"&&data.type&&data.type.toLowerCase()=="file"){batch.fileUpload=true;batch.map[name]=data}else{if(data.nodeName&&data.nodeType){batch.map[name]=dwr.engine.serialize.convertXml(batch,directrefmap,otherrefmap,data,name,depth+1)}else{batch.map[name]=dwr.engine.serialize.convertObject(batch,directrefmap,otherrefmap,data,name,depth+1)}}}}}}}}}break;case"function":if(depth==0){batch.map[name]=dwr.engine.serialize.convertByReference(batch,directrefmap,otherrefmap,data,name,depth+1)}break;default:dwr.engine._handleWarning(null,{name:"dwr.engine.unexpectedType",message:"Unexpected type: "+typeof data+", attempting default converter."});
batch.map[name]="default:"+data;break}},convertByReference:function(batch,directrefmap,otherrefmap,data,name,depth){var funcId="f"+dwr.engine.serialize.funcId;dwr.engine.serialize.remoteFunctions[funcId]=data;dwr.engine.serialize.funcId++;return"byref:"+funcId},convertArray:function(batch,directrefmap,otherrefmap,data,name,depth){var childName,i;if(dwr.engine.isIE<=7){var buf=["array:["];for(i=0;i<data.length;i++){if(i!=0){buf.push(",")}batch.paramCount++;childName="c"+dwr.engine._batch.map.callCount+"-e"+batch.paramCount;dwr.engine.serialize.convert(batch,directrefmap,otherrefmap,data[i],childName,depth+1);buf.push("reference:");buf.push(childName)}buf.push("]");reply=buf.join("")}else{var reply="array:[";for(i=0;i<data.length;i++){if(i!=0){reply+=","}batch.paramCount++;childName="c"+dwr.engine._batch.map.callCount+"-e"+batch.paramCount;dwr.engine.serialize.convert(batch,directrefmap,otherrefmap,data[i],childName,depth+1);reply+="reference:";reply+=childName}reply+="]"}return reply},convertObject:function(batch,directrefmap,otherrefmap,data,name,depth){var reply="Object_"+dwr.engine.serialize.getObjectClassName(data).replace(/:/g,"?")+":{";
var elementset=(data.constructor&&data.constructor.$dwrClassMembers?data.constructor.$dwrClassMembers:data);var element;for(element in elementset){if(typeof data[element]!="function"&&!dwr.engine._excludeObjectAttributes[element]){batch.paramCount++;var childName="c"+dwr.engine._batch.map.callCount+"-e"+batch.paramCount;dwr.engine.serialize.convert(batch,directrefmap,otherrefmap,data[element],childName,depth+1);reply+=encodeURIComponent(element)+":reference:"+childName+", "}}if(reply.substring(reply.length-2)==", "){reply=reply.substring(0,reply.length-2)}reply+="}";return reply},convertXml:function(batch,directrefmap,otherrefmap,data,name,depth){var output;if(window.XMLSerializer){output=new XMLSerializer().serializeToString(data)}else{if(data.toXml){output=data.toXml}else{output=data.innerHTML}}return"xml:"+encodeURIComponent(output)},lookup:function(directrefmap,otherrefmap,data,name){var ref;if("$_dwrConversionRef" in data){ref=data.$_dwrConversionRef;if(ref&&directrefmap[ref]!=data){ref=null}}if(ref==null){for(r in otherrefmap){if(otherrefmap[r]==data){ref=r;
break}}}if(ref!=null){return"reference:"+ref}try{data.$_dwrConversionRef=name;directrefmap[name]=data}catch(err){otherrefmap[name]=data}return null},cleanup:function(directrefmap){for(var refName in directrefmap){var data=directrefmap[refName];try{delete data.$_dwrConversionRef}catch(err){data.$_dwrConversionRef=undefined}}},getObjectClassName:function(obj){if(obj.$dwrClassName){return obj.$dwrClassName}else{if(obj.constructor&&obj.constructor.$dwrClassName){return obj.constructor.$dwrClassName}else{return"Object"}}}};dwr.engine.transport={send:function(batch){dwr.engine.transport.updateDwrSessionFromCookie();if(!dwr.engine._dwrSessionId){dwr.engine._internalOrdered=true;var idbatch={map:{callCount:1,"c0-scriptName":"__System","c0-methodName":"generateId","c0-id":0},paramCount:0,isPoll:false,async:batch.async,headers:{},preHooks:[],postHooks:[function(){dwr.engine._internalOrdered=false}],timeout:dwr.engine._timeout,errorHandler:batch.errorHandler,warningHandler:batch.warningHandler,textHtmlHandler:batch.textHtmlHandler,path:batch.path,handlers:[{exceptionHandler:null,callback:function(id){dwr.engine.transport.updateDwrSessionFromCookie();
if(!dwr.engine._dwrSessionId){dwr.engine.transport.setDwrSession(id)}dwr.engine.transport.send2(batch)}}]};dwr.engine.transport.send2(idbatch)}else{dwr.engine.transport.send2(batch)}},send2:function(batch){dwr.engine.batch.prepareToSend(batch);var isCrossDomain=false;if(batch.path==null){batch.path=dwr.engine._pathToDwrServlet}if(batch.path.indexOf("http://")==0||batch.path.indexOf("https://")==0){var dwrShortPath=batch.path.split("/",3).join("/");var hrefShortPath=window.location.href.split("/",3).join("/");isCrossDomain=(dwrShortPath!=hrefShortPath)}if(batch.fileUpload){if(isCrossDomain){throw new Error("Cross domain file uploads are not possible with this release of DWR")}batch.transport=dwr.engine.transport.iframe}else{if(isCrossDomain&&!dwr.engine.isJaxerServer){batch.transport=dwr.engine.transport.scriptTag}else{batch.transport=dwr.engine.transport.xhr}}return batch.transport.send(batch)},complete:function(batch){dwr.engine.batch.validate(batch);dwr.engine.transport.remove(batch)},abort:function(batch){var transport=batch.transport;
dwr.engine.transport.remove(batch);if(transport.abort){transport.abort(batch)}dwr.engine._handleError(batch,{name:"dwr.engine.timeout",message:"Timeout"})},remove:function(batch){if(batch.transport){dwr.engine._callPostHooks(batch);batch.transport.remove(batch);batch.transport=null}dwr.engine.batch.remove(batch)},setDwrSession:function(dwrsess){dwr.engine._dwrSessionId=dwrsess;document.cookie="DWRSESSIONID="+dwrsess+"; path="+(dwr.engine._contextPath!=""?dwr.engine._contextPath:"/");dwr.engine._scriptSessionId=dwrsess+"/"+dwr.engine._pageId},updateDwrSessionFromCookie:function(){if(!dwr.engine._dwrSessionId){var match=document.cookie.match(/(?:^|; )DWRSESSIONID=([^;]+)/);if(match){dwr.engine.transport.setDwrSession(match[1])}}},xhr:{httpMethod:"POST",XMLHTTP:["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],send:function(batch){if(batch.isPoll){batch.map.partialResponse=dwr.engine._partialResponseYes}if(batch.isPoll&&dwr.engine._pollWithXhr=="true"){batch.map.partialResponse=dwr.engine._partialResponseNo
}if(batch.isPoll&&dwr.engine.isIE){batch.map.partialResponse=dwr.engine._partialResponseNo}if(window.XMLHttpRequest){batch.req=new XMLHttpRequest()}else{if(window.ActiveXObject){batch.req=dwr.engine.util.newActiveXObject(dwr.engine.transport.xhr.XMLHTTP)}}if(batch.async==true){batch.req.onreadystatechange=function(){if(typeof dwr!="undefined"){dwr.engine.transport.xhr.stateChange(batch)}}}httpMethod=dwr.engine.transport.xhr.httpMethod;var indexSafari=navigator.userAgent.indexOf("Safari/");if(indexSafari>=0){var version=navigator.userAgent.substring(indexSafari+7);if(parseInt(version,10)<400){if(dwr.engine._allowGetForSafariButMakeForgeryEasier=="true"){httpMethod="GET"}else{dwr.engine._handleWarning(batch,{name:"dwr.engine.oldSafari",message:"Safari GET support disabled. See getahead.org/dwr/server/servlet and allowGetForSafariButMakeForgeryEasier."})}}}batch.mode=batch.isPoll?dwr.engine._ModePlainPoll:dwr.engine._ModePlainCall;var request=dwr.engine.batch.constructRequest(batch,httpMethod);try{batch.req.open(httpMethod,request.url,batch.async);
try{for(var prop in batch.headers){var value=batch.headers[prop];if(typeof value=="string"){batch.req.setRequestHeader(prop,value)}}if(!batch.headers["Content-Type"]){batch.req.setRequestHeader("Content-Type","text/plain")}}catch(ex){dwr.engine._handleWarning(batch,ex)}batch.req.send(request.body);if(batch.async==false){dwr.engine.transport.xhr.stateChange(batch)}}catch(ex){dwr.engine._handleError(batch,ex)}if(batch.isPoll&&batch.map.partialResponse==dwr.engine._partialResponseYes){dwr.engine.transport.xhr.checkCometPoll()}return batch.reply},stateChange:function(batch){var toEval;if(batch.completed){dwr.engine._debug("Error: _stateChange() with batch.completed");return }var req=batch.req;var status=0;try{if(req.readyState>=2){status=req.status}}catch(ignore){}if(status==0&&req.readyState<4){return }if(status==200){dwr.engine._handlePollStatusChange(true,null,batch)}if(req.readyState!=4){return }if(dwr.engine._unloading&&!dwr.engine.isJaxerServer){dwr.engine._debug("Ignoring reply from server as page is unloading.");
return }try{var reply=req.responseText;reply=dwr.engine._replyRewriteHandler(reply);if(status!=200){var statusText="statusText could not be read.";try{statusText=req.statusText}catch(ex){}dwr.engine._handleError(batch,{name:"dwr.engine.http."+status,message:statusText})}else{if(reply==null||reply==""){dwr.engine._handleError(batch,{name:"dwr.engine.missingData",message:"No data received from server"})}else{var contentType=req.getResponseHeader("Content-Type");if(dwr.engine.isJaxerServer){contentType="text/javascript"}if(!contentType.match(/^text\/plain/)&&!contentType.match(/^text\/javascript/)){if(contentType.match(/^text\/html/)){dwr.engine._handleTextHtmlResponse(batch,{status:status,responseText:reply,contentType:contentType})}else{dwr.engine._handleWarning(batch,{name:"dwr.engine.invalidMimeType",message:"Invalid content type: '"+contentType+"'"})}}else{if(batch.isPoll&&batch.map.partialResponse==dwr.engine._partialResponseYes){dwr.engine.transport.xhr.processCometResponse(reply,batch)}else{if(reply.search("//#DWR")==-1){dwr.engine._handleWarning(batch,{name:"dwr.engine.invalidReply",message:"Invalid reply from server"})
}else{toEval=reply}}}}}}catch(ex){dwr.engine._handleWarning(batch,ex)}dwr.engine._receivedBatch=batch;if(toEval!=null){toEval=toEval.replace(dwr.engine._scriptTagProtection,"")}dwr.engine._eval(toEval);dwr.engine._receivedBatch=null;dwr.engine.transport.complete(batch)},checkCometPoll:function(){var req=dwr.engine._pollBatch&&dwr.engine._pollBatch.req;if(req){var text=req.responseText;if(text!=null){dwr.engine.transport.xhr.processCometResponse(text,dwr.engine._pollBatch)}}if(dwr.engine._pollBatch){setTimeout(dwr.engine.transport.xhr.checkCometPoll,dwr.engine._pollCometInterval)}},processCometResponse:function(response,batch){if(batch.charsProcessed==response.length){return }if(response.length==0){batch.charsProcessed=0;return }var firstStartTag=response.indexOf("//#DWR-START#",batch.charsProcessed);if(firstStartTag==-1){batch.charsProcessed=response.length;return }var lastEndTag=response.lastIndexOf("//#DWR-END#");if(lastEndTag==-1){return }if(response.charCodeAt(lastEndTag+11)==13&&response.charCodeAt(lastEndTag+12)==10){batch.charsProcessed=lastEndTag+13
}else{batch.charsProcessed=lastEndTag+11}var exec=response.substring(firstStartTag+13,lastEndTag);try{dwr.engine._receivedBatch=batch;dwr.engine._eval(exec);dwr.engine._receivedBatch=null}catch(ex){if(dwr!=null){dwr.engine._handleError(batch,ex)}}},abort:function(batch){if(batch.req){batch.req.abort()}},remove:function(batch){if(batch.req){delete batch.req}}},iframe:{httpMethod:"POST",send:function(batch){if(document.body==null){setTimeout(function(){dwr.engine.transport.iframe.send(batch)},100);return }batch.httpMethod=dwr.engine.transport.iframe.httpMethod;if(batch.fileUpload){batch.httpMethod="POST";batch.encType="multipart/form-data"}var idname=dwr.engine.transport.iframe.getId(batch);batch.div1=document.createElement("div");document.body.appendChild(batch.div1);batch.div1.innerHTML="<iframe src='"+dwr.engine.SSL_SECURE_URL+"' frameborder='0' style='width:0px;height:0px;border:0;display:none;' id='"+idname+"' name='"+idname+"'></iframe>";batch.iframe=batch.div1.firstChild;batch.document=document;batch.iframe.batch=batch;
dwr.engine.transport.iframe.beginLoader(batch,idname)},getId:function(batch){return batch.isPoll?"dwr-if-poll-"+batch.map.batchId:"dwr-if-"+batch.map.batchId},beginLoader:function(batch,idname){if(batch.iframe.contentWindow.document.body==null){setTimeout(function(){dwr.engine.transport.iframe.beginLoader(batch,idname)},100);return }if(batch.isPoll){batch.map.partialResponse=dwr.engine._partialResponseYes}batch.mode=batch.isPoll?dwr.engine._ModeHtmlPoll:dwr.engine._ModeHtmlCall;var request=dwr.engine.batch.constructRequest(batch,batch.httpMethod);if(batch.httpMethod=="GET"){batch.iframe.setAttribute("src",request.url)}else{batch.div2=document.createElement("div");document.body.appendChild(batch.div2);batch.div2.innerHTML="<form"+(batch.encType?" encType='"+batch.encType+"' encoding='"+batch.encType+"'":"")+"></form>";batch.form=batch.div2.firstChild;batch.form.setAttribute("action",request.url);batch.form.setAttribute("target",idname);batch.form.setAttribute("style","display:none");batch.form.setAttribute("method",batch.httpMethod);
for(var prop in batch.map){var value=batch.map[prop];if(typeof value!="function"){if(value&&value.tagName&&value.tagName.toLowerCase()=="input"&&value.type&&value.type.toLowerCase()=="file"){var clone=value.cloneNode(true);value.removeAttribute("id",prop);value.setAttribute("name",prop);value.style.display="none";value.parentNode.insertBefore(clone,value);value.parentNode.removeChild(value);batch.form.appendChild(value)}else{var formInput=batch.document.createElement("input");formInput.setAttribute("type","hidden");formInput.setAttribute("name",prop);formInput.setAttribute("value",value);batch.form.appendChild(formInput)}}}batch.form.submit()}},remote:{beginIFrameResponse:function(iframe,batchId){if(iframe!=null){dwr.engine._receivedBatch=iframe.batch}},endIFrameResponse:function(batchId){dwr.engine._receivedBatch=dwr.engine._batches[batchId];dwr.engine.transport.complete(dwr.engine._receivedBatch);dwr.engine._receivedBatch=null}},remove:function(batch){setTimeout(function(){if(batch.iframe&&batch.iframe.parentNode){batch.iframe.parentNode.removeChild(batch.iframe);
batch.iframe=null}if(batch.div1&&batch.div1.parentNode){batch.div1.parentNode.removeChild(batch.div1);batch.div1=null}if(batch.form&&batch.form.parentNode){batch.form.parentNode.removeChild(batch.form);batch.form=null}if(batch.div2&&batch.div2.parentNode){batch.div2.parentNode.removeChild(batch.div2);batch.div2=null}},100)}},scriptTag:{send:function(batch){if(batch.isPoll){batch.map.partialResponse=dwr.engine._partialResponseNo}batch.mode=batch.isPoll?dwr.engine._ModePlainPoll:dwr.engine._ModePlainCall;var request=dwr.engine.batch.constructRequest(batch,"GET");batch.script=document.createElement("script");batch.script.id="dwr-st-"+batch.map.batchId;batch.script.src=request.url;batch.script.type="text/javascript";batch.script.async=true;dwr.engine.util.addEventListener(batch.script,"load",function(ev){if(typeof dwr!="undefined"){dwr.engine.transport.scriptTag.complete(batch)}});dwr.engine.util.addEventListener(batch.script,"error",function(ev){if(typeof dwr!="undefined"){dwr.engine.transport.scriptTag.complete(batch)
}});dwr.engine.util.addEventListener(batch.script,"readystatechange",function(ev){if(typeof dwr!="undefined"){if(batch.script.readyState=="complete"||batch.script.readyState=="loaded"){dwr.engine.transport.scriptTag.complete(batch)}}});document.getElementsByTagName("head")[0].appendChild(batch.script)},complete:function(batch){dwr.engine.transport.complete(batch)},remove:function(batch){if(!batch.script){return }batch.script.parentNode.removeChild(batch.script);batch.script=null}},htmlfile:{send:function(batch){var idname=dwr.engine.transport.iframe.getId(batch);batch.htmlfile=new window.ActiveXObject("htmlfile");batch.htmlfile.open();batch.htmlfile.write("<html>");batch.htmlfile.write("<div><iframe className='wibble' src='javascript:void(0)' id='"+idname+"' name='"+idname+"' onload='dwr.engine.transport.iframe.loadingComplete("+batch.map.batchId+");'></iframe></div>");batch.htmlfile.write("</html>");batch.htmlfile.close();batch.htmlfile.parentWindow.dwr=dwr;batch.document=batch.htmlfile;dwr.engine.transport.iframe.beginLoader(batch,idname)
}}};dwr.engine.batch={create:function(){var batch={async:dwr.engine._async,charsProcessed:0,handlers:[],isPoll:false,map:{callCount:0,windowName:window.name},paramCount:0,preHooks:[],postHooks:[],timeout:dwr.engine._timeout,errorHandler:dwr.engine._errorHandler,warningHandler:dwr.engine._warningHandler,textHtmlHandler:dwr.engine._textHtmlHandler};if(dwr.engine._preHook){batch.preHooks.push(dwr.engine._preHook)}if(dwr.engine._postHook){batch.postHooks.push(dwr.engine._postHook)}dwr.engine.batch.populateHeadersAndAttributes(batch);return batch},createPoll:function(){var batch={async:true,charsProcessed:0,handlers:[{callback:function(pause){dwr.engine._pollBatch=null;setTimeout(dwr.engine._poll,pause)}}],isPoll:true,map:{windowName:window.name,callCount:1},paramCount:0,path:dwr.engine._pathToDwrServlet,preHooks:[],postHooks:[],timeout:0,windowName:window.name};dwr.engine.batch.populateHeadersAndAttributes(batch);return batch},populateHeadersAndAttributes:function(batch){var propname,data;batch.headers={};if(dwr.engine._headers){for(propname in dwr.engine._headers){data=dwr.engine._headers[propname];
if(typeof data!="function"){batch.headers[propname]=data}}}batch.attributes={};if(dwr.engine._attributes){for(propname in dwr.engine._attributes){data=dwr.engine._attributes[propname];if(typeof data!="function"){batch.attributes[propname]=data}}}},addCall:function(batch,scriptName,methodName,args){var callData,stopAt;var lastArg=args[args.length-1];if(lastArg==null||typeof lastArg=="function"){callData={callback:lastArg};stopAt=args.length-1}else{if(typeof lastArg=="object"&&(typeof lastArg.callback=="function"||typeof lastArg.exceptionHandler=="function"||typeof lastArg.callbackHandler=="function"||typeof lastArg.errorHandler=="function"||typeof lastArg.warningHandler=="function")){callData=lastArg;stopAt=args.length-1}else{callData={};stopAt=args.length}}dwr.engine.batch.merge(batch,callData);batch.handlers[batch.map.callCount]={exceptionHandler:callData.exceptionHandler,exceptionArg:callData.exceptionArg||callData.arg||null,exceptionScope:callData.exceptionScope||callData.scope||window,callback:callData.callbackHandler||callData.callback,callbackArg:callData.callbackArg||callData.arg||null,callbackScope:callData.callbackScope||callData.scope||window};
var prefix="c"+batch.map.callCount+"-";batch.map[prefix+"scriptName"]=scriptName;batch.map[prefix+"methodName"]=methodName;batch.map[prefix+"id"]=batch.map.callCount;var directrefmap={},otherrefmap={};for(var i=0;i<stopAt;i++){dwr.engine.serialize.convert(batch,directrefmap,otherrefmap,args[i],prefix+"param"+i,0)}dwr.engine.serialize.cleanup(directrefmap)},merge:function(batch,overrides){var propname,data;for(var i=0;i<dwr.engine._propnames.length;i++){propname=dwr.engine._propnames[i];if(overrides[propname]!=null){batch[propname]=overrides[propname]}}if(overrides.preHook!=null){batch.preHooks.unshift(overrides.preHook)}if(overrides.postHook!=null){batch.postHooks.push(overrides.postHook)}if(overrides.headers){for(propname in overrides.headers){data=overrides.headers[propname];if(typeof data!="function"){batch.headers[propname]=data}}}var attrs=null;if(overrides.attributes){attrs=overrides.attributes}if(attrs){for(propname in attrs){data=attrs[propname];if(typeof data!="function"){batch.attributes[propname]=data
}}}},prepareToSend:function(batch){batch.map.batchId=dwr.engine._nextBatchId;dwr.engine._nextBatchId++;dwr.engine._batches[batch.map.batchId]=batch;dwr.engine._batchesLength++;batch.completed=false;batch.map.instanceId=dwr.engine._instanceId;batch.map.page=encodeURIComponent(window.location.pathname+window.location.search);batch.map.scriptSessionId=dwr.engine._scriptSessionId;batch.map.windowName=window.name;for(var i=0;i<batch.preHooks.length;i++){batch.preHooks[i]()}batch.preHooks=null;if(batch.timeout&&batch.timeout!=0){batch.timeoutId=setTimeout(function(){dwr.engine.transport.abort(batch)},batch.timeout)}},constructRequest:function(batch,httpMethod){var urlBuffer=[];urlBuffer.push(batch.path);urlBuffer.push(batch.mode);if(batch.isPoll){urlBuffer.push("ReverseAjax.dwr")}else{if(batch.map.callCount==1){urlBuffer.push(batch.map["c0-scriptName"]);urlBuffer.push(".");urlBuffer.push(batch.map["c0-methodName"]);urlBuffer.push(".dwr")}else{urlBuffer.push("Multiple.");urlBuffer.push(batch.map.callCount);urlBuffer.push(".dwr")
}}var sessionMatchExpr=new RegExp("^[^;\\?#]+(;[^\\?#]+)");var sessionMatch=location.href.match(sessionMatchExpr);if(sessionMatch!=null){urlBuffer.push(sessionMatch[1])}if(batch.attributes){for(var attrname in batch.attributes){var data=batch.attributes[attrname];if(typeof data!="function"){batch.map["a-"+attrname]=""+data}}}var request={};var prop;if(httpMethod=="GET"){batch.map.callCount=""+batch.map.callCount;urlBuffer.push("?");for(prop in batch.map){if(typeof batch.map[prop]!="function"){urlBuffer.push(encodeURIComponent(prop));urlBuffer.push("=");urlBuffer.push(encodeURIComponent(batch.map[prop]));urlBuffer.push("&")}}urlBuffer.pop();request.body=null}else{request.body="";if(dwr.engine.isIE<=7){var buf=[];for(prop in batch.map){if(typeof batch.map[prop]!="function"){buf.push(prop+"="+batch.map[prop]+dwr.engine._postSeperator)}}request.body=buf.join("")}else{for(prop in batch.map){if(typeof batch.map[prop]!="function"){request.body+=prop+"="+batch.map[prop]+dwr.engine._postSeperator}}}request.body=dwr.engine._contentRewriteHandler(request.body)
}request.url=dwr.engine._urlRewriteHandler(urlBuffer.join(""));return request},validate:function(batch){if(!batch.completed){for(var i=0;i<batch.map.callCount;i++){if(batch.handlers[i].completed!==true){dwr.engine._handleError(batch,{name:"dwr.engine.incompleteReply",message:"Incomplete reply from server"});break}}}},remove:function(batch){if(!batch){dwr.engine._debug("Warning: null batch in dwr.engine.batch.remove()",true);return }if(batch.completed){return }batch.completed=true;dwr.engine.transport.remove(batch);if(batch.timeoutId!=null){clearTimeout(batch.timeoutId);delete batch.timeoutId}if(batch.map&&(batch.map.batchId||batch.map.batchId==0)){delete dwr.engine._batches[batch.map.batchId];dwr.engine._batchesLength--}if(dwr.engine._batchQueue.length!=0){var sendbatch=dwr.engine._batchQueue.shift();dwr.engine.transport.send(sendbatch)}}};dwr.engine.util={newActiveXObject:function(axarray){var returnValue;for(var i=0;i<axarray.length;i++){try{returnValue=new ActiveXObject(axarray[i]);break}catch(ex){}}return returnValue
},tokenify:function(number){var tokenbuf=[];var charmap="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ*$";var remainder=number;while(remainder>0){tokenbuf.push(charmap.charAt(remainder&63));remainder=Math.floor(remainder/64)}return tokenbuf.join("")},addEventListener:function(elem,name,func){if(elem.addEventListener){elem.addEventListener(name,func,false)}else{elem.attachEvent("on"+name,func)}}};var userAgent=navigator.userAgent;var versionString=navigator.appVersion;var version=parseFloat(versionString);dwr.engine.isOpera=(userAgent.indexOf("Opera")>=0)?version:0;dwr.engine.isKhtml=(versionString.indexOf("Konqueror")>=0)||(versionString.indexOf("Safari")>=0)?version:0;dwr.engine.isSafari=(versionString.indexOf("Safari")>=0)?version:0;dwr.engine.isJaxerServer=(window.Jaxer&&Jaxer.isOnServer);var geckoPos=userAgent.indexOf("Gecko");dwr.engine.isMozilla=((geckoPos>=0)&&(!dwr.engine.isKhtml))?version:0;dwr.engine.isFF=0;dwr.engine.isIE=0;try{if(dwr.engine.isMozilla){dwr.engine.isFF=parseFloat(userAgent.split("Firefox/")[1].split(" ")[0])
}if((document.all)&&(!dwr.engine.isOpera)){dwr.engine.isIE=parseFloat(versionString.split("MSIE ")[1].split(";")[0])}}catch(ex){}dwr.engine._pageId=dwr.engine.util.tokenify(new Date().getTime())+"-"+dwr.engine.util.tokenify(Math.random()*10000000000000000);dwr.engine.transport.updateDwrSessionFromCookie();if(!dwr.engine.isJaxerServer){dwr.engine.util.addEventListener(window,"unload",dwr.engine._unloader)}var g=dwr.engine._global;if(!g.dwr){g.dwr={}}if(!g.dwr._){g.dwr._=[]}dwr.engine._instanceId=g.dwr._.length;g.dwr._[dwr.engine._instanceId]={handleCallback:dwr.engine.remote.handleCallback,handleException:dwr.engine.remote.handleException,handleNewWindowName:dwr.engine.remote.handleNewWindowName,handleBatchException:dwr.engine.remote.handleBatchException,handleFunctionCall:dwr.engine.remote.handleFunctionCall,handleObjectCall:dwr.engine.remote.handleObjectCall,handleSetCall:dwr.engine.remote.handleSetCall,handleFunctionClose:dwr.engine.remote.handleFunctionClose,handleObjectCall:dwr.engine.remote.handleObjectCall,handleForeign:dwr.engine.remote.handleForeign,pollCometDisabled:dwr.engine.remote.pollCometDisabled,newObject:dwr.engine.remote.newObject,toDomElement:dwr.engine.serialize.toDomElement,toDomDocument:dwr.engine.serialize.toDomDocument,beginIFrameResponse:dwr.engine.transport.iframe.remote.beginIFrameResponse,endIFrameResponse:dwr.engine.transport.iframe.remote.endIFrameResponse,_eval:dwr.engine._eval};
eval("dwr.engine._execute(dwr.engine._pathToDwrServlet, '__System', 'pageLoaded', [ function() { dwr.engine._ordered = false; }]);");dwr.hub={publish:function(topicName,data){dwr.engine._execute(dwr.engine._pathToDwrServlet,"__System","publish",topicName,data,{})},subscribe:function(topicName,callback,scope,subscriberData){var subscription=""+dwr.hub._subscriptionId;dwr.hub._subscriptionId++;dwr.hub._subscriptions[subscription]={callback:callback,scope:scope,subscriberData:subscriberData};dwr.engine._execute(dwr.engine._pathToDwrServlet,"__System","subscribe",topicName,subscription,{});return subscription},_remotePublish:function(subscriptionId,publishData){var subscriptionData=dwr.hub._subscriptions[subscriptionId];if(!subscriptionData){return }subscriptionData.callback.call(subscriptionData.scope,publishData,subscriptionData.subscriberData)},_subscriptionId:0,_subscriptions:{}};dwr.data={StoreChangeListener:{itemRemoved:function(source,itemId){},itemAdded:function(source,item){},itemChanged:function(source,item,changedAttributes){}},Cache:function(storeId,listener){this.storeId=storeId;
this.listener=listener}};dwr.data.Cache.prototype.viewRegion=function(region,callbackObj){if(!region){region={}}if(!region.start){region.start=0}if(!region.count){region.count=-1}if(!region.sort){region.sort=[]}else{for(var index=0;index<region.sort.length;index++){if(typeof region.sort[index].descending=="undefined"){region.sort[index].descending=false}}}if(!region.query){region.query={}}return dwr.engine._execute(dwr.engine._pathToDwrServlet,"__Data","viewRegion",[this.storeId,region,this.listener,callbackObj])};dwr.data.Cache.prototype.viewItem=function(itemId,callbackObj){return dwr.engine._execute(dwr.engine._pathToDwrServlet,"__Data","viewItem",[this.storeId,itemId,this.listener,callbackObj])};dwr.data.Cache.prototype.unsubscribe=function(callbackObj){if(this.listener){return dwr.engine._execute(dwr.engine._pathToDwrServlet,"__Data","unsubscribe",[this.storeId,this.listener,callbackObj])}};dwr.data.Cache.prototype.update=function(items,callbackObj){return dwr.engine._execute(dwr.engine._pathToDwrServlet,"__Data","update",[this.storeId,items,callbackObj])
}})();
(function(){var B=dwr.engine.batch.addCall;dwr.engine.batch.addCall=function(G,J,D,F){var K=F.length>0&&F[0]&&F[0]["$RT$"],I,E;if(K){I=[];E=F[0];for(var H=1;H<F.length;H++){I.push(F[H])}}else{I=F}B.call(window,G,J,D,I);if(K){G.map["request-template-"+G.map.callCount]=Ext.encode(E)}};var A=dwr.engine.serialize.convert;dwr.engine.serialize.convert=function(E,H,I,F,D,G){if(typeof F=="object"&&shared&&shared.file&&shared.file.FileUploader&&F instanceof shared.file.FileUploader){if(F.sendWithLevel2()){E.xhrFileUpload=true;E.file=F;E.fileField=D;return }else{F=F.getInput()}}return A(E,H,I,F,D,G)};var C=dwr.engine.transport.send;dwr.engine.transport.send=function(D){if(D.xhrFileUpload){D.transport=dwr.engine.transport.xhr2upload;return D.transport.send(D)}return C(D)};dwr.engine.transport.xhr2upload={send:function(D){D.mode=dwr.engine._ModePlainCall;dwr.engine.batch.prepareToSend(D);var E=dwr.engine.batch.constructRequest(D,"POST");D.file.send(E.url,{headers:E.headers,params:D.map,fieldName:D.fileField,success:function(F){dwr.engine._callPostHooks(D);
dwr.engine._receivedBatch=D;if(F!=null){F=F.replace(dwr.engine._scriptTagProtection,"")}dwr.engine._eval(F);dwr.engine._receivedBatch=null;dwr.engine.batch.validate(D);if(!D.completed){dwr.engine.batch.remove(D)}},failure:function(F){dwr.engine._handleError(D,F)}})},remove:function(D){}}})();
Ext.namespace("shared.util");shared.util.History={paramDelimeter:"&",valueDelimeter:"=",getParams:function(A){return(!A)?null:Ext.urlDecode(A)},setHash:function(A){if(window.location.hash==("#"+A)){Ext.History.fireEvent("change",A)}else{window.location.hash=A}},add:function(B){var A=Ext.urlEncode(B);Ext.History.add(A)},getHash:function(){var A=top.location.href,B=A.indexOf("#");return(B>=0?A.substr(B+1):null)},getHashParams:function(){return shared.util.History.getParams(shared.util.History.getHash())}};
Ext.namespace("shared.system");(function(){var B=function(){this.addEvents("beforenavigate");B.superclass.constructor.call(this)};var A;Ext.extend(B,Ext.util.Observable,{navigate:function(E,C,D){var F=this.doNavigate.createDelegate(this,[E,C,D||150]);if(this.fireEvent("beforenavigate",F)!==false){F()}},gotoModule:function(E,F,J,C,D){var I="/module/"+E;J=J||{};if(F){J.tab=F}var H=this.getPath();var G=Ext.urlEncode(J);if(I==H){this.gotoUrl(this.normalizeUrl(I)+"#"+G)}else{var G=Ext.urlEncode(J);this.doNavigate(I+"#"+G,C,D)}},doNavigate:function(E,C,D){E=this.normalizeUrl(E);if(C){this.showMessageBox(C);(function(){this.gotoUrl(E)}).defer(D,this)}else{this.gotoUrl(E)}},showMessageBox:function(C){if(window.PageFrame&&PageFrame.showLoadingMask){PageFrame.showLoadingMask(C)}else{Ext.MessageBox.show({closable:false,modal:true,msg:C,title:"Please Wait..."})}},gotoUrl:function(E){var D=window.location;if(D.hash){var G=E.replace(/\\/g,"/");G=G.replace(/\/\//g,"/");G=G.replace(/#.*/,"");if(D.pathname==G){var F=new RegExp(G+"/*(#[^/]*)$","g");
var C=F.exec(E);if(C){D.hash=C[1];return }}}if(Ext.isIE){window.location=E.replace("#","?")}else{window.location=E}},normalizeUrl:function(C){if(C.charAt(0)=="/"){return window.contextRoot+C}else{return C}},getPath:function(){var C=window.location;var D=C.pathname;var D=D.replace(/\/+/g,"/");if(D.charAt(D.length-1)=="/"){D=D.substring(0,D.length-1)}return D.replace(new RegExp(window.contextRoot),"")},paramRegex:/.*\?([^#]*)/,getParameters:function(){if(!A){A={};var C=location.toString();if(this.paramRegex.test(C)){var D=this.paramRegex.exec(C)[1];Ext.each(D.split("&"),function(E){var F=E.split("=");A[unescape(F[0])]=unescape(F[1])})}}return Ext.apply({},shared.util.History.getHashParams(),A)},getParameter:function(C){return this.getParameters()[C]}});shared.system.Navigator=new B()})();
Ext.override(Ext.menu.Item,{itemTpl:new Ext.XTemplate('<a id="{id}" class="{cls}" hidefocus="true" unselectable="on"','<tpl if="hrefTarget">',' href="{href}" target="{hrefTarget}"',"</tpl>",">",'<img src="{icon}" class="x-menu-item-icon {iconCls}"/>','<span class="x-menu-item-text">{text}</span>',"</a>"),handleClick:function(A){if(this.href&&!this.hrefTarget){A.stopEvent();shared.system.Navigator.navigate(this.href,this.waitingMsg)}Ext.menu.Item.superclass.handleClick.apply(this,arguments)}});
Ext.namespace("shared.system");shared.system.Application=(function(){Ext.apply(this,{globalExceptionHandler:null});return{setGlobalExceptionHandler:function(A){this.globalExceptionHandler=A},getGlobalExceptionHandler:function(){return this.globalExceptionHandler}}})();
dwr.engine._originalExecute=dwr.engine._execute;dwr.engine._execute=function(L,K,J,C){var M=C[C.length-1];var A=function(V,T,U){if(Ext.type(V)=="object"&&U.indexOf(V)==-1){U.push(V);if(V instanceof Ext.data.Record){V=V.data}for(var X in V){try{V[X]=A(V[X],X,U)}catch(W){}}}return V};var E=function(W,U){var V=[];var T=A(W,U,V);delete V;return T};var S=C.length;var N=false;if((M!=null&&M!=undefined)&&(typeof M=="function")||(typeof M=="object"&&(typeof M.success=="function"||typeof M.failure=="function"||typeof M.callback=="function"||typeof M.exceptionHandler=="function"||typeof M.callbackHandler=="function"||typeof M.errorHandler=="function"||typeof M.warningHandler=="function"))){S=C.length-1;N=true}else{if(M==undefined){N=false;S=C.length-1}}for(var O=0,P=S;O<P;O++){C[O]=E(C[O],"arg["+O+"]")}var D=function(U,W,Y,Z,X,T,V){Z.call(this,U,{service:X,method:T,args:V,success:Y,status:Y})};var G=function(Y,W,V,Z,a,X,T,U){a.call(this,Y,{service:X,method:T,args:U,success:Z,status:Z,exception:W})};if(typeof M=="function"){C[C.length-1]={callback:D.createDelegate(window,[true,M,K,J,C],true),exceptionHandler:G.createDelegate(window,[false,M,K,J,C],true)}
}else{if(N){var Q={};var F=false;var B=M.scope||window;Ext.each(["success","callback"],function(T){if(typeof M[T]=="function"){Q.callback=D.createDelegate(B,[true,M[T],K,J,C],true);F=true;return false}});Ext.each(["failure","callback"],function(T){if(typeof M[T]=="function"){Q.exceptionHandler=G.createDelegate(B,[false,M[T],K,J,C],true);F=true;return false}});var H=shared.system.Application.getGlobalExceptionHandler();if(H){if(Q.exceptionHandler){Q.exceptionHandler=H.createSequence(Q.exceptionHandler,B)}else{Q.exceptionHandler=H}}if(Q.exceptionHandler){var R=Q.exceptionHandler;Q.exceptionHandler=function(){try{R.apply(B,arguments)}catch(T){console.error(T)}}}if(Q.callback){var I=Q.callback;Q.callback=function(){try{I.apply(B,arguments)}catch(T){console.error(T)}}}if(F){C[C.length-1]=Q}}}dwr.engine._originalExecute(L,K,J,C)};
dwr.engine._handleError=function(B,A){console.error("Dwr error request ",B,": ",B.name," - ",B.message,A)};
Ext.apply(Ext.data.SortTypes,{asIpAddress:function(A){var B=[];Ext.each(A.split("."),function(C){B.push(String.leftPad(C,3,"0"))},this);return B.join(".")}});
Ext.apply(Ext.form.VTypes,{daterange:function(D,C){var B=C.parseDate(D);if(!B){return }if(C.startDateField&&(!this.dateRangeMax||(B.getTime()!=this.dateRangeMax.getTime()))){var E=Ext.getCmp(C.startDateField);E.setMaxValue(B);E.validate();this.dateRangeMax=B}else{if(C.endDateField&&(!this.dateRangeMin||(B.getTime()!=this.dateRangeMin.getTime()))){var A=Ext.getCmp(C.endDateField);A.setMinValue(B);A.validate();this.dateRangeMin=B}}return true},password:function(C,B){if(B.initialPassField){var A=Ext.getCmp(B.initialPassField);return(C==A.getValue())}return true},passwordText:$L("60d04d3a-82f8-4621-940e-005c6d269c23","Passwords do not match")});
;
Ext.override(Ext.form.Field,{setReadOnly:function(A){if(this.rendered){if(A){this.el.addClass("q-readonly")}else{this.el.removeClass("q-readonly")}this.el.dom.readOnly=A}this.readOnly=A}});
Ext.override(Ext.form.TriggerField,{updateEditState:function(){if(this.rendered){if(this.readOnly){this.el.dom.readOnly=true;this.el.addClass("x-trigger-noedit");this.el.addClass("q-readonly");this.mun(this.el,"click",this.onTriggerClick,this);this.trigger.setDisplayed(false)}else{this.el.removeClass("q-readonly");if(!this.editable){this.el.dom.readOnly=true;this.el.addClass("x-trigger-noedit");this.mon(this.el,"click",this.onTriggerClick,this)}else{this.el.dom.readOnly=false;this.el.removeClass("x-trigger-noedit");this.mun(this.el,"click",this.onTriggerClick,this)}this.trigger.setDisplayed(!this.hideTrigger)}this.onResize(this.width||this.wrap.getWidth())}}});
Ext.namespace("shared.util");shared.util.StringUtil={capitalizeFirst:function(A){A[0]=A[0].toUpperCase()},flattenRanges:function(A){A=A.replace(/(\s)+-(\s)+/g,"-");A=A.replace(/(\n|\t|\r|\ |;)+/g,",");A=A.replace(/^,|,$/g,"");A=A.replace(/(,)+/g,",");return A},concat:function(D,A,C){var B=D[D.length-1]==C?D.substr(0,D.length-1):D;B+=C;return B+(A[0]==C?A.substr(1):A)},lpad:function(D,B,E){if(E==undefined){E=0}var C=D.toString();for(var A=B-C.length;A>0;A--){C=+E+C}return C},wrap:function(E,A){if(E===undefined||E==null||A===undefined||!A){return E}var D=E.split(" ");var B={};var C="";Ext.each(D,function(F){var G="";while(F.length>A){G+=F.substr(0,A)+" ";F=F.substr(A)}G+=F;C+=G+" "},this);return C},escapeHTML:function(A){if(!A||typeof A!="string"||A.length==0){return A}A=A.replace(/</g,"&lt;");A=A.replace(/>/g,"&gt;");A=A.replace(/"/g,"&quot;");A=A.replace(/'/g,"&#039;");return A},join:function(C,B,D,A){var E=[];Ext.each(C,function(F){var G=B.call(F);if(G!==null){E.push(G)}});if(E.length===0){return Ext.value(A,null)
}return E.join(Ext.value(D," "))}};
;
Ext.lib.Ajax.isCrossDomain=function(B){var A=/(?:(\w*:)\/\/)?([\w\.]*(?::\d*)?)/.exec(B);if(!A[1]){return false}return(A[1]!=location.protocol)||(A[2]!=location.host)};Ext.override(Ext.data.Connection,{request:function(E){var H=this;if(H.fireEvent("beforerequest",H,E)){if(E.el){if(!Ext.isEmpty(E.indicatorText)){H.indicatorText='<div class="loading-indicator">'+E.indicatorText+"</div>"}if(H.indicatorText){Ext.getDom(E.el).innerHTML=H.indicatorText}E.success=(Ext.isFunction(E.success)?E.success:function(){}).createInterceptor(function(J){Ext.getDom(E.el).innerHTML=J.responseText})}var C=E.params,B=E.url||H.url,A,F={success:H.handleResponse,failure:H.handleFailure,scope:H,argument:{options:E},timeout:Ext.num(E.timeout,H.timeout)},D,I;if(Ext.isFunction(C)){C=C.call(E.scope||WINDOW,E)}C=Ext.urlEncode(H.extraParams,Ext.isObject(C)?Ext.urlEncode(C):C);if(Ext.isFunction(B)){B=B.call(E.scope||WINDOW,E)}if((D=Ext.getDom(E.form))){B=B||D.action;if(E.isUpload||(/multipart\/form-data/i.test(D.getAttribute("enctype")))){return H.doFormUpload.call(H,E,C,B)
}I=Ext.lib.Ajax.serializeForm(D);C=C?(C+"&"+I):I}A=E.method||H.method||((C||E.xmlData||E.jsonData)?"POST":"GET");if(A==="GET"&&(H.disableCaching&&E.disableCaching!==false)||E.disableCaching===true){var G=E.disableCachingParam||H.disableCachingParam;B=Ext.urlAppend(B,G+"="+(new Date().getTime()))}E.headers=Ext.apply(E.headers||{},H.defaultHeaders||{});if(E.autoAbort===true||H.autoAbort){H.abort()}if((A=="GET"||E.xmlData||E.jsonData)&&C){B=Ext.urlAppend(B,C);C=""}if(E.scriptTag||this.scriptTag||Ext.lib.Ajax.isCrossDomain(B)){H.transId=this.scriptRequest(A,B,F,C,E)}else{H.transId=Ext.lib.Ajax.request(A,B,F,C,E)}return H.transId}else{return E.callback?E.callback.apply(E.scope,[E,undefined,undefined]):null}},scriptRequest:function(A,C,E,F,I){var B=++Ext.data.ScriptTagProxy.TRANS_ID;var H={id:B,cb:I.callbackName||"stcCallback"+B,scriptId:"stcScript"+B,options:I};C+=(C.indexOf("?")!=-1?"&":"?")+F+String.format("&{0}={1}",I.callbackParam||this.callbackParam||"callback",H.cb);var D=this;window[H.cb]=function(J){D.handleScriptResponse(J,H)
};H.timeoutId=this.handleScriptFailure.defer(E.timeout,this,[H]);var G=document.createElement("script");G.setAttribute("src",C);G.setAttribute("type","text/javascript");G.setAttribute("id",H.scriptId);document.getElementsByTagName("head")[0].appendChild(G);return H},handleScriptResponse:function(D,B){this.transId=false;this.destroyScriptTrans(B,true);var A=B.options;var C;if(typeof D=="string"){if(window.ActiveXObject){C=new ActiveXObject("Microsoft.XMLDOM");C.async="false";C.loadXML(D)}else{C=new DOMParser().parseFromString(D,"text/xml")}}response={responseObject:D,responseText:(typeof D=="object")?Ext.util.JSON.encode(D):String(D),responseXML:C,argument:A.argument};this.fireEvent("requestcomplete",this,response,A);Ext.callback(A.success,A.scope,[response,A]);Ext.callback(A.callback,A.scope,[A,true,response])},handleScriptFailure:function(B){this.transId=false;this.destroyScriptTrans(B,false);var A=B.options;response={argument:A.argument,status:500,statusText:"Server failed to respond",responseText:""};this.fireEvent("requestexception",this,response,A,{status:-1,statusText:"communication failure"});
Ext.callback(A.failure,A.scope,[response,A]);Ext.callback(A.callback,A.scope,[A,false,response])},destroyScriptTrans:function(B,A){document.getElementsByTagName("head")[0].removeChild(document.getElementById(B.scriptId));clearTimeout(B.timeoutId);if(A){window[B.cb]=undefined;try{delete window[B.cb]}catch(C){}}else{window[B.cb]=function(){window[B.cb]=undefined;try{delete window[B.cb]}catch(D){}}}}});
String.prototype.endsWith=function(A){var B=this.length-A.length;return B>=0&&this.lastIndexOf(A)===B};if(!String.prototype.startsWith){String.prototype.startsWith=function(A){return !this.indexOf(A)}}Array.prototype.intersect=function(A){var C=[];for(var B=0;B<this.length;B++){if(A.indexOf(this[B])>-1){C.push(this[B])}}return C};Array.prototype.or=function(A){var C=A.unique();for(var B=0;B<this.length;B++){if(C.indexOf(this[B])==-1){C.push(this[B])}}return C};Array.prototype.xor=function(A){var A=A.unique(),D=this.unique(),C=[];for(var B=0;B<D.length;B++){if(A.indexOf(D[B])==-1){C.push(D[B])}}for(var B=0;B<A.length;B++){if(D.indexOf(A[B])==-1){C.push(A[B])}}return C};Array.prototype.not=function(A){var C=[];for(var B=0;B<this.length;B++){if(A.indexOf(this[B])==-1){C.push(this[B])}}return C};Array.prototype.equals=function(B){if(B.length!=this.length){return false}for(var C=0,A=this.length;C<A;C++){if(B.indexOf(this[C])==-1){return false}}return true};Array.prototype.unique=function(){var B=[];for(var A=0;A<this.length;
A++){if(B.indexOf(this[A])==-1){B.push(this[A])}}return B};Function.prototype.around=function(B,C,A){var D=this;return function(){B.apply(A,arguments||window);var E=D.apply(this,arguments);C.apply(A,arguments||window);return E}};Ext.BLANK_IMAGE_URL=contextRoot+"/lib/s.gif";(function(){var A=Ext.form.Field.prototype.onRender;Ext.override(Ext.form.Field,{onRender:function(){A.apply(this,arguments);this.setMaxCharLength(this.maxCharLength)},setMaxCharLength:function(B){if(!B){return }this.maxCharLength=B;this.el.dom.maxLength=this.maxCharLength}})})();
Q={define:function(E,D,B){var G=Q.Util.mapArray(/(.*?)\.?([a-z]*)$/i.exec(E),null,"ns","cls"),C=Q.Util.namespace(G.ns);if(arguments.length==3){var A;if(Ext.type(B)=="function"){var F=function(){return D.prototype};A=Ext.extend(D,B.call(window,F))}else{A=Ext.extend(D,B)}C[G.cls]=A;return A}else{var A=function(){if(this.constructor){this.constructor.apply(this,arguments)}};A.prototype=D;C[G.cls]=A;return A}}};
Ext.namespace("Q");Q.Util={namespace:function(G){var F=1,I=arguments,A=null,D,C,H,E=0,B=G;if(typeof B!="object"){F=0;B=window}for(D=I.length;F<D;F++){H=I[F].split(".");A=B;for(C=H.length;E<C;E++){if(typeof A[H[E]]=="undefined"){A[H[E]]={}}A=A[H[E]]}}return A},filterItems:function(A){var B=[];Ext.each(A,function(C){if(C){B.push(C)}});return B},applyMerge:function(B,C){if(B&&C&&typeof C=="object"){for(var A in C){if(typeof C[A]=="object"&&C[A].constructor==Object.prototype.constructor){B[A]=B[A]||{};Q.Util.applyMerge(B[A],C[A])}else{if(typeof C[A]=="object"&&C[A].constructor==Array.prototype.constructor){B[A]=(B[A]||[]).concat(C[A])}else{B[A]=C[A]}}}}return B},applyExtract:function(B,C,A){if(B&&C&&typeof B=="object"){for(var D in B){if(C[D]!=undefined){B[D]=C[D]}}}return Ext.apply(B,A)},extractArray:function(F,C){var E=C.split(",");var D=[];for(var B=0,A=E.length;B<A;B++){D.push(F[E[B]])}return D},hashToArray:function(B){var A=[];for(key in B){A.push([key,B[key]])}return A},clone:function(D){var B=[];var A=[];var C=function(I){var J=B.indexOf(I);
if(J==-1){switch(Ext.type(I)){case"object":B.push(I);var H={};A.push(H);for(var K in I){H[K]=C(I[K])}H.constructor=I.constructor;return H;case"array":B.push(I);var F=[];A.push(F);for(var G=0,E=I.length;G<E;G++){F.push(C(I[G]))}return F;default:return I}}else{return A[J]}};return C(D)},equals:function(H,G){if(arguments.length>2){var F=arguments,E=F.length-1;for(var C=0;C<E;C++){if(!Q.Util.equals(F[C],F[C-1])){return false}}}var D=Ext.type(H),B=Ext.type(G);if(D!==B){return false}switch(D){case"date":return H.getTime()==G.getTime();case"array":if(H.length!=G.length){return false}for(var C=0,E=H.length;C<E;C++){if(!Q.Util.equals(H[C],G[C])){return false}}return true;case"object":var A=[];for(var C=0;C<2;C++){for(var I in H){if(!Q.Util.equals(H[I],G[I])){return false}}for(var I in G){if(H[I]===undefined&&G[I]!==undefined){return false}}}return true;default:return H===G}},Enum:function(A){var B={};Ext.each(A,function(C){B[C]=C});return B},createAccessor:function(){var A=/[\[\.]/;return function(C){try{return(A.test(C))?new Function("obj","return obj."+C):function(D){return D[C]
}}catch(B){}return Ext.emptyFn}}(),find:function(A,D,C){for(var B=0;B<A.length;B++){if(D.call(C||window,A[B])){return A[B]}}return null},sanitize:function(A){return A.replace(new RegExp(/&/g),"&amp;").replace(new RegExp(/</g),"&lt;").replace(new RegExp(/>/g),"&gt;")},display:function(B,A){if(A===undefined){A=false}var B=shared.util.StringUtil.wrap(B,A);B=B.replace(new RegExp(/  /g)," &nbsp;");return B},mapArray:function(D){var C={};for(var B=1,A=arguments.length;B<A;B++){if(arguments[B]){C[arguments[B]]=D[B-1]}}return C},select:function(C,A,D){var B=[];Ext.each(C,function(E){if(A.call(D||window,E)){B.push(E)}});return i},collect:function(E,D,C){if(!E){return null}var B;if(Ext.type(E)=="array"){B=[];Ext.each(E,function(F){B.push(D.call(C||window,F))})}else{B={};for(var A in E){B[A]=D.call(C||window,E[A],A)}}return B},pluck:function(D,C){var A=[],B=Q.Util.createAccessor(C);Ext.each(D,function(E){A.push(B(E))});return A}};
(function(){Ext.namespace("shared.form");shared.form.RoundTextField=function(A){Ext.applyIf(A,{baseCls:"round-textfield",msgTarget:"side",validateOnBlur:false,resetFlag:true,reset:function(){this.resetFlag=true;this.setValue("")},listeners:{render:function(){if(this.onEnterEvent!=null){this.getEl().on("keypress",function(B){if(B.getKey()==B.ENTER){this.onEnterEvent.call(this)}},this)}},scope:this}});shared.form.RoundTextField.superclass.constructor.call(this,A)};Ext.extend(shared.form.RoundTextField,Ext.form.TextField,{onRender:function(A){shared.form.RoundTextField.superclass.onRender.apply(this,arguments);this.wrap=this.el.wrap({tag:"div",cls:this.initialConfig.baseCls+"-r",style:"width:"+this.width+"px;"});this.wrap.wrap({tag:"div",cls:String.format("{0}-l {0}",this.initialConfig.baseCls),style:"width:"+this.width+"px;"})},onFocus:function(){shared.form.RoundTextField.superclass.onFocus.call(this);this.el.parent().addClass(this.focusClass);this.el.parent().parent().addClass(this.focusClass)},onBlur:function(){shared.form.RoundTextField.superclass.onBlur.call(this);
this.el.parent().removeClass(this.focusClass);this.el.parent().parent().removeClass(this.focusClass)},onDisable:function(){shared.form.RoundTextField.superclass.onDisable.call(this);this.el.parent().addClass(this.disabledClass);this.el.parent().parent().addClass(this.disabledClass)},onEnable:function(){shared.form.RoundTextField.superclass.onEnable.call(this);this.el.parent().removeClass(this.disabledClass);this.el.parent().parent().removeClass(this.disabledClass)},markInvalid:function(A){shared.form.RoundTextField.superclass.markInvalid.call(this);this.el.parent().addClass(this.invalidClass);this.el.parent().parent().addClass(this.invalidClass)},clearInvalid:function(A){shared.form.RoundTextField.superclass.clearInvalid.call(this);this.el.parent().removeClass(this.invalidClass);this.el.parent().parent().removeClass(this.invalidClass)},setWidth:function(A){shared.form.RoundTextField.superclass.setWidth.call(this,A);this.el.parent().setWidth(A+5);this.el.parent().parent().setWidth(A+5)},setError:function(B,A){(function(){new shared.tooltip.ErrorTip({target:this.getEl().parent().parent().parent().child(".x-form-invalid-icon"),html:B,anchor:"bottom",width:A}).show()
}).defer(10,this)}});Ext.reg("round-textfield",shared.form.RoundTextField)})();
(function(){Ext.namespace("shared.container");shared.container.GradientContainer=function(A){Ext.applyIf(A,{baseCls:"q-gradient",scale:"medium",color:"gray"});shared.container.GradientContainer.superclass.constructor.call(this,A)};Ext.extend(shared.container.GradientContainer,Ext.Container,{onRender:function(A){this.el=A.createChild({tag:"div",cls:String.format("{0} {0}-{1} {0}-{2}",this.initialConfig.baseCls,this.initialConfig.scale,this.initialConfig.color),children:[{tag:"div",cls:this.initialConfig.baseCls+"-tr",children:[{tag:"div",cls:this.initialConfig.baseCls+"-tl",children:[{tag:"div",cls:this.initialConfig.baseCls+"-tc"}]}]},{tag:"div",cls:this.initialConfig.baseCls+"-body",html:this.initialConfig.text},{tag:"div",cls:this.initialConfig.baseCls+"-br",children:[{tag:"div",cls:this.initialConfig.baseCls+"-bl",children:[{tag:"div",cls:this.initialConfig.baseCls+"-bc"}]}]}]});shared.container.GradientContainer.superclass.onRender.apply(this,arguments);this.itemsContainer=this.el.child("."+this.initialConfig.baseCls+"-body")
},getLayoutTarget:function(){return this.itemsContainer}});Ext.reg("gradient-container",shared.container.GradientContainer)})();shared.container.GradientContainer.SCALES={SMALL:{scale:"small",height:140},MEDIUM:{scale:"medium",height:270},LARGE:{scale:"large",height:350}};
Ext.namespace("shared.window");shared.window.QualysMessageBox=function(){var T,B,P,S,G,K,R,A,M,O,I,F,Q,U,N,H="",D="",L=["ok","yes","no","cancel"];var C=function(W){Q[W].blur();if(T.isVisible()){T.hide();V();Ext.callback(B.fn,B.scope||window,[W,U.dom.value,B],1)}};var V=function(){if(B&&B.cls){T.el.removeClass(B.cls)}M.reset()};var E=function(Y,W,X){if(B&&B.closable!==false){T.hide();V()}if(X){X.stopEvent()}};var J=function(W){var Y=0,X;if(!W){Ext.each(L,function(Z){Q[Z].hide()});return Y}T.footer.dom.style.display="";Ext.iterate(Q,function(Z,a){X=W[Z];if(X){a.show();a.setText(Ext.isString(X)?X:shared.window.QualysMessageBox.buttonText[Z]);Y+=a.getEl().getWidth()+15}else{a.hide()}});return Y};return{getDialog:function(W){if(!T){var Y=[];Q={};Ext.each(L,function(Z){var a=Z+"cls";Y.push(Q[Z]=new Ext.Button({text:this.buttonText[Z],handler:C.createCallback(Z),cls:shared.window.QualysMessageBox.windowCfg[a],hideMode:"offsets"}))},this);T=new Ext.Window(Ext.apply({autoCreate:true,title:W,resizable:false,constrain:true,constrainHeader:true,minimizable:false,maximizable:false,stateful:false,modal:true,shim:true,buttonAlign:"center",width:400,height:100,minHeight:80,plain:true,footer:true,closable:true,close:function(){if(B&&B.buttons&&B.buttons.no&&!B.buttons.cancel){C("no")
}else{C("cancel")}},fbar:new Ext.Toolbar({items:Y,enableOverflow:false})},shared.window.QualysMessageBox.windowCfg));T.render(document.body);T.getEl().addClass("x-window-dlg");P=T.mask;G=T.body.createChild({html:'<div class="ext-mb-icon"></div><div class="ext-mb-content"><span class="ext-mb-text"></span><br><div class="ext-mb-fix-cursor"><input type="text" class="ext-mb-input"><textarea class="ext-mb-textarea"></textarea></div></div>'});I=Ext.get(G.dom.firstChild);var X=G.dom.childNodes[1];K=Ext.get(X.firstChild);R=Ext.get(X.childNodes[2].firstChild);R.enableDisplayMode();R.addKeyListener([10,13],function(){if(T.isVisible()&&B&&B.buttons){if(B.buttons.ok){C("ok")}else{if(B.buttons.yes){C("yes")}}}});A=Ext.get(X.childNodes[2].childNodes[1]);A.enableDisplayMode();M=new Ext.ProgressBar({renderTo:G});G.createChild({cls:"x-clear"})}return T},updateText:function(Z){if(!T.isVisible()&&!B.width){T.setSize(this.maxWidth,100)}K.update(Z?Z+" ":" ");var X=D!=""?(I.getWidth()+I.getMargins("lr")):0,b=K.getWidth()+K.getMargins("lr"),Y=T.getFrameWidth("lr"),a=T.body.getFrameWidth("lr"),W;
W=Math.max(Math.min(B.width||X+b+Y+a,B.maxWidth||this.maxWidth),Math.max(B.minWidth||this.minWidth,N||0));if(B.prompt===true){U.setWidth(W-X-Y-a)}if(B.progress===true||B.wait===true){M.setSize(W-X-Y-a)}if(Ext.isIE&&W==N){W+=4}K.update(Z||" ");T.setSize(W,"auto").center();return this},updateProgress:function(X,W,Y){M.updateProgress(X,W);if(Y){this.updateText(Y)}return this},isVisible:function(){return T&&T.isVisible()},hide:function(){var W=T?T.activeGhost:null;if(this.isVisible()||W){T.hide();V();if(W){T.unghost(false,false)}}return this},show:function(Z){if(this.isVisible()){this.hide()}B=Z;var a=this.getDialog(B.title||" ");a.setTitle(B.title||" ");var W=(B.closable!==false&&B.progress!==true&&B.wait!==true);a.tools.close.setDisplayed(W);U=R;B.prompt=B.prompt||(B.multiline?true:false);if(B.prompt){if(B.multiline){R.hide();A.show();A.setHeight(Ext.isNumber(B.multiline)?B.multiline:this.defaultTextHeight);U=A}else{R.show();A.hide()}}else{R.hide();A.hide()}U.dom.value=B.value||"";if(B.prompt){a.focusEl=U}else{var Y=B.buttons;
var X=null;if(Y&&Y.ok){X=Q["ok"]}else{if(Y&&Y.yes){X=Q["yes"]}}if(X){a.focusEl=X}}if(Ext.isDefined(B.iconCls)){a.setIconClass(B.iconCls)}this.setIcon(Ext.isDefined(B.icon)?B.icon:H);N=J(B.buttons);M.setVisible(B.progress===true||B.wait===true);this.updateProgress(0,B.progressText);this.updateText(B.msg);if(B.cls){a.el.addClass(B.cls)}a.proxyDrag=B.proxyDrag===true;a.modal=B.modal!==false;a.mask=B.modal!==false?P:false;if(!a.isVisible()){document.body.appendChild(T.el.dom);a.setAnimateTarget(B.animEl);a.on("show",function(){if(W===true){a.keyMap.enable()}else{a.keyMap.disable()}},this,{single:true});a.show(B.animEl)}if(B.wait===true){M.wait(B.waitConfig)}return this},setIcon:function(W){if(!T){H=W;return }H=undefined;if(W&&W!=""){I.removeClass("x-hidden");I.replaceClass(D,W);G.addClass("x-dlg-icon");D=W}else{I.replaceClass(D,"x-hidden");G.removeClass("x-dlg-icon");D=""}return this},progress:function(Y,X,W){this.show({title:Y,msg:X,buttons:false,progress:true,closable:false,minWidth:this.minProgressWidth,progressText:W});
return this},wait:function(Y,X,W){this.show({title:X,msg:Y,buttons:false,closable:false,wait:true,modal:true,minWidth:this.minProgressWidth,waitConfig:W});return this},alert:function(Z,Y,X,W){this.show({title:Z,msg:Y,buttons:this.OK,fn:X,scope:W,minWidth:this.minWidth});return this},confirm:function(Z,Y,X,W){this.show({title:Z,msg:Y,buttons:this.YESNO,fn:X,scope:W,icon:this.QUESTION,minWidth:this.minWidth});return this},prompt:function(b,a,Y,X,W,Z){this.show({title:b,msg:a,buttons:this.OKCANCEL,fn:Y,minWidth:this.minPromptWidth,scope:X,prompt:true,multiline:W,value:Z});return this},showCentered:function(W){this.getDialog().el.alignTo(W,"c-c?")},OK:{ok:true},CANCEL:{cancel:true},OKCANCEL:{ok:true,cancel:true},YESNO:{yes:true,no:true},YESNOCANCEL:{yes:true,no:true,cancel:true},INFO:"ext-mb-info",WARNING:"ext-mb-warning",QUESTION:"ext-mb-question",ERROR:"ext-mb-error",defaultTextHeight:75,maxWidth:600,minWidth:100,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:"OK",cancel:"Cancel",yes:"Yes",no:"No"},windowCfg:{}}
}();Ext.QMsg=shared.window.QualysMessageBox;
(function(){Ext.namespace("frame.authentication");var A=frame.authentication.EntryLoginPanel=function(B){A.superclass.constructor.call(this,Ext.apply({layout:"column",cls:"login-panel",height:280,border:false,width:825,items:[{xtype:"container",ref:"contentPanel",cls:"content-panel",width:500,defaults:{xtype:"container"},items:[{xtype:"box",html:$L("Qualys FreeScan -")+"<br>Your Online Vulnerability Scanner",cls:"title"},{xtype:"box",cls:"description",html:$L("Get a quick snapshot of your security and compliance posture along with recommendations for effective fixes. ")+'<span class="hyperlink signup">'+$L("Sign up for a free account.")+"</span>"},{cls:"scan-type vm",html:$L("Network Vulnerability Scan for Server and App")},{cls:"scan-type patch",html:$L("Patch Tuesday PC Audit ")},{cls:"scan-type owasp",html:$L("OWASP Web Application Audit")},{cls:"scan-type scap",html:$L("SCAP Compliance Audit")}]},{xtype:"box",html:"&nbsp;",column:1},{width:315,xtype:"container",cls:"blue-container",items:[{xtype:"form",height:260,ref:"../loginPanel",id:"loginpanel",cls:"login-form-panel",labelAlign:"top",defaults:{width:215,labelSeparator:"",msgTarget:"side"},defaultType:"round-textfield",items:[{xtype:"box",html:$L("Sign in to your account:"),cls:"panel-header",width:260,height:25},{xtype:"box",width:260,html:$L("Don't have an account? ")+'<span class="hyperlink signup"><u>'+$L("Start your free account!")+"</u></span>",height:25},{xtype:"box",height:30},{fieldLabel:$L("d6a5f98f-a6dc-4afe-adf7-3fb8d52cdc7e","Email Address"),name:"userName",ref:"userName",resetFlag:true,msgTarget:"side",reset:function(){this.resetFlag=true;
this.setValue("")},validator:function(C){if(Ext.form.VTypes.email(C)!=true&&!this.resetFlag){(function(){new shared.tooltip.ErrorTip({target:this.getEl().parent().parent().parent().child(".x-form-invalid-icon"),html:$L("a30e1f8f-2a11-495c-a4fd-83af8e3364de","Enter valid email address"),anchor:"bottom"}).show()}).defer(10,this);return Ext.form.VTypes.email(C)}}},{xtype:"box",height:5},{xtype:"round-textfield",inputType:"password",ref:"password",resetFlag:true,reset:function(){this.resetFlag=true;this.setValue("")},validator:function(C){if(C.trim().length==0&&!this.resetFlag){(function(){new shared.tooltip.ErrorTip({target:this.getEl().parent().parent().parent().child(".x-form-invalid-icon"),html:$L("32b77f58-7e21-4ec2-82ae-b295aead0335","Enter password"),anchor:"bottom"}).show()}).defer(10,this);return $L("32b77f58-7e21-4ec2-82ae-b295aead0335","Enter password")}},fieldLabel:$L("1d41633f-d7bc-418b-96d5-9cf2209f06dd","Password"),name:"password"},{xtype:"box",height:10},{xtype:"container",layout:"column",width:255,items:[{xtype:"button",text:"&nbsp;&nbsp;&nbsp;"+$L("Sign in")+"&nbsp;&nbsp;&nbsp;",handler:this.login,ref:"../loginBtn",cls:"q-button-flat-blue-light",scale:"medium",scope:this},{xtype:"box",width:20,html:"&nbsp;"},{xtype:"box",html:'<div class="hyperlink show-reset-password">'+$L("Forgot your password?")}]}],listeners:{render:function(){(function(){this.loginPanel.userName.getEl().focus()
}).defer(100,this);this.getEl().on("keypress",function(C){if(C.getKey()==C.ENTER){this.login()}},this);this.getEl().on("click",function(C,E,G){var F=Ext.get(E);if(F.hasClass("show-reset-password")){this.enableBubble("showResetPassword");this.fireEvent("showResetPassword")}if(F.hasClass("signup")){var D=window.corpFormUrl;shared.system.Navigator.navigate(D,$L("7e0f71c3-0e82-4384-860a-702c3dd55fb2","Please wait..."))}},this,{delegate:".hyperlink"})},scope:this}}]}]},B))};Ext.extend(A,Ext.Container,{initComponent:function(){A.superclass.initComponent.call(this);this.addEvents("success","failure","forgotpassword")},loginSuccess:function(B){PageFrame.hideLoadingMask();if(!B.success){this.handleLoginFailure(B.failureReason,B.message);return }this.fireEvent("success",B);(function(){var C=window.location.search;var D=C.indexOf("?redirect=")>-1?C:"/module/freescan/";shared.system.Navigator.navigate(D,$L("f415e532-cce2-44d1-bf1e-efd60d1fa02c","Please wait, logging in..."))}).defer(60)},login:function(E,B){this.loginPanel.userName.resetFlag=false;
this.loginPanel.password.resetFlag=false;E=this.loginPanel.getForm().getValues().userName;B=this.loginPanel.getForm().getValues().password;E=Ext.util.Format.trim(E);if(this.loginPanel.getForm().isValid()){var C=this.loginPanel.loginBtn;C.setDisabled(true);var D=new Date();this.leadSource=Page.getParams().leadSource;Service("core.user.Authentication").authenticate(E,B,"GMT"+D.getGMTOffset(true),this.leadSource,{success:this.loginSuccess,failure:this.handleLoginFailure.createDelegate(this,[E,B],0),scope:this})}},handleLoginFailure:function(F,C,E,B){var D=this.loginPanel.loginBtn;D.setDisabled(false);new shared.Balloon.Error({title:$L("edb80384-e02b-467f-b654-7c2f49cf801e","Unable to Login"),stemSide:"top",stemOffset:0.5,message:$L("7e1ec430-d248-46cc-8fee-e313be45a1a7","We're having trouble logging you in - please check your username and password, then try again.")}).show(D.getEl());this.fireEvent("failure",E,B)}})})();
Ext.namespace("shared.form");shared.form.Validators=(function(){var C=/^.*(?=.{8,25})(?=.*[a-zA-Z])(?=.*[\d@#$%^&+=]).*$/;var B=/^[a-zA-Z0-9\-\._]+$/;var D=/^(http:\/\/|https:\/\/|ftp:\/\/)(www.)?[0-9A-Za-z\.\-]*\.[0-9A-Za-z\.\-]*[0-9A-Za-z\.\-\/]*$/;var E=/(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$)/;
var A=/(^\s*((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))\s*$)/;return{password:function(F){if(!C.test(F)){return $L("Password must include 8-25 characters with at least one number or special character.")}else{return true}},chain:function(){var F=arguments;return function(G){Ext.each(F,function(){var H=v(G);if(typeof H=="string"){return H}});return true}},vscannerName:function(F){if(!B.test(F)||F.length>15){return"Scanner must be less than 15 characters and can have only digits, alphabets and . - _ "}else{return true}},isUrl:function(F){return D.test(F)},isIpv6Address:function(F){return E.test(F)},isIpv4Address:function(F){return A.test(F)},validateFor:function(G,H){var F=Page.getPreLoaded("currentUser").settings.ipv6Support;if(G==="IP"){if(!(shared.form.Validators.isIpv4Address(H)||(F&&shared.form.Validators.isIpv6Address(H)))){return $L("Please enter a valid IP address")}else{return true}}if(G==="URL"){if(!shared.form.Validators.isUrl(H)){return $L("Please enter a valid URL")
}else{return true}}if(G==="BOTH"){if(!(shared.form.Validators.isIpv4Address(H)||(F&&shared.form.Validators.isIpv6Address(H))||shared.form.Validators.isUrl(H))){return $L("Please enter a valid URL or IP address")}else{return true}}}}})();
(function(){Ext.namespace("frame.authentication");var A=frame.authentication.FirstTimeEntryLoginPanel=function(B){A.superclass.constructor.call(this,Ext.apply({layout:"hbox",layoutConfig:{align:"middle",pack:"start"},flex:1,cls:"reset-password-panel",defaults:{margins:"0 0 0 5"},items:[{xtype:"container",width:810,height:270,border:false,cls:"blue-container reset-password-panel",items:[{xtype:"box",html:"Welcome to Qualys FreeScan",cls:"title",height:35},{xtype:"box",html:"To continue please create a password for your account :",cls:"description",height:25},{xtype:"form",labelAlign:"top",height:190,ref:"../changePasswordPanel",defaults:{width:250,labelSeparator:"",msgTarget:"side"},defaultType:"textfield",items:[{fieldLabel:"Your email ",name:"username",disabled:true},{id:"newPasswordField",fieldLabel:$L("ebe32e44-c827-4e87-92be-bf6b8eb9dea9","Create Password (8-25 characters)"),name:"newPassword",maxLength:30,inputType:"password",resetFlag:true,reset:function(){this.resetFlag=true;this.setValue("")},validator:function(C){if(shared.form.Validators.password(C)!=true&&!this.resetFlag){(function(){new shared.tooltip.ErrorTip({target:this.getEl().parent().parent().parent().child(".x-form-invalid-icon"),html:shared.form.Validators.password(C),anchor:"bottom"}).show()
}).defer(10,this);return shared.form.Validators.password(C)}}},{fieldLabel:$L("5b4d907d-73d1-4a72-baf4-87a2e3435478","Confirm Password"),inputType:"password",vtype:"password",name:"retypePassword",resetFlag:true,reset:function(){this.resetFlag=true;this.setValue("")},validator:function(C){if(C!=Ext.getCmp("newPasswordField").getValue()&&!this.resetFlag){(function(){p=this.getEl();new shared.tooltip.ErrorTip({target:this.getEl().parent().parent().child(".x-form-invalid-icon"),html:$L("1bd4b5bf-0e25-4372-872b-3a9bb639b578","Password does not match"),anchor:"bottom"}).show()}).defer(10,this);return $L("1bd4b5bf-0e25-4372-872b-3a9bb639b578","Password does not match")}}},{text:$L("2826d3a6-2b2d-427a-ba90-0c877a8b461f","Login"),xtype:"button",ref:"resetPasswordBtn",cls:"q-button-flat-blue-light",handler:this.changePassword,disabled:true,width:50,scope:this}],listeners:{render:function(){this.getEl().on("keypress",function(C){if(C.getKey()==C.ENTER){this.changePassword()}},this)},scope:this}}]}]},B));this.on("afterrender",function(){this.username=Page.getParams().user;
this.leadSource=Page.getParams().leadSource;if(Page.getParams().code&&Page.getParams().user){this.password=Page.getParams().code;this.login(Page.getParams().user,Page.getParams().code,this.leadSource)}if(Page.getParams().resetCode&&Page.getParams().user){this.password=Page.getParams().resetCode;this.loginWithRegistrationCode(Page.getParams().user,Page.getParams().resetCode,this.leadSource)}},this,{single:true,delay:100})};Ext.extend(A,Ext.Container,{changePassword:function(){var C=new Date();var B=Page.getParams().resetCode?Page.getParams().resetCode:Page.getParams().code;this.changePasswordPanel.getForm().findField("newPassword").resetFlag=false;this.changePasswordPanel.getForm().findField("retypePassword").resetFlag=false;if(this.changePasswordPanel.getForm().isValid()){Service("core.user.Authentication").authenticateAndUpdatePassword(Page.getParams().user,B,this.changePasswordPanel.getForm().getValues().newPassword,"GMT"+C.getGMTOffset(true),this.leadSource,{success:function(D){this.loginSuccess(D)},failure:function(E,D){this.fireEvent("failure",E,D)
},scope:this})}this.changePasswordPanel.getForm().findField("newPassword").resetFlag=true;this.changePasswordPanel.getForm().findField("retypePassword").resetFlag=true},handleLinkClick:function(C,B){this.fireEvent(Ext.fly(B).getAttribute("name"),B)},initComponent:function(){A.superclass.initComponent.call(this);this.addEvents("success","failure","forgotpassword")},loginSuccess:function(B){if(!B.success){this.handleLoginFailure(B.failureReason,B.message);return }this.fireEvent("success",B);(function(){var C=Page.getParams().forward;var D=C!=null?C:"/home/freescan";shared.system.Navigator.navigate(D,$L("f415e532-cce2-44d1-bf1e-efd60d1fa02c","Please wait, logging in..."))}).defer(60)},login:function(C,B){this.username=Ext.util.Format.trim(C);Service("core.user.Authentication").authenticate(this.username,B,this.leadSource,{success:this.loginSuccess,failure:this.handleLoginFailure,scope:this})},loginWithRegistrationCode:function(C,B){this.username=C;Service("core.user.Authentication").authenticateWithRegistrationCode(C,B,this.leadSource,{success:this.loginSuccess,failure:this.handleLoginFailure,scope:this})
},handleLoginFailure:function(D,C){this.changePasswordPanel.resetPasswordBtn.setDisabled(false);if(D=="CHANGE_PW_REQUIRED"){this.changePasswordPanel.getForm().findField("username").setValue(this.username)}else{var B=this.changePasswordPanel.resetPasswordBtn;B.setDisabled(true);new shared.Balloon.Error({title:$L("0aa8adc2-3812-4916-b7f5-620e575aa787","Unable to find the user"),stemSide:"bottom",stemOffset:0.5,message:$L("13dda3f6-d3e0-4776-b4f5-8dcc90b779cd","We're having trouble logging you in - please check your email link, then try again.")}).show(B.getEl());this.fireEvent("failure")}}})})();
(function(){Ext.namespace("frame.authentication");var A=frame.authentication.ResetPasswordPanel=function(B){A.superclass.constructor.call(this,Ext.apply({layout:"hbox",layoutConfig:{align:"middle",pack:"start"},flex:1,cls:"reset-password-panel",defaults:{margins:"0 0 0 2"},items:[{xtype:"container",height:250,width:815,border:false,cls:"blue-container reset-password-panel",items:[{xtype:"box",cls:"title",html:$L("41b66483-e965-4fad-8744-ae62cc23c886","Reset your password"),height:35},{xtype:"box",cls:"description",html:$L("26f26931-bc4a-49f4-aec9-0e2fd83c2ef0","Got an account, but can't remember your password?"),height:25},{xtype:"box",cls:"description",html:$L("578db0ab-b370-47cc-9e9f-7b5475f46057","Enter your email below, and we'll send you information on resetting your password."),height:25},{xtype:"box",height:20},{xtype:"form",height:90,ref:"../formPanel",labelAlign:"top",defaults:{width:215,labelSeparator:"",msgTarget:"side"},defaultType:"round-textfield",items:[{fieldLabel:$L("d6a5f98f-a6dc-4afe-adf7-3fb8d52cdc7e","Email Address"),ref:"../../emailAddress",allowBlank:false,resetFlag:true,reset:function(){this.resetFlag=true;
this.setValue("")},validator:function(C){if(Ext.form.VTypes.email(C)!=true&&!this.resetFlag){(function(){new shared.tooltip.ErrorTip({target:this.getEl().parent().parent().parent().child(".x-form-invalid-icon"),html:"Enter valid email address",anchor:"bottom"}).show()}).defer(10,this);return Ext.form.VTypes.email(C)}}},{xtype:"toolbar",width:225,items:[{xtype:"button",text:$L("bfe97b35-aa55-4eeb-9a9d-32c1a482a4eb","Reset"),ref:"../../../resetBtn",handler:function(){this.emailAddress.resetFlag=false;if(this.emailAddress.isValid()){this.resetBtn.disable();var C=new Ext.LoadMask(this.getEl(),{msg:$L("90cbf8f1-1d25-4a54-acd0-e10eb376b7fb","please wait")+"..."});C.show();this.leadSource=Page.getParams().leadSource;Service("core.user.Authentication").resetPassword(this.emailAddress.getValue(),this.leadSource,{success:function(){Ext.QMsg.alert($L("4f79bdf5-af71-4bac-9337-2a5d114558b9","Password reset successful"),$L("a2f2c0d3-79e4-4dff-b111-83dfcb9c93b4","You should be receiving a mail with a link which allows you to reset your password."),function(){this.enableBubble("showLogin");
this.fireEvent("showLogin")},this);this.emailAddress.reset();this.resetBtn.enable();C.hide()},failure:function(){C.hide();this.emailAddress.reset();this.resetBtn.enable();Ext.QMsg.alert($L("50406dbb-0c43-4372-928d-e42bb6f42bfe","Password reset failure"),$L("ece2ed54-8729-4ca8-98a4-fbffd2ffe448","We are unable to find a user with the email. Please contact support for assistance."))},scope:this})}},scope:this,width:80,cls:"q-button-flat-blue-light"},"->",{xtype:"button",cls:"link",text:$L("b126631c-28a1-4ee4-8718-0215af2500b2","back to login"),handler:function(){this.enableBubble("showLogin");this.fireEvent("showLogin")}}]}]},{xtype:"box",height:35,html:$L("7d76c4ef-cff9-4a82-b23d-1aba719d9f9c","Need an account?")+'&nbsp;<a id="reset-password-corp-url" href="'+window.corpFormUrl+'">Sign Up</a>'}]}]},B))};Ext.extend(A,Ext.Container,{})})();
if(typeof dwr=="undefined"||dwr.engine==undefined){throw new Error("You must include DWR engine before including this file")}(function(){if(dwr.engine._getObject("_svc_core_user_AuthenticationService")==undefined){var A;(function(){Ext.namespace("shared.dwr");if(!window.shared.dwr.RequestTemplate){shared.dwr.RequestTemplate={_applyToFunction:function(){}}}var B=shared.dwr.RequestTemplate,C=A={};A._path="/freescan-front/dwr";A.authenticate=function(H,F,E,D,G){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","authenticate",arguments)};B._applyToFunction(C.authenticate);A.getUser=function(D){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","getUser",arguments)};B._applyToFunction(C.getUser);A.logout=function(D){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","logout",arguments)};B._applyToFunction(C.logout);A.authenticateWithRegistrationCode=function(G,E,D,F){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","authenticateWithRegistrationCode",arguments)
};B._applyToFunction(C.authenticateWithRegistrationCode);A.updateUserPassword=function(H,F,E,D,G){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","updateUserPassword",arguments)};B._applyToFunction(C.updateUserPassword);A.authenticateAndUpdatePassword=function(I,G,F,E,D,H){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","authenticateAndUpdatePassword",arguments)};B._applyToFunction(C.authenticateAndUpdatePassword);A.resetPassword=function(F,D,E){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","resetPassword",arguments)};B._applyToFunction(C.resetPassword);A.getFreeScanTerms=function(D){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","getFreeScanTerms",arguments)};B._applyToFunction(C.getFreeScanTerms);A.getSessionLength=function(D){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","getSessionLength",arguments)};B._applyToFunction(C.getSessionLength);A.getLoginFrameDTO=function(D){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","getLoginFrameDTO",arguments)
};B._applyToFunction(C.getLoginFrameDTO);A.getPassport=function(D){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","getPassport",arguments)};B._applyToFunction(C.getPassport);A.ping=function(D){return dwr.engine._execute(C._path,"_svc_core_user_AuthenticationService","ping",arguments)};B._applyToFunction(C.ping)})();dwr.engine._setObject("_svc_core_user_AuthenticationService",A)}})();
(function(){Ext.namespace("frame");var A=frame.ForgotPassword=function(B){A.superclass.constructor.call(this,Ext.apply({width:350,height:180,autoHeight:true,title:$L("071312fd-ec4c-4cf1-a11f-b295e712c879","Reset Password"),modal:true,closable:true,id:"forgotPasswordWindow",items:[{xtype:"form",height:100,defaults:{xtype:"textfield",allowBlank:false,width:300},border:false,ref:"formPanel",items:[{xtype:"box",height:15},{xtype:"label",style:"font-size: 13px",text:$L("81ce55f4-edb1-4d7f-9d6b-9268e5282799","Please enter your username to reset your password")},{xtype:"box",height:10},{name:"username",allowBlank:false,invalidText:"Invalid username",hideLabel:true,listeners:{render:function(){this.focus(false,400)}}}]},{height:30,xtype:"container",layout:"hbox",layoutConfig:{align:"stretch",pack:"end"},items:[{xtype:"button",cls:"link",text:"Cancel",handler:function(){Ext.getCmp("forgotPasswordWindow").close()}},{xtype:"label",cls:"orText",width:30,html:" or "},{text:"Reset",xtype:"button",cls:"round-button",scale:"small",ref:"../../submitButton",handler:this.submit,scope:this}]}]},B));
Ext.EventManager.onWindowResize(function(){this.center()},this);this.on("render",function(){this.getEl().on("keypress",function(C){if(C.getKey()==C.ENTER){this.submit()}},this)},this,{single:true})};Ext.extend(A,Ext.Window,{submit:function(){if(!this.formPanel.getForm().isValid()){return }Service("user.Authentication").resetPassword(this.formPanel.getForm().findField("username").getValue(),{success:function(){Ext.getCmp("forgotPasswordWindow").close();Ext.Msg.alert($L("fe125db3-db21-4ab2-8d0d-e3842430372c","Password Reset Success"),$L("ecf335d6-15ca-497d-81bf-e9e9bcabbcd5","Please check your email in a few minutes to access your new login information."))},failure:function(){Ext.getCmp("forgotPasswordWindow").close();Ext.Msg.alert($L("884a7d7f-373b-4d52-9527-3fe6803aec44","Error"),$L("3b30cfc8-6503-4acf-bfca-b6743cc51bc6","We are sorry we are unable to process your request. If you feel this is in error, please contact us at <a href='mailto:support@qualys.com'>support@qualys.com</a>."))}})}})})();
(function(){Ext.namespace("shared.tooltip");Ext.override(Ext.Tip,{floating:{shadow:false,shim:true,useDisplay:true,constrain:false}});shared.tooltip.ErrorTip=Ext.extend(Ext.ToolTip,{cls:"error-tool-tip",dismissDelay:10000,syncAnchor:function(){var A,B,C;switch(this.tipAnchor.charAt(0)){case"t":A="b";B="tl";C=[20+this.anchorOffset,3];break;case"r":A="l";B="tr";C=[-8,15+this.anchorOffset];break;case"b":A="t";B="bl";C=[30+this.anchorOffset,-9];break;default:A="r";B="tl";C=[3,15+this.anchorOffset];break}this.anchorEl.alignTo(this.el,A+"-"+B,C)},showAt:function(A){A[0]=A[0]-20;this.lastActive=new Date();this.clearTimers();Ext.ToolTip.superclass.showAt.call(this,A);if(this.dismissDelay&&this.autoHide!==false){this.dismissTimer=this.hide.defer(this.dismissDelay,this)}if(this.anchor&&!this.anchorEl.isVisible()){this.syncAnchor();this.anchorEl.show()}else{this.anchorEl.hide()}}})})();
(function(){Ext.namespace("frame.panel");var A=frame.panel.MaintenancePanel=function(B){A.superclass.constructor.call(this,Ext.apply({height:245,cls:"maintenance-panel",items:[{height:50,cls:"maintenance-header",html:'<div class="header">'+$L("Qualys FreeScan Maintenance Notification")+'</div><div class="description">'+$L("Scheduled for $1",window.maintenanceDate)+"</div>"},{cls:"maintenance-description",html:$L("Qualys regularly upgrades the Qualys Cloud Platforms for capacity expansion and maintenance purposes. ")+$L("We are implementing an upgrade that will allow Qualys to apply database and network enhancements to the FreeScan platform. ")+$L("This upgrade will happen on $1 and <b>requires a 12-hour downtime</b> starting at 19:00 UTC and ending at 07:00 UTC the next day.",window.maintenanceDate)+"<br><br>"+$L("We appreciate your patience and if you have any further questions regarding this upgrade, please feel free to contact Qualys Technical Support at $1 or via the phone numbers listed at $2.",'<a href="mailto:support@qualys.com">support@qualys.com</a>','<a href="http://qualys.com/support">qualys.com/support</a>')+"<br><br>"+$L("We thank you for your continued support and look forward to your feedback.")}]},B))
};Ext.extend(A,Ext.Container,{})})();
(function(){Ext.namespace("frame");var A=frame.LoginFrame=function(B){A.superclass.constructor.call(this,Ext.apply({},{layout:"fit",border:false,items:{cls:"login-frame swooshies",layout:"vbox",innerCls:"",layoutConfig:{align:"center",pack:"start"},border:false,width:990,scope:this,id:"login-frame",listeners:{afterlayout:{fn:function(C){C.getEl().child(".x-box-inner").setStyle("overflow","auto")},single:true},showLogin:function(){this.resetPasswordPanel.formPanel.getForm().reset();this.setActiveListingTab(0)},scope:this},items:[{width:985,xtype:"panel",layout:"anchor",border:false,margins:"30 0 0 0",items:[{xtype:"box",width:"100%",cls:"freescan-logo",height:80},{xtype:"panel",ref:"../../logPanel",layout:"card",layoutConfig:{deferredRender:false},border:false,height:window.showMaintenancePage?645:320,activeItem:(Page.getParams().resetCode||Page.getParams().code)?1:0,listeners:{showResetPassword:function(){this.loginPanel.loginPanel.getForm().reset();this.setActiveListingTab(2)},scope:this},defaults:{xtype:"panel",border:false,layout:"vbox",width:850,height:310,layoutConfig:{pack:"start",align:"center"}},items:[{items:{xtype:"panel",frame:true,cls:"q-drop-shadow",width:850,items:[this.loginPanel=new frame.authentication.EntryLoginPanel({listeners:{forgotpassword:function(){new frame.user.ForgotPassword().show()
}}}),new frame.panel.MaintenancePanel({hidden:!window.showMaintenancePage})]}},{items:{xtype:"panel",frame:true,cls:"q-drop-shadow",width:850,items:this.firstTimeLoginPanel=new frame.authentication.FirstTimeEntryLoginPanel({})}},{items:{xtype:"panel",frame:true,cls:"q-drop-shadow",width:850,items:this.resetPasswordPanel=new frame.authentication.ResetPasswordPanel({})}}]},{layout:"vbox",layoutConfig:{align:"stretch"},border:false,height:60,items:[{xtype:"box",id:"copyright-text",html:"&copy; "+$L("05a2ac12-b5e1-422d-8370-61f5821e2229","1999-")+new Date().getFullYear()+(" Qualys, Inc. All rights reserved."),height:30}]}]}]}},B))};Ext.extend(A,Ext.Viewport,{setActiveListingTab:function(B){this.logPanel.layout.setActiveItem(B)}});window.PageFrame={showLoadingMask:function(B){var C=B||$L("Please wait a moment while we process your request.");var D="This may take some time.";Ext.getBody().mask('<div class="message-content"><h3>'+C+'</h3><div class="message-text">'+D+"</div></div>","frame-mask")},hideLoadingMask:function(){Ext.getBody().unmask()
}}})();
Ext.onReady(function(){Ext.QuickTips.init();Page._doLoad();var A=Ext.getBody().select("#page-loading-frame");if(A){A.remove()}});if(!window.console){window.console={log:function(){},error:function(){},trace:function(){},exception:function(){}}}else{window.console.exception=function(D){if(typeof D=="Object"){console.error(D.name,": ",D.message," - ",D.fileName,":",D.lineNumber);console.groupCollapsed(D.name,": ",D.message," - Stack Trace");var B=D.stack.split("\n");for(var C=0,A=B.length;C<A;C++){console.log(B[C])}console.endGroup()}else{console.error(D)}};Array.prototype.find=function(D,C){for(var B=0,A=this.length;B<A;B++){if(D.call(C||window,this[B])){return this[B]}}return undefined};Array.prototype.map=function(E,D){var B=[];for(var C=0,A=this.length;C<A;C++){B.push(E.call(D||window,this[C]))}return B}};
Resource._css('html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}img,body,html{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;}q:before,q:after{content:\'\';}.ext-forced-border-box,.ext-forced-border-box *{-moz-box-sizing:border-box;-ms-box-sizing:border-box;-webkit-box-sizing:border-box;}.ext-el-mask{z-index:100;position:absolute;top:0;left:0;-moz-opacity:.5;opacity:.50;filter:alpha(opacity=50);width:100%;height:100%;zoom:1;}.ext-el-mask-msg{z-index:20001;position:absolute;top:0;left:0;border:1px solid;background:repeat-x 0 -16px;padding:2px;}.ext-el-mask-msg div{padding:5px 10px 5px 10px;border:1px solid;cursor:wait;}.ext-shim{position:absolute;visibility:hidden;left:0;top:0;overflow:hidden;}.ext-ie .ext-shim{filter:alpha(opacity=0);}.ext-ie6 .ext-shim{margin-left:5px;margin-top:3px;}.x-mask-loading div{padding:5px 10px 5px 25px;background:no-repeat 5px 5px;line-height:16px;}'+
'.x-hidden,.x-hide-offsets{position:absolute!important;left:-10000px;top:-10000px;visibility:hidden;}.x-hide-display{display:none!important;}.x-hide-nosize,.x-hide-nosize *{height:0!important;width:0!important;visibility:hidden!important;border:none!important;zoom:1;}.x-hide-visibility{visibility:hidden!important;}.x-masked{overflow:hidden!important;}.x-masked-relative{position:relative!important;}.x-masked select,.x-masked object,.x-masked embed{visibility:hidden;}.x-layer{visibility:hidden;}.x-unselectable,.x-unselectable *{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:ignore;}.x-repaint{zoom:1;background-color:transparent;-moz-outline:none;outline:none;}.x-item-disabled{cursor:default;opacity:.6;-moz-opacity:.6;filter:alpha(opacity=60);}.x-item-disabled *{cursor:default!important;}.x-form-radio-group .x-item-disabled{filter:none;}.x-splitbar-proxy{position:absolute;visibility:hidden;z-index:20001;zoom:1;line-height:1px;font-size:1px;overflow:hidden;}.x-splitbar-h,.x-splitbar-proxy-h{cursor:e-resize;cursor:col-resize;}'+
'.x-splitbar-v,.x-splitbar-proxy-v{cursor:s-resize;cursor:row-resize;}.x-color-palette{width:150px;height:92px;cursor:pointer;}.x-color-palette a{border:1px solid;float:left;padding:2px;text-decoration:none;-moz-outline:0 none;outline:0 none;cursor:pointer;}.x-color-palette a:hover,.x-color-palette a.x-color-palette-sel{border:1px solid;}.x-color-palette em{display:block;border:1px solid;}.x-color-palette em span{cursor:pointer;display:block;height:10px;line-height:10px;width:10px;}.x-ie-shadow{display:none;position:absolute;overflow:hidden;left:0;top:0;zoom:1;}.x-shadow{display:none;position:absolute;overflow:hidden;left:0;top:0;}.x-shadow *{overflow:hidden;}.x-shadow *{padding:0;border:0;margin:0;clear:none;zoom:1;}.x-shadow .xstc,.x-shadow .xsbc{height:6px;float:left;}.x-shadow .xstl,.x-shadow .xstr,.x-shadow .xsbl,.x-shadow .xsbr{width:6px;height:6px;float:left;}.x-shadow .xsc{width:100%;}.x-shadow .xsml,.x-shadow .xsmr{width:6px;float:left;height:100%;}.x-shadow .xsmc{float:left;height:100%;background-color:transparent;}'+
'.x-shadow .xst,.x-shadow .xsb{height:6px;overflow:hidden;width:100%;}.x-shadow .xsml{background:transparent repeat-y 0 0;}.x-shadow .xsmr{background:transparent repeat-y -6px 0;}.x-shadow .xstl{background:transparent no-repeat 0 0;}.x-shadow .xstc{background:transparent repeat-x 0 -30px;}.x-shadow .xstr{background:transparent repeat-x 0 -18px;}.x-shadow .xsbl{background:transparent no-repeat 0 -12px;}.x-shadow .xsbc{background:transparent repeat-x 0 -36px;}.x-shadow .xsbr{background:transparent repeat-x 0 -6px;}.loading-indicator{background:no-repeat left;padding-left:20px;line-height:16px;margin:3px;}.x-text-resize{position:absolute;left:-1000px;top:-1000px;visibility:hidden;zoom:1;}.x-drag-overlay{width:100%;height:100%;display:none;position:absolute;left:0;top:0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/s.gif\');z-index:20000;}.x-clear{clear:both;height:0;overflow:hidden;line-height:0;font-size:0;}.x-spotlight{z-index:8999;position:absolute;top:0;left:0;-moz-opacity:.5;opacity:.50;filter:alpha(opacity=50);width:0;height:0;zoom:1;}'+
'#x-history-frame{position:absolute;top:-1px;left:0;width:1px;height:1px;visibility:hidden;}#x-history-field{position:absolute;top:0;left:-1px;width:1px;height:1px;visibility:hidden;}.x-resizable-handle{position:absolute;z-index:100;font-size:1px;line-height:6px;overflow:hidden;filter:alpha(opacity=0);opacity:0;zoom:1;}.x-resizable-handle-east{width:6px;cursor:e-resize;right:0;top:0;height:100%;}.ext-ie .x-resizable-handle-east{margin-right:-1px;}.x-resizable-handle-south{width:100%;cursor:s-resize;left:0;bottom:0;height:6px;}.ext-ie .x-resizable-handle-south{margin-bottom:-1px;}.x-resizable-handle-west{width:6px;cursor:w-resize;left:0;top:0;height:100%;}.x-resizable-handle-north{width:100%;cursor:n-resize;left:0;top:0;height:6px;}.x-resizable-handle-southeast{width:6px;cursor:se-resize;right:0;bottom:0;height:6px;z-index:101;}.x-resizable-handle-northwest{width:6px;cursor:nw-resize;left:0;top:0;height:6px;z-index:101;}.x-resizable-handle-northeast{width:6px;cursor:ne-resize;right:0;top:0;height:6px;z-index:101;}'+
'.x-resizable-handle-southwest{width:6px;cursor:sw-resize;left:0;bottom:0;height:6px;z-index:101;}.x-resizable-over .x-resizable-handle,.x-resizable-pinned .x-resizable-handle{filter:alpha(opacity=100);opacity:1;}.x-resizable-over .x-resizable-handle-east,.x-resizable-pinned .x-resizable-handle-east,.x-resizable-over .x-resizable-handle-west,.x-resizable-pinned .x-resizable-handle-west{background-position:left;}.x-resizable-over .x-resizable-handle-south,.x-resizable-pinned .x-resizable-handle-south,.x-resizable-over .x-resizable-handle-north,.x-resizable-pinned .x-resizable-handle-north{background-position:top;}.x-resizable-over .x-resizable-handle-southeast,.x-resizable-pinned .x-resizable-handle-southeast{background-position:top left;}.x-resizable-over .x-resizable-handle-northwest,.x-resizable-pinned .x-resizable-handle-northwest{background-position:bottom right;}.x-resizable-over .x-resizable-handle-northeast,.x-resizable-pinned .x-resizable-handle-northeast{background-position:bottom left;}.x-resizable-over .x-resizable-handle-southwest,.x-resizable-pinned .x-resizable-handle-southwest{background-position:top right;}'+
'.x-resizable-proxy{border:1px dashed;position:absolute;overflow:hidden;display:none;left:0;top:0;z-index:50000;}.x-resizable-overlay{width:100%;height:100%;display:none;position:absolute;left:0;top:0;z-index:200000;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);}.x-tab-panel{overflow:hidden;}.x-tab-panel-header,.x-tab-panel-footer{border:1px solid;overflow:hidden;zoom:1;}.x-tab-panel-header{border:1px solid;padding-bottom:2px;}.x-tab-panel-footer{border:1px solid;padding-top:2px;}.x-tab-strip-wrap{width:100%;overflow:hidden;position:relative;zoom:1;}ul.x-tab-strip{display:block;width:5000px;zoom:1;}ul.x-tab-strip-top{padding-top:1px;background:repeat-x bottom;border-bottom:1px solid;}ul.x-tab-strip-bottom{padding-bottom:1px;background:repeat-x top;border-top:1px solid;border-bottom:0 none;}.x-tab-panel-header-plain .x-tab-strip-top{background:transparent!important;padding-top:0!important;}.x-tab-panel-header-plain{background:transparent!important;border-width:0!important;padding-bottom:0!important;}.x-tab-panel-header-plain .x-tab-strip-spacer,.x-tab-panel-footer-plain .x-tab-strip-spacer{border:1px solid;height:2px;font-size:1px;line-height:1px;}'+
'.x-tab-panel-header-plain .x-tab-strip-spacer{border-top:0 none;}.x-tab-panel-footer-plain .x-tab-strip-spacer{border-bottom:0 none;}.x-tab-panel-footer-plain .x-tab-strip-bottom{background:transparent!important;padding-bottom:0!important;}.x-tab-panel-footer-plain{background:transparent!important;border-width:0!important;padding-top:0!important;}.ext-border-box .x-tab-panel-header-plain .x-tab-strip-spacer,.ext-border-box .x-tab-panel-footer-plain .x-tab-strip-spacer{height:3px;}ul.x-tab-strip li{float:left;margin-left:2px;}ul.x-tab-strip li.x-tab-edge{float:left;margin:0!important;padding:0!important;border:0 none!important;font-size:1px!important;line-height:1px!important;overflow:hidden;zoom:1;background:transparent!important;width:1px;}.x-tab-strip a,.x-tab-strip span,.x-tab-strip em{display:block;}.x-tab-strip a{text-decoration:none!important;-moz-outline:none;outline:none;cursor:pointer;}.x-tab-strip-inner{overflow:hidden;text-overflow:ellipsis;}.x-tab-strip span.x-tab-strip-text{white-space:nowrap;cursor:pointer;padding:4px 0;}'+
'.x-tab-strip-top .x-tab-with-icon .x-tab-right{padding-left:6px;}.x-tab-strip .x-tab-with-icon span.x-tab-strip-text{padding-left:20px;background-position:0 3px;background-repeat:no-repeat;}.x-tab-strip-active,.x-tab-strip-active a.x-tab-right{cursor:default;}.x-tab-strip-active span.x-tab-strip-text{cursor:default;}.x-tab-strip-disabled .x-tabs-text{cursor:default;}.x-tab-panel-body{overflow:hidden;}.x-tab-panel-bwrap{overflow:hidden;}.ext-ie .x-tab-strip .x-tab-right{position:relative;}.x-tab-strip-top .x-tab-strip-active .x-tab-right{margin-bottom:-1px;}.ext-ie8 .x-tab-strip li{position:relative;}.ext-border-box .ext-ie8 .x-tab-strip-top .x-tab-right{top:1px;}.ext-ie8 .x-tab-strip-top{padding-top:1;}.ext-border-box .ext-ie8 .x-tab-strip-top{padding-top:0;}.ext-ie8 .x-tab-strip .x-tab-strip-closable a.x-tab-strip-close{top:3px;}.ext-border-box .ext-ie8 .x-tab-strip .x-tab-strip-closable a.x-tab-strip-close{top:4px;}.ext-ie8 .x-tab-strip-bottom .x-tab-right{top:0;}.x-tab-strip-top .x-tab-strip-active .x-tab-right span.x-tab-strip-text{padding-bottom:5px;}'+
'.x-tab-strip-bottom .x-tab-strip-active .x-tab-right{margin-top:-1px;}.x-tab-strip-bottom .x-tab-strip-active .x-tab-right span.x-tab-strip-text{padding-top:5px;}.x-tab-strip-top .x-tab-right{background:transparent no-repeat 0 -51px;padding-left:10px;}.x-tab-strip-top .x-tab-left{background:transparent no-repeat right -351px;padding-right:10px;}.x-tab-strip-top .x-tab-strip-inner{background:transparent repeat-x 0 -201px;}.x-tab-strip-top .x-tab-strip-over .x-tab-right{background-position:0 -101px;}.x-tab-strip-top .x-tab-strip-over .x-tab-left{background-position:right -401px;}.x-tab-strip-top .x-tab-strip-over .x-tab-strip-inner{background-position:0 -251px;}.x-tab-strip-top .x-tab-strip-active .x-tab-right{background-position:0 0;}.x-tab-strip-top .x-tab-strip-active .x-tab-left{background-position:right -301px;}.x-tab-strip-top .x-tab-strip-active .x-tab-strip-inner{background-position:0 -151px;}.x-tab-strip-bottom .x-tab-right{background:no-repeat bottom right;}.x-tab-strip-bottom .x-tab-left{background:no-repeat bottom left;}'+
'.x-tab-strip-bottom .x-tab-strip-active .x-tab-right{background:no-repeat bottom right;}.x-tab-strip-bottom .x-tab-strip-active .x-tab-left{background:no-repeat bottom left;}.x-tab-strip-bottom .x-tab-left{margin-right:3px;padding:0 10px;}.x-tab-strip-bottom .x-tab-right{padding:0;}.x-tab-strip .x-tab-strip-close{display:none;}.x-tab-strip-closable{position:relative;}.x-tab-strip-closable .x-tab-left{padding-right:19px;}.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close{opacity:.6;-moz-opacity:.6;background-repeat:no-repeat;display:block;width:11px;height:11px;position:absolute;top:3px;right:3px;cursor:pointer;z-index:2;}.x-tab-strip .x-tab-strip-active a.x-tab-strip-close{opacity:.8;-moz-opacity:.8;}.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{opacity:1;-moz-opacity:1;}.x-tab-panel-body{border:1px solid;}.x-tab-panel-body-top{border-top:0 none;}.x-tab-panel-body-bottom{border-bottom:0 none;}.x-tab-scroller-left{background:transparent no-repeat -18px 0;border-bottom:1px solid;width:18px;position:absolute;left:0;top:0;z-index:10;cursor:pointer;}'+
'.x-tab-scroller-left-over{background-position:0 0;}.x-tab-scroller-left-disabled{background-position:-18px 0;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);cursor:default;}.x-tab-scroller-right{background:transparent no-repeat 0 0;border-bottom:1px solid;width:18px;position:absolute;right:0;top:0;z-index:10;cursor:pointer;}.x-tab-scroller-right-over{background-position:-18px 0;}.x-tab-scroller-right-disabled{background-position:0 0;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);cursor:default;}.x-tab-scrolling-bottom .x-tab-scroller-left,.x-tab-scrolling-bottom .x-tab-scroller-right{margin-top:1px;}.x-tab-scrolling .x-tab-strip-wrap{margin-left:18px;margin-right:18px;}.x-tab-scrolling{position:relative;}.x-tab-panel-bbar .x-toolbar{border:1px solid;border-top:0 none;overflow:hidden;padding:2px;}.x-tab-panel-tbar .x-toolbar{border:1px solid;border-top:0 none;overflow:hidden;padding:2px;}.x-form-field{margin:0;}.ext-webkit *:focus{outline:none!important;}.x-form-text,textarea.x-form-field{padding:1px 3px;background:repeat-x 0 0;border:1px solid;}'+
'textarea.x-form-field{padding:2px 3px;}.x-form-text,.ext-ie .x-form-file{height:22px;line-height:18px;vertical-align:middle;}.ext-ie6 .x-form-text,.ext-ie7 .x-form-text{margin:-1px 0;height:22px;line-height:18px;}.x-quirks .ext-ie9 .x-form-text{height:22px;padding-top:3px;padding-bottom:0;}.x-quirks .ext-ie9 .x-input-wrapper .x-form-text,.x-quirks .ext-ie9 .x-form-field-trigger-wrap .x-form-text{margin-top:-1px;margin-bottom:-1px;}.x-quirks .ext-ie9 .x-input-wrapper .x-form-element{margin-bottom:-1px;}.ext-ie6 .x-form-field-wrap .x-form-file-btn,.ext-ie7 .x-form-field-wrap .x-form-file-btn{top:-1px;}.ext-ie6 textarea.x-form-field,.ext-ie7 textarea.x-form-field{margin:-1px 0;}.ext-strict .x-form-text{height:18px;}.ext-safari.ext-mac textarea.x-form-field{margin-bottom:-2px;}.ext-gecko .x-form-text,.ext-ie8 .x-form-text{padding-top:2px;padding-bottom:0;}.ext-ie6 .x-form-composite .x-form-text.x-box-item,.ext-ie7 .x-form-composite .x-form-text.x-box-item{margin:0!important;}textarea{resize:none;}.x-form-select-one{height:20px;line-height:18px;vertical-align:middle;border:1px solid;}'+
'.x-form-check-wrap{line-height:18px;height:auto;}.ext-ie .x-form-check-wrap input{width:15px;height:15px;}.x-form-check-wrap input{vertical-align:bottom;}.x-editor .x-form-check-wrap{padding:3px;}.x-editor .x-form-checkbox{height:13px;}.x-form-check-group-label{border-bottom:1px solid;margin-bottom:5px;padding-left:3px!important;float:none!important;}.x-form-field-wrap .x-form-trigger{width:17px;height:21px;border:0;background:transparent no-repeat 0 0;cursor:pointer;border-bottom:1px solid;position:absolute;top:0;}.x-form-field-wrap .x-form-date-trigger,.x-form-field-wrap .x-form-clear-trigger,.x-form-field-wrap .x-form-search-trigger{cursor:pointer;}.x-form-field-wrap .x-form-twin-triggers .x-form-trigger{position:static;top:auto;vertical-align:top;}.x-form-field-wrap{position:relative;left:0;top:0;text-align:left;zoom:1;white-space:nowrap;}.ext-strict .ext-ie8 .x-toolbar-cell .x-form-field-trigger-wrap .x-form-trigger{right:0;}.x-form-field-wrap .x-form-trigger-over{background-position:-17px 0;}.x-form-field-wrap .x-form-trigger-click{background-position:-34px 0;}'+
'.x-trigger-wrap-focus .x-form-trigger{background-position:-51px 0;}.x-trigger-wrap-focus .x-form-trigger-over{background-position:-68px 0;}.x-trigger-wrap-focus .x-form-trigger-click{background-position:-85px 0;}.x-trigger-wrap-focus .x-form-trigger{border-bottom:1px solid;}.x-item-disabled .x-form-trigger-over{background-position:0 0!important;border-bottom:1px solid;}.x-item-disabled .x-form-trigger-click{background-position:0 0!important;border-bottom:1px solid;}.x-trigger-noedit{cursor:pointer;}.x-form-focus,textarea.x-form-focus{border:1px solid;}.x-form-invalid,textarea.x-form-invalid{background:repeat-x bottom;border:1px solid;}.x-form-inner-invalid,textarea.x-form-inner-invalid{background:repeat-x bottom;}.x-editor{visibility:hidden;padding:0;margin:0;}.x-form-grow-sizer{left:-10000px;padding:8px 3px;position:absolute;visibility:hidden;top:-10000px;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;zoom:1;}.x-form-grow-sizer p{margin:0!important;border:0 none!important;padding:0!important;}'+
'.x-form-item{display:block;margin-bottom:4px;zoom:1;}.x-form-item label.x-form-item-label{display:block;float:left;width:100px;padding:3px;padding-left:0;clear:left;z-index:2;position:relative;}.x-form-element{padding-left:105px;position:relative;}.x-form-invalid-msg{padding:2px;padding-left:18px;background:transparent no-repeat 0 2px;line-height:16px;width:200px;}.x-form-label-left label.x-form-item-label{text-align:left;}.x-form-label-right label.x-form-item-label{text-align:right;}.x-form-label-top .x-form-item label.x-form-item-label{width:auto;float:none;clear:none;display:inline;margin-bottom:4px;position:static;}.x-form-label-top .x-form-element{padding-left:0;padding-top:4px;}.x-form-label-top .x-form-item{padding-bottom:4px;}.x-small-editor .x-form-text{height:20px;line-height:16px;vertical-align:middle;}.ext-ie6 .x-small-editor .x-form-text,.ext-ie7 .x-small-editor .x-form-text{margin-top:-1px!important;margin-bottom:-1px!important;height:20px!important;line-height:16px!important;}.ext-strict .x-small-editor .x-form-text{height:16px!important;}'+
'.ext-ie6 .x-small-editor .x-form-text,.ext-ie7 .x-small-editor .x-form-text{height:20px;line-height:16px;}.ext-border-box .x-small-editor .x-form-text{height:20px;}.x-small-editor .x-form-select-one{height:20px;line-height:16px;vertical-align:middle;}.x-small-editor .x-form-num-field{text-align:right;}.x-small-editor .x-form-field-wrap .x-form-trigger{height:19px;}.ext-webkit .x-small-editor .x-form-text{padding-top:3px;font-size:100%;}.ext-strict .ext-webkit .x-small-editor .x-form-text{height:14px!important;}.x-form-clear{clear:both;height:0;overflow:hidden;line-height:0;font-size:0;}.x-form-clear-left{clear:left;height:0;overflow:hidden;line-height:0;font-size:0;}.ext-ie6 .x-form-check-wrap input,.ext-border-box .x-form-check-wrap input{margin-top:3px;}.x-form-cb-label{position:relative;margin-left:4px;top:2px;}.ext-ie .x-form-cb-label{top:1px;}.ext-ie6 .x-form-cb-label,.ext-border-box .x-form-cb-label{top:3px;}.x-form-display-field{padding-top:2px;}.ext-gecko .x-form-display-field,.ext-strict .ext-ie7 .x-form-display-field{padding-top:1px;}'+
'.ext-ie .x-form-display-field{padding-top:3px;}.ext-strict .ext-ie8 .x-form-display-field{padding-top:0;}.x-form-column{float:left;padding:0;margin:0;width:48%;overflow:hidden;zoom:1;}.x-form .x-form-btns-ct .x-btn{float:right;clear:none;}.x-form .x-form-btns-ct .x-form-btns td{border:0;padding:0;}.x-form .x-form-btns-ct .x-form-btns-right table{float:right;clear:none;}.x-form .x-form-btns-ct .x-form-btns-left table{float:left;clear:none;}.x-form .x-form-btns-ct .x-form-btns-center{text-align:center;}.x-form .x-form-btns-ct .x-form-btns-center table{margin:0 auto;}.x-form .x-form-btns-ct table td.x-form-btn-td{padding:3px;}.x-form .x-form-btns-ct .x-btn-focus .x-btn-left{background-position:0 -147px;}.x-form .x-form-btns-ct .x-btn-focus .x-btn-right{background-position:0 -168px;}.x-form .x-form-btns-ct .x-btn-focus .x-btn-center{background-position:0 -189px;}.x-form .x-form-btns-ct .x-btn-click .x-btn-center{background-position:0 -126px;}.x-form .x-form-btns-ct .x-btn-click .x-btn-right{background-position:0 -84px;}'+
'.x-form .x-form-btns-ct .x-btn-click .x-btn-left{background-position:0 -63px;}.x-form-invalid-icon{width:16px;height:18px;visibility:hidden;position:absolute;left:0;top:0;display:block;background:transparent no-repeat 0 2px;}.x-fieldset{border:1px solid;padding:10px;margin-bottom:10px;display:block;}.ext-webkit .x-fieldset-header{padding-top:1px;}.ext-ie .x-fieldset legend{margin-bottom:10px;}.ext-strict .ext-ie9 .x-fieldset legend.x-fieldset-header{padding-top:1px;}.ext-ie .x-fieldset{padding-top:0;padding-bottom:10px;}.x-fieldset legend .x-tool-toggle{margin-right:3px;margin-left:0;float:left!important;}.x-fieldset legend input{margin-right:3px;float:left!important;height:13px;width:13px;}fieldset.x-panel-collapsed{padding-bottom:0!important;border-width:1px 1px 0 1px!important;border-left-color:transparent;border-right-color:transparent;}.ext-ie6 fieldset.x-panel-collapsed{padding-bottom:0!important;border-width:1px 0 0 0!important;margin-left:1px;margin-right:1px;}fieldset.x-panel-collapsed .x-fieldset-bwrap{visibility:hidden;position:absolute;left:-1000px;top:-1000px;}'+
'.ext-ie .x-fieldset-bwrap{zoom:1;}.x-fieldset-noborder{border:0 none transparent;}.x-fieldset-noborder legend{margin-left:-3px;}.ext-ie .x-fieldset-noborder legend{position:relative;margin-bottom:23px;}.ext-ie .x-fieldset-noborder legend span{position:absolute;left:16px;}.ext-gecko .x-window-body .x-form-item{-moz-outline:none;outline:none;overflow:auto;}.ext-mac.ext-gecko .x-window-body .x-form-item{overflow:hidden;}.ext-gecko .x-form-item{-moz-outline:none;outline:none;}.x-hide-label label.x-form-item-label{display:none;}.x-hide-label .x-form-element{padding-left:0!important;}.x-form-label-top .x-hide-label label.x-form-item-label{display:none;}.x-fieldset{overflow:hidden;}.x-fieldset-bwrap{overflow:hidden;zoom:1;}.x-fieldset-body{overflow:hidden;}.x-btn{cursor:pointer;white-space:nowrap;}.x-btn button{border:0 none;background-color:transparent;padding-left:3px;padding-right:3px;cursor:pointer;margin:0;overflow:visible;width:auto;-moz-outline:0 none;outline:0 none;}* html .ext-ie .x-btn button{width:1px;}.ext-gecko .x-btn button,.ext-webkit .x-btn button{padding-left:0;padding-right:0;}'+
'.ext-gecko .x-btn button::-moz-focus-inner{padding:0;}.ext-ie .x-btn button{padding-top:2px;}.x-btn td{padding:0!important;}.x-btn-text{cursor:pointer;white-space:nowrap;padding:0;}.x-btn-noicon .x-btn-small .x-btn-text{height:16px;}.x-btn-noicon .x-btn-medium .x-btn-text{height:24px;}.x-btn-noicon .x-btn-large .x-btn-text{height:32px;}.x-btn-icon .x-btn-text{background-position:center;background-repeat:no-repeat;}.x-btn-icon .x-btn-small .x-btn-text{height:16px;width:16px;}.x-btn-icon .x-btn-medium .x-btn-text{height:24px;width:24px;}.x-btn-icon .x-btn-large .x-btn-text{height:32px;width:32px;}.x-btn-text-icon .x-btn-icon-small-left .x-btn-text{background-position:0 center;background-repeat:no-repeat;padding-left:18px;height:16px;}.x-btn-text-icon .x-btn-icon-medium-left .x-btn-text{background-position:0 center;background-repeat:no-repeat;padding-left:26px;height:24px;}.x-btn-text-icon .x-btn-icon-large-left .x-btn-text{background-position:0 center;background-repeat:no-repeat;padding-left:34px;height:32px;}.x-btn-text-icon .x-btn-icon-small-top .x-btn-text{background-position:center 0;background-repeat:no-repeat;padding-top:18px;}'+
'.x-btn-text-icon .x-btn-icon-medium-top .x-btn-text{background-position:center 0;background-repeat:no-repeat;padding-top:26px;}.x-btn-text-icon .x-btn-icon-large-top .x-btn-text{background-position:center 0;background-repeat:no-repeat;padding-top:34px;}.x-btn-text-icon .x-btn-icon-small-right .x-btn-text{background-position:right center;background-repeat:no-repeat;padding-right:18px;height:16px;}.x-btn-text-icon .x-btn-icon-medium-right .x-btn-text{background-position:right center;background-repeat:no-repeat;padding-right:26px;height:24px;}.x-btn-text-icon .x-btn-icon-large-right .x-btn-text{background-position:right center;background-repeat:no-repeat;padding-right:34px;height:32px;}.x-btn-text-icon .x-btn-icon-small-bottom .x-btn-text{background-position:center bottom;background-repeat:no-repeat;padding-bottom:18px;}.x-btn-text-icon .x-btn-icon-medium-bottom .x-btn-text{background-position:center bottom;background-repeat:no-repeat;padding-bottom:26px;}.x-btn-text-icon .x-btn-icon-large-bottom .x-btn-text{background-position:center bottom;background-repeat:no-repeat;padding-bottom:34px;}'+
'.x-btn-tr i,.x-btn-tl i,.x-btn-mr i,.x-btn-ml i,.x-btn-br i,.x-btn-bl i{font-size:1px;line-height:1px;width:3px;display:block;overflow:hidden;}.x-btn-tr i,.x-btn-tl i,.x-btn-br i,.x-btn-bl i{height:3px;}.x-btn-tl{width:3px;height:3px;background:no-repeat 0 0;}.x-btn-tr{width:3px;height:3px;background:no-repeat -3px 0;}.x-btn-tc{height:3px;background:repeat-x 0 -6px;}.x-btn-ml{width:3px;background:no-repeat 0 -24px;}.x-btn-mr{width:3px;background:no-repeat -3px -24px;}.x-btn-mc{background:repeat-x 0 -1096px;vertical-align:middle;text-align:center;padding:0 5px;cursor:pointer;white-space:nowrap;}.ext-strict .ext-ie6 .x-btn-mc,.ext-strict .ext-ie7 .x-btn-mc{height:100%;}.x-btn-bl{width:3px;height:3px;background:no-repeat 0 -3px;}.x-btn-br{width:3px;height:3px;background:no-repeat -3px -3px;}.x-btn-bc{height:3px;background:repeat-x 0 -15px;}.x-btn-over .x-btn-tl{background-position:-6px 0;}.x-btn-over .x-btn-tr{background-position:-9px 0;}.x-btn-over .x-btn-tc{background-position:0 -9px;}.x-btn-over .x-btn-ml{background-position:-6px -24px;}'+
'.x-btn-over .x-btn-mr{background-position:-9px -24px;}.x-btn-over .x-btn-mc{background-position:0 -2168px;}.x-btn-over .x-btn-bl{background-position:-6px -3px;}.x-btn-over .x-btn-br{background-position:-9px -3px;}.x-btn-over .x-btn-bc{background-position:0 -18px;}.x-btn-click .x-btn-tl,.x-btn-menu-active .x-btn-tl,.x-btn-pressed .x-btn-tl{background-position:-12px 0;}.x-btn-click .x-btn-tr,.x-btn-menu-active .x-btn-tr,.x-btn-pressed .x-btn-tr{background-position:-15px 0;}.x-btn-click .x-btn-tc,.x-btn-menu-active .x-btn-tc,.x-btn-pressed .x-btn-tc{background-position:0 -12px;}.x-btn-click .x-btn-ml,.x-btn-menu-active .x-btn-ml,.x-btn-pressed .x-btn-ml{background-position:-12px -24px;}.x-btn-click .x-btn-mr,.x-btn-menu-active .x-btn-mr,.x-btn-pressed .x-btn-mr{background-position:-15px -24px;}.x-btn-click .x-btn-mc,.x-btn-menu-active .x-btn-mc,.x-btn-pressed .x-btn-mc{background-position:0 -3240px;}.x-btn-click .x-btn-bl,.x-btn-menu-active .x-btn-bl,.x-btn-pressed .x-btn-bl{background-position:-12px -3px;}.x-btn-click .x-btn-br,.x-btn-menu-active .x-btn-br,.x-btn-pressed .x-btn-br{background-position:-15px -3px;}'+
'.x-btn-click .x-btn-bc,.x-btn-menu-active .x-btn-bc,.x-btn-pressed .x-btn-bc{background-position:0 -21px;}.x-btn-disabled *{cursor:default!important;}.x-btn-mc em.x-btn-arrow{display:block;background:transparent no-repeat right center;padding-right:10px;}.x-btn-mc em.x-btn-split{display:block;background:transparent no-repeat right center;padding-right:14px;}.x-btn-mc em.x-btn-arrow-bottom{display:block;background:transparent no-repeat center bottom;padding-bottom:14px;}.x-btn-mc em.x-btn-split-bottom{display:block;background:transparent no-repeat center bottom;padding-bottom:14px;}.x-btn-as-arrow .x-btn-mc em{display:block;background-color:transparent;padding-bottom:14px;}.x-btn-group{padding:1px;}.x-btn-group-header{padding:2px;text-align:center;}.x-btn-group-tc{background:transparent repeat-x 0 0;overflow:hidden;}.x-btn-group-tl{background:transparent no-repeat 0 0;padding-left:3px;zoom:1;}.x-btn-group-tr{background:transparent no-repeat right 0;zoom:1;padding-right:3px;}.x-btn-group-bc{background:transparent repeat-x 0 bottom;zoom:1;}'+
'.x-btn-group-bc .x-panel-footer{zoom:1;}.x-btn-group-bl{background:transparent no-repeat 0 bottom;padding-left:3px;zoom:1;}.x-btn-group-br{background:transparent no-repeat right bottom;padding-right:3px;zoom:1;}.x-btn-group-mc{border:0 none;padding:1px 0 0 0;margin:0;}.x-btn-group-mc .x-btn-group-body{background-color:transparent;border:0 none;}.x-btn-group-ml{background:transparent repeat-y 0 0;padding-left:3px;zoom:1;}.x-btn-group-mr{background:transparent repeat-y right 0;padding-right:3px;zoom:1;}.x-btn-group-bc .x-btn-group-footer{padding-bottom:6px;}.x-panel-nofooter .x-btn-group-bc{height:3px;font-size:0;line-height:0;}.x-btn-group-bwrap{overflow:hidden;zoom:1;}.x-btn-group-body{overflow:hidden;zoom:1;}.x-btn-group-notitle .x-btn-group-tc{background:transparent repeat-x 0 0;overflow:hidden;height:2px;}.x-toolbar{border-style:solid;border-width:0 0 1px 0;display:block;padding:2px;background:repeat-x top left;position:relative;left:0;top:0;zoom:1;overflow:hidden;}.x-toolbar-left{width:100%;}.x-toolbar .x-item-disabled .x-btn-icon{opacity:.35;-moz-opacity:.35;filter:alpha(opacity=35);}'+
'.x-toolbar td{vertical-align:middle;}.x-toolbar td,.x-toolbar span,.x-toolbar input,.x-toolbar div,.x-toolbar select,.x-toolbar label{white-space:nowrap;}.x-toolbar .x-item-disabled{cursor:default;opacity:.6;-moz-opacity:.6;filter:alpha(opacity=60);}.x-toolbar .x-item-disabled *{cursor:default;}.x-toolbar .x-toolbar-cell{vertical-align:middle;}.x-toolbar .x-btn-tl,.x-toolbar .x-btn-tr,.x-toolbar .x-btn-tc,.x-toolbar .x-btn-ml,.x-toolbar .x-btn-mr,.x-toolbar .x-btn-mc,.x-toolbar .x-btn-bl,.x-toolbar .x-btn-br,.x-toolbar .x-btn-bc{background-position:500px 500px;}.x-toolbar .x-btn-over .x-btn-tl{background-position:-6px 0;}.x-toolbar .x-btn-over .x-btn-tr{background-position:-9px 0;}.x-toolbar .x-btn-over .x-btn-tc{background-position:0 -9px;}.x-toolbar .x-btn-over .x-btn-ml{background-position:-6px -24px;}.x-toolbar .x-btn-over .x-btn-mr{background-position:-9px -24px;}.x-toolbar .x-btn-over .x-btn-mc{background-position:0 -2168px;}.x-toolbar .x-btn-over .x-btn-bl{background-position:-6px -3px;}.x-toolbar .x-btn-over .x-btn-br{background-position:-9px -3px;}'+
'.x-toolbar .x-btn-over .x-btn-bc{background-position:0 -18px;}.x-toolbar .x-btn-click .x-btn-tl,.x-toolbar .x-btn-menu-active .x-btn-tl,.x-toolbar .x-btn-pressed .x-btn-tl{background-position:-12px 0;}.x-toolbar .x-btn-click .x-btn-tr,.x-toolbar .x-btn-menu-active .x-btn-tr,.x-toolbar .x-btn-pressed .x-btn-tr{background-position:-15px 0;}.x-toolbar .x-btn-click .x-btn-tc,.x-toolbar .x-btn-menu-active .x-btn-tc,.x-toolbar .x-btn-pressed .x-btn-tc{background-position:0 -12px;}.x-toolbar .x-btn-click .x-btn-ml,.x-toolbar .x-btn-menu-active .x-btn-ml,.x-toolbar .x-btn-pressed .x-btn-ml{background-position:-12px -24px;}.x-toolbar .x-btn-click .x-btn-mr,.x-toolbar .x-btn-menu-active .x-btn-mr,.x-toolbar .x-btn-pressed .x-btn-mr{background-position:-15px -24px;}.x-toolbar .x-btn-click .x-btn-mc,.x-toolbar .x-btn-menu-active .x-btn-mc,.x-toolbar .x-btn-pressed .x-btn-mc{background-position:0 -3240px;}.x-toolbar .x-btn-click .x-btn-bl,.x-toolbar .x-btn-menu-active .x-btn-bl,.x-toolbar .x-btn-pressed .x-btn-bl{background-position:-12px -3px;}'+
'.x-toolbar .x-btn-click .x-btn-br,.x-toolbar .x-btn-menu-active .x-btn-br,.x-toolbar .x-btn-pressed .x-btn-br{background-position:-15px -3px;}.x-toolbar .x-btn-click .x-btn-bc,.x-toolbar .x-btn-menu-active .x-btn-bc,.x-toolbar .x-btn-pressed .x-btn-bc{background-position:0 -21px;}.x-toolbar div.xtb-text{padding:2px 2px 0;line-height:16px;display:block;}.x-toolbar .xtb-sep{background-position:center;background-repeat:no-repeat;display:block;font-size:1px;height:16px;width:4px;overflow:hidden;cursor:default;margin:0 2px 0;border:0;}.x-toolbar .xtb-spacer{width:2px;}.x-tbar-page-number{width:30px;height:14px;}.ext-ie .x-tbar-page-number{margin-top:2px;}.x-paging-info{position:absolute;top:5px;right:8px;}.x-toolbar-ct{width:100%;}.x-toolbar-right td{text-align:center;}.x-panel-tbar,.x-panel-bbar,.x-window-tbar,.x-window-bbar,.x-tab-panel-tbar,.x-tab-panel-bbar,.x-plain-tbar,.x-plain-bbar{overflow:hidden;zoom:1;}.x-toolbar-more .x-btn-small .x-btn-text{height:16px;width:12px;}.x-toolbar-more em.x-btn-arrow{display:inline;background-color:transparent;padding-right:0;}'+
'.x-toolbar-more .x-btn-mc em.x-btn-arrow{background-image:none;}div.x-toolbar-no-items{color:gray!important;padding:5px 10px!important;}.ext-border-box .x-toolbar-cell .x-form-text{margin-bottom:-1px!important;}.ext-border-box .x-toolbar-cell .x-form-field-wrap .x-form-text{margin:0!important;}.ext-ie .x-toolbar-cell .x-form-field-wrap{height:21px;}.ext-ie .x-toolbar-cell .x-form-text{position:relative;top:-1px;}.ext-strict .ext-ie8 .x-toolbar-cell .x-form-field-trigger-wrap .x-form-text,.ext-strict .ext-ie .x-toolbar-cell .x-form-text{top:0;}.x-toolbar-right td .x-form-field-trigger-wrap{text-align:left;}.x-toolbar-cell .x-form-checkbox,.x-toolbar-cell .x-form-radio{margin-top:5px;}.x-toolbar-cell .x-form-cb-label{vertical-align:bottom;top:1px;}.ext-ie .x-toolbar-cell .x-form-checkbox,.ext-ie .x-toolbar-cell .x-form-radio{margin-top:4px;}.ext-ie .x-toolbar-cell .x-form-cb-label{top:0;}.x-grid3{position:relative;overflow:hidden;}.x-grid-panel .x-panel-body{overflow:hidden!important;}.x-grid-panel .x-panel-mc .x-panel-body{border:1px solid;}'+
'.x-grid3 table{table-layout:fixed;}.x-grid3-viewport{overflow:hidden;}.x-grid3-hd-row td,.x-grid3-row td,.x-grid3-summary-row td{-moz-outline:none;outline:none;-moz-user-focus:normal;}.x-grid3-row td,.x-grid3-summary-row td{line-height:13px;vertical-align:top;padding-left:1px;padding-right:1px;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:ignore;}.x-grid3-cell{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:ignore;}.x-grid3-hd-row td{line-height:15px;vertical-align:middle;border-left:1px solid;border-right:1px solid;}.x-grid3-hd-row .x-grid3-marker-hd{padding:3px;}.x-grid3-row .x-grid3-marker{padding:3px;}.x-grid3-cell-inner,.x-grid3-hd-inner{overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;padding:3px 3px 3px 5px;white-space:nowrap;}.x-action-col-cell .x-grid3-cell-inner{padding-top:1px;padding-bottom:1px;}.x-action-col-icon{cursor:pointer;}.x-grid3-hd-inner{position:relative;cursor:inherit;padding:4px 3px 4px 5px;}.x-grid3-row-body{white-space:normal;}.x-grid3-body-cell{-moz-outline:0 none;outline:0 none;}'+
'.ext-ie .x-grid3-cell-inner,.ext-ie .x-grid3-hd-inner{width:100%;}.ext-strict .x-grid3-cell-inner,.ext-strict .x-grid3-hd-inner{width:auto;}.x-grid-row-loading{background:no-repeat center center;}.x-grid-page{overflow:hidden;}.x-grid3-row{cursor:default;border:1px solid;width:100%;}.x-grid3-row-over{border:1px solid;background:repeat-x left top;}.x-grid3-resize-proxy{width:1px;left:0;cursor:e-resize;cursor:col-resize;position:absolute;top:0;height:100px;overflow:hidden;visibility:hidden;border:0 none;z-index:7;}.x-grid3-resize-marker{width:1px;left:0;position:absolute;top:0;height:100px;overflow:hidden;visibility:hidden;border:0 none;z-index:7;}.x-grid3-focus{position:absolute;left:0;top:0;width:1px;height:1px;line-height:1px;font-size:1px;-moz-outline:0 none;outline:0 none;-moz-user-select:text;-khtml-user-select:text;-webkit-user-select:ignore;}.x-grid3-header{background:repeat-x 0 bottom;cursor:default;zoom:1;padding:1px 0 0 0;}.x-grid3-header-pop{border-left:1px solid;float:right;clear:none;}.x-grid3-header-pop-inner{border-left:1px solid;width:14px;height:19px;background:transparent no-repeat center center;}'+
'.ext-ie .x-grid3-header-pop-inner{width:15px;}.ext-strict .x-grid3-header-pop-inner{width:14px;}.x-grid3-header-inner{overflow:hidden;zoom:1;float:left;}.x-grid3-header-offset{padding-left:1px;text-align:left;}td.x-grid3-hd-over,td.sort-desc,td.sort-asc,td.x-grid3-hd-menu-open{border-left:1px solid;border-right:1px solid;}td.x-grid3-hd-over .x-grid3-hd-inner,td.sort-desc .x-grid3-hd-inner,td.sort-asc .x-grid3-hd-inner,td.x-grid3-hd-menu-open .x-grid3-hd-inner{background:repeat-x left bottom;}.x-grid3-sort-icon{background-repeat:no-repeat;display:none;height:4px;width:13px;margin-left:3px;vertical-align:middle;}.sort-asc .x-grid3-sort-icon,.sort-desc .x-grid3-sort-icon{display:inline;}.ext-strict .ext-ie .x-grid3-header-inner,.ext-strict .ext-ie6 .x-grid3-hd{position:relative;}.ext-strict .ext-ie6 .x-grid3-hd-inner{position:static;}.x-grid3-body{zoom:1;}.x-grid3-scroller{overflow:auto;zoom:1;position:relative;}.x-grid3-cell-text,.x-grid3-hd-text{display:block;padding:3px 5px 3px 5px;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:ignore;}'+
'.x-grid3-split{background-position:center;background-repeat:no-repeat;cursor:e-resize;cursor:col-resize;display:block;font-size:1px;height:16px;overflow:hidden;position:absolute;top:2px;width:6px;z-index:3;}.x-dd-drag-proxy .x-grid3-hd-inner{background:repeat-x left bottom;width:120px;padding:3px;border:1px solid;overflow:hidden;}.col-move-top,.col-move-bottom{width:9px;height:9px;position:absolute;top:0;line-height:1px;font-size:1px;overflow:hidden;visibility:hidden;z-index:20000;background:transparent no-repeat left top;}.x-grid3-row-selected{border:1px dotted;}.x-grid3-locked td.x-grid3-row-marker,.x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker{background:repeat-x 0 bottom!important;vertical-align:middle!important;padding:0;border-top:1px solid;border-bottom:none!important;border-right:1px solid!important;text-align:center;}.x-grid3-locked td.x-grid3-row-marker div,.x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker div{padding:0 4px;text-align:center;}.x-grid3-dirty-cell{background:transparent no-repeat 0 0;}'+
'.x-grid3-topbar,.x-grid3-bottombar{overflow:hidden;display:none;zoom:1;position:relative;}.x-grid3-topbar .x-toolbar{border-right:0 none;}.x-grid3-bottombar .x-toolbar{border-right:0 none;border-bottom:0 none;border-top:1px solid;}.x-props-grid .x-grid3-cell{padding:1px;}.x-props-grid .x-grid3-td-name .x-grid3-cell-inner{background:transparent repeat-y -16px!important;padding-left:12px;}.x-props-grid .x-grid3-body .x-grid3-td-name{padding:1px;padding-right:0;border:0 none;border-right:1px solid;}.x-grid3-col-dd{border:0 none;padding:0;background-color:transparent;}.x-dd-drag-ghost .x-grid3-dd-wrap{padding:1px 3px 3px 1px;}.x-grid3-hd{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:ignore;}.x-grid3-hd-btn{display:none;position:absolute;width:14px;background:no-repeat left center;right:0;top:0;z-index:2;cursor:pointer;}.x-grid3-hd-over .x-grid3-hd-btn,.x-grid3-hd-menu-open .x-grid3-hd-btn{display:block;}a.x-grid3-hd-btn:hover{background-position:-14px center;}.x-grid3-body .x-grid3-td-expander{background:transparent repeat-y right;}'+
'.x-grid3-body .x-grid3-td-expander .x-grid3-cell-inner{padding:0!important;height:100%;}.x-grid3-row-expander{width:100%;height:18px;background-position:4px 2px;background-repeat:no-repeat;background-color:transparent;}.x-grid3-row-collapsed .x-grid3-row-expander{background-position:4px 2px;}.x-grid3-row-expanded .x-grid3-row-expander{background-position:-21px 2px;}.x-grid3-row-collapsed .x-grid3-row-body{display:none!important;}.x-grid3-row-expanded .x-grid3-row-body{display:block!important;}.x-grid3-body .x-grid3-td-checker{background:transparent repeat-y right;}.x-grid3-body .x-grid3-td-checker .x-grid3-cell-inner,.x-grid3-header .x-grid3-td-checker .x-grid3-hd-inner{padding:0!important;height:100%;}.x-grid3-row-checker,.x-grid3-hd-checker{width:100%;height:18px;background-position:2px 2px;background-repeat:no-repeat;background-color:transparent;}.x-grid3-row .x-grid3-row-checker{background-position:2px 2px;}.x-grid3-row-selected .x-grid3-row-checker,.x-grid3-hd-checker-on .x-grid3-hd-checker,.x-grid3-row-checked .x-grid3-row-checker{background-position:-23px 2px;}'+
'.x-grid3-hd-checker{background-position:2px 1px;}.ext-border-box .x-grid3-hd-checker{background-position:2px 3px;}.x-grid3-hd-checker-on .x-grid3-hd-checker{background-position:-23px 1px;}.ext-border-box .x-grid3-hd-checker-on .x-grid3-hd-checker{background-position:-23px 3px;}.x-grid3-body .x-grid3-td-numberer{background:transparent repeat-y right;}.x-grid3-body .x-grid3-td-numberer .x-grid3-cell-inner{padding:3px 5px 0 0!important;text-align:right;}.x-grid3-body .x-grid3-td-row-icon{background:transparent repeat-y right;vertical-align:top;text-align:center;}.x-grid3-body .x-grid3-td-row-icon .x-grid3-cell-inner{padding:0!important;background-position:center center;background-repeat:no-repeat;width:16px;height:16px;margin-left:2px;margin-top:3px;}.x-grid3-body .x-grid3-row-selected .x-grid3-td-numberer,.x-grid3-body .x-grid3-row-selected .x-grid3-td-checker,.x-grid3-body .x-grid3-row-selected .x-grid3-td-expander{background:transparent repeat-y right;}.x-grid3-body .x-grid3-check-col-td .x-grid3-cell-inner{padding:1px 0 0 0!important;}'+
'.x-grid3-check-col{width:100%;height:16px;background-position:center center;background-repeat:no-repeat;background-color:transparent;}.x-grid3-check-col-on{width:100%;height:16px;background-position:center center;background-repeat:no-repeat;background-color:transparent;}.x-grid-group,.x-grid-group-body,.x-grid-group-hd{zoom:1;}.x-grid-group-hd{border-bottom:2px solid;cursor:pointer;padding-top:6px;}.x-grid-group-hd div.x-grid-group-title{background:transparent no-repeat 3px 3px;padding:4px 4px 4px 17px;}.x-grid-group-collapsed .x-grid-group-body{display:none;}.ext-ie6 .x-grid3 .x-editor .x-form-text,.ext-ie7 .x-grid3 .x-editor .x-form-text{position:relative;top:-1px;}.ext-ie .x-props-grid .x-editor .x-form-text{position:static;top:0;}.x-grid-empty{padding:10px;}.ext-ie7 .x-grid-panel .x-panel-bbar{position:relative;}.ext-ie7 .x-grid-panel .x-panel-mc .x-panel-bbar{position:static;}.ext-ie6 .x-grid3-header{position:relative;}.ext-webkit .x-grid-panel .x-panel-bwrap{-webkit-user-select:none;}.ext-webkit .x-tbar-page-number{-webkit-user-select:ignore;}'+
'.x-grid-with-col-lines .x-grid3-row td.x-grid3-cell{padding-right:0;border-right:1px solid;}.x-pivotgrid .x-grid3-header-offset table{width:100%;border-collapse:collapse;}.x-pivotgrid .x-grid3-header-offset table td{padding:4px 3px 4px 5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:13px;font-family:tahoma;}.x-pivotgrid .x-grid3-row-headers{display:block;float:left;}.x-pivotgrid .x-grid3-row-headers table{height:100%;width:100%;border-collapse:collapse;}.x-pivotgrid .x-grid3-row-headers table td{height:18px;padding:2px 7px 0 0;text-align:right;text-overflow:ellipsis;font-size:11px;font-family:tahoma;}.ext-gecko .x-pivotgrid .x-grid3-row-headers table td{height:21px;}.x-grid3-header-title{top:0;left:0;position:absolute;text-align:center;vertical-align:middle;font-family:tahoma;font-size:11px;padding:auto 1px;display:table-cell;}.x-grid3-header-title span{position:absolute;top:50%;left:0;width:100%;margin-top:-6px;}.x-dd-drag-proxy{position:absolute;left:0;top:0;visibility:hidden;z-index:15000;}'+
'.x-dd-drag-ghost{-moz-opacity:.85;opacity:.85;filter:alpha(opacity=85);border:1px solid;padding:3px;padding-left:20px;white-space:nowrap;}.x-dd-drag-repair .x-dd-drag-ghost{-moz-opacity:.4;opacity:.4;filter:alpha(opacity=40);border:0 none;padding:0;background-color:transparent;}.x-dd-drag-repair .x-dd-drop-icon{visibility:hidden;}.x-dd-drop-icon{position:absolute;top:3px;left:3px;display:block;width:16px;height:16px;background-color:transparent;background-position:center;background-repeat:no-repeat;z-index:1;}.x-view-selector{position:absolute;left:0;top:0;width:0;border:1px dotted;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);zoom:1;}.ext-strict .ext-ie .x-tree .x-panel-bwrap{position:relative;overflow:hidden;}.x-tree-icon,.x-tree-ec-icon,.x-tree-elbow-line,.x-tree-elbow,.x-tree-elbow-end,.x-tree-elbow-plus,.x-tree-elbow-minus,.x-tree-elbow-end-plus,.x-tree-elbow-end-minus{border:0 none;height:18px;margin:0;padding:0;vertical-align:top;width:16px;background-repeat:no-repeat;}.x-tree-node-collapsed .x-tree-node-icon,.x-tree-node-expanded .x-tree-node-icon,.x-tree-node-leaf .x-tree-node-icon{border:0 none;height:18px;margin:0;padding:0;vertical-align:top;width:16px;background-position:center;background-repeat:no-repeat;}'+
'.ext-ie .x-tree-node-indent img,.ext-ie .x-tree-node-icon,.ext-ie .x-tree-ec-icon{vertical-align:middle!important;}.ext-strict .ext-ie8 .x-tree-node-indent img,.ext-strict .ext-ie8 .x-tree-node-icon,.ext-strict .ext-ie8 .x-tree-ec-icon{vertical-align:top!important;}input.x-tree-node-cb{margin-left:1px;height:19px;vertical-align:bottom;}.ext-ie input.x-tree-node-cb{margin-left:0;margin-top:1px;width:16px;height:16px;vertical-align:middle;}.ext-strict .ext-ie8 input.x-tree-node-cb{margin:1px 1px;height:14px;vertical-align:bottom;}.ext-strict .ext-ie8 input.x-tree-node-cb+a{vertical-align:bottom;}.ext-opera input.x-tree-node-cb{height:14px;vertical-align:middle;}.x-tree-noicon .x-tree-node-icon{width:0;height:0;}.x-tree-no-lines .x-tree-elbow{background-color:transparent;}.x-tree-no-lines .x-tree-elbow-end{background-color:transparent;}.x-tree-no-lines .x-tree-elbow-line{background-color:transparent;}.x-tree-arrows .x-tree-elbow{background-color:transparent;}.x-tree-arrows .x-tree-elbow-plus{background:transparent no-repeat 0 0;}'+
'.x-tree-arrows .x-tree-elbow-minus{background:transparent no-repeat -16px 0;}.x-tree-arrows .x-tree-elbow-end{background-color:transparent;}.x-tree-arrows .x-tree-elbow-end-plus{background:transparent no-repeat 0 0;}.x-tree-arrows .x-tree-elbow-end-minus{background:transparent no-repeat -16px 0;}.x-tree-arrows .x-tree-elbow-line{background-color:transparent;}.x-tree-arrows .x-tree-ec-over .x-tree-elbow-plus{background-position:-32px 0;}.x-tree-arrows .x-tree-ec-over .x-tree-elbow-minus{background-position:-48px 0;}.x-tree-arrows .x-tree-ec-over .x-tree-elbow-end-plus{background-position:-32px 0;}.x-tree-arrows .x-tree-ec-over .x-tree-elbow-end-minus{background-position:-48px 0;}.x-tree-elbow-plus,.x-tree-elbow-minus,.x-tree-elbow-end-plus,.x-tree-elbow-end-minus{cursor:pointer;}.ext-ie ul.x-tree-node-ct{font-size:0;line-height:0;zoom:1;}.x-tree-node{white-space:nowrap;}.x-tree-node-el{line-height:18px;cursor:pointer;}.x-tree-node a,.x-dd-drag-ghost a{text-decoration:none;-khtml-user-select:none;-moz-user-select:none;-webkit-user-select:ignore;-kthml-user-focus:normal;-moz-user-focus:normal;-moz-outline:0 none;outline:0 none;}'+
'.x-tree-node a span,.x-dd-drag-ghost a span{text-decoration:none;padding:1px 3px 1px 2px;}.x-tree-node .x-tree-node-disabled .x-tree-node-icon{-moz-opacity:.5;opacity:.5;filter:alpha(opacity=50);}.x-tree-node .x-tree-node-inline-icon{background-color:transparent;}.x-tree-node a:hover,.x-dd-drag-ghost a:hover{text-decoration:none;}.x-tree-node div.x-tree-drag-insert-below{border-bottom:1px dotted;}.x-tree-node div.x-tree-drag-insert-above{border-top:1px dotted;}.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-below{border-bottom:0 none;}.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-above{border-top:0 none;}.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-below a{border-bottom:2px solid;}.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-above a{border-top:2px solid;}.x-tree-node .x-tree-drag-append a span{border:1px dotted;}.x-dd-drag-ghost .x-tree-node-indent,.x-dd-drag-ghost .x-tree-ec-icon{display:none!important;}.x-tree-root-ct{zoom:1;}.x-date-picker{border:1px solid;border-top:0 none;position:relative;}'+
'.x-date-picker a{-moz-outline:0 none;outline:0 none;}.x-date-inner,.x-date-inner td,.x-date-inner th{border-collapse:separate;}.x-date-middle,.x-date-left,.x-date-right{background:repeat-x 0 -83px;overflow:hidden;}.x-date-middle .x-btn-tc,.x-date-middle .x-btn-tl,.x-date-middle .x-btn-tr,.x-date-middle .x-btn-mc,.x-date-middle .x-btn-ml,.x-date-middle .x-btn-mr,.x-date-middle .x-btn-bc,.x-date-middle .x-btn-bl,.x-date-middle .x-btn-br{background:transparent!important;vertical-align:middle;}.x-date-middle .x-btn-mc em.x-btn-arrow{background:transparent no-repeat right 0;}.x-date-right,.x-date-left{width:18px;}.x-date-right{text-align:right;}.x-date-middle{padding-top:2px;padding-bottom:2px;width:130px;}.x-date-right a,.x-date-left a{display:block;width:16px;height:16px;background-position:center;background-repeat:no-repeat;cursor:pointer;-moz-opacity:.6;opacity:.6;filter:alpha(opacity=60);}.x-date-right a:hover,.x-date-left a:hover{-moz-opacity:1;opacity:1;filter:alpha(opacity=100);}.x-item-disabled .x-date-right a:hover,.x-item-disabled .x-date-left a:hover{-moz-opacity:.6;opacity:.6;filter:alpha(opacity=60);}'+
'.x-date-right a{margin-right:2px;text-decoration:none!important;}.x-date-left a{margin-left:2px;text-decoration:none!important;}table.x-date-inner{width:100%;table-layout:fixed;}.ext-webkit table.x-date-inner{width:175px;}.x-date-inner th{width:25px;}.x-date-inner th{background:repeat-x left top;text-align:right!important;border-bottom:1px solid;cursor:default;padding:0;border-collapse:separate;}.x-date-inner th span{display:block;padding:2px;padding-right:7px;}.x-date-inner td{border:1px solid;text-align:right;padding:0;}.x-date-inner a{padding:2px 5px;display:block;text-decoration:none;text-align:right;zoom:1;}.x-date-inner .x-date-active{cursor:pointer;color:black;}.x-date-inner .x-date-selected a{background:repeat-x left top;border:1px solid;padding:1px 4px;}.x-date-inner .x-date-today a{border:1px solid;padding:1px 4px;}.x-date-inner .x-date-prevday a,.x-date-inner .x-date-nextday a{text-decoration:none!important;}.x-date-bottom{padding:4px;border-top:1px solid;background:repeat-x left top;}.x-date-inner a:hover,.x-date-inner .x-date-disabled a:hover{text-decoration:none!important;}'+
'.x-item-disabled .x-date-inner a:hover{background:none;}.x-date-inner .x-date-disabled a{cursor:default;}.x-date-menu .x-menu-item{padding:1px 24px 1px 4px;white-space:nowrap;}.x-date-menu .x-menu-item .x-menu-item-icon{width:10px;height:10px;margin-right:5px;background-position:center -4px!important;}.x-date-mp{position:absolute;left:0;top:0;display:none;}.x-date-mp td{padding:2px;font:normal 11px arial,helvetica,tahoma,sans-serif;}td.x-date-mp-month,td.x-date-mp-year,td.x-date-mp-ybtn{border:0 none;text-align:center;vertical-align:middle;width:25%;}.x-date-mp-ok{margin-right:3px;}.x-date-mp-btns button{text-decoration:none;text-align:center;text-decoration:none!important;border:1px solid;padding:1px 3px 1px;cursor:pointer;}.x-date-mp-btns{background:repeat-x left top;}.x-date-mp-btns td{border-top:1px solid;text-align:center;}td.x-date-mp-month a,td.x-date-mp-year a{display:block;padding:2px 4px;text-decoration:none;text-align:center;}td.x-date-mp-month a:hover,td.x-date-mp-year a:hover{text-decoration:none;cursor:pointer;}'+
'td.x-date-mp-sel a{padding:1px 3px;background:repeat-x left top;border:1px solid;}.x-date-mp-ybtn a{overflow:hidden;width:15px;height:15px;cursor:pointer;background:transparent no-repeat;display:block;margin:0 auto;}.x-date-mp-ybtn a.x-date-mp-next{background-position:0 -120px;}.x-date-mp-ybtn a.x-date-mp-next:hover{background-position:-15px -120px;}.x-date-mp-ybtn a.x-date-mp-prev{background-position:0 -105px;}.x-date-mp-ybtn a.x-date-mp-prev:hover{background-position:-15px -105px;}.x-date-mp-ybtn{text-align:center;}td.x-date-mp-sep{border-right:1px solid;}.x-tip{position:absolute;top:0;left:0;visibility:hidden;z-index:20002;border:0 none;}.x-tip .x-tip-close{height:15px;float:right;width:15px;margin:0 0 2px 2px;cursor:pointer;display:none;}.x-tip .x-tip-tc{background:transparent no-repeat 0 -62px;padding-top:3px;overflow:hidden;zoom:1;}.x-tip .x-tip-tl{background:transparent no-repeat 0 0;padding-left:6px;overflow:hidden;zoom:1;}.x-tip .x-tip-tr{background:transparent no-repeat right 0;padding-right:6px;overflow:hidden;zoom:1;}'+
'.x-tip .x-tip-bc{background:transparent no-repeat 0 -121px;height:3px;overflow:hidden;}.x-tip .x-tip-bl{background:transparent no-repeat 0 -59px;padding-left:6px;zoom:1;}.x-tip .x-tip-br{background:transparent no-repeat right -59px;padding-right:6px;zoom:1;}.x-tip .x-tip-mc{border:0 none;}');
Resource._css('.x-tip .x-tip-ml{background:no-repeat 0 -124px;padding-left:6px;zoom:1;}.x-tip .x-tip-mr{background:transparent no-repeat right -124px;padding-right:6px;zoom:1;}.ext-ie .x-tip .x-tip-header,.ext-ie .x-tip .x-tip-tc{font-size:0;line-height:0;}.ext-border-box .x-tip .x-tip-header,.ext-border-box .x-tip .x-tip-tc{line-height:1px;}.x-tip .x-tip-header-text{padding:0;margin:0 0 2px 0;}.x-tip .x-tip-body{margin:0!important;line-height:14px;padding:0;}.x-tip .x-tip-body .loading-indicator{margin:0;}.x-tip-draggable .x-tip-header,.x-tip-draggable .x-tip-header-text{cursor:move;}.x-form-invalid-tip .x-tip-tc{background:repeat-x 0 -12px;padding-top:6px;}.x-form-invalid-tip .x-tip-bc{background:repeat-x 0 -18px;height:6px;}.x-form-invalid-tip .x-tip-bl{background:no-repeat 0 -6px;}'+
'.x-form-invalid-tip .x-tip-br{background:no-repeat right -6px;}.x-form-invalid-tip .x-tip-body{padding:2px;}.x-form-invalid-tip .x-tip-body{padding-left:24px;background:transparent no-repeat 2px 2px;}.x-tip-anchor{position:absolute;width:9px;height:10px;overflow:hidden;background:transparent no-repeat 0 0;zoom:1;}.x-tip-anchor-bottom{background-position:-9px 0;}.x-tip-anchor-right{background-position:-18px 0;width:10px;}.x-tip-anchor-left{background-position:-28px 0;width:10px;}.x-menu{z-index:15000;zoom:1;background:repeat-y;}.x-menu-floating{border:1px solid;}.x-menu a{text-decoration:none!important;}.ext-ie .x-menu{zoom:1;overflow:hidden;}.x-menu-list{padding:2px;background-color:transparent;border:0 none;overflow:hidden;overflow-y:hidden;}.ext-strict .ext-ie .x-menu-list{position:relative;}.x-menu li{line-height:100%;}.x-menu li.x-menu-sep-li{font-size:1px;line-height:1px;}.x-menu-list-item{white-space:nowrap;display:block;padding:1px;}.x-menu-item{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:ignore;}'+
'.x-menu-item-arrow{background:transparent no-repeat right;}.x-menu-sep{display:block;font-size:1px;line-height:1px;margin:2px 3px;border-bottom:1px solid;overflow:hidden;}.x-menu-focus{position:absolute;left:-1px;top:-1px;width:1px;height:1px;line-height:1px;font-size:1px;-moz-outline:0 none;outline:0 none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:ignore;overflow:hidden;display:block;}a.x-menu-item{cursor:pointer;display:block;line-height:16px;outline-color:-moz-use-text-color;outline-style:none;outline-width:0;padding:3px 21px 3px 27px;position:relative;text-decoration:none;white-space:nowrap;}.x-menu-item-active{background-repeat:repeat-x;background-position:left bottom;border-style:solid;border-width:1px 0;margin:0 1px;padding:0;}.x-menu-item-active a.x-menu-item{border-style:solid;border-width:0 1px;margin:0 -1px;}.x-menu-item-icon{border:0 none;height:16px;padding:0;vertical-align:top;width:16px;position:absolute;left:3px;top:3px;margin:0;background-position:center;}.ext-ie .x-menu-item-icon{left:-24px;}'+
'.ext-strict .x-menu-item-icon{left:3px;}.ext-ie6 .x-menu-item-icon{left:-24px;}.ext-ie .x-menu-item-icon{vertical-align:middle;}.x-menu-check-item .x-menu-item-icon{background:transparent no-repeat center;}.x-menu-group-item .x-menu-item-icon{background-color:transparent;}.x-menu-item-checked .x-menu-group-item .x-menu-item-icon{background:transparent no-repeat center;}.x-date-menu .x-menu-list{padding:0;}.x-menu-date-item{padding:0;}.x-menu .x-color-palette,.x-menu .x-date-picker{margin-left:26px;margin-right:4px;}.x-menu .x-date-picker{border:1px solid;margin-top:2px;margin-bottom:2px;}.x-menu-plain .x-color-palette,.x-menu-plain .x-date-picker{margin:0;border:0 none;}.x-date-menu{padding:0!important;}.ext-strict .ext-ie6 .x-menu-sep-li{padding:3px 4px;}.ext-strict .ext-ie6 .x-menu-sep{margin:0;height:1px;}.ext-webkit .x-menu-sep{height:1px;}.ext-ie .x-date-menu{height:199px;}.ext-strict .ext-ie .x-date-menu,.ext-border-box .ext-ie8 .x-date-menu{height:197px;}.ext-strict .ext-ie7 .x-date-menu{height:195px;}'+
'.ext-strict .ext-ie8 .x-date-menu{height:auto;}.x-cycle-menu .x-menu-item-checked{border:1px dotted!important;padding:0;}.x-menu .x-menu-scroller{width:100%;background-repeat:no-repeat;background-position:center;height:8px;line-height:8px;cursor:pointer;margin:0;padding:0;}.x-menu .x-menu-scroller-active{height:6px;line-height:6px;}.x-menu-list-item-indent{padding-left:27px;}.x-box-tl{background:transparent no-repeat 0 0;zoom:1;}.x-box-tc{height:8px;background:transparent repeat-x 0 0;overflow:hidden;}.x-box-tr{background:transparent no-repeat right -8px;}.x-box-ml{background:transparent repeat-y 0;padding-left:4px;overflow:hidden;zoom:1;}.x-box-mc{background:repeat-x 0 -16px;padding:4px 10px;}.x-box-mc h3{margin:0 0 4px 0;zoom:1;}.x-box-mr{background:transparent repeat-y right;padding-right:4px;overflow:hidden;}.x-box-bl{background:transparent no-repeat 0 -16px;zoom:1;}.x-box-bc{background:transparent repeat-x 0 -8px;height:8px;overflow:hidden;}.x-box-br{background:transparent no-repeat right -24px;}.x-box-tl,.x-box-bl{padding-left:8px;overflow:hidden;}'+
'.x-box-tr,.x-box-br{padding-right:8px;overflow:hidden;}.x-combo-list{border:1px solid;zoom:1;overflow:hidden;}.x-combo-list-inner{overflow:auto;position:relative;zoom:1;overflow-x:hidden;}.x-combo-list-hd{border-bottom:1px solid;padding:3px;}.x-resizable-pinned .x-combo-list-inner{border-bottom:1px solid;}.x-combo-list-item{padding:2px;border:1px solid;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.x-combo-list .x-combo-selected{border:1px dotted!important;cursor:pointer;}.x-combo-list .x-toolbar{border-top:1px solid;border-bottom:0 none;}.x-panel{border-style:solid;border-width:0;}.x-panel-header{overflow:hidden;zoom:1;padding:5px 3px 4px 5px;border:1px solid;line-height:15px;background:transparent repeat-x 0 -1px;}.x-panel-body{border:1px solid;border-top:0 none;overflow:hidden;position:relative;}.x-panel-bbar .x-toolbar,.x-panel-tbar .x-toolbar{border:1px solid;border-top:0 none;overflow:hidden;padding:2px;}.x-panel-tbar-noheader .x-toolbar,.x-panel-mc .x-panel-tbar .x-toolbar{border-top:1px solid;border-bottom:0 none;}'+
'.x-panel-body-noheader,.x-panel-mc .x-panel-body{border-top:1px solid;}.x-panel-header{overflow:hidden;zoom:1;}.x-panel-tl .x-panel-header{padding:5px 0 4px 0;border:0 none;background:transparent no-repeat;}.x-panel-tl .x-panel-icon,.x-window-tl .x-panel-icon{padding-left:20px!important;background-repeat:no-repeat;background-position:0 4px;zoom:1;}.x-panel-inline-icon{width:16px;height:16px;background-repeat:no-repeat;background-position:0 0;vertical-align:middle;margin-right:4px;margin-top:-1px;margin-bottom:-1px;}.x-panel-tc{background:transparent repeat-x 0 0;overflow:hidden;}.ext-strict .ext-ie7 .x-panel-tc{overflow:visible;}.x-panel-tl{background:transparent no-repeat 0 0;padding-left:6px;zoom:1;border-bottom:1px solid;}.x-panel-tr{background:transparent no-repeat right 0;zoom:1;padding-right:6px;}.x-panel-bc{background:transparent repeat-x 0 bottom;zoom:1;}.x-panel-bc .x-panel-footer{zoom:1;}.x-panel-bl{background:transparent no-repeat 0 bottom;padding-left:6px;zoom:1;}.x-panel-br{background:transparent no-repeat right bottom;padding-right:6px;zoom:1;}'+
'.x-panel-mc{border:0 none;padding:0;margin:0;padding-top:6px;}.x-panel-mc .x-panel-body{background-color:transparent;border:0 none;}.x-panel-ml{background:repeat-y 0 0;padding-left:6px;zoom:1;}.x-panel-mr{background:transparent repeat-y right 0;padding-right:6px;zoom:1;}.x-panel-bc .x-panel-footer{padding-bottom:6px;}.x-panel-nofooter .x-panel-bc,.x-panel-nofooter .x-window-bc{height:6px;font-size:0;line-height:0;}.x-panel-bwrap{overflow:hidden;zoom:1;left:0;top:0;}.x-panel-body{overflow:hidden;zoom:1;}.x-panel-collapsed .x-resizable-handle{display:none;}.ext-gecko .x-panel-animated div{overflow:hidden!important;}.x-plain-body{overflow:hidden;}.x-plain-bbar .x-toolbar{overflow:hidden;padding:2px;}.x-plain-tbar .x-toolbar{overflow:hidden;padding:2px;}.x-plain-bwrap{overflow:hidden;zoom:1;}.x-plain{overflow:hidden;}.x-tool{overflow:hidden;width:15px;height:15px;float:right;cursor:pointer;background:transparent no-repeat;margin-left:2px;}.x-tool-toggle{background-position:0 -60px;}.x-tool-toggle-over{background-position:-15px -60px;}'+
'.x-panel-collapsed .x-tool-toggle{background-position:0 -75px;}.x-panel-collapsed .x-tool-toggle-over{background-position:-15px -75px;}.x-tool-close{background-position:0 -0;}.x-tool-close-over{background-position:-15px 0;}.x-tool-minimize{background-position:0 -15px;}.x-tool-minimize-over{background-position:-15px -15px;}.x-tool-maximize{background-position:0 -30px;}.x-tool-maximize-over{background-position:-15px -30px;}.x-tool-restore{background-position:0 -45px;}.x-tool-restore-over{background-position:-15px -45px;}.x-tool-gear{background-position:0 -90px;}.x-tool-gear-over{background-position:-15px -90px;}.x-tool-prev{background-position:0 -105px;}.x-tool-prev-over{background-position:-15px -105px;}.x-tool-next{background-position:0 -120px;}.x-tool-next-over{background-position:-15px -120px;}.x-tool-pin{background-position:0 -135px;}.x-tool-pin-over{background-position:-15px -135px;}.x-tool-unpin{background-position:0 -150px;}.x-tool-unpin-over{background-position:-15px -150px;}.x-tool-right{background-position:0 -165px;}'+
'.x-tool-right-over{background-position:-15px -165px;}.x-tool-left{background-position:0 -180px;}.x-tool-left-over{background-position:-15px -180px;}.x-tool-down{background-position:0 -195px;}.x-tool-down-over{background-position:-15px -195px;}.x-tool-up{background-position:0 -210px;}.x-tool-up-over{background-position:-15px -210px;}.x-tool-refresh{background-position:0 -225px;}.x-tool-refresh-over{background-position:-15px -225px;}.x-tool-plus{background-position:0 -240px;}.x-tool-plus-over{background-position:-15px -240px;}.x-tool-minus{background-position:0 -255px;}.x-tool-minus-over{background-position:-15px -255px;}.x-tool-search{background-position:0 -270px;}.x-tool-search-over{background-position:-15px -270px;}.x-tool-save{background-position:0 -285px;}.x-tool-save-over{background-position:-15px -285px;}.x-tool-help{background-position:0 -300px;}.x-tool-help-over{background-position:-15px -300px;}.x-tool-print{background-position:0 -315px;}.x-tool-print-over{background-position:-15px -315px;}.x-tool-expand{background-position:0 -330px;}'+
'.x-tool-expand-over{background-position:-15px -330px;}.x-tool-collapse{background-position:0 -345px;}.x-tool-collapse-over{background-position:-15px -345px;}.x-tool-resize{background-position:0 -360px;}.x-tool-resize-over{background-position:-15px -360px;}.x-tool-move{background-position:0 -375px;}.x-tool-move-over{background-position:-15px -375px;}.x-panel-ghost{z-index:12000;overflow:hidden;position:absolute;left:0;top:0;opacity:.65;-moz-opacity:.65;filter:alpha(opacity=65);}.x-panel-ghost ul{margin:0;padding:0;overflow:hidden;font-size:0;line-height:0;border:1px solid;border-top:0 none;display:block;}.x-panel-ghost *{cursor:move!important;}.x-panel-dd-spacer{border:2px dashed;}.x-panel-btns{padding:5px;overflow:hidden;}.x-panel-btns td.x-toolbar-cell{padding:3px;}.x-panel-btns .x-btn-focus .x-btn-left{background-position:0 -147px;}.x-panel-btns .x-btn-focus .x-btn-right{background-position:0 -168px;}.x-panel-btns .x-btn-focus .x-btn-center{background-position:0 -189px;}.x-panel-btns .x-btn-over .x-btn-left{background-position:0 -63px;}'+
'.x-panel-btns .x-btn-over .x-btn-right{background-position:0 -84px;}.x-panel-btns .x-btn-over .x-btn-center{background-position:0 -105px;}.x-panel-btns .x-btn-click .x-btn-center{background-position:0 -126px;}.x-panel-btns .x-btn-click .x-btn-right{background-position:0 -84px;}.x-panel-btns .x-btn-click .x-btn-left{background-position:0 -63px;}.x-panel-fbar td,.x-panel-fbar span,.x-panel-fbar input,.x-panel-fbar div,.x-panel-fbar select,.x-panel-fbar label{white-space:nowrap;}.x-panel-reset .x-panel-body html,.x-panel-reset .x-panel-body address,.x-panel-reset .x-panel-body blockquote,.x-panel-reset .x-panel-body body,.x-panel-reset .x-panel-body dd,.x-panel-reset .x-panel-body div,.x-panel-reset .x-panel-body dl,.x-panel-reset .x-panel-body dt,.x-panel-reset .x-panel-body fieldset,.x-panel-reset .x-panel-body form,.x-panel-reset .x-panel-body frame,frameset,.x-panel-reset .x-panel-body h1,.x-panel-reset .x-panel-body h2,.x-panel-reset .x-panel-body h3,.x-panel-reset .x-panel-body h4,.x-panel-reset .x-panel-body h5,.x-panel-reset .x-panel-body h6,.x-panel-reset .x-panel-body noframes,.x-panel-reset .x-panel-body ol,.x-panel-reset .x-panel-body p,.x-panel-reset .x-panel-body ul,.x-panel-reset .x-panel-body center,.x-panel-reset .x-panel-body dir,.x-panel-reset .x-panel-body hr,.x-panel-reset .x-panel-body menu,.x-panel-reset .x-panel-body pre{display:block;}'+
'.x-panel-reset .x-panel-body li{display:list-item;}.x-panel-reset .x-panel-body head{display:none;}.x-panel-reset .x-panel-body table{display:table;}.x-panel-reset .x-panel-body tr{display:table-row;}.x-panel-reset .x-panel-body thead{display:table-header-group;}.x-panel-reset .x-panel-body tbody{display:table-row-group;}.x-panel-reset .x-panel-body tfoot{display:table-footer-group;}.x-panel-reset .x-panel-body col{display:table-column;}.x-panel-reset .x-panel-body colgroup{display:table-column-group;}.x-panel-reset .x-panel-body td,.x-panel-reset .x-panel-body th{display:table-cell;}.x-panel-reset .x-panel-body caption{display:table-caption;}.x-panel-reset .x-panel-body th{font-weight:bolder;text-align:center;}.x-panel-reset .x-panel-body caption{text-align:center;}.x-panel-reset .x-panel-body body{margin:8px;}.x-panel-reset .x-panel-body h1{font-size:2em;margin:.67em 0;}.x-panel-reset .x-panel-body h2{font-size:1.5em;margin:.75em 0;}.x-panel-reset .x-panel-body h3{font-size:1.17em;margin:.83em 0;}.x-panel-reset .x-panel-body h4,.x-panel-reset .x-panel-body p,.x-panel-reset .x-panel-body blockquote,.x-panel-reset .x-panel-body ul,.x-panel-reset .x-panel-body fieldset,.x-panel-reset .x-panel-body form,.x-panel-reset .x-panel-body ol,.x-panel-reset .x-panel-body dl,.x-panel-reset .x-panel-body dir,.x-panel-reset .x-panel-body menu{margin:1.12em 0;}'+
'.x-panel-reset .x-panel-body h5{font-size:.83em;margin:1.5em 0;}.x-panel-reset .x-panel-body h6{font-size:.75em;margin:1.67em 0;}.x-panel-reset .x-panel-body h1,.x-panel-reset .x-panel-body h2,.x-panel-reset .x-panel-body h3,.x-panel-reset .x-panel-body h4,.x-panel-reset .x-panel-body h5,.x-panel-reset .x-panel-body h6,.x-panel-reset .x-panel-body b,.x-panel-reset .x-panel-body strong{font-weight:bolder;}.x-panel-reset .x-panel-body blockquote{margin-left:40px;margin-right:40px;}.x-panel-reset .x-panel-body i,.x-panel-reset .x-panel-body cite,.x-panel-reset .x-panel-body em,.x-panel-reset .x-panel-body var,.x-panel-reset .x-panel-body address{font-style:italic;}.x-panel-reset .x-panel-body pre,.x-panel-reset .x-panel-body tt,.x-panel-reset .x-panel-body code,.x-panel-reset .x-panel-body kbd,.x-panel-reset .x-panel-body samp{font-family:monospace;}.x-panel-reset .x-panel-body pre{white-space:pre;}.x-panel-reset .x-panel-body button,.x-panel-reset .x-panel-body textarea,.x-panel-reset .x-panel-body input,.x-panel-reset .x-panel-body select{display:inline-block;}'+
'.x-panel-reset .x-panel-body big{font-size:1.17em;}.x-panel-reset .x-panel-body small,.x-panel-reset .x-panel-body sub,.x-panel-reset .x-panel-body sup{font-size:.83em;}.x-panel-reset .x-panel-body sub{vertical-align:sub;}.x-panel-reset .x-panel-body sup{vertical-align:super;}.x-panel-reset .x-panel-body table{border-spacing:2px;}.x-panel-reset .x-panel-body thead,.x-panel-reset .x-panel-body tbody,.x-panel-reset .x-panel-body tfoot{vertical-align:middle;}.x-panel-reset .x-panel-body td,.x-panel-reset .x-panel-body th{vertical-align:inherit;}.x-panel-reset .x-panel-body s,.x-panel-reset .x-panel-body strike,.x-panel-reset .x-panel-body del{text-decoration:line-through;}.x-panel-reset .x-panel-body hr{border:1px inset;}.x-panel-reset .x-panel-body ol,.x-panel-reset .x-panel-body ul,.x-panel-reset .x-panel-body dir,.x-panel-reset .x-panel-body menu,.x-panel-reset .x-panel-body dd{margin-left:40px;}.x-panel-reset .x-panel-body ul,.x-panel-reset .x-panel-body menu,.x-panel-reset .x-panel-body dir{list-style-type:disc;}'+
'.x-panel-reset .x-panel-body ol{list-style-type:decimal;}.x-panel-reset .x-panel-body ol ul,.x-panel-reset .x-panel-body ul ol,.x-panel-reset .x-panel-body ul ul,.x-panel-reset .x-panel-body ol ol{margin-top:0;margin-bottom:0;}.x-panel-reset .x-panel-body u,.x-panel-reset .x-panel-body ins{text-decoration:underline;}.x-panel-reset .x-panel-body br:before{content:"\A";}.x-panel-reset .x-panel-body :before,.x-panel-reset .x-panel-body :after{white-space:pre-line;}.x-panel-reset .x-panel-body center{text-align:center;}.x-panel-reset .x-panel-body :link,.x-panel-reset .x-panel-body :visited{text-decoration:underline;}.x-panel-reset .x-panel-body :focus{outline:invert dotted thin;}.x-panel-reset .x-panel-body BDO[DIR="ltr"]{direction:ltr;unicode-bidi:bidi-override;}.x-panel-reset .x-panel-body BDO[DIR="rtl"]{direction:rtl;unicode-bidi:bidi-override;}.x-window{zoom:1;}.x-window .x-window-handle{opacity:0;-moz-opacity:0;filter:alpha(opacity=0);}.x-window-proxy{border:1px solid;z-index:12000;overflow:hidden;position:absolute;left:0;top:0;display:none;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);}'+
'.x-window-header{overflow:hidden;zoom:1;}.x-window-bwrap{z-index:1;position:relative;zoom:1;left:0;top:0;}.x-window-tl .x-window-header{padding:5px 0 4px 0;}.x-window-header-text{cursor:pointer;}.x-window-tc{background:transparent repeat-x 0 0;overflow:hidden;zoom:1;}.x-window-tl{background:transparent no-repeat 0 0;padding-left:6px;zoom:1;z-index:1;position:relative;}.x-window-tr{background:transparent no-repeat right 0;padding-right:6px;}.x-window-bc{background:transparent repeat-x 0 bottom;zoom:1;}.x-window-bc .x-window-footer{padding-bottom:6px;zoom:1;font-size:0;line-height:0;}.x-window-bl{background:transparent no-repeat 0 bottom;padding-left:6px;zoom:1;}.x-window-br{background:transparent no-repeat right bottom;padding-right:6px;zoom:1;}.x-window-mc{border:1px solid;padding:0;margin:0;}.x-window-ml{background:transparent repeat-y 0 0;padding-left:6px;zoom:1;}.x-window-mr{background:transparent repeat-y right 0;padding-right:6px;zoom:1;}.x-window-body{overflow:hidden;}.x-window-bwrap{overflow:hidden;}.x-window-maximized .x-window-bl,.x-window-maximized .x-window-br,.x-window-maximized .x-window-ml,.x-window-maximized .x-window-mr,.x-window-maximized .x-window-tl,.x-window-maximized .x-window-tr{padding:0;}'+
'.x-window-maximized .x-window-footer{padding-bottom:0;}.x-window-maximized .x-window-tc{padding-left:3px;padding-right:3px;}.x-window-maximized .x-window-mc{border-left:0 none;border-right:0 none;}.x-window-tbar .x-toolbar,.x-window-bbar .x-toolbar{border-left:0 none;border-right:0 none;}.x-window-bbar .x-toolbar{border-top:1px solid;border-bottom:0 none;}.x-window-draggable,.x-window-draggable .x-window-header-text{cursor:move;}.x-window-maximized .x-window-draggable,.x-window-maximized .x-window-draggable .x-window-header-text{cursor:default;}.x-window-body{background-color:transparent;}.x-panel-ghost .x-window-tl{border-bottom:1px solid;}.x-panel-collapsed .x-window-tl{border-bottom:1px solid;}.x-window-maximized-ct{overflow:hidden;}.x-window-maximized .x-window-handle{display:none;}.x-window-sizing-ghost ul{border:0 none!important;}.x-dlg-focus{-moz-outline:0 none;outline:0 none;width:0;height:0;overflow:hidden;position:absolute;top:0;left:0;}.ext-webkit .x-dlg-focus{width:1px;height:1px;}.x-dlg-mask{z-index:10000;display:none;position:absolute;top:0;left:0;-moz-opacity:.5;opacity:.50;filter:alpha(opacity=50);}'+
'body.ext-ie6.x-body-masked select{visibility:hidden;}body.ext-ie6.x-body-masked .x-window select{visibility:visible;}.x-window-plain .x-window-mc{border:1px solid;}.x-window-plain .x-window-body{border:1px solid;background:transparent!important;}.x-html-editor-wrap{border:1px solid;}.x-html-editor-tb .x-btn-text{background:transparent no-repeat;}.x-html-editor-tb .x-edit-bold,.x-menu-item img.x-edit-bold{background-position:0 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-italic,.x-menu-item img.x-edit-italic{background-position:-16px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-underline,.x-menu-item img.x-edit-underline{background-position:-32px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-forecolor,.x-menu-item img.x-edit-forecolor{background-position:-160px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}'+
'.x-html-editor-tb .x-edit-backcolor,.x-menu-item img.x-edit-backcolor{background-position:-176px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-justifyleft,.x-menu-item img.x-edit-justifyleft{background-position:-112px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-justifycenter,.x-menu-item img.x-edit-justifycenter{background-position:-128px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-justifyright,.x-menu-item img.x-edit-justifyright{background-position:-144px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-insertorderedlist,.x-menu-item img.x-edit-insertorderedlist{background-position:-80px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}'+
'.x-html-editor-tb .x-edit-insertunorderedlist,.x-menu-item img.x-edit-insertunorderedlist{background-position:-96px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-increasefontsize,.x-menu-item img.x-edit-increasefontsize{background-position:-48px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-decreasefontsize,.x-menu-item img.x-edit-decreasefontsize{background-position:-64px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-sourceedit,.x-menu-item img.x-edit-sourceedit{background-position:-192px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}.x-html-editor-tb .x-edit-createlink,.x-menu-item img.x-edit-createlink{background-position:-208px 0;background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/editor/tb-sprite.gif\');}'+
'.x-html-editor-tip .x-tip-bd .x-tip-bd-inner{padding:5px;padding-bottom:1px;}.x-html-editor-tb .x-toolbar{position:static!important;}.x-panel-noborder .x-panel-body-noborder{border-width:0;}.x-panel-noborder .x-panel-header-noborder{border-width:0 0 1px;border-style:solid;}.x-panel-noborder .x-panel-tbar-noborder .x-toolbar{border-width:0 0 1px;border-style:solid;}.x-panel-noborder .x-panel-bbar-noborder .x-toolbar{border-width:1px 0 0 0;border-style:solid;}.x-window-noborder .x-window-mc{border-width:0;}.x-window-plain .x-window-body-noborder{border-width:0;}.x-tab-panel-noborder .x-tab-panel-body-noborder{border-width:0;}.x-tab-panel-noborder .x-tab-panel-header-noborder{border-width:0 0 1px 0;}.x-tab-panel-noborder .x-tab-panel-footer-noborder{border-width:1px 0 0 0;}.x-tab-panel-bbar-noborder .x-toolbar{border-width:1px 0 0 0;border-style:solid;}.x-tab-panel-tbar-noborder .x-toolbar{border-width:0 0 1px;border-style:solid;}.x-border-layout-ct{position:relative;}.x-border-panel{position:absolute;left:0;top:0;}'+
'.x-tool-collapse-south{background-position:0 -195px;}.x-tool-collapse-south-over{background-position:-15px -195px;}.x-tool-collapse-north{background-position:0 -210px;}.x-tool-collapse-north-over{background-position:-15px -210px;}.x-tool-collapse-west{background-position:0 -180px;}.x-tool-collapse-west-over{background-position:-15px -180px;}.x-tool-collapse-east{background-position:0 -165px;}.x-tool-collapse-east-over{background-position:-15px -165px;}.x-tool-expand-south{background-position:0 -210px;}.x-tool-expand-south-over{background-position:-15px -210px;}.x-tool-expand-north{background-position:0 -195px;}.x-tool-expand-north-over{background-position:-15px -195px;}.x-tool-expand-west{background-position:0 -165px;}.x-tool-expand-west-over{background-position:-15px -165px;}.x-tool-expand-east{background-position:0 -180px;}.x-tool-expand-east-over{background-position:-15px -180px;}.x-tool-expand-north,.x-tool-expand-south{float:right;margin:3px;}.x-tool-expand-east,.x-tool-expand-west{float:none;margin:3px 2px;}'+
'.x-accordion-hd .x-tool-toggle{background-position:0 -255px;}.x-accordion-hd .x-tool-toggle-over{background-position:-15px -255px;}.x-panel-collapsed .x-accordion-hd .x-tool-toggle{background-position:0 -240px;}.x-panel-collapsed .x-accordion-hd .x-tool-toggle-over{background-position:-15px -240px;}.x-accordion-hd{padding-top:4px;padding-bottom:3px;border-top:0 none;background:transparent repeat-x 0 -9px;}.x-layout-collapsed{position:absolute;left:-10000px;top:-10000px;visibility:hidden;width:20px;height:20px;overflow:hidden;border:1px solid;z-index:20;}.ext-border-box .x-layout-collapsed{width:22px;height:22px;}.x-layout-collapsed-over{cursor:pointer;}.x-layout-collapsed-west .x-layout-collapsed-tools,.x-layout-collapsed-east .x-layout-collapsed-tools{position:absolute;top:0;left:0;width:20px;height:20px;}.x-layout-split{position:absolute;height:5px;width:5px;line-height:1px;font-size:1px;z-index:3;background-color:transparent;}.ext-strict .ext-ie6 .x-layout-split{background-color:#fff!important;filter:alpha(opacity=1);}'+
'.x-layout-split-h{background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/s.gif\');background-position:left;}.x-layout-split-v{background-image:url(\'/freescan-front/lib/ext-3.4.0/resources/images/default/s.gif\');background-position:top;}.x-column-layout-ct{overflow:hidden;zoom:1;}.x-column{float:left;padding:0;margin:0;overflow:hidden;zoom:1;}.x-column-inner{overflow:hidden;zoom:1;}.x-layout-mini{position:absolute;top:0;left:0;display:block;width:5px;height:35px;cursor:pointer;opacity:.5;-moz-opacity:.5;filter:alpha(opacity=50);}.x-layout-mini-over,.x-layout-collapsed-over .x-layout-mini{opacity:1;-moz-opacity:1;filter:none;}.x-layout-split-west .x-layout-mini{top:48%;}.x-layout-split-east .x-layout-mini{top:48%;}.x-layout-split-north .x-layout-mini{left:48%;height:5px;width:35px;}.x-layout-split-south .x-layout-mini{left:48%;height:5px;width:35px;}.x-layout-cmini-west .x-layout-mini{top:48%;}.x-layout-cmini-east .x-layout-mini{top:48%;}.x-layout-cmini-north .x-layout-mini{left:48%;height:5px;width:35px;}'+
'.x-layout-cmini-south .x-layout-mini{left:48%;height:5px;width:35px;}.x-layout-cmini-west,.x-layout-cmini-east{border:0 none;width:5px!important;padding:0;background-color:transparent;}.x-layout-cmini-north,.x-layout-cmini-south{border:0 none;height:5px!important;padding:0;background-color:transparent;}.x-viewport,.x-viewport body{margin:0;padding:0;border:0 none;overflow:hidden;height:100%;}.x-abs-layout-item{position:absolute;left:0;top:0;}.ext-ie input.x-abs-layout-item,.ext-ie textarea.x-abs-layout-item{margin:0;}.x-box-layout-ct{overflow:hidden;zoom:1;}.x-box-inner{overflow:hidden;zoom:1;position:relative;left:0;top:0;}.x-box-item{position:absolute;left:0;top:0;}.x-progress-wrap{border:1px solid;overflow:hidden;}.x-progress-inner{height:18px;background:repeat-x;position:relative;}.x-progress-bar{height:18px;float:left;width:0;background:repeat-x left center;border-top:1px solid;border-bottom:1px solid;border-right:1px solid;}.x-progress-text{padding:1px 5px;overflow:hidden;position:absolute;left:0;text-align:center;}'+
'.x-progress-text-back{line-height:16px;}.ext-ie .x-progress-text-back{line-height:15px;}.ext-strict .ext-ie7 .x-progress-text-back{width:100%;}.x-list-header{background:repeat-x 0 bottom;cursor:default;zoom:1;height:22px;}.x-list-header-inner div{display:block;float:left;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;}.x-list-header-inner div em{display:block;border-left:1px solid;padding:4px 4px;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;line-height:14px;}.x-list-body{overflow:auto;overflow-x:hidden;overflow-y:auto;zoom:1;float:left;width:100%;}.x-list-body dl{zoom:1;}.x-list-body dt{display:block;float:left;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;zoom:1;}.x-list-body dt em{display:block;padding:3px 4px;overflow:hidden;-moz-user-select:none;-khtml-user-select:none;}.x-list-resizer{border-left:1px solid;border-right:1px solid;position:absolute;left:0;top:0;}.x-list-header-inner em.sort-asc{background:transparent no-repeat center 0;border-style:solid;border-width:0 1px 1px;padding-bottom:3px;}'+
'.x-list-header-inner em.sort-desc{background:transparent no-repeat center -23px;border-style:solid;border-width:0 1px 1px;padding-bottom:3px;}.x-slider{zoom:1;}.x-slider-inner{position:relative;left:0;top:0;overflow:visible;zoom:1;}.x-slider-focus{position:absolute;left:0;top:0;width:1px;height:1px;line-height:1px;font-size:1px;-moz-outline:0 none;outline:0 none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:ignore;display:block;overflow:hidden;}.x-slider-horz{padding-left:7px;background:transparent no-repeat 0 -22px;}.x-slider-horz .x-slider-end{padding-right:7px;zoom:1;background:transparent no-repeat right -44px;}.x-slider-horz .x-slider-inner{background:transparent repeat-x 0 0;height:22px;}.x-slider-horz .x-slider-thumb{width:14px;height:15px;position:absolute;left:0;top:3px;background:transparent no-repeat 0 0;}.x-slider-horz .x-slider-thumb-over{background-position:-14px -15px;}.x-slider-horz .x-slider-thumb-drag{background-position:-28px -30px;}.x-slider-vert{padding-top:7px;background:transparent no-repeat -44px 0;width:22px;}'+
'.x-slider-vert .x-slider-end{padding-bottom:7px;zoom:1;background:transparent no-repeat -22px bottom;}.x-slider-vert .x-slider-inner{background:transparent repeat-y 0 0;}.x-slider-vert .x-slider-thumb{width:15px;height:14px;position:absolute;left:3px;bottom:0;background:transparent no-repeat 0 0;}.x-slider-vert .x-slider-thumb-over{background-position:-15px -14px;}.x-slider-vert .x-slider-thumb-drag{background-position:-30px -28px;}.x-window-dlg .x-window-body{border:0 none!important;padding:5px 10px;overflow:hidden!important;}.x-window-dlg .x-window-mc{border:0 none!important;}.x-window-dlg .ext-mb-input{margin-top:4px;width:95%;}.x-window-dlg .ext-mb-textarea{margin-top:4px;}.x-window-dlg .x-progress-wrap{margin-top:4px;}.ext-ie .x-window-dlg .x-progress-wrap{margin-top:6px;}.x-window-dlg .x-msg-box-wait{background:transparent no-repeat left;display:block;width:300px;padding-left:18px;line-height:18px;}.x-window-dlg .ext-mb-icon{float:left;width:47px;height:32px;}.x-window-dlg .x-dlg-icon .ext-mb-content{zoom:1;margin-left:47px;}'+
'.x-window-dlg .ext-mb-info,.x-window-dlg .ext-mb-warning,.x-window-dlg .ext-mb-question,.x-window-dlg .ext-mb-error{background:transparent no-repeat top left;}.ext-gecko2 .ext-mb-fix-cursor{overflow:auto;}'+
'.ext-el-mask{background-color:#ccd1cc;}.ext-el-mask-msg{border-color:#6598cf;background-color:#c3dff9;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/tb-blue.gif\');}.ext-el-mask-msg div{background-color:#eef3ee;border-color:#a3bfd9;color:#222;font:normal 11px tahoma,arial,helvetica,sans-serif;}.x-mask-loading div{background-color:#fbfffb;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/loading.gif\');}.x-item-disabled{color:gray;}.x-item-disabled *{color:gray;!important;}.x-splitbar-proxy{background-color:#aaafaa;}.x-color-palette a{border-color:#fff;}.x-color-palette a:hover,.x-color-palette a.x-color-palette-sel{border-color:#8bbdf3;background-color:#def1fd;}.x-color-palette em:hover,.x-color-palette span:hover{background-color:#def1fd;}.x-color-palette em{border-color:#acad99;}.x-ie-shadow{background-color:#777c77;}.x-shadow .xsmc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shadow-c.png\');}.x-shadow .xsml,.x-shadow .xsmr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shadow-lr.png\');}'+
'.x-shadow .xstl,.x-shadow .xstc,.x-shadow .xstr,.x-shadow .xsbl,.x-shadow .xsbc,.x-shadow .xsbr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shadow.png\');}.loading-indicator{font-size:11px;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/loading.gif\');}.x-spotlight{background-color:#ccd1cc;}.x-tab-panel-header,.x-tab-panel-footer{background-color:#def1fd;border-color:#8db7e3;overflow:hidden;zoom:1;}.x-tab-panel-header,.x-tab-panel-footer{border-color:#8db7e3;}ul.x-tab-strip-top{background-color:#cee4f5;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/tab-strip-bg.gif\');border-bottom-color:#8db7e3;}ul.x-tab-strip-bottom{background-color:#cee4f5;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/tab-strip-btm-bg.gif\');border-top-color:#8db7e3;}.x-tab-panel-header-plain .x-tab-strip-spacer,.x-tab-panel-footer-plain .x-tab-strip-spacer{border-color:#8db7e3;background-color:#def1fd;}.x-tab-strip span.x-tab-strip-text{font:normal 11px tahoma,arial,helvetica;color:#416aa3;}'+
'.x-tab-strip-over span.x-tab-strip-text{color:#15428b;}.x-tab-strip-active span.x-tab-strip-text{color:#15428b;font-weight:bold;}.x-tab-strip-disabled .x-tabs-text{color:#555;}.x-tab-strip-top .x-tab-right,.x-tab-strip-top .x-tab-left,.x-tab-strip-top .x-tab-strip-inner{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/tabs-sprite.gif\');}.x-tab-strip-bottom .x-tab-right{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/tab-btm-inactive-right-bg.gif\');}.x-tab-strip-bottom .x-tab-left{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/tab-btm-inactive-left-bg.gif\');}.x-tab-strip-bottom .x-tab-strip-active .x-tab-right{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/tab-btm-right-bg.gif\');}.x-tab-strip-bottom .x-tab-strip-active .x-tab-left{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/tab-btm-left-bg.gif\');}.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/tab-close.gif\');}'+
'.x-tab-strip .x-tab-strip-closable a.x-tab-strip-close:hover{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/tab-close.gif\');}.x-tab-panel-body{border-color:#8db7e3;background-color:#fff;}.x-tab-panel-body-top{border-top:0 none;}.x-tab-panel-body-bottom{border-bottom:0 none;}.x-tab-scroller-left{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/scroll-left.gif\');border-bottom-color:#8db7e3;}.x-tab-scroller-left-over{background-position:0 0;}.x-tab-scroller-left-disabled{background-position:-18px 0;opacity:.5;-moz-opacity:.5;filter:alpha(opacity = 50);cursor:default;}.x-tab-scroller-right{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tabs/scroll-right.gif\');border-bottom-color:#8db7e3;}.x-tab-panel-bbar .x-toolbar,.x-tab-panel-tbar .x-toolbar{border-color:#A9CACF;}.x-form-field{font:normal 12px tahoma,arial,helvetica,sans-serif;}.x-form-text,textarea.x-form-field{background-color:#fff;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/form/text-bg.gif\');border-color:#b5bdc8;color:#3b3b3b;}'+
'.x-form-select-one{background-color:#fff;border-color:#b5bdc8;}.x-form-check-group-label{border-bottom:1px solid #99bbe8;color:#15428b;}.x-editor .x-form-check-wrap{background-color:#fff;}.x-form-field-wrap .x-form-trigger{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/form/trigger.gif\');border-bottom-color:#b5bdc8;}.x-form-field-wrap .x-form-date-trigger{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/form/date-trigger.gif\');}.x-form-field-wrap .x-form-clear-trigger{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/form/clear-trigger.gif\');}.x-form-field-wrap .x-form-search-trigger{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/form/search-trigger.gif\');}.x-trigger-wrap-focus .x-form-trigger{border-bottom-color:#7eb2d9;}.x-item-disabled .x-form-trigger-over{border-bottom-color:#b5bdc8;}.x-item-disabled .x-form-trigger-click{border-bottom-color:#b5bdc8;}.x-form-focus,textarea.x-form-focus{border-color:#7eb2d9;}'+
'.x-form-invalid,textarea.x-form-invalid{background-color:#fff;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/invalid_line.gif\');border-color:#cc3800;}.ext-webkit .x-form-invalid{background-color:#fff3ee;border-color:#ff7d70;}.x-form-inner-invalid,textarea.x-form-inner-invalid{background-color:#fff;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/invalid_line.gif\');}.x-form-grow-sizer{font:normal 12px tahoma,arial,helvetica,sans-serif;}.x-form-item{font:normal 12px tahoma,arial,helvetica,sans-serif;color:#000;}.x-form-invalid-msg{color:#c0272b;font:normal 11px tahoma,arial,helvetica,sans-serif;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/warning.gif\');}.x-form-empty-field{color:#aaa;}.x-small-editor .x-form-field{font:normal 11px arial,tahoma,helvetica,sans-serif;color:#3b3b3b;}.ext-webkit .x-small-editor .x-form-field{font:normal 12px arial,tahoma,helvetica,sans-serif;}.x-form-invalid-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/form/exclamation.gif\');}'+
'.x-fieldset{border-color:#b5bdc8;}.x-fieldset legend{font:bold 11px tahoma,arial,helvetica,sans-serif;color:#15428b;}.x-btn{font:normal 11px tahoma,verdana,helvetica;}.x-btn button{font:normal 11px arial,tahoma,verdana,helvetica;color:#222;}.x-btn em{font-style:normal;font-weight:normal;}.x-btn-tl,.x-btn-tr,.x-btn-tc,.x-btn-ml,.x-btn-mr,.x-btn-mc,.x-btn-bl,.x-btn-br,.x-btn-bc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/btn.gif\');}.x-btn-click .x-btn-text,.x-btn-menu-active .x-btn-text,.x-btn-pressed .x-btn-text{color:#000;}.x-btn-disabled *{color:#414141!important;}.x-btn-mc em.x-btn-arrow{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/arrow.gif\');}.x-btn-mc em.x-btn-split{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/s-arrow.gif\');}.x-btn-over .x-btn-mc em.x-btn-split,.x-btn-click .x-btn-mc em.x-btn-split,.x-btn-menu-active .x-btn-mc em.x-btn-split,.x-btn-pressed .x-btn-mc em.x-btn-split{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/s-arrow-o.gif\');}'+
'.x-btn-mc em.x-btn-arrow-bottom{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/s-arrow-b-noline.gif\');}.x-btn-mc em.x-btn-split-bottom{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/s-arrow-b.gif\');}.x-btn-over .x-btn-mc em.x-btn-split-bottom,.x-btn-click .x-btn-mc em.x-btn-split-bottom,.x-btn-menu-active .x-btn-mc em.x-btn-split-bottom,.x-btn-pressed .x-btn-mc em.x-btn-split-bottom{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/s-arrow-bo.gif\');}.x-btn-group-header{color:#3e6aaa;}.x-btn-group-tc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/group-tb.gif\');}.x-btn-group-tl{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/group-cs.gif\');}.x-btn-group-tr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/group-cs.gif\');}.x-btn-group-bc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/group-tb.gif\');}'+
'.x-btn-group-bl{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/group-cs.gif\');}.x-btn-group-br{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/group-cs.gif\');}.x-btn-group-ml{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/group-lr.gif\');}.x-btn-group-mr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/group-lr.gif\');}.x-btn-group-notitle .x-btn-group-tc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/group-tb.gif\');}.x-toolbar{border-color:#a9c4d3;background-color:#d0e3f0;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/toolbar/bg.gif\');}.x-toolbar td,.x-toolbar span,.x-toolbar div,.x-toolbar label{font:normal 11px arial,tahoma,helvetica,sans-serif;color:#000;}.x-toolbar input,.x-toolbar select{font:normal 11px arial,tahoma,helvetica,sans-serif;}.x-toolbar .x-item-disabled{color:#414141;}.x-toolbar .x-item-disabled *{color:#414141;}'+
'.x-toolbar .x-btn-mc em.x-btn-split{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/s-arrow-noline.gif\');}.x-toolbar .x-btn-over .x-btn-mc em.x-btn-split,.x-toolbar .x-btn-click .x-btn-mc em.x-btn-split,.x-toolbar .x-btn-menu-active .x-btn-mc em.x-btn-split,.x-toolbar .x-btn-pressed .x-btn-mc em.x-btn-split{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/s-arrow-o.gif\');}.x-toolbar .x-btn-mc em.x-btn-split-bottom{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/s-arrow-b-noline.gif\');}.x-toolbar .x-btn-over .x-btn-mc em.x-btn-split-bottom,.x-toolbar .x-btn-click .x-btn-mc em.x-btn-split-bottom,.x-toolbar .x-btn-menu-active .x-btn-mc em.x-btn-split-bottom,.x-toolbar .x-btn-pressed .x-btn-mc em.x-btn-split-bottom{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/button/s-arrow-bo.gif\');}.x-toolbar .xtb-sep{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid-blue-split.gif\');}'+
'.x-tbar-page-first{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/page-first.gif\')!important;}.x-tbar-loading{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/refresh.gif\')!important;}.x-tbar-page-last{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/page-last.gif\')!important;}.x-tbar-page-next{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/page-next.gif\')!important;}.x-tbar-page-prev{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/page-prev.gif\')!important;}.x-item-disabled .x-tbar-loading{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/loading.gif\')!important;}.x-item-disabled .x-tbar-page-first{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/page-first-disabled.gif\')!important;}.x-item-disabled .x-tbar-page-last{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/page-last-disabled.gif\')!important;}'+
'.x-item-disabled .x-tbar-page-next{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/page-next-disabled.gif\')!important;}.x-item-disabled .x-tbar-page-prev{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/page-prev-disabled.gif\')!important;}.x-paging-info{color:#444;}.x-toolbar-more-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/toolbar/more.gif\')!important;}.x-resizable-handle{background-color:#fff;}.x-resizable-over .x-resizable-handle-east,.x-resizable-pinned .x-resizable-handle-east,.x-resizable-over .x-resizable-handle-west,.x-resizable-pinned .x-resizable-handle-west{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/sizer/e-handle.gif\');}.x-resizable-over .x-resizable-handle-south,.x-resizable-pinned .x-resizable-handle-south,.x-resizable-over .x-resizable-handle-north,.x-resizable-pinned .x-resizable-handle-north{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/sizer/s-handle.gif\');}'+
'.x-resizable-over .x-resizable-handle-north,.x-resizable-pinned .x-resizable-handle-north{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/sizer/s-handle.gif\');}.x-resizable-over .x-resizable-handle-southeast,.x-resizable-pinned .x-resizable-handle-southeast{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/sizer/se-handle.gif\');}.x-resizable-over .x-resizable-handle-northwest,.x-resizable-pinned .x-resizable-handle-northwest{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/sizer/nw-handle.gif\');}.x-resizable-over .x-resizable-handle-northeast,.x-resizable-pinned .x-resizable-handle-northeast{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/sizer/ne-handle.gif\');}.x-resizable-over .x-resizable-handle-southwest,.x-resizable-pinned .x-resizable-handle-southwest{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/sizer/sw-handle.gif\');}.x-resizable-proxy{border-color:#3b5f82;}.x-resizable-overlay{background-color:#fff;}'+
'.x-grid3{background-color:#fff;}.x-grid-panel .x-panel-mc .x-panel-body{border-color:#A9CACF;}.x-grid3-hd-row td{font:normal 11px arial,tahoma,helvetica,sans-serif;color:#000;}.x-grid3-row td,.x-grid3-summary-row td{font:normal 11px arial,tahoma,helvetica,sans-serif;}.x-grid3-hd-row td{border-left-color:#eef3ee;border-right-color:#d0d5d0;}.x-grid-row-loading{background-color:#fff;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/loading-balls.gif\');}.x-grid3-row{border-color:#edf2ed;border-top-color:#fff;}.x-grid3-row-alt{background-color:#fafafa;}.x-grid3-row-over{border-color:#dde2dd;background-color:#efefef;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/row-over.gif\');}.x-grid3-resize-proxy{background-color:#777c77;}.x-grid3-resize-marker{background-color:#777c77;}.x-grid3-header{background-color:#f9fef9;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-hrow.gif\');}.x-grid3-header-pop{border-left-color:#d0d5d0;}'+
'.x-grid3-header-pop-inner{border-left-color:#eef3ee;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/hd-pop.gif\');}td.x-grid3-hd-over,td.sort-desc,td.sort-asc,td.x-grid3-hd-menu-open{border-left-color:#aad1f6;border-right-color:#aad1f6;}td.x-grid3-hd-over .x-grid3-hd-inner,td.sort-desc .x-grid3-hd-inner,td.sort-asc .x-grid3-hd-inner,td.x-grid3-hd-menu-open .x-grid3-hd-inner{background-color:#ebf8fd;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-hrow-over.gif\');}.sort-asc .x-grid3-sort-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/sort_asc.gif\');}.sort-desc .x-grid3-sort-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/sort_desc.gif\');}.x-grid3-cell-text,.x-grid3-hd-text{color:#000;}.x-grid3-split{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid-split.gif\');}.x-grid3-hd-text{color:#15428b;}.x-dd-drag-proxy .x-grid3-hd-inner{background-color:#ebf8fd;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-hrow-over.gif\');border-color:#aad1f6;}'+
'.col-move-top{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/col-move-top.gif\');}.col-move-bottom{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/col-move-bottom.gif\');}.x-grid3-row-selected{background-color:#dfe8f6!important;background-image:none;border-color:#a3bfe9;}.x-grid3-cell-selected{background-color:#b8d4ee!important;color:#000;}.x-grid3-cell-selected span{color:#000!important;}.x-grid3-cell-selected .x-grid3-cell-text{color:#000;}.x-grid3-locked td.x-grid3-row-marker,.x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker{background-color:#ebefdb!important;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid-hrow.gif\')!important;color:#000;border-top-color:#fff;border-right-color:#6fa5df!important;}.x-grid3-locked td.x-grid3-row-marker div,.x-grid3-locked .x-grid3-row-selected td.x-grid3-row-marker div{color:#15428b!important;}.x-grid3-dirty-cell{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/dirty.gif\');}'+
'.x-grid3-topbar,.x-grid3-bottombar{font:normal 11px arial,tahoma,helvetica,sans-serif;}.x-grid3-bottombar .x-toolbar{border-top-color:#a9c4d3;}.x-props-grid .x-grid3-td-name .x-grid3-cell-inner{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-special-col-bg.gif\')!important;color:#000!important;}.x-props-grid .x-grid3-body .x-grid3-td-name{background-color:#fff!important;border-right-color:#eef3ee;}.xg-hmenu-sort-asc .x-menu-item-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/hmenu-asc.gif\');}.xg-hmenu-sort-desc .x-menu-item-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/hmenu-desc.gif\');}.xg-hmenu-lock .x-menu-item-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/hmenu-lock.gif\');}.xg-hmenu-unlock .x-menu-item-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/hmenu-unlock.gif\');}.x-grid3-hd-btn{background-color:#c3dff9;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-hd-btn.gif\');}'+
'.x-grid3-body .x-grid3-td-expander{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-special-col-bg.gif\');}.x-grid3-row-expander{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/row-expand-sprite.gif\');}.x-grid3-body .x-grid3-td-checker{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-special-col-bg.gif\');}.x-grid3-row-checker,.x-grid3-hd-checker{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/row-check-sprite.gif\');}.x-grid3-body .x-grid3-td-numberer{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-special-col-bg.gif\');}.x-grid3-body .x-grid3-td-numberer .x-grid3-cell-inner{color:#444;}.x-grid3-body .x-grid3-td-row-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-special-col-bg.gif\');}.x-grid3-body .x-grid3-row-selected .x-grid3-td-numberer,.x-grid3-body .x-grid3-row-selected .x-grid3-td-checker,.x-grid3-body .x-grid3-row-selected .x-grid3-td-expander{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-special-col-sel-bg.gif\');}');
Resource._css(''+
'.x-grid3-check-col{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/menu/unchecked.gif\');}.x-grid3-check-col-on{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/menu/checked.gif\');}.x-grid-group,.x-grid-group-body,.x-grid-group-hd{zoom:1;}.x-grid-group-hd{border-bottom-color:#A9CACF;}.x-grid-group-hd div.x-grid-group-title{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/group-collapse.gif\');color:#3764a0;font:bold 11px tahoma,arial,helvetica,sans-serif;}.x-grid-group-collapsed .x-grid-group-hd div.x-grid-group-title{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/group-expand.gif\');}.x-group-by-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/group-by.gif\');}.x-cols-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/columns.gif\');}.x-show-groups-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/group-by.gif\');}'+
'.x-grid-empty{color:#414141;font:normal 11px tahoma,arial,helvetica,sans-serif;}.x-grid-with-col-lines .x-grid3-row{border-top-color:#edf2ed;}.x-grid-with-col-lines .x-grid3-row-selected{border-top-color:#a3bfe9;}.x-dd-drag-ghost{color:#000;font:normal 11px arial,helvetica,sans-serif;border-top-color:#dde2dd;border-right-color:#bbc0bb;border-bottom-color:#bbc0bb;border-left-color:#dde2dd;background-color:#fff;}.x-dd-drop-nodrop .x-dd-drop-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/dd/drop-no.gif\');}.x-dd-drop-ok .x-dd-drop-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/dd/drop-yes.gif\');}.x-dd-drop-ok-add .x-dd-drop-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/dd/drop-add.gif\');}.x-view-selector{background-color:#c3dff9;border-color:#339ebb;}.x-tree-node-expanded .x-tree-node-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/folder-open.gif\');}.x-tree-node-leaf .x-tree-node-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/leaf.gif\');}'+
'.x-tree-node-collapsed .x-tree-node-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/folder.gif\');}.x-tree-node-loading .x-tree-node-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/loading.gif\')!important;}.x-tree-node .x-tree-node-inline-icon{background-image:none;}.x-tree-node-loading a span{font-style:italic;color:#7f7f7f;}.x-tree-lines .x-tree-elbow{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow.gif\');}.x-tree-lines .x-tree-elbow-plus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-plus.gif\');}.x-tree-lines .x-tree-elbow-minus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-minus.gif\');}.x-tree-lines .x-tree-elbow-end{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-end.gif\');}.x-tree-lines .x-tree-elbow-end-plus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-end-plus.gif\');}'+
'.x-tree-lines .x-tree-elbow-end-minus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-end-minus.gif\');}.x-tree-lines .x-tree-elbow-line{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-line.gif\');}.x-tree-no-lines .x-tree-elbow-plus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-plus-nl.gif\');}.x-tree-no-lines .x-tree-elbow-minus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-minus-nl.gif\');}.x-tree-no-lines .x-tree-elbow-end-plus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-end-plus-nl.gif\');}.x-tree-no-lines .x-tree-elbow-end-minus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/elbow-end-minus-nl.gif\');}.x-tree-arrows .x-tree-elbow-plus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/arrows.gif\');}.x-tree-arrows .x-tree-elbow-minus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/arrows.gif\');}'+
'.x-tree-arrows .x-tree-elbow-end-plus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/arrows.gif\');}.x-tree-arrows .x-tree-elbow-end-minus{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/arrows.gif\');}.x-tree-node{color:#3b3b3b;font:normal 11px arial,tahoma,helvetica,sans-serif;}.x-tree-node a,.x-dd-drag-ghost a{color:#3b3b3b;}.x-tree-node a span,.x-dd-drag-ghost a span{color:#3b3b3b;}.x-tree-node .x-tree-node-disabled a span{color:#aaa!important;}.x-tree-node div.x-tree-drag-insert-below{border-bottom-color:#336bcc;}.x-tree-node div.x-tree-drag-insert-above{border-top-color:#336bcc;}.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-below a{border-bottom-color:#336bcc;}.x-tree-dd-underline .x-tree-node div.x-tree-drag-insert-above a{border-top-color:#336bcc;}.x-tree-node .x-tree-drag-append a span{background-color:#ddd;border-color:#bec3be;}.x-tree-node .x-tree-node-over{background-color:#eee;}.x-tree-node .x-tree-selected{background-color:#d9e8fb;}'+
'.x-tree-drop-ok-append .x-dd-drop-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/drop-add.gif\');}.x-tree-drop-ok-above .x-dd-drop-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/drop-over.gif\');}.x-tree-drop-ok-below .x-dd-drop-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/drop-under.gif\');}.x-tree-drop-ok-between .x-dd-drop-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/tree/drop-between.gif\');}.x-date-picker{border-color:#1b3c6c;background-color:#fff;}.x-date-middle,.x-date-left,.x-date-right{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/hd-sprite.gif\');color:#000;font:bold 11px sans serif,tahoma,verdana,helvetica;}.x-date-middle .x-btn .x-btn-text{color:#fff;}.x-date-middle .x-btn-mc em.x-btn-arrow{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/toolbar/btn-arrow-light.gif\');}.x-date-right a{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/right-btn.gif\');}'+
'.x-date-left a{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/left-btn.gif\');}.x-date-inner th{background-color:#dfecfb;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/glass-bg.gif\');border-bottom-color:#a3bfd9;font:normal 10px arial,helvetica,tahoma,sans-serif;color:#5e78a8;}.x-date-inner td{border-color:#fff;}.x-date-inner a{font:normal 11px arial,helvetica,tahoma,sans-serif;color:#3b3b3b;}.x-date-inner .x-date-active{color:#3b3b3b;}.x-date-inner .x-date-selected a{background-color:#dfecfb;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/glass-bg.gif\');border-color:#8db7e3;}.x-date-inner .x-date-today a{border-color:#8b058b;}.x-date-inner .x-date-selected span{font-weight:bold;}.x-date-inner .x-date-prevday a,.x-date-inner .x-date-nextday a{color:#e5e5e5;}.x-date-bottom{border-top-color:#a3bfd9;background-color:#dff1fb;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/glass-bg.gif\');}'+
'.x-date-inner a:hover,.x-date-inner .x-date-disabled a:hover{color:#3b3b3b;background-color:#ddecfe;}.x-date-inner .x-date-disabled a{background-color:#eee;color:#f6f6f6;}.x-date-mmenu{background-color:#eef3ee!important;}.x-date-mmenu .x-menu-item{font-size:10px;color:#000;}.x-date-mp{background-color:#fff;}.x-date-mp td{font:normal 11px arial,helvetica,tahoma,sans-serif;}.x-date-mp-btns button{background-color:#083c72;color:#000;border-top-color:#336bcc;border-right-color:#000555;border-bottom-color:#000555;border-left-color:#336bcc;font:normal 11px arial,helvetica,tahoma,sans-serif;}.x-date-mp-btns{background-color:#dff1fb;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/glass-bg.gif\');}.x-date-mp-btns td{border-top-color:#c5d7df;}td.x-date-mp-month a,td.x-date-mp-year a{color:#15428b;}td.x-date-mp-month a:hover,td.x-date-mp-year a:hover{color:#15428b;background-color:#ddf1fe;}td.x-date-mp-sel a{background-color:#dff1fb;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/shared/glass-bg.gif\');border-color:#8db7e3;}'+
'.x-date-mp-ybtn a{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/tool-sprites.gif\');}td.x-date-mp-sep{border-right-color:#c5d7df;}.x-tip .x-tip-close{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/qtip/close.gif\');}.x-tip .x-tip-tc,.x-tip .x-tip-tl,.x-tip .x-tip-tr,.x-tip .x-tip-bc,.x-tip .x-tip-bl,.x-tip .x-tip-br,.x-tip .x-tip-ml,.x-tip .x-tip-mr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/qtip/tip-sprite.gif\');}.x-tip .x-tip-mc{font:normal 11px tahoma,arial,helvetica,sans-serif;}.x-tip .x-tip-ml{background-color:#fff;}.x-tip .x-tip-header-text{font:bold 11px tahoma,arial,helvetica,sans-serif;color:#444;}.x-tip .x-tip-body{font:normal 11px tahoma,arial,helvetica,sans-serif;color:#444;}.x-form-invalid-tip .x-tip-tc,.x-form-invalid-tip .x-tip-tl,.x-form-invalid-tip .x-tip-tr,.x-form-invalid-tip .x-tip-bc,.x-form-invalid-tip .x-tip-bl,.x-form-invalid-tip .x-tip-br,.x-form-invalid-tip .x-tip-ml,.x-form-invalid-tip .x-tip-mr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/form/error-tip-corners.gif\');}'+
'.x-form-invalid-tip .x-tip-body{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/form/exclamation.gif\');}.x-tip-anchor{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/qtip/tip-anchor-sprite.gif\');}.x-menu{background-color:#f0f5f0;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/menu/menu.gif\');}.x-menu-floating{border-color:#7190b7;}.x-menu-nosep{background-image:none;}.x-menu-list-item{font:normal 11px arial,tahoma,sans-serif;}.x-menu-item-arrow{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/menu/menu-parent.gif\');}.x-menu-sep{background-color:#e0e5e0;border-bottom-color:#fff;}a.x-menu-item{color:#111;}.x-menu-item-active{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/menu/item-over.gif\');background-color:#dbf1f4;border-color:#aad1f6;}.x-menu-item-active a.x-menu-item{border-color:#aad1f6;}.x-menu-check-item .x-menu-item-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/menu/unchecked.gif\');}'+
'.x-menu-item-checked .x-menu-item-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/menu/checked.gif\');}.x-menu-item-checked .x-menu-group-item .x-menu-item-icon{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/menu/group-checked.gif\');}.x-menu-group-item .x-menu-item-icon{background-image:none;}.x-menu-plain{background-color:#f0f0f0!important;background-image:none;}.x-date-menu,.x-color-menu{background-color:#fff!important;}.x-menu .x-date-picker{border-color:#a3bfd9;}.x-cycle-menu .x-menu-item-checked{border-color:#a3bfe9!important;background-color:#defdf6;}.x-menu-scroller-top{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-top.gif\');}.x-menu-scroller-bottom{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-bottom.gif\');}.x-box-tl{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/corners.gif\');}.x-box-tc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/tb.gif\');}'+
'.x-box-tr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/corners.gif\');}.x-box-ml{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/l.gif\');}.x-box-mc{background-color:#eef3ee;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/tb.gif\');font-family:Myriad Pro,Myriad Web,Tahoma,Helvetica,Arial,sans-serif;color:#393939;font-size:12px;}.x-box-mc h3{font-size:14px;font-weight:bold;}.x-box-mr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/r.gif\');}.x-box-bl{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/corners.gif\');}.x-box-bc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/tb.gif\');}.x-box-br{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/corners.gif\');}.x-box-blue .x-box-bl,.x-box-blue .x-box-br,.x-box-blue .x-box-tl,.x-box-blue .x-box-tr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/corners-blue.gif\');}'+
'.x-box-blue .x-box-bc,.x-box-blue .x-box-mc,.x-box-blue .x-box-tc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/tb-blue.gif\');}.x-box-blue .x-box-mc{background-color:#c3dff9;}.x-box-blue .x-box-mc h3{color:#17385b;}.x-box-blue .x-box-ml{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/l-blue.gif\');}.x-box-blue .x-box-mr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/box/r-blue.gif\');}*#x-debug-browser .x-tree .x-tree-node a span{color:#5d5dd2;font-size:11px;font-family:monotype,courier new,sans-serif;}*#x-debug-browser .x-tree a i{color:#00baba;font-style:normal;}*#x-debug-browser .x-tree a em{color:#666;}*#x-debug-browser .x-tree .x-tree-node .x-tree-selected a span{background-color:#c3daf9;}.x-combo-list{border-color:#98c5f4;background-color:#ddecfe;font:normal 12px tahoma,arial,helvetica,sans-serif;}.x-combo-list-inner{background-color:#fff;}.x-combo-list-hd{font:bold 11px tahoma,arial,helvetica,sans-serif;color:#507dc6;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/panel-title-light-bg.gif\');border-bottom-color:#98c5f4;}'+
'.x-resizable-pinned .x-combo-list-inner{border-bottom-color:#98c5f4;}.x-combo-list-item{border-color:#fff;}.x-combo-list .x-combo-selected{border-color:#a3bfe9!important;background-color:#dfe8f6;}.x-combo-list .x-toolbar{border-top-color:#98c5f4;}.x-combo-list-small{font:normal 11px tahoma,arial,helvetica,sans-serif;}.x-panel{border-color:#A9CACF;}.x-panel-header{color:#15428b;font-weight:bold;font-size:11px;font-family:tahoma,arial,verdana,sans-serif;border-color:#A9CACF;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/white-top-bottom.gif\');}.x-panel-body{border-color:#A9CACF;background-color:#fff;}.x-panel-bbar .x-toolbar,.x-panel-tbar .x-toolbar{border-color:#A9CACF;}.x-panel-tbar-noheader .x-toolbar,.x-panel-mc .x-panel-tbar .x-toolbar{border-top-color:#A9CACF;}.x-panel-body-noheader,.x-panel-mc .x-panel-body{border-top-color:#A9CACF;}.x-panel-tl .x-panel-header{color:#15428b;font:bold 11px tahoma,arial,verdana,sans-serif;}.x-panel-tc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/top-bottom.gif\');}'+
'.x-panel-tl,.x-panel-tr,.x-panel-bl,.x-panel-br{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/corners-sprite.gif\');border-bottom-color:#A9CACF;}.x-panel-bc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/top-bottom.gif\');}.x-panel-mc{font:normal 11px tahoma,arial,helvetica,sans-serif;background-color:#dfedf6;}.x-panel-ml{background-color:#fff;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/left-right.gif\');}.x-panel-mr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/left-right.gif\');}.x-tool{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/tool-sprites.gif\');}.x-panel-ghost{background-color:#cbe2f3;}.x-panel-ghost ul{border-color:#A9CACF;}.x-panel-dd-spacer{border-color:#A9CACF;}.x-panel-fbar td,.x-panel-fbar span,.x-panel-fbar input,.x-panel-fbar div,.x-panel-fbar select,.x-panel-fbar label{font:normal 11px arial,tahoma,helvetica,sans-serif;}'+
'.x-window-proxy{background-color:#c7e4fc;border-color:#A9CACF;}.x-window-tl .x-window-header{color:#15428b;font:bold 11px tahoma,arial,verdana,sans-serif;}.x-window-tc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/top-bottom.png\');}.x-window-tl{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/left-corners.png\');}.x-window-tr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/right-corners.png\');}.x-window-bc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/top-bottom.png\');}.x-window-bl{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/left-corners.png\');}.x-window-br{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/right-corners.png\');}.x-window-mc{border-color:#A9CACF;font:normal 11px tahoma,arial,helvetica,sans-serif;background-color:#dfedf6;}.x-window-ml{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/left-right.png\');}'+
'.x-window-mr{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/left-right.png\');}.x-window-maximized .x-window-tc{background-color:#fff;}.x-window-bbar .x-toolbar{border-top-color:#A9CACF;}.x-panel-ghost .x-window-tl{border-bottom-color:#A9CACF;}.x-panel-collapsed .x-window-tl{border-bottom-color:#84a5c4;}.x-dlg-mask{background-color:#ccd1cc;}.x-window-plain .x-window-mc{background-color:#ccdee8;border-top-color:#a3bfe9;border-right-color:#dfedf6;border-bottom-color:#dfedf6;border-left-color:#a3bfe9;}.x-window-plain .x-window-body{border-top-color:#dfedf6;border-right-color:#a3bfe9;border-bottom-color:#a3bfe9;border-left-color:#dfedf6;}body.x-body-masked .x-window-plain .x-window-mc{background-color:#ccdee8;}.x-html-editor-wrap{border-color:#a9c4d3;background-color:#fff;}.x-html-editor-tb .x-btn-text{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/editor/tb-sprite.gif\');}.x-panel-noborder .x-panel-header-noborder{border-bottom-color:#A9CACF;}.x-panel-noborder .x-panel-tbar-noborder .x-toolbar{border-bottom-color:#A9CACF;}'+
'.x-panel-noborder .x-panel-bbar-noborder .x-toolbar{border-top-color:#A9CACF;}.x-tab-panel-bbar-noborder .x-toolbar{border-top-color:#A9CACF;}.x-tab-panel-tbar-noborder .x-toolbar{border-bottom-color:#A9CACF;}.x-border-layout-ct{background-color:#dfedf6;}.x-accordion-hd{color:#111;font-weight:normal;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/light-hd.gif\');}.x-layout-collapsed{background-color:#d2e5f2;border-color:#98c5f4;}.x-layout-collapsed-over{background-color:#d9edfb;}.x-layout-split-west .x-layout-mini{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-left.gif\');}.x-layout-split-east .x-layout-mini{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-right.gif\');}.x-layout-split-north .x-layout-mini{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-top.gif\');}.x-layout-split-south .x-layout-mini{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-bottom.gif\');}'+
'.x-layout-cmini-west .x-layout-mini{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-right.gif\');}.x-layout-cmini-east .x-layout-mini{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-left.gif\');}.x-layout-cmini-north .x-layout-mini{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-bottom.gif\');}.x-layout-cmini-south .x-layout-mini{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/layout/mini-top.gif\');}.x-progress-wrap{border-color:#6598cf;}.x-progress-inner{background-color:#e0edf3;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/qtip/bg.gif\');}.x-progress-bar{background-color:#9cc4ee;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/progress/progress-bg.gif\');border-top-color:#d1e9fd;border-bottom-color:#7faee4;border-right-color:#7faee4;}.x-progress-text{font-size:11px;font-weight:bold;color:#000;}.x-progress-text-back{color:#396095;}'+
'.x-list-header{background-color:#f9fef9;background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/grid3-hrow.gif\');}.x-list-header-inner div em{border-left-color:#dde2dd;font:normal 11px arial,tahoma,helvetica,sans-serif;}.x-list-body dt em{font:normal 11px arial,tahoma,helvetica,sans-serif;}.x-list-over{background-color:#eef3ee;}.x-list-selected{background-color:#dfedf6;}.x-list-resizer{border-left-color:#555a55;border-right-color:#555a55;}.x-list-header-inner em.sort-asc,.x-list-header-inner em.sort-desc{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/sort-hd.gif\');border-color:#A9CACF;}.x-slider-horz,.x-slider-horz .x-slider-end,.x-slider-horz .x-slider-inner{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/slider/slider-bg.png\');}.x-slider-horz .x-slider-thumb{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/slider/slider-thumb.png\');}.x-slider-vert,.x-slider-vert .x-slider-end,.x-slider-vert .x-slider-inner{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/slider/slider-v-bg.png\');}'+
'.x-slider-vert .x-slider-thumb{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/slider/slider-v-thumb.png\');}.x-window-dlg .ext-mb-text,.x-window-dlg .x-window-header-text{font-size:12px;}.x-window-dlg .ext-mb-textarea{font:normal 12px tahoma,arial,helvetica,sans-serif;}.x-window-dlg .x-msg-box-wait{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/grid/loading.gif\');}.x-window-dlg .ext-mb-info{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/icon-info.gif\');}.x-window-dlg .ext-mb-warning{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/icon-warning.gif\');}.x-window-dlg .ext-mb-question{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/icon-question.gif\');}.x-window-dlg .ext-mb-error{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/window/icon-error.gif\');}'+
'.icon{width:16px;height:16px;background-repeat:no-repeat;}.icon-home{background-image:url(\'/freescan-front/lib/icons/fugue/home.png\')!important;background-repeat:no-repeat;}.icon-star{background-image:url(\'/freescan-front/lib/icons/fugue/star.png\')!important;background-repeat:no-repeat;}.icon-block{background-image:url(\'/freescan-front/lib/icons/fugue/block.png\')!important;background-repeat:no-repeat;}.icon-clock-frame{background-image:url(\'/freescan-front/lib/icons/fugue/clock-frame.png\')!important;background-repeat:no-repeat;}.icon-hammer-screwdriver{background-image:url(\'/freescan-front/lib/icons/fugue/hammer-screwdriver.png\')!important;background-repeat:no-repeat;}.icon-building-add{background-image:url(\'/freescan-front/lib/icons/fugue/overlay/building--plus.png\')!important;background-repeat:no-repeat;}.icon-building-arrow{background-image:url(\'/freescan-front/lib/icons/fugue/overlay/building--arrow.png\')!important;background-repeat:no-repeat;}.icon-notebook-arrow{background-image:url(\'/freescan-front/lib/icons/fugue/overlay/notebook--arrow.png\')!important;background-repeat:no-repeat;}'+
'.icon-drive-globe{background-image:url(\'/freescan-front/lib/icons/fugue/drive-globe.png\')!important;background-repeat:no-repeat;}.icon-ticket{background-image:url(\'/freescan-front/lib/icons/fugue/ticket.png\')!important;background-repeat:no-repeat;}.icon-ticket-add{background-image:url(\'/freescan-front/lib/icons/fugue/overlay/ticket--plus.png\')!important;background-repeat:no-repeat;}.icon-bug{background-image:url(\'/freescan-front/lib/icons/famfamfam/bug.png\')!important;background-repeat:no-repeat;}.icon-bug-add{background-image:url(\'/freescan-front/lib/icons/famfamfam/bug_add.png\')!important;background-repeat:no-repeat;}.icon-magnifier{background-image:url(\'/freescan-front/lib/icons/fugue/magnifier.png\')!important;background-repeat:no-repeat;}.icon-control-panel{background-image:url(\'/freescan-front/lib/icons/custom/control-panel.png\')!important;background-repeat:no-repeat;}.icon-tree{background-image:url(\'/freescan-front/lib/icons/custom/tree.png\')!important;background-repeat:no-repeat;}.icon-table{background-image:url(\'/freescan-front/lib/icons/famfamfam/table.png\')!important;background-repeat:no-repeat;}'+
'.icon-shield-green-check{background-image:url(\'/freescan-front/lib/icons/fugue/tick-shield.png\')!important;background-repeat:no-repeat;}.icon-add{background-image:url(\'/freescan-front/lib/icons/famfamfam/add.png\')!important;background-repeat:no-repeat;}.loading-blue-arrows{background-image:url(\'/freescan-front/shared/assets/img/loading/arrows-blue.gif\')!important;background-repeat:no-repeat;}.icon-activity-circle-small{background-image:url(\'/freescan-front/shared/assets/img/loading/ajax_activity_indicator_circle_small.gif\')!important;width:10px!important;height:10px!important;margin-top:3px;background-repeat:no-repeat;}.icon-bullet-black{background-image:url(\'/freescan-front/lib/icons/famfamfam/bullet_black.png\')!important;background-repeat:no-repeat;}.icon-tick-fugue{background-image:url(\'/freescan-front/shared/assets/img/icons/tick.png\')!important;background-repeat:no-repeat;}.icon-cross-fugue{background-image:url(\'/freescan-front/shared/assets/img/icons/cross.png\')!important;background-repeat:no-repeat;}.icon-cancelled-fugue{background-image:url(\'/freescan-front/lib/icons/fugue/cancelled.png\')!important;background-repeat:no-repeat;}'+
'.icon-page-green{background-image:url(\'/freescan-front/lib/icons/famfamfam/page_green.png\')!important;background-repeat:no-repeat;}.icon-puzzle{background-image:url(\'/freescan-front/lib/icons/fugue/puzzle.png\')!important;background-repeat:no-repeat;}.icon-page-add{background-image:url(\'/freescan-front/lib/icons/famfamfam/page_add.png\')!important;background-repeat:no-repeat;}.icon-gear,.icon-configure{background-image:url(\'/freescan-front/lib/icons/fugue/gear.png\')!important;background-repeat:no-repeat;}.icon-page-edit{background-image:url(\'/freescan-front/lib/icons/famfamfam/page_edit.png\')!important;background-repeat:no-repeat;}.icon-delete{background-image:url(\'/freescan-front/lib/icons/famfamfam/delete.png\')!important;background-repeat:no-repeat;}.icon-arrow-repeat{background-image:url(\'/freescan-front/lib/icons/fugue/arrow-repeat.png\')!important;background-repeat:no-repeat;}.icon-arrow-reset{background-image:url(\'/freescan-front/lib/icons/fugue/arrow-stop-180.png\')!important;background-repeat:no-repeat;}.icon-warning{background-image:url(\'/freescan-front/lib/icons/famfamfam/error.png\')!important;background-repeat:no-repeat;}'+
'.q-animating,.q-animating *{overflow:hidden!important;}'+
'.ui-helper-text-wrap{white-space:normal;}.ui-helper-stripe{background-color:#EEE;}.ui-helper-text-bold{font-weight:bold!important;}.ui-helper-text-align-right{text-align:right;}.ui-helper-text-align-left{text-align:left;}.ui-helper-float-right{float:right;}.ui-helper-float-left{float:left;}.subtle-text{font-size:11px;color:#999;}.x-panel .x-panel-header .two-column{padding:0 5px;}.x-panel .x-panel-header .two-column.col-one{width:47%;float:left;}.x-panel .x-panel-header .two-column.col-two{width:47%;float:left;text-align:right;}.page-title{font-size:23px;color:#184B72;font-weight:normal;padding:5px 0 0 5px;}.clickable{cursor:pointer;}'+
'.x-menu-list .x-menu{background:none transparent!important;}.x-menu-list .x-menu-list{padding:0;}.x-menu-list .contains-menu{padding:0;}.x-menu-list-item .x-menu-list-item,.x-menu-list-item .x-menu-item-active{padding:0!important;}'+
'.link .x-btn-tl,.link .x-btn-tr,.link .x-btn-tc,.link .x-btn-ml,.link .x-btn-mr,.link .x-btn-mc,.link .x-btn-bl,.link .x-btn-br,.link .x-btn-bc{background-image:none;}.link.x-btn button{color:#114A8D;font:bold 11px arial,tahoma,helvetica,sans-serif;}.link.x-btn x-btn-ml{padding-left:0;}.link .x-btn-tl,.link .x-btn-tr,.link .x-btn-ml,.link .x-btn-mr,.link .x-btn-bl,.link .x-btn-br,.link .x-btn-tl i,.link .x-btn-tr i,.link .x-btn-ml i,.link .x-btn-mr i,.link .x-btn-bl i,.link .x-btn-br i{width:0;}.link.x-btn-over button{font:bold 11px arial,tahoma,helvetica,sans-serif;text-shadow:none;text-decoration:underline;color:#144A8D;display:block;}.link.x-item-disabled button{color:#777;}'+
'.round-tip .x-tip{border-color:#ccc;}.round-tip .x-tip-header{color:#333;font:normal 1px sans-serif;border-color:#ccc;background:transparent;}.round-tip .x-tip-mc .x-tip-header{background-image:url(\'/freescan-front/shared/assets/css/xtheme-q-hue/images/panel/white-top-bottom.gif\');border-color:#A9CACF;color:#15428B;font-family:tahoma,arial,verdana,sans-serif;font-size:11px;font-weight:bold;}.round-tip .x-tip-body{border-color:#ccc;}.round-tip .x-tip-bbar .x-toolbar,.round-tip .x-tip-tbar .x-toolbar{border-color:#ccc;}.round-tip .x-tip-tbar-noheader .x-toolbar,.round-tip .x-tip-mc .x-tip-tbar .x-toolbar{border-top-color:#ccc;}.round-tip .x-tip-body-noheader,.round-tip .x-tip-mc .x-tip-body{border-top-color:#ccc;}.round-tip .x-tip-tl .x-tip-header{color:#333;font:normal 1px sans-serif;}.round-tip .x-tip-tc{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/top-bottom.png\');padding:0;height:4px;}.round-tip .x-tip-tl,.round-tip .x-tip-tr,.round-tip .x-tip-bl,.round-tip .x-tip-br{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/corners-sprite.png\');border-bottom:0 none;}'+
'.round-tip .x-tip-tl,.round-tip .x-tip-ml,.round-tip .x-tip-bl{padding-left:4px;}.round-tip .x-tip-tr,.round-tip .x-tip-mr,.round-tip .x-tip-br{padding-right:4px;}.round-tip .x-tip-bc,.round-tip .x-tip-nofooter .x-tip-bc{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/top-bottom.png\');height:4px;}.round-tip .x-tip-mc{color:#333;font:normal 11px tahoma,helvetica,arial,sans-serif;background-color:#fff;padding:0;}.round-tip .x-tip-ml{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/left-right.png\');}.round-tip .x-tip-mr{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/left-right.png\');}.round-tip .x-tool{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/tool-sprites.gif\');}.round-tip-yellow.x-tip{border-color:#ccc;}.round-tip-yellow .x-tip-header{color:#333;font:normal 1px sans-serif;border-color:#ccc;background:transparent;}.round-tip-yellow .x-tip-body{border-color:#ccc;}.round-tip-yellow .x-tip-bbar .x-toolbar,.round-tip-yellow .x-tip-tbar .x-toolbar{border-color:#ccc;}'+
'.round-tip-yellow .x-tip-tbar-noheader .x-toolbar,.round-tip-yellow .x-tip-mc .x-tip-tbar .x-toolbar{border-top-color:#ccc;}.round-tip-yellow .x-tip-body-noheader,.round-tip-yellow .x-tip-mc .x-tip-body{border-top-color:#ccc;}.round-tip-yellow .x-tip-tl .x-tip-header{color:#333;font:normal 1px sans-serif;}.round-tip-yellow .x-tip-tc{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel-yellow/top-bottom.png\');padding:0;height:4px;}.round-tip-yellow .x-tip-tl,.round-tip-yellow .x-tip-tr,.round-tip-yellow .x-tip-bl,.round-tip-yellow .x-tip-br{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel-yellow/corners-sprite.png\');border-bottom:0 none;}.round-tip-yellow .x-tip-tl,.round-tip-yellow .x-tip-ml,.round-tip-yellow .x-tip-bl{padding-left:4px;}.round-tip-yellow .x-tip-tr,.round-tip-yellow .x-tip-mr,.round-tip-yellow .x-tip-br{padding-right:4px;}.round-tip-yellow .x-tip-bc,.round-tip-yellow .x-tip-nofooter .x-tip-bc{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel-yellow/top-bottom.png\');height:4px;}'+
'.round-tip-yellow .x-tip-mc{color:#333;font:normal 11px tahoma,helvetica,arial,sans-serif;background-color:#fff;padding:0;}.round-tip-yellow .x-tip-ml{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel-yellow/left-right.png\');}.round-tip-yellow .x-tip-mr{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel-yellow/left-right.png\');}.round-tip-yellow .x-tool{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel-yellow/tool-sprites.gif\');}.round-tip-nav .x-tip{border-color:#ccc;}.round-tip-nav .x-tip-header{color:#333;font:normal 1px sans-serif;border-color:#ccc;background:transparent;}.round-tip-nav .x-tip-body{border-color:#ccc;}.round-tip-nav .x-tip-bbar .x-toolbar,.round-tip-nav .x-tip-tbar .x-toolbar{border-color:#ccc;}.round-tip-nav .x-tip-tbar-noheader .x-toolbar,.round-tip-nav .x-tip-mc .x-tip-tbar .x-toolbar{border-top-color:#ccc;}.round-tip-nav .x-tip-body-noheader,.round-tip-nav .x-tip-mc .x-tip-body{border-top-color:#ccc;}.round-tip-nav .x-tip-tl .x-tip-header{color:#333;font:normal 1px sans-serif;}'+
'.round-tip-nav .x-tip-tc{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/top-bottom-nav.png\');padding:0;height:4px;}.round-tip-nav .x-tip-tl,.round-tip-nav .x-tip-tr,.round-tip-nav .x-tip-bl,.round-tip-nav .x-tip-br{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/corners-sprite-nav.png\');border-bottom:0 none;}.round-tip-nav .x-tip-tl,.round-tip-nav .x-tip-ml,.round-tip-nav .x-tip-bl{padding-left:4px;}.round-tip-nav .x-tip-tr,.round-tip-nav .x-tip-mr,.round-tip-nav .x-tip-br{padding-right:4px;}.round-tip-nav .x-tip-bc,.round-tip-nav .x-tip-nofooter .x-tip-bc{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/top-bottom-nav.png\');height:4px;}.round-tip-nav .x-tip-mc{color:#333;font:normal 11px tahoma,helvetica,arial,sans-serif;background-color:#fff;padding:0;}.round-tip-nav .x-tip-ml{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/left-right-nav.png\');}.round-tip-nav .x-tip-mr{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/left-right-nav.png\');}'+
'.round-tip-nav .x-tool{background-image:url(\'/freescan-front/shared/panel/assets/img/thinroundpanel/tool-sprites.gif\');}'+
'.btn-user-dropdown button{color:#5e5e5e;font:bold 13px helvetica,arial,sans-serif;}.btn-user-dropdown.x-btn-over .x-btn-text{color:#333;}.btn-user-dropdown.x-btn-click .x-btn-text{color:#333;}.btn-user-dropdown .x-btn-tl,.btn-user-dropdown .x-btn-tr,.btn-user-dropdown .x-btn-tc,.btn-user-dropdown .x-btn-ml,.btn-user-dropdown .x-btn-mr,.btn-user-dropdown .x-btn-mc,.btn-user-dropdown .x-btn-bl,.btn-user-dropdown .x-btn-br,.btn-user-dropdown .x-btn-bc{background-image:none;}.btn-user-dropdown.x-btn-click .x-btn-tl,.btn-user-dropdown.x-btn-menu-active .x-btn-tl,.btn-user-dropdown.x-btn-pressed .x-btn-tl,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-tl,.btn-user-dropdown.x-btn-click .x-btn-tr,.btn-user-dropdown.x-btn-menu-active .x-btn-tr,.btn-user-dropdown.x-btn-pressed .x-btn-tr,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-tr,.btn-user-dropdown.x-btn-click .x-btn-tc,.btn-user-dropdown.x-btn-menu-active .x-btn-tc,.btn-user-dropdown.x-btn-pressed .x-btn-tc,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-tc,.btn-user-dropdown.x-btn-click .x-btn-ml,.btn-user-dropdown.x-btn-menu-active .x-btn-ml,.btn-user-dropdown.x-btn-pressed .x-btn-ml,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-ml,.btn-user-dropdown.x-btn-click .x-btn-mr,.btn-user-dropdown.x-btn-menu-active .x-btn-mr,.btn-user-dropdown.x-btn-pressed .x-btn-mr,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-mr,.btn-user-dropdown.x-btn-click .x-btn-mc,.btn-user-dropdown.x-btn-menu-active .x-btn-mc,.btn-user-dropdown.x-btn-pressed .x-btn-mc,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-mc,.btn-user-dropdown.x-btn-click .x-btn-bl,.btn-user-dropdown.x-btn-menu-active .x-btn-bl,.btn-user-dropdown.x-btn-pressed .x-btn-bl,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-bl,.btn-user-dropdown.x-btn-click .x-btn-br,.btn-user-dropdown.x-btn-menu-active .x-btn-br,.btn-user-dropdown.x-btn-pressed .x-btn-br,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-br,.btn-user-dropdown.x-btn-click .x-btn-bc,.btn-user-dropdown.x-btn-menu-active .x-btn-bc,.btn-user-dropdown.x-btn-pressed .x-btn-bc,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-bc{background-image:url(\'/freescan-front/shared/user-dropdown/assets/css/images/btn-user-dropdown.png\');}'+
'.btn-user-dropdown .x-btn-tl,.btn-user-dropdown .x-btn-ml,.btn-user-dropdown .x-btn-bl,.btn-user-dropdown .x-btn-tr,.btn-user-dropdown .x-btn-mr,.btn-user-dropdown .x-btn-br,.btn-user-dropdown .x-btn-tr i,.btn-user-dropdown .x-btn-tl i,.btn-user-dropdown .x-btn-mr i,.btn-user-dropdown .x-btn-ml i,.btn-user-dropdown .x-btn-br i,.btn-user-dropdown .x-btn-bl i{width:6px;}.btn-user-dropdown .x-btn-tl,.btn-user-dropdown .x-btn-tr,.btn-user-dropdown .x-btn-tl i,.btn-user-dropdown .x-btn-tr i{height:6px;}.btn-user-dropdown.x-btn-click .x-btn-mc,.btn-user-dropdown.x-btn-menu-active .x-btn-mc,.btn-user-dropdown.x-btn-pressed .x-btn-mc,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-mc{background:#fff;}.btn-user-dropdown.x-btn-click .x-btn-tl,.btn-user-dropdown.x-btn-menu-active .x-btn-tl,.btn-user-dropdown.x-btn-pressed .x-btn-tl,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-tl{background-position:0 0;}.btn-user-dropdown.x-btn-click .x-btn-tr,.btn-user-dropdown.x-btn-menu-active .x-btn-tr,.btn-user-dropdown.x-btn-pressed .x-btn-tr,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-tr{background-position:right 0;}'+
'.btn-user-dropdown.x-btn-click .x-btn-ml,.btn-user-dropdown.x-btn-menu-active .x-btn-ml,.btn-user-dropdown.x-btn-pressed .x-btn-ml,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-ml,.btn-user-dropdown.x-btn-click .x-btn-bl,.btn-user-dropdown.x-btn-menu-active .x-btn-bl,.btn-user-dropdown.x-btn-pressed .x-btn-bl,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-bl{background-position:left -24px;}.btn-user-dropdown.x-btn-click .x-btn-mr,.btn-user-dropdown.x-btn-menu-active .x-btn-mr,.btn-user-dropdown.x-btn-pressed .x-btn-mr,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-mr,.btn-user-dropdown.x-btn-click .x-btn-br,.btn-user-dropdown.x-btn-menu-active .x-btn-br,.btn-user-dropdown.x-btn-pressed .x-btn-br,.x-toolbar .btn-user-dropdown.x-btn-click .x-btn-br{background-position:right -24px;}'+
'.btn-print-dropdown button{color:#5e5e5e;font:bold 13px helvetica,arial,sans-serif;}.btn-print-dropdown.x-btn-over .x-btn-text{color:#333;}.btn-print-dropdown.x-btn-click .x-btn-text{color:#333;}.btn-print-dropdown .x-btn-tl,.btn-print-dropdown .x-btn-tr,.btn-print-dropdown .x-btn-tc,.btn-print-dropdown .x-btn-ml,.btn-print-dropdown .x-btn-mr,.btn-print-dropdown .x-btn-mc,.btn-print-dropdown .x-btn-bl,.btn-print-dropdown .x-btn-br,.btn-print-dropdown .x-btn-bc{background-image:none;}.btn-print-dropdown.x-btn-click .x-btn-tl,.btn-print-dropdown.x-btn-menu-active .x-btn-tl,.btn-print-dropdown.x-btn-pressed .x-btn-tl,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-tl,.btn-print-dropdown.x-btn-click .x-btn-tr,.btn-print-dropdown.x-btn-menu-active .x-btn-tr,.btn-print-dropdown.x-btn-pressed .x-btn-tr,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-tr,.btn-print-dropdown.x-btn-click .x-btn-tc,.btn-print-dropdown.x-btn-menu-active .x-btn-tc,.btn-print-dropdown.x-btn-pressed .x-btn-tc,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-tc,.btn-print-dropdown.x-btn-click .x-btn-ml,.btn-print-dropdown.x-btn-menu-active .x-btn-ml,.btn-print-dropdown.x-btn-pressed .x-btn-ml,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-ml,.btn-print-dropdown.x-btn-click .x-btn-mr,.btn-print-dropdown.x-btn-menu-active .x-btn-mr,.btn-print-dropdown.x-btn-pressed .x-btn-mr,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-mr,.btn-print-dropdown.x-btn-click .x-btn-mc,.btn-print-dropdown.x-btn-menu-active .x-btn-mc,.btn-print-dropdown.x-btn-pressed .x-btn-mc,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-mc,.btn-print-dropdown.x-btn-click .x-btn-bl,.btn-print-dropdown.x-btn-menu-active .x-btn-bl,.btn-print-dropdown.x-btn-pressed .x-btn-bl,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-bl,.btn-print-dropdown.x-btn-click .x-btn-br,.btn-print-dropdown.x-btn-menu-active .x-btn-br,.btn-print-dropdown.x-btn-pressed .x-btn-br,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-br,.btn-print-dropdown.x-btn-click .x-btn-bc,.btn-print-dropdown.x-btn-menu-active .x-btn-bc,.btn-print-dropdown.x-btn-pressed .x-btn-bc,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-bc{background-image:url(\'/freescan-front/shared/user-dropdown/assets/img/btn-user-dropdown.png\');}'+
'.btn-print-dropdown .x-btn-tl,.btn-print-dropdown .x-btn-ml,.btn-print-dropdown .x-btn-bl,.btn-print-dropdown .x-btn-tr,.btn-print-dropdown .x-btn-mr,.btn-print-dropdown .x-btn-br,.btn-print-dropdown .x-btn-tr i,.btn-print-dropdown .x-btn-tl i,.btn-print-dropdown .x-btn-mr i,.btn-print-dropdown .x-btn-ml i,.btn-print-dropdown .x-btn-br i,.btn-print-dropdown .x-btn-bl i{width:6px;}.btn-print-dropdown .x-btn-tl,.btn-print-dropdown .x-btn-tr,.btn-print-dropdown .x-btn-tl i,.btn-print-dropdown .x-btn-tr i{height:6px;}.btn-print-dropdown.x-btn-click .x-btn-mc,.btn-print-dropdown.x-btn-menu-active .x-btn-mc,.btn-print-dropdown.x-btn-pressed .x-btn-mc,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-mc{background:#fff;}.btn-print-dropdown.x-btn-click .x-btn-tl,.btn-print-dropdown.x-btn-menu-active .x-btn-tl,.btn-print-dropdown.x-btn-pressed .x-btn-tl,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-tl{background-position:0 0;}.btn-print-dropdown.x-btn-click .x-btn-tr,.btn-print-dropdown.x-btn-menu-active .x-btn-tr,.btn-print-dropdown.x-btn-pressed .x-btn-tr,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-tr{background-position:right 0;}'+
'.btn-print-dropdown.x-btn-click .x-btn-ml,.btn-print-dropdown.x-btn-menu-active .x-btn-ml,.btn-print-dropdown.x-btn-pressed .x-btn-ml,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-ml,.btn-print-dropdown.x-btn-click .x-btn-bl,.btn-print-dropdown.x-btn-menu-active .x-btn-bl,.btn-print-dropdown.x-btn-pressed .x-btn-bl,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-bl{background-position:left -24px;}.btn-print-dropdown.x-btn-click .x-btn-mr,.btn-print-dropdown.x-btn-menu-active .x-btn-mr,.btn-print-dropdown.x-btn-pressed .x-btn-mr,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-mr,.btn-print-dropdown.x-btn-click .x-btn-br,.btn-print-dropdown.x-btn-menu-active .x-btn-br,.btn-print-dropdown.x-btn-pressed .x-btn-br,.x-toolbar .btn-print-dropdown.x-btn-click .x-btn-br{background-position:right -24px;}'+
'.ext-ie7 .x-form-text{margin:0;}.ext-gecko .round-textfield .x-form-text,.ext-ie8 .round-textfield .x-form-text{padding:4px 3px 2px 3px;}.round-textfield-l{padding-left:4px;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/round-textfield-sprite.png\') no-repeat scroll left 0;}.round-textfield-r{padding-right:4px;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/round-textfield-sprite.png\') no-repeat scroll right -100px;}.round-textfield input{background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/round-textfield-sprite.png\') repeat-x scroll center -49px;border:0 none;line-height:14px;padding:4px 3px 2px 3px;}.round-textfield-l.x-form-focus{padding-left:4px;border:0 none;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/round-textfield-sprite.png\') no-repeat scroll left -150px;}.round-textfield-r.x-form-focus{padding-right:4px;border:0 none;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/round-textfield-sprite.png\') no-repeat scroll right -250px;}'+
'.round-textfield input.x-form-focus{background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/round-textfield-sprite.png\') repeat-x scroll center -202px;border:0 none;line-height:14px;}.round-textfield-l.x-form-invalid{padding-left:4px;border:0 none;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/round-textfield-sprite.png\') no-repeat scroll left -301px;}.round-textfield-r.x-form-invalid{padding-right:4px;border:0 none;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/round-textfield-sprite.png\') no-repeat scroll right -401px;}.round-textfield input.x-form-invalid{background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/round-textfield-sprite.png\') repeat-x scroll center -353px;border:0 none;line-height:14px;}.ext-ie7 .round-textfield-l{background-position:left 2px;}.ext-ie7 .round-textfield-r{background-position:right -98px;}.ext-ie7 .round-textfield-l.x-form-focus{background-position:left -148px;}'+
'.ext-ie7 .round-textfield-r.x-form-focus{background-position:right -248px;}.ext-ie7 .round-textfield-l.x-form-invalid{background-position:left -299px;}.ext-ie7 .round-textfield-r.x-form-invalid{background-position:right -399px;}.ext-ie .x-form-text{margin-top:0;margin-bottom:0;}'+
'.ext-ie .big-round-textfield input{padding-top:5px;}.ext-ie7 .big-round-textfield input.x-form-text,.ext-ie8 .big-round-textfield input.x-form-text{padding-top:10px;}.big-round-textfield input.x-form-text{height:36px!important;color:#2A2929;font:normal 14px helvetica,arial,sans-serif;padding:1px 7px 0 7px;}.ext-ie7 .x-form-text{margin:1px 0;}.big-round-textfield-l{padding-left:5px;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/big-round-textfield-sprite.png\') no-repeat scroll left 0;}.big-round-textfield-r{padding-right:5px;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/big-round-textfield-sprite.png\') no-repeat scroll right -50px;}.big-round-textfield input{background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/big-round-textfield-sprite.png\') repeat-x scroll center -100px;border:0 none;line-height:14px;}.big-round-textfield-l.x-form-focus{padding-left:5px;border:0 none;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/big-round-textfield-sprite.png\') no-repeat scroll left -150px;}'+
'.big-round-textfield-r.x-form-focus{padding-right:5px;border:0 none;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/big-round-textfield-sprite.png\') no-repeat scroll right -206px;}.big-round-textfield input.x-form-focus{background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/big-round-textfield-sprite.png\') repeat-x scroll center -250px;border:0 none;line-height:14px;}.big-round-textfield-l.x-form-invalid{padding-left:5px;border:0 none;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/big-round-textfield-sprite.png\') no-repeat scroll left -305px;}.big-round-textfield-r.x-form-invalid{padding-right:5px;border:0 none;background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/big-round-textfield-sprite.png\') no-repeat scroll right -350px;}.big-round-textfield input.x-form-invalid{background:transparent url(\'/freescan-front/shared/form/assets/img/round-textfield/big-round-textfield-sprite.png\') repeat-x scroll center -400px;border:0 none;line-height:14px;}'+
'.ext-ie7 .big-round-textfield input{padding-top:10px;}.ext-ie7 .big-round-textfield-l{background-position:left 2px;}.ext-ie7 .big-round-textfield-r{background-position:right -48px;}.ext-ie7 .big-round-textfield-l.x-form-focus{background-position:left -148px;}.ext-ie7 .big-round-textfield-r.x-form-focus{background-position:right -204px;}.ext-ie7 .big-round-textfield-l.x-form-invalid{background-position:left -303px;}.ext-ie7 .big-round-textfield-r.x-form-invalid{background-position:right -348px;}'+
'.x-window-dlg .x-window-mc{background-color:#D3E5FA!important;}.ext-el-mask{background-color:#fff;opacity:.6;-moz-opacity:.6;filter:alpha(opacity=60);}.x-window-dlg .x-tool-close{background:none;}.x-window-dlg .x-tool-close-over{background:none;}.x-window-dlg .x-window-tl,.x-window-dlg .x-window-ml,.x-window-dlg .x-window-bl{padding-left:22px;}.x-window-dlg .x-window-tr,.x-window-dlg .x-window-mr,.x-window-dlg .x-window-br{padding-right:22px;}.x-window-dlg .x-panel-btns td.x-toolbar-cell{padding:3px 15px 3px 0;}.x-window-dlg .x-window-tl .x-window-header,.x-window-dlg .x-window-tl .x-window-header{color:#333;font:bold 12px helvetica,arial,verdana,sans-serif;}.x-window-dlg .x-window-header-text{padding-left:2px;padding-top:15px;display:block;}.x-window-dlg .x-window-mc{background:#fff;border:0 none;}.x-window-dlg .x-window-body{padding:0 30px;}.x-window-dlg .x-window-tl{background-image:url(\'/freescan-front/shared/window/assets/img/left-corners.png\');}.x-window-dlg .x-window-tr{background-image:url(\'/freescan-front/shared/window/assets/img/right-corners.png\');}'+
'.x-window-dlg .x-window-tc{background-image:url(\'/freescan-front/shared/window/assets/img/top-bottom.png\');}.x-window-dlg .x-window-ml{background-image:url(\'/freescan-front/shared/window/assets/img/left-right.png\');}.x-window-dlg .x-window-mr{background-image:url(\'/freescan-front/shared/window/assets/img/left-right.png\');}.x-window-dlg .x-window-bl{background-image:url(\'/freescan-front/shared/window/assets/img/left-corners.png\');}.x-window-dlg .x-window-br{background-image:url(\'/freescan-front/shared/window/assets/img/right-corners.png\');}.x-window-dlg .x-window-bc,.x-window-dlg .x-panel-nofooter .x-window-bc{background-image:url(\'/freescan-front/shared/window/assets/img/top-bottom.png\');}.x-window-dlg .ext-mb-icon{width:0;}.x-window-bc .x-window-footer{padding:0 0 15px 0;}.x-window-dlg .x-dlg-icon .ext-mb-content{margin-left:3px;}.x-window-dlg .x-window-body{padding:0;}'+
'.freescan-logo{background:url(\'/freescan-front/frame/assets/img/freescan-header-logo.png\') no-repeat;width:42px;}.blue-container .hyperlink{color:#b5d1f3;}.panel-title{font:bold 11px helvetica,arial,sans-serif;border:1px solid;}.panel-header{font:bold 20px helvetica,arial,sans-serif;margin:5px 0 10px 0;}.hyperlink{cursor:pointer;font:normal 11px helvetica,arial,sans-serif;}.hyperlink:hover{color:#F5D22D;}.x-form-invalid-icon{background:url(\'/freescan-front/shared/form/assets/img/form-validation-error-icon.png\') no-repeat scroll 8px 6px transparent;width:36px;height:36px;top:-1px!important;}.x-form-invalid-tip{display:none!important;}#login-frame label{font:bold 12px helvetica,arial,sans-serif;}.login-panel .hyperlink{padding-top:1px;padding-bottom:6px;}.bullet-point-icon{background:url(\'/freescan-front/frame/assets/img/bullet-point-icon.png\') no-repeat scroll 0 0 transparent;}.login-form-panel,.login-form-panel .x-form-item,.login-form-panel{color:#FFF;}.login-form-panel{border:0 none;padding-left:10px;}.login-form-panel .x-btn.link button{font-weight:normal;}'+
'.login-panel{color:#3A3A3A;}.login-panel .content-panel{padding:5px 10px;}.forgot-password-link{z-index:1000000px;}.login-panel .show-reset-password{padding-top:10px;}');
Resource._css('.login-panel .signup{font:normal 15px helvetica,arial,sans-serif;}.login-form-panel .signup{font:normal 12px helvetica,arial,sans-serif;}.login-panel .title{font:bold 20px helvetica,arial,sans-serif;padding-bottom:5px;}.login-panel .new-account{font:bold 20px helvetica,arial,sans-serif;margin-top:23px;padding:18px 0 6px 0;background:url(\'/freescan-front/frame/assets/img/dotted-image.png\') repeat-x;}.login-panel .sub-title{padding-bottom:10px;font:bold 15px helvetica,arial,sans-serif;color:#505050;}.login-panel .description{font:normal 15px helvetica,arial,sans-serif;padding-bottom:10px;line-height:20px;color:#505050;}.login-panel .scan-type{font:bold 12px helvetica,arial,sans-serif;padding:14px 0 14px 60px;}.login-panel .vm{background:url(\'/freescan-front/frame/assets/img/campaign-loginpage-sprite.png\') no-repeat 0 7px;}.login-panel .owasp{background:url(\'/freescan-front/frame/assets/img/campaign-loginpage-sprite.png\') no-repeat 0 -393px;}'+
'.login-panel .patch{background:url(\'/freescan-front/frame/assets/img/campaign-loginpage-sprite.png\') no-repeat 0 -197px;}.login-panel .scap{background:url(\'/freescan-front/frame/assets/img/campaign-loginpage-sprite.png\') no-repeat 0 -593px;}.reset-password-panel a,.reset-password-panel .link button{color:#b5d1f3;font-weight:normal;}.reset-password-panel .q-gradient-body{padding-left:15px;}.reset-password-panel,.reset-password-panel .x-form-item{color:#FFF;}.reset-password-panel .title{height:30px;padding-top:10px;font:bold 18px helvetica,arial,sans-serif;}.forgot-link{padding-left:145px;width:200px;}.ext-ie6 .forgot-link{padding-left:130px;width:200px;}.ext-ie6 .forgot-link .hyperlink{text-align:right;width:180px;}.reset-password-panel .description{height:20px;font:normal 12px helvetica,arial,sans-serif;}.check{background:url(\'/freescan-front/freescan/assets/img/check-icon.png\') no-repeat scroll 15px 0 transparent;}.no-toolbar-border-panel .x-toolbar{border-style:none;}.no-window-title .x-window-header-text{display:none;}'+
'#new-account-link{padding:10px 0 0 6px;}#new-account-link a{color:#b5d1f3;font-weight:normal;}.maintenance-panel{margin-top:20px;padding:30px;background:url(\'/freescan-front/frame/assets/img/maintenance-bg.png\');font:13px helvetica,arial,sans-serif;color:#505050;}.maintenance-panel .maintenance-header{padding-left:65px;background:url(\'/freescan-front/frame/assets/img/maintenance-logo.png\') no-repeat scroll 0 0 transparent;}.maintenance-panel .maintenance-description{margin-top:10px;}.maintenance-panel .maintenance-header .header{font:24px helvetica,arial,sans-serif;font-weight:100;}'+
'.q-button-flat-blue-dark.x-btn button{color:#fafafa;font:bold 13px helvetica,arial,sans-serif;padding:0 5px;}.q-button-flat-blue-dark.x-btn-over .x-btn-text{color:#fff;}.q-button-flat-blue-dark.x-btn-click .x-btn-text{color:#fafafa;}.q-button-flat-blue-dark .x-btn-tl,.q-button-flat-blue-dark .x-btn-tr,.q-button-flat-blue-dark .x-btn-tc,.q-button-flat-blue-dark .x-btn-ml,.q-button-flat-blue-dark .x-btn-mr,.q-button-flat-blue-dark .x-btn-mc,.q-button-flat-blue-dark .x-btn-bl,.q-button-flat-blue-dark .x-btn-br,.q-button-flat-blue-dark .x-btn-bc{background-image:url(\'/freescan-front/shared/button/assets/img/q-button-flat-blue-dark.png\');}.q-button-flat-blue-dark .x-btn-tl,.q-button-flat-blue-dark .x-btn-ml,.q-button-flat-blue-dark .x-btn-bl,.q-button-flat-blue-dark .x-btn-tr,.q-button-flat-blue-dark .x-btn-mr,.q-button-flat-blue-dark .x-btn-br{width:4px;}.q-button-flat-blue-dark .x-btn-tr i,.q-button-flat-blue-dark .x-btn-tl i,.q-button-flat-blue-dark .x-btn-br i,.q-button-flat-blue-dark .x-btn-bl i{height:4px;}.q-button-flat-blue-dark .x-btn-tr i,.q-button-flat-blue-dark .x-btn-tl i,.q-button-flat-blue-dark .x-btn-mr i,.q-button-flat-blue-dark .x-btn-ml i,.q-button-flat-blue-dark .x-btn-br i,.q-button-flat-blue-dark .x-btn-bl i{width:4px;}'+
'.q-button-flat-blue-dark .x-btn-tl{background-position:0 0;}.q-button-flat-blue-dark .x-btn-ml{background-position:0 -32px;}.q-button-flat-blue-dark .x-btn-bl{background-position:0 -4px;}.q-button-flat-blue-dark .x-btn-tc{background-position:0 -8px;}.q-button-flat-blue-dark .x-btn-mc{background-position:0 -1104px;}.q-button-flat-blue-dark .x-btn-bc{background-position:0 -20px;}.q-button-flat-blue-dark .x-btn-tr{background-position:-4px 0;}.q-button-flat-blue-dark .x-btn-mr{background-position:-4px -32px;}.q-button-flat-blue-dark .x-btn-br{background-position:-4px -4px;}.q-button-flat-blue-dark.x-btn-over .x-btn-tl{background-position:-8px 0;}.q-button-flat-blue-dark.x-btn-over .x-btn-ml{background-position:-8px -32px;}.q-button-flat-blue-dark.x-btn-over .x-btn-bl{background-position:-8px -4px;}.q-button-flat-blue-dark.x-btn-over .x-btn-tc{background-position:0 -12px;}.q-button-flat-blue-dark.x-btn-over .x-btn-mc{background-position:0 -2176px;}.q-button-flat-blue-dark.x-btn-over .x-btn-bc{background-position:0 -24px;}'+
'.q-button-flat-blue-dark.x-btn-over .x-btn-tr{background-position:-12px 0;}.q-button-flat-blue-dark.x-btn-over .x-btn-mr{background-position:-12px -32px;}.q-button-flat-blue-dark.x-btn-over .x-btn-br{background-position:-12px -4px;}.q-button-flat-blue-dark.x-btn-click .x-btn-tl,.q-button-flat-blue-dark.x-btn-menu-active .x-btn-tl,.q-button-flat-blue-dark.x-btn-pressed .x-btn-tl{background-position:-16px 0!important;}.q-button-flat-blue-dark.x-btn-click .x-btn-ml,.q-button-flat-blue-dark.x-btn-menu-active .x-btn-ml,.q-button-flat-blue-dark.x-btn-pressed .x-btn-ml{background-position:-16px -32px!important;}.q-button-flat-blue-dark.x-btn-click .x-btn-bl,.q-button-flat-blue-dark.x-btn-menu-active .x-btn-bl,.q-button-flat-blue-dark.x-btn-pressed .x-btn-bl{background-position:-16px -4px!important;}.q-button-flat-blue-dark.x-btn-click .x-btn-tc,.q-button-flat-blue-dark.x-btn-menu-active .x-btn-tc,.q-button-flat-blue-dark.x-btn-pressed .x-btn-tc{background-position:0 -16px!important;}.q-button-flat-blue-dark.x-btn-click .x-btn-mc,.q-button-flat-blue-dark.x-btn-menu-active .x-btn-mc,.q-button-flat-blue-dark.x-btn-pressed .x-btn-mc{background-position:0 -3248px!important;}'+
'.q-button-flat-blue-dark.x-btn-click .x-btn-bc,.q-button-flat-blue-dark.x-btn-menu-active .x-btn-bc,.q-button-flat-blue-dark.x-btn-pressed .x-btn-bc{background-position:0 -28px!important;}.q-button-flat-blue-dark.x-btn-click .x-btn-tr,.q-button-flat-blue-dark.x-btn-menu-active .x-btn-tr,.q-button-flat-blue-dark.x-btn-pressed .x-btn-tr{background-position:-20px 0!important;}.q-button-flat-blue-dark.x-btn-click .x-btn-mr,.q-button-flat-blue-dark.x-btn-menu-active .x-btn-mr,.q-button-flat-blue-dark.x-btn-pressed .x-btn-mr{background-position:-20px -32px!important;}.q-button-flat-blue-dark.x-btn-click .x-btn-br,.q-button-flat-blue-dark.x-btn-menu-active .x-btn-br,.q-button-flat-blue-dark.x-btn-pressed .x-btn-br{background-position:-20px -4px!important;}.q-button-flat-blue-dark.q-button-flat-blue-dark-marker .x-btn-mc,.q-button-flat-blue-dark.q-button-flat-blue-dark-marker.x-btn-pressed .x-btn-mc{background:transparent url(\'/freescan-front/shared/button/assets/img/q-button-flat-blue-dark-marker.png\') no-repeat scroll center bottom!important;}'+
'.q-button-flat-blue-dark.q-button-flat-blue-dark-marker .x-btn-bc,.q-button-flat-blue-dark.q-button-flat-blue-dark-marker.x-btn-pressed .x-btn-bc{background:transparent url(\'/freescan-front/shared/button/assets/img/q-button-flat-blue-dark-marker.png\') no-repeat scroll center top!important;}'+
'.q-button-flat-gray-alt.x-btn button{color:#3b3b3b;font:normal 11px helvetica,arial,sans-serif;padding:0 5px;}.q-button-flat-gray-alt.x-btn.x-btn-click.x-item-disabled button,.q-button-flat-gray-alt.x-btn.x-btn-click.x-item-disabled button *{color:#ddd!important;}.q-button-flat-gray-alt.x-btn-over .x-btn-text{color:#424242;}.q-button-flat-gray-alt.x-btn-click .x-btn-text{color:#fff;}.q-button-flat-gray-alt .x-btn-tl,.q-button-flat-gray-alt .x-btn-tr,.q-button-flat-gray-alt .x-btn-tc,.q-button-flat-gray-alt .x-btn-ml,.q-button-flat-gray-alt .x-btn-mr,.q-button-flat-gray-alt .x-btn-mc,.q-button-flat-gray-alt .x-btn-bl,.q-button-flat-gray-alt .x-btn-br,.q-button-flat-gray-alt .x-btn-bc{background-image:url(\'/freescan-front/shared/button/assets/img/q-button-flat-gray-alt.png\');}'+
'.q-button-flat-blue-light.x-btn button{color:#3a3a3a;font:bold 13px helvetica,arial,sans-serif;padding:0 5px;}.q-button-flat-blue-light.x-btn-over .x-btn-text{color:#4a4a4a;}.q-button-flat-blue-light.x-btn-click .x-btn-text{color:#3a3a3a;}.q-button-flat-blue-light .x-btn-tl,.q-button-flat-blue-light .x-btn-tr,.q-button-flat-blue-light .x-btn-tc,.q-button-flat-blue-light .x-btn-ml,.q-button-flat-blue-light .x-btn-mr,.q-button-flat-blue-light .x-btn-mc,.q-button-flat-blue-light .x-btn-bl,.q-button-flat-blue-light .x-btn-br,.q-button-flat-blue-light .x-btn-bc{background-image:url(\'/freescan-front/shared/button/assets/img/q-button-flat-blue-light.png\');}.q-button-flat-blue-light .x-btn-tl,.q-button-flat-blue-light .x-btn-ml,.q-button-flat-blue-light .x-btn-bl,.q-button-flat-blue-light .x-btn-tr,.q-button-flat-blue-light .x-btn-mr,.q-button-flat-blue-light .x-btn-br{width:4px;}.q-button-flat-blue-light .x-btn-tr i,.q-button-flat-blue-light .x-btn-tl i,.q-button-flat-blue-light .x-btn-br i,.q-button-flat-blue-light .x-btn-bl i{height:4px;}'+
'.q-button-flat-blue-light .x-btn-tr i,.q-button-flat-blue-light .x-btn-tl i,.q-button-flat-blue-light .x-btn-mr i,.q-button-flat-blue-light .x-btn-ml i,.q-button-flat-blue-light .x-btn-br i,.q-button-flat-blue-light .x-btn-bl i{width:4px;}.q-button-flat-blue-light .x-btn-tl{background-position:0 0;}.q-button-flat-blue-light .x-btn-ml{background-position:0 -32px;}.q-button-flat-blue-light .x-btn-bl{background-position:0 -4px;}.q-button-flat-blue-light .x-btn-tc{background-position:0 -8px;}.q-button-flat-blue-light .x-btn-mc{background-position:0 -1104px;}.q-button-flat-blue-light .x-btn-bc{background-position:0 -20px;}.q-button-flat-blue-light .x-btn-tr{background-position:-4px 0;}.q-button-flat-blue-light .x-btn-mr{background-position:-4px -32px;}.q-button-flat-blue-light .x-btn-br{background-position:-4px -4px;}.q-button-flat-blue-light.x-btn-over .x-btn-tl{background-position:-8px 0;}.q-button-flat-blue-light.x-btn-over .x-btn-ml{background-position:-8px -32px;}.q-button-flat-blue-light.x-btn-over .x-btn-bl{background-position:-8px -4px;}'+
'.q-button-flat-blue-light.x-btn-over .x-btn-tc{background-position:0 -12px;}.q-button-flat-blue-light.x-btn-over .x-btn-mc{background-position:0 -2176px;}.q-button-flat-blue-light.x-btn-over .x-btn-bc{background-position:0 -24px;}.q-button-flat-blue-light.x-btn-over .x-btn-tr{background-position:-12px 0;}.q-button-flat-blue-light.x-btn-over .x-btn-mr{background-position:-12px -32px;}.q-button-flat-blue-light.x-btn-over .x-btn-br{background-position:-12px -4px;}.q-button-flat-blue-light.x-btn-click .x-btn-tl,.q-button-flat-blue-light.x-btn-menu-active .x-btn-tl,.q-button-flat-blue-light.x-btn-pressed .x-btn-tl{background-position:-16px 0!important;}.q-button-flat-blue-light.x-btn-click .x-btn-ml,.q-button-flat-blue-light.x-btn-menu-active .x-btn-ml,.q-button-flat-blue-light.x-btn-pressed .x-btn-ml{background-position:-16px -32px!important;}.q-button-flat-blue-light.x-btn-click .x-btn-bl,.q-button-flat-blue-light.x-btn-menu-active .x-btn-bl,.q-button-flat-blue-light.x-btn-pressed .x-btn-bl{background-position:-16px -4px!important;}'+
'.q-button-flat-blue-light.x-btn-click .x-btn-tc,.q-button-flat-blue-light.x-btn-menu-active .x-btn-tc,.q-button-flat-blue-light.x-btn-pressed .x-btn-tc{background-position:0 -16px!important;}.q-button-flat-blue-light.x-btn-click .x-btn-mc,.q-button-flat-blue-light.x-btn-menu-active .x-btn-mc,.q-button-flat-blue-light.x-btn-pressed .x-btn-mc{background-position:0 -3248px!important;}.q-button-flat-blue-light.x-btn-click .x-btn-bc,.q-button-flat-blue-light.x-btn-menu-active .x-btn-bc,.q-button-flat-blue-light.x-btn-pressed .x-btn-bc{background-position:0 -28px!important;}.q-button-flat-blue-light.x-btn-click .x-btn-tr,.q-button-flat-blue-light.x-btn-menu-active .x-btn-tr,.q-button-flat-blue-light.x-btn-pressed .x-btn-tr{background-position:-20px 0!important;}.q-button-flat-blue-light.x-btn-click .x-btn-mr,.q-button-flat-blue-light.x-btn-menu-active .x-btn-mr,.q-button-flat-blue-light.x-btn-pressed .x-btn-mr{background-position:-20px -32px!important;}.q-button-flat-blue-light.x-btn-click .x-btn-br,.q-button-flat-blue-light.x-btn-menu-active .x-btn-br,.q-button-flat-blue-light.x-btn-pressed .x-btn-br{background-position:-20px -4px!important;}'+
'.q-button-flat-gray.x-btn button{color:#363636;font:bold 13px helvetica,arial,sans-serif;padding:0 5px;}.q-button-flat-gray.x-btn-over .x-btn-text{color:#4a4a4a;}.q-button-flat-gray.x-btn-click .x-btn-text{color:#363636;}.q-button-flat-gray .x-btn-tl,.q-button-flat-gray .x-btn-tr,.q-button-flat-gray .x-btn-tc,.q-button-flat-gray .x-btn-ml,.q-button-flat-gray .x-btn-mr,.q-button-flat-gray .x-btn-mc,.q-button-flat-gray .x-btn-bl,.q-button-flat-gray .x-btn-br,.q-button-flat-gray .x-btn-bc{background-image:url(\'/freescan-front/shared/button/assets/img/q-button-flat-gray.png\');}.q-button-flat-gray .x-btn-tl,.q-button-flat-gray .x-btn-ml,.q-button-flat-gray .x-btn-bl,.q-button-flat-gray .x-btn-tr,.q-button-flat-gray .x-btn-mr,.q-button-flat-gray .x-btn-br{width:4px;}.q-button-flat-gray .x-btn-tr i,.q-button-flat-gray .x-btn-tl i,.q-button-flat-gray .x-btn-br i,.q-button-flat-gray .x-btn-bl i{height:4px;}.q-button-flat-gray .x-btn-tr i,.q-button-flat-gray .x-btn-tl i,.q-button-flat-gray .x-btn-mr i,.q-button-flat-gray .x-btn-ml i,.q-button-flat-gray .x-btn-br i,.q-button-flat-gray .x-btn-bl i{width:4px;}'+
'.q-button-flat-gray .x-btn-tl{background-position:0 0;}.q-button-flat-gray .x-btn-ml{background-position:0 -32px;}.q-button-flat-gray .x-btn-bl{background-position:0 -4px;}.q-button-flat-gray .x-btn-tc{background-position:0 -8px;}.q-button-flat-gray .x-btn-mc{background-position:0 -1104px;}.q-button-flat-gray .x-btn-bc{background-position:0 -20px;}.q-button-flat-gray .x-btn-tr{background-position:-4px 0;}.q-button-flat-gray .x-btn-mr{background-position:-4px -32px;}.q-button-flat-gray .x-btn-br{background-position:-4px -4px;}.q-button-flat-gray.x-btn-over .x-btn-tl{background-position:-8px 0;}.q-button-flat-gray.x-btn-over .x-btn-ml{background-position:-8px -32px;}.q-button-flat-gray.x-btn-over .x-btn-bl{background-position:-8px -4px;}.q-button-flat-gray.x-btn-over .x-btn-tc{background-position:0 -12px;}.q-button-flat-gray.x-btn-over .x-btn-mc{background-position:0 -2176px;}.q-button-flat-gray.x-btn-over .x-btn-bc{background-position:0 -24px;}.q-button-flat-gray.x-btn-over .x-btn-tr{background-position:-12px 0;}'+
'.q-button-flat-gray.x-btn-over .x-btn-mr{background-position:-12px -32px;}.q-button-flat-gray.x-btn-over .x-btn-br{background-position:-12px -4px;}.q-button-flat-gray.x-btn-click .x-btn-tl,.q-button-flat-gray.x-btn-menu-active .x-btn-tl,.q-button-flat-gray.x-btn-pressed .x-btn-tl{background-position:-16px 0!important;}.q-button-flat-gray.x-btn-click .x-btn-ml,.q-button-flat-gray.x-btn-menu-active .x-btn-ml,.q-button-flat-gray.x-btn-pressed .x-btn-ml{background-position:-16px -32px!important;}.q-button-flat-gray.x-btn-click .x-btn-bl,.q-button-flat-gray.x-btn-menu-active .x-btn-bl,.q-button-flat-gray.x-btn-pressed .x-btn-bl{background-position:-16px -4px!important;}.q-button-flat-gray.x-btn-click .x-btn-tc,.q-button-flat-gray.x-btn-menu-active .x-btn-tc,.q-button-flat-gray.x-btn-pressed .x-btn-tc{background-position:0 -16px!important;}.q-button-flat-gray.x-btn-click .x-btn-mc,.q-button-flat-gray.x-btn-menu-active .x-btn-mc,.q-button-flat-gray.x-btn-pressed .x-btn-mc{background-position:0 -3248px!important;}.q-button-flat-gray.x-btn-click .x-btn-bc,.q-button-flat-gray.x-btn-menu-active .x-btn-bc,.q-button-flat-gray.x-btn-pressed .x-btn-bc{background-position:0 -28px!important;}'+
'.q-button-flat-gray.x-btn-click .x-btn-tr,.q-button-flat-gray.x-btn-menu-active .x-btn-tr,.q-button-flat-gray.x-btn-pressed .x-btn-tr{background-position:-20px 0!important;}.q-button-flat-gray.x-btn-click .x-btn-mr,.q-button-flat-gray.x-btn-menu-active .x-btn-mr,.q-button-flat-gray.x-btn-pressed .x-btn-mr{background-position:-20px -32px!important;}.q-button-flat-gray.x-btn-click .x-btn-br,.q-button-flat-gray.x-btn-menu-active .x-btn-br,.q-button-flat-gray.x-btn-pressed .x-btn-br{background-position:-20px -4px!important;}'+
'.q-btn-blue-dark button{color:#fafafa!important;font:bold 13px helvetica,arial,sans-serif;}.ext-strict .ext-ie7 .q-btn-blue-dark .x-btn-mc{height:70%;}.ext-ie7 .q-btn-blue-dark .x-btn-small .x-btn-text{height:18px;}.q-btn-blue-dark.x-btn-over .x-btn-text{color:#fff;}.q-btn-blue-dark.x-btn-click .x-btn-text{color:#fff;}.q-btn-blue-dark .x-btn-tl,.q-btn-blue-dark .x-btn-tr,.q-btn-blue-dark .x-btn-tc,.q-btn-blue-dark .x-btn-ml,.q-btn-blue-dark .x-btn-mr,.q-btn-blue-dark .x-btn-mc,.q-btn-blue-dark .x-btn-bl,.q-btn-blue-dark .x-btn-br,.q-btn-blue-dark .x-btn-bc{background-image:url(\'/freescan-front/shared/button/assets/img/btn-blue-dark.png\');}.q-btn-blue-dark .x-btn-tl,.q-btn-blue-dark .x-btn-ml,.q-btn-blue-dark .x-btn-bl,.q-btn-blue-dark .x-btn-tr,.q-btn-blue-dark .x-btn-mr,.q-btn-blue-dark .x-btn-br{width:6px;}.q-btn-blue-dark .x-btn-tr i,.q-btn-blue-dark .x-btn-tl i,.q-btn-blue-dark .x-btn-br i,.q-btn-blue-dark .x-btn-bl i{height:6px;}.q-btn-blue-dark .x-btn-tr i,.q-btn-blue-dark .x-btn-tl i,.q-btn-blue-dark .x-btn-mr i,.q-btn-blue-dark .x-btn-ml i,.q-btn-blue-dark .x-btn-br i,.q-btn-blue-dark .x-btn-bl i{width:6px;}'+
'.q-btn-blue-dark .x-btn-medium .x-btn-text{height:18px;}.q-btn-blue-dark .x-btn-tl,.x-toolbar .q-btn-blue-dark .x-btn-tl{background-position:0 0;}.q-btn-blue-dark .x-btn-ml,.x-toolbar .q-btn-blue-dark .x-btn-ml{background-position:0 -48px;}.q-btn-blue-dark .x-btn-bl,.x-toolbar .q-btn-blue-dark .x-btn-bl{background-position:0 -6px;}.q-btn-blue-dark .x-btn-tc,.x-toolbar .q-btn-blue-dark .x-btn-tc{background-position:0 -12px;}.q-btn-blue-dark .x-btn-mc,.x-toolbar .q-btn-blue-dark .x-btn-mc{background-position:0 -1120px;}.q-btn-blue-dark.x-btn .x-btn-mc,.x-toolbar .q-btn-blue-dark.x-btn .x-btn-mc{padding-left:3px!important;padding-right:3px!important;}.q-btn-blue-dark .x-btn-bc,.x-toolbar .q-btn-blue-dark .x-btn-bc{background-position:0 -30px;}.q-btn-blue-dark .x-btn-tr,.x-toolbar .q-btn-blue-dark .x-btn-tr{background-position:-6px 0;}.q-btn-blue-dark .x-btn-mr,.x-toolbar .q-btn-blue-dark .x-btn-mr{background-position:-6px -48px;}.q-btn-blue-dark .x-btn-br,.x-toolbar .q-btn-blue-dark .x-btn-br{background-position:-6px -6px;}'+
'.q-btn-blue-dark.x-btn-over .x-btn-tl,.x-toolbar .q-btn-blue-dark.x-btn-over .x-btn-tl{background-position:-12px 0;}.q-btn-blue-dark.x-btn-over .x-btn-ml,.x-toolbar .q-btn-blue-dark.x-btn-over .x-btn-ml{background-position:-12px -48px;}.q-btn-blue-dark.x-btn-over .x-btn-bl,.x-toolbar .q-btn-blue-dark.x-btn-over .x-btn-bl{background-position:-12px -6px;}.q-btn-blue-dark.x-btn-over .x-btn-tc,.x-toolbar .q-btn-blue-dark.x-btn-over .x-btn-tc{background-position:0 -18px;}.q-btn-blue-dark.x-btn-over .x-btn-mc,.x-toolbar .q-btn-blue-dark.x-btn-over .x-btn-mc{background-position:0 -2192px;}.q-btn-blue-dark.x-btn-over .x-btn-bc,.x-toolbar .q-btn-blue-dark.x-btn-over .x-btn-bc{background-position:0 -36px;}.q-btn-blue-dark.x-btn-over .x-btn-tr,.x-toolbar .q-btn-blue-dark.x-btn-over .x-btn-tr{background-position:-18px 0;}.q-btn-blue-dark.x-btn-over .x-btn-mr,.x-toolbar .q-btn-blue-dark.x-btn-over .x-btn-mr{background-position:-18px -48px;}.q-btn-blue-dark.x-btn-over .x-btn-br,.x-toolbar .q-btn-blue-dark.x-btn-over .x-btn-br{background-position:-18px -6px;}'+
'.q-btn-blue-dark.x-btn-click .x-btn-tl,.x-btn-menu-active .q-btn-blue-dark .x-btn-tl,.q-btn-blue-dark.x-btn-pressed .x-btn-tl,.x-toolbar .q-btn-blue-dark.x-btn-click .x-btn-tl{background-position:-24px 0;}.q-btn-blue-dark.x-btn-click .x-btn-ml,.x-btn-menu-active .q-btn-blue-dark .x-btn-ml,.q-btn-blue-dark.x-btn-pressed .x-btn-ml,.x-toolbar .q-btn-blue-dark.x-btn-click .x-btn-ml{background-position:-24px -48px;}.q-btn-blue-dark.x-btn-click .x-btn-bl,.x-btn-menu-active .q-btn-blue-dark .x-btn-bl,.q-btn-blue-dark.x-btn-pressed .x-btn-bl,.x-toolbar .q-btn-blue-dark.x-btn-click .x-btn-bl{background-position:-24px -6px;}.q-btn-blue-dark.x-btn-click .x-btn-tc,.x-btn-menu-active .q-btn-blue-dark .x-btn-tc,.q-btn-blue-dark.x-btn-pressed .x-btn-tc,.x-toolbar .q-btn-blue-dark.x-btn-click .x-btn-tc{background-position:0 -24px;}.q-btn-blue-dark.x-btn-click .x-btn-mc,.x-btn-menu-active .q-btn-blue-dark .x-btn-mc,.q-btn-blue-dark.x-btn-pressed .x-btn-mc,.x-toolbar .q-btn-blue-dark.x-btn-click .x-btn-mc{background-position:0 -3264px;}'+
'.q-btn-blue-dark.x-btn-click .x-btn-bc,.x-btn-menu-active .q-btn-blue-dark .x-btn-bc,.q-btn-blue-dark.x-btn-pressed .x-btn-bc,.x-toolbar .q-btn-blue-dark.x-btn-click .x-btn-bc{background-position:0 -42px;}.q-btn-blue-dark.x-btn-click .x-btn-tr,.x-btn-menu-active .q-btn-blue-dark .x-btn-tr,.q-btn-blue-dark.x-btn-pressed .x-btn-tr,.x-toolbar .q-btn-blue-dark.x-btn-click .x-btn-tr{background-position:-30px 0;}.q-btn-blue-dark.x-btn-click .x-btn-mr,.x-btn-menu-active .q-btn-blue-dark .x-btn-mr,.q-btn-blue-dark.x-btn-pressed .x-btn-mr,.x-toolbar .q-btn-blue-dark.x-btn-click .x-btn-mr{background-position:-30px -48px;}.q-btn-blue-dark.x-btn-click .x-btn-br,.x-btn-menu-active .q-btn-blue-dark .x-btn-br,.q-btn-blue-dark.x-btn-pressed .x-btn-br,.x-toolbar .q-btn-blue-dark.x-btn-click .x-btn-br{background-position:-30px -6px;}'+
'.q-btn-blue-dark-huge button{color:#fafafa;font:bold 14px helvetica,arial,sans-serif;height:18px;}.q-btn-blue-dark-huge.x-btn-over .x-btn-text,.q-btn-blue-dark-huge.x-btn-click .x-btn-text,.q-btn-blue-dark-huge.x-btn-menu-active .x-btn-text,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-text{color:#fff;}.q-btn-blue-dark-huge .x-btn-tl,.q-btn-blue-dark-huge .x-btn-tr,.q-btn-blue-dark-huge .x-btn-tc,.q-btn-blue-dark-huge .x-btn-ml,.q-btn-blue-dark-huge .x-btn-mr,.q-btn-blue-dark-huge .x-btn-mc,.q-btn-blue-dark-huge .x-btn-bl,.q-btn-blue-dark-huge .x-btn-br,.q-btn-blue-dark-huge .x-btn-bc{background-image:url(\'/freescan-front/shared/button/assets/img/btn-blue-dark-huge.png\');}.q-btn-blue-dark-huge .x-btn-mc em.x-btn-arrow{background-image:url(\'/freescan-front/shared/button/assets/img/btn-blue-dark-arrow.png\');padding-right:16px;}.q-btn-blue-dark-huge .x-btn-tl,.q-btn-blue-dark-huge .x-btn-ml,.q-btn-blue-dark-huge .x-btn-bl,.q-btn-blue-dark-huge .x-btn-tr,.q-btn-blue-dark-huge .x-btn-mr,.q-btn-blue-dark-huge .x-btn-br{width:10px;}'+
'.q-btn-blue-dark-huge .x-btn-tr i,.q-btn-blue-dark-huge .x-btn-tl i,.q-btn-blue-dark-huge .x-btn-br i,.q-btn-blue-dark-huge .x-btn-bl i{height:10px;}.q-btn-blue-dark-huge .x-btn-tr i,.q-btn-blue-dark-huge .x-btn-tl i,.q-btn-blue-dark-huge .x-btn-mr i,.q-btn-blue-dark-huge .x-btn-ml i,.q-btn-blue-dark-huge .x-btn-br i,.q-btn-blue-dark-huge .x-btn-bl i{width:10px;}.q-btn-blue-dark-huge .x-btn-tl,.x-toolbar .q-btn-blue-dark-huge .x-btn-tl{background-position:0 0;}.q-btn-blue-dark-huge .x-btn-ml,.x-toolbar .q-btn-blue-dark-huge .x-btn-ml{background-position:0 -80px;}.q-btn-blue-dark-huge .x-btn-bl,.x-toolbar .q-btn-blue-dark-huge .x-btn-bl{background-position:0 -10px;}.q-btn-blue-dark-huge .x-btn-tc,.x-toolbar .q-btn-blue-dark-huge .x-btn-tc{background-position:0 -20px;}.q-btn-blue-dark-huge .x-btn-mc,.x-toolbar .q-btn-blue-dark-huge .x-btn-mc{background-position:0 -1152px;}.q-btn-blue-dark-huge.x-btn .x-btn-mc,.x-toolbar .q-btn-blue-dark-huge.x-btn .x-btn-mc{padding:0 0!important;}.q-btn-blue-dark-huge .x-btn-bc,.x-toolbar .q-btn-blue-dark-huge .x-btn-bc{background-position:0 -50px;}'+
'.q-btn-blue-dark-huge .x-btn-tr,.x-toolbar .q-btn-blue-dark-huge .x-btn-tr{background-position:-10px 0;}.q-btn-blue-dark-huge .x-btn-mr,.x-toolbar .q-btn-blue-dark-huge .x-btn-mr{background-position:-10px -80px;}.q-btn-blue-dark-huge .x-btn-br,.x-toolbar .q-btn-blue-dark-huge .x-btn-br{background-position:-10px -10px;}.q-btn-blue-dark-huge.x-btn-over .x-btn-tl,.x-toolbar .q-btn-blue-dark-huge.x-btn-over .x-btn-tl{background-position:-20px 0;}.q-btn-blue-dark-huge.x-btn-over .x-btn-ml,.x-toolbar .q-btn-blue-dark-huge.x-btn-over .x-btn-ml{background-position:-20px -80px;}.q-btn-blue-dark-huge.x-btn-over .x-btn-bl,.x-toolbar .q-btn-blue-dark-huge.x-btn-over .x-btn-bl{background-position:-20px -10px;}.q-btn-blue-dark-huge.x-btn-over .x-btn-tc,.x-toolbar .q-btn-blue-dark-huge.x-btn-over .x-btn-tc{background-position:0 -30px;}.q-btn-blue-dark-huge.x-btn-over .x-btn-mc,.x-toolbar .q-btn-blue-dark-huge.x-btn-over .x-btn-mc{background-position:0 -2224px;}.q-btn-blue-dark-huge.x-btn-over .x-btn-bc,.x-toolbar .q-btn-blue-dark-huge.x-btn-over .x-btn-bc{background-position:0 -60px;}'+
'.q-btn-blue-dark-huge.x-btn-over .x-btn-tr,.x-toolbar .q-btn-blue-dark-huge.x-btn-over .x-btn-tr{background-position:-30px 0;}.q-btn-blue-dark-huge.x-btn-over .x-btn-mr,.x-toolbar .q-btn-blue-dark-huge.x-btn-over .x-btn-mr{background-position:-30px -80px;}.q-btn-blue-dark-huge.x-btn-over .x-btn-br,.x-toolbar .q-btn-blue-dark-huge.x-btn-over .x-btn-br{background-position:-30px -10px;}.q-btn-blue-dark-huge.x-btn-click .x-btn-tl,.x-btn-menu-active .q-btn-blue-dark-huge .x-btn-tl,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-tl,.x-toolbar .q-btn-blue-dark-huge.x-btn-click .x-btn-tl{background-position:-40px 0;}.q-btn-blue-dark-huge.x-btn-click .x-btn-ml,.x-btn-menu-active .q-btn-blue-dark-huge .x-btn-ml,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-ml,.x-toolbar .q-btn-blue-dark-huge.x-btn-click .x-btn-ml{background-position:-40px -80px;}.q-btn-blue-dark-huge.x-btn-click .x-btn-bl,.x-btn-menu-active .q-btn-blue-dark-huge .x-btn-bl,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-bl,.x-toolbar .q-btn-blue-dark-huge.x-btn-click .x-btn-bl{background-position:-40px -10px;}'+
'.q-btn-blue-dark-huge.x-btn-click .x-btn-tc,.x-btn-menu-active .q-btn-blue-dark-huge .x-btn-tc,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-tc,.x-toolbar .q-btn-blue-dark-huge.x-btn-click .x-btn-tc{background-position:0 -40px;}.q-btn-blue-dark-huge.x-btn-click .x-btn-mc,.x-btn-menu-active .q-btn-blue-dark-huge .x-btn-mc,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-mc,.x-toolbar .q-btn-blue-dark-huge.x-btn-click .x-btn-mc{background-position:0 -3296px;}.q-btn-blue-dark-huge.x-btn-click .x-btn-bc,.x-btn-menu-active .q-btn-blue-dark-huge .x-btn-bc,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-bc,.x-toolbar .q-btn-blue-dark-huge.x-btn-click .x-btn-bc{background-position:0 -70px;}.q-btn-blue-dark-huge.x-btn-click .x-btn-tr,.x-btn-menu-active .q-btn-blue-dark-huge .x-btn-tr,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-tr,.x-toolbar .q-btn-blue-dark-huge.x-btn-click .x-btn-tr{background-position:-50px 0;}.q-btn-blue-dark-huge.x-btn-click .x-btn-mr,.x-btn-menu-active .q-btn-blue-dark-huge .x-btn-mr,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-mr,.x-toolbar .q-btn-blue-dark-huge.x-btn-click .x-btn-mr{background-position:-50px -80px;}'+
'.q-btn-blue-dark-huge.x-btn-click .x-btn-br,.x-btn-menu-active .q-btn-blue-dark-huge .x-btn-br,.q-btn-blue-dark-huge.x-btn-pressed .x-btn-br,.x-toolbar .q-btn-blue-dark-huge.x-btn-click .x-btn-br{background-position:-50px -10px;}'+
'.q-btn-gray-light button{color:#3a3a3a;font:bold 13px helvetica,arial,sans-serif;}.q-btn-gray-light.x-btn-over .x-btn-text{color:#4a4a4a;}.q-btn-gray-light.x-btn-click .x-btn-text{color:#333;}.q-btn-gray-light .x-btn-tl,.q-btn-gray-light .x-btn-tr,.q-btn-gray-light .x-btn-tc,.q-btn-gray-light .x-btn-ml,.q-btn-gray-light .x-btn-mr,.q-btn-gray-light .x-btn-mc,.q-btn-gray-light .x-btn-bl,.q-btn-gray-light .x-btn-br,.q-btn-gray-light .x-btn-bc{background-image:url(\'/freescan-front/shared/button/assets/img/btn-gray-light.png\');}.q-btn-gray-light .x-btn-tl,.q-btn-gray-light .x-btn-ml,.q-btn-gray-light .x-btn-bl,.q-btn-gray-light .x-btn-tr,.q-btn-gray-light .x-btn-mr,.q-btn-gray-light .x-btn-br{width:5px;}.q-btn-gray-light .x-btn-tr i,.q-btn-gray-light .x-btn-tl i,.q-btn-gray-light .x-btn-br i,.q-btn-gray-light .x-btn-bl i{height:5px;}.q-btn-gray-light .x-btn-tr i,.q-btn-gray-light .x-btn-tl i,.q-btn-gray-light .x-btn-mr i,.q-btn-gray-light .x-btn-ml i,.q-btn-gray-light .x-btn-br i,.q-btn-gray-light .x-btn-bl i{width:5px;}'+
'.q-btn-gray-light .x-btn-medium .x-btn-text{height:20px;}.q-btn-gray-light .x-btn-tl,.x-toolbar .q-btn-gray-light .x-btn-tl{background-position:0 0;}.q-btn-gray-light .x-btn-ml,.x-toolbar .q-btn-gray-light .x-btn-ml{background-position:0 -40px;}.q-btn-gray-light .x-btn-bl,.x-toolbar .q-btn-gray-light .x-btn-bl{background-position:0 -5px;}.q-btn-gray-light .x-btn-tc,.x-toolbar .q-btn-gray-light .x-btn-tc{background-position:0 -10px;}.q-btn-gray-light .x-btn-mc,.x-toolbar .q-btn-gray-light .x-btn-mc{background-position:0 -1112px;}.q-btn-gray-light.x-btn .x-btn-mc,.x-toolbar .q-btn-gray-light.x-btn .x-btn-mc{padding-left:3px!important;padding-right:3px!important;}.q-btn-gray-light .x-btn-bc,.x-toolbar .q-btn-gray-light .x-btn-bc{background-position:0 -25px;}.q-btn-gray-light .x-btn-tr,.x-toolbar .q-btn-gray-light .x-btn-tr{background-position:-5px 0;}.q-btn-gray-light .x-btn-mr,.x-toolbar .q-btn-gray-light .x-btn-mr{background-position:-5px -40px;}.q-btn-gray-light .x-btn-br,.x-toolbar .q-btn-gray-light .x-btn-br{background-position:-5px -5px;}'+
'.q-btn-gray-light.x-btn-over .x-btn-tl,.x-toolbar .q-btn-gray-light.x-btn-over .x-btn-tl{background-position:-10px 0;}.q-btn-gray-light.x-btn-over .x-btn-ml,.x-toolbar .q-btn-gray-light.x-btn-over .x-btn-ml{background-position:-10px -40px;}.q-btn-gray-light.x-btn-over .x-btn-bl,.x-toolbar .q-btn-gray-light.x-btn-over .x-btn-bl{background-position:-10px -5px;}.q-btn-gray-light.x-btn-over .x-btn-tc,.x-toolbar .q-btn-gray-light.x-btn-over .x-btn-tc{background-position:0 -15px;}.q-btn-gray-light.x-btn-over .x-btn-mc,.x-toolbar .q-btn-gray-light.x-btn-over .x-btn-mc{background-position:0 -2184px;}.q-btn-gray-light.x-btn-over .x-btn-bc,.x-toolbar .q-btn-gray-light.x-btn-over .x-btn-bc{background-position:0 -30px;}.q-btn-gray-light.x-btn-over .x-btn-tr,.x-toolbar .q-btn-gray-light.x-btn-over .x-btn-tr{background-position:-15px 0;}.q-btn-gray-light.x-btn-over .x-btn-mr,.x-toolbar .q-btn-gray-light.x-btn-over .x-btn-mr{background-position:-15px -40px;}.q-btn-gray-light.x-btn-over .x-btn-br,.x-toolbar .q-btn-gray-light.x-btn-over .x-btn-br{background-position:-15px -5px;}'+
'.q-btn-gray-light.x-btn-click .x-btn-tl,.q-btn-gray-light.x-btn-menu-active .x-btn-tl,.q-btn-gray-light.x-btn-pressed .x-btn-tl,.x-toolbar .q-btn-gray-light.x-btn-click .x-btn-tl{background-position:-20px 0;}.q-btn-gray-light.x-btn-click .x-btn-ml,.q-btn-gray-light.x-btn-menu-active .x-btn-ml,.q-btn-gray-light.x-btn-pressed .x-btn-ml,.x-toolbar .q-btn-gray-light.x-btn-click .x-btn-ml{background-position:-20px -40px;}.q-btn-gray-light.x-btn-click .x-btn-bl,.q-btn-gray-light.x-btn-menu-active .x-btn-bl,.q-btn-gray-light.x-btn-pressed .x-btn-bl,.x-toolbar .q-btn-gray-light.x-btn-click .x-btn-bl{background-position:-20px -5px;}.q-btn-gray-light.x-btn-click .x-btn-tc,.q-btn-gray-light.x-btn-menu-active .x-btn-tc,.q-btn-gray-light.x-btn-pressed .x-btn-tc,.x-toolbar .q-btn-gray-light.x-btn-click .x-btn-tc{background-position:0 -20px;}.q-btn-gray-light.x-btn-click .x-btn-mc,.q-btn-gray-light.x-btn-menu-active .x-btn-mc,.q-btn-gray-light.x-btn-pressed .x-btn-mc,.x-toolbar .q-btn-gray-light.x-btn-click .x-btn-mc{background-position:0 -3256px;}'+
'.q-btn-gray-light.x-btn-click .x-btn-bc,.q-btn-gray-light.x-btn-menu-active .x-btn-bc,.q-btn-gray-light.x-btn-pressed .x-btn-bc,.x-toolbar .q-btn-gray-light.x-btn-click .x-btn-bc{background-position:0 -35px;}.q-btn-gray-light.x-btn-click .x-btn-tr,.q-btn-gray-light.x-btn-menu-active .x-btn-tr,.q-btn-gray-light.x-btn-pressed .x-btn-tr,.x-toolbar .q-btn-gray-light.x-btn-click .x-btn-tr{background-position:-25px 0;}.q-btn-gray-light.x-btn-click .x-btn-mr,.q-btn-gray-light.x-btn-menu-active .x-btn-mr,.q-btn-gray-light.x-btn-pressed .x-btn-mr,.x-toolbar .q-btn-gray-light.x-btn-click .x-btn-mr{background-position:-25px -40px;}.q-btn-gray-light.x-btn-click .x-btn-br,.q-btn-gray-light.x-btn-menu-active .x-btn-br,.q-btn-gray-light.x-btn-pressed .x-btn-br,.x-toolbar .q-btn-gray-light.x-btn-click .x-btn-br{background-position:-25px -5px;}'+
'.q-btn-gray-dark button{color:#fafafa;font:bold 13px helvetica,arial,sans-serif;}.q-btn-gray-dark.x-btn-over .x-btn-text{color:#fff;}.q-btn-gray-dark.x-btn-click .x-btn-text{color:#fff;}.q-btn-gray-dark .x-btn-tl,.q-btn-gray-dark .x-btn-tr,.q-btn-gray-dark .x-btn-tc,.q-btn-gray-dark .x-btn-ml,.q-btn-gray-dark .x-btn-mr,.q-btn-gray-dark .x-btn-mc,.q-btn-gray-dark .x-btn-bl,.q-btn-gray-dark .x-btn-br,.q-btn-gray-dark .x-btn-bc{background-image:url(\'/freescan-front/shared/button/assets/img/btn-gray-dark.png\');}.q-btn-gray-dark .x-btn-tl,.q-btn-gray-dark .x-btn-ml,.q-btn-gray-dark .x-btn-bl,.q-btn-gray-dark .x-btn-tr,.q-btn-gray-dark .x-btn-mr,.q-btn-gray-dark .x-btn-br{width:5px;}.q-btn-gray-dark .x-btn-tr i,.q-btn-gray-dark .x-btn-tl i,.q-btn-gray-dark .x-btn-br i,.q-btn-gray-dark .x-btn-bl i{height:5px;}.q-btn-gray-dark .x-btn-tr i,.q-btn-gray-dark .x-btn-tl i,.q-btn-gray-dark .x-btn-mr i,.q-btn-gray-dark .x-btn-ml i,.q-btn-gray-dark .x-btn-br i,.q-btn-gray-dark .x-btn-bl i{width:5px;}.q-btn-gray-dark .x-btn-tl,.x-toolbar .q-btn-gray-dark .x-btn-tl{background-position:0 0;}'+
'.q-btn-gray-dark .x-btn-ml,.x-toolbar .q-btn-gray-dark .x-btn-ml{background-position:0 -40px;}.q-btn-gray-dark .x-btn-bl,.x-toolbar .q-btn-gray-dark .x-btn-bl{background-position:0 -5px;}.q-btn-gray-dark .x-btn-tc,.x-toolbar .q-btn-gray-dark .x-btn-tc{background-position:0 -10px;}.q-btn-gray-dark .x-btn-mc,.x-toolbar .q-btn-gray-dark .x-btn-mc{background-position:0 -1112px;}.q-btn-gray-dark.x-btn .x-btn-mc,.x-toolbar .q-btn-gray-dark.x-btn .x-btn-mc{padding-left:3px!important;padding-right:3px!important;}.q-btn-gray-dark .x-btn-bc,.x-toolbar .q-btn-gray-dark .x-btn-bc{background-position:0 -25px;}.q-btn-gray-dark .x-btn-tr,.x-toolbar .q-btn-gray-dark .x-btn-tr{background-position:-5px 0;}.q-btn-gray-dark .x-btn-mr,.x-toolbar .q-btn-gray-dark .x-btn-mr{background-position:-5px -40px;}.q-btn-gray-dark .x-btn-br,.x-toolbar .q-btn-gray-dark .x-btn-br{background-position:-5px -5px;}.q-btn-gray-dark.x-btn-over .x-btn-tl,.x-toolbar .q-btn-gray-dark.x-btn-over .x-btn-tl{background-position:-10px 0;}.q-btn-gray-dark.x-btn-over .x-btn-ml,.x-toolbar .q-btn-gray-dark.x-btn-over .x-btn-ml{background-position:-10px -40px;}'+
'.q-btn-gray-dark.x-btn-over .x-btn-bl,.x-toolbar .q-btn-gray-dark.x-btn-over .x-btn-bl{background-position:-10px -5px;}.q-btn-gray-dark.x-btn-over .x-btn-tc,.x-toolbar .q-btn-gray-dark.x-btn-over .x-btn-tc{background-position:0 -15px;}.q-btn-gray-dark.x-btn-over .x-btn-mc,.x-toolbar .q-btn-gray-dark.x-btn-over .x-btn-mc{background-position:0 -2184px;}.q-btn-gray-dark.x-btn-over .x-btn-bc,.x-toolbar .q-btn-gray-dark.x-btn-over .x-btn-bc{background-position:0 -30px;}.q-btn-gray-dark.x-btn-over .x-btn-tr,.x-toolbar .q-btn-gray-dark.x-btn-over .x-btn-tr{background-position:-15px 0;}.q-btn-gray-dark.x-btn-over .x-btn-mr,.x-toolbar .q-btn-gray-dark.x-btn-over .x-btn-mr{background-position:-15px -40px;}.q-btn-gray-dark.x-btn-over .x-btn-br,.x-toolbar .q-btn-gray-dark.x-btn-over .x-btn-br{background-position:-15px -5px;}.q-btn-gray-dark.x-btn-click .x-btn-tl,.q-btn-gray-dark.x-btn-menu-active .x-btn-tl,.q-btn-gray-dark.x-btn-pressed .x-btn-tl,.x-toolbar .q-btn-gray-dark.x-btn-click .x-btn-tl{background-position:-20px 0;}'+
'.q-btn-gray-dark.x-btn-click .x-btn-ml,.q-btn-gray-dark.x-btn-menu-active .x-btn-ml,.q-btn-gray-dark.x-btn-pressed .x-btn-ml,.x-toolbar .q-btn-gray-dark.x-btn-click .x-btn-ml{background-position:-20px -40px;}.q-btn-gray-dark.x-btn-click .x-btn-bl,.q-btn-gray-dark.x-btn-menu-active .x-btn-bl,.q-btn-gray-dark.x-btn-pressed .x-btn-bl,.x-toolbar .q-btn-gray-dark.x-btn-click .x-btn-bl{background-position:-20px -5px;}.q-btn-gray-dark.x-btn-click .x-btn-tc,.q-btn-gray-dark.x-btn-menu-active .x-btn-tc,.q-btn-gray-dark.x-btn-pressed .x-btn-tc,.x-toolbar .q-btn-gray-dark.x-btn-click .x-btn-tc{background-position:0 -20px;}.q-btn-gray-dark.x-btn-click .x-btn-mc,.q-btn-gray-dark.x-btn-menu-active .x-btn-mc,.q-btn-gray-dark.x-btn-pressed .x-btn-mc,.x-toolbar .q-btn-gray-dark.x-btn-click .x-btn-mc{background-position:0 -3256px;}.q-btn-gray-dark.x-btn-click .x-btn-bc,.q-btn-gray-dark.x-btn-menu-active .x-btn-bc,.q-btn-gray-dark.x-btn-pressed .x-btn-bc,.x-toolbar .q-btn-gray-dark.x-btn-click .x-btn-bc{background-position:0 -35px;}'+
'.q-btn-gray-dark.x-btn-click .x-btn-tr,.q-btn-gray-dark.x-btn-menu-active .x-btn-tr,.q-btn-gray-dark.x-btn-pressed .x-btn-tr,.x-toolbar .q-btn-gray-dark.x-btn-click .x-btn-tr{background-position:-25px 0;}.q-btn-gray-dark.x-btn-click .x-btn-mr,.q-btn-gray-dark.x-btn-menu-active .x-btn-mr,.q-btn-gray-dark.x-btn-pressed .x-btn-mr,.x-toolbar .q-btn-gray-dark.x-btn-click .x-btn-mr{background-position:-25px -40px;}.q-btn-gray-dark.x-btn-click .x-btn-br,.q-btn-gray-dark.x-btn-menu-active .x-btn-br,.q-btn-gray-dark.x-btn-pressed .x-btn-br,.x-toolbar .q-btn-gray-dark.x-btn-click .x-btn-br{background-position:-25px -5px;}'+
'.q-btn-blue-light button{color:#3a3a3a;font:bold 13px helvetica,arial,sans-serif;}.ext-strict .ext-ie7 .q-btn-blue-light .x-btn-mc{height:70%;}.ext-ie7 .q-btn-blue-light .x-btn-small .x-btn-text{height:18px;}.q-btn-blue-light.x-btn-over .x-btn-text{color:#444;}.q-btn-blue-light.x-btn-click .x-btn-text{color:#333;}.q-btn-blue-light .x-btn-tl,.q-btn-blue-light .x-btn-tr,.q-btn-blue-light .x-btn-tc,.q-btn-blue-light .x-btn-ml,.q-btn-blue-light .x-btn-mr,.q-btn-blue-light .x-btn-mc,.q-btn-blue-light .x-btn-bl,.q-btn-blue-light .x-btn-br,.q-btn-blue-light .x-btn-bc{background-image:url(\'/freescan-front/shared/button/assets/img/btn-blue-light.png\');}.q-btn-blue-light .x-btn-tl,.q-btn-blue-light .x-btn-ml,.q-btn-blue-light .x-btn-bl,.q-btn-blue-light .x-btn-tr,.q-btn-blue-light .x-btn-mr,.q-btn-blue-light .x-btn-br{width:5px;}.q-btn-blue-light .x-btn-tr i,.q-btn-blue-light .x-btn-tl i,.q-btn-blue-light .x-btn-br i,.q-btn-blue-light .x-btn-bl i{height:5px;}.q-btn-blue-light .x-btn-tr i,.q-btn-blue-light .x-btn-tl i,.q-btn-blue-light .x-btn-mr i,.q-btn-blue-light .x-btn-ml i,.q-btn-blue-light .x-btn-br i,.q-btn-blue-light .x-btn-bl i{width:5px;}'+
'.q-btn-blue-light .x-btn-tl,.x-toolbar .q-btn-blue-light .x-btn-tl{background-position:0 0;}.q-btn-blue-light .x-btn-ml,.x-toolbar .q-btn-blue-light .x-btn-ml{background-position:0 -40px;}.q-btn-blue-light .x-btn-bl,.x-toolbar .q-btn-blue-light .x-btn-bl{background-position:0 -5px;}.q-btn-blue-light .x-btn-tc,.x-toolbar .q-btn-blue-light .x-btn-tc{background-position:0 -10px;}.q-btn-blue-light .x-btn-mc,.x-toolbar .q-btn-blue-light .x-btn-mc{background-position:0 -1112px;}.q-btn-blue-light.x-btn .x-btn-mc,.x-toolbar .q-btn-blue-light.x-btn .x-btn-mc{padding-left:3px!important;padding-right:3px!important;}.q-btn-blue-light .x-btn-bc,.x-toolbar .q-btn-blue-light .x-btn-bc{background-position:0 -25px;}.q-btn-blue-light .x-btn-tr,.x-toolbar .q-btn-blue-light .x-btn-tr{background-position:-5px 0;}.q-btn-blue-light .x-btn-mr,.x-toolbar .q-btn-blue-light .x-btn-mr{background-position:-5px -40px;}.q-btn-blue-light .x-btn-br,.x-toolbar .q-btn-blue-light .x-btn-br{background-position:-5px -5px;}.q-btn-blue-light.x-btn-over .x-btn-tl,.x-toolbar .q-btn-blue-light.x-btn-over .x-btn-tl{background-position:-10px 0;}'+
'.q-btn-blue-light.x-btn-over .x-btn-ml,.x-toolbar .q-btn-blue-light.x-btn-over .x-btn-ml{background-position:-10px -40px;}.q-btn-blue-light.x-btn-over .x-btn-bl,.x-toolbar .q-btn-blue-light.x-btn-over .x-btn-bl{background-position:-10px -5px;}.q-btn-blue-light.x-btn-over .x-btn-tc,.x-toolbar .q-btn-blue-light.x-btn-over .x-btn-tc{background-position:0 -15px;}.q-btn-blue-light.x-btn-over .x-btn-mc,.x-toolbar .q-btn-blue-light.x-btn-over .x-btn-mc{background-position:0 -2184px;}.q-btn-blue-light.x-btn-over .x-btn-bc,.x-toolbar .q-btn-blue-light.x-btn-over .x-btn-bc{background-position:0 -30px;}.q-btn-blue-light.x-btn-over .x-btn-tr,.x-toolbar .q-btn-blue-light.x-btn-over .x-btn-tr{background-position:-15px 0;}.q-btn-blue-light.x-btn-over .x-btn-mr,.x-toolbar .q-btn-blue-light.x-btn-over .x-btn-mr{background-position:-15px -40px;}.q-btn-blue-light.x-btn-over .x-btn-br,.x-toolbar .q-btn-blue-light.x-btn-over .x-btn-br{background-position:-15px -5px;}.q-btn-blue-light.x-btn-click .x-btn-tl,.q-btn-blue-light.x-btn-menu-active .x-btn-tl,.q-btn-blue-light.x-btn-pressed .x-btn-tl,.x-toolbar .q-btn-blue-light.x-btn-click .x-btn-tl{background-position:-20px 0;}'+
'.q-btn-blue-light.x-btn-click .x-btn-ml,.q-btn-blue-light.x-btn-menu-active .x-btn-ml,.q-btn-blue-light.x-btn-pressed .x-btn-ml,.x-toolbar .q-btn-blue-light.x-btn-click .x-btn-ml{background-position:-20px -40px;}.q-btn-blue-light.x-btn-click .x-btn-bl,.q-btn-blue-light.x-btn-menu-active .x-btn-bl,.q-btn-blue-light.x-btn-pressed .x-btn-bl,.x-toolbar .q-btn-blue-light.x-btn-click .x-btn-bl{background-position:-20px -5px;}.q-btn-blue-light.x-btn-click .x-btn-tc,.q-btn-blue-light.x-btn-menu-active .x-btn-tc,.q-btn-blue-light.x-btn-pressed .x-btn-tc,.x-toolbar .q-btn-blue-light.x-btn-click .x-btn-tc{background-position:0 -20px;}.q-btn-blue-light.x-btn-click .x-btn-mc,.q-btn-blue-light.x-btn-menu-active .x-btn-mc,.q-btn-blue-light.x-btn-pressed .x-btn-mc,.x-toolbar .q-btn-blue-light.x-btn-click .x-btn-mc{background-position:0 -3256px;}.q-btn-blue-light.x-btn-click .x-btn-bc,.q-btn-blue-light.x-btn-menu-active .x-btn-bc,.q-btn-blue-light.x-btn-pressed .x-btn-bc,.x-toolbar .q-btn-blue-light.x-btn-click .x-btn-bc{background-position:0 -35px;}'+
'.q-btn-blue-light.x-btn-click .x-btn-tr,.q-btn-blue-light.x-btn-menu-active .x-btn-tr,.q-btn-blue-light.x-btn-pressed .x-btn-tr,.x-toolbar .q-btn-blue-light.x-btn-click .x-btn-tr{background-position:-25px 0;}.q-btn-blue-light.x-btn-click .x-btn-mr,.q-btn-blue-light.x-btn-menu-active .x-btn-mr,.q-btn-blue-light.x-btn-pressed .x-btn-mr,.x-toolbar .q-btn-blue-light.x-btn-click .x-btn-mr{background-position:-25px -40px;}.q-btn-blue-light.x-btn-click .x-btn-br,.q-btn-blue-light.x-btn-menu-active .x-btn-br,.q-btn-blue-light.x-btn-pressed .x-btn-br,.x-toolbar .q-btn-blue-light.x-btn-click .x-btn-br{background-position:-25px -5px;}'+
'.x-toolbar .q-btn-distinct .x-btn-tl{background-position:0 0;}.x-toolbar .q-btn-distinct .x-btn-tr{background-position:-3px 0;}.x-toolbar .q-btn-distinct .x-btn-tc{background-position:0 -6px;}.x-toolbar .q-btn-distinct .x-btn-ml{background-position:0 -24px;}.x-toolbar .q-btn-distinct .x-btn-mr{background-position:-3px -24px;}.x-toolbar .q-btn-distinct .x-btn-mc{background-position:0 -1096px;}.x-toolbar .q-btn-distinct .x-btn-bl{background-position:0 -3px;}.x-toolbar .q-btn-distinct .x-btn-br{background-position:-3px -3px;}.x-toolbar .q-btn-distinct .x-btn-bc{background-position:0 -15px;}.x-toolbar .q-btn-distinct.x-btn-over .x-btn-tl{background-position:-6px 0;}.x-toolbar .q-btn-distinct.x-btn-over .x-btn-tr{background-position:-9px 0;}.x-toolbar .q-btn-distinct.x-btn-over .x-btn-tc{background-position:0 -9px;}.x-toolbar .q-btn-distinct.x-btn-over .x-btn-ml{background-position:-6px -24px;}.x-toolbar .q-btn-distinct.x-btn-over .x-btn-mr{background-position:-9px -24px;}.x-toolbar .q-btn-distinct.x-btn-over .x-btn-mc{background-position:0 -2168px;}'+
'.x-toolbar .q-btn-distinct.x-btn-over .x-btn-bl{background-position:-6px -3px;}.x-toolbar .q-btn-distinct.x-btn-over .x-btn-br{background-position:-9px -3px;}.x-toolbar .q-btn-distinct.x-btn-over .x-btn-bc{background-position:0 -18px;}.x-toolbar .q-btn-distinct.x-btn-click .x-btn-tl,.x-toolbar .q-btn-distinct.x-btn-menu-active .x-btn-tl,.x-toolbar .q-btn-distinct.x-btn-pressed .x-btn-tl{background-position:-12px 0;}.x-toolbar .q-btn-distinct.x-btn-click .x-btn-tr,.x-toolbar .q-btn-distinct.x-btn-menu-active .x-btn-tr,.x-toolbar .q-btn-distinct.x-btn-pressed .x-btn-tr{background-position:-15px 0;}.x-toolbar .q-btn-distinct.x-btn-click .x-btn-tc,.x-toolbar .q-btn-distinct.x-btn-menu-active .x-btn-tc,.x-toolbar .q-btn-distinct.x-btn-pressed .x-btn-tc{background-position:0 -12px;}.x-toolbar .q-btn-distinct.x-btn-click .x-btn-ml,.x-toolbar .q-btn-distinct.x-btn-menu-active .x-btn-ml,.x-toolbar .q-btn-distinct.x-btn-pressed .x-btn-ml{background-position:-12px -24px;}.x-toolbar .q-btn-distinct.x-btn-click .x-btn-mr,.x-toolbar .q-btn-distinct.x-btn-menu-active .x-btn-mr,.x-toolbar .q-btn-distinct.x-btn-pressed .x-btn-mr{background-position:-15px -24px;}'+
'.x-toolbar .q-btn-distinct.x-btn-click .x-btn-mc,.x-toolbar .q-btn-distinct.x-btn-menu-active .x-btn-mc,.x-toolbar .q-btn-distinct.x-btn-pressed .x-btn-mc{background-position:0 -3240px;}.x-toolbar .q-btn-distinct.x-btn-click .x-btn-bl,.x-toolbar .q-btn-distinct.x-btn-menu-active .x-btn-bl,.x-toolbar .q-btn-distinct.x-btn-pressed .x-btn-bl{background-position:-12px -3px;}.x-toolbar .q-btn-distinct.x-btn-click .x-btn-br,.x-toolbar .q-btn-distinct.x-btn-menu-active .x-btn-br,.x-toolbar .q-btn-distinct.x-btn-pressed .x-btn-br{background-position:-15px -3px;}.x-toolbar .q-btn-distinct.x-btn-click .x-btn-bc,.x-toolbar .q-btn-distinct.x-btn-menu-active .x-btn-bc,.x-toolbar .q-btn-distinct.x-btn-pressed .x-btn-bc{background-position:0 -21px;}'+
'.breadcrumbs{height:26px;padding:0;float:left;}.breadcrumbs .sprite{display:block;height:26px;float:left;}.breadcrumbs .bg-sprite{display:block;height:26px;float:left;}.breadcrumbs li{float:left;height:26px;list-style:none;}.breadcrumbs .bc-text{font-size:10pt;display:block;float:left;padding:5px 5px 0 5px;color:black;}.breadcrumbs .dark .bc-text{color:white;text-shadow:#416F8C -1px -1px 1px;}.breadcrumbs .light .buttons{background-position:0 -54px;}.breadcrumbs .light-hover .buttons{background-position:0 -27px;}.breadcrumbs .light-down .buttons{background-position:0 0;!important;}.breadcrumbs .light .buttons .buttons-left{background-position:0 -54px;width:3px;}.breadcrumbs .light-hover .buttons .buttons-left{background-position:0 -27px;float:left;width:3px;}.breadcrumbs .light-down .buttons .buttons-left{background-position:0 0;width:3px;}.breadcrumbs .buttons img{margin-top:5px;margin-right:5px;margin-left:5px;}.breadcrumbs .first-button img{margin-left:2px;}.breadcrumbs .light{background-position:0 -135px;}'+
'.breadcrumbs .light-hover{background-position:0 -108px!important;}.breadcrumbs .light-down{background-position:0 -81px!important;}.breadcrumbs .dark{background-position:0 -216px;}.breadcrumbs .dark-hover{background-position:0 -189px!important;}.breadcrumbs .dark-down{background-position:0 -162px!important;}.breadcrumbs .light-down .divider-bars{background-position:0 -243px;width:2px;}.breadcrumbs .light-hover .divider-bars{background-position:0 -270px;width:2px;}.breadcrumbs .light .divider-bars{background-position:0 -297px;width:2px;}.breadcrumbs .light-down .dark-divider-bar{background-position:0 -162px;width:1px;}.breadcrumbs .light-hover .dark-divider-bar{background-position:0 -189px;width:1px;}.breadcrumbs .light .dark-divider-bar{background-position:0 -216px;width:1px;}.breadcrumbs .next-light .arrow-divider{background-position:0 -486px;width:21px;cursor:pointer;}.breadcrumbs .next-light .arrow-divider-hover{background-position:0 -405px;width:21px;cursor:pointer;}.breadcrumbs .next-light .arrow-divider-down{background-position:0 -378px;width:21px;}'+
'.breadcrumbs .next-light-hover .arrow-divider{background-position:0 -459px;width:21px;}.breadcrumbs .next-light-down .arrow-divider{background-position:0 -432px;width:21px;}.breadcrumbs .next-dark .arrow-divider{background-position:0 -567px;width:21px;}.breadcrumbs .next-dark .arrow-divider-hover{background-position:0 -351px;width:21px;}.breadcrumbs .next-dark .arrow-divider-down{background-position:0 -324px;width:21px;}.breadcrumbs .next-dark-hover .arrow-divider{background-position:0 -540px;width:21px;}.breadcrumbs .next-dark-down .arrow-divider{background-position:0 -513px;width:21px;}.breadcrumbs .dark-down .dark-divider-bar{background-position:0 -81px;width:1px;}.breadcrumbs .dark-hover .hover .dark-divider-bar{background-position:0 -108px;width:1px;}.breadcrumbs .dark .dark-divider-bar{background-position:0 -135px;width:1px;}.breadcrumbs .dark .end-arrow{background-position:0 -729px;width:23px;cursor:pointer;}.breadcrumbs .dark .end-arrow-hover{background-position:0 -621px;width:23px;cursor:pointer;}.breadcrumbs .dark .end-arrow-down{background-position:0 -594px;width:23px;cursor:pointer;}'+
'.breadcrumbs .light .end-arrow{background-position:0 -702px;width:23px;cursor:pointer;}.breadcrumbs .light .end-arrow-hover{background-position:0 -675px;width:23px;cursor:pointer;}.breadcrumbs .light .end-arrow-down{background-position:0 -648px;width:23px;cursor:pointer;}'+
'.blue-container{background-color:#1559d1;padding:10px;}.x-panel-body{background:transparent;}.scs-logo{background:url(\'/freescan-front/frame/assets/img/freescan-header-logo.png\') no-repeat;width:574px;height:46px;}.dialog-header-text{color:#333;font:normal 24px arial,tahoma,helvetica,stahoma,arialerif;}.dialog-header-description{color:#333;font:normal 13px arial,tahoma,helvetica,sans-serif;display:block;padding:5px 0;}.orText{margin-top:7px;font:normal 13px arial,tahoma,helvetica,sans-serif;text-align:center;}.cancelButton{margin-top:7px;}.highlight-red{background:#FF82A0;}.highlight-text-red{color:red;}.icon-home-white{background:url(\'/freescan-front/frame/assets/img/icon-home-white.png\') no-repeat;}.icon-user-white{background:url(\'/freescan-front/frame/assets/img/icon-user-white.png\') no-repeat;}.icon-module-white{background:url(\'/freescan-front/frame/assets/img/icon-module-white.png\') no-repeat;}.x-toolbar .xtb-sep{background-image:url(\'/freescan-front/frame/assets/img/grid-gray-split.png\');}.x-border-layout-ct{background-color:white;}'+
'.q-frame-north-body{position:relative;padding-top:5px;}.right-arrow{background:url(\'/freescan-front/frame/assets/img/right-direct-icon.png\');}.right-arrow-black{background:url(\'/freescan-front/frame/assets/img/arrows.png\') no-repeat scroll right -248px transparent!important;}.x-btn-icon-medium-right .right-arrow-black{background:url(\'/freescan-front/frame/assets/img/arrows.png\') no-repeat scroll right -244px transparent!important;}.x-btn-icon-large-right .right-arrow-black{background:url(\'/freescan-front/frame/assets/img/arrows.png\') no-repeat scroll right -248px transparent!important;}.left-arrow{background:url(\'/freescan-front/frame/assets/img/arrows.png\') no-repeat scroll left 0 transparent!important;}.bullet-point-icon{background:url(\'/freescan-front/frame/assets/img/bullet-point-icon.png\') no-repeat scroll 0 0 transparent;}.q-frame-south{background:#246397;}.q-frame-content-panel-header{height:60px;position:absolute;width:100%;top:-60px;border-bottom:1px solid #BBDDE0;z-index:1;}.q-frame-content-panel-header h1{font-weight:normal;font-size:25px;padding:15px 8px 0 0;}'+
'.q-frame-content-panel-header-title{background-repeat:no-repeat;background-position:bottom left;height:60px;margin-left:8px;border-left:1px solid #98BFEF;border-right:1px solid #98BFEF;}.ext-ie6 .q-header{bottom:-1px;}.q-header{height:31px;background-position:0 0;position:absolute;bottom:0;left:0;width:100%;padding:0;margin:0;}.q-header .main-menu .main-tab{background-position:0 -37px;height:25px;}');
Resource._css('.q-header .main-menu .main-tab-hover{background-position:0 -143px;!important;}.q-header .main-menu .main-tab-down{background-position:0 -116px;!important;!important;}.q-header .main-menu{padding:0;margin:0;float:right;}.q-header .main-menu li{float:left;height:41px;list-style:none;font-size:12px;position:relative;padding-top:1px;cursor:pointer;}.q-header .main-menu li a{padding:6px 10px 0 10px;display:block;color:black;float:left;}.q-header .main-menu li a:hover{text-decoration:none;}.q-header .main-menu li img{float:left;margin-top:5px;margin-left:10px;margin-right:-4px;}.q-header .main-menu li.has-menu a span{background:url(\'/freescan-front/frame/assets/img/main-menu-down-arrow.gif\') no-repeat center right;padding-right:20px;}'+
'.q-header .main-menu li .divider-light{background:url(\'/freescan-front/frame/assets/img/header-bg-divider.png\') no-repeat;position:absolute;width:2px;height:25px;left:0;}.q-context-menu-dark,.q-context-menu-dark .x-menu{background-image:url(\'/freescan-front/frame/assets/img/context-menu-bg-dark-blue.png\');border:none;border-right:1px solid #2A5477;border-bottom:1px solid #2A5477;}.q-context-menu-dark .x-menu-item-arrow{background:url(\'/freescan-front/frame/assets/img/context-menu-dark-arrow.png\') no-repeat right center;}.q-context-menu-dark .x-menu-sep{border:none;background-color:#FFF;opacity:.20;-moz-opacity:.20;filter:alpha(opacity=20);}.q-context-menu-dark .x-menu{border:none;}.q-context-menu-dark .x-menu-list a.x-menu-item{color:white;}.q-context-menu-dark .x-menu-item-active a.x-menu-item{border:none;margin:0;}.q-context-menu-dark .x-menu-item-active *{border:none!important;}.q-context-menu-dark .x-menu-item-active{background:transparent url(\'/freescan-front/frame/assets/img/context-menu-hover-bg-dark-blue.png\') repeat-x scroll left bottom;border:none;margin:0;padding:1px;}'+
'.q-context-menu-dark span{text-shadow:#243744 1px 1px 2px;}.q-panel-body-transparent{background-color:transparent;}.module-page-index-panel-header{height:32px;font-size:20px;line-height:22px;font-family:Arial,Calibri,Sans-Serif;background:url(\'/freescan-front/shared/assets/img/toolbar/top-toolbar-bg.png\') repeat-x;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-top:1px solid #98BFEF!important;border-left:1px solid #98BFEF!important;border-right:1px solid #98BFEF!important;}.q-shaded-north-panel{background:url(\'/freescan-front/shared/assets/img/panel/shaded-north-bg.png\') repeat-x left bottom;background-color:#F7F9F9;}.q-shaded-north-panel .x-panel-body,.q-shaded-north-panel .x-tab-panel-body{background:none transparent!important;}.horizontal-divider{border-top:1px solid;border-color:#D1D1D1;}.footer-vertical-divider.bottom-panel-tab{border-left:1px solid;border-color:#E7E7E7;}.news-info{padding-left:10px;padding-top:1px;color:#5E5E5E;}.news-info a{color:#003475;font:bold 15px arial,tahoma,helvetica,sans-serif;}'+
'.bottom-panel-tab{margin:0 0 10px 10px;padding:7px 0 0;}.bottom-panel-tab .content{padding-left:11px;color:#5E5E5E;font:normal 12px arial,tahoma,helvetica,sans-serif;}.bottom-panel-tab .qualysguard-express-logo{margin-left:13px;}.link .x-btn-text{padding-bottom:2px;}.bottom-panel-tab .x-btn.link button{padding-left:10px;color:#003475;height:18px;font:bold 15px arial,tahoma,helvetica,sans-serif;}.bottom-panel-tab .x-btn-over.link button{padding-left:10px;color:#003475;font:bold 15px arial,tahoma,helvetica,sans-serif;}#copyright-text{text-align:center;color:#656565;font:normal 12px arial,tahoma,helvetica,sans-serif;margin-top:5px;}#copyright-logo{margin-top:5px;text-align:center;}.welcome-message{font:normal 11px helvetica,arial,sans-serif;line-height:15px;padding-top:7px;color:#5E5E5E;}.welcome-header{font:bold 14px helvetica,arial,sans-serif;}.align-right{float:right;width:574px;;height:46px;}.partner-logo{background:url(\'/freescan-front/frame/assets/img/freescan-header-logo.png\') no-repeat;width:574px;;height:46px;}'+
'.page-margins{margin:0 20px 0 20px;}.x-btn-text-icon .x-btn-icon-small-left .x-btn-text{height:20px;padding-left:25px;}.qualysguard-logo{background:url(\'/freescan-front/frame/assets/img/qualysguard-logo.png\') no-repeat scroll 0 0 transparent;}.qualysguard-express-logo{background:url(\'/freescan-front/frame/assets/img/qualysguard-express-logo.png\') no-repeat scroll 0 0 transparent;}'+
'body,td,th{font-family:Arial,Sans-Serif;font-size:9pt;}.x-form-item{font-family:Arial,Sans-Serif!important;}a{color:#39F;text-decoration:none;}a:hover{text-decoration:underline;}.clickable{cursor:pointer;}.not-clickable{cursor:default;}h1{font-size:220%;}h2{font-size:190%;font-weight:normal;}h3{font-size:175%;font-weight:normal;}.x-panel-bbar .x-toolbar,.x-toolbar{border:none;background-image:none;background-color:transparent;}.link-span{color:#005CCF;font:normal normal normal 11px/normal tahoma,arial,helvetica,sans-serif;}'+
'body .frame-mask{border:none;border-radius:10px;-moz-border-radius:10px;-moz-box-shadow:0 0 15px #888;-webkit-box-shadow:0 0 15px #888;background:none #FFF;width:300px;padding:20px;}body .frame-mask div{background-color:#FFF;border:none;padding:0;}body .frame-mask .message-content{background:url(\'/freescan-front/frame/assets/img/spinner-big.gif\') white no-repeat left center;padding-left:55px;}body .frame-mask H3{color:#555;font-size:10pt;margin-bottom:10px;}body .frame-mask .message-text{font-size:8pt;color:#666;}.ext-ie .frame-mask{border:1px solid #AAA!important;}.ext-ie9 .frame-mask{border:none!important;}.x-el-mask{background:#fff;}.ext-el-mask-msg{position:absolute;top:-45px;left:-150px;width:300px;padding:20px;border-radius:10px;-moz-border-radius:10px;-moz-box-shadow:0 0 15px #888;-webkit-box-shadow:0 0 15px #888;background-color:#FFF;background-image:none;}.x-mask-loading div{background:url(\'/freescan-front/frame/assets/img/spinner-big.gif\') white no-repeat left center;}.ext-el-mask-msg div{border:0 none;padding-left:60px;font:normal 15px helvetica,arial,sans-serif;}'+
'#notify-container{cursor:pointer;position:absolute;width:350px;z-index:99999;}.notify-tl{background:transparent no-repeat 0 0;}.notify-tc{height:20px;background:transparent repeat-x 0 0;}.notify-tr{background:transparent no-repeat right -20px;}.notify-ml{background:transparent repeat-y 0;padding-left:11px;}.notify-mc{background:repeat-x 0 -40px;padding:0 10px;}.notify-mc h3{margin:0;font-size:14px;font-weight:bold;}.notify-mr{background:transparent repeat-y right;padding-right:11px;}.notify-bl{background:transparent no-repeat 0 -40px;}.notify-bc{background:transparent repeat-x 0 -20px;height:20px;}.notify-br{background:transparent no-repeat right -60px;}.notify-tl,.notify-bl{padding-left:20px;}.notify-tr,.notify-br{padding-right:20px;}.notify-mc{font-family:helvetica,arial,sans-serif;color:#393939;font-size:13px;}.info .notify-tl,.info .notify-tr,.info .notify-bl,.info .notify-br{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/info-corners.png\');}.info .notify-tc,.info .notify-bc{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/info-tb.png\');}'+
'.info .notify-ml{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/info-l.png\');}.info .notify-mr{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/info-r.png\');}.info .notify-mc{background-color:#f5fafd;background-image:none;}.success .notify-tl,.success .notify-tr,.success .notify-bl,.success .notify-br{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/success-corners.png\');}.success .notify-tc,.success .notify-bc{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/success-tb.png\');}.success .notify-ml{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/success-l.png\');}.success .notify-mr{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/success-r.png\');}.success .notify-mc{background-color:#f9fcf5;background-image:none;}.warning .notify-tl,.warning .notify-tr,.warning .notify-bl,.warning .notify-br{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/warning-corners.png\');}.warning .notify-tc,.warning .notify-bc{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/warning-tb.png\');}'+
'.warning .notify-ml{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/warning-l.png\');}.warning .notify-mr{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/warning-r.png\');}.warning .notify-mc{background-color:#fffef7;background-image:none;}.error .notify-tl,.error .notify-tr,.error .notify-bl,.error .notify-br{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/error-corners.png\');}.error .notify-tc,.error .notify-bc{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/error-tb.png\');}.error .notify-ml{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/error-l.png\');}.error .notify-mr{background-image:url(\'/freescan-front/shared/util/assets/img/notifier/error-r.png\');}.error .notify-mc{background-color:#fff7f7;background-image:none;}'+
'.q-drop-shadow .x-panel-header{background-image:url(\'/freescan-front/shared/panel/assets/img/drop-shadow/white-top-bottom.png\');}.q-drop-shadow .x-panel-body{border-color:#ddd;}.q-drop-shadow .x-panel-bbar .x-toolbar,.x-panel-tbar .x-toolbar{border-color:#ddd;}.q-drop-shadow .x-panel-tbar-noheader .x-toolbar,.q-drop-shadow .x-panel-mc .x-panel-tbar .x-toolbar{border-top-color:#ddd;}.q-drop-shadow .x-panel-body-noheader,.q-drop-shadow .x-panel-mc .x-panel-body{border-top-color:#ddd;}.q-drop-shadow .x-panel-tl,.q-drop-shadow .x-panel-ml,.q-drop-shadow .x-panel-bl{padding-left:16px;}.q-drop-shadow .x-panel-tr,.q-drop-shadow .x-panel-mr,.q-drop-shadow .x-panel-br{padding-right:16px;}.q-drop-shadow .x-panel-tc{background-image:url(\'/freescan-front/shared/panel/assets/img/drop-shadow/top-bottom.png\');height:16px;}.q-drop-shadow .x-panel-tl{background:transparent url(\'/freescan-front/shared/panel/assets/img/drop-shadow/corner-tl.png\') no-repeat scroll top left;border-bottom:0 none;}.q-drop-shadow .x-panel-tr{background:transparent url(\'/freescan-front/shared/panel/assets/img/drop-shadow/corner-tr.png\') no-repeat scroll top right;}'+
'.q-drop-shadow .x-panel-bl{background:transparent url(\'/freescan-front/shared/panel/assets/img/drop-shadow/corner-bl.png\') no-repeat scroll bottom left;}.q-drop-shadow .x-panel-br{background:transparent url(\'/freescan-front/shared/panel/assets/img/drop-shadow/corner-br.png\') no-repeat scroll bottom right;}.q-drop-shadow .x-panel-bc,.q-drop-shadow .x-panel-nofooter .x-panel-bc{background-image:url(\'/freescan-front/shared/panel/assets/img/drop-shadow/top-bottom.png\');height:16px;}.q-drop-shadow .x-panel-mc{font:normal 12px arial,tahoma,helvetica,sans-serif;background-color:#fff;padding:3px;}.q-drop-shadow .x-panel-ml{background-color:transparent;background-image:url(\'/freescan-front/shared/panel/assets/img/drop-shadow/left-right.png\');}.q-drop-shadow .x-panel-mr{background-image:url(\'/freescan-front/shared/panel/assets/img/drop-shadow/left-right.png\');}'+
'.q-gradient-tl,.q-gradient-bl{padding-left:10px;background-repeat:no-repeat;}.q-gradient-tr,.q-gradient-br{padding-right:10px;background-repeat:no-repeat;}.q-gradient-tl{background-position:left top;}.q-gradient-tr{background-position:right top;}.q-gradient-bl{background-position:left bottom;}.q-gradient-br{background-position:right bottom;}.q-gradient-tc,.q-gradient-tc,.q-gradient-body{background-repeat:repeat-x;}.q-gradient-tc,.q-gradient-bc{height:10px;}.q-gradient-tc{background-position:center top;}.q-gradient-bc{background-position:center bottom;}.q-gradient-body{background-position:center -10px;padding:0 10px;}.q-gradient-large.q-gradient-blue .q-gradient-tl,.q-gradient-large.q-gradient-blue .q-gradient-tr,.q-gradient-large.q-gradient-blue .q-gradient-bl,.q-gradient-large.q-gradient-blue .q-gradient-br{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/large-blue-sides.png\');}.q-gradient-large.q-gradient-blue .q-gradient-tc,.q-gradient-large.q-gradient-blue .q-gradient-bc,.q-gradient-large.q-gradient-blue .q-gradient-body{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/large-blue-body.png\');}'+
'.q-gradient-medium.q-gradient-blue .q-gradient-tl,.q-gradient.q-gradient-medium.q-gradient-blue .q-gradient-tr,.q-gradient-medium.q-gradient-blue .q-gradient-bl,.q-gradient.q-gradient-medium.q-gradient-blue .q-gradient-br{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/medium-blue-sides.png\');}.q-gradient-medium.q-gradient-blue .q-gradient-tc,.q-gradient-medium.q-gradient-blue .q-gradient-bc,.q-gradient-medium.q-gradient-blue .q-gradient-body{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/medium-blue-body.png\');}.q-gradient-small.q-gradient-blue .q-gradient-tl,.q-gradient-small.q-gradient-blue .q-gradient-tr,.q-gradient-small.q-gradient-blue .q-gradient-bl,.q-gradient-small.q-gradient-blue .q-gradient-br{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/small-blue-sides.png\');}.q-gradient-small.q-gradient-blue .q-gradient-tc,.q-gradient-small.q-gradient-blue .q-gradient-bc,.q-gradient-small.q-gradient-blue .q-gradient-body{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/small-blue-body.png\');}'+
'.q-gradient-blue .q-gradient-body{background-color:#0135c7;}.q-gradient-gray .q-gradient-tc,.q-gradient-gray .q-gradient-bc{height:9px;}.q-gradient-gray .q-gradient-body{padding:0 9px;}.q-gradient-gray .q-gradient-tc{border-top:1px solid #e1e1e1;}.q-gradient-gray .q-gradient-bc{border-bottom:1px solid #e1e1e1;}.q-gradient-gray .q-gradient-body{border-left:1px solid #e1e1e1;border-right:1px solid #e1e1e1;}.q-gradient-large.q-gradient-gray .q-gradient-tl,.q-gradient-large.q-gradient-gray .q-gradient-tr,.q-gradient-large.q-gradient-gray .q-gradient-bl,.q-gradient-large.q-gradient-gray .q-gradient-br{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/large-gray-sides.png\');}.q-gradient-large.q-gradient-gray .q-gradient-tc,.q-gradient-large.q-gradient-gray .q-gradient-bc,.q-gradient-large.q-gradient-gray .q-gradient-body{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/large-gray-body.png\');}.q-gradient-medium.q-gradient-gray .q-gradient-tl,.q-gradient-medium.q-gradient-gray .q-gradient-tr,.q-gradient-medium.q-gradient-gray .q-gradient-bl,.q-gradient-medium.q-gradient-gray .q-gradient-br{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/medium-gray-sides.png\');}'+
'.q-gradient-medium.q-gradient-gray .q-gradient-tc,.q-gradient-medium.q-gradient-gray .q-gradient-bc,.q-gradient-medium.q-gradient-gray .q-gradient-body{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/medium-gray-body.png\');}.q-gradient-small.q-gradient-gray .q-gradient-tl,.q-gradient-small.q-gradient-gray .q-gradient-tr,.q-gradient-small.q-gradient-gray .q-gradient-bl,.q-gradient-small.q-gradient-gray .q-gradient-br{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/small-gray-sides.png\');}.q-gradient-small.q-gradient-gray .q-gradient-tc,.q-gradient-small.q-gradient-gray .q-gradient-bc,.q-gradient-small.q-gradient-gray .q-gradient-body{background-image:url(\'/freescan-front/shared/container/assets/img/gradient-container/small-gray-body.png\');}.q-gradient-gray .q-gradient-body{background-color:#e8e8e8;}'+
'.error-tool-tip.x-tip .x-tip-tc{padding-top:5px;padding-bottom:4px;}.error-tool-tip.x-tip .x-tip-bl{background:none no-repeat scroll 0 -49px transparent;}.error-tool-tip.x-tip .x-tip-br{background:none no-repeat scroll right -49px transparent;}.error-tool-tip.x-tip .x-tip-bc{background:none no-repeat scroll 0 -111px transparent;height:13px;}.error-tool-tip.x-tip .x-tip-tc,.error-tool-tip.x-tip .x-tip-tl,.error-tool-tip.x-tip .x-tip-tr,.error-tool-tip.x-tip .x-tip-bc,.error-tool-tip.x-tip .x-tip-bl,.error-tool-tip.x-tip .x-tip-br,.error-tool-tip.x-tip .x-tip-ml,.error-tool-tip.x-tip .x-tip-mr{background-image:url(\'/freescan-front/shared/tooltip/assets/img/error/tooltip-sprite.png\');}.error-tool-tip.x-tip .x-tip-tl,.error-tool-tip.x-tip .x-tip-bl,.error-tool-tip.x-tip .x-tip-ml{background-image:url(\'/freescan-front/shared/tooltip/assets/img/error/tooltip-sprite-left.png\');}.error-tool-tip.x-tip .x-tip-tl,.error-tool-tip.x-tip .x-tip-ml,.error-tool-tip.x-tip .x-tip-bl{padding-left:10px;}.error-tool-tip.x-tip .x-tip-tr,.error-tool-tip.x-tip .x-tip-mr,.error-tool-tip.x-tip .x-tip-br{padding-right:16px;}'+
'.error-tool-tip.x-tip .x-tip-mc{font:normal 12px helvetica,arial,sans-serif;}.error-tool-tip.x-tip .x-tip-ml{background-color:transparent;}.error-tool-tip.x-tip .x-tip-header-text{font:bold 12px helvetica,arial,sans-serif;color:#444;}.error-tool-tip.x-tip .x-tip-body{padding-bottom:3px;font:normal 12px helvetica,arial,sans-serif;color:#c60000;}.error-tool-tip.x-tip .x-tip-anchor{background-image:url(\'/freescan-front/shared/tooltip/assets/img/error/tooltip-anchor-sprite.png\');height:20px;width:20px;}.error-tool-tip.x-tip .x-tip-anchor-bottom{background-position:-250px 0;}.error-tool-tip.x-tip .x-tip-anchor-left{background-position:-500px 0;}.error-tool-tip.x-tip .x-tip-anchor-right{background-position:-750px 0;}.error-tool-tip.x-tip .x-tool-close{background:transparent url(\'/freescan-front/shared/tooltip/assets/img/error/tooltip-close-sprite.png\') no-repeat scroll left center;}.error-tool-tip.x-tip .x-tool-close-over{background:transparent url(\'/freescan-front/shared/tooltip/assets/img/error/tooltip-close-sprite.png\') no-repeat scroll right center;}'+
'}');
