Ext={version:"2.2.1"};window["undefined"]=window["undefined"];Ext.apply=function(o,c,_3){if(_3){Ext.apply(o,_3)}if(o&&c&&typeof c=="object"){for(var p in c){o[p]=c[p]}}return o};(function(){var _5=0;var ua=navigator.userAgent.toLowerCase();var _7=document.compatMode=="CSS1Compat",_8=ua.indexOf("opera")>-1,_9=ua.indexOf("chrome")>-1,_a=!_9&&(/webkit|khtml/).test(ua),_b=_a&&ua.indexOf("webkit/5")!=-1,_c=!_8&&ua.indexOf("msie")>-1,_d=!_8&&ua.indexOf("msie 7")>-1,_e=!_8&&ua.indexOf("msie 8")>-1,_f=!_a&&!_9&&ua.indexOf("gecko")>-1,_10=_f&&ua.indexOf("rv:1.9")>-1,_11=_c&&!_7,_12=(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1),_13=(ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1),_14=(ua.indexOf("adobeair")!=-1),_15=(ua.indexOf("linux")!=-1),_16=window.location.href.toLowerCase().indexOf("https")===0;if(_c&&!_d){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}Ext.apply(Ext,{isStrict:_7,isSecure:_16,isReady:false,enableGarbageCollector:true,enableListenerCollection:false,SSL_SECURE_URL:"javascript:false",BLANK_IMAGE_URL:"http://extjs.com/s.gif",emptyFn:function(){},applyIf:function(o,c){if(o&&c){for(var p in c){if(typeof o[p]=="undefined"){o[p]=c[p]}}}return o},addBehaviors:function(o){if(!Ext.isReady){Ext.onReady(function(){Ext.addBehaviors(o)});return}var _1b={};for(var b in o){var _1d=b.split("@");if(_1d[1]){var s=_1d[0];if(!_1b[s]){_1b[s]=Ext.select(s)}_1b[s].on(_1d[1],o[b])}}_1b=null},id:function(el,_20){_20=_20||"ext-gen";el=Ext.getDom(el);var id=_20+(++_5);return el?(el.id?el.id:(el.id=id)):id},extend:function(){var io=function(o){for(var m in o){this[m]=o[m]}};var oc=Object.prototype.constructor;return function(sb,sp,_28){if(typeof sp=="object"){_28=sp;sp=sb;sb=_28.constructor!=oc?_28.constructor:function(){sp.apply(this,arguments)}}var F=function(){},sbp,spp=sp.prototype;F.prototype=spp;sbp=sb.prototype=new F();sbp.constructor=sb;sb.superclass=spp;if(spp.constructor==oc){spp.constructor=sp}sb.override=function(o){Ext.override(sb,o)};sbp.override=io;Ext.override(sb,_28);sb.extend=function(o){Ext.extend(sb,o)};return sb}}(),override:function(_2e,_2f){if(_2f){var p=_2e.prototype;for(var _31 in _2f){p[_31]=_2f[_31]}if(Ext.isIE&&_2f.toString!=_2e.toString){p.toString=_2f.toString}}},namespace:function(){var a=arguments,o=null,i,j,d,rt;for(i=0;i10000){clearInterval(iid)}var el=document.getElementById(id);if(el){clearInterval(iid);fn.call(_36||window,el)}};iid=setInterval(f,50)}};Ext.lib.Ajax=function(){var _3b=function(cb){return cb.success?function(xhr){cb.success.call(cb.scope||window,{responseText:xhr.responseText,responseXML:xhr.responseXML,argument:cb.argument})}:Ext.emptyFn};var _3e=function(cb){return cb.failure?function(xhr){cb.failure.call(cb.scope||window,{responseText:xhr.responseText,responseXML:xhr.responseXML,argument:cb.argument})}:Ext.emptyFn};return{request:function(_41,uri,cb,_44,_45){var o={method:_41,parameters:_44||"",timeout:cb.timeout,onSuccess:_3b(cb),onFailure:_3e(cb)};if(_45){var hs=_45.headers;if(hs){o.requestHeaders=hs}if(_45.xmlData){_41=(_41?_41:(_45.method?_45.method:"POST"));if(!hs||!hs["Content-Type"]){o.contentType="text/xml"}o.postBody=_45.xmlData;delete o.parameters}if(_45.jsonData){_41=(_41?_41:(_45.method?_45.method:"POST"));if(!hs||!hs["Content-Type"]){o.contentType="application/json"}o.postBody=typeof _45.jsonData=="object"?Ext.encode(_45.jsonData):_45.jsonData;delete o.parameters}}new Ajax.Request(uri,o)},formRequest:function(_48,uri,cb,_4b,_4c,_4d){new Ajax.Request(uri,{method:Ext.getDom(_48).method||"POST",parameters:Form.serialize(_48)+(_4b?"&"+_4b:""),timeout:cb.timeout,onSuccess:_3b(cb),onFailure:_3e(cb)})},isCallInProgress:function(_4e){return false},abort:function(_4f){return false},serializeForm:function(_50){return Form.serialize(_50.dom||_50)}}}();Ext.lib.Anim=function(){var _51={easeOut:function(pos){return 1-Math.pow(1-pos,2)},easeIn:function(pos){return 1-Math.pow(1-pos,2)}};var _54=function(cb,_56){return{stop:function(_57){this.effect.cancel()},isAnimated:function(){return this.effect.state=="running"},proxyCallback:function(){Ext.callback(cb,_56)}}};return{scroll:function(el,_59,_5a,_5b,cb,_5d){var _5e=_54(cb,_5d);el=Ext.getDom(el);if(typeof _59.scroll.to[0]=="number"){el.scrollLeft=_59.scroll.to[0]}if(typeof _59.scroll.to[1]=="number"){el.scrollTop=_59.scroll.to[1]}_5e.proxyCallback();return _5e},motion:function(el,_60,_61,_62,cb,_64){return this.run(el,_60,_61,_62,cb,_64)},color:function(el,_66,_67,_68,cb,_6a){return this.run(el,_66,_67,_68,cb,_6a)},run:function(el,_6c,_6d,_6e,cb,_70,_71){var o={};for(var k in _6c){switch(k){case"points":var by,pts,e=Ext.fly(el,"_animrun");e.position();if(by=_6c.points.by){var xy=e.getXY();pts=e.translatePoints([xy[0]+by[0],xy[1]+by[1]])}else{pts=e.translatePoints(_6c.points.to)}o.left=pts.left+"px";o.top=pts.top+"px";break;case"width":o.width=_6c.width.to+"px";break;case"height":o.height=_6c.height.to+"px";break;case"opacity":o.opacity=String(_6c.opacity.to);break;default:o[k]=String(_6c[k].to);break}}var _78=_54(cb,_70);_78.effect=new Effect.Morph(Ext.id(el),{duration:_6d,afterFinish:_78.proxyCallback,transition:_51[_6e]||Effect.Transitions.linear,style:o});return _78}}}();function fly(el){if(!_1){_1=new Ext.Element.Flyweight()}_1.dom=el;return _1}Ext.lib.Region=function(t,r,b,l){this.top=t;this[1]=t;this.right=r;this.bottom=b;this.left=l;this[0]=l};Ext.lib.Region.prototype={contains:function(_7e){return(_7e.left>=this.left&&_7e.right<=this.right&&_7e.top>=this.top&&_7e.bottom<=this.bottom)},getArea:function(){return((this.bottom-this.top)*(this.right-this.left))},intersect:function(_7f){var t=Math.max(this.top,_7f.top);var r=Math.min(this.right,_7f.right);var b=Math.min(this.bottom,_7f.bottom);var l=Math.max(this.left,_7f.left);if(b>=t&&r>=l){return new Ext.lib.Region(t,r,b,l)}else{return null}},union:function(_84){var t=Math.min(this.top,_84.top);var r=Math.max(this.right,_84.right);var b=Math.max(this.bottom,_84.bottom);var l=Math.min(this.left,_84.left);return new Ext.lib.Region(t,r,b,l)},constrainTo:function(r){this.top=this.top.constrain(r.top,r.bottom);this.bottom=this.bottom.constrain(r.top,r.bottom);this.left=this.left.constrain(r.left,r.right);this.right=this.right.constrain(r.left,r.right);return this},adjust:function(t,l,b,r){this.top+=t;this.left+=l;this.right+=r;this.bottom+=b;return this}};Ext.lib.Region.getRegion=function(el){var p=Ext.lib.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new Ext.lib.Region(t,r,b,l)};Ext.lib.Point=function(x,y){if(Ext.isArray(x)){y=x[1]; x=x[0]}this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y};Ext.lib.Point.prototype=new Ext.lib.Region();if(Ext.isIE){function fnCleanUp(){var p=Function.prototype;delete p.createSequence;delete p.defer;delete p.createDelegate;delete p.createCallback;delete p.createInterceptor;window.detachEvent("onunload",fnCleanUp)}window.attachEvent("onunload",fnCleanUp)}})(); Ext.DomHelper=function(){var _1=null;var _2=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i;var _3=/^table|tbody|tr|td$/i;var _4=function(o){if(typeof o=="string"){return o}var b="";if(Ext.isArray(o)){for(var i=0,l=o.length;i"}return b};var _d=function(o,_f){var el;if(Ext.isArray(o)){el=document.createDocumentFragment();for(var i=0,l=o.length;i",tbe=""+te,trs=tbs+"",tre=""+tbe;var _23=function(tag,_25,el,_27){if(!_1){_1=document.createElement("div")}var _28;var _29=null;if(tag=="td"){if(_25=="afterbegin"||_25=="beforeend"){return}if(_25=="beforebegin"){_29=el;el=el.parentNode}else{_29=el.nextSibling;el=el.parentNode}_28=_16(4,trs,_27,tre)}else{if(tag=="tr"){if(_25=="beforebegin"){_29=el;el=el.parentNode;_28=_16(3,tbs,_27,tbe)}else{if(_25=="afterend"){_29=el.nextSibling;el=el.parentNode;_28=_16(3,tbs,_27,tbe)}else{if(_25=="afterbegin"){_29=el.firstChild}_28=_16(4,trs,_27,tre)}}}else{if(tag=="tbody"){if(_25=="beforebegin"){_29=el;el=el.parentNode;_28=_16(2,ts,_27,te)}else{if(_25=="afterend"){_29=el.nextSibling;el=el.parentNode;_28=_16(2,ts,_27,te)}else{if(_25=="afterbegin"){_29=el.firstChild}_28=_16(3,tbs,_27,tbe)}}}else{if(_25=="beforebegin"||_25=="afterend"){return}if(_25=="afterbegin"){_29=el.firstChild}_28=_16(2,ts,_27,te)}}}el.insertBefore(_28,_29);return _28};return{useDom:false,markup:function(o){return _4(o)},applyStyles:function(el,_2c){if(_2c){el=Ext.fly(el);if(typeof _2c=="string"){var re=/\s?([a-z\-]*)\:\s?([^;]*);?/gi;var _2e;while((_2e=re.exec(_2c))!=null){el.setStyle(_2e[1],_2e[2])}}else{if(typeof _2c=="object"){for(var _2f in _2c){el.setStyle(_2f,_2c[_2f])}}else{if(typeof _2c=="function"){Ext.DomHelper.applyStyles(el,_2c.call())}}}}},insertHtml:function(_30,el,_32){_30=_30.toLowerCase();if(el.insertAdjacentHTML){if(_3.test(el.tagName)){var rs;if(rs=_23(el.tagName.toLowerCase(),_30,el,_32)){return rs}}switch(_30){case"beforebegin":el.insertAdjacentHTML("BeforeBegin",_32);return el.previousSibling;case"afterbegin":el.insertAdjacentHTML("AfterBegin",_32);return el.firstChild;case"beforeend":el.insertAdjacentHTML("BeforeEnd",_32);return el.lastChild;case"afterend":el.insertAdjacentHTML("AfterEnd",_32);return el.nextSibling}throw'Illegal insertion point -> "'+_30+'"'}var _34=el.ownerDocument.createRange();var _35;switch(_30){case"beforebegin":_34.setStartBefore(el);_35=_34.createContextualFragment(_32);el.parentNode.insertBefore(_35,el);return el.previousSibling;case"afterbegin":if(el.firstChild){_34.setStartBefore(el.firstChild);_35=_34.createContextualFragment(_32);el.insertBefore(_35,el.firstChild);return el.firstChild}else{el.innerHTML=_32;return el.firstChild}case"beforeend":if(el.lastChild){_34.setStartAfter(el.lastChild);_35=_34.createContextualFragment(_32);el.appendChild(_35);return el.lastChild}else{el.innerHTML=_32;return el.lastChild}case"afterend":_34.setStartAfter(el);_35=_34.createContextualFragment(_32);el.parentNode.insertBefore(_35,el.nextSibling);return el.nextSibling}throw'Illegal insertion point -> "'+_30+'"'},insertBefore:function(el,o,_38){return this.doInsert(el,o,_38,"beforeBegin")},insertAfter:function(el,o,_3b){return this.doInsert(el,o,_3b,"afterEnd","nextSibling")},insertFirst:function(el,o,_3e){return this.doInsert(el,o,_3e,"afterBegin","firstChild")},doInsert:function(el,o,_41,pos,_43){el=Ext.getDom(el);var _44;if(this.useDom){_44=_d(o,null);(_43==="firstChild"?el:el.parentNode).insertBefore(_44,_43?el[_43]:el)}else{var _45=_4(o);_44=this.insertHtml(pos,el,_45)}return _41?Ext.get(_44,true):_44},append:function(el,o,_48){el=Ext.getDom(el);var _49;if(this.useDom){_49=_d(o,null);el.appendChild(_49)}else{var _4a=_4(o);_49=this.insertHtml("beforeEnd",el,_4a)}return _48?Ext.get(_49,true):_49},overwrite:function(el,o,_4d){el=Ext.getDom(el);el.innerHTML=_4(o);return _4d?Ext.get(el.firstChild,true):el.firstChild},createTemplate:function(o){var _4f=_4(o);return new Ext.Template(_4f)}}}();Ext.Template=function(_1){var a=arguments;if(Ext.isArray(_1)){_1=_1.join("")}else{if(a.length>1){var _3=[];for(var i=0,_5=a.length;i<_5;i++){if(typeof a[i]=="object"){Ext.apply(this,a[i])}else{_3[_3.length]=a[i]}}_1=_3.join("")}}this.html=_1;if(this.compiled){this.compile()}};Ext.Template.prototype={applyTemplate:function(_6){if(this.compiled){return this.compiled(_6)}var _7=this.disableFormats!==true;var fm=Ext.util.Format,_9=this;var fn=function(m,_c,_d,_e){if(_d&&_7){if(_d.substr(0,5)=="this."){return _9.call(_d.substr(5),_6[_c],_6)}else{if(_e){var re=/^\s*['"](.*)["']\s*$/;_e=_e.split(",");for(var i=0,len=_e.length;i+~]\s?|\s|$)/;var _8=/^(#)?([\w-\*]+)/;var _9=/(\d*)n\+?(\d*)/,_a=/\D/;function child(p,_c){var i=0;var n=p.firstChild;while(n){if(n.nodeType==1){if(++i==_c){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(d){var n=d.firstChild,ni=-1;while(n){var nx=n.nextSibling;if(n.nodeType==3&&!_4.test(n.nodeValue)){d.removeChild(n)}else{n.nodeIndex=++ni}n=nx}return this}function byClassName(c,a,v){if(!v){return c}var r=[],ri=-1,cn;for(var i=0,ci;ci=c[i];i++){if((" "+ci.className+" ").indexOf(v)!=-1){r[++ri]=ci}}return r}function attrValue(n,_1e){if(!n.tagName&&typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(_1e=="for"){return n.htmlFor}if(_1e=="class"||_1e=="className"){return n.className}return n.getAttribute(_1e)||n[_1e]}function getNodes(ns,_20,_21){var _22=[],ri=-1,cs;if(!ns){return _22}_21=_21||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns]}if(!_20){for(var i=0,ni;ni=ns[i];i++){cs=ni.getElementsByTagName(_21);for(var j=0,ci;ci=cs[j];j++){_22[++ri]=ci}}}else{if(_20=="/"||_20==">"){var _29=_21.toUpperCase();for(var i=0,ni,cn;ni=ns[i];i++){cn=ni.children||ni.childNodes;for(var j=0,cj;cj=cn[j];j++){if(cj.nodeName==_29||cj.nodeName==_21||_21=="*"){_22[++ri]=cj}}}}else{if(_20=="+"){var _29=_21.toUpperCase();for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(n&&(n.nodeName==_29||n.nodeName==_21||_21=="*")){_22[++ri]=n}}}else{if(_20=="~"){for(var i=0,n;n=ns[i];i++){while((n=n.nextSibling)&&(n.nodeType!=1||(_21=="*"||n.tagName.toLowerCase()!=_21))){}if(n){_22[++ri]=n}}}}}}return _22}function concat(a,b){if(b.slice){return a.concat(b)}for(var i=0,l=b.length;i1){return nodup(_87)}return _87},selectNode:function(_8c,_8d){return Ext.DomQuery.select(_8c,_8d)[0]},selectValue:function(_8e,_8f,_90){_8e=_8e.replace(_5,"");if(!_3[_8e]){_3[_8e]=Ext.DomQuery.compile(_8e,"select")}var n=_3[_8e](_8f);n=n[0]?n[0]:n;var v=(n&&n.firstChild?n.firstChild.nodeValue:null);return((v===null||v===undefined||v==="")?_90:v)},selectNumber:function(_93,_94,_95){var v=Ext.DomQuery.selectValue(_93,_94,_95||0);return parseFloat(v)},is:function(el,ss){if(typeof el=="string"){el=document.getElementById(el)}var _99=Ext.isArray(el);var _9a=Ext.DomQuery.filter(_99?el:[el],ss);return _99?(_9a.length==el.length):(_9a.length>0)},filter:function(els,ss,_9d){ss=ss.replace(_5,"");if(!_2[ss]){_2[ss]=Ext.DomQuery.compile(ss,"simple")}var _9e=_2[ss](els);return _9d?quickDiff(_9e,els):_9e},matchers:[{re:/^\.([\w-]+)/,select:'n = byClassName(n, null, " {1} ");'},{re:/^\:([\w-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");'},{re:/^#([\w-]+)/,select:'n = byId(n, null, "{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;var m=_9.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!_a.test(a)&&"n+"+a||a);var 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,_d4=true;while(cn=cns[j]){++j;if(cn.nodeType==1||cn.nodeType==3){_d4=false;break}}if(_d4){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,_e9){var ss=_e9.split("|");var 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;var 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;var 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;var 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.Observable=function(){if(this.listeners){this.on(this.listeners);delete this.listeners}};Ext.util.Observable.prototype={fireEvent:function(){if(this.eventsSuspended!==true){var ce=this.events[arguments[0].toLowerCase()];if(typeof ce=="object"){return ce.fire.apply(ce,Array.prototype.slice.call(arguments,1))}}return true},filterOptRe:/^(?:scope|delay|buffer|single)$/,addListener:function(_2,fn,_4,o){if(typeof _2=="object"){o=_2;for(var e in o){if(this.filterOptRe.test(e)){continue}if(typeof o[e]=="function"){this.addListener(e,o[e],o.scope,o)}else{this.addListener(e,o[e].fn,o[e].scope,o[e])}}return}o=(!o||typeof o=="boolean")?{}:o;_2=_2.toLowerCase();var ce=this.events[_2]||true;if(typeof ce=="boolean"){ce=new Ext.util.Event(this,_2);this.events[_2]=ce}ce.addListener(fn,_4,o)},removeListener:function(_8,fn,_a){var ce=this.events[_8.toLowerCase()];if(typeof ce=="object"){ce.removeListener(fn,_a)}},purgeListeners:function(){for(var _c in this.events){if(typeof this.events[_c]=="object"){this.events[_c].clearListeners()}}},relayEvents:function(o,_e){var _f=function(_10){return function(){return this.fireEvent.apply(this,Ext.combine(_10,Array.prototype.slice.call(arguments,0)))}};for(var i=0,len=_e.length;i0},suspendEvents:function(){this.eventsSuspended=true},resumeEvents:function(){this.eventsSuspended=false},getMethodEvent:function(_1a){if(!this.methodEvents){this.methodEvents={}}var e=this.methodEvents[_1a];if(!e){e={};this.methodEvents[_1a]=e;e.originalFn=this[_1a];e.methodName=_1a;e.before=[];e.after=[];var _1c,v,_1e;var obj=this;var _20=function(fn,_22,_23){if((v=fn.apply(_22||obj,_23))!==undefined){if(typeof v==="object"){if(v.returnValue!==undefined){_1c=v.returnValue}else{_1c=v}if(v.cancel===true){_1e=true}}else{if(v===false){_1e=true}else{_1c=v}}}};this[_1a]=function(){_1c=v=undefined;_1e=false;var _24=Array.prototype.slice.call(arguments,0);for(var i=0,len=e.before.length;i0){this.firing=true;var _61=Array.prototype.slice.call(arguments,0);for(var i=0;i<\/script>');var _2c=document.getElementById("ie-deferred-loader");_2c.onreadystatechange=function(){if(this.readyState=="complete"){_29()}}}else{if(Ext.isSafari){_2=setInterval(function(){var rs=document.readyState;if(rs=="complete"){_29()}},10)}}}E.on(window,"load",_29)};var _2e=function(h,o){var _31=new Ext.util.DelayedTask(h);return function(e){e=new Ext.EventObjectImpl(e);_31.delay(o.buffer,h,null,[e])}};var _33=function(h,el,_36,fn,_38){return function(e){Ext.EventManager.removeListener(el,_36,fn,_38);h(e)}};var _3a=function(h,o){return function(e){e=new Ext.EventObjectImpl(e);setTimeout(function(){h(e)},o.delay||10)}};var _3e=function(_3f,_40,opt,fn,_43){var o=(!opt||typeof opt=="boolean")?{}:opt;fn=fn||o.fn;_43=_43||o.scope;var el=Ext.getDom(_3f);if(!el){throw'Error listening for "'+_40+'". Element "'+_3f+"\" doesn't exist."}var h=function(e){if(!window[_a]){return}e=Ext.EventObject.setEvent(e);var t;if(o.delegate){t=e.getTarget(o.delegate,el);if(!t){return}}else{t=e.target}if(o.stopEvent===true){e.stopEvent()}if(o.preventDefault===true){e.preventDefault()}if(o.stopPropagation===true){e.stopPropagation()}if(o.normalized===false){e=e.browserEvent}fn.call(_43||el,e,t,o)};if(o.delay){h=_3a(h,o)}if(o.single){h=_33(h,el,_40,fn,_43)}if(o.buffer){h=_2e(h,o)}_c(el,_40,fn,h,_43);return h};var _49=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/;var pub={addListener:function(_4b,_4c,fn,_4e,_4f){if(typeof _4c=="object"){var o=_4c;for(var e in o){if(_49.test(e)){continue}if(typeof o[e]=="function"){_3e(_4b,e,o,o[e],o.scope)}else{_3e(_4b,e,o[e])}}return}return _3e(_4b,_4c,_4f,fn,_4e)},removeListener:function(_52,_53,fn,_55){return _15(_52,_53,fn,_55)},removeAll:function(_56){return _21(_56)},onDocumentReady:function(fn,_58,_59){if(_3){_1.addListener(fn,_58,_59);_1.fire();_1.clearListeners();return}if(!_1){_2b()}_59=_59||{};if(!_59.delay){_59.delay=1}_1.addListener(fn,_58,_59)},doResizeEvent:function(){_4.fire(D.getViewWidth(),D.getViewHeight())},onWindowResize:function(fn,_5b,_5c){if(!_4){_4=new Ext.util.Event();_5=new Ext.util.DelayedTask(this.doResizeEvent);E.on(window,"resize",this.fireWindowResize,this)}_4.addListener(fn,_5b,_5c)},fireWindowResize:function(){if(_4){if((Ext.isIE||Ext.isAir)&&_5){_5.delay(50)}else{_4.fire(D.getViewWidth(),D.getViewHeight())}}},onTextResize:function(fn,_5e,_5f){if(!_6){_6=new Ext.util.Event();var _60=new Ext.Element(document.createElement("div"));_60.dom.className="x-text-resize";_60.dom.innerHTML="X";_60.appendTo(document.body);_7=_60.dom.offsetHeight;setInterval(function(){if(_60.dom.offsetHeight!=_7){_6.fire(_7,_7=_60.dom.offsetHeight)}},this.textResizeInterval)}_6.addListener(fn,_5e,_5f)},removeResizeListener:function(fn,_62){if(_4){_4.removeListener(fn,_62)}},fireResize:function(){if(_4){_4.fire(D.getViewWidth(),D.getViewHeight())}},ieDeferSrc:false,textResizeInterval:50};pub.on=pub.addListener;pub.un=pub.removeListener;pub.stoppedMouseDownEvent=new Ext.util.Event();return pub}();Ext.onReady=Ext.EventManager.onDocumentReady;(function(){var _63=function(){var bd=document.body||document.getElementsByTagName("body")[0];if(!bd){return false}var cls=[" ",Ext.isIE?"ext-ie "+(Ext.isIE6?"ext-ie6":(Ext.isIE7?"ext-ie7":"ext-ie8")):Ext.isGecko?"ext-gecko "+(Ext.isGecko2?"ext-gecko2":"ext-gecko3"):Ext.isOpera?"ext-opera":Ext.isSafari?"ext-safari":Ext.isChrome?"ext-chrome":""];if(Ext.isMac){cls.push("ext-mac")}if(Ext.isLinux){cls.push("ext-linux")}if(Ext.isBorderBox){cls.push("ext-border-box")}if(Ext.isStrict){var p=bd.parentNode;if(p){p.className+=" ext-strict"}}bd.className+=cls.join(" ");return true};if(!_63()){Ext.onReady(_63)}})();Ext.EventObject=function(){var E=Ext.lib.Event;var _68={3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35};var _69=Ext.isIE?{1:0,4:1,2:2}:(Ext.isSafari?{1:0,2:1,3:2}:{0:0,1:1,2:2});Ext.EventObjectImpl=function(e){if(e){this.setEvent(e.browserEvent||e)}};Ext.EventObjectImpl.prototype={browserEvent:null,button:-1,shiftKey:false,ctrlKey:false,altKey:false,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,setEvent:function(e){if(e==this||(e&&e.browserEvent)){return e}this.browserEvent=e;if(e){this.button=e.button?_69[e.button]:(e.which?e.which-1:-1);if(e.type=="click"&&this.button==-1){this.button=0}this.type=e.type;this.shiftKey=e.shiftKey;this.ctrlKey=e.ctrlKey||e.metaKey;this.altKey=e.altKey;this.keyCode=e.keyCode;this.charCode=e.charCode;this.target=E.getTarget(e);this.xy=E.getXY(e)}else{this.button=-1;this.shiftKey=false;this.ctrlKey=false;this.altKey=false;this.keyCode=0;this.charCode=0;this.target=null;this.xy=[0,0]}return this},stopEvent:function(){if(this.browserEvent){if(this.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(this)}E.stopEvent(this.browserEvent)}},preventDefault:function(){if(this.browserEvent){E.preventDefault(this.browserEvent)}},isNavKeyPress:function(){var k=this.keyCode;k=Ext.isSafari?(_68[k]||k):k;return(k>=33&&k<=40)||k==this.RETURN||k==this.TAB||k==this.ESC},isSpecialKey:function(){var k=this.keyCode;return(this.type=="keypress"&&this.ctrlKey)||k==9||k==13||k==40||k==27||(k==16)||(k==17)||(k>=18&&k<=20)||(k>=33&&k<=35)||(k>=36&&k<=39)||(k>=44&&k<=45)},stopPropagation:function(){if(this.browserEvent){if(this.browserEvent.type=="mousedown"){Ext.EventManager.stoppedMouseDownEvent.fire(this)}E.stopPropagation(this.browserEvent)}},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){var k=this.keyCode||this.charCode;return Ext.isSafari?(_68[k]||k):k},getPageX:function(){return this.xy[0]},getPageY:function(){return this.xy[1]},getTime:function(){if(this.browserEvent){return E.getTime(this.browserEvent)}return null},getXY:function(){return this.xy},getTarget:function(_6f,_70,_71){return _6f?Ext.fly(this.target).findParent(_6f,_70,_71):(_71?Ext.get(this.target):this.target)},getRelatedTarget:function(){if(this.browserEvent){return E.getRelatedTarget(this.browserEvent)}return null},getWheelDelta:function(){var e=this.browserEvent;var _73=0;if(e.wheelDelta){_73=e.wheelDelta/120}else{if(e.detail){_73=-e.detail/3}}return _73},hasModifier:function(){return((this.ctrlKey||this.altKey)||this.shiftKey)?true:false},within:function(el,_75,_76){var t=this[_75?"getRelatedTarget":"getTarget"]();return t&&((_76?(t===Ext.getDom(el)):false)||Ext.fly(el).contains(t))},getPoint:function(){return new Ext.lib.Point(this.xy[0],this.xy[1])}};return new Ext.EventObjectImpl()}();(function(){var D=Ext.lib.Dom;var E=Ext.lib.Event;var A=Ext.lib.Anim;var _4={};var _5=/(-[a-z])/gi;var _6=function(m,a){return a.charAt(1).toUpperCase() };var _9=document.defaultView;Ext.Element=function(_a,_b){var _c=typeof _a=="string"?document.getElementById(_a):_a;if(!_c){return null}var id=_c.id;if(_b!==true&&id&&Ext.Element.cache[id]){return Ext.Element.cache[id]}this.dom=_c;this.id=id||Ext.id(_c)};var El=Ext.Element;El.prototype={originalDisplay:"",visibilityMode:1,defaultUnit:"px",setVisibilityMode:function(_f){this.visibilityMode=_f;return this},enableDisplayMode:function(_10){this.setVisibilityMode(El.DISPLAY);if(typeof _10!="undefined"){this.originalDisplay=_10}return this},findParent:function(_11,_12,_13){var p=this.dom,b=document.body,_16=0,dq=Ext.DomQuery,_18;_12=_12||50;if(typeof _12!="number"){_18=Ext.getDom(_12);_12=10}while(p&&p.nodeType==1&&_16<_12&&p!=b&&p!=_18){if(dq.is(p,_11)){return _13?Ext.get(p):p}_16++;p=p.parentNode}return null},findParentNode:function(_19,_1a,_1b){var p=Ext.fly(this.dom.parentNode,"_internal");return p?p.findParent(_19,_1a,_1b):null},up:function(_1d,_1e){return this.findParentNode(_1d,_1e,true)},is:function(_1f){return Ext.DomQuery.is(this.dom,_1f)},animate:function(_20,_21,_22,_23,_24){this.anim(_20,{duration:_21,callback:_22,easing:_23},_24);return this},anim:function(_25,opt,_27,_28,_29,cb){_27=_27||"run";opt=opt||{};var _2b=Ext.lib.Anim[_27](this.dom,_25,(opt.duration||_28)||0.35,(opt.easing||_29)||"easeOut",function(){Ext.callback(cb,this);Ext.callback(opt.callback,opt.scope||this,[this,opt])},this);opt.anim=_2b;return _2b},preanim:function(a,i){return !a[i]?false:(typeof a[i]=="object"?a[i]:{duration:a[i+1],callback:a[i+2],easing:a[i+3]})},clean:function(_2e){if(this.isCleaned&&_2e!==true){return this}var ns=/\S/;var d=this.dom,n=d.firstChild,ni=-1;while(n){var nx=n.nextSibling;if(n.nodeType==3&&!ns.test(n.nodeValue)){d.removeChild(n)}else{n.nodeIndex=++ni}n=nx}this.isCleaned=true;return this},scrollIntoView:function(_34,_35){var c=Ext.getDom(_34)||Ext.getBody().dom;var el=this.dom;var o=this.getOffsetsTo(c),l=o[0]+c.scrollLeft,t=o[1]+c.scrollTop,b=t+el.offsetHeight,r=l+el.offsetWidth;var ch=c.clientHeight;var ct=parseInt(c.scrollTop,10);var cl=parseInt(c.scrollLeft,10);var cb=ct+ch;var cr=cl+c.clientWidth;if(el.offsetHeight>ch||tcb){c.scrollTop=b-ch}}c.scrollTop=c.scrollTop;if(_35!==false){if(el.offsetWidth>c.clientWidth||lcr){c.scrollLeft=r-c.clientWidth}}c.scrollLeft=c.scrollLeft}return this},scrollChildIntoView:function(_42,_43){Ext.fly(_42,"_scrollChildIntoView").scrollIntoView(this,_43)},autoHeight:function(_44,_45,_46,_47){var _48=this.getHeight();this.clip();this.setHeight(1);setTimeout(function(){var _49=parseInt(this.dom.scrollHeight,10);if(!_44){this.setHeight(_49);this.unclip();if(typeof _46=="function"){_46()}}else{this.setHeight(_48);this.setHeight(_49,_44,_45,function(){this.unclip();if(typeof _46=="function"){_46()}}.createDelegate(this),_47)}}.createDelegate(this),0);return this},contains:function(el){if(!el){return false}return D.isAncestor(this.dom,el.dom?el.dom:el)},isVisible:function(_4b){var vis=!(this.getStyle("visibility")=="hidden"||this.getStyle("display")=="none");if(_4b!==true||!vis){return vis}var p=this.dom.parentNode;while(p&&p.tagName.toLowerCase()!="body"){if(!Ext.fly(p,"_isVisible").isVisible()){return false}p=p.parentNode}return true},select:function(_4e,_4f){return El.select(_4e,_4f,this.dom)},query:function(_50){return Ext.DomQuery.select(_50,this.dom)},child:function(_51,_52){var n=Ext.DomQuery.selectNode(_51,this.dom);return _52?n:Ext.get(n)},down:function(_54,_55){var n=Ext.DomQuery.selectNode(" > "+_54,this.dom);return _55?n:Ext.get(n)},initDD:function(_57,_58,_59){var dd=new Ext.dd.DD(Ext.id(this.dom),_57,_58);return Ext.apply(dd,_59)},initDDProxy:function(_5b,_5c,_5d){var dd=new Ext.dd.DDProxy(Ext.id(this.dom),_5b,_5c);return Ext.apply(dd,_5d)},initDDTarget:function(_5f,_60,_61){var dd=new Ext.dd.DDTarget(Ext.id(this.dom),_5f,_60);return Ext.apply(dd,_61)},setVisible:function(_63,_64){if(!_64||!A){if(this.visibilityMode==El.DISPLAY){this.setDisplayed(_63)}else{this.fixDisplay();this.dom.style.visibility=_63?"visible":"hidden"}}else{var dom=this.dom;var _66=this.visibilityMode;if(_63){this.setOpacity(0.01);this.setVisible(true)}this.anim({opacity:{to:(_63?1:0)}},this.preanim(arguments,1),null,0.35,"easeIn",function(){if(!_63){if(_66==El.DISPLAY){dom.style.display="none"}else{dom.style.visibility="hidden"}Ext.get(dom).setOpacity(1)}})}return this},isDisplayed:function(){return this.getStyle("display")!="none"},toggle:function(_67){this.setVisible(!this.isVisible(),this.preanim(arguments,0));return this},setDisplayed:function(_68){if(typeof _68=="boolean"){_68=_68?this.originalDisplay:"none"}this.setStyle("display",_68);return this},focus:function(){try{this.dom.focus()}catch(e){}return this},blur:function(){try{this.dom.blur()}catch(e){}return this},addClass:function(_69){if(Ext.isArray(_69)){for(var i=0,len=_69.length;idw+_107){x=_105?r.left-w:dw+_107-w}if(x<_107){x=_105?r.right:_107}if((y+h)>dh+_108){y=_104?r.top-h:dh+_108-h}if(y<_108){y=_104?r.bottom:_108}}return[x,y]},getConstrainToXY:function(){var os={top:0,left:0,bottom:0,right:0};return function(el,_10b,_10c,_10d){el=Ext.get(el);_10c=_10c?Ext.applyIf(_10c,os):os;var vw,vh,vx=0,vy=0;if(el.dom==document.body||el.dom==document){vw=Ext.lib.Dom.getViewWidth();vh=Ext.lib.Dom.getViewHeight()}else{vw=el.dom.clientWidth;vh=el.dom.clientHeight;if(!_10b){var vxy=el.getXY();vx=vxy[0];vy=vxy[1]}}var s=el.getScroll();vx+=_10c.left+s.left;vy+=_10c.top+s.top;vw-=_10c.right;vh-=_10c.bottom;var vr=vx+vw;var vb=vy+vh;var xy=_10d||(!_10b?this.getXY():[this.getLeft(true),this.getTop(true)]);var x=xy[0],y=xy[1];var w=this.dom.offsetWidth,h=this.dom.offsetHeight;var _11b=false;if((x+w)>vr){x=vr-w;_11b=true}if((y+h)>vb){y=vb-h;_11b=true}if(x';E.onAvailable(id,function(){var hd=document.getElementsByTagName("head")[0];var re=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig;var _136=/\ssrc=([\'\"])(.*?)\1/i;var _137=/\stype=([\'\"])(.*?)\1/i;var _138;while(_138=re.exec(html)){var _139=_138[1];var _13a=_139?_139.match(_136):false;if(_13a&&_13a[2]){var s=document.createElement("script");s.src=_13a[2];var _13c=_139.match(_137);if(_13c&&_13c[2]){s.type=_13c[2]}hd.appendChild(s)}else{if(_138[2]&&_138[2].length>0){if(window.execScript){window.execScript(_138[2])}else{window.eval(_138[2])}}}}var el=document.getElementById(id);if(el){Ext.removeNode(el)}if(typeof _131=="function"){_131()}});dom.innerHTML=html.replace(/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,"");return this},load:function(){var um=this.getUpdater();um.update.apply(um,arguments);return this},getUpdater:function(){if(!this.updateManager){this.updateManager=new Ext.Updater(this)}return this.updateManager},unselectable:function(){this.dom.unselectable="on";this.swallowEvent("selectstart",true);this.applyStyles("-moz-user-select:none;-khtml-user-select:none;");this.addClass("x-unselectable");return this},getCenterXY:function(){return this.getAlignToXY(document,"c-c")},center:function(_13f){this.alignTo(_13f||document,"c-c");return this},isBorderBox:function(){return _140[this.dom.tagName.toLowerCase()]||Ext.isBorderBox},getBox:function(_141,_142){var xy;if(!_142){xy=this.getXY()}else{var left=parseInt(this.getStyle("left"),10)||0;var top=parseInt(this.getStyle("top"),10)||0;xy=[left,top]}var el=this.dom,w=el.offsetWidth,h=el.offsetHeight,bx;if(!_141){bx={x:xy[0],y:xy[1],0:xy[0],1:xy[1],width:w,height:h}}else{var l=this.getBorderWidth("l")+this.getPadding("l");var r=this.getBorderWidth("r")+this.getPadding("r");var t=this.getBorderWidth("t")+this.getPadding("t");var b=this.getBorderWidth("b")+this.getPadding("b");bx={x:xy[0]+l,y:xy[1]+t,0:xy[0]+l,1:xy[1]+t,width:w-(l+r),height:h-(t+b)}}bx.right=bx.x+bx.width;bx.bottom=bx.y+bx.height;return bx},getFrameWidth:function(_14e,_14f){return _14f&&Ext.isBorderBox?0:(this.getPadding(_14e)+this.getBorderWidth(_14e))},setBox:function(box,_151,_152){var w=box.width,h=box.height;if((_151&&!this.autoBoxAdjust)&&!this.isBorderBox()){w-=(this.getBorderWidth("lr")+this.getPadding("lr"));h-=(this.getBorderWidth("tb")+this.getPadding("tb"))}this.setBounds(box.x,box.y,w,h,this.preanim(arguments,2));return this},repaint:function(){var dom=this.dom;this.addClass("x-repaint");setTimeout(function(){Ext.get(dom).removeClass("x-repaint")},1);return this},getMargins:function(side){if(!side){return{top:parseInt(this.getStyle("margin-top"),10)||0,left:parseInt(this.getStyle("margin-left"),10)||0,bottom:parseInt(this.getStyle("margin-bottom"),10)||0,right:parseInt(this.getStyle("margin-right"),10)||0}}else{return this.addStyles(side,El.margins)}},addStyles:function(_157,_158){var val=0,v,w;for(var i=0,len=_157.length;i=0?w:-1*w)}}}return val},createProxy:function(_15e,_15f,_160){_15e=typeof _15e=="object"?_15e:{tag:"div",cls:_15e};var _161;if(_15f){_161=Ext.DomHelper.append(_15f,_15e,true)}else{_161=Ext.DomHelper.insertBefore(this.dom,_15e,true)}if(_160){_161.setBox(this.getBox())}return _161},mask:function(msg,_163){if(this.getStyle("position")=="static"){this.addClass("x-masked-relative")}if(this._maskMsg){this._maskMsg.remove()}if(this._mask){this._mask.remove()}this._mask=Ext.DomHelper.append(this.dom,{cls:"ext-el-mask"},true);this.addClass("x-masked");this._mask.setDisplayed(true);if(typeof msg=="string"){this._maskMsg=Ext.DomHelper.append(this.dom,{cls:"ext-el-mask-msg",cn:{tag:"div"}},true);var mm=this._maskMsg;mm.dom.className=_163?"ext-el-mask-msg "+_163:"ext-el-mask-msg";mm.dom.firstChild.innerHTML=msg;mm.setDisplayed(true);mm.center(this)}if(Ext.isIE&&!(Ext.isIE7&&Ext.isStrict)&&this.getStyle("height")=="auto"){this._mask.setSize(this.getWidth(),this.getHeight())}return this._mask},unmask:function(){if(this._mask){if(this._maskMsg){this._maskMsg.remove();delete this._maskMsg}this._mask.remove();delete this._mask}this.removeClass(["x-masked","x-masked-relative"])},isMasked:function(){return this._mask&&this._mask.isVisible()},createShim:function(){var el=document.createElement("iframe");el.frameBorder="0";el.className="ext-shim";if(Ext.isIE&&Ext.isSecure){el.src=Ext.SSL_SECURE_URL}var shim=Ext.get(this.dom.parentNode.insertBefore(el,this.dom));shim.autoBoxAdjust=false;return shim},remove:function(){Ext.removeNode(this.dom);delete El.cache[this.dom.id]},hover:function(_167,_168,_169){var _16a=function(e){if(!e.within(this,true)){_167.apply(_169||this,arguments)}};var _16c=function(e){if(!e.within(this,true)){_168.apply(_169||this,arguments)}};this.on("mouseover",_16a,this.dom);this.on("mouseout",_16c,this.dom);return this},addClassOnOver:function(_16e){this.hover(function(){Ext.fly(this,"_internal").addClass(_16e)},function(){Ext.fly(this,"_internal").removeClass(_16e)});return this},addClassOnFocus:function(_16f){this.on("focus",function(){Ext.fly(this,"_internal").addClass(_16f)},this.dom);this.on("blur",function(){Ext.fly(this,"_internal").removeClass(_16f)},this.dom);return this},addClassOnClick:function(_170){var dom=this.dom;this.on("mousedown",function(){Ext.fly(dom,"_internal").addClass(_170);var d=Ext.getDoc();var fn=function(){Ext.fly(dom,"_internal").removeClass(_170);d.removeListener("mouseup",fn)};d.on("mouseup",fn)});return this},swallowEvent:function(_174,_175){var fn=function(e){e.stopPropagation();if(_175){e.preventDefault()}};if(Ext.isArray(_174)){for(var i=0,len=_174.length;idom.clientHeight||dom.scrollWidth>dom.clientWidth},scrollTo:function(side,_1ad,_1ae){var prop=side.toLowerCase()=="left"?"scrollLeft":"scrollTop";if(!_1ae||!A){this.dom[prop]=_1ad}else{var to=prop=="scrollLeft"?[_1ad,this.dom.scrollTop]:[this.dom.scrollLeft,_1ad];this.anim({scroll:{to:to}},this.preanim(arguments,2),"scroll")}return this},scroll:function(_1b1,_1b2,_1b3){if(!this.isScrollable()){return}var el=this.dom;var l=el.scrollLeft,t=el.scrollTop;var w=el.scrollWidth,h=el.scrollHeight;var cw=el.clientWidth,ch=el.clientHeight;_1b1=_1b1.toLowerCase();var _1bb=false;var a=this.preanim(arguments,2);switch(_1b1){case"l":case"left":if(w-l>cw){var v=Math.min(l+_1b2,w-cw);this.scrollTo("left",v,a);_1bb=true}break;case"r":case"right":if(l>0){var v=Math.max(l-_1b2,0);this.scrollTo("left",v,a);_1bb=true}break;case"t":case"top":case"up":if(t>0){var v=Math.max(t-_1b2,0);this.scrollTo("top",v,a);_1bb=true}break;case"b":case"bottom":case"down":if(h-t>ch){var v=Math.min(t+_1b2,h-ch);this.scrollTo("top",v,a);_1bb=true}break}return _1bb},translatePoints:function(x,y){if(typeof x=="object"||Ext.isArray(x)){y=x[1];x=x[0]}var p=this.getStyle("position");var o=this.getXY();var l=parseInt(this.getStyle("left"),10);var t=parseInt(this.getStyle("top"),10);if(isNaN(l)){l=(p=="relative")?0:this.dom.offsetLeft}if(isNaN(t)){t=(p=="relative")?0:this.dom.offsetTop}return{left:(x-o[0]+l),top:(y-o[1]+t)}},getScroll:function(){var d=this.dom,doc=document;if(d==doc||d==doc.body){var l,t;if(Ext.isIE&&Ext.isStrict){l=doc.documentElement.scrollLeft||(doc.body.scrollLeft||0);t=doc.documentElement.scrollTop||(doc.body.scrollTop||0)}else{l=window.pageXOffset||(doc.body.scrollLeft||0);t=window.pageYOffset||(doc.body.scrollTop||0)}return{left:l,top:t}}else{return{left:d.scrollLeft,top:d.scrollTop}}},getColor:function(attr,_1c9,_1ca){var v=this.getStyle(attr);if(!v||v=="transparent"||v=="inherit"){return _1c9}var _1cc=typeof _1ca=="undefined"?"#":_1ca;if(v.substr(0,4)=="rgb("){var rvs=v.slice(4,v.length-1).split(",");for(var i=0;i<3;i++){var h=parseInt(rvs[i]);var s=h.toString(16);if(h<16){s="0"+s}_1cc+=s}}else{if(v.substr(0,1)=="#"){if(v.length==4){for(var i=1;i<4;i++){var c=v.charAt(i);_1cc+=c+c}}else{if(v.length==7){_1cc+=v.substr(1)}}}}return(_1cc.length>5?_1cc.toLowerCase():_1c9)},boxWrap:function(cls){cls=cls||"x-box";var el=Ext.get(this.insertHtml("beforeBegin",String.format('
'+El.boxMarkup+"
",cls)));el.child("."+cls+"-mc").dom.appendChild(this.dom);return el},getAttributeNS:Ext.isIE?function(ns,name){var d=this.dom;var type=typeof d[ns+":"+name];if(type!="undefined"&&type!="unknown"){return d[ns+":"+name]}return d[name]}:function(ns,name){var d=this.dom;return d.getAttributeNS(ns,name)||d.getAttribute(ns+":"+name)||d.getAttribute(name)||d[name]},getTextWidth:function(text,min,max){return(Ext.util.TextMetrics.measure(this.dom,Ext.value(text,this.dom.innerHTML,true)).width).constrain(min||0,max||1000000)}};var ep=El.prototype;ep.on=ep.addListener;ep.mon=ep.addListener;ep.getUpdateManager=ep.getUpdater;ep.un=ep.removeListener;ep.autoBoxAdjust=true;El.unitPattern=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i;El.addUnits=function(v,_1e0){if(v===""||v=="auto"){return v}if(v===undefined){return""}if(typeof v=="number"||!El.unitPattern.test(v)){return v+(_1e0||"px")}return v};El.boxMarkup='
';El.VISIBILITY=1;El.DISPLAY=2;El.borders={l:"border-left-width",r:"border-right-width",t:"border-top-width",b:"border-bottom-width"};El.paddings={l:"padding-left",r:"padding-right",t:"padding-top",b:"padding-bottom"};El.margins={l:"margin-left",r:"margin-right",t:"margin-top",b:"margin-bottom"};El.cache={};var _1e1;El.get=function(el){var ex,elm,id;if(!el){return null}if(typeof el=="string"){if(!(elm=document.getElementById(el))){return null}if(ex=El.cache[el]){ex.dom=elm}else{ex=El.cache[el]=new El(elm)}return ex}else{if(el.tagName){if(!(id=el.id)){id=Ext.id(el)}if(ex=El.cache[id]){ex.dom=el}else{ex=El.cache[id]=new El(el)}return ex}else{if(el instanceof El){if(el!=_1e1){el.dom=document.getElementById(el.id)||el.dom;El.cache[el.id]=el}return el}else{if(el.isComposite){return el}else{if(Ext.isArray(el)){return El.select(el)}else{if(el==document){if(!_1e1){var f=function(){};f.prototype=El.prototype;_1e1=new f();_1e1.dom=document}return _1e1}}}}}}return null};El.uncache=function(el){for(var i=0,a=arguments,len=a.length; i0){_32()}else{el.afterFx(o)}})};_32.call(this)});return this},pause:function(_35){var el=this.getFxEl();var o={};el.queueFx(o,function(){setTimeout(function(){el.afterFx(o)},_35*1000)});return this},fadeIn:function(o){var el=this.getFxEl();o=o||{};el.queueFx(o,function(){this.setOpacity(0);this.fixDisplay();this.dom.style.visibility="visible";var to=o.endOpacity||1;arguments.callee.anim=this.fxanim({opacity:{to:to}},o,null,0.5,"easeOut",function(){if(to==1){this.clearOpacity()}el.afterFx(o)})});return this},fadeOut:function(o){var el=this.getFxEl();o=o||{};el.queueFx(o,function(){var to=o.endOpacity||0;arguments.callee.anim=this.fxanim({opacity:{to:to}},o,null,0.5,"easeOut",function(){if(to===0){if(this.visibilityMode==Ext.Element.DISPLAY||o.useDisplay){this.dom.style.display="none"}else{this.dom.style.visibility="hidden"}this.clearOpacity()}el.afterFx(o)})});return this},scale:function(w,h,o){this.shift(Ext.apply({},o,{width:w,height:h}));return this},shift:function(o){var el=this.getFxEl();o=o||{};el.queueFx(o,function(){var a={},w=o.width,h=o.height,x=o.x,y=o.y,op=o.opacity;if(w!==undefined){a.width={to:this.adjustWidth(w)}}if(h!==undefined){a.height={to:this.adjustHeight(h)}}if(o.left!==undefined){a.left={to:o.left}}if(o.top!==undefined){a.top={to:o.top}}if(o.right!==undefined){a.right={to:o.right}}if(o.bottom!==undefined){a.bottom={to:o.bottom}}if(x!==undefined||y!==undefined){a.points={to:[x!==undefined?x:this.getX(),y!==undefined?y:this.getY()]}}if(op!==undefined){a.opacity={to:op}}if(o.xy!==undefined){a.points={to:o.xy}}arguments.callee.anim=this.fxanim(a,o,"motion",0.35,"easeOut",function(){el.afterFx(o)})});return this},ghost:function(_49,o){var el=this.getFxEl();o=o||{};el.queueFx(o,function(){_49=_49||"b";var r=this.getFxRestore();var w=this.getWidth(),h=this.getHeight();var st=this.dom.style;var _50=function(){if(o.useDisplay){el.setDisplayed(false)}else{el.hide()}el.clearOpacity();el.setPositioning(r.pos);st.width=r.width;st.height=r.height;el.afterFx(o)};var a={opacity:{to:0},points:{}},pt=a.points;switch(_49.toLowerCase()){case"t":pt.by=[0,-h];break;case"l":pt.by=[-w,0];break;case"r":pt.by=[w,0];break;case"b":pt.by=[0,h];break;case"tl":pt.by=[-w,-h];break;case"bl":pt.by=[-w,h];break;case"br":pt.by=[w,h];break;case"tr":pt.by=[w,-h];break }arguments.callee.anim=this.fxanim(a,o,"motion",0.5,"easeOut",_50)});return this},syncFx:function(){this.fxDefaults=Ext.apply(this.fxDefaults||{},{block:false,concurrent:true,stopFx:false});return this},sequenceFx:function(){this.fxDefaults=Ext.apply(this.fxDefaults||{},{block:false,concurrent:false,stopFx:false});return this},nextFx:function(){var ef=this.fxQueue[0];if(ef){ef.call(this)}},hasActiveFx:function(){return this.fxQueue&&this.fxQueue[0]},stopFx:function(){if(this.hasActiveFx()){var cur=this.fxQueue[0];if(cur&&cur.anim&&cur.anim.isAnimated()){this.fxQueue=[cur];cur.anim.stop(true)}}return this},beforeFx:function(o){if(this.hasActiveFx()&&!o.concurrent){if(o.stopFx){this.stopFx();return true}return false}return true},hasFxBlock:function(){var q=this.fxQueue;return q&&q[0]&&q[0].block},queueFx:function(o,fn){if(!this.fxQueue){this.fxQueue=[]}if(!this.hasFxBlock()){Ext.applyIf(o,this.fxDefaults);if(!o.concurrent){var run=this.beforeFx(o);fn.block=o.block;this.fxQueue.push(fn);if(run){this.nextFx()}}else{fn.call(this)}}return this},fxWrap:function(pos,o,vis){var _5d;if(!o.wrap||!(_5d=Ext.get(o.wrap))){var _5e;if(o.fixPosition){_5e=this.getXY()}var div=document.createElement("div");div.style.visibility=vis;_5d=Ext.get(this.dom.parentNode.insertBefore(div,this.dom));_5d.setPositioning(pos);if(_5d.getStyle("position")=="static"){_5d.position("relative")}this.clearPositioning("auto");_5d.clip();_5d.dom.appendChild(this.dom);if(_5e){_5d.setXY(_5e)}}return _5d},fxUnwrap:function(_60,pos,o){this.clearPositioning();this.setPositioning(pos);if(!o.wrap){_60.dom.parentNode.insertBefore(this.dom,_60.dom);_60.remove()}},getFxRestore:function(){var st=this.dom.style;return{pos:this.getPositioning(),width:st.width,height:st.height}},afterFx:function(o){if(o.afterStyle){this.applyStyles(o.afterStyle)}if(o.afterCls){this.addClass(o.afterCls)}if(o.remove===true){this.remove()}Ext.callback(o.callback,o.scope,[this]);if(!o.concurrent){this.fxQueue.shift();this.nextFx()}},getFxEl:function(){return Ext.get(this.dom)},fxanim:function(_65,opt,_67,_68,_69,cb){_67=_67||"run";opt=opt||{};var _6b=Ext.lib.Anim[_67](this.dom,_65,(opt.duration||_68)||0.35,(opt.easing||_69)||"easeOut",function(){Ext.callback(cb,this)},this);opt.anim=_6b;return _6b}};Ext.Fx.resize=Ext.Fx.scale;Ext.apply(Ext.Element.prototype,Ext.Fx);Ext.CompositeElement=function(_1){this.elements=[];this.addElements(_1)};Ext.CompositeElement.prototype={isComposite:true,addElements:function(_2){if(!_2){return this}if(typeof _2=="string"){_2=Ext.Element.selectorFunction(_2)}var _3=this.elements;var _4=_3.length-1;for(var i=0,_6=_2.length;i<_6;i++){_3[++_4]=Ext.get(_2[i])}return this},fill:function(_7){this.elements=[];this.add(_7);return this},filter:function(_8){var _9=[];this.each(function(el){if(el.is(_8)){_9[_9.length]=el.dom}});this.fill(_9);return this},invoke:function(fn,_c){var _d=this.elements;for(var i=0,_f=_d.length;i<_f;i++){Ext.Element.prototype[fn].apply(_d[i],_c)}return this},add:function(els){if(typeof els=="string"){this.addElements(Ext.Element.selectorFunction(els))}else{if(els.length!==undefined){this.addElements(els)}else{this.addElements([els])}}return this},each:function(fn,_12){var els=this.elements;for(var i=0,len=els.length;i"}if(typeof _8.scripts!="undefined"){this.loadScripts=_8.scripts}if(typeof _8.timeout!="undefined"){this.timeout=_8.timeout}}this.showLoading();if(!_7){this.defaultUrl=_4}if(typeof _4=="function"){_4=_4.call(this)}var o=Ext.apply({},{url:_4,params:(typeof _5=="function"&&_9)?_5.createDelegate(_9):_5,success:this.processSuccess,failure:this.processFailure,scope:this,callback:undefined,timeout:(this.timeout*1000),disableCaching:this.disableCaching,argument:{options:_8,url:_4,form:null,callback:_6,scope:_9||window,params:_5}},_8);this.transaction=Ext.Ajax.request(o)}},formUpdate:function(_b,_c,_d,_e){if(this.fireEvent("beforeupdate",this.el,_b,_c)!==false){if(typeof _c=="function"){_c=_c.call(this)}_b=Ext.getDom(_b);this.transaction=Ext.Ajax.request({form:_b,url:_c,success:this.processSuccess,failure:this.processFailure,scope:this,timeout:(this.timeout*1000),argument:{url:_c,form:_b,callback:_e,reset:_d}});this.showLoading.defer(1,this)}},refresh:function(_f){if(this.defaultUrl==null){return}this.update(this.defaultUrl,null,_f,true)},startAutoRefresh:function(_10,url,_12,_13,_14){if(_14){this.update(url||this.defaultUrl,_12,_13,true)}if(this.autoRefreshProcId){clearInterval(this.autoRefreshProcId)}this.autoRefreshProcId=setInterval(this.update.createDelegate(this,[url||this.defaultUrl,_12,_13,true]),_10*1000)},stopAutoRefresh:function(){if(this.autoRefreshProcId){clearInterval(this.autoRefreshProcId);delete this.autoRefreshProcId}},isAutoRefreshing:function(){return this.autoRefreshProcId?true:false},showLoading:function(){if(this.showLoadIndicator){this.el.update(this.indicatorText)}},processSuccess:function(_15){this.transaction=null;if(_15.argument.form&&_15.argument.reset){try{_15.argument.form.reset()}catch(e){}}if(this.loadScripts){this.renderer.render(this.el,_15,this,this.updateComplete.createDelegate(this,[_15]))}else{this.renderer.render(this.el,_15,this);this.updateComplete(_15)}},updateComplete:function(_16){this.fireEvent("update",this.el,_16);if(typeof _16.argument.callback=="function"){_16.argument.callback.call(_16.argument.scope,this.el,true,_16,_16.argument.options)}},processFailure:function(_17){this.transaction=null;this.fireEvent("failure",this.el,_17);if(typeof _17.argument.callback=="function"){_17.argument.callback.call(_17.argument.scope,this.el,false,_17,_17.argument.options)}},setRenderer:function(_18){this.renderer=_18},getRenderer:function(){return this.renderer},setDefaultUrl:function(_19){this.defaultUrl=_19},abort:function(){if(this.transaction){Ext.Ajax.abort(this.transaction)}},isUpdating:function(){if(this.transaction){return Ext.Ajax.isLoading(this.transaction)}return false}});Ext.Updater.defaults={timeout:30,loadScripts:false,sslBlankUrl:(Ext.SSL_SECURE_URL||"javascript:false"),disableCaching:false,showLoadIndicator:true,indicatorText:'
Loading...
'};Ext.Updater.updateElement=function(el,url,_1c,_1d){var um=Ext.get(el).getUpdater();Ext.apply(um,_1d);um.update(url,_1c,_1d?_1d.callback:null)};Ext.Updater.BasicRenderer=function(){};Ext.Updater.BasicRenderer.prototype={render:function(el,_20,_21,_22){el.update(_20.responseText,_21.loadScripts,_22)}};Ext.UpdateManager=Ext.Updater;(function(){function xf(_1){var _2=Array.prototype.slice.call(arguments,1);return _1.replace(/\{(\d+)\}/g,function(m,i){return _2[i]})}Date.formatCodeToRegex=function(_5,_6){var p=Date.parseCodes[_5];if(p){p=Ext.type(p)=="function"?p():p;Date.parseCodes[_5]=p}return p?Ext.applyIf({c:p.c?xf(p.c,_6||"{0}"):p.c},p):{g:0,c:null,s:Ext.escapeRe(_5)}};var $f=Date.formatCodeToRegex;Ext.apply(Date,{parseFunctions:{count:0},parseRegexes:[],formatFunctions:{count:0},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",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(_9){return Date.monthNames[_9].substring(0,3)},getShortDayName:function(_a){return Date.dayNames[_a].substring(0,3)},getMonthNumber:function(_b){return Date.monthNumbers[_b.substring(0,1).toUpperCase()+_b.substring(1,3).toLowerCase()]},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:"this.getFullYear()",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 c="Y-m-dTH:i:sP",_d=[],i=0,l=c.length; i 0){","{2}","if(u){","v = new Date(u * 1000);","}else if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0 && ms >= 0){","v = new Date(y, m, d, h, i, s, ms);","}else if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0){","v = new Date(y, m, d, h, i, s);","}else if (y >= 0 && m >= 0 && d > 0 && h >= 0 && i >= 0){","v = new Date(y, m, d, h, i);","}else if (y >= 0 && m >= 0 && d > 0 && h >= 0){","v = new Date(y, m, d, h);","}else if (y >= 0 && m >= 0 && d > 0){","v = new Date(y, m, d);","}else if (y >= 0 && m >= 0){","v = new Date(y, m);","}else if (y >= 0){","v = new Date(y);","}","}","return (v && (z != null || o != null))? (Ext.type(z) == 'number' ? v.add(Date.SECOND, -v.getTimezoneOffset() * 60 - z) : v.add(Date.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn))) : v;","}"].join("\n");return function(_1e){var _1f="parse"+Date.parseFunctions.count++,_20=Date.parseRegexes.length,_21=1,_22="",_23="",_24=false,ch="";Date.parseFunctions[_1e]=_1f;for(var i=0;i<_1e.length;++i){ch=_1e.charAt(i);if(!_24&&ch=="\\"){_24=true}else{if(_24){_24=false;_23+=String.escape(ch)}else{var obj=$f(ch,_21);_21+=obj.g;_23+=obj.s;if(obj.g&&obj.c){_22+=obj.c}}}}Date.parseRegexes[_20]=new RegExp("^"+_23+"$","i");eval(xf(_1d,_1f,_20,_22))}}(),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 a=[],i=0;i<7;a.push(Date.getShortDayName(i)),++i){}return{g:0,c:null,s:"(?:"+a.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:0,c:null,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 a=[],i=0;i<12;a.push(Date.getShortMonthName(i)),++i){}return Ext.applyIf({s:"("+a.join("|")+")"},$f("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 $f("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:{g:1,c:"if (results[{0}] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"},A:{g:1,c:"if (results[{0}] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"},g:function(){return $f("G")},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(\\d{1,2})"},h:function(){return $f("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);","var hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60);","var 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);","var hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60);","var 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:"z = results[{0}] * 1;\nz = (-43200 <= z && z <= 50400)? z : null;\n",s:"([+-]?\\d{1,5})"},c:function(){var _2c=[],arr=[$f("Y",1),$f("m",2),$f("d",3),$f("h",4),$f("i",5),$f("s",6),{c:"ms = (results[7] || '.0').substring(1); ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:["if(results[9] == 'Z'){","z = 0;","}else{",$f("P",9).c,"}"].join("\n")}];for(var i=0,l=arr.length;i0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+(_32?":":"")+String.leftPad(Math.abs(this.getTimezoneOffset()%60),2,"0")},getDayOfYear:function(){var num=0;Date.daysInMonth[1]=this.isLeapYear()?29:28;for(var i=0;i28){day=Math.min(day,this.getFirstDateOfMonth().add("mo",_3f).getLastDateOfMonth().getDate())}d.setDate(day);d.setMonth(this.getMonth()+_3f);break;case Date.YEAR:d.setFullYear(this.getFullYear()+_3f);break}return d },between:function(_42,end){var t=this.getTime();return _42.getTime()<=t&&t<=end.getTime()}});Date.prototype.format=Date.prototype.dateFormat;if(Ext.isSafari){Date.brokenSetMonth=Date.prototype.setMonth;Date.prototype.setMonth=function(num){if(num<=-1){var n=Math.ceil(-num);var _47=Math.ceil(n/12);var _48=(n%12)?12-n%12:0;this.setFullYear(this.getFullYear()-_47);return Date.brokenSetMonth.call(this,_48)}else{return Date.brokenSetMonth.apply(this,arguments)}}}Ext.util.DelayedTask=function(fn,_2,_3){var id=null,d,t;var _7=function(){var _8=new Date().getTime();if(_8-t>=d){clearInterval(id);id=null;fn.apply(_2,_3||[])}};this.delay=function(_9,_a,_b,_c){if(id&&_9!=d){this.cancel()}d=_9;t=new Date().getTime();fn=_a||fn;_2=_b||_2;_3=_c||_3;if(!id){id=setInterval(_7,d)}};this.cancel=function(){if(id){clearInterval(id);id=null}}};Ext.util.TaskRunner=function(_1){_1=_1||10;var _2=[],_3=[];var id=0;var _5=false;var _6=function(){_5=false;clearInterval(id);id=0};var _7=function(){if(!_5){_5=true;id=setInterval(_8,_1)}};var _9=function(t){_3.push(t);if(t.onStop){t.onStop.apply(t.scope||t)}};var _8=function(){if(_3.length>0){for(var i=0,_c=_3.length;i<_c;i++){_2.remove(_3[i])}_3=[];if(_2.length<1){_6();return}}var _d=new Date().getTime();for(var i=0,_c=_2.length;i<_c;++i){var t=_2[i];var _f=_d-t.taskRunTime;if(t.interval<=_f){var rt=t.run.apply(t.scope||t,t.args||[++t.taskRunCount]);t.taskRunTime=_d;if(rt===false||t.taskRunCount===t.repeat){_9(t);return}}if(t.duration&&t.duration<=(_d-t.taskStartTime)){_9(t)}}};this.start=function(_11){_2.push(_11);_11.taskStartTime=new Date().getTime();_11.taskRunTime=0;_11.taskRunCount=0;_7();return _11};this.stop=function(_12){_9(_12);return _12};this.stopAll=function(){_6();for(var i=0,len=_2.length;i1||Ext.isArray(_b)){var _c=arguments.length>1?arguments:_b;for(var i=0,_e=_c.length;i<_e;i++){this.add(_c[i])}}else{for(var _f in _b){if(this.allowFunctions||typeof _b[_f]!="function"){this.add(_f,_b[_f])}}}},each:function(fn,_11){var _12=[].concat(this.items);for(var i=0,len=_12.length;i=this.length){return this.add(key,o)}this.length++;this.items.splice(_1d,0,o);if(typeof key!="undefined"&&key!=null){this.map[key]=o}this.keys.splice(_1d,0,key);this.fireEvent("add",_1d,o,key);return o},remove:function(o){return this.removeAt(this.indexOf(o))},removeAt:function(_21){if(_21=0){this.length--;var o=this.items[_21];this.items.splice(_21,1);var key=this.keys[_21];if(typeof key!="undefined"){delete this.map[key]}this.keys.splice(_21,1);this.fireEvent("remove",o,key);return o}return false},removeKey:function(key){return this.removeAt(this.indexOfKey(key))},getCount:function(){return this.length},indexOf:function(o){return this.items.indexOf(o)},indexOfKey:function(key){return this.keys.indexOf(key)},item:function(key){var _28=typeof this.map[key]!="undefined"?this.map[key]:this.items[key];return typeof _28!="function"||this.allowFunctions?_28:null},itemAt:function(_29){return this.items[_29]},key:function(key){return this.map[key]},contains:function(o){return this.indexOf(o)!=-1},containsKey:function(key){return typeof this.map[key]!="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(_2d,dir,fn){var dsc=String(dir).toUpperCase()=="DESC"?-1:1;fn=fn||function(a,b){return a-b};var c=[],k=this.keys,_35=this.items;for(var i=0,len=_35.length;iv2?1:(v1=end;i--){r[r.length]=_45[i]}}return r},filter:function(_48,_49,_4a,_4b){if(Ext.isEmpty(_49,false)){return this.clone()}_49=this.createValueMatcher(_49,_4a,_4b);return this.filterBy(function(o){return o&&_49.test(o[_48])})},filterBy:function(fn,_4e){var r=new Ext.util.MixedCollection();r.getKey=this.getKey;var k=this.keys,it=this.items;for(var i=0,len=it.length;i0){for(var i=0;i<_5c;i++){if(fn.call(_5b||this,it[i],k[i])){return i}}}return -1},createValueMatcher:function(_61,_62,_63){if(!_61.exec){_61=String(_61);_61=new RegExp((_62===true?"":"^")+Ext.escapeRe(_61),_63?"":"i")}return _61},clone:function(){var r=new Ext.util.MixedCollection();var k=this.keys,it=this.items;for(var i=0,len=it.length;i_3){return _2.substr(0,_3-3)+"..."}return _2},undef:function(_4){return _4!==undefined?_4:""},defaultValue:function(_5,_6){return _5!==undefined&&_5!==""?_5:_6},htmlEncode:function(_7){return !_7?_7:String(_7).replace(/&/g,"&").replace(/>/g,">").replace(/").replace(/</g,"<").replace(/"/g,'"').replace(/&/g,"&")},trim:function(_9){return String(_9).replace(_1,"")},substr:function(_a,_b,_c){return String(_a).substr(_b,_c)},lowercase:function(_d){return String(_d).toLowerCase()},uppercase:function(_e){return String(_e).toUpperCase()},capitalize:function(_f){return !_f?_f:_f.charAt(0).toUpperCase()+_f.substr(1).toLowerCase()},call:function(_10,fn){if(arguments.length>2){var _12=Array.prototype.slice.call(arguments,2);_12.unshift(_10);return eval(fn).apply(window,_12)}else{return eval(fn).call(window,_10)}},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(".");var _15=ps[0];var sub=ps[1]?"."+ps[1]:".00";var r=/(\d+)(\d{3})/;while(r.test(_15)){_15=_15.replace(r,"$1,$2")}v=_15+sub;if(v.charAt(0)=="-"){return"-$"+v.substr(1)}return"$"+v},date:function(v,_19){if(!v){return""}if(!Ext.isDate(v)){v=new Date(Date.parse(v))}return v.dateFormat(_19||"m/d/Y")},dateRenderer:function(_1a){return function(v){return Ext.util.Format.date(v,_1a)}},stripTagsRE:/<\/?[^>]+>/gi,stripTags:function(v){return !v?v:String(v).replace(this.stripTagsRE,"")},stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,stripScripts:function(v){return !v?v:String(v).replace(this.stripScriptsRe,"")},fileSize:function(_1e){if(_1e<1024){return _1e+" bytes"}else{if(_1e<1048576){return(Math.round(((_1e*10)/1024))/10)+" KB"}else{return(Math.round(((_1e*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)}}(),nl2br:function(v){return v===undefined||v===null?"":v.replace(/\n/g,"
")}}}();Ext.XTemplate=function(){Ext.XTemplate.superclass.constructor.apply(this,arguments);var s=this.html;s=["",s,""].join("");var re=/]*>((?:(?=([^<]+))\2|<(?!tpl\b[^>]*>))*?)<\/tpl>/;var _3=/^]*?for="(.*?)"/;var _4=/^]*?if="(.*?)"/;var _5=/^]*?exec="(.*?)"/;var m,id=0;var _8=[];while(m=s.match(re)){var m2=m[0].match(_3);var m3=m[0].match(_4);var m4=m[0].match(_5);var _c=null,fn=null,_e=null;var _f=m2&&m2[1]?m2[1]:"";if(m3){_c=m3&&m3[1]?m3[1]:null;if(_c){fn=new Function("values","parent","xindex","xcount","with(values){ return "+(Ext.util.Format.htmlDecode(_c))+"; }")}}if(m4){_c=m4&&m4[1]?m4[1]:null;if(_c){_e=new Function("values","parent","xindex","xcount","with(values){ "+(Ext.util.Format.htmlDecode(_c))+"; }")}}if(_f){switch(_f){case".":_f=new Function("values","parent","with(values){ return values; }");break;case"..":_f=new Function("values","parent","with(values){ return parent; }");break;default:_f=new Function("values","parent","with(values){ return "+_f+"; }")}}_8.push({id:id,target:_f,exec:_e,test:fn,body:m[1]||""});s=s.replace(m[0],"{xtpl"+id+"}");++id}for(var i=_8.length-1;i>=0;--i){this.compileTpl(_8[i])}this.master=_8[_8.length-1];this.tpls=_8};Ext.extend(Ext.XTemplate,Ext.Template,{re:/\{([\w-\.\#]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\\]\s?[\d\.\+\-\*\\\(\)]+)?\}/g,codeRe:/\{\[((?:\\\]|.|\n)*?)\]\}/g,applySubTemplate:function(id,_12,_13,_14,_15){var t=this.tpls[id];if(t.test&&!t.test.call(this,_12,_13,_14,_15)){return""}if(t.exec&&t.exec.call(this,_12,_13,_14,_15)){return""}var vs=t.target?t.target.call(this,_12,_13):_12;_13=t.target?_12:_13;if(t.target&&Ext.isArray(vs)){var buf=[];for(var i=0,len=vs.length;i=0;--j){_1[_12[j].selectorText]=_12[j]}}catch(e){}},getRules:function(_14){if(_1==null||_14){_1={};var ds=_2.styleSheets;for(var i=0,len=ds.length;i=37&&k<=40){e.stopEvent()}},relay:function(e){var k=e.getKey();var h=this.keyToHandler[k];if(h&&this[h]){if(this.doRelay(e,this[h],h)!==true){e[this.defaultEventAction]()}}},doRelay:function(e,h,_b){return h.call(this.scope||this,e)},enter:false,left:false,right:false,up:false,down:false,tab:false,esc:false,pageUp:false,pageDown:false,del:false,home:false,end: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"},enable:function(){if(this.disabled){if(this.forceKeyDown||Ext.isIE||Ext.isSafari3||Ext.isAir){this.el.on("keydown",this.relay,this)}else{this.el.on("keydown",this.prepareEvent,this);this.el.on("keypress",this.relay,this)}this.disabled=false}},disable:function(){if(!this.disabled){if(this.forceKeyDown||Ext.isIE||Ext.isSafari3||Ext.isAir){this.el.un("keydown",this.relay,this)}else{this.el.un("keydown",this.prepareEvent,this);this.el.un("keypress",this.relay,this)}this.disabled=true}}};Ext.KeyMap=function(el,_2,_3){this.el=Ext.get(el);this.eventName=_3||"keydown";this.bindings=[];if(_2){this.addBinding(_2)}this.enable()};Ext.KeyMap.prototype={stopEvent:false,addBinding:function(_4){if(Ext.isArray(_4)){for(var i=0,_6=_4.length;i<_6;i++){this.addBinding(_4[i])}return}var _7=_4.key,_8=_4.shift,_9=_4.ctrl,_a=_4.alt,fn=_4.fn||_4.handler,_c=_4.scope;if(_4.stopEvent){this.stopEvent=_4.stopEvent}if(typeof _7=="string"){var ks=[];var _e=_7.toUpperCase();for(var j=0,_6=_e.length;j<_6;j++){ks.push(_e.charCodeAt(j))}_7=ks}var _10=Ext.isArray(_7);var _11=function(e){if((!_8||e.shiftKey)&&(!_9||e.ctrlKey)&&(!_a||e.altKey)){var k=e.getKey();if(_10){for(var i=0,_6=_7.length;i<_6;i++){if(_7[i]==k){if(this.stopEvent){e.stopEvent()}fn.call(_c||window,k,e);return}}}else{if(k==_7){if(this.stopEvent){e.stopEvent()}fn.call(_c||window,k,e)}}}};this.bindings.push(_11)},on:function(key,fn,_17){var _18,_19,_1a,alt;if(typeof key=="object"&&!Ext.isArray(key)){_18=key.key;_19=key.shift;_1a=key.ctrl;alt=key.alt}else{_18=key}this.addBinding({key:_18,shift:_19,ctrl:_1a,alt:alt,fn:fn,scope:_17})},handleKeyDown:function(e){if(this.enabled){var b=this.bindings;for(var i=0,len=b.length;i=this.minX;i=i-_54){if(!_55[i]){this.xTicks[this.xTicks.length]=i;_55[i]=true}}for(i=this.initPageX;i<=this.maxX;i=i+_54){if(!_55[i]){this.xTicks[this.xTicks.length]=i;_55[i]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(_57,_58){this.yTicks=[];this.yTickSize=_58;var _59={};for(var i=this.initPageY;i>=this.minY;i=i-_58){if(!_59[i]){this.yTicks[this.yTicks.length]=i;_59[i]=true}}for(i=this.initPageY;i<=this.maxY;i=i+_58){if(!_59[i]){this.yTicks[this.yTicks.length]=i;_59[i]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(_5b,_5c,_5d){this.leftConstraint=_5b;this.rightConstraint=_5c;this.minX=this.initPageX-_5b;this.maxX=this.initPageX+_5c;if(_5d){this.setXTicks(this.initPageX,_5d)}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(iUp,_5f,_60){this.topConstraint=iUp;this.bottomConstraint=_5f;this.minY=this.initPageY-iUp;this.maxY=this.initPageY+_5f;if(_60){this.setYTicks(this.initPageY,_60)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var dx=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var dy=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(dx,dy)}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(val,_64){if(!_64){return val}else{if(_64[0]>=val){return _64[0]}else{for(var i=0,len=_64.length;i=val){var _68=val-_64[i];var _69=_64[_67]-val;return(_69>_68)?_64[i]:_64[_67]}}return _64[_64.length-1]}}},toString:function(){return("DragDrop "+this.id)}}})();if(!Ext.dd.DragDropMgr){Ext.dd.DragDropMgr=function(){var _6a=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(_6b,_6c){for(var i in this.ids){for(var j in this.ids[i]){var oDD=this.ids[i][j];if(!this.isTypeOfDD(oDD)){continue}oDD[_6b].apply(oDD,_6c)}}},_onLoad:function(){this.init();_6a.on(document,"mouseup",this.handleMouseUp,this,true);_6a.on(document,"mousemove",this.handleMouseMove,this,true);_6a.on(window,"unload",this._onUnload,this,true);_6a.on(window,"resize",this._onResize,this,true)},_onResize:function(e){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(oDD,_72){if(!this.initialized){this.init()}if(!this.ids[_72]){this.ids[_72]={}}this.ids[_72][oDD.id]=oDD},removeDDFromGroup:function(oDD,_74){if(!this.ids[_74]){this.ids[_74]={}}var obj=this.ids[_74];if(obj&&obj[oDD.id]){delete obj[oDD.id]}},_remove:function(oDD){for(var g in oDD.groups){if(g&&this.ids[g]&&this.ids[g][oDD.id]){delete this.ids[g][oDD.id]}}delete this.handleIds[oDD.id]},regHandle:function(_78,_79){if(!this.handleIds[_78]){this.handleIds[_78]={}}this.handleIds[_78][_79]=_79},isDragDrop:function(id){return(this.getDDById(id))?true:false},getRelated:function(_7b,_7c){var _7d=[];for(var i in _7b.groups){for(var j in this.ids[i]){var dd=this.ids[i][j];if(!this.isTypeOfDD(dd)){continue}if(!_7c||dd.isTarget){_7d[_7d.length]=dd}}}return _7d},isLegalTarget:function(oDD,_82){var _83=this.getRelated(oDD,true);for(var i=0,len=_83.length;ithis.clickPixelThresh||_96>this.clickPixelThresh){this.startDrag(this.startX,this.startY)}}if(this.dragThreshMet){this.dragCurrent.b4Drag(e);this.dragCurrent.onDrag(e);if(!this.dragCurrent.moveOnly){this.fireEvents(e,false)}}this.stopEvent(e);return true},fireEvents:function(e,_98){var dc=this.dragCurrent;if(!dc||dc.isLocked()){return}var pt=e.getPoint();var _9b=[];var _9c=[];var _9d=[];var _9e=[];var _9f=[];for(var i in this.dragOvers){var ddo=this.dragOvers[i];if(!this.isTypeOfDD(ddo)){continue}if(!this.isOverTarget(pt,ddo,this.mode)){_9c.push(ddo)}_9b[i]=true;delete this.dragOvers[i]}for(var _a2 in dc.groups){if("string"!=typeof _a2){continue}for(i in this.ids[_a2]){var oDD=this.ids[_a2][i];if(!this.isTypeOfDD(oDD)){continue}if(oDD.isTarget&&!oDD.isLocked()&&oDD!=dc){if(this.isOverTarget(pt,oDD,this.mode)){if(_98){_9e.push(oDD)}else{if(!_9b[oDD.id]){_9f.push(oDD)}else{_9d.push(oDD)}this.dragOvers[oDD.id]=oDD}}}}}if(this.mode){if(_9c.length){dc.b4DragOut(e,_9c);dc.onDragOut(e,_9c)}if(_9f.length){dc.onDragEnter(e,_9f)}if(_9d.length){dc.b4DragOver(e,_9d);dc.onDragOver(e,_9d)}if(_9e.length){dc.b4DragDrop(e,_9e);dc.onDragDrop(e,_9e)}}else{var len=0;for(i=0,len=_9c.length;i2000){}else{setTimeout(DDM._addListeners,10);if(document&&document.body){DDM._timeoutCount+=1}}}},handleWasClicked:function(_e0,id){if(this.isHandle(id,_e0.id)){return true}else{var p=_e0.parentNode;while(p){if(this.isHandle(id,p.id)){return true}else{p=p.parentNode}}}return false}}}();Ext.dd.DDM=Ext.dd.DragDropMgr;Ext.dd.DDM._addListeners()}Ext.dd.DD=function(id,_e4,_e5){if(id){this.init(id,_e4,_e5)}};Ext.extend(Ext.dd.DD,Ext.dd.DragDrop,{scroll:true,autoOffset:function(_e6,_e7){var x=_e6-this.startPageX;var y=_e7-this.startPageY;this.setDelta(x,y)},setDelta:function(_ea,_eb){this.deltaX=_ea;this.deltaY=_eb},setDragElPos:function(_ec,_ed){var el=this.getDragEl();this.alignElWithMouse(el,_ec,_ed)},alignElWithMouse:function(el,_f0,_f1){var _f2=this.getTargetCoord(_f0,_f1);var fly=el.dom?el:Ext.fly(el,"_dd");if(!this.deltaSetXY){var _f4=[_f2.x,_f2.y];fly.setXY(_f4);var _f5=fly.getLeft(true);var _f6=fly.getTop(true);this.deltaSetXY=[_f5-_f2.x,_f6-_f2.y]}else{fly.setLeftTop(_f2.x+this.deltaSetXY[0],_f2.y+this.deltaSetXY[1])}this.cachePosition(_f2.x,_f2.y);this.autoScroll(_f2.x,_f2.y,el.offsetHeight,el.offsetWidth);return _f2},cachePosition:function(_f7,_f8){if(_f7){this.lastPageX=_f7;this.lastPageY=_f8}else{var _f9=Ext.lib.Dom.getXY(this.getEl());this.lastPageX=_f9[0];this.lastPageY=_f9[1]}},autoScroll:function(x,y,h,w){if(this.scroll){var _fe=Ext.lib.Dom.getViewHeight();var _ff=Ext.lib.Dom.getViewWidth();var st=this.DDM.getScrollTop();var sl=this.DDM.getScrollLeft();var bot=h+y;var _103=w+x;var _104=(_fe+st-y-this.deltaY);var _105=(_ff+sl-x-this.deltaX);var _106=40;var _107=(document.all)?80:30;if(bot>_fe&&_104<_106){window.scrollTo(sl,st+_107)}if(y0&&y-st<_106){window.scrollTo(sl,st-_107)}if(_103>_ff&&_105<_106){window.scrollTo(sl+_107,st)}if(x0&&x-sl<_106){window.scrollTo(sl-_107,st)}}},getTargetCoord:function(_108,_109){var x=_108-this.deltaX;var y=_109-this.deltaY;if(this.constrainX){if(xthis.maxX){x=this.maxX}}if(this.constrainY){if(ythis.maxY){y=this.maxY}}x=this.getTick(x,this.xTicks);y=this.getTick(y,this.yTicks);return{x:x,y:y}},applyConfig:function(){Ext.dd.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(e){this.autoOffset(e.getPageX(),e.getPageY())},b4Drag:function(e){this.setDragElPos(e.getPageX(),e.getPageY())},toString:function(){return("DD "+this.id)}});Ext.dd.DDProxy=function(id,_10f,_110){if(id){this.init(id,_10f,_110);this.initFrame()}};Ext.dd.DDProxy.dragElId="ygddfdiv";Ext.extend(Ext.dd.DDProxy,Ext.dd.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var self=this;var body=document.body;if(!body||!body.firstChild){setTimeout(function(){self.createFrame()},50);return}var div=this.getDragEl(); if(!div){div=document.createElement("div");div.id=this.dragElId;var s=div.style;s.position="absolute";s.visibility="hidden";s.cursor="move";s.border="2px solid #aaa";s.zIndex=999;body.insertBefore(div,body.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(_115,_116){var el=this.getEl();var _118=this.getDragEl();var s=_118.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(s.width,10)/2),Math.round(parseInt(s.height,10)/2))}this.setDragElPos(_115,_116);Ext.fly(_118).show()},_resizeProxy:function(){if(this.resizeFrame){var el=this.getEl();Ext.fly(this.getDragEl()).setSize(el.offsetWidth,el.offsetHeight)}},b4MouseDown:function(e){var x=e.getPageX();var y=e.getPageY();this.autoOffset(x,y);this.setDragElPos(x,y)},b4StartDrag:function(x,y){this.showFrame(x,y)},b4EndDrag:function(e){Ext.fly(this.getDragEl()).hide()},endDrag:function(e){var lel=this.getEl();var del=this.getDragEl();del.style.visibility="";this.beforeMove();lel.style.visibility="hidden";Ext.dd.DDM.moveToEl(lel,del);del.style.visibility="hidden";lel.style.visibility="";this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return("DDProxy "+this.id)}});Ext.dd.DDTarget=function(id,_125,_126){if(id){this.initTarget(id,_125,_126)}};Ext.extend(Ext.dd.DDTarget,Ext.dd.DragDrop,{toString:function(){return("DDTarget "+this.id)}});Ext.dd.DragTracker=function(_1){Ext.apply(this,_1);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.extend(Ext.dd.DragTracker,Ext.util.Observable,{active:false,tolerance:5,autoStart:false,initEl:function(el){this.el=Ext.get(el);el.on("mousedown",this.onMouseDown,this,this.delegate?{delegate:this.delegate}:undefined)},destroy:function(){this.el.un("mousedown",this.onMouseDown,this)},onMouseDown:function(e,_4){if(this.fireEvent("mousedown",this,e)!==false&&this.onBeforeStart(e)!==false){this.startXY=this.lastXY=e.getXY();this.dragTarget=this.delegate?_4:this.el.dom;e.preventDefault();var _5=Ext.getDoc();_5.on("mouseup",this.onMouseUp,this);_5.on("mousemove",this.onMouseMove,this);_5.on("selectstart",this.stopSelect,this);if(this.autoStart){this.timer=this.triggerStart.defer(this.autoStart===true?1000:this.autoStart,this)}}},onMouseMove:function(e,_7){e.preventDefault();var xy=e.getXY(),s=this.startXY;this.lastXY=xy;if(!this.active){if(Math.abs(s[0]-xy[0])>this.tolerance||Math.abs(s[1]-xy[1])>this.tolerance){this.triggerStart()}else{return}}this.fireEvent("mousemove",this,e);this.onDrag(e);this.fireEvent("drag",this,e)},onMouseUp:function(e){var _b=Ext.getDoc();_b.un("mousemove",this.onMouseMove,this);_b.un("mouseup",this.onMouseUp,this);_b.un("selectstart",this.stopSelect,this);e.preventDefault();this.clearStart();this.active=false;delete this.elRegion;this.fireEvent("mouseup",this,e);this.onEnd(e);this.fireEvent("dragend",this,e)},triggerStart:function(_c){this.clearStart();this.active=true;this.onStart(this.startXY);this.fireEvent("dragstart",this,this.startXY)},clearStart:function(){if(this.timer){clearTimeout(this.timer);delete this.timer}},stopSelect:function(e){e.stopEvent();return false},onBeforeStart:function(e){},onStart:function(xy){},onDrag:function(e){},onEnd:function(e){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getXY:function(_12){return _12?this.constrainModes[_12].call(this,this.lastXY):this.lastXY},getOffset:function(_13){var xy=this.getXY(_13);var s=this.startXY;return[s[0]-xy[0],s[1]-xy[1]]},constrainModes:{point:function(xy){if(!this.elRegion){this.elRegion=this.getDragCt().getRegion()}var dr=this.dragRegion;dr.left=xy[0];dr.top=xy[1];dr.right=xy[0];dr.bottom=xy[1];dr.constrainTo(this.elRegion);return[dr.left,dr.top]}}});Ext.dd.ScrollManager=function(){var _1=Ext.dd.DragDropMgr;var _2={};var _3=null;var _4={};var _5=function(e){_3=null;_7()};var _8=function(){if(_1.dragCurrent){_1.refreshCache(_1.dragCurrent.groups)}};var _9=function(){if(_1.dragCurrent){var _a=Ext.dd.ScrollManager;var _b=_4.el.ddScrollConfig?_4.el.ddScrollConfig.increment:_a.increment;if(!_a.animate){if(_4.el.scroll(_4.dir,_b)){_8()}}else{_4.el.scroll(_4.dir,_b,true,_a.animDuration,_8)}}};var _7=function(){if(_4.id){clearInterval(_4.id)}_4.id=0;_4.el=null;_4.dir=""};var _c=function(el,_e){_7();_4.el=el;_4.dir=_e;var _f=(el.ddScrollConfig&&el.ddScrollConfig.frequency)?el.ddScrollConfig.frequency:Ext.dd.ScrollManager.frequency;_4.id=setInterval(_9,_f)};var _10=function(e,_12){if(_12||!_1.dragCurrent){return}var dds=Ext.dd.ScrollManager;if(!_3||_3!=_1.dragCurrent){_3=_1.dragCurrent;dds.refreshCache()}var xy=Ext.lib.Event.getXY(e);var pt=new Ext.lib.Point(xy[0],xy[1]);for(var id in _2){var el=_2[id],r=el._region;var c=el.ddScrollConfig?el.ddScrollConfig:dds;if(r&&r.contains(pt)&&el.isScrollable()){if(r.bottom-pt.y<=c.vthresh){if(_4.el!=el){_c(el,"down")}return}else{if(r.right-pt.x<=c.hthresh){if(_4.el!=el){_c(el,"left")}return}else{if(pt.y-r.top<=c.vthresh){if(_4.el!=el){_c(el,"up")}return}else{if(pt.x-r.left<=c.hthresh){if(_4.el!=el){_c(el,"right")}return}}}}}}_7()};_1.fireEvents=_1.fireEvents.createSequence(_10,_1);_1.stopDrag=_1.stopDrag.createSequence(_5,_1);return{register:function(el){if(Ext.isArray(el)){for(var i=0,len=el.length;i]+>/gi,asText:function(s){return String(s).replace(this.stripTagsRE,"")},asUCText:function(s){return String(s).toUpperCase().replace(this.stripTagsRE,"")},asUCString:function(s){return String(s).toUpperCase()},asDate:function(s){if(!s){return 0}if(Ext.isDate(s)){return s.getTime()}return Date.parse(String(s))},asFloat:function(s){var _7=parseFloat(String(s).replace(/,/g,""));if(isNaN(_7)){_7=0}return _7},asInt:function(s){var _9=parseInt(String(s).replace(/,/g,""));if(isNaN(_9)){_9=0}return _9}};Ext.data.Record=function(_1,id){this.id=(id||id===0)?id:++Ext.data.Record.AUTO_ID;this.data=_1};Ext.data.Record.create=function(o){var f=Ext.extend(Ext.data.Record,{});var p=f.prototype;p.fields=new Ext.util.MixedCollection(false,function(_6){return _6.name});for(var i=0,_8=o.length;i<_8;i++){p.fields.add(new Ext.data.Field(o[i]))}f.getField=function(_9){return p.fields.get(_9)};return f};Ext.data.Record.AUTO_ID=1000;Ext.data.Record.EDIT="edit";Ext.data.Record.REJECT="reject";Ext.data.Record.COMMIT="commit";Ext.data.Record.prototype={dirty:false,editing:false,error:null,modified:null,join:function(_a){this.store=_a },set:function(_b,_c){if(String(this.data[_b])==String(_c)){return}this.dirty=true;if(!this.modified){this.modified={}}if(typeof this.modified[_b]=="undefined"){this.modified[_b]=this.data[_b]}this.data[_b]=_c;if(!this.editing&&this.store){this.store.afterEdit(this)}},get:function(_d){return this.data[_d]},beginEdit:function(){this.editing=true;this.modified={}},cancelEdit:function(){this.editing=false;delete this.modified},endEdit:function(){this.editing=false;if(this.dirty&&this.store){this.store.afterEdit(this)}},reject:function(_e){var m=this.modified;for(var n in m){if(typeof m[n]!="function"){this.data[n]=m[n]}}this.dirty=false;delete this.modified;this.editing=false;if(this.store&&_e!==true){this.store.afterReject(this)}},commit:function(_11){this.dirty=false;delete this.modified;this.editing=false;if(this.store&&_11!==true){this.store.afterCommit(this)}},getChanges:function(){var m=this.modified,cs={};for(var n in m){if(m.hasOwnProperty(n)){cs[n]=this.data[n]}}return cs},hasError:function(){return this.error!=null},clearError:function(){this.error=null},copy:function(_15){return new this.constructor(Ext.apply({},this.data),_15||this.id)},isModified:function(_16){return !!(this.modified&&this.modified.hasOwnProperty(_16))}};Ext.StoreMgr=Ext.apply(new Ext.util.MixedCollection(),{register:function(){for(var i=0,s;s=arguments[i];i++){this.add(s)}},unregister:function(){for(var i=0,s;s=arguments[i];i++){this.remove(this.lookup(s))}},lookup:function(id){return typeof id=="object"?id:this.get(id)},getKey:function(o){return o.storeId||o.id}});Ext.data.Store=function(_1){this.data=new Ext.util.MixedCollection(false);this.data.getKey=function(o){return o.id};this.baseParams={};this.paramNames={start:"start",limit:"limit",sort:"sort",dir:"dir"};if(_1&&_1.data){this.inlineData=_1.data;delete _1.data}Ext.apply(this,_1);if(this.url&&!this.proxy){this.proxy=new Ext.data.HttpProxy({url:this.url})}if(this.reader){if(!this.recordType){this.recordType=this.reader.recordType}if(this.reader.onMetaChange){this.reader.onMetaChange=this.onMetaChange.createDelegate(this)}}if(this.recordType){this.fields=this.recordType.prototype.fields}this.modified=[];this.addEvents("datachanged","metachange","add","remove","update","clear","beforeload","load","loadexception");if(this.proxy){this.relayEvents(this.proxy,["loadexception"])}this.sortToggle={};if(this.sortInfo){this.setDefaultSort(this.sortInfo.field,this.sortInfo.direction)}Ext.data.Store.superclass.constructor.call(this);if(this.storeId||this.id){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])}}};Ext.extend(Ext.data.Store,Ext.util.Observable,{remoteSort:false,pruneModifiedRecords:false,lastOptions:null,destroy:function(){if(this.storeId||this.id){Ext.StoreMgr.unregister(this)}this.data=null;this.purgeListeners()},add:function(_3){_3=[].concat(_3);if(_3.length<1){return}for(var i=0,_5=_3.length;i<_5;i++){_3[i].join(this)}var _6=this.data.length;this.data.addAll(_3);if(this.snapshot){this.snapshot.addAll(_3)}this.fireEvent("add",this,_3,_6)},addSorted:function(_7){var _8=this.findInsertIndex(_7);this.insert(_8,_7)},remove:function(_9){var _a=this.data.indexOf(_9);this.data.removeAt(_a);if(this.pruneModifiedRecords){this.modified.remove(_9)}if(this.snapshot){this.snapshot.remove(_9)}this.fireEvent("remove",this,_9,_a)},removeAt:function(_b){this.remove(this.getAt(_b))},removeAll:function(){this.data.clear();if(this.snapshot){this.snapshot.clear()}if(this.pruneModifiedRecords){this.modified=[]}this.fireEvent("clear",this)},insert:function(_c,_d){_d=[].concat(_d);for(var i=0,_f=_d.length;i<_f;i++){this.data.insert(_c,_d[i]);_d[i].join(this)}this.fireEvent("add",this,_d,_c)},indexOf:function(_10){return this.data.indexOf(_10)},indexOfId:function(id){return this.data.indexOfKey(id)},getById:function(id){return this.data.key(id)},getAt:function(_13){return this.data.itemAt(_13)},getRange:function(_14,end){return this.data.getRange(_14,end)},storeOptions:function(o){o=Ext.apply({},o);delete o.callback;delete o.scope;this.lastOptions=o},load:function(_17){_17=_17||{};if(this.fireEvent("beforeload",this,_17)!==false){this.storeOptions(_17);var p=Ext.apply(_17.params||{},this.baseParams);if(this.sortInfo&&this.remoteSort){var pn=this.paramNames;p[pn.sort]=this.sortInfo.field;p[pn.dir]=this.sortInfo.direction}this.proxy.load(p,this.reader,this.loadRecords,this,_17);return true}else{return false}},reload:function(_1a){this.load(Ext.applyIf(_1a||{},this.lastOptions))},loadRecords:function(o,_1c,_1d){if(!o||_1d===false){if(_1d!==false){this.fireEvent("load",this,[],_1c)}if(_1c.callback){_1c.callback.call(_1c.scope||this,[],_1c,false)}return}var r=o.records,t=o.totalRecords||r.length;if(!_1c||_1c.add!==true){if(this.pruneModifiedRecords){this.modified=[]}for(var i=0,len=r.length;iv2?1:(v10},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 i=0,len=_f.length;i0){var _4b=_48?function(){fn.apply(_48,arguments)}:fn;cs.sort(_4b);for(var i=0;ivw+s.left){x=vw-w-this.shadowOffset;_1e=true}if((y+h)>vh+s.top){y=vh-h-this.shadowOffset;_1e=true}if(x=ay){y=ay-h-5}}xy=[x,y];this.storeXY(xy);_7.setXY.call(this,xy);this.sync()}}},isVisible:function(){return this.visible},showAction:function(){this.visible=true;if(this.useDisplay===true){this.setDisplayed("")}else{if(this.lastXY){_7.setXY.call(this,this.lastXY)}else{if(this.lastLT){_7.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(v,a,d,c,e){if(v){this.showAction()}if(a&&v){var cb=function(){this.sync(true);if(c){c()}}.createDelegate(this);_7.setVisible.call(this,true,true,d,cb,e)}else{if(!v){this.hideUnders(true)}var cb=c;if(a){cb=function(){this.hideAction();if(c){c()}}.createDelegate(this)}_7.setVisible.call(this,v,a,d,cb,e);if(v){this.sync(true)}else{if(!a){this.hideAction()}}}},storeXY:function(xy){delete this.lastLT;this.lastXY=xy},storeLeftTop:function(_27,top){delete this.lastXY;this.lastLT=[_27,top]},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(_29){this.storeLeftTop(_29,this.getTop(true));_7.setLeft.apply(this,arguments);this.sync()},setTop:function(top){this.storeLeftTop(this.getLeft(true),top);_7.setTop.apply(this,arguments);this.sync()},setLeftTop:function(_2b,top){this.storeLeftTop(_2b,top);_7.setLeftTop.apply(this,arguments);this.sync()},setXY:function(xy,a,d,c,e){this.fixDisplay();this.beforeAction();this.storeXY(xy);var cb=this.createCB(c); _7.setXY.call(this,xy,a,d,cb,e);if(!a){cb()}},createCB:function(c){var el=this;return function(){el.constrainXY();el.sync(true);if(c){c()}}},setX:function(x,a,d,c,e){this.setXY([x,this.getY()],a,d,c,e)},setY:function(y,a,d,c,e){this.setXY([this.getX(),y],a,d,c,e)},setSize:function(w,h,a,d,c,e){this.beforeAction();var cb=this.createCB(c);_7.setSize.call(this,w,h,a,d,cb,e);if(!a){cb()}},setWidth:function(w,a,d,c,e){this.beforeAction();var cb=this.createCB(c);_7.setWidth.call(this,w,a,d,cb,e);if(!a){cb()}},setHeight:function(h,a,d,c,e){this.beforeAction();var cb=this.createCB(c);_7.setHeight.call(this,h,a,d,cb,e);if(!a){cb()}},setBounds:function(x,y,w,h,a,d,c,e){this.beforeAction();var cb=this.createCB(c);if(!a){this.storeXY([x,y]);_7.setXY.call(this,[x,y]);_7.setSize.call(this,w,h,a,d,cb,e);cb()}else{_7.setBounds.call(this,x,y,w,h,a,d,cb,e)}return this},setZIndex:function(_5b){this.zindex=_5b;this.setStyle("z-index",_5b+2);if(this.shadow){this.shadow.setZIndex(_5b+1)}if(this.shim){this.shim.setStyle("z-index",_5b)}}})})();Ext.Shadow=function(_1){Ext.apply(this,_1);if(typeof this.mode!="string"){this.mode=this.defaultMode}var o=this.offset,a={h:0};var _4=Math.floor(this.offset/2);switch(this.mode.toLowerCase()){case"drop":a.w=0;a.l=a.t=o;a.t-=1;if(Ext.isIE){a.l-=this.offset+_4;a.t-=this.offset+_4;a.w-=_4;a.h-=_4;a.t+=1}break;case"sides":a.w=(o*2);a.l=-o;a.t=o-1;if(Ext.isIE){a.l-=(this.offset-_4);a.t-=this.offset+_4;a.l+=1;a.w-=(this.offset-_4)*2;a.w-=_4+1;a.h-=1}break;case"frame":a.w=a.h=(o*2);a.l=a.t=-o;a.t+=1;a.h-=2;if(Ext.isIE){a.l-=(this.offset-_4);a.t-=(this.offset-_4);a.l+=1;a.w-=(this.offset+_4+1);a.h-=(this.offset+_4);a.h+=1}break}this.adjusts=a};Ext.Shadow.prototype={offset:4,defaultMode:"drop",show:function(_5){_5=Ext.get(_5);if(!this.el){this.el=Ext.Shadow.Pool.pull();if(this.el.dom.nextSibling!=_5.dom){this.el.insertBefore(_5)}}this.el.setStyle("z-index",this.zIndex||parseInt(_5.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(_5.getLeft(true),_5.getTop(true),_5.getWidth(),_5.getHeight());this.el.dom.style.display="block"},isVisible:function(){return this.el?true:false},realign:function(l,t,w,h){if(!this.el){return}var a=this.adjusts,d=this.el.dom,s=d.style;var _d=0;s.left=(l+a.l)+"px";s.top=(t+a.t)+"px";var sw=(w+a.w),sh=(h+a.h),sws=sw+"px",shs=sh+"px";if(s.width!=sws||s.height!=shs){s.width=sws;s.height=shs;if(!Ext.isIE){var cn=d.childNodes;var sww=Math.max(0,(sw-12))+"px";cn[0].childNodes[1].style.width=sww;cn[1].childNodes[1].style.width=sww;cn[2].childNodes[1].style.width=sww;cn[1].style.height=Math.max(0,(sh-12))+"px"}}},hide:function(){if(this.el){this.el.dom.style.display="none";Ext.Shadow.Pool.push(this.el);delete this.el}},setZIndex:function(z){this.zIndex=z;if(this.el){this.el.setStyle("z-index",z)}}};Ext.Shadow.Pool=function(){var p=[];var _16=Ext.isIE?'
':'
';return{pull:function(){var sh=p.shift();if(!sh){sh=Ext.get(Ext.DomHelper.insertHtml("beforeBegin",document.body.firstChild,_16));sh.autoBoxAdjust=false}return sh},push:function(sh){p.push(sh)}}}();Ext.BoxComponent=Ext.extend(Ext.Component,{initComponent:function(){Ext.BoxComponent.superclass.initComponent.call(this);this.addEvents("resize","move")},boxReady:false,deferHeight:false,setSize:function(w,h){if(typeof w=="object"){h=w.height;w=w.width}if(!this.boxReady){this.width=w;this.height=h;return this}if(this.lastSize&&this.lastSize.width==w&&this.lastSize.height==h){return this}this.lastSize={width:w,height:h};var _3=this.adjustSize(w,h);var aw=_3.width,ah=_3.height;if(aw!==undefined||ah!==undefined){var rz=this.getResizeEl();if(!this.deferHeight&&aw!==undefined&&ah!==undefined){rz.setSize(aw,ah)}else{if(!this.deferHeight&&ah!==undefined){rz.setHeight(ah)}else{if(aw!==undefined){rz.setWidth(aw)}}}this.onResize(aw,ah,w,h);this.fireEvent("resize",this,aw,ah,w,h)}return this},setWidth:function(_7){return this.setSize(_7)},setHeight:function(_8){return this.setSize(undefined,_8)},getSize:function(){return this.el.getSize()},getPosition:function(_9){if(_9===true){return[this.el.getLeft(true),this.el.getTop(true)]}return this.xy||this.el.getXY()},getBox:function(_a){var s=this.el.getSize();if(_a===true){s.x=this.el.getLeft(true);s.y=this.el.getTop(true)}else{var xy=this.xy||this.el.getXY();s.x=xy[0];s.y=xy[1]}return s},updateBox:function(_d){this.setSize(_d.width,_d.height);this.setPagePosition(_d.x,_d.y);return this},getResizeEl:function(){return this.resizeEl||this.el},getPositionEl:function(){return this.positionEl||this.el},setPosition:function(x,y){if(x&&typeof x[1]=="number"){y=x[1];x=x[0]}this.x=x;this.y=y;if(!this.boxReady){return this}var adj=this.adjustPosition(x,y);var ax=adj.x,ay=adj.y;var el=this.getPositionEl();if(ax!==undefined||ay!==undefined){if(ax!==undefined&&ay!==undefined){el.setLeftTop(ax,ay)}else{if(ax!==undefined){el.setLeft(ax)}else{if(ay!==undefined){el.setTop(ay)}}}this.onPosition(ax,ay);this.fireEvent("move",this,ax,ay)}return this},setPagePosition:function(x,y){if(x&&typeof x[1]=="number"){y=x[1];x=x[0]}this.pageX=x;this.pageY=y;if(!this.boxReady){return}if(x===undefined||y===undefined){return}var p=this.el.translatePoints(x,y);this.setPosition(p.left,p.top);return this},onRender:function(ct,_18){Ext.BoxComponent.superclass.onRender.call(this,ct,_18);if(this.resizeEl){this.resizeEl=Ext.get(this.resizeEl)}if(this.positionEl){this.positionEl=Ext.get(this.positionEl)}},afterRender:function(){Ext.BoxComponent.superclass.afterRender.call(this);this.boxReady=true;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.el.getWidth(),this.autoHeight?undefined:this.el.getHeight());return this},onResize:function(_19,_1a,_1b,_1c){},onPosition:function(x,y){},adjustSize:function(w,h){if(this.autoWidth){w="auto"}if(this.autoHeight){h="auto"}return{width:w,height:h}},adjustPosition:function(x,y){return{x:x,y:y}}});Ext.reg("box",Ext.BoxComponent);Ext.SplitBar=function(_1,_2,_3,_4,_5){this.el=Ext.get(_1,true);this.el.dom.unselectable="on";this.resizingEl=Ext.get(_2,true);this.orientation=_3||Ext.SplitBar.HORIZONTAL;this.minSize=0;this.maxSize=2000;this.animate=false;this.useShim=false;this.shim=null;if(!_5){this.proxy=Ext.SplitBar.createProxy(this.orientation)}else{this.proxy=Ext.get(_5).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=_4||(this.el.getX()>this.resizingEl.getX()?Ext.SplitBar.LEFT:Ext.SplitBar.RIGHT);this.el.addClass("x-splitbar-h")}else{this.placement=_4||(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(x,y){this.fireEvent("beforeresize",this);this.overlay=Ext.DomHelper.append(document.body,{cls:"x-drag-overlay",html:" "},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 _8=this.adapter.getElementSize(this); this.activeMinSize=this.getMinimumSize();this.activeMaxSize=this.getMaximumSize();var c1=_8-this.activeMinSize;var c2=Math.max(this.activeMaxSize-_8,0);if(this.orientation==Ext.SplitBar.HORIZONTAL){this.dd.resetConstraints();this.dd.setXConstraint(this.placement==Ext.SplitBar.LEFT?c1:c2,this.placement==Ext.SplitBar.LEFT?c2:c1);this.dd.setYConstraint(0,0)}else{this.dd.resetConstraints();this.dd.setXConstraint(0,0);this.dd.setYConstraint(this.placement==Ext.SplitBar.TOP?c1:c2,this.placement==Ext.SplitBar.TOP?c2:c1)}this.dragSpecs.startSize=_8;this.dragSpecs.startPoint=[x,y];Ext.dd.DDProxy.prototype.b4StartDrag.call(this.dd,x,y)},onEndProxyDrag:function(e){Ext.get(this.proxy).setDisplayed(false);var _c=Ext.lib.Event.getXY(e);if(this.overlay){Ext.destroy(this.overlay);delete this.overlay}var _d;if(this.orientation==Ext.SplitBar.HORIZONTAL){_d=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.LEFT?_c[0]-this.dragSpecs.startPoint[0]:this.dragSpecs.startPoint[0]-_c[0])}else{_d=this.dragSpecs.startSize+(this.placement==Ext.SplitBar.TOP?_c[1]-this.dragSpecs.startPoint[1]:this.dragSpecs.startPoint[1]-_c[1])}_d=Math.min(Math.max(_d,this.activeMinSize),this.activeMaxSize);if(_d!=this.dragSpecs.startSize){if(this.fireEvent("beforeapply",this,_d)!==false){this.adapter.setElementSize(this,_d);this.fireEvent("moved",this,_d);this.fireEvent("resize",this,_d)}}},getAdapter:function(){return this.adapter},setAdapter:function(_e){this.adapter=_e;this.adapter.init(this)},getMinimumSize:function(){return this.minSize},setMinimumSize:function(_f){this.minSize=_f},getMaximumSize:function(){return this.maxSize},setMaximumSize:function(_10){this.maxSize=_10},setCurrentSize:function(_11){var _12=this.animate;this.animate=false;this.adapter.setElementSize(this,_11);this.animate=_12},destroy:function(_13){if(this.shim){this.shim.remove()}this.dd.unreg();Ext.destroy(Ext.get(this.proxy));if(_13){this.el.remove()}}});Ext.SplitBar.createProxy=function(dir){var _15=new Ext.Element(document.createElement("div"));_15.unselectable();var cls="x-splitbar-proxy";_15.addClass(cls+" "+(dir==Ext.SplitBar.HORIZONTAL?cls+"-h":cls+"-v"));document.body.appendChild(_15.dom);return _15.dom};Ext.SplitBar.BasicLayoutAdapter=function(){};Ext.SplitBar.BasicLayoutAdapter.prototype={init:function(s){},getElementSize:function(s){if(s.orientation==Ext.SplitBar.HORIZONTAL){return s.resizingEl.getWidth()}else{return s.resizingEl.getHeight()}},setElementSize:function(s,_1a,_1b){if(s.orientation==Ext.SplitBar.HORIZONTAL){if(!s.animate){s.resizingEl.setWidth(_1a);if(_1b){_1b(s,_1a)}}else{s.resizingEl.setWidth(_1a,true,0.1,_1b,"easeOut")}}else{if(!s.animate){s.resizingEl.setHeight(_1a);if(_1b){_1b(s,_1a)}}else{s.resizingEl.setHeight(_1a,true,0.1,_1b,"easeOut")}}}};Ext.SplitBar.AbsoluteLayoutAdapter=function(_1c){this.basic=new Ext.SplitBar.BasicLayoutAdapter();this.container=Ext.get(_1c)};Ext.SplitBar.AbsoluteLayoutAdapter.prototype={init:function(s){this.basic.init(s)},getElementSize:function(s){return this.basic.getElementSize(s)},setElementSize:function(s,_20,_21){this.basic.setElementSize(s,_20,this.moveSplitter.createDelegate(this,[s]))},moveSplitter:function(s){var yes=Ext.SplitBar;switch(s.placement){case yes.LEFT:s.el.setX(s.resizingEl.getRight());break;case yes.RIGHT:s.el.setStyle("right",(this.container.getWidth()-s.resizingEl.getLeft())+"px");break;case yes.TOP:s.el.setY(s.resizingEl.getBottom());break;case yes.BOTTOM:s.el.setY(s.resizingEl.getTop()-s.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,{autoDestroy:true,defaultType:"panel",initComponent:function(){Ext.Container.superclass.initComponent.call(this);this.addEvents("afterlayout","beforeadd","beforeremove","add","remove");var _1=this.items;if(_1){delete this.items;if(Ext.isArray(_1)&&_1.length>0){this.add.apply(this,_1)}else{this.add(_1)}}},initItems:function(){if(!this.items){this.items=new Ext.util.MixedCollection(false,this.getComponentId);this.getLayout()}},setLayout:function(_2){if(this.layout&&this.layout!=_2){this.layout.setContainer(null)}this.initItems();this.layout=_2;_2.setContainer(this)},render:function(){Ext.Container.superclass.render.apply(this,arguments);if(this.layout){if(typeof this.layout=="string"){this.layout=new Ext.Container.LAYOUTS[this.layout.toLowerCase()](this.layoutConfig)}this.setLayout(this.layout);if(this.activeItem!==undefined){var _3=this.activeItem;delete this.activeItem;this.layout.setActiveItem(_3);return}}if(!this.ownerCt){this.doLayout()}if(this.monitorResize===true){Ext.EventManager.onWindowResize(this.doLayout,this,[false])}},getLayoutTarget:function(){return this.el},getComponentId:function(_4){return _4.itemId||_4.id},add:function(_5){if(!this.items){this.initItems()}var a=arguments,_7=a.length;if(_7>1){for(var i=0;i<_7;i++){this.add(a[i])}return}var c=this.lookupComponent(this.applyDefaults(_5));var _a=this.items.length;if(this.fireEvent("beforeadd",this,c,_a)!==false&&this.onBeforeAdd(c)!==false){this.items.add(c);c.ownerCt=this;this.fireEvent("add",this,c,_a)}return c},insert:function(_b,_c){if(!this.items){this.initItems()}var a=arguments,_e=a.length;if(_e>2){for(var i=_e-1;i>=1;--i){this.insert(_b,a[i])}return}var c=this.lookupComponent(this.applyDefaults(_c));if(c.ownerCt==this&&this.items.indexOf(c)<_b){--_b}if(this.fireEvent("beforeadd",this,c,_b)!==false&&this.onBeforeAdd(c)!==false){this.items.insert(_b,c);c.ownerCt=this;this.fireEvent("add",this,c,_b)}return c},applyDefaults:function(c){if(this.defaults){if(typeof c=="string"){c=Ext.ComponentMgr.get(c);Ext.apply(c,this.defaults)}else{if(!c.events){Ext.applyIf(c,this.defaults)}else{Ext.apply(c,this.defaults)}}}return c},onBeforeAdd:function(_12){if(_12.ownerCt){_12.ownerCt.remove(_12,false)}if(this.hideBorders===true){_12.border=(_12.border===true)}},remove:function(_13,_14){var c=this.getComponent(_13);if(c&&this.fireEvent("beforeremove",this,c)!==false){this.items.remove(c);delete c.ownerCt;if(_14===true||(_14!==false&&this.autoDestroy)){c.destroy()}if(this.layout&&this.layout.activeItem==c){delete this.layout.activeItem}this.fireEvent("remove",this,c)}return c},removeAll:function(_16){var _17,_18=[];while((_17=this.items.last())){_18.unshift(this.remove(_17,_16))}return _18},getComponent:function(_19){if(typeof _19=="object"){return _19}return this.items.get(_19)},lookupComponent:function(_1a){if(typeof _1a=="string"){return Ext.ComponentMgr.get(_1a)}else{if(!_1a.events){return this.createComponent(_1a)}}return _1a},createComponent:function(_1b){return Ext.ComponentMgr.create(_1b,this.defaultType)},doLayout:function(_1c){if(this.rendered&&this.layout){this.layout.layout()}if(_1c!==false&&this.items){var cs=this.items.items;for(var i=0,len=cs.length;i0){_3.setSize(_4)}}});Ext.Container.LAYOUTS.fit=Ext.layout.FitLayout;Ext.layout.CardLayout=Ext.extend(Ext.layout.FitLayout,{deferredRender:false,renderHidden:true,setActiveItem:function(_1){_1=this.container.getComponent(_1);if(this.activeItem!=_1){if(this.activeItem){this.activeItem.hide()}this.activeItem=_1;_1.show();this.layout()}},renderAll:function(ct,_3){if(this.deferredRender){this.renderItem(this.activeItem,undefined,_3)}else{Ext.layout.CardLayout.superclass.renderAll.call(this,ct,_3)}}});Ext.Container.LAYOUTS.card=Ext.layout.CardLayout;Ext.layout.AnchorLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,getAnchorViewSize:function(ct,_2){return _2.dom==document.body?_2.getViewSize():_2.getStyleSize()},onLayout:function(ct,_4){Ext.layout.AnchorLayout.superclass.onLayout.call(this,ct,_4);var _5=this.getAnchorViewSize(ct,_4);var w=_5.width,h=_5.height;if(w<20||h<20){return}var aw,ah;if(ct.anchorSize){if(typeof ct.anchorSize=="number"){aw=ct.anchorSize}else{aw=ct.anchorSize.width;ah=ct.anchorSize.height}}else{aw=ct.initialConfig.width;ah=ct.initialConfig.height}var cs=ct.items.items,_b=cs.length,i,c,a,cw,ch;for(i=0;i<_b;i++){c=cs[i];if(c.anchor){a=c.anchorSpec;if(!a){var vs=c.anchor.split(" ");c.anchorSpec=a={right:this.parseAnchor(vs[0],c.initialConfig.width,aw),bottom:this.parseAnchor(vs[1],c.initialConfig.height,ah)}}cw=a.right?this.adjustWidthAnchor(a.right(w),c):undefined;ch=a.bottom?this.adjustHeightAnchor(a.bottom(h),c):undefined;if(cw||ch){c.setSize(cw||undefined,ch||undefined)}}}},parseAnchor:function(a,_13,_14){if(a&&a!="none"){var _15;if(/^(r|right|b|bottom)$/i.test(a)){var _16=_14-_13;return function(v){if(v!==_15){_15=v;return v-_16}}}else{if(a.indexOf("%")!=-1){var _18=parseFloat(a.replace("%",""))*0.01;return function(v){if(v!==_15){_15=v;return Math.floor(v*_18)}}}else{a=parseInt(a,10);if(!isNaN(a)){return function(v){if(v!==_15){_15=v;return v+a}}}}}}return false},adjustWidthAnchor:function(_1b,_1c){return _1b},adjustHeightAnchor:function(_1d,_1e){return _1d}});Ext.Container.LAYOUTS.anchor=Ext.layout.AnchorLayout;Ext.layout.ColumnLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,extraCls:"x-column",scrollOffset:0,isValidParent:function(c,_2){return(c.getPositionEl?c.getPositionEl():c.getEl()).dom.parentNode==this.innerCt.dom},onLayout:function(ct,_4){var cs=ct.items.items,_6=cs.length,c,i;if(!this.innerCt){_4.addClass("x-column-layout-ct");this.innerCt=_4.createChild({cls:"x-column-inner"});this.innerCt.createChild({cls:"x-clear"})}this.renderAll(ct,this.innerCt);var _9=Ext.isIE&&_4.dom!=Ext.getBody().dom?_4.getStyleSize():_4.getViewSize();if(_9.width<1&&_9.height<1){return}var w=_9.width-_4.getPadding("lr")-this.scrollOffset,h=_9.height-_4.getPadding("tb"),pw=w;this.innerCt.setWidth(w);for(i=0;i<_6;i++){c=cs[i];if(!c.columnWidth){pw-=(c.getSize().width+c.getEl().getMargins("lr"))}}pw=pw<0?0:pw;for(i=0;i<_6;i++){c=cs[i];if(c.columnWidth){c.setSize(Math.floor(c.columnWidth*pw)-c.getEl().getMargins("lr"))}}}});Ext.Container.LAYOUTS.column=Ext.layout.ColumnLayout;Ext.layout.BorderLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:true,rendered:false,onLayout:function(ct,_2){var _3;if(!this.rendered){_2.position();_2.addClass("x-border-layout-ct");var _4=ct.items.items;_3=[];for(var i=0,_6=_4.length;i<_6;i++){var c=_4[i];var _8=c.region;if(c.collapsed){_3.push(c)}c.collapsed=false;if(!c.rendered){c.cls=c.cls?c.cls+" x-border-panel":"x-border-panel";c.render(_2,i)}this[_8]=_8!="center"&&c.split?new Ext.layout.BorderLayout.SplitRegion(this,c.initialConfig,_8):new Ext.layout.BorderLayout.Region(this,c.initialConfig,_8);this[_8].render(_2,c)}this.rendered=true}var _9=_2.getViewSize();if(_9.width<20||_9.height<20){if(_3){this.restoreCollapsed=_3}return}else{if(this.restoreCollapsed){_3=this.restoreCollapsed;delete this.restoreCollapsed}}var w=_9.width,h=_9.height;var _c=w,_d=h,_e=0,_f=0;var n=this.north,s=this.south,_12=this.west,e=this.east,c=this.center;if(!c&&Ext.layout.BorderLayout.WARN!==false){throw"No center region defined in BorderLayout "+ct.id}if(n&&n.isVisible()){var b=n.getSize();var m=n.getMargins();b.width=w-(m.left+m.right);b.x=m.left;b.y=m.top;_e=b.height+b.y+m.bottom;_d-=_e;n.applyLayout(b)}if(s&&s.isVisible()){var b=s.getSize();var m=s.getMargins();b.width=w-(m.left+m.right);b.x=m.left;var _16=(b.height+m.top+m.bottom);b.y=h-_16+m.top;_d-=_16;s.applyLayout(b)}if(_12&&_12.isVisible()){var b=_12.getSize();var m=_12.getMargins();b.height=_d-(m.top+m.bottom);b.x=m.left;b.y=_e+m.top;var _17=(b.width+m.left+m.right);_f+=_17;_c-=_17;_12.applyLayout(b)}if(e&&e.isVisible()){var b=e.getSize();var m=e.getMargins();b.height=_d-(m.top+m.bottom);var _17=(b.width+m.left+m.right);b.x=w-_17+m.left;b.y=_e+m.top;_c-=_17;e.applyLayout(b)}if(c){var m=c.getMargins();var _18={x:_f+m.left,y:_e+m.top,width:_c-(m.left+m.right),height:_d-(m.top+m.bottom)};c.applyLayout(_18)}if(_3){for(var i=0,_6=_3.length;i<_6;i++){_3[i].collapse(false)}}if(Ext.isIE&&Ext.isStrict){_2.repaint()}},destroy:function(){var r=["north","south","east","west"];for(var i=0;i ');tt.disableFormats=true;tt.compile();Ext.layout.BorderLayout.Region.prototype.toolTemplate=tt}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:" "});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 t=this.toolTemplate.append(this.collapsedEl.dom,{id:"expand-"+this.position},true);t.addClassOnOver("x-tool-expand-"+this.position+"-over");t.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(e){if(this.isSlid){this.afterSlideIn();this.panel.expand(false)}else{this.panel.expand()}},onCollapseClick:function(e){this.panel.collapse()},beforeCollapse:function(p,_28){this.lastAnim=_28;if(this.splitEl){this.splitEl.hide()}this.getCollapsedEl().show();this.panel.el.setStyle("z-index",100);this.isCollapsed=true;this.layout.layout()},onCollapse:function(_29){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(_2a){var c=this.getCollapsedEl();this.el.show();if(this.position=="east"||this.position=="west"){this.panel.setSize(undefined,c.getHeight())}else{this.panel.setSize(c.getWidth(),undefined)}c.hide();c.dom.style.visibility="hidden";this.panel.el.setStyle("z-index",100)},onExpand:function(){this.isCollapsed=false;if(this.splitEl){this.splitEl.show()}this.layout.layout();this.panel.el.setStyle("z-index",1);this.state.collapsed=false;this.panel.saveState()},collapseClick:function(e){if(this.isSlid){e.stopPropagation();this.slideIn()}else{e.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(_2d){this.panel=_2d},getMinWidth:function(){return this.minWidth},getMinHeight:function(){return this.minHeight},applyLayoutCollapsed:function(box){var ce=this.getCollapsedEl();ce.setLeftTop(box.x,box.y);ce.setSize(box.width,box.height)},applyLayout:function(box){if(this.isCollapsed){this.applyLayoutCollapsed(box)}else{this.panel.setPosition(box.x,box.y);this.panel.setSize(box.width,box.height)}},beforeSlide:function(){this.panel.beforeEffect()},afterSlide:function(){this.panel.afterEffect()},initAutoHide:function(){if(this.autoHide!==false){if(!this.autoHideHd){var st=new Ext.util.DelayedTask(this.slideIn,this);this.autoHideHd={mouseout:function(e){if(!e.within(this.el,true)){st.delay(500)}},mouseover:function(e){st.cancel()},scope:this}}this.el.on(this.autoHideHd)}},clearAutoHide:function(){if(this.autoHide!==false){this.el.un("mouseout",this.autoHideHd.mouseout);this.el.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 ts=this.panel.tools;if(ts&&ts.toggle){ts.toggle.hide()}this.el.show();if(this.position=="east"||this.position=="west"){this.panel.setSize(undefined,this.collapsedEl.getHeight())}else{this.panel.setSize(this.collapsedEl.getWidth(),undefined)}this.restoreLT=[this.el.dom.style.left,this.el.dom.style.top];this.el.alignTo(this.collapsedEl,this.getCollapseAnchor());this.el.setStyle("z-index",102);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 ts=this.panel.tools;if(ts&&ts.toggle){ts.toggle.show()}},slideIn:function(cb){if(!this.isSlid||this.el.hasActiveFx()){Ext.callback(cb);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(cb)},scope:this,block:true})}else{this.el.hide();this.afterSlideIn()}},slideInIf:function(e){if(!e.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 cm=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 c=this.collapsedEl,cm=this.cmargins;switch(this.position){case"west":return[-(cm.right+c.getWidth()+cm.left),0];break;case"east":return[cm.right+c.getWidth()+cm.left,0];break;case"north":return[0,-(cm.top+cm.bottom+c.getHeight())];break;case"south":return[0,cm.top+cm.bottom+c.getHeight()];break}}};Ext.layout.BorderLayout.SplitRegion=function(_3b,_3c,pos){Ext.layout.BorderLayout.SplitRegion.superclass.constructor.call(this,_3b,_3c,pos);this.applyLayout=this.applyFns[pos]};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(box){if(this.isCollapsed){return this.applyLayoutCollapsed(box) }var sd=this.splitEl.dom,s=sd.style;this.panel.setPosition(box.x,box.y);var sw=sd.offsetWidth;s.left=(box.x+box.width-sw)+"px";s.top=(box.y)+"px";s.height=Math.max(0,box.height)+"px";this.panel.setSize(box.width-sw,box.height)},east:function(box){if(this.isCollapsed){return this.applyLayoutCollapsed(box)}var sd=this.splitEl.dom,s=sd.style;var sw=sd.offsetWidth;this.panel.setPosition(box.x+sw,box.y);s.left=(box.x)+"px";s.top=(box.y)+"px";s.height=Math.max(0,box.height)+"px";this.panel.setSize(box.width-sw,box.height)},north:function(box){if(this.isCollapsed){return this.applyLayoutCollapsed(box)}var sd=this.splitEl.dom,s=sd.style;var sh=sd.offsetHeight;this.panel.setPosition(box.x,box.y);s.left=(box.x)+"px";s.top=(box.y+box.height-sh)+"px";s.width=Math.max(0,box.width)+"px";this.panel.setSize(box.width,box.height-sh)},south:function(box){if(this.isCollapsed){return this.applyLayoutCollapsed(box)}var sd=this.splitEl.dom,s=sd.style;var sh=sd.offsetHeight;this.panel.setPosition(box.x,box.y+sh);s.left=(box.x)+"px";s.top=(box.y)+"px";s.width=Math.max(0,box.width)+"px";this.panel.setSize(box.width,box.height-sh)}},render:function(ct,p){Ext.layout.BorderLayout.SplitRegion.superclass.render.call(this,ct,p);var ps=this.position;this.splitEl=ct.createChild({cls:"x-layout-split x-layout-split-"+ps,html:" ",id:this.panel.id+"-xsplit"});if(this.collapseMode=="mini"){this.miniSplitEl=this.splitEl.createChild({cls:"x-layout-mini x-layout-mini-"+ps,html:" "});this.miniSplitEl.addClassOnOver("x-layout-mini-over");this.miniSplitEl.on("click",this.onCollapseClick,this,{stopEvent:true})}var s=this.splitSettings[ps];this.split=new Ext.SplitBar(this.splitEl.dom,p.el,s.orientation);this.split.placement=s.placement;this.split.getMaximumSize=this[s.maxFn].createDelegate(this);this.split.minSize=this.minSize||this[s.minProp];this.split.on("beforeapply",this.onSplitMove,this);this.split.useShim=this.useShim===true;this.maxSize=this.maxSize||this[s.maxProp];if(p.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 s=this.panel.getSize();if(this.position=="north"||this.position=="south"){s.height+=this.splitEl.dom.offsetHeight}else{s.width+=this.splitEl.dom.offsetWidth}return s},getHMaxSize:function(){var _53=this.maxSize||10000;var _54=this.layout.center;return Math.min(_53,(this.el.getWidth()+_54.el.getWidth())-_54.getMinWidth())},getVMaxSize:function(){var _55=this.maxSize||10000;var _56=this.layout.center;return Math.min(_55,(this.el.getHeight()+_56.el.getHeight())-_56.getMinHeight())},onSplitMove:function(_57,_58){var s=this.panel.getSize();this.lastSplitSize=_58;if(this.position=="north"||this.position=="south"){this.panel.setSize(s.width,_58);this.state.height=_58}else{this.panel.setSize(_58,s.height);this.state.width=_58}this.layout.layout();this.panel.saveState();return false},getSplitBar:function(){return this.split},destroy:function(){Ext.destroy(this.miniSplitEl,this.split,this.splitEl)}});Ext.Container.LAYOUTS.border=Ext.layout.BorderLayout;Ext.layout.FormLayout=Ext.extend(Ext.layout.AnchorLayout,{labelSeparator:":",getAnchorViewSize:function(ct,_2){return(ct.body||ct.el).getStyleSize()},setContainer:function(ct){Ext.layout.FormLayout.superclass.setContainer.call(this,ct);if(ct.labelAlign){ct.addClass("x-form-label-"+ct.labelAlign)}if(ct.hideLabels){this.labelStyle="display:none";this.elementStyle="padding-left:0;";this.labelAdjust=0}else{this.labelSeparator=ct.labelSeparator||this.labelSeparator;ct.labelWidth=ct.labelWidth||100;if(typeof ct.labelWidth=="number"){var _4=(typeof ct.labelPad=="number"?ct.labelPad:5);this.labelAdjust=ct.labelWidth+_4;this.labelStyle="width:"+ct.labelWidth+"px;";this.elementStyle="padding-left:"+(ct.labelWidth+_4)+"px"}if(ct.labelAlign=="top"){this.labelStyle="width:auto;";this.labelAdjust=0;this.elementStyle="padding-left:0;"}}if(!this.fieldTpl){var t=new Ext.Template('
','','
','
',"
");t.disableFormats=true;t.compile();Ext.layout.FormLayout.prototype.fieldTpl=t}},getLabelStyle:function(s){var ls="",_8=[this.labelStyle,s];for(var i=0,_a=_8.length;i<_a;++i){if(_8[i]){ls+=_8[i];if(ls.substr(-1,1)!=";"){ls+=";"}}}return ls},renderItem:function(c,_c,_d){if(c&&!c.rendered&&c.isFormField&&c.inputType!="hidden"){var _e=[c.id,c.fieldLabel,this.getLabelStyle(c.labelStyle),this.elementStyle||"",typeof c.labelSeparator=="undefined"?this.labelSeparator:c.labelSeparator,(c.itemCls||this.container.itemCls||"")+(c.hideLabel?" x-hide-label":""),c.clearCls||"x-form-clear-left"];if(typeof _c=="number"){_c=_d.dom.childNodes[_c]||null}if(_c){this.fieldTpl.insertBefore(_c,_e)}else{this.fieldTpl.append(_d,_e)}c.render("x-form-el-"+c.id)}else{Ext.layout.FormLayout.superclass.renderItem.apply(this,arguments)}},adjustWidthAnchor:function(_f,_10){return _f-(_10.isFormField?(_10.hideLabel?0:this.labelAdjust):0)},isValidParent:function(c,_12){return true}});Ext.Container.LAYOUTS.form=Ext.layout.FormLayout;Ext.layout.Accordion=Ext.extend(Ext.layout.FitLayout,{fill:true,autoWidth:true,titleCollapse:true,hideCollapseTool:false,collapseFirst:false,animate:false,sequence:false,activeOnTop:false,setActiveItem:function(_1){_1=this.container.getComponent(_1);this.activeItem=_1;this.layout()},renderItem:function(c){if(this.animate===false){c.animCollapse=false}c.collapsible=true;if(this.autoWidth){c.autoWidth=true}if(this.titleCollapse){c.titleCollapse=true}if(this.hideCollapseTool){c.hideCollapseTool=true}if(this.collapseFirst!==undefined){c.collapseFirst=this.collapseFirst}if(!this.activeItem&&!c.collapsed){this.activeItem=c}else{if(this.activeItem&&this.activeItem!=c){c.collapsed=true}}Ext.layout.Accordion.superclass.renderItem.apply(this,arguments);c.header.addClass("x-accordion-hd");c.on("beforeexpand",this.beforeExpand,this)},beforeExpand:function(p,_4){var ai=this.activeItem;if(ai){if(this.sequence){delete this.activeItem;if(!ai.collapsed){ai.collapse({callback:function(){p.expand(_4||true)},scope:this});return false}}else{ai.collapse(this.animate)}}this.activeItem=p;if(this.activeOnTop){p.el.dom.parentNode.insertBefore(p.el.dom,p.el.dom.parentNode.firstChild)}this.layout()},setItemSize:function(_6,_7){if(this.fill&&_6){var _8=this.container.items.items;var hh=0;for(var i=0,_b=_8.length;i<_b;i++){var p=_8[i];if(p!=_6){hh+=(p.getSize().height-p.bwrap.getHeight())}}_7.height-=hh;_6.setSize(_7)}}});Ext.Container.LAYOUTS.accordion=Ext.layout.Accordion;Ext.layout.TableLayout=Ext.extend(Ext.layout.ContainerLayout,{monitorResize:false,setContainer:function(ct){Ext.layout.TableLayout.superclass.setContainer.call(this,ct);this.currentRow=0;this.currentColumn=0;this.cells=[]},onLayout:function(ct,_3){var cs=ct.items.items,_5=cs.length,c,i;if(!this.table){_3.addClass("x-table-layout-ct");this.table=_3.createChild({tag:"table",cls:"x-table-layout",cellspacing:0,cn:{tag:"tbody"}},null,true);this.renderAll(ct,_3)}},getRow:function(_8){var _9=this.table.tBodies[0].childNodes[_8];if(!_9){_9=document.createElement("tr");this.table.tBodies[0].appendChild(_9)}return _9},getNextCell:function(c){var _b=this.getNextNonSpan(this.currentColumn,this.currentRow);var _c=this.currentColumn=_b[0],_d=this.currentRow=_b[1];for(var _e=_d;_e<_d+(c.rowspan||1);_e++){if(!this.cells[_e]){this.cells[_e]=[]}for(var _f=_c;_f<_c+(c.colspan||1);_f++){this.cells[_e][_f]=true}}var td=document.createElement("td");if(c.cellId){td.id=c.cellId}var cls="x-table-layout-cell";if(c.cellCls){cls+=" "+c.cellCls}td.className=cls;if(c.colspan){td.colSpan=c.colspan}if(c.rowspan){td.rowSpan=c.rowspan}this.getRow(_d).appendChild(td);return td},getNextNonSpan:function(_12,_13){var _14=this.columns; while((_14&&_12>=_14)||(this.cells[_13]&&this.cells[_13][_12])){if(_14&&_12>=_14){_13++;_12=0}else{_12++}}return[_12,_13]},renderItem:function(c,_16,_17){if(c&&!c.rendered){c.render(this.getNextCell(c));if(this.extraCls){var t=c.getPositionEl?c.getPositionEl():c;t.addClass(this.extraCls)}}},isValidParent:function(c,_1a){return true}});Ext.Container.LAYOUTS.table=Ext.layout.TableLayout;Ext.layout.AbsoluteLayout=Ext.extend(Ext.layout.AnchorLayout,{extraCls:"x-abs-layout-item",isForm:false,setContainer:function(ct){Ext.layout.AbsoluteLayout.superclass.setContainer.call(this,ct);if(ct.isXType("form")){this.isForm=true}},onLayout:function(ct,_3){if(this.isForm){ct.body.position()}else{_3.position()}Ext.layout.AbsoluteLayout.superclass.onLayout.call(this,ct,_3)},getAnchorViewSize:function(ct,_5){return this.isForm?ct.body.getStyleSize():Ext.layout.AbsoluteLayout.superclass.getAnchorViewSize.call(this,ct,_5)},isValidParent:function(c,_7){return this.isForm?true:Ext.layout.AbsoluteLayout.superclass.isValidParent.call(this,c,_7)},adjustWidthAnchor:function(_8,_9){return _8?_8-_9.getPosition(true)[0]:_8},adjustHeightAnchor:function(_a,_b){return _a?_a-_b.getPosition(true)[1]:_a}});Ext.Container.LAYOUTS.absolute=Ext.layout.AbsoluteLayout;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(w,h){this.fireEvent("resize",this,w,h,w,h)}});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",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.tbar){this.elements+=",tbar";if(typeof this.tbar=="object"){this.topToolbar=this.tbar}delete this.tbar}if(this.bbar){this.elements+=",bbar";if(typeof this.bbar=="object"){this.bottomToolbar=this.bbar}delete this.bbar}if(this.header===true){this.elements+=",header";delete this.header}else{if(this.title&&this.header!==false){this.elements+=",header"}}if(this.footer===true){this.elements+=",footer";delete this.footer}if(this.buttons){var _1=this.buttons;this.buttons=[];for(var i=0,_3=_1.length;i<_3;i++){if(_1[i].render){_1[i].ownerCt=this;this.buttons.push(_1[i])}else{this.addButton(_1[i])}}}if(this.autoLoad){this.on("render",this.doAutoLoad,this,{delay:10})}},createElement:function(_4,_5){if(this[_4]){_5.appendChild(this[_4].dom);return}if(_4==="bwrap"||this.elements.indexOf(_4)!=-1){if(this[_4+"Cfg"]){this[_4]=Ext.fly(_5).createChild(this[_4+"Cfg"])}else{var el=document.createElement("div");el.className=this[_4+"Cls"];this[_4]=Ext.get(_5.appendChild(el))}if(this[_4+"CssClass"]){this[_4].addClass(this[_4+"CssClass"])}if(this[_4+"Style"]){this[_4].applyStyles(this[_4+"Style"])}}},onRender:function(ct,_8){Ext.Panel.superclass.onRender.call(this,ct,_8);this.createClasses();if(this.el){this.el.addClass(this.baseCls);this.header=this.el.down("."+this.headerCls);this.bwrap=this.el.down("."+this.bwrapCls);var cp=this.bwrap?this.bwrap:this.el;this.tbar=cp.down("."+this.tbarCls);this.body=cp.down("."+this.bodyCls);this.bbar=cp.down("."+this.bbarCls);this.footer=cp.down("."+this.footerCls);this.fromMarkup=true}else{this.el=ct.createChild({id:this.id,cls:this.baseCls},_8)}var el=this.el,d=el.dom;if(this.cls){this.el.addClass(this.cls)}if(this.buttons){this.elements+=",footer"}if(this.frame){el.insertHtml("afterBegin",String.format(Ext.Element.boxMarkup,this.baseCls));this.createElement("header",d.firstChild.firstChild.firstChild);this.createElement("bwrap",d);var bw=this.bwrap.dom;var ml=d.childNodes[1],bl=d.childNodes[2];bw.appendChild(ml);bw.appendChild(bl);var mc=bw.firstChild.firstChild.firstChild;this.createElement("tbar",mc);this.createElement("body",mc);this.createElement("bbar",mc);this.createElement("footer",bw.lastChild.firstChild.firstChild);if(!this.footer){this.bwrap.dom.lastChild.className+=" x-panel-nofooter"}}else{this.createElement("header",d);this.createElement("bwrap",d);var bw=this.bwrap.dom;this.createElement("tbar",bw);this.createElement("body",bw);this.createElement("bbar",bw);this.createElement("footer",bw);if(!this.header){this.body.addClass(this.bodyCls+"-noheader");if(this.tbar){this.tbar.addClass(this.tbarCls+"-noheader")}}}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=''+this.header.dom.innerHTML+"";if(this.iconCls){this.setIconClass(this.iconCls)}}}if(this.floating){this.makeFloating(this.floating)}if(this.collapsible){this.tools=this.tools?this.tools.slice(0):[];if(!this.hideCollapseTool){this.tools[this.collapseFirst?"unshift":"push"]({id:"toggle",handler:this.toggleCollapse,scope:this})}if(this.titleCollapse&&this.header){this.header.on("click",this.toggleCollapse,this);this.header.setStyle("cursor","pointer")}}if(this.tools){var ts=this.tools;this.tools={};this.addTool.apply(this,ts)}else{this.tools={}}if(this.buttons&&this.buttons.length>0){var tb=this.footer.createChild({cls:"x-panel-btns-ct",cn:{cls:"x-panel-btns x-panel-btns-"+this.buttonAlign,html:'
'}},null,true);var tr=tb.getElementsByTagName("tr")[0];for(var i=0,len=this.buttons.length;i ');tt.disableFormats=true;tt.compile();Ext.Panel.prototype.toolTemplate=tt}for(var i=0,a=arguments,len=a.length;i0){a.sort(_4);var _a=a[0].manager.zseed;for(var i=0;i<_9;i++){var _c=a[i];if(_c&&!_c.hidden){_c.setZIndex(_a+(i*10))}}}_d()};var _e=function(_f){if(_f!=_3){if(_3){_3.setActive(false)}_3=_f;if(_f){_f.setActive(true)}}};var _d=function(){for(var i=_2.length-1;i>=0;--i){if(!_2[i].hidden){_e(_2[i]);return}}_e(null)};return{zseed:9000,register:function(win){_1[win.id]=win;_2.push(win);win.on("hide",_d)},unregister:function(win){delete _1[win.id];win.un("hide",_d);_2.remove(win)},get:function(id){return typeof id=="object"?id:_1[id]},bringToFront:function(win){win=this.get(win);if(win!=_3){win._lastAccess=new Date().getTime();_7();return true}return false},sendToBack:function(win){win=this.get(win);win._lastAccess=-(new Date().getTime());_7();return win},hideAll:function(){for(var id in _1){if(_1[id]&&typeof _1[id]!="function"&&_1[id].isVisible()){_1[id].hide()}}},getActive:function(){return _3},getBy:function(fn,_18){var r=[];for(var i=_2.length-1;i>=0;--i){var win=_2[i];if(fn.call(_18||win,win)!==false){r.push(win)}}return r},each:function(fn,_1d){for(var id in _1){if(_1[id]&&typeof _1[id]!="function"){if(fn.call(_1d||_1[id],_1[id])===false){return}}}}}};Ext.WindowMgr=new Ext.WindowGroup();Ext.dd.PanelProxy=function(_1,_2){this.panel=_1;this.id=this.panel.id+"-ddproxy";Ext.apply(this,_2)};Ext.dd.PanelProxy.prototype={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(undefined,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(xy,_4,_5){this.hide();if(typeof _4=="function"){_4.call(_5||this)}},moveProxy:function(_6,_7){if(this.proxy){_6.insertBefore(this.proxy.dom,_7)}}};Ext.Panel.DD=function(_8,_9){this.panel=_8;this.dragData={panel:_8};this.proxy=new Ext.dd.PanelProxy(_8,_9);Ext.Panel.DD.superclass.constructor.call(this,_8.el,_9);var h=_8.header;if(h){this.setHandleElId(h.id)}(h?h:this.panel.body).setStyle("cursor","move");this.scroll=false};Ext.extend(Ext.Panel.DD,Ext.dd.DragSource,{showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(x,y){this.proxy.show()},b4MouseDown:function(e){var x=e.getPageX();var y=e.getPageY();this.autoOffset(x,y)},onInitDrag:function(x,y){this.onStartDrag(x,y);return true},createFrame:Ext.emptyFn,getDragEl:function(e){return this.proxy.ghost.dom},endDrag:function(e){this.proxy.hide();this.panel.saveState()},autoOffset:function(x,y){x-=this.startPageX;y-=this.startPageY;this.setDelta(x,y)}});Ext.state.Provider=function(){this.addEvents("statechange");this.state={};Ext.state.Provider.superclass.constructor.call(this)};Ext.extend(Ext.state.Provider,Ext.util.Observable,{get:function(_1,_2){return typeof this.state[_1]=="undefined"?_2:this.state[_1]},clear:function(_3){delete this.state[_3];this.fireEvent("statechange",this,_3,null)},set:function(_4,_5){this.state[_4]=_5;this.fireEvent("statechange",this,_4,_5)},decodeValue:function(_6){var re=/^(a|n|d|b|s|o)\:(.*)$/;var _8=re.exec(unescape(_6));if(!_8||!_8[1]){return}var _9=_8[1];var v=_8[2];switch(_9){case"n":return parseFloat(v);case"d":return new Date(Date.parse(v));case"b":return(v=="1");case"a":var _b=[];var _c=v.split("^");for(var i=0,_e=_c.length;i<_e;i++){_b.push(this.decodeValue(_c[i]))}return _b;case"o":var _b={};var _c=v.split("^");for(var i=0,_e=_c.length;i<_e;i++){var kv=_c[i].split("=");_b[kv[0]]=this.decodeValue(kv[1])}return _b;default:return v}},encodeValue:function(v){var enc;if(typeof v=="number"){enc="n:"+v}else{if(typeof v=="boolean"){enc="b:"+(v?"1":"0")}else{if(Ext.isDate(v)){enc="d:"+v.toGMTString()}else{if(Ext.isArray(v)){var _12="";for(var i=0,len=v.length;i0){if(!_44){this.selected.removeClass(this.selectedClass)}this.selected.clear();this.last=false;if(!_43){this.fireEvent("selectionchange",this,this.selected.elements)}}},isSelected:function(_45){return this.selected.contains(this.getNode(_45))},deselect:function(_46){if(this.isSelected(_46)){_46=this.getNode(_46);this.selected.removeElement(_46);if(this.last==_46.viewIndex){this.last=false}Ext.fly(_46).removeClass(this.selectedClass);this.fireEvent("selectionchange",this,this.selected.elements)}},select:function(_47,_48,_49){if(Ext.isArray(_47)){if(!_48){this.clearSelections(true)}for(var i=0,len=_47.length;i=end&&ns[i];i--){_54.push(ns[i])}}return _54},indexOf:function(_56){_56=this.getNode(_56);if(typeof _56.viewIndex=="number"){return _56.viewIndex}return this.all.indexOf(_56)},onBeforeLoad:function(){if(this.loadingText){this.clearSelections(false,true);this.el.update('
'+this.loadingText+"
");this.all.clear()}},onDestroy:function(){Ext.DataView.superclass.onDestroy.call(this); this.setStore(null)}});Ext.reg("dataview",Ext.DataView);Ext.ColorPalette=function(_1){Ext.ColorPalette.superclass.constructor.call(this,_1);this.addEvents("select");if(this.handler){this.on("select",this.handler,this.scope,true)}};Ext.extend(Ext.ColorPalette,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"],onRender:function(_2,_3){var t=this.tpl||new Ext.XTemplate(' ');var el=document.createElement("div");el.id=this.getId();el.className=this.itemCls;t.overwrite(el,this.colors);_2.dom.insertBefore(el,_3);this.el=Ext.get(el);this.el.on(this.clickEvent,this.handleClick,this,{delegate:"a"});if(this.clickEvent!="click"){this.el.on("click",Ext.emptyFn,this,{delegate:"a",preventDefault:true})}},afterRender:function(){Ext.ColorPalette.superclass.afterRender.call(this);if(this.value){var s=this.value;this.value=null;this.select(s)}},handleClick:function(e,t){e.preventDefault();if(!this.disabled){var c=t.className.match(/(?:^|\s)color-(.{6})(?:\s|$)/)[1];this.select(c.toUpperCase())}},select:function(_a){_a=_a.replace("#","");if(_a!=this.value||this.allowReselect){var el=this.el;if(this.value){el.child("a.color-"+this.value).removeClass("x-color-palette-sel")}el.child("a.color-"+_a).addClass("x-color-palette-sel");this.value=_a;this.fireEvent("select",this,_a)}}});Ext.reg("colorpalette",Ext.ColorPalette);Ext.DatePicker=Ext.extend(Ext.Component,{todayText:"Today",okText:" OK ",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,initComponent:function(){Ext.DatePicker.superclass.initComponent.call(this);this.value=this.value?this.value.clearTime():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 dd=this.disabledDates;var re="(?:";for(var i=0;i','  ',''];var dn=this.dayNames;for(var i=0;i<7;i++){var d=this.startDay+i;if(d>6){d=d-7}m.push("")}m[m.length]="";for(var i=0;i<42;i++){if(i%7==0&&i!=0){m[m.length]=""}m[m.length]=''}m.push("
",dn[d].substr(0,1),"
",this.showToday?'':"",'
');var el=document.createElement("div");el.className="x-date-picker";el.innerHTML=m.join("");_a.dom.insertBefore(el,_b);this.el=Ext.get(el);this.eventEl=Ext.get(el.firstChild);this.leftClickRpt=new Ext.util.ClickRepeater(this.el.child("td.x-date-left a"),{handler:this.showPrevMonth,scope:this,preventDefault:true,stopDefault:true});this.rightClickRpt=new Ext.util.ClickRepeater(this.el.child("td.x-date-right a"),{handler:this.showNextMonth,scope:this,preventDefault:true,stopDefault:true});this.eventEl.on("mousewheel",this.handleMouseWheel,this);this.monthPicker=this.el.down("div.x-date-mp");this.monthPicker.enableDisplayMode("block");var kn=new Ext.KeyNav(this.eventEl,{left:function(e){e.ctrlKey?this.showPrevMonth():this.update(this.activeDate.add("d",-1))},right:function(e){e.ctrlKey?this.showNextMonth():this.update(this.activeDate.add("d",1))},up:function(e){e.ctrlKey?this.showNextYear():this.update(this.activeDate.add("d",-7))},down:function(e){e.ctrlKey?this.showPrevYear():this.update(this.activeDate.add("d",7))},pageUp:function(e){this.showNextMonth()},pageDown:function(e){this.showPrevMonth()},enter:function(e){e.stopPropagation();return true},scope:this});this.eventEl.on("click",this.handleDateClick,this,{delegate:"a.x-date-date"});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:" ",tooltip:this.monthYearText,renderTo:this.el.child("td.x-date-middle",true)});this.mbtn.on("click",this.showMonthPicker,this);this.mbtn.el.child(this.mbtn.menuClassTarget).addClass("x-btn-with-menu");if(this.showToday){this.todayKeyListener=this.eventEl.addKeyListener(Ext.EventObject.SPACE,this.selectToday,this);var _19=(new Date()).dateFormat(this.format);this.todayBtn=new Ext.Button({renderTo:this.el.child("td.x-date-bottom",true),text:String.format(this.todayText,_19),tooltip:String.format(this.todayTip,_19),handler:this.selectToday,scope:this})}if(Ext.isIE){this.el.repaint()}this.update(this.value)},createMonthPicker:function(){if(!this.monthPicker.dom.firstChild){var buf=[''];for(var i=0;i<6;i++){buf.push('",'",i==0?'':'')}buf.push('","
',this.monthNames[i].substr(0,3),"',this.monthNames[i+6].substr(0,3),"
");this.monthPicker.update(buf.join(""));this.monthPicker.on("click",this.onMonthClick,this);this.monthPicker.on("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(m,a,i){i+=1;if((i%2)==0){m.dom.xmonth=5+Math.round(i*0.5)}else{m.dom.xmonth=Math.round((i-1)*0.5)}})}},showMonthPicker:function(){this.createMonthPicker();var _1f=this.el.getSize();this.monthPicker.setSize(_1f);this.monthPicker.child("table").setSize(_1f);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(y){this.mpyear=y;var ys=this.mpYears.elements;for(var i=1;i<=10;i++){var td=ys[i-1],y2;if((i%2)==0){y2=y+Math.round(i*0.5);td.firstChild.innerHTML=y2;td.xyear=y2}else{y2=y-(5-Math.round(i*0.5));td.firstChild.innerHTML=y2;td.xyear=y2}this.mpYears.item(i-1)[y2==this.mpSelYear?"addClass":"removeClass"]("x-date-mp-sel")}},updateMPMonth:function(sm){this.mpMonths.each(function(m,a,i){m[m.dom.xmonth==sm?"addClass":"removeClass"]("x-date-mp-sel")})},selectMPMonth:function(m){},onMonthClick:function(e,t){e.stopEvent();var el=new Ext.Element(t),pn;if(el.is("button.x-date-mp-cancel")){this.hideMonthPicker()}else{if(el.is("button.x-date-mp-ok")){var d=new Date(this.mpSelYear,this.mpSelMonth,(this.activeDate||this.value).getDate());if(d.getMonth()!=this.mpSelMonth){d=new Date(this.mpSelYear,this.mpSelMonth,1).getLastDateOfMonth()}this.update(d);this.hideMonthPicker()}else{if(pn=el.up("td.x-date-mp-month",2)){this.mpMonths.removeClass("x-date-mp-sel");pn.addClass("x-date-mp-sel");this.mpSelMonth=pn.dom.xmonth}else{if(pn=el.up("td.x-date-mp-year",2)){this.mpYears.removeClass("x-date-mp-sel");pn.addClass("x-date-mp-sel");this.mpSelYear=pn.dom.xyear}else{if(el.is("a.x-date-mp-prev")){this.updateMPYear(this.mpyear-10)}else{if(el.is("a.x-date-mp-next")){this.updateMPYear(this.mpyear+10)}}}}}}},onMonthDblClick:function(e,t){e.stopEvent();var el=new Ext.Element(t),pn;if(pn=el.up("td.x-date-mp-month",2)){this.update(new Date(this.mpSelYear,pn.dom.xmonth,(this.activeDate||this.value).getDate()));this.hideMonthPicker()}else{if(pn=el.up("td.x-date-mp-year",2)){this.update(new Date(pn.dom.xyear,this.mpSelMonth,(this.activeDate||this.value).getDate()));this.hideMonthPicker()}}},hideMonthPicker:function(_33){if(this.monthPicker){if(_33===true){this.monthPicker.hide()}else{this.monthPicker.slideOut("t",{duration:0.2})}}},showPrevMonth:function(e){this.update(this.activeDate.add("mo",-1))},showNextMonth:function(e){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(e){var _37=e.getWheelDelta();if(_37>0){this.showPrevMonth();e.stopEvent()}else{if(_37<0){this.showNextMonth();e.stopEvent()}}},handleDateClick:function(e,t){e.stopEvent();if(t.dateValue&&!Ext.fly(t.parentNode).hasClass("x-date-disabled")){this.setValue(new Date(t.dateValue));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(_3a,_3b){var vd=this.activeDate;this.activeDate=_3a;if(!_3b&&vd&&this.el){var t=_3a.getTime();if(vd.getMonth()==_3a.getMonth()&&vd.getFullYear()==_3a.getFullYear()){this.cells.removeClass("x-date-selected");this.cells.each(function(c){if(c.dom.firstChild.dateValue==t){c.addClass("x-date-selected");setTimeout(function(){try{c.dom.firstChild.focus()}catch(e){}},50);return false}});return}}var _3f=_3a.getDaysInMonth();var _40=_3a.getFirstDateOfMonth();var _41=_40.getDay()-this.startDay;if(_41<=this.startDay){_41+=7}var pm=_3a.add("mo",-1);var _43=pm.getDaysInMonth()-_41;var _44=this.cells.elements;var _45=this.textNodes;_3f+=_41;var day=86400000;var d=(new Date(pm.getFullYear(),pm.getMonth(),_43)).clearTime();var _48=new Date().clearTime().getTime();var sel=_3a.clearTime().getTime();var min=this.minDate?this.minDate.clearTime():Number.NEGATIVE_INFINITY;var max=this.maxDate?this.maxDate.clearTime():Number.POSITIVE_INFINITY;var _4c=this.disabledDatesRE;var _4d=this.disabledDatesText;var _4e=this.disabledDays?this.disabledDays.join(""):false;var _4f=this.disabledDaysText;var _50=this.format;if(this.showToday){var td=new Date().clearTime();var _52=(tdmax||(_4c&&_50&&_4c.test(td.dateFormat(_50)))||(_4e&&_4e.indexOf(td.getDay())!=-1));this.todayBtn.setDisabled(_52);this.todayKeyListener[_52?"disable":"enable"]()}var _53=function(cal,_55){_55.title="";var t=d.getTime();_55.firstChild.dateValue=t;if(t==_48){_55.className+=" x-date-today";_55.title=cal.todayText}if(t==sel){_55.className+=" x-date-selected";setTimeout(function(){try{_55.firstChild.focus()}catch(e){}},50)}if(tmax){_55.className=" x-date-disabled";_55.title=cal.maxText;return}if(_4e){if(_4e.indexOf(d.getDay())!=-1){_55.title=_4f;_55.className=" x-date-disabled"}}if(_4c&&_50){var _57=d.dateFormat(_50);if(_4c.test(_57)){_55.title=_4d.replace("%0",_57);_55.className=" x-date-disabled"}}};var i=0;for(;i<_41;i++){_45[i].innerHTML=(++_43);d.setDate(d.getDate()+1);_44[i].className="x-date-prevday";_53(this,_44[i])}for(;i<_3f;i++){var _59=i-_41+1;_45[i].innerHTML=(_59);d.setDate(d.getDate()+1);_44[i].className="x-date-active";_53(this,_44[i])}var _5a=0;for(;i<42;i++){_45[i].innerHTML=(++_5a);d.setDate(d.getDate()+1);_44[i].className="x-date-nextday";_53(this,_44[i])}this.mbtn.setText(this.monthNames[_3a.getMonth()]+" "+_3a.getFullYear());if(!this.internalRender){var _5b=this.el.dom.firstChild;var w=_5b.offsetWidth;this.el.setWidth(w+this.el.getBorderWidth("lr"));Ext.fly(_5b).setWidth(w);this.internalRender=true;if(Ext.isOpera&&!this.secondPass){_5b.rows[0].cells[1].style.width=(w-(_5b.rows[0].cells[0].offsetWidth+_5b.rows[0].cells[2].offsetWidth))+"px";this.secondPass=true;this.update.defer(10,this,[_3a])}}},beforeDestroy:function(){if(this.rendered){Ext.destroy(this.leftClickRpt,this.rightClickRpt,this.monthPicker,this.eventEl,this.mbtn,this.todayBtn)}}});Ext.reg("datepicker",Ext.DatePicker);Ext.TabPanel=Ext.extend(Ext.Panel,{monitorResize:true,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:null,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({deferredRender:this.deferredRender}));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()},render:function(){Ext.TabPanel.superclass.render.apply(this,arguments);if(this.activeTab!==undefined){var _1=this.activeTab;delete this.activeTab;this.setActiveTab(_1)}},onRender:function(ct,_3){Ext.TabPanel.superclass.onRender.call(this,ct,_3);if(this.plain){var _4=this.tabPosition=="top"?"header":"footer";this[_4].addClass("x-tab-panel-"+_4+"-plain")}var st=this[this.stripTarget];this.stripWrap=st.createChild({cls:"x-tab-strip-wrap",cn:{tag:"ul",cls:"x-tab-strip x-tab-strip-"+this.tabPosition}});var _6=(this.tabPosition=="bottom"?this.stripWrap:null);this.stripSpacer=st.createChild({cls:"x-tab-strip-spacer"},_6);this.strip=new Ext.Element(this.stripWrap.dom.firstChild);this.edge=this.strip.createChild({tag:"li",cls:"x-tab-edge"});this.strip.createChild({cls:"x-clear"});this.body.addClass("x-tab-panel-body-"+this.tabPosition);if(!this.itemTpl){var tt=new Ext.Template('
  • ','','{text}',"
  • ");tt.disableFormats=true;tt.compile();Ext.TabPanel.prototype.itemTpl=tt}this.items.each(this.initTab,this)},afterRender:function(){Ext.TabPanel.superclass.afterRender.call(this);if(this.autoTabs){this.readTabs(false)}},initEvents:function(){Ext.TabPanel.superclass.initEvents.call(this);this.on("add",this.onAdd,this);this.on("remove",this.onRemove,this); this.strip.on("mousedown",this.onStripMouseDown,this);this.strip.on("contextmenu",this.onStripContextMenu,this);if(this.enableTabScroll){this.strip.on("mousewheel",this.onWheel,this)}},findTargets:function(e){var _9=null;var _a=e.getTarget("li",this.strip);if(_a){_9=this.getComponent(_a.id.split(this.idDelimiter)[1]);if(_9.disabled){return{close:null,item:null,el:null}}}return{close:e.getTarget(".x-tab-strip-close",this.strip),item:_9,el:_a}},onStripMouseDown:function(e){if(e.button!=0){return}e.preventDefault();var t=this.findTargets(e);if(t.close){this.remove(t.item);return}if(t.item&&t.item!=this.activeTab){this.setActiveTab(t.item)}},onStripContextMenu:function(e){e.preventDefault();var t=this.findTargets(e);if(t.item){this.fireEvent("contextmenu",this,t.item,e)}},readTabs:function(_f){if(_f===true){this.items.each(function(_10){this.remove(_10)},this)}var _11=this.el.query(this.autoTabSelector);for(var i=0,len=_11.length;i0){this.setActiveTab(0)}else{this.activeTab=null}}}this.delegateUpdates()},onBeforeShowItem:function(_25){if(_25!=this.activeTab){this.setActiveTab(_25);return false}},onItemDisabled:function(_26){var el=this.getTabEl(_26);if(el){Ext.fly(el).addClass("x-item-disabled")}this.stack.remove(_26)},onItemEnabled:function(_28){var el=this.getTabEl(_28);if(el){Ext.fly(el).removeClass("x-item-disabled")}},onItemTitleChanged:function(_2a){var el=this.getTabEl(_2a);if(el){Ext.fly(el).child("span.x-tab-strip-text",true).innerHTML=_2a.title}},onItemIconChanged:function(_2c,_2d,_2e){var el=this.getTabEl(_2c);if(el){Ext.fly(el).child("span.x-tab-strip-text").replaceClass(_2e,_2d)}},getTabEl:function(_30){var _31=(typeof _30==="number")?this.items.items[_30].getItemId():_30.getItemId();return document.getElementById(this.id+this.idDelimiter+_31)},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(_32){_32=this.getComponent(_32);var el=this.getTabEl(_32);if(el){el.style.display="none";this.delegateUpdates()}this.stack.remove(_32)},unhideTabStripItem:function(_34){_34=this.getComponent(_34);var el=this.getTabEl(_34);if(el){el.style.display="";this.delegateUpdates()}},delegateUpdates:function(){if(this.suspendUpdates){return}if(this.resizeTabs&&this.rendered){this.autoSizeTabs()}if(this.enableTabScroll&&this.rendered){this.autoScrollTabs()}},autoSizeTabs:function(){var _36=this.items.length;var ce=this.tabPosition!="bottom"?"header":"footer";var ow=this[ce].dom.offsetWidth;var aw=this[ce].dom.clientWidth;if(!this.resizeTabs||_36<1||!aw){return}var _3a=Math.max(Math.min(Math.floor((aw-4)/_36)-this.tabMargin,this.tabWidth),this.minTabWidth);this.lastTabWidth=_3a;var lis=this.stripWrap.dom.getElementsByTagName("li");for(var i=0,len=lis.length-1;i20?tw:20);if(!this.scrolling){if(!this.scrollLeft){this.createScrollers()}else{this.scrollLeft.show();this.scrollRight.show()}}this.scrolling=true;if(pos>(l-tw)){wd.scrollLeft=l-tw}else{this.scrollToTab(this.activeTab,false)}this.updateScrollButtons()}},createScrollers:function(){this.pos.addClass("x-tab-scrolling-"+this.tabPosition);var h=this.stripWrap.dom.offsetHeight;var sl=this.pos.insertFirst({cls:"x-tab-scroller-left"});sl.setHeight(h);sl.addClassOnOver("x-tab-scroller-left-over");this.leftRepeater=new Ext.util.ClickRepeater(sl,{interval:this.scrollRepeatInterval,handler:this.onScrollLeft,scope:this});this.scrollLeft=sl;var sr=this.pos.insertFirst({cls:"x-tab-scroller-right"});sr.setHeight(h);sr.addClassOnOver("x-tab-scroller-right-over");this.rightRepeater=new Ext.util.ClickRepeater(sr,{interval:this.scrollRepeatInterval,handler:this.onScrollRight,scope:this});this.scrollRight=sr},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(_52,_53){if(!_52){return}var el=this.getTabEl(_52);var pos=this.getScrollPos(),_56=this.getScrollArea(); var _57=Ext.fly(el).getOffsetsTo(this.stripWrap)[0]+pos;var _58=_57+el.offsetWidth;if(_57(pos+_56)){this.scrollTo(_58-_56,_53)}}},scrollTo:function(pos,_5a){this.stripWrap.scrollTo("left",pos,_5a?this.getScrollAnim():false);if(!_5a){this.updateScrollButtons()}},onWheel:function(e){var d=e.getWheelDelta()*this.wheelIncrement*-1;e.stopEvent();var pos=this.getScrollPos();var _5e=pos+d;var sw=this.getScrollWidth()-this.getScrollArea();var s=Math.max(0,Math.min(sw,_5e));if(s!=pos){this.scrollTo(s,false)}},onScrollRight:function(){var sw=this.getScrollWidth()-this.getScrollArea();var pos=this.getScrollPos();var s=Math.min(sw,pos+this.getScrollIncrement());if(s!=pos){this.scrollTo(s,this.animScroll)}},onScrollLeft:function(){var pos=this.getScrollPos();var s=Math.max(0,pos-this.getScrollIncrement());if(s!=pos){this.scrollTo(s,this.animScroll)}},updateScrollButtons:function(){var pos=this.getScrollPos();this.scrollLeft[pos==0?"addClass":"removeClass"]("x-tab-scroller-left-disabled");this.scrollRight[pos>=(this.getScrollWidth()-this.getScrollArea())?"addClass":"removeClass"]("x-tab-scroller-right-disabled")},beforeDestroy:function(){if(this.items){this.items.each(function(_67){if(_67&&_67.tabEl){Ext.get(_67.tabEl).removeAllListeners();_67.tabEl=null}},this)}if(this.strip){this.strip.removeAllListeners()}Ext.TabPanel.superclass.beforeDestroy.apply(this)}});Ext.reg("tabpanel",Ext.TabPanel);Ext.TabPanel.prototype.activate=Ext.TabPanel.prototype.setActiveTab;Ext.TabPanel.AccessStack=function(){var _68=[];return{add:function(_69){_68.push(_69);if(_68.length>10){_68.shift()}},remove:function(_6a){var s=[];for(var i=0,len=_68.length;i','  ',"")}this.template=Ext.Button.buttonTemplate}var _3,_4=[this.text||" ",this.type];if(_2){_3=this.template.insertBefore(_2,_4,true)}else{_3=this.template.append(ct,_4,true)}var _5=this.btnEl=_3.child(this.buttonSelector);_5.on("focus",this.onFocus,this);_5.on("blur",this.onBlur,this);this.initButtonEl(_3,_5);if(this.menu){this.el.child(this.menuClassTarget).addClass("x-btn-with-menu")}Ext.ButtonToggleMgr.register(this)},initButtonEl:function(_6,_7){this.el=_6;_6.addClass("x-btn");if(this.id){this.el.dom.id=this.el.id=this.id}if(this.icon){_7.setStyle("background-image","url("+this.icon+")")}if(this.iconCls){_7.addClass(this.iconCls);if(!this.cls){_6.addClass(this.text?"x-btn-text-icon":"x-btn-icon")}}if(this.tabIndex!==undefined){_7.dom.tabIndex=this.tabIndex}if(this.tooltip){if(typeof this.tooltip=="object"){Ext.QuickTips.register(Ext.apply({target:_7.id},this.tooltip))}else{_7.dom[this.tooltipType]=this.tooltip}}if(this.pressed){this.el.addClass("x-btn-pressed")}if(this.handleMouseEvents){_6.on("mouseover",this.onMouseOver,this);_6.on("mousedown",this.onMouseDown,this)}if(this.menu){this.menu.on("show",this.onMenuShow,this);this.menu.on("hide",this.onMenuHide,this)}if(this.repeat){var _8=new Ext.util.ClickRepeater(_6,typeof this.repeat=="object"?this.repeat:{});_8.on("click",this.onClick,this)}_6.on(this.clickEvent,this.onClick,this)},afterRender:function(){Ext.Button.superclass.afterRender.call(this);if(Ext.isIE6){this.autoWidth.defer(1,this)}else{this.autoWidth()}},setIconClass:function(_9){if(this.el){this.btnEl.replaceClass(this.iconCls,_9)}this.iconCls=_9},beforeDestroy:function(){if(this.rendered){if(this.btnEl){if(typeof this.tooltip=="object"){Ext.QuickTips.unregister(this.btnEl)}Ext.destroy(this.btnEl)}}Ext.destroy(this.menu)},onDestroy:function(){if(this.rendered){Ext.ButtonToggleMgr.unregister(this)}},autoWidth:function(){if(this.el){this.el.setWidth("auto");if(Ext.isIE7&&Ext.isStrict){var ib=this.btnEl;if(ib&&ib.getWidth()>20){ib.clip();ib.setWidth(Ext.util.TextMetrics.measure(ib,this.text).width+ib.getFrameWidth("lr"))}}if(this.minWidth){if(this.el.getWidth()','','',"
     
    ",'','',"
     
    ");var _4,_5=[this.text||" ",this.type];if(_2){_4=_3.insertBefore(_2,_5,true)}else{_4=_3.append(ct,_5,true)}var _6=_4.child(this.buttonSelector);this.initButtonEl(_4,_6);this.arrowBtnTable=_4.child("table:last");if(this.arrowTooltip){_4.child(this.arrowSelector).dom[this.tooltipType]=this.arrowTooltip}},autoWidth:function(){if(this.el){var _7=this.el.child("table:first");var _8=this.el.child("table:last");this.el.setWidth("auto");_7.setWidth("auto");if(Ext.isIE7&&Ext.isStrict){var ib=this.el.child(this.buttonSelector);if(ib&&ib.getWidth()>20){ib.clip();ib.setWidth(Ext.util.TextMetrics.measure(ib,this.text).width+ib.getFrameWidth("lr"))}}if(this.minWidth){if((_7.getWidth()+_8.getWidth())'},onRender:function(ct,_5){this.el=ct.createChild(Ext.apply({id:this.id},this.autoCreate),_5);this.tr=this.el.child("tr",true)},afterRender:function(){T.superclass.afterRender.call(this);if(this.buttons){this.add.apply(this,this.buttons);delete this.buttons}},add:function(){var a=arguments,l=a.length;for(var i=0;i"){this.addFill()}else{this.addText(el)}}}}else{if(el.tagName){this.addElement(el)}else{if(typeof el=="object"){if(el.xtype){this.addField(Ext.ComponentMgr.create(el,"button"))}else{this.addButton(el)}}}}}}}},addSeparator:function(){return this.addItem(new T.Separator())},addSpacer:function(){return this.addItem(new T.Spacer())},addFill:function(){return this.addItem(new T.Fill())},addElement:function(el){return this.addItem(new T.Item(el))},addItem:function(_b){var td=this.nextBlock();this.initMenuTracking(_b);_b.render(td);this.items.add(_b);return _b},addButton:function(_d){if(Ext.isArray(_d)){var _e=[];for(var i=0,len=_d.length;i=1&_13<=d.pages){this.field.dom.value=_13}}}}}},beforeLoad:function(){if(this.rendered&&this.loading){this.loading.disable()}},doLoad:function(_15){var o={},pn=this.paramNames;o[pn.start]=_15;o[pn.limit]=this.pageSize;if(this.fireEvent("beforechange",this,o)!==false){this.store.load({params:o})}},changePage:function(_18){this.doLoad(((_18-1)*this.pageSize).constrain(0,this.store.getTotalCount()))},onClick:function(_19){var _1a=this.store;switch(_19){case"first":this.doLoad(0);break;case"prev":this.doLoad(Math.max(0,this.cursor-this.pageSize));break;case"next":this.doLoad(this.cursor+this.pageSize);break;case"last":var _1b=_1a.getTotalCount();var _1c=_1b%this.pageSize;var _1d=_1c?(_1b-_1c):_1b-this.pageSize;this.doLoad(_1d);break;case"refresh":this.doLoad(this.cursor);break}},unbind:function(_1e){_1e=Ext.StoreMgr.lookup(_1e);_1e.un("beforeload",this.beforeLoad,this);_1e.un("load",this.onLoad,this);_1e.un("loadexception",this.onLoadError,this);this.store=undefined},bind:function(_1f){_1f=Ext.StoreMgr.lookup(_1f);_1f.on("beforeload",this.beforeLoad,this);_1f.on("load",this.onLoad,this);_1f.on("loadexception",this.onLoadError,this);this.store=_1f;if(_1f.getCount()>0){this.onLoad(_1f,null,{})}},onDestroy:function(){if(this.store){this.unbind(this.store)}Ext.PagingToolbar.superclass.onDestroy.call(this)}});Ext.reg("paging",Ext.PagingToolbar);Ext.Resizable=function(el,_2){this.el=Ext.get(el);if(_2&&_2.wrap){_2.resizeChild=this.el;this.el=this.el.wrap(typeof _2.wrap=="object"?_2.wrap:{cls:"xresizable-wrap"});this.el.id=this.el.dom.id=_2.resizeChild.id+"-rzwrap";this.el.setStyle("overflow","hidden");this.el.setPositioning(_2.resizeChild.getPositioning());_2.resizeChild.clearPositioning();if(!_2.width||!_2.height){var _3=_2.resizeChild.getSize();this.el.setSize(_3.width,_3.height)}if(_2.pinned&&!_2.adjustments){_2.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,_2);if(this.pinned){this.disableTrackOver=true;this.el.addClass("x-resizable-pinned")}var _4=this.el.getStyle("position");if(_4!="absolute"&&_4!="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 hs=this.handles.split(/\s*?[,;]\s*?| /);var ps=Ext.Resizable.positions;for(var i=0,_8=hs.length;i<_8;i++){if(hs[i]&&ps[hs[i]]){var _9=ps[hs[i]];this[_9]=new Ext.Resizable.Handle(this,_9,this.disableTrackOver,this.transparent)}}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 rc=this.resizeChild;var hw=this.west,he=this.east,hn=this.north,hs=this.south;if(rc&&(hw||hn)){rc.position("relative");rc.setLeft(hw?hw.el.getWidth():0);rc.setTop(hn?hn.el.getHeight():0)}this.adjustments=[(he?-he.el.getWidth():0)+(hw?-hw.el.getWidth():0),(hn?-hn.el.getHeight():0)+(hs?-hs.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)}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)};Ext.extend(Ext.Resizable,Ext.util.Observable,{resizeChild:false,adjustments:[0,0],minWidth:5,minHeight:5,maxWidth:10000,maxHeight:10000,enabled:true,animate:false,duration:0.35,dynamic:false,handles:false,multiDirectional:false,disableTrackOver:false,easing:"easeOutStrong",widthIncrement:0,heightIncrement:0,pinned:false,width:null,height:null,preserveRatio:false,transparent:false,minX:0,minY:0,draggable:false,resizeTo:function(_e,_f){this.el.setSize(_e,_f);this.updateChildSize();this.fireEvent("resize",this,_e,_f,null)},startSizing:function(e,_11){this.fireEvent("beforeresize",this,e);if(this.enabled){if(!this.overlay){this.overlay=this.el.createProxy({tag:"div",cls:"x-resizable-overlay",html:" "},Ext.getBody());this.overlay.unselectable();this.overlay.enableDisplayMode("block");this.overlay.on("mousemove",this.onMouseMove,this);this.overlay.on("mouseup",this.onMouseUp,this)}this.overlay.setStyle("cursor",_11.el.getStyle("cursor"));this.resizing=true;this.startBox=this.el.getBox();this.startPoint=e.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 ct=Ext.get(this.constrainTo);this.resizeRegion=ct.getRegion().adjust(ct.getFrameWidth("t"),ct.getFrameWidth("l"),-ct.getFrameWidth("b"),-ct.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(_13,e){if(this.enabled){e.stopEvent();this.activeHandle=_13;this.startSizing(e,_13)}},onMouseUp:function(e){var _16=this.resizeElement();this.resizing=false;this.handleOut();this.overlay.hide();this.proxy.hide();this.fireEvent("resize",this,_16.width,_16.height,e)},updateChildSize:function(){if(this.resizeChild){var el=this.el;var _18=this.resizeChild;var adj=this.adjustments;if(el.dom.offsetWidth){var b=el.getSize(true);_18.setSize(b.width+adj[0],b.height+adj[1])}if(Ext.isIE){setTimeout(function(){if(el.dom.offsetWidth){var b=el.getSize(true);_18.setSize(b.width+adj[0],b.height+adj[1])}},10)}}},snap:function(_1c,inc,min){if(!inc||!_1c){return _1c}var _1f=_1c;var m=_1c%inc;if(m>0){if(m>(inc/2)){_1f=_1c+(inc-m)}else{_1f=_1c-m}}return Math.max(min,_1f)},resizeElement:function(){var box=this.proxy.getBox();if(this.updateBox){this.el.setBox(box,false,this.animate,this.duration,null,this.easing)}else{this.el.setSize(box.width,box.height,this.animate,this.duration,null,this.easing)}this.updateChildSize();if(!this.dynamic){this.proxy.hide()}return box},constrain:function(v,_23,m,mx){if(v-_23mx){_23=mx-v}}return _23},onMouseMove:function(e){if(this.enabled){try{if(this.resizeRegion&&!this.resizeRegion.contains(e.getPoint())){return}var _27=this.curSize||this.startBox;var x=this.startBox.x,y=this.startBox.y;var ox=x,oy=y;var w=_27.width,h=_27.height;var ow=w,oh=h;var mw=this.minWidth,mh=this.minHeight;var mxw=this.maxWidth,mxh=this.maxHeight;var wi=this.widthIncrement;var hi=this.heightIncrement;var _36=e.getXY();var _37=-(this.startPoint[0]-Math.max(this.minX,_36[0]));var _38=-(this.startPoint[1]-Math.max(this.minY,_36[1]));var pos=this.activeHandle.position;switch(pos){case"east":w+=_37;w=Math.min(Math.max(mw,w),mxw);break;case"south":h+=_38;h=Math.min(Math.max(mh,h),mxh);break;case"southeast":w+=_37;h+=_38;w=Math.min(Math.max(mw,w),mxw);h=Math.min(Math.max(mh,h),mxh);break;case"north":_38=this.constrain(h,_38,mh,mxh);y+=_38;h-=_38;break;case"west":_37=this.constrain(w,_37,mw,mxw);x+=_37;w-=_37;break;case"northeast":w+=_37;w=Math.min(Math.max(mw,w),mxw);_38=this.constrain(h,_38,mh,mxh);y+=_38;h-=_38;break;case"northwest":_37=this.constrain(w,_37,mw,mxw);_38=this.constrain(h,_38,mh,mxh);y+=_38;h-=_38;x+=_37;w-=_37;break;case"southwest":_37=this.constrain(w,_37,mw,mxw);h+=_38;h=Math.min(Math.max(mh,h),mxh);x+=_37;w-=_37;break}var sw=this.snap(w,wi,mw);var sh=this.snap(h,hi,mh);if(sw!=w||sh!=h){switch(pos){case"northeast":y-=sh-h;break;case"north":y-=sh-h;break;case"southwest":x-=sw-w;break;case"west":x-=sw-w;break;case"northwest":x-=sw-w;y-=sh-h;break}w=sw;h=sh}if(this.preserveRatio){switch(pos){case"southeast":case"east":h=oh*(w/ow);h=Math.min(Math.max(mh,h),mxh);w=ow*(h/oh);break;case"south":w=ow*(h/oh);w=Math.min(Math.max(mw,w),mxw);h=oh*(w/ow);break;case"northeast":w=ow*(h/oh);w=Math.min(Math.max(mw,w),mxw);h=oh*(w/ow);break;case"north":var tw=w;w=ow*(h/oh);w=Math.min(Math.max(mw,w),mxw);h=oh*(w/ow);x+=(tw-w)/2;break;case"southwest":h=oh*(w/ow);h=Math.min(Math.max(mh,h),mxh);var tw=w;w=ow*(h/oh);x+=tw-w;break;case"west":var th=h;h=oh*(w/ow);h=Math.min(Math.max(mh,h),mxh);y+=(th-h)/2;var tw=w;w=ow*(h/oh);x+=tw-w;break;case"northwest":var tw=w;var th=h;h=oh*(w/ow);h=Math.min(Math.max(mh,h),mxh);w=ow*(h/oh);y+=th-h;x+=tw-w;break}}this.proxy.setBounds(x,y,w,h);if(this.dynamic){this.resizeElement()}}catch(e){}}},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(_3e){if(this.dd){this.dd.destroy()}if(this.overlay){Ext.destroy(this.overlay);this.overlay=null}Ext.destroy(this.proxy);this.proxy=null;var ps=Ext.Resizable.positions;for(var k in ps){if(typeof ps[k]!="function"&&this[ps[k]]){this[ps[k]].destroy()}}if(_3e){this.el.update("");Ext.destroy(this.el);this.el=null}},syncHandleHeight:function(){var h=this.el.getHeight(true);if(this.west){this.west.el.setHeight(h)}if(this.east){this.east.el.setHeight(h)}}});Ext.Resizable.positions={n:"north",s:"south",e:"east",w:"west",se:"southeast",sw:"southwest",nw:"northwest",ne:"northeast"};Ext.Resizable.Handle=function(rz,pos,_44,_45){if(!this.tpl){var tpl=Ext.DomHelper.createTemplate({tag:"div",cls:"x-resizable-handle x-resizable-handle-{0}"});tpl.compile();Ext.Resizable.Handle.prototype.tpl=tpl}this.position=pos;this.rz=rz;this.el=this.tpl.append(rz.el.dom,[this.position],true);this.el.unselectable();if(_45){this.el.setOpacity(0)}this.el.on("mousedown",this.onMouseDown,this);if(!_44){this.el.on("mouseover",this.onMouseOver,this); this.el.on("mouseout",this.onMouseOut,this)}};Ext.Resizable.Handle.prototype={afterResize:function(rz){},onMouseDown:function(e){this.rz.onMouseDown(this,e)},onMouseOver:function(e){this.rz.handleOver(this,e)},onMouseOut:function(e){this.rz.handleOut(this,e)},destroy:function(){Ext.destroy(this.el);this.el=null}};Ext.Editor=function(_1,_2){this.field=_1;Ext.Editor.superclass.constructor.call(this,_2)};Ext.extend(Ext.Editor,Ext.Component,{value:"",alignment:"c-c?",shadow:"frame",constrain:false,swallowKeys:true,completeOnEnter:false,cancelOnEsc:false,updateEl:false,initComponent:function(){Ext.Editor.superclass.initComponent.call(this);this.addEvents("beforestartedit","startedit","beforecomplete","complete","canceledit","specialkey")},onRender:function(ct,_4){this.el=new Ext.Layer({shadow:this.shadow,cls:"x-editor",parentEl:ct,shim:this.shim,shadowOffset:4,id:this.id,constrain:this.constrain});this.el.setStyle("overflow",Ext.isGecko?"auto":"hidden");if(this.field.msgTarget!="title"){this.field.msgTarget="qtip"}this.field.inEditor=true;this.field.render(this.el);if(Ext.isGecko){this.field.el.dom.setAttribute("autocomplete","off")}this.field.on("specialkey",this.onSpecialKey,this);if(this.swallowKeys){this.field.el.swallowEvent(["keydown","keypress"])}this.field.show();this.field.on("blur",this.onBlur,this);if(this.field.grow){this.field.on("autosize",this.el.sync,this.el,{delay:1})}},onSpecialKey:function(_5,e){var _7=e.getKey();if(this.completeOnEnter&&_7==e.ENTER){e.stopEvent();this.completeEdit()}else{if(this.cancelOnEsc&&_7==e.ESC){this.cancelEdit()}else{this.fireEvent("specialkey",_5,e)}}if(this.field.triggerBlur&&(_7==e.ENTER||_7==e.ESC||_7==e.TAB)){this.field.triggerBlur()}},startEdit:function(el,_9){if(this.editing){this.completeEdit()}this.boundEl=Ext.get(el);var v=_9!==undefined?_9:this.boundEl.dom.innerHTML;if(!this.rendered){this.render(this.parentEl||document.body)}if(this.fireEvent("beforestartedit",this,this.boundEl,v)===false){return}this.startValue=v;this.field.setValue(v);this.doAutoSize();this.el.alignTo(this.boundEl,this.alignment);this.editing=true;this.show()},doAutoSize:function(){if(this.autoSize){var sz=this.boundEl.getSize();switch(this.autoSize){case"width":this.setSize(sz.width,"");break;case"height":this.setSize("",sz.height);break;default:this.setSize(sz.width,sz.height)}}},setSize:function(w,h){delete this.field.lastSize;this.field.setSize(w,h);if(this.el){if(Ext.isGecko2||Ext.isOpera){this.el.setSize(w,h)}this.el.sync()}},realign:function(){this.el.alignTo(this.boundEl,this.alignment)},completeEdit:function(_e){if(!this.editing){return}var v=this.getValue();if(this.revertInvalid!==false&&!this.field.isValid()){v=this.startValue;this.cancelEdit(true)}if(String(v)===String(this.startValue)&&this.ignoreNoChange){this.editing=false;this.hide();return}if(this.fireEvent("beforecomplete",this,v,this.startValue)!==false){this.editing=false;if(this.updateEl&&this.boundEl){this.boundEl.update(v)}if(_e!==true){this.hide()}this.fireEvent("complete",this,v,this.startValue)}},onShow:function(){this.el.show();if(this.hideEl!==false){this.boundEl.hide()}this.field.show();if(Ext.isIE&&!this.fixIEFocus){this.fixIEFocus=true;this.deferredFocus.defer(50,this)}else{this.field.focus()}this.fireEvent("startedit",this.boundEl,this.startValue)},deferredFocus:function(){if(this.editing){this.field.focus()}},cancelEdit:function(_10){if(this.editing){var v=this.getValue();this.setValue(this.startValue);if(_10!==true){this.hide()}this.fireEvent("canceledit",this,v,this.startValue)}},onBlur:function(){if(this.allowBlur!==true&&this.editing){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(v){this.field.setValue(v)},getValue:function(){return this.field.getValue()},beforeDestroy:function(){Ext.destroy(this.field);this.field=null}});Ext.reg("editor",Ext.Editor);Ext.MessageBox=function(){var _1,_2,_3,_4;var _5,_6,_7,_8,_9,pp,_b,_c;var _d,_e,_f,_10="";var _11=function(_12){if(_1.isVisible()){_1.hide();Ext.callback(_2.fn,_2.scope||window,[_12,_e.dom.value,_2],1)}};var _13=function(){if(_2&&_2.cls){_1.el.removeClass(_2.cls)}_9.reset()};var _14=function(d,k,e){if(_2&&_2.closable!==false){_1.hide()}if(e){e.stopEvent()}};var _18=function(b){var _1a=0;if(!b){_d.ok.hide();_d.cancel.hide();_d.yes.hide();_d.no.hide();return _1a}_1.footer.dom.style.display="";for(var k in _d){if(typeof _d[k]!="function"){if(b[k]){_d[k].show();_d[k].setText(typeof b[k]=="string"?b[k]:Ext.MessageBox.buttonText[k]);_1a+=_d[k].el.getWidth()+15}else{_d[k].hide()}}}return _1a};return{getDialog:function(_1c){if(!_1){_1=new Ext.Window({autoCreate:true,title:_1c,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(_2&&_2.buttons&&_2.buttons.no&&!_2.buttons.cancel){_11("no")}else{_11("cancel")}}});_d={};var bt=this.buttonText;_d.ok=_1.addButton(bt.ok,_11.createCallback("ok"));_d.yes=_1.addButton(bt.yes,_11.createCallback("yes"));_d.no=_1.addButton(bt.no,_11.createCallback("no"));_d.cancel=_1.addButton(bt.cancel,_11.createCallback("cancel"));_d.ok.hideMode=_d.yes.hideMode=_d.no.hideMode=_d.cancel.hideMode="offsets";_1.render(document.body);_1.getEl().addClass("x-window-dlg");_3=_1.mask;_5=_1.body.createChild({html:'

    '});_b=Ext.get(_5.dom.firstChild);var _1e=_5.dom.childNodes[1];_6=Ext.get(_1e.firstChild);_7=Ext.get(_1e.childNodes[2].firstChild);_7.enableDisplayMode();_7.addKeyListener([10,13],function(){if(_1.isVisible()&&_2&&_2.buttons){if(_2.buttons.ok){_11("ok")}else{if(_2.buttons.yes){_11("yes")}}}});_8=Ext.get(_1e.childNodes[2].childNodes[1]);_8.enableDisplayMode();_9=new Ext.ProgressBar({renderTo:_5});_5.createChild({cls:"x-clear"})}return _1},updateText:function(_1f){if(!_1.isVisible()&&!_2.width){_1.setSize(this.maxWidth,100)}_6.update(_1f||" ");var iw=_10!=""?(_b.getWidth()+_b.getMargins("lr")):0;var mw=_6.getWidth()+_6.getMargins("lr");var fw=_1.getFrameWidth("lr");var bw=_1.body.getFrameWidth("lr");if(Ext.isIE&&iw>0){iw+=3}var w=Math.max(Math.min(_2.width||iw+mw+fw+bw,this.maxWidth),Math.max(_2.minWidth||this.minWidth,_f||0));if(_2.prompt===true){_e.setWidth(w-iw-fw-bw)}if(_2.progress===true||_2.wait===true){_9.setSize(w-iw-fw-bw)}if(Ext.isIE&&w==_f){w+=4}_1.setSize(w,"auto").center();return this},updateProgress:function(_25,_26,msg){_9.updateProgress(_25,_26);if(msg){this.updateText(msg)}return this},isVisible:function(){return _1&&_1.isVisible()},hide:function(){var _28=_1?_1.activeGhost:null;if(this.isVisible()||_28){_1.hide();_13();if(_28){_28.hide()}}return this},show:function(_29){if(this.isVisible()){this.hide()}_2=_29;var d=this.getDialog(_2.title||" ");d.setTitle(_2.title||" ");var _2b=(_2.closable!==false&&_2.progress!==true&&_2.wait!==true);d.tools.close.setDisplayed(_2b);_e=_7;_2.prompt=_2.prompt||(_2.multiline?true:false);if(_2.prompt){if(_2.multiline){_7.hide();_8.show();_8.setHeight(typeof _2.multiline=="number"?_2.multiline:this.defaultTextHeight);_e=_8}else{_7.show();_8.hide()}}else{_7.hide();_8.hide()}_e.dom.value=_2.value||"";if(_2.prompt){d.focusEl=_e}else{var bs=_2.buttons;var db=null;if(bs&&bs.ok){db=_d.ok}else{if(bs&&bs.yes){db=_d.yes}}if(db){d.focusEl=db}}if(_2.iconCls){d.setIconClass(_2.iconCls)}this.setIcon(_2.icon);_f=_18(_2.buttons);_9.setVisible(_2.progress===true||_2.wait===true);this.updateProgress(0,_2.progressText);this.updateText(_2.msg);if(_2.cls){d.el.addClass(_2.cls)}d.proxyDrag=_2.proxyDrag===true;d.modal=_2.modal!==false;d.mask=_2.modal!==false?_3:false; if(!d.isVisible()){document.body.appendChild(_1.el.dom);d.setAnimateTarget(_2.animEl);d.show(_2.animEl)}d.on("show",function(){if(_2b===true){d.keyMap.enable()}else{d.keyMap.disable()}},this,{single:true});if(_2.wait===true){_9.wait(_2.waitConfig)}return this},setIcon:function(_2e){if(_2e&&_2e!=""){_b.removeClass("x-hidden");_b.replaceClass(_10,_2e);_5.addClass("x-dlg-icon");_10=_2e}else{_b.replaceClass(_10,"x-hidden");_5.removeClass("x-dlg-icon");_10=""}return this},progress:function(_2f,msg,_31){this.show({title:_2f,msg:msg,buttons:false,progress:true,closable:false,minWidth:this.minProgressWidth,progressText:_31});return this},wait:function(msg,_33,_34){this.show({title:_33,msg:msg,buttons:false,closable:false,wait:true,modal:true,minWidth:this.minProgressWidth,waitConfig:_34});return this},alert:function(_35,msg,fn,_38){this.show({title:_35,msg:msg,buttons:this.OK,fn:fn,scope:_38});return this},confirm:function(_39,msg,fn,_3c){this.show({title:_39,msg:msg,buttons:this.YESNO,fn:fn,scope:_3c,icon:this.QUESTION});return this},prompt:function(_3d,msg,fn,_40,_41,_42){this.show({title:_3d,msg:msg,buttons:this.OKCANCEL,fn:fn,minWidth:250,scope:_40,prompt:true,multiline:_41,value:_42});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,buttonText:{ok:"OK",cancel:"Cancel",yes:"Yes",no:"No"}}}();Ext.Msg=Ext.MessageBox;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,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.hide,scope:this})}},showAt:function(xy){Ext.Tip.superclass.show.call(this);if(this.measureWidth!==false&&(!this.initialConfig||typeof this.initialConfig.width!="number")){this.doAutoWidth()}if(this.constrainPosition){xy=this.el.adjustForConstraints(xy)}this.setPagePosition(xy[0],xy[1])},doAutoWidth:function(){var bw=this.body.getTextWidth();if(this.title){bw=Math.max(bw,this.header.child("span").getTextWidth(this.title))}bw+=this.getFrameWidth()+(this.closable?20:0)+this.body.getPadding("lr");this.setWidth(bw.constrain(this.minWidth,this.maxWidth));if(Ext.isIE7&&!this.repainted){this.el.repaint();this.repainted=true}},showBy:function(el,_4){if(!this.rendered){this.render(Ext.getBody())}this.showAt(this.el.getAlignToXY(el,_4||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.Tip.DD=function(_5,_6){Ext.apply(this,_6);this.tip=_5;Ext.Tip.DD.superclass.constructor.call(this,_5.el.id,"WindowDD-"+_5.id);this.setHandleElId(_5.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(e){this.tip.el.enableShadow(true)}});Ext.ToolTip=Ext.extend(Ext.Tip,{showDelay:500,hideDelay:200,dismissDelay:5000,mouseOffset:[15,18],trackMouse:false,constrainPosition:true,initComponent:function(){Ext.ToolTip.superclass.initComponent.call(this);this.lastActive=new Date();this.initTarget()},initTarget:function(){if(this.target){this.target=Ext.get(this.target);this.target.on("mouseover",this.onTargetOver,this);this.target.on("mouseout",this.onTargetOut,this);this.target.on("mousemove",this.onMouseMove,this)}},onMouseMove:function(e){this.targetXY=e.getXY();if(!this.hidden&&this.trackMouse){this.setPagePosition(this.getTargetXY())}},getTargetXY:function(){return[this.targetXY[0]+this.mouseOffset[0],this.targetXY[1]+this.mouseOffset[1]]},onTargetOver:function(e){if(this.disabled||e.within(this.target.dom,true)){return}this.clearTimer("hide");this.targetXY=e.getXY();this.delayShow()},delayShow:function(){if(this.hidden&&!this.showTimer){if(this.lastActive.getElapsed()=ay){y=ay-h-5}return{x:x,y:y}},onDestroy:function(){Ext.ToolTip.superclass.onDestroy.call(this);if(this.target){this.target.un("mouseover",this.onTargetOver,this);this.target.un("mouseout",this.onTargetOut,this);this.target.un("mousemove",this.onMouseMove,this)}}});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"},initComponent:function(){this.target=this.target||Ext.getDoc();this.targets=this.targets||{};Ext.QuickTip.superclass.initComponent.call(this)},register:function(_1){var cs=Ext.isArray(_1)?_1:arguments;for(var i=0,_4=cs.length;i<_4;i++){var c=cs[i];var _6=c.target;if(_6){if(Ext.isArray(_6)){for(var j=0,_8=_6.length;j<_8;j++){this.targets[Ext.id(_6[j])]=c}}else{this.targets[Ext.id(_6)]=c}}}},unregister:function(el){delete this.targets[Ext.id(el)]},onTargetOver:function(e){if(this.disabled){return}this.targetXY=e.getXY();var t=e.getTarget();if(!t||t.nodeType!==1||t==document||t==document.body){return}if(this.activeTarget&&t==this.activeTarget.el){this.clearTimer("hide");this.show();return}if(t&&this.targets[t.id]){this.activeTarget=this.targets[t.id];this.activeTarget.el=t;this.delayShow();return}var _c,et=Ext.fly(t),_e=this.tagConfig;var ns=_e.namespace;if(this.interceptTitles&&t.title){_c=t.title;t.qtip=_c;t.removeAttribute("title");e.preventDefault()}else{_c=t.qtip||et.getAttributeNS(ns,_e.attribute)}if(_c){var _10=et.getAttributeNS(ns,_e.hide);this.activeTarget={el:t,text:_c,width:et.getAttributeNS(ns,_e.width),autoHide:_10!="user"&&_10!=="false",title:et.getAttributeNS(ns,_e.title),cls:et.getAttributeNS(ns,_e.cls),align:et.getAttributeNS(ns,_e.align)};this.delayShow()}},onTargetOut:function(e){this.clearTimer("show");if(this.autoHide!==false){this.delayHide()}},showAt:function(xy){var t=this.activeTarget;if(t){if(!this.rendered){this.render(Ext.getBody());this.activeTarget=t}if(t.width){this.setWidth(t.width);this.body.setWidth(this.adjustBodyWidth(t.width-this.getFrameWidth()));this.measureWidth=false}else{this.measureWidth=true}this.setTitle(t.title||"");this.body.update(t.text);this.autoHide=t.autoHide;this.dismissDelay=t.dismissDelay||this.dismissDelay; if(this.lastCls){this.el.removeClass(this.lastCls);delete this.lastCls}if(t.cls){this.el.addClass(t.cls);this.lastCls=t.cls}if(t.align){xy=this.el.getAlignToXY(t.el,t.align);this.constrainPosition=false}else{this.constrainPosition=true}}Ext.QuickTip.superclass.showAt.call(this,xy)},hide:function(){delete this.activeTarget;Ext.QuickTip.superclass.hide.call(this)}});Ext.QuickTips=function(){var _1,_2=[];return{init:function(_3){if(!_1){if(!Ext.isReady){Ext.onReady(function(){Ext.QuickTips.init(_3)});return}_1=new Ext.QuickTip({elements:"header,body"});if(_3!==false){_1.render(Ext.getBody())}}},enable:function(){if(_1){_2.pop();if(_2.length<1){_1.enable()}}},disable:function(){if(_1){_1.disable()}_2.push(1)},isEnabled:function(){return _1!==undefined&&!_1.disabled},getQuickTip:function(){return _1},register:function(){_1.register.apply(_1,arguments)},unregister:function(){_1.unregister.apply(_1,arguments)},tips:function(){_1.register.apply(_1,arguments)}}}();Ext.tree.TreePanel=Ext.extend(Ext.Panel,{rootVisible:true,animate:Ext.enableFx,lines:true,enableDD:false,hlDrop:Ext.enableFx,pathSeparator:"/",initComponent:function(){Ext.tree.TreePanel.superclass.initComponent.call(this);if(!this.eventModel){this.eventModel=new Ext.tree.TreeEventModel(this)}var l=this.loader;if(!l){l=new Ext.tree.TreeLoader({dataUrl:this.dataUrl})}else{if(typeof l=="object"&&!l.load){l=new Ext.tree.TreeLoader(l)}}this.loader=l;this.nodeHash={};if(this.root){this.setRootNode(this.root)}this.addEvents("append","remove","movenode","insert","beforeappend","beforeremove","beforemovenode","beforeinsert","beforeload","load","textchange","beforeexpandnode","beforecollapsenode","expandnode","disabledchange","collapsenode","beforeclick","click","checkchange","dblclick","contextmenu","beforechildrenrendered","startdrag","enddrag","dragdrop","beforenodedrop","nodedrop","nodedragover");if(this.singleExpand){this.on("beforeexpandnode",this.restrictExpand,this)}},proxyNodeEvent:function(_2,a1,a2,a3,a4,a5,a6){if(_2=="collapse"||_2=="expand"||_2=="beforecollapse"||_2=="beforeexpand"||_2=="move"||_2=="beforemove"){_2=_2+"node"}return this.fireEvent(_2,a1,a2,a3,a4,a5,a6)},getRootNode:function(){return this.root},setRootNode:function(_9){if(!_9.render){_9=this.loader.createNode(_9)}this.root=_9;_9.ownerTree=this;_9.isRoot=true;this.registerNode(_9);if(!this.rootVisible){var _a=_9.attributes.uiProvider;_9.ui=_a?new _a(_9):new Ext.tree.RootTreeNodeUI(_9)}return _9},getNodeById:function(id){return this.nodeHash[id]},registerNode:function(_c){this.nodeHash[_c.id]=_c},unregisterNode:function(_d){delete this.nodeHash[_d.id]},toString:function(){return"[Tree"+(this.id?" "+this.id:"")+"]"},restrictExpand:function(_e){var p=_e.parentNode;if(p){if(p.expandedChild&&p.expandedChild.parentNode==p){p.expandedChild.collapse()}p.expandedChild=_e}},getChecked:function(a,_11){_11=_11||this.root;var r=[];var f=function(){if(this.attributes.checked){r.push(!a?this:(a=="id"?this.id:this.attributes[a]))}};_11.cascade(f);return r},getEl:function(){return this.el},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(_14,_15,_16){_15=_15||"id";var _17=_14.split(this.pathSeparator);var _18=this.root;if(_18.attributes[_15]!=_17[1]){if(_16){_16(false,null)}return}var _19=1;var f=function(){if(++_19==_17.length){if(_16){_16(true,_18)}return}var c=_18.findChild(_15,_17[_19]);if(!c){if(_16){_16(false,_18)}return}_18=c;c.expand(false,false,f)};_18.expand(false,false,f)},selectPath:function(_1c,_1d,_1e){_1d=_1d||"id";var _1f=_1c.split(this.pathSeparator);var v=_1f.pop();if(_1f.length>0){var f=function(_22,_23){if(_22&&_23){var n=_23.findChild(_1d,v);if(n){n.select();if(_1e){_1e(true,n)}}else{if(_1e){_1e(false,n)}}}else{if(_1e){_1e(false,n)}}};this.expandPath(_1f.join(this.pathSeparator),_1d,f)}else{this.root.select();if(_1e){_1e(true,this.root)}}},getTreeEl:function(){return this.body},onRender:function(ct,_26){Ext.tree.TreePanel.superclass.onRender.call(this,ct,_26);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.root.render();if(!this.rootVisible){this.root.renderChildren()}},onDestroy:function(){if(this.rendered){this.body.removeAllListeners();Ext.dd.ScrollManager.unregister(this.body);if(this.dropZone){this.dropZone.unreg()}if(this.dragZone){this.dragZone.unreg()}}this.root.destroy();this.nodeHash=null;Ext.tree.TreePanel.superclass.onDestroy.call(this)}});Ext.tree.TreePanel.nodeTypes={};Ext.reg("treepanel",Ext.tree.TreePanel);Ext.tree.TreeEventModel=function(_1){this.tree=_1;this.tree.on("render",this.initEvents,this)};Ext.tree.TreeEventModel.prototype={initEvents:function(){var el=this.tree.getTreeEl();el.on("click",this.delegateClick,this);if(this.tree.trackMouseOver!==false){el.on("mouseover",this.delegateOver,this);el.on("mouseout",this.delegateOut,this)}el.on("dblclick",this.delegateDblClick,this);el.on("contextmenu",this.delegateContextMenu,this)},getNode:function(e){var t;if(t=e.getTarget(".x-tree-node-el",10)){var id=Ext.fly(t,"_treeEvents").getAttributeNS("ext","tree-node-id");if(id){return this.tree.getNodeById(id)}}return null},getNodeTarget:function(e){var t=e.getTarget(".x-tree-node-icon",1);if(!t){t=e.getTarget(".x-tree-node-el",6)}return t},delegateOut:function(e,t){if(!this.beforeEvent(e)){return}if(e.getTarget(".x-tree-ec-icon",1)){var n=this.getNode(e);this.onIconOut(e,n);if(n==this.lastEcOver){delete this.lastEcOver}}if((t=this.getNodeTarget(e))&&!e.within(t,true)){this.onNodeOut(e,this.getNode(e))}},delegateOver:function(e,t){if(!this.beforeEvent(e)){return}if(this.lastEcOver){this.onIconOut(e,this.lastEcOver);delete this.lastEcOver}if(e.getTarget(".x-tree-ec-icon",1)){this.lastEcOver=this.getNode(e);this.onIconOver(e,this.lastEcOver)}if(t=this.getNodeTarget(e)){this.onNodeOver(e,this.getNode(e))}},delegateClick:function(e,t){if(!this.beforeEvent(e)){return}if(e.getTarget("input[type=checkbox]",1)){this.onCheckboxClick(e,this.getNode(e))}else{if(e.getTarget(".x-tree-ec-icon",1)){this.onIconClick(e,this.getNode(e))}else{if(this.getNodeTarget(e)){this.onNodeClick(e,this.getNode(e))}}}},delegateDblClick:function(e,t){if(this.beforeEvent(e)&&this.getNodeTarget(e)){this.onNodeDblClick(e,this.getNode(e))}},delegateContextMenu:function(e,t){if(this.beforeEvent(e)&&this.getNodeTarget(e)){this.onNodeContextMenu(e,this.getNode(e))}},onNodeClick:function(e,_14){_14.ui.onClick(e)},onNodeOver:function(e,_16){_16.ui.onOver(e)},onNodeOut:function(e,_18){_18.ui.onOut(e)},onIconOver:function(e,_1a){_1a.ui.addClass("x-tree-ec-over")},onIconOut:function(e,_1c){_1c.ui.removeClass("x-tree-ec-over")},onIconClick:function(e,_1e){_1e.ui.ecClick(e)},onCheckboxClick:function(e,_20){_20.ui.onCheckChange(e)},onNodeDblClick:function(e,_22){_22.ui.onDblClick(e)},onNodeContextMenu:function(e,_24){_24.ui.onContextMenu(e)},beforeEvent:function(e){if(this.disabled){e.stopEvent();return false}return true},disable:function(){this.disabled=true},enable:function(){this.disabled=false}};Ext.tree.DefaultSelectionModel=function(_1){this.selNode=null;this.addEvents("selectionchange","beforeselect");Ext.apply(this,_1); Ext.tree.DefaultSelectionModel.superclass.constructor.call(this)};Ext.extend(Ext.tree.DefaultSelectionModel,Ext.util.Observable,{init:function(_2){this.tree=_2;_2.getTreeEl().on("keydown",this.onKeyDown,this);_2.on("click",this.onNodeClick,this)},onNodeClick:function(_3,e){this.select(_3)},select:function(_5){var _6=this.selNode;if(_6!=_5&&this.fireEvent("beforeselect",this,_5,_6)!==false){if(_6){_6.ui.onSelectedChange(false)}this.selNode=_5;_5.ui.onSelectedChange(true);this.fireEvent("selectionchange",this,_5,_6)}return _5},unselect:function(_7){if(this.selNode==_7){this.clearSelections()}},clearSelections:function(){var n=this.selNode;if(n){n.ui.onSelectedChange(false);this.selNode=null;this.fireEvent("selectionchange",this,null)}return n},getSelectedNode:function(){return this.selNode},isSelected:function(_9){return this.selNode==_9},selectPrevious:function(){var s=this.selNode||this.lastSelNode;if(!s){return null}var ps=s.previousSibling;if(ps){if(!ps.isExpanded()||ps.childNodes.length<1){return this.select(ps)}else{var lc=ps.lastChild;while(lc&&lc.isExpanded()&&lc.childNodes.length>0){lc=lc.lastChild}return this.select(lc)}}else{if(s.parentNode&&(this.tree.rootVisible||!s.parentNode.isRoot)){return this.select(s.parentNode)}}return null},selectNext:function(){var s=this.selNode||this.lastSelNode;if(!s){return null}if(s.firstChild&&s.isExpanded()){return this.select(s.firstChild)}else{if(s.nextSibling){return this.select(s.nextSibling)}else{if(s.parentNode){var _e=null;s.parentNode.bubble(function(){if(this.nextSibling){_e=this.getOwnerTree().selModel.select(this.nextSibling);return false}});return _e}}}return null},onKeyDown:function(e){var s=this.selNode||this.lastSelNode;var sm=this;if(!s){return}var k=e.getKey();switch(k){case e.DOWN:e.stopEvent();this.selectNext();break;case e.UP:e.stopEvent();this.selectPrevious();break;case e.RIGHT:e.preventDefault();if(s.hasChildNodes()){if(!s.isExpanded()){s.expand()}else{if(s.firstChild){this.select(s.firstChild,e)}}}break;case e.LEFT:e.preventDefault();if(s.hasChildNodes()&&s.isExpanded()){s.collapse()}else{if(s.parentNode&&(this.tree.rootVisible||s.parentNode!=this.tree.getRootNode())){this.select(s.parentNode,e)}}break}}});Ext.tree.MultiSelectionModel=function(_13){this.selNodes=[];this.selMap={};this.addEvents("selectionchange");Ext.apply(this,_13);Ext.tree.MultiSelectionModel.superclass.constructor.call(this)};Ext.extend(Ext.tree.MultiSelectionModel,Ext.util.Observable,{init:function(_14){this.tree=_14;_14.getTreeEl().on("keydown",this.onKeyDown,this);_14.on("click",this.onNodeClick,this)},onNodeClick:function(_15,e){this.select(_15,e,e.ctrlKey)},select:function(_17,e,_19){if(_19!==true){this.clearSelections(true)}if(this.isSelected(_17)){this.lastSelNode=_17;return _17}this.selNodes.push(_17);this.selMap[_17.id]=_17;this.lastSelNode=_17;_17.ui.onSelectedChange(true);this.fireEvent("selectionchange",this,this.selNodes);return _17},unselect:function(_1a){if(this.selMap[_1a.id]){_1a.ui.onSelectedChange(false);var sn=this.selNodes;var _1c=sn.indexOf(_1a);if(_1c!=-1){this.selNodes.splice(_1c,1)}delete this.selMap[_1a.id];this.fireEvent("selectionchange",this,this.selNodes)}},clearSelections:function(_1d){var sn=this.selNodes;if(sn.length>0){for(var i=0,len=sn.length;i
    ','',this.indentMarkup,"",'','',cb?('':"/>")):"",'',n.text,"
    ",'',""].join("");var nel;if(_2e!==true&&n.nextSibling&&(nel=n.nextSibling.ui.getEl())){this.wrap=Ext.DomHelper.insertHtml("beforeBegin",nel,buf)}else{this.wrap=Ext.DomHelper.insertHtml("beforeEnd",_2d,buf)}this.elNode=this.wrap.childNodes[0];this.ctNode=this.wrap.childNodes[1];var cs=this.elNode.childNodes;this.indentNode=cs[0];this.ecNode=cs[1];this.iconNode=cs[2];var _34=3;if(cb){this.checkbox=cs[3];this.checkbox.defaultChecked=this.checkbox.checked;_34++}this.anchor=cs[_34];this.textNode=cs[_34].firstChild},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 n=this.node,c1,c2;var cls=n.isLast()?"x-tree-elbow-end":"x-tree-elbow";if(n.isExpandable()){if(n.expanded){cls+="-minus";c1="x-tree-node-collapsed";c2="x-tree-node-expanded"}else{cls+="-plus";c1="x-tree-node-expanded";c2="x-tree-node-collapsed"}if(this.wasLeaf){this.removeClass("x-tree-node-leaf");this.wasLeaf=false}if(this.c1!=c1||this.c2!=c2){Ext.fly(this.elNode).replaceClass(c1,c2);this.c1=c1;this.c2=c2}}else{if(!this.wasLeaf){Ext.fly(this.elNode).replaceClass("x-tree-node-expanded","x-tree-node-leaf");delete this.c1;delete this.c2;this.wasLeaf=true}}var ecc="x-tree-ec-icon "+cls;if(this.ecc!=ecc){this.ecNode.className=ecc;this.ecc=ecc}}},getChildIndent:function(){if(!this.childIndent){var buf=[];var p=this.node;while(p){if(!p.isRoot||(p.isRoot&&p.ownerTree.rootVisible)){if(!p.isLast()){buf.unshift('')}else{buf.unshift('')}}p=p.parentNode}this.childIndent=buf.join("")}return this.childIndent},renderIndent:function(){if(this.rendered){var _3c="";var p=this.node.parentNode;if(p){_3c=p.ui.getChildIndent()}if(this.indentMarkup!=_3c){this.indentNode.innerHTML=_3c;this.indentMarkup=_3c}this.updateExpandIcon()}},destroy:function(){if(this.elNode){Ext.dd.Registry.unregister(this.elNode.id)}delete this.elNode;delete this.ctNode;delete this.indentNode;delete this.ecNode;delete this.iconNode;delete this.checkbox;delete this.anchor;delete this.textNode;if(this.holder){delete this.wrap;Ext.removeNode(this.holder);delete this.holder}else{Ext.removeNode(this.wrap);delete this.wrap}}};Ext.tree.RootTreeNodeUI=Ext.extend(Ext.tree.TreeNodeUI,{render:function(){if(!this.rendered){var _3e=this.node.ownerTree.innerCt.dom;this.node.expanded=true;_3e.innerHTML='
    ';this.wrap=this.ctNode=_3e.firstChild}},collapse:Ext.emptyFn,expand:Ext.emptyFn});Ext.tree.TreeLoader=function(_1){this.baseParams={};Ext.apply(this,_1);this.addEvents("beforeload","load","loadexception");Ext.tree.TreeLoader.superclass.constructor.call(this)};Ext.extend(Ext.tree.TreeLoader,Ext.util.Observable,{uiProviders:{},clearOnLoad:true,load:function(_2,_3){if(this.clearOnLoad){while(_2.firstChild){_2.removeChild(_2.firstChild)}}if(this.doPreload(_2)){if(typeof _3=="function"){_3()}}else{if(this.dataUrl||this.url){this.requestData(_2,_3)}}},doPreload:function(_4){if(_4.attributes.children){if(_4.childNodes.length<1){var cs=_4.attributes.children;_4.beginUpdate();for(var i=0,_7=cs.length;i<_7;i++){var cn=_4.appendChild(this.createNode(cs[i]));if(this.preloadChildren){this.doPreload(cn)}}_4.endUpdate()}return true}else{return false}},getParams:function(_9){var _a=[],bp=this.baseParams;for(var _c in bp){if(typeof bp[_c]!="function"){_a.push(encodeURIComponent(_c),"=",encodeURIComponent(bp[_c]),"&")}}_a.push("node=",encodeURIComponent(_9.id));return _a.join("")},requestData:function(_d,_e){if(this.fireEvent("beforeload",this,_d,_e)!==false){this.transId=Ext.Ajax.request({method:this.requestMethod,url:this.dataUrl||this.url,success:this.handleResponse,failure:this.handleFailure,scope:this,argument:{callback:_e,node:_d},params:this.getParams(_d)})}else{if(typeof _e=="function"){_e()}}},isLoading:function(){return !!this.transId},abort:function(){if(this.isLoading()){Ext.Ajax.abort(this.transId)}},createNode:function(_f){if(this.baseAttrs){Ext.applyIf(_f,this.baseAttrs)}if(this.applyLoader!==false){_f.loader=this}if(typeof _f.uiProvider=="string"){_f.uiProvider=this.uiProviders[_f.uiProvider]||eval(_f.uiProvider)}if(_f.nodeType){return new Ext.tree.TreePanel.nodeTypes[_f.nodeType](_f)}else{return _f.leaf?new Ext.tree.TreeNode(_f):new Ext.tree.AsyncTreeNode(_f)}},processResponse:function(_10,_11,_12){var _13=_10.responseText;try{var o=eval("("+_13+")");_11.beginUpdate();for(var i=0,len=o.length;iv2){return _3?-1:+1}else{return 0}}}};Ext.tree.TreeSorter.prototype={doSort:function(_d){_d.sort(this.sortFn)},compareNodes:function(n1,n2){return(n1.text.toUpperCase()>n2.text.toUpperCase()?1:-1)},updateSort:function(_10,_11){if(_11.childrenRendered){this.doSort.defer(1,this,[_11])}},updateSortParent:function(_12){var p=_12.parentNode;if(p&&p.childrenRendered){this.doSort.defer(1,this,[p])}}};if(Ext.dd.DropZone){Ext.tree.TreeDropZone=function(_1,_2){this.allowParentInsert=false;this.allowContainerDrop=false;this.appendOnly=false;Ext.tree.TreeDropZone.superclass.constructor.call(this,_1.innerCt,_2);this.tree=_1;this.dragOverData={};this.lastInsertClass="x-tree-no-status"};Ext.extend(Ext.tree.TreeDropZone,Ext.dd.DropZone,{ddGroup:"TreeDD",expandDelay:1000,expandNode:function(_3){if(_3.hasChildNodes()&&!_3.isExpanded()){_3.expand(false,null,this.triggerCacheRefresh.createDelegate(this))}},queueExpand:function(_4){this.expandProcId=this.expandNode.defer(this.expandDelay,this,[_4])},cancelExpand:function(){if(this.expandProcId){clearTimeout(this.expandProcId);this.expandProcId=false}},isValidDropPoint:function(n,pt,dd,e,_9){if(!n||!_9){return false}var _a=n.node;var _b=_9.node;if(!(_a&&_a.isTarget&&pt)){return false}if(pt=="append"&&_a.allowChildren===false){return false}if((pt=="above"||pt=="below")&&(_a.parentNode&&_a.parentNode.allowChildren===false)){return false}if(_b&&(_a==_b||_b.contains(_a))){return false}var _c=this.dragOverData;_c.tree=this.tree;_c.target=_a;_c.data=_9;_c.point=pt;_c.source=dd;_c.rawEvent=e;_c.dropNode=_b;_c.cancel=false;var _d=this.tree.fireEvent("nodedragover",_c);return _c.cancel===false&&_d!==false},getDropPoint:function(e,n,dd){var tn=n.node;if(tn.isRoot){return tn.allowChildren!==false?"append":false}var _12=n.ddel;var t=Ext.lib.Dom.getY(_12),b=t+_12.offsetHeight;var y=Ext.lib.Event.getPageY(e);var _16=tn.allowChildren===false||tn.isLeaf();if(this.appendOnly||tn.parentNode.allowChildren===false){return _16?false:"append"}var _17=false;if(!this.allowParentInsert){_17=tn.hasChildNodes()&&tn.isExpanded()}var q=(b-t)/(_16?2:3);if(y>=t&&y<(t+q)){return"above"}else{if(!_17&&(_16||y>=b-q&&y<=b)){return"below"}else{return"append"}}},onNodeEnter:function(n,dd,e,_1c){this.cancelExpand()},onNodeOver:function(n,dd,e,_20){var pt=this.getDropPoint(e,n,dd);var _22=n.node;if(!this.expandProcId&&pt=="append"&&_22.hasChildNodes()&&!n.node.isExpanded()){this.queueExpand(_22)}else{if(pt!="append"){this.cancelExpand()}}var _23=this.dropNotAllowed;if(this.isValidDropPoint(n,pt,dd,e,_20)){if(pt){var el=n.ddel;var cls;if(pt=="above"){_23=n.node.isFirst()?"x-tree-drop-ok-above":"x-tree-drop-ok-between";cls="x-tree-drag-insert-above"}else{if(pt=="below"){_23=n.node.isLast()?"x-tree-drop-ok-below":"x-tree-drop-ok-between";cls="x-tree-drag-insert-below"}else{_23="x-tree-drop-ok-append";cls="x-tree-drag-append"}}if(this.lastInsertClass!=cls){Ext.fly(el).replaceClass(this.lastInsertClass,cls);this.lastInsertClass=cls}}}return _23},onNodeOut:function(n,dd,e,_29){this.cancelExpand();this.removeDropIndicators(n)},onNodeDrop:function(n,dd,e,_2d){var _2e=this.getDropPoint(e,n,dd);var _2f=n.node;_2f.ui.startDrop();if(!this.isValidDropPoint(n,_2e,dd,e,_2d)){_2f.ui.endDrop();return false}var _30=_2d.node||(dd.getTreeNode?dd.getTreeNode(_2d,_2f,_2e,e):null);var _31={tree:this.tree,target:_2f,data:_2d,point:_2e,source:dd,rawEvent:e,dropNode:_30,cancel:!_30,dropStatus:false};var _32=this.tree.fireEvent("beforenodedrop",_31);if(_32===false||_31.cancel===true||!_31.dropNode){_2f.ui.endDrop();return _31.dropStatus}_2f=_31.target;if(_2e=="append"&&!_2f.isExpanded()){_2f.expand(false,null,function(){this.completeDrop(_31)}.createDelegate(this))}else{this.completeDrop(_31)}return true},completeDrop:function(de){var ns=de.dropNode,p=de.point,t=de.target;if(!Ext.isArray(ns)){ns=[ns]}var n;for(var i=0,len=ns.length;ind.offsetLeft){td.scrollLeft=nd.offsetLeft}var w=Math.min(this.maxWidth,(td.clientWidth>20?td.clientWidth:td.offsetWidth)-Math.max(0,nd.offsetLeft-td.scrollLeft)-5);this.setSize(w,"")},triggerEdit:function(_b,_c){this.completeEdit();if(_b.attributes.editable!==false){this.editNode=_b;if(this.tree.autoScroll){_b.ui.getEl().scrollIntoView(this.tree.body)}var _d=_b.text||"";if(!Ext.isGecko&&Ext.isEmpty(_b.text)){_b.setText(" ")}this.autoEditTimer=this.startEdit.defer(this.editDelay,this,[_b.ui.textNode,_d]);return false}},bindScroll:function(){this.tree.getTreeEl().on("scroll",this.cancelEdit,this)},beforeNodeClick:function(_e,e){clearTimeout(this.autoEditTimer); if(this.tree.getSelectionModel().isSelected(_e)){e.stopEvent();return this.triggerEdit(_e)}},onNodeDblClick:function(_10,e){clearTimeout(this.autoEditTimer)},updateNode:function(ed,_13){this.tree.getTreeEl().un("scroll",this.cancelEdit,this);this.editNode.setText(_13)},onHide:function(){Ext.tree.TreeEditor.superclass.onHide.call(this);if(this.editNode){this.editNode.ui.focus.defer(50,this.editNode.ui)}},onSpecialKey:function(_14,e){var k=e.getKey();if(k==e.ESC){e.stopEvent();this.cancelEdit()}else{if(k==e.ENTER&&!e.hasModifier()){e.stopEvent();this.completeEdit()}}}});Ext.menu.Menu=function(_1){if(Ext.isArray(_1)){_1={items:_1}}Ext.apply(this,_1);this.id=this.id||Ext.id();this.addEvents("beforeshow","beforehide","show","hide","click","mouseover","mouseout","itemclick");Ext.menu.MenuMgr.register(this);Ext.menu.Menu.superclass.constructor.call(this);var _2=this.items;this.items=new Ext.util.MixedCollection();if(_2){this.add.apply(this,_2)}};Ext.extend(Ext.menu.Menu,Ext.util.Observable,{minWidth:120,shadow:"sides",subMenuAlign:"tl-tr?",defaultAlign:"tl-bl?",allowOtherMenus:false,ignoreParentClicks:false,hidden:true,createEl:function(){return new Ext.Layer({cls:"x-menu",shadow:this.shadow,constrain:false,parentEl:this.parentEl||document.body,zindex:15000})},render:function(){if(this.el){return}var el=this.el=this.createEl();if(!this.keyNav){this.keyNav=new Ext.menu.MenuNav(this)}if(this.plain){el.addClass("x-menu-plain")}if(this.cls){el.addClass(this.cls)}this.focusEl=el.createChild({tag:"a",cls:"x-menu-focus",href:"#",onclick:"return false;",tabIndex:"-1"});var ul=el.createChild({tag:"ul",cls:"x-menu-list"});ul.on("click",this.onClick,this);ul.on("mouseover",this.onMouseOver,this);ul.on("mouseout",this.onMouseOut,this);this.items.each(function(_5){var li=document.createElement("li");li.className="x-menu-list-item";ul.dom.appendChild(li);_5.render(li,this)},this);this.ul=ul;this.autoWidth()},autoWidth:function(){var el=this.el,ul=this.ul;if(!el){return}var w=this.width;if(w){el.setWidth(w)}else{if(Ext.isIE){el.setWidth(this.minWidth);var t=el.dom.offsetWidth;el.setWidth(ul.getWidth()+el.getFrameWidth("lr"))}}},delayAutoWidth:function(){if(this.el){if(!this.awTask){this.awTask=new Ext.util.DelayedTask(this.autoWidth,this)}this.awTask.delay(20)}},findTargetItem:function(e){var t=e.getTarget(".x-menu-list-item",this.ul,true);if(t&&t.menuItemId){return this.items.get(t.menuItemId)}},onClick:function(e){var t;if(t=this.findTargetItem(e)){if(t.menu&&this.ignoreParentClicks){t.expandMenu()}else{t.onClick(e);this.fireEvent("click",this,t,e)}}},setActiveItem:function(_f,_10){if(_f!=this.activeItem){if(this.activeItem){this.activeItem.deactivate()}this.activeItem=_f;_f.activate(_10)}else{if(_10){_f.expandMenu()}}},tryActivate:function(_11,_12){var _13=this.items;for(var i=_11,len=_13.length;i>=0&&i0){hideAll()}})}function hideAll(){if(_2&&_2.length>0){var c=_2.clone();c.each(function(m){m.hide()})}}function onHide(m){_2.remove(m);if(_2.length<1){Ext.getDoc().un("mousedown",onMouseDown);_4=false}}function onShow(m){var _a=_2.last();_5=new Date();_2.add(m);if(!_4){Ext.getDoc().on("mousedown",onMouseDown);_4=true}if(m.parentMenu){m.getEl().setZIndex(parseInt(m.parentMenu.getEl().getStyle("z-index"),10)+3);m.parentMenu.activeChild=m}else{if(_a&&_a.isVisible()){m.getEl().setZIndex(parseInt(_a.getEl().getStyle("z-index"),10)+3)}}}function onBeforeHide(m){if(m.activeChild){m.activeChild.hide()}if(m.autoHideTimer){clearTimeout(m.autoHideTimer);delete m.autoHideTimer}}function onBeforeShow(m){var pm=m.parentMenu;if(!pm&&!m.allowOtherMenus){hideAll()}else{if(pm&&pm.activeChild){pm.activeChild.hide()}}}function onMouseDown(e){if(_5.getElapsed()>50&&_2.length>0&&!e.getTarget(".x-menu")){hideAll()}}function onBeforeCheck(mi,_10){if(_10){var g=_3[mi.group];for(var i=0,l=g.length;i{1}',this.icon||Ext.BLANK_IMAGE_URL,this.itemText||this.text,this.iconCls||"");this.el=el;Ext.menu.Item.superclass.onRender.call(this,_2,_3)},setText:function(_5){this.text=_5;if(this.rendered){this.el.update(String.format('{1}',this.icon||Ext.BLANK_IMAGE_URL,this.text,this.iconCls||""));this.parentMenu.autoWidth()}},setIconClass:function(_6){var _7=this.iconCls;this.iconCls=_6;if(this.rendered){this.el.child("img.x-menu-item-icon").replaceClass(_7,this.iconCls)}},beforeDestroy:function(){if(this.menu){this.menu.destroy()}Ext.menu.Item.superclass.beforeDestroy.call(this)},handleClick:function(e){if(!this.href){e.stopEvent()}Ext.menu.Item.superclass.handleClick.apply(this,arguments)},activate:function(_9){if(Ext.menu.Item.superclass.activate.apply(this,arguments)){this.focus();if(_9){this.expandMenu()}}return true},shouldDeactivate:function(e){if(Ext.menu.Item.superclass.shouldDeactivate.call(this,e)){if(this.menu&&this.menu.isVisible()){return !this.menu.getEl().getRegion().contains(e.getPoint())}return true}return false},deactivate:function(){Ext.menu.Item.superclass.deactivate.apply(this,arguments);this.hideMenu()},expandMenu:function(_b){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,[_b])}else{if(this.menu.isVisible()&&_b){this.menu.tryActivate(0,1)}}}},deferExpand:function(_c){delete this.showTimer;this.menu.show(this.container,this.parentMenu.subMenuAlign||"tl-tr?",this.parentMenu);if(_c){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.menu.CheckItem=function(_1){Ext.menu.CheckItem.superclass.constructor.call(this,_1);this.addEvents("beforecheckchange","checkchange");if(this.checkHandler){this.on("checkchange",this.checkHandler,this.scope)}Ext.menu.MenuMgr.registerCheckable(this)};Ext.extend(Ext.menu.CheckItem,Ext.menu.Item,{itemCls:"x-menu-item x-menu-check-item",groupClass:"x-menu-group-item",checked:false,ctype:"Ext.menu.CheckItem",onRender:function(c){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(_3,_4){if(this.checked!=_3&&this.fireEvent("beforecheckchange",this,_3)!==false){if(this.container){this.container[_3?"addClass":"removeClass"]("x-menu-item-checked")}this.checked=_3;if(_4!==true){this.fireEvent("checkchange",this,_3)}}},handleClick:function(e){if(!this.disabled&&!(this.checked&&this.group)){this.setChecked(!this.checked)}Ext.menu.CheckItem.superclass.handleClick.apply(this,arguments)}});Ext.menu.Adapter=function(_1,_2){Ext.menu.Adapter.superclass.constructor.call(this,_2);this.component=_1};Ext.extend(Ext.menu.Adapter,Ext.menu.BaseItem,{canActivate:true,onRender:function(_3,_4){this.component.render(_3);this.el=this.component.getEl()},activate:function(){if(this.disabled){return false}this.component.focus();this.fireEvent("activate",this);return true},deactivate:function(){this.fireEvent("deactivate",this)},disable:function(){this.component.disable();Ext.menu.Adapter.superclass.disable.call(this)},enable:function(){this.component.enable();Ext.menu.Adapter.superclass.enable.call(this)}});Ext.menu.DateItem=function(_1){Ext.menu.DateItem.superclass.constructor.call(this,new Ext.DatePicker(_1),_1);this.picker=this.component;this.addEvents("select");this.picker.on("render",function(_2){_2.getEl().swallowEvent("click"); _2.container.addClass("x-menu-date-item")});this.picker.on("select",this.onSelect,this)};Ext.extend(Ext.menu.DateItem,Ext.menu.Adapter,{onSelect:function(_3,_4){this.fireEvent("select",this,_4,_3);Ext.menu.DateItem.superclass.handleClick.call(this)}});Ext.menu.ColorItem=function(_1){Ext.menu.ColorItem.superclass.constructor.call(this,new Ext.ColorPalette(_1),_1);this.palette=this.component;this.relayEvents(this.palette,["select"]);if(this.selectHandler){this.on("select",this.selectHandler,this.scope)}};Ext.extend(Ext.menu.ColorItem,Ext.menu.Adapter);Ext.menu.DateMenu=function(_1){Ext.menu.DateMenu.superclass.constructor.call(this,_1);this.plain=true;var di=new Ext.menu.DateItem(_1);this.add(di);this.picker=di.picker;this.relayEvents(di,["select"]);this.on("beforeshow",function(){if(this.picker){this.picker.hideMonthPicker(true)}},this)};Ext.extend(Ext.menu.DateMenu,Ext.menu.Menu,{cls:"x-date-menu",beforeDestroy:function(){this.picker.destroy()}});Ext.menu.ColorMenu=function(_1){Ext.menu.ColorMenu.superclass.constructor.call(this,_1);this.plain=true;var ci=new Ext.menu.ColorItem(_1);this.add(ci);this.palette=ci.palette;this.relayEvents(ci,["select"])};Ext.extend(Ext.menu.ColorMenu,Ext.menu.Menu,{beforeDestroy:function(){this.palette.destroy()}});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,isFormField:true,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.hiddenName||"")},onRender:function(ct,_2){Ext.form.Field.superclass.onRender.call(this,ct,_2);if(!this.el){var _3=this.getAutoCreate();if(!_3.name){_3.name=this.name||this.id}if(this.inputType){_3.type=this.inputType}this.el=ct.createChild(_3,_2)}var _4=this.el.dom.type;if(_4){if(_4=="password"){_4="text"}this.el.addClass("x-form-"+_4)}if(this.readOnly){this.el.dom.readOnly=true}if(this.tabIndex!==undefined){this.el.dom.setAttribute("tabIndex",this.tabIndex)}this.el.addClass([this.fieldClass,this.cls])},initValue:function(){if(this.value!==undefined){this.setValue(this.value)}else{if(this.el.dom.value.length>0&&this.el.dom.value!=this.emptyText){this.setValue(this.el.dom.value)}}this.originalValue=this.getValue()},isDirty:function(){if(this.disabled){return false}return String(this.getValue())!==String(this.originalValue)},afterRender:function(){Ext.form.Field.superclass.afterRender.call(this);this.initEvents();this.initValue()},fireKey:function(e){if(e.isSpecialKey()){this.fireEvent("specialkey",this,e)}},reset:function(){this.setValue(this.originalValue);this.clearInvalid()},initEvents:function(){this.el.on(Ext.isIE||Ext.isSafari3?"keydown":"keypress",this.fireKey,this);this.el.on("focus",this.onFocus,this);var o=this.inEditor&&Ext.isWindows&&Ext.isGecko?{buffer:10}:null;this.el.on("blur",this.onBlur,this,o)},onFocus:function(){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 v=this.getValue();if(String(v)!==String(this.startValue)){this.fireEvent("change",this,v,this.startValue)}this.fireEvent("blur",this)},isValid:function(_8){if(this.disabled){return true}var _9=this.preventMark;this.preventMark=_8===true;var v=this.validateValue(this.processValue(this.getRawValue()));this.preventMark=_9;return v},validate:function(){if(this.disabled||this.validateValue(this.processValue(this.getRawValue()))){this.clearInvalid();return true}return false},processValue:function(_b){return _b},validateValue:function(_c){return true},markInvalid:function(_d){if(!this.rendered||this.preventMark){return}this.el.addClass(this.invalidClass);_d=_d||this.invalidText;switch(this.msgTarget){case"qtip":this.el.dom.qtip=_d;this.el.dom.qclass="x-form-invalid-tip";if(Ext.QuickTips){Ext.QuickTips.enable()}break;case"title":this.el.dom.title=_d;break;case"under":if(!this.errorEl){var _e=this.getErrorCt();if(!_e){this.el.dom.title=_d;break}this.errorEl=_e.createChild({cls:"x-form-invalid-msg"});this.errorEl.setWidth(_e.getWidth(true)-20)}this.errorEl.update(_d);Ext.form.Field.msgFx[this.msgFx].show(this.errorEl,this);break;case"side":if(!this.errorIcon){var _e=this.getErrorCt();if(!_e){this.el.dom.title=_d;break}this.errorIcon=_e.createChild({cls:"x-form-invalid-icon"})}this.alignErrorIcon();this.errorIcon.dom.qtip=_d;this.errorIcon.dom.qclass="x-form-invalid-tip";this.errorIcon.show();this.on("resize",this.alignErrorIcon,this);break;default:var t=Ext.getDom(this.msgTarget);t.innerHTML=_d;t.style.display=this.msgDisplay;break}this.fireEvent("invalid",this,_d)},getErrorCt:function(){return this.el.findParent(".x-form-element",5,true)||this.el.findParent(".x-form-field-wrap",5,true)},alignErrorIcon:function(){this.errorIcon.alignTo(this.el,"tl-tr",[2,0])},clearInvalid:function(){if(!this.rendered||this.preventMark){return}this.el.removeClass(this.invalidClass);switch(this.msgTarget){case"qtip":this.el.dom.qtip="";break;case"title":this.el.dom.title="";break;case"under":if(this.errorEl){Ext.form.Field.msgFx[this.msgFx].hide(this.errorEl,this)}break;case"side":if(this.errorIcon){this.errorIcon.dom.qtip="";this.errorIcon.hide();this.un("resize",this.alignErrorIcon,this)}break;default:var t=Ext.getDom(this.msgTarget);t.innerHTML="";t.style.display="none";break}this.fireEvent("valid",this)},getRawValue:function(){var v=this.rendered?this.el.getValue():Ext.value(this.value,"");if(v===this.emptyText){v=""}return v},getValue:function(){if(!this.rendered){return this.value}var v=this.el.getValue();if(v===this.emptyText||v===undefined){v=""}return v},setRawValue:function(v){return this.el.dom.value=(v===null||v===undefined?"":v)},setValue:function(v){this.value=v;if(this.rendered){this.el.dom.value=(v===null||v===undefined?"":v);this.validate()}},adjustSize:function(w,h){var s=Ext.form.Field.superclass.adjustSize.call(this,w,h);s.width=this.adjustWidth(this.el.dom.tagName,s.width);return s},adjustWidth:function(tag,w){tag=tag.toLowerCase();if(typeof w=="number"&&!Ext.isSafari){if(Ext.isIE&&(tag=="input"||tag=="textarea")){if(tag=="input"&&!Ext.isStrict){return this.inEditor?w:w-3}if(tag=="input"&&Ext.isStrict){return w-(Ext.isIE6?4:1)}if(tag=="textarea"&&Ext.isStrict){return w-2}}else{if(Ext.isOpera&&Ext.isStrict){if(tag=="input"){return w+2}if(tag=="textarea"){return w-2}}}}return w}});Ext.form.MessageTargets={qtip:{mark:function(f){this.el.dom.qtip=msg;this.el.dom.qclass="x-form-invalid-tip";if(Ext.QuickTips){Ext.QuickTips.enable()}},clear:function(f){this.el.dom.qtip=""}},title:{mark:function(f){this.el.dom.title=msg},clear:function(f){this.el.dom.title=""}},under:{mark:function(f){if(!this.errorEl){var elp=this.getErrorCt();if(!elp){this.el.dom.title=msg;return}this.errorEl=elp.createChild({cls:"x-form-invalid-msg"});this.errorEl.setWidth(elp.getWidth(true)-20)}this.errorEl.update(msg);Ext.form.Field.msgFx[this.msgFx].show(this.errorEl,this)},clear:function(f){if(this.errorEl){Ext.form.Field.msgFx[this.msgFx].hide(this.errorEl,this)}else{this.el.dom.title=""}}},side:{mark:function(f){if(!this.errorIcon){var elp=this.getErrorCt();if(!elp){this.el.dom.title=msg;return}this.errorIcon=elp.createChild({cls:"x-form-invalid-icon"})}this.alignErrorIcon();this.errorIcon.dom.qtip=msg;this.errorIcon.dom.qclass="x-form-invalid-tip";this.errorIcon.show();this.on("resize",this.alignErrorIcon,this)},clear:function(f){if(this.errorIcon){this.errorIcon.dom.qtip=""; this.errorIcon.hide();this.un("resize",this.alignErrorIcon,this)}else{this.el.dom.title=""}}},around:{mark:function(f){},clear:function(f){}}};Ext.form.Field.msgFx={normal:{show:function(_26,f){_26.setDisplayed("block")},hide:function(_28,f){_28.setDisplayed(false).update("")}},slide:{show:function(_2a,f){_2a.slideIn("t",{stopFx:true})},hide:function(_2c,f){_2c.slideOut("t",{stopFx:true,useDisplay:true})}},slideRight:{show:function(_2e,f){_2e.fixDisplay();_2e.alignTo(f.el,"tl-tr");_2e.slideIn("l",{stopFx:true})},hide:function(_30,f){_30.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.el.on("keyup",this.filterValidation,this)}else{if(this.validationEvent!==false){this.el.on(this.validationEvent,this.validate,this,{buffer:this.validationDelay})}}if(this.selectOnFocus||this.emptyText){this.on("focus",this.preFocus,this);this.el.on("mousedown",function(){if(!this.hasFocus){this.el.on("mouseup",function(e){e.preventDefault()},this,{single:true})}},this);if(this.emptyText){this.on("blur",this.postBlur,this);this.applyEmptyText()}}if(this.maskRe||(this.vtype&&this.disableKeyFilter!==true&&(this.maskRe=Ext.form.VTypes[this.vtype+"Mask"]))){this.el.on("keypress",this.filterKeys,this)}if(this.grow){this.el.on("keyup",this.onKeyUpBuffered,this,{buffer:50});this.el.on("click",this.autoSize,this)}if(this.enableKeyEvents){this.el.on("keyup",this.onKeyUp,this);this.el.on("keydown",this.onKeyDown,this);this.el.on("keypress",this.onKeyPress,this)}},processValue:function(_2){if(this.stripCharsRe){var _3=_2.replace(this.stripCharsRe,"");if(_3!==_2){this.setRawValue(_3);return _3}}return _2},filterValidation:function(e){if(!e.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(e){if(!e.isNavKeyPress()){this.autoSize()}},onKeyUp:function(e){this.fireEvent("keyup",this,e)},onKeyDown:function(e){this.fireEvent("keydown",this,e)},onKeyPress:function(e){this.fireEvent("keypress",this,e)},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(){if(this.emptyText){if(this.el.dom.value==this.emptyText){this.setRawValue("")}this.el.removeClass(this.emptyClass)}if(this.selectOnFocus){this.el.dom.select()}},postBlur:function(){this.applyEmptyText()},filterKeys:function(e){if(e.ctrlKey){return}var k=e.getKey();if(Ext.isGecko&&(e.isNavKeyPress()||k==e.BACKSPACE||(k==e.DELETE&&e.button==-1))){return}var c=e.getCharCode(),cc=String.fromCharCode(c);if(!Ext.isGecko&&e.isSpecialKey()&&!cc){return}if(!this.maskRe.test(cc)){e.stopEvent()}},setValue:function(v){if(this.emptyText&&this.el&&v!==undefined&&v!==null&&v!==""){this.el.removeClass(this.emptyClass)}Ext.form.TextField.superclass.setValue.apply(this,arguments);this.applyEmptyText();this.autoSize()},validateValue:function(_e){if(_e.length<1||_e===this.emptyText){if(this.allowBlank){this.clearInvalid();return true}else{this.markInvalid(this.blankText);return false}}if(_e.lengththis.maxLength){this.markInvalid(String.format(this.maxLengthText,this.maxLength));return false}if(this.vtype){var vt=Ext.form.VTypes;if(!vt[this.vtype](_e,this)){this.markInvalid(this.vtypeText||vt[this.vtype+"Text"]);return false}}if(typeof this.validator=="function"){var msg=this.validator(_e);if(msg!==true){this.markInvalid(msg);return false}}if(this.regex&&!this.regex.test(_e)){this.markInvalid(this.regexText);return false}return true},selectText:function(_11,end){var v=this.getRawValue();var _14=false;if(v.length>0){_11=_11===undefined?0:_11;end=end===undefined?v.length:end;var d=this.el.dom;if(d.setSelectionRange){d.setSelectionRange(_11,end)}else{if(d.createTextRange){var _16=d.createTextRange();_16.moveStart("character",_11);_16.moveEnd("character",end-v.length);_16.select()}}_14=Ext.isGecko||Ext.isOpera}else{_14=true}if(_14){this.focus()}},autoSize:function(){if(!this.grow||!this.rendered){return}if(!this.metrics){this.metrics=Ext.util.TextMetrics.createInstance(this.el)}var el=this.el;var v=el.dom.value;var d=document.createElement("div");d.appendChild(document.createTextNode(v));v=d.innerHTML;Ext.removeNode(d);d=null;v+=" ";var w=Math.min(this.growMax,Math.max(this.metrics.getWidth(v)+10,this.growMin));this.el.setWidth(w);this.fireEvent("autosize",this,w)}});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,autoSize:Ext.emptyFn,monitorTab:true,deferHeight:true,mimicing:false,onResize:function(w,h){Ext.form.TriggerField.superclass.onResize.call(this,w,h);if(typeof w=="number"){this.el.setWidth(this.adjustWidth("input",w-this.trigger.getWidth()))}this.wrap.setWidth(this.el.getWidth()+this.trigger.getWidth())},adjustSize:Ext.BoxComponent.prototype.adjustSize,getResizeEl:function(){return this.wrap},getPositionEl:function(){return this.wrap},alignErrorIcon:function(){if(this.wrap){this.errorIcon.alignTo(this.wrap,"tl-tr",[2,0])}},onRender:function(ct,_4){Ext.form.TriggerField.superclass.onRender.call(this,ct,_4);this.wrap=this.el.wrap({cls:"x-form-field-wrap"});this.trigger=this.wrap.createChild(this.triggerConfig||{tag:"img",src:Ext.BLANK_IMAGE_URL,cls:"x-form-trigger "+this.triggerClass});if(this.hideTrigger){this.trigger.setDisplayed(false)}this.initTrigger();if(!this.width){this.wrap.setWidth(this.el.getWidth()+this.trigger.getWidth())}},afterRender:function(){Ext.form.TriggerField.superclass.afterRender.call(this);var y;if(Ext.isIE&&!this.hideTrigger&&this.el.getY()!=(y=this.trigger.getY())){this.el.position();this.el.setY(y)}},initTrigger:function(){this.trigger.on("click",this.onTriggerClick,this,{preventDefault:true});this.trigger.addClassOnOver("x-form-trigger-over");this.trigger.addClassOnClick("x-form-trigger-click")},onDestroy:function(){if(this.trigger){this.trigger.removeAllListeners();this.trigger.remove()}if(this.wrap){this.wrap.remove()}if(this.mimicing){Ext.get(Ext.isIE?document.body:document).un("mousedown",this.mimicBlur,this)}Ext.form.TriggerField.superclass.onDestroy.call(this)},onFocus:function(){Ext.form.TriggerField.superclass.onFocus.call(this);if(!this.mimicing){this.wrap.addClass("x-trigger-wrap-focus");this.mimicing=true;Ext.get(Ext.isIE?document.body:document).on("mousedown",this.mimicBlur,this,{delay:10});if(this.monitorTab){this.el.on("keydown",this.checkTab,this)}}},checkTab:function(e){if(e.getKey()==e.TAB){this.triggerBlur()}},onBlur:function(){},mimicBlur:function(e){if(!this.wrap.contains(e.target)&&this.validateBlur(e)){this.triggerBlur()}},triggerBlur:function(){this.mimicing=false;Ext.get(Ext.isIE?document.body:document).un("mousedown",this.mimicBlur,this);if(this.monitorTab&&this.el){this.el.un("keydown",this.checkTab,this) }this.beforeBlur();if(this.wrap){this.wrap.removeClass("x-trigger-wrap-focus")}Ext.form.TriggerField.superclass.onBlur.call(this)},beforeBlur:Ext.emptyFn,validateBlur:function(e){return true},onDisable:function(){Ext.form.TriggerField.superclass.onDisable.call(this);if(this.wrap){this.wrap.addClass(this.disabledClass);this.el.removeClass(this.disabledClass)}},onEnable:function(){Ext.form.TriggerField.superclass.onEnable.call(this);if(this.wrap){this.wrap.removeClass(this.disabledClass)}},onShow:function(){if(this.wrap){this.wrap.dom.style.display="";this.wrap.dom.style.visibility="visible"}},onHide:function(){this.wrap.dom.style.display="none"},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,cls:"x-form-trigger "+this.trigger1Class},{tag:"img",src:Ext.BLANK_IMAGE_URL,cls:"x-form-trigger "+this.trigger2Class}]}},getTrigger:function(_9){return this.triggers[_9]},initTrigger:function(){var ts=this.trigger.select(".x-form-trigger",true);this.wrap.setStyle("overflow","hidden");var _b=this;ts.each(function(t,_d,_e){t.hide=function(){var w=_b.wrap.getWidth();this.dom.style.display="none";_b.el.setWidth(w-_b.trigger.getWidth())};t.show=function(){var w=_b.wrap.getWidth();this.dom.style.display="";_b.el.setWidth(w-_b.trigger.getWidth())};var _11="Trigger"+(_e+1);if(this["hide"+_11]){t.dom.style.display="none"}t.on("click",this["on"+_11+"Click"],this,{preventDefault:true});t.addClassOnOver("x-form-trigger-over");t.addClassOnClick("x-form-trigger-click")},this);this.triggers=ts.elements},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:" \n ",growPad:0,enterIsSpecial:false,preventScrollbars:false,onRender:function(ct,_2){if(!this.el){this.defaultAutoCreate={tag:"textarea",style:"width:100px;height:60px;",autocomplete:"off"}}Ext.form.TextArea.superclass.onRender.call(this,ct,_2);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(){if(this.textSizeEl){Ext.removeNode(this.textSizeEl)}Ext.form.TextArea.superclass.onDestroy.call(this)},fireKey:function(e){if(e.isSpecialKey()&&(this.enterIsSpecial||(e.getKey()!=e.ENTER||e.hasModifier()))){this.fireEvent("specialkey",this,e)}},onKeyUp:function(e){if(!e.isNavKeyPress()||e.getKey()==e.ENTER){this.autoSize()}Ext.form.TextArea.superclass.onKeyUp.call(this,e)},autoSize:function(){if(!this.grow||!this.textSizeEl){return}var el=this.el;var v=el.dom.value;var ts=this.textSizeEl;ts.innerHTML="";ts.appendChild(document.createTextNode(v));v=ts.innerHTML;Ext.fly(ts).setWidth(this.el.getWidth());if(v.length<1){v="  "}else{if(Ext.isIE){v=v.replace(/\n/g,"

     

    ")}v+=this.growAppend}ts.innerHTML=v;var h=Math.min(this.growMax,Math.max(ts.offsetHeight,this.growMin)+this.growPad);if(h!=this.lastHeight){this.lastHeight=h;this.el.setHeight(h);this.fireEvent("autosize",this,h)}}});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",initEvents:function(){Ext.form.NumberField.superclass.initEvents.call(this);var _1=this.baseChars+"";if(this.allowDecimals){_1+=this.decimalSeparator}if(this.allowNegative){_1+="-"}this.stripCharsRe=new RegExp("[^"+_1+"]","gi");var _2=function(e){var k=e.getKey();if(!Ext.isIE&&(e.isSpecialKey()||k==e.BACKSPACE||k==e.DELETE)){return}var c=e.getCharCode();if(_1.indexOf(String.fromCharCode(c))===-1){e.stopEvent()}};this.el.on("keypress",_2,this)},validateValue:function(_6){if(!Ext.form.NumberField.superclass.validateValue.call(this,_6)){return false}if(_6.length<1){return true}_6=String(_6).replace(this.decimalSeparator,".");if(isNaN(_6)){this.markInvalid(String.format(this.nanText,_6));return false}var _7=this.parseValue(_6);if(_7this.maxValue){this.markInvalid(String.format(this.maxText,this.maxValue));return false}return true},getValue:function(){return this.fixPrecision(this.parseValue(Ext.form.NumberField.superclass.getValue.call(this)))},setValue:function(v){v=typeof v=="number"?v:parseFloat(String(v).replace(this.decimalSeparator,"."));v=isNaN(v)?"":String(v).replace(".",this.decimalSeparator);Ext.form.NumberField.superclass.setValue.call(this,v)},parseValue:function(_9){_9=parseFloat(String(_9).replace(this.decimalSeparator,"."));return isNaN(_9)?"":_9},fixPrecision:function(_a){var _b=isNaN(_a);if(!this.allowDecimals||this.decimalPrecision==-1||_b||!_a){return _b?"":_a}return parseFloat(parseFloat(_a).toFixed(this.decimalPrecision))},beforeBlur:function(){var v=this.parseValue(this.getRawValue());if(v||v===0){this.setValue(this.fixPrecision(v))}}});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",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,defaultAutoCreate:{tag:"input",type:"text",size:"10",autocomplete:"off"},initComponent:function(){Ext.form.DateField.superclass.initComponent.call(this);this.addEvents("select");if(typeof this.minValue=="string"){this.minValue=this.parseDate(this.minValue)}if(typeof this.maxValue=="string"){this.maxValue=this.parseDate(this.maxValue)}this.disabledDatesRE=null;this.initDisabledDays()},initDisabledDays:function(){if(this.disabledDates){var dd=this.disabledDates;var re="(?:";for(var i=0;ithis.maxValue.getTime()){this.markInvalid(String.format(this.maxText,this.formatDate(this.maxValue)));return false}if(this.disabledDays){var _b=_8.getDay();for(var i=0;i
    {'+this.displayField+"}
    "}this.view=new Ext.DataView({applyTo:this.innerList,tpl:this.tpl,singleSelect:true,selectedClass:this.selectedClass,itemSelector:this.itemSelector||"."+_a+"-item"});this.view.on("click",this.onViewClick,this);this.bindStore(this.store,true);if(this.resizable){this.resizer=new Ext.Resizable(this.list,{pinned:true,handles:"se"});this.resizer.on("resize",function(r,w,h){this.maxHeight=h-this.handleHeight-this.list.getFrameWidth("tb")-this.assetHeight;this.listWidth=w;this.innerList.setWidth(w-this.list.getFrameWidth("lr"));this.restrictHeight()},this);this[this.pageSize?"footer":"innerList"].setStyle("margin-bottom",this.handleHeight+"px")}}},getStore:function(){return this.store},bindStore:function(_f,_10){if(this.store&&!_10){this.store.un("beforeload",this.onBeforeLoad,this);this.store.un("load",this.onLoad,this);this.store.un("loadexception",this.collapse,this);if(!_f){this.store=null;if(this.view){this.view.setStore(null)}}}if(_f){this.store=Ext.StoreMgr.lookup(_f);this.store.on("beforeload",this.onBeforeLoad,this);this.store.on("load",this.onLoad,this);this.store.on("loadexception",this.collapse,this);if(this.view){this.view.setStore(_f)}}},initEvents:function(){Ext.form.ComboBox.superclass.initEvents.call(this);this.keyNav=new Ext.KeyNav(this.el,{up:function(e){this.inKeyMode=true;this.selectPrev()},down:function(e){if(!this.isExpanded()){this.onTriggerClick()}else{this.inKeyMode=true;this.selectNext()}},enter:function(e){this.onViewClick();this.delayedCheck=true;this.unsetDelayCheck.defer(10,this)},esc:function(e){this.collapse()},tab:function(e){this.onViewClick(false);return true},scope:this,doRelay:function(foo,bar,_18){if(_18=="down"||this.scope.isExpanded()){return Ext.KeyNav.prototype.doRelay.apply(this,arguments)}return true},forceKeyDown:true});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.editable!==false){this.el.on("keyup",this.onKeyUp,this)}if(this.forceSelection){this.on("blur",this.doForce,this)}},onDestroy:function(){if(this.view){Ext.destroy(this.view)}if(this.list){if(this.innerList){this.innerList.un("mouseover",this.onViewOver,this);this.innerList.un("mousemove",this.onViewMove,this)}this.list.destroy()}if(this.dqTask){this.dqTask.cancel();this.dqTask=null}this.bindStore(null);Ext.form.ComboBox.superclass.onDestroy.call(this)},unsetDelayCheck:function(){delete this.delayedCheck},fireKey:function(e){if(e.isNavKeyPress()&&!this.isExpanded()&&!this.delayedCheck){this.fireEvent("specialkey",this,e)}},onResize:function(w,h){Ext.form.ComboBox.superclass.onResize.apply(this,arguments);if(this.list&&this.listWidth===undefined){var lw=Math.max(w,this.minListWidth); this.list.setWidth(lw);this.innerList.setWidth(lw-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}},setEditable:function(_1d){if(_1d==this.editable){return}this.editable=_1d;if(!_1d){this.el.dom.setAttribute("readOnly",true);this.el.on("mousedown",this.onTriggerClick,this);this.el.addClass("x-combo-noedit")}else{this.el.dom.removeAttribute("readOnly");this.el.un("mousedown",this.onTriggerClick,this);this.el.removeClass("x-combo-noedit")}},onBeforeLoad:function(){if(!this.hasFocus){return}this.innerList.update(this.loadingText?'
    '+this.loadingText+"
    ":"");this.restrictHeight();this.selectedIndex=-1},onLoad:function(){if(!this.hasFocus){return}if(this.store.getCount()>0){this.expand();this.restrictHeight();if(this.lastQuery==this.allQuery){if(this.editable){this.el.dom.select()}if(!this.selectByValue(this.value,true)){this.select(0,true)}}else{this.selectNext();if(this.typeAhead&&this.lastKey!=Ext.EventObject.BACKSPACE&&this.lastKey!=Ext.EventObject.DELETE){this.taTask.delay(this.typeAheadDelay)}}}else{this.onEmptyResults()}},onTypeAhead:function(){if(this.store.getCount()>0){var r=this.store.getAt(0);var _1f=r.data[this.displayField];var len=_1f.length;var _21=this.getRawValue().length;if(_21!=len){this.setRawValue(_1f);this.selectText(_21,_1f.length)}}},onSelect:function(_22,_23){if(this.fireEvent("beforeselect",this,_22,_23)!==false){this.setValue(_22.data[this.valueField||this.displayField]);this.collapse();this.fireEvent("select",this,_22,_23)}},getValue:function(){if(this.valueField){return typeof this.value!="undefined"?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(v){var _25=v;if(this.valueField){var r=this.findRecord(this.valueField,v);if(r){_25=r.data[this.displayField]}else{if(this.valueNotFoundText!==undefined){_25=this.valueNotFoundText}}}this.lastSelectionText=_25;if(this.hiddenField){this.hiddenField.value=v}Ext.form.ComboBox.superclass.setValue.call(this,_25);this.value=v},findRecord:function(_27,_28){var _29;if(this.store.getCount()>0){this.store.each(function(r){if(r.data[_27]==_28){_29=r;return false}})}return _29},onViewMove:function(e,t){this.inKeyMode=false},onViewOver:function(e,t){if(this.inKeyMode){return}var _2f=this.view.findItemFromChild(t);if(_2f){var _30=this.view.indexOf(_2f);this.select(_30,false)}},onViewClick:function(_31){var _32=this.view.getSelectedIndexes()[0];var r=this.store.getAt(_32);if(r){this.onSelect(r,_32)}if(_31!==false){this.el.focus()}},restrictHeight:function(){this.innerList.dom.style.height="";var _34=this.innerList.dom;var pad=this.list.getFrameWidth("tb")+(this.resizable?this.handleHeight:0)+this.assetHeight;var h=Math.max(_34.clientHeight,_34.offsetHeight,_34.scrollHeight);var ha=this.getPosition()[1]-Ext.getBody().getScroll().top;var hb=Ext.lib.Dom.getViewHeight()-ha-this.getSize().height;var _39=Math.max(ha,hb,this.minHeight||0)-this.list.shadowOffset-pad-5;h=Math.min(h,_39,this.maxHeight);this.innerList.setHeight(h);this.list.beginUpdate();this.list.setHeight(h+pad);this.list.alignTo(this.wrap,this.listAlign);this.list.endUpdate()},onEmptyResults:function(){this.collapse()},isExpanded:function(){return this.list&&this.list.isVisible()},selectByValue:function(v,_3b){if(v!==undefined&&v!==null){var r=this.findRecord(this.valueField||this.displayField,v);if(r){this.select(this.store.indexOf(r),_3b);return true}}return false},select:function(_3d,_3e){this.selectedIndex=_3d;this.view.select(_3d);if(_3e!==false){var el=this.view.getNode(_3d);if(el){this.innerList.scrollChildIntoView(el,false)}}},selectNext:function(){var ct=this.store.getCount();if(ct>0){if(this.selectedIndex==-1){this.select(0)}else{if(this.selectedIndex0){if(this.selectedIndex==-1){this.select(0)}else{if(this.selectedIndex!=0){this.select(this.selectedIndex-1)}}}},onKeyUp:function(e){if(this.editable!==false&&!e.isSpecialKey()){this.lastKey=e.getKey();this.dqTask.delay(this.queryDelay)}},validateBlur:function(){return !this.list||!this.list.isVisible()},initQuery:function(){this.doQuery(this.getRawValue())},doForce:function(){if(this.el.dom.value.length>0){this.el.dom.value=this.lastSelectionText===undefined?"":this.lastSelectionText;this.applyEmptyText()}},doQuery:function(q,_44){if(q===undefined||q===null){q=""}var qe={query:q,forceAll:_44,combo:this,cancel:false};if(this.fireEvent("beforequery",qe)===false||qe.cancel){return false}q=qe.query;_44=qe.forceAll;if(_44===true||(q.length>=this.minChars)){if(this.lastQuery!==q){this.lastQuery=q;if(this.mode=="local"){this.selectedIndex=-1;if(_44){this.store.clearFilter()}else{this.store.filter(this.displayField,q)}this.onLoad()}else{this.store.baseParams[this.queryParam]=q;this.store.load({params:this.getParams(q)});this.expand()}}else{this.selectedIndex=-1;this.onLoad()}}},getParams:function(q){var p={};if(this.pageSize){p.start=0;p.limit=this.pageSize}return p},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(e){if(!e.within(this.wrap)&&!e.within(this.list)){this.collapse()}},expand:function(){if(this.isExpanded()||!this.hasFocus){return}this.list.alignTo(this.wrap,this.listAlign);this.list.show();this.innerList.setOverflow("auto");Ext.getDoc().on("mousewheel",this.collapseIf,this);Ext.getDoc().on("mousedown",this.collapseIf,this);this.fireEvent("expand",this)},onTriggerClick:function(){if(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,{checkedCls:"x-form-check-checked",focusCls:"x-form-check-focus",overCls:"x-form-check-over",mouseDownCls:"x-form-check-down",tabIndex:0,checked:false,defaultAutoCreate:{tag:"input",type:"checkbox",autocomplete:"off"},baseCls:"x-form-check",initComponent:function(){Ext.form.Checkbox.superclass.initComponent.call(this);this.addEvents("check")},initEvents:function(){Ext.form.Checkbox.superclass.initEvents.call(this);this.initCheckEvents()},initCheckEvents:function(){this.innerWrap.removeAllListeners();this.innerWrap.addClassOnOver(this.overCls);this.innerWrap.addClassOnClick(this.mouseDownCls);this.innerWrap.on("click",this.onClick,this);this.innerWrap.on("keyup",this.onKeyUp,this)},onRender:function(ct,_2){Ext.form.Checkbox.superclass.onRender.call(this,ct,_2);if(this.inputValue!==undefined){this.el.dom.value=this.inputValue}this.el.addClass("x-hidden");this.innerWrap=this.el.wrap({tabIndex:this.tabIndex,cls:this.baseCls+"-wrap-inner"});this.wrap=this.innerWrap.wrap({cls:this.baseCls+"-wrap"});if(this.boxLabel){this.labelEl=this.innerWrap.createChild({tag:"label",htmlFor:this.el.id,cls:"x-form-cb-label",html:this.boxLabel})}this.imageEl=this.innerWrap.createChild({tag:"img",src:Ext.BLANK_IMAGE_URL,cls:this.baseCls},this.el);if(this.checked){this.setValue(true)}else{this.checked=this.el.dom.checked}this.originalValue=this.checked},afterRender:function(){Ext.form.Checkbox.superclass.afterRender.call(this);this.wrap[this.checked?"addClass":"removeClass"](this.checkedCls)},onDestroy:function(){if(this.rendered){Ext.destroy(this.imageEl,this.labelEl,this.innerWrap,this.wrap)}Ext.form.Checkbox.superclass.onDestroy.call(this)},onFocus:function(e){Ext.form.Checkbox.superclass.onFocus.call(this,e); this.el.addClass(this.focusCls)},onBlur:function(e){Ext.form.Checkbox.superclass.onBlur.call(this,e);this.el.removeClass(this.focusCls)},onResize:function(){Ext.form.Checkbox.superclass.onResize.apply(this,arguments);if(!this.boxLabel&&!this.fieldLabel){this.el.alignTo(this.wrap,"c-c")}},onKeyUp:function(e){if(e.getKey()==Ext.EventObject.SPACE){this.onClick(e)}},onClick:function(e){if(!this.disabled&&!this.readOnly){this.toggleValue()}e.stopEvent()},onEnable:function(){Ext.form.Checkbox.superclass.onEnable.call(this);this.initCheckEvents()},onDisable:function(){Ext.form.Checkbox.superclass.onDisable.call(this);this.innerWrap.removeAllListeners()},toggleValue:function(){this.setValue(!this.checked)},getResizeEl:function(){if(!this.resizeEl){this.resizeEl=Ext.isSafari?this.wrap:(this.wrap.up(".x-form-element",5)||this.wrap)}return this.resizeEl},getPositionEl:function(){return this.wrap},getActionEl:function(){return this.wrap},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,initValue:Ext.emptyFn,getValue:function(){if(this.rendered){return this.el.dom.checked}return this.checked},setValue:function(v){var _8=this.checked;this.checked=(v===true||v==="true"||v=="1"||String(v).toLowerCase()=="on");if(this.rendered){this.el.dom.checked=this.checked;this.el.dom.defaultChecked=this.checked;this.wrap[this.checked?"addClass":"removeClass"](this.checkedCls)}if(_8!=this.checked){this.fireEvent("check",this,this.checked);if(this.handler){this.handler.call(this.scope||this,this,this.checked)}}}});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",onRender:function(ct,_2){if(!this.el){var _3={cls:this.groupCls,layout:"column",border:false,renderTo:ct};var _4={defaultType:this.defaultType,layout:"form",border:false,defaults:{hideLabel:true,anchor:"100%"}};if(this.items[0].items){Ext.apply(_3,{layoutConfig:{columns:this.items.length},defaults:this.defaults,items:this.items});for(var i=0,_6=this.items.length;i<_6;i++){Ext.applyIf(this.items[i],_4)}}else{var _7,_8=[];if(typeof this.columns=="string"){this.columns=this.items.length}if(!Ext.isArray(this.columns)){var cs=[];for(var i=0;i0&&i%_b==0){ri++}if(this.items[i].fieldLabel){this.items[i].hideLabel=false}_8[ri].items.push(this.items[i])}}else{for(var i=0,_6=this.items.length;i<_6;i++){var ci=i%_7;if(this.items[i].fieldLabel){this.items[i].hideLabel=false}_8[ci].items.push(this.items[i])}}Ext.apply(_3,{layoutConfig:{columns:_7},items:_8})}this.panel=new Ext.Panel(_3);this.el=this.panel.getEl();if(this.forId&&this.itemCls){var l=this.el.up(this.itemCls).child("label",true);if(l){l.setAttribute("htmlFor",this.forId)}}var _f=this.panel.findBy(function(c){return c.isFormField},this);this.items=new Ext.util.MixedCollection();this.items.addAll(_f)}Ext.form.CheckboxGroup.superclass.onRender.call(this,ct,_2)},validateValue:function(_11){if(!this.allowBlank){var _12=true;this.items.each(function(f){if(f.checked){return _12=false}},this);if(_12){this.markInvalid(this.blankText);return false}}return true},onDisable:function(){this.items.each(function(_14){_14.disable()})},onEnable:function(){this.items.each(function(_15){_15.enable()})},onResize:function(w,h){this.panel.setSize(w,h);this.panel.doLayout()},reset:function(){Ext.form.CheckboxGroup.superclass.reset.call(this);this.items.each(function(c){if(c.reset){c.reset()}},this)},initValue:Ext.emptyFn,getValue:Ext.emptyFn,getRawValue:Ext.emptyFn,setValue:Ext.emptyFn,setRawValue:Ext.emptyFn});Ext.reg("checkboxgroup",Ext.form.CheckboxGroup);Ext.form.Radio=Ext.extend(Ext.form.Checkbox,{inputType:"radio",baseCls:"x-form-radio",getGroupValue:function(){var c=this.getParent().child("input[name="+this.el.dom.name+"]:checked",true);return c?c.value:null},getParent:function(){return this.el.up("form")||Ext.getBody()},toggleValue:function(){if(!this.checked){var _2=this.getParent().select("input[name="+this.el.dom.name+"]");_2.each(function(el){if(el.dom.id==this.id){this.setValue(true)}else{Ext.getCmp(el.dom.id).setValue(false)}},this)}},setValue:function(v){if(typeof v=="boolean"){Ext.form.Radio.superclass.setValue.call(this,v)}else{var r=this.getParent().child("input[name="+this.el.dom.name+"][value="+v+"]",true);if(r&&!r.checked){Ext.getCmp(r.id).toggleValue()}}},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn});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"});Ext.reg("radiogroup",Ext.form.RadioGroup);Ext.form.Hidden=Ext.extend(Ext.form.Field,{inputType:"hidden",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=function(el,_2){Ext.apply(this,_2);this.items=new Ext.util.MixedCollection(false,function(o){return o.id||(o.id=Ext.id())});this.addEvents("beforeaction","actionfailed","actioncomplete");if(el){this.initEl(el)}Ext.form.BasicForm.superclass.constructor.call(this)};Ext.extend(Ext.form.BasicForm,Ext.util.Observable,{timeout:30,activeAction:null,trackResetOnLoad:false,initEl:function(el){this.el=Ext.get(el);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(e){e.stopEvent()},destroy:function(){this.items.each(function(f){Ext.destroy(f)});if(this.el){this.el.removeAllListeners();this.el.remove()}this.purgeListeners()},isValid:function(){var _7=true;this.items.each(function(f){if(!f.validate()){_7=false}});return _7},isDirty:function(){var _9=false;this.items.each(function(f){if(f.isDirty()){_9=true;return false}});return _9},doAction:function(_b,_c){if(typeof _b=="string"){_b=new Ext.form.Action.ACTION_TYPES[_b](this,_c)}if(this.fireEvent("beforeaction",this,_b)!==false){this.beforeAction(_b);_b.run.defer(100,_b)}return this},submit:function(_d){if(this.standardSubmit){var v=this.isValid();if(v){this.el.dom.submit()}return v}this.doAction("submit",_d);return this},load:function(_f){this.doAction("load",_f);return this},updateRecord:function(_10){_10.beginEdit();var fs=_10.fields;fs.each(function(f){var _13=this.findField(f.name);if(_13){_10.set(f.name,_13.getValue())}},this);_10.endEdit();return this},loadRecord:function(_14){this.setValues(_14.data);return this},beforeAction:function(_15){var o=_15.options;if(o.waitMsg){if(this.waitMsgTarget===true){this.el.mask(o.waitMsg,"x-mask-loading")}else{if(this.waitMsgTarget){this.waitMsgTarget=Ext.get(this.waitMsgTarget);this.waitMsgTarget.mask(o.waitMsg,"x-mask-loading")}else{Ext.MessageBox.wait(o.waitMsg,o.waitTitle||this.waitTitle||"Please Wait...")}}}},afterAction:function(_17,_18){this.activeAction=null;var o=_17.options;if(o.waitMsg){if(this.waitMsgTarget===true){this.el.unmask()}else{if(this.waitMsgTarget){this.waitMsgTarget.unmask()}else{Ext.MessageBox.updateProgress(1);Ext.MessageBox.hide()}}}if(_18){if(o.reset){this.reset()}Ext.callback(o.success,o.scope,[this,_17]);this.fireEvent("actioncomplete",this,_17)}else{Ext.callback(o.failure,o.scope,[this,_17]);this.fireEvent("actionfailed",this,_17)}},findField:function(id){var _1b=this.items.get(id);if(!_1b){this.items.each(function(f){if(f.isFormField&&(f.dataIndex==id||f.id==id||f.getName()==id)){_1b=f; return false}})}return _1b||null},markInvalid:function(_1d){if(Ext.isArray(_1d)){for(var i=0,len=_1d.length;i':">"),ff,"")}return _1.join("")},createToolbar:function(_7){var _8=Ext.QuickTips&&Ext.QuickTips.isEnabled();function btn(id,_a,_b){return{itemId:id,cls:"x-btn-icon x-edit-"+id,enableToggle:_a!==false,scope:_7,handler:_b||_7.relayBtnCmd,clickEvent:"mousedown",tooltip:_8?_7.buttonTips[id]||undefined:undefined,tabIndex:-1}}var tb=new Ext.Toolbar({renderTo:this.wrap.dom.firstChild});tb.el.on("click",function(e){e.preventDefault()});if(this.enableFont&&!Ext.isSafari2){this.fontSelect=tb.el.createChild({tag:"select",cls:"x-font-select",html:this.createFontOptions()});this.fontSelect.on("change",function(){var _e=this.fontSelect.dom.value;this.relayCmd("fontname",_e);this.deferFocus()},this);tb.add(this.fontSelect.dom,"-")}if(this.enableFormat){tb.add(btn("bold"),btn("italic"),btn("underline"))}if(this.enableFontSize){tb.add("-",btn("increasefontsize",false,this.adjustFont),btn("decreasefontsize",false,this.adjustFont))}if(this.enableColors){tb.add("-",{itemId:"forecolor",cls:"x-btn-icon x-edit-forecolor",clickEvent:"mousedown",tooltip:_8?_7.buttonTips.forecolor||undefined:undefined,tabIndex:-1,menu:new Ext.menu.ColorMenu({allowReselect:true,focus:Ext.emptyFn,value:"000000",plain:true,selectHandler:function(cp,_10){this.execCmd("forecolor",Ext.isSafari||Ext.isIE?"#"+_10:_10);this.deferFocus()},scope:this,clickEvent:"mousedown"})},{itemId:"backcolor",cls:"x-btn-icon x-edit-backcolor",clickEvent:"mousedown",tooltip:_8?_7.buttonTips.backcolor||undefined:undefined,tabIndex:-1,menu:new Ext.menu.ColorMenu({focus:Ext.emptyFn,value:"FFFFFF",plain:true,allowReselect:true,selectHandler:function(cp,_12){if(Ext.isGecko){this.execCmd("useCSS",false);this.execCmd("hilitecolor",_12);this.execCmd("useCSS",true);this.deferFocus()}else{this.execCmd(Ext.isOpera?"hilitecolor":"backcolor",Ext.isSafari||Ext.isIE?"#"+_12:_12); this.deferFocus()}},scope:this,clickEvent:"mousedown"})})}if(this.enableAlignments){tb.add("-",btn("justifyleft"),btn("justifycenter"),btn("justifyright"))}if(!Ext.isSafari2){if(this.enableLinks){tb.add("-",btn("createlink",false,this.createLink))}if(this.enableLists){tb.add("-",btn("insertorderedlist"),btn("insertunorderedlist"))}if(this.enableSourceEdit){tb.add("-",btn("sourceedit",true,function(btn){this.toggleSourceEdit(btn.pressed)}))}}this.tb=tb},getDocMarkup:function(){return''},getEditorBody:function(){return this.doc.body||this.doc.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(ct,_15){Ext.form.HtmlEditor.superclass.onRender.call(this,ct,_15);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.tb.items.each(function(_16){if(_16.itemId!="sourceedit"){_16.disable()}});var _17=document.createElement("iframe");_17.name=Ext.id();_17.frameBorder="0";_17.src=Ext.isIE?Ext.SSL_SECURE_URL:"javascript:;";this.wrap.dom.appendChild(_17);this.iframe=_17;this.initFrame();if(this.autoMonitorDesignMode!==false){this.monitorTask=Ext.TaskMgr.start({run:this.checkDesignMode,scope:this,interval:100})}if(!this.width){var sz=this.el.getSize();this.setSize(sz.width,this.height||sz.height)}},initFrame:function(){this.doc=this.getDoc();this.win=this.getWin();this.doc.open();this.doc.write(this.getDocMarkup());this.doc.close();var _19={run:function(){if(this.doc.body||this.doc.readyState=="complete"){Ext.TaskMgr.stop(_19);this.doc.designMode="on";this.initEditor.defer(10,this)}},interval:10,duration:10000,scope:this};Ext.TaskMgr.start(_19)},checkDesignMode:function(){if(this.wrap&&this.wrap.dom.offsetWidth){var doc=this.getDoc();if(!doc){return}if(!doc.editorInitialized||String(doc.designMode).toLowerCase()!="on"){this.initFrame()}}},onResize:function(w,h){Ext.form.HtmlEditor.superclass.onResize.apply(this,arguments);if(this.el&&this.iframe){if(typeof w=="number"){var aw=w-this.wrap.getFrameWidth("lr");this.el.setWidth(this.adjustWidth("textarea",aw));this.iframe.style.width=Math.max(aw,0)+"px"}if(typeof h=="number"){var ah=h-this.wrap.getFrameWidth("tb")-this.tb.el.getHeight();this.el.setHeight(this.adjustWidth("textarea",ah));this.iframe.style.height=Math.max(ah,0)+"px";if(this.doc){this.getEditorBody().style.height=Math.max((ah-(this.iframePad*2)),0)+"px"}}}},toggleSourceEdit:function(_1f){if(_1f===undefined){_1f=!this.sourceEditMode}this.sourceEditMode=_1f===true;var btn=this.tb.items.get("sourceedit");if(btn.pressed!==this.sourceEditMode){btn.toggle(this.sourceEditMode);return}if(this.sourceEditMode){this.tb.items.each(function(_21){if(_21.itemId!="sourceedit"){_21.disable()}});this.syncValue();this.iframe.className="x-hidden";this.el.removeClass("x-hidden");this.el.dom.removeAttribute("tabIndex");this.el.focus()}else{if(this.initialized){this.tb.items.each(function(_22){_22.enable()})}this.pushValue();this.iframe.className="";this.el.addClass("x-hidden");this.el.dom.setAttribute("tabIndex",-1);this.deferFocus()}var _23=this.lastSize;if(_23){delete this.lastSize;this.setSize(_23)}this.fireEvent("editmodechange",this,this.sourceEditMode)},createLink:function(){var url=prompt(this.createLinkText,this.defaultLinkValue);if(url&&url!="http://"){this.relayCmd("createlink",url)}},adjustSize:Ext.BoxComponent.prototype.adjustSize,getResizeEl:function(){return this.wrap},getPositionEl:function(){return this.wrap},initEvents:function(){this.originalValue=this.getValue()},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,setValue:function(v){Ext.form.HtmlEditor.superclass.setValue.call(this,v);this.pushValue()},cleanHtml:function(_26){_26=String(_26);if(_26.length>5){if(Ext.isSafari){_26=_26.replace(/\sclass="(?:Apple-style-span|khtml-block-placeholder)"/gi,"")}}if(_26==" "){_26=""}return _26},syncValue:function(){if(this.initialized){var bd=this.getEditorBody();var _28=bd.innerHTML;if(Ext.isSafari){var bs=bd.getAttribute("style");var m=bs.match(/text-align:(.*?);/i);if(m&&m[1]){_28='
    '+_28+"
    "}}_28=this.cleanHtml(_28);if(this.fireEvent("beforesync",this,_28)!==false){this.el.dom.value=_28;this.fireEvent("sync",this,_28)}}},getValue:function(){this.syncValue();return Ext.form.HtmlEditor.superclass.getValue.call(this)},pushValue:function(){if(this.initialized){var v=this.el.dom.value;if(!this.activated&&v.length<1){v=" "}if(this.fireEvent("beforepush",this,v)!==false){this.getEditorBody().innerHTML=v;this.fireEvent("push",this,v)}}},deferFocus:function(){this.focus.defer(10,this)},focus:function(){if(this.win&&!this.sourceEditMode){this.win.focus()}else{this.el.focus()}},initEditor:function(){var _2c=this.getEditorBody();var ss=this.el.getStyles("font-size","font-family","background-image","background-repeat");ss["background-attachment"]="fixed";_2c.bgProperties="fixed";Ext.DomHelper.applyStyles(_2c,ss);if(this.doc){try{Ext.EventManager.removeAll(this.doc)}catch(e){}}this.doc=this.getDoc();Ext.EventManager.on(this.doc,{mousedown:this.onEditorEvent,dblclick:this.onEditorEvent,click:this.onEditorEvent,keyup:this.onEditorEvent,buffer:100,scope:this});if(Ext.isGecko){Ext.EventManager.on(this.doc,"keypress",this.applyCommand,this)}if(Ext.isIE||Ext.isSafari||Ext.isOpera){Ext.EventManager.on(this.doc,"keydown",this.fixKeys,this)}this.initialized=true;this.fireEvent("initialize",this);this.doc.editorInitialized=true;this.pushValue()},onDestroy:function(){if(this.monitorTask){Ext.TaskMgr.stop(this.monitorTask)}if(this.rendered){this.tb.items.each(function(_2e){if(_2e.menu){_2e.menu.removeAll();if(_2e.menu.el){_2e.menu.el.destroy()}}_2e.destroy()});this.wrap.dom.innerHTML="";this.wrap.remove()}},onFirstFocus:function(){this.activated=true;this.tb.items.each(function(_2f){_2f.enable()});if(Ext.isGecko){this.win.focus();var s=this.win.getSelection();if(!s.focusNode||s.focusNode.nodeType!=3){var r=s.getRangeAt(0);r.selectNodeContents(this.getEditorBody());r.collapse(true);this.deferFocus()}try{this.execCmd("useCSS",true);this.execCmd("styleWithCSS",false)}catch(e){}}this.fireEvent("activate",this)},adjustFont:function(btn){var _33=btn.itemId=="increasefontsize"?1:-1;var v=parseInt(this.doc.queryCommandValue("FontSize")||2,10);if(Ext.isSafari3||Ext.isAir){if(v<=10){v=1+_33}else{if(v<=13){v=2+_33}else{if(v<=16){v=3+_33}else{if(v<=18){v=4+_33}else{if(v<=24){v=5+_33}else{v=6+_33}}}}}v=v.constrain(1,6)}else{if(Ext.isSafari){_33*=2}v=Math.max(1,v+_33)+(Ext.isSafari?"px":0)}this.execCmd("FontSize",v)},onEditorEvent:function(e){this.updateToolbar()},updateToolbar:function(){if(!this.activated){this.onFirstFocus();return}var _36=this.tb.items.map,doc=this.doc;if(this.enableFont&&!Ext.isSafari2){var _38=(this.doc.queryCommandValue("FontName")||this.defaultFont).toLowerCase();if(_38!=this.fontSelect.dom.value){this.fontSelect.dom.value=_38}}if(this.enableFormat){_36.bold.toggle(doc.queryCommandState("bold"));_36.italic.toggle(doc.queryCommandState("italic"));_36.underline.toggle(doc.queryCommandState("underline"))}if(this.enableAlignments){_36.justifyleft.toggle(doc.queryCommandState("justifyleft"));_36.justifycenter.toggle(doc.queryCommandState("justifycenter"));_36.justifyright.toggle(doc.queryCommandState("justifyright"))}if(!Ext.isSafari2&&this.enableLists){_36.insertorderedlist.toggle(doc.queryCommandState("insertorderedlist"));_36.insertunorderedlist.toggle(doc.queryCommandState("insertunorderedlist"))}Ext.menu.MenuMgr.hideAll();this.syncValue()},relayBtnCmd:function(btn){this.relayCmd(btn.itemId)},relayCmd:function(cmd,_3b){(function(){this.focus(); this.execCmd(cmd,_3b);this.updateToolbar()}).defer(10,this)},execCmd:function(cmd,_3d){this.doc.execCommand(cmd,false,_3d===undefined?null:_3d);this.syncValue()},applyCommand:function(e){if(e.ctrlKey){var c=e.getCharCode(),cmd;if(c>0){c=String.fromCharCode(c);switch(c){case"b":cmd="bold";break;case"i":cmd="italic";break;case"u":cmd="underline";break}if(cmd){this.win.focus();this.execCmd(cmd);this.deferFocus();e.preventDefault()}}}},insertAtCursor:function(_41){if(!this.activated){return}if(Ext.isIE){this.win.focus();var r=this.doc.selection.createRange();if(r){r.collapse(true);r.pasteHTML(_41);this.syncValue();this.deferFocus()}}else{if(Ext.isGecko||Ext.isOpera){this.win.focus();this.execCmd("InsertHTML",_41);this.deferFocus()}else{if(Ext.isSafari){this.execCmd("InsertText",_41);this.deferFocus()}}}},fixKeys:function(){if(Ext.isIE){return function(e){var k=e.getKey(),r;if(k==e.TAB){e.stopEvent();r=this.doc.selection.createRange();if(r){r.collapse(true);r.pasteHTML("    ");this.deferFocus()}}else{if(k==e.ENTER){r=this.doc.selection.createRange();if(r){var _46=r.parentElement();if(!_46||_46.tagName.toLowerCase()!="li"){e.stopEvent();r.pasteHTML("
    ");r.collapse(false);r.select()}}}}}}else{if(Ext.isOpera){return function(e){var k=e.getKey();if(k==e.TAB){e.stopEvent();this.win.focus();this.execCmd("InsertHTML","    ");this.deferFocus()}}}else{if(Ext.isSafari){return function(e){var k=e.getKey();if(k==e.TAB){e.stopEvent();this.execCmd("InsertText","\t");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:null,maxValue:null,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",increment:15,mode:"local",triggerAction:"all",typeAhead:false,initDate:"1/1/2008",initComponent:function(){Ext.form.TimeField.superclass.initComponent.call(this);if(typeof this.minValue=="string"){this.minValue=this.parseDate(this.minValue)}if(typeof this.maxValue=="string"){this.maxValue=this.parseDate(this.maxValue)}if(!this.store){var _1=this.parseDate(this.minValue);if(!_1){_1=new Date(this.initDate).clearTime()}var _2=this.parseDate(this.maxValue);if(!_2){_2=new Date(this.initDate).clearTime().add("mi",(24*60)-1)}var _3=[];while(_1<=_2){_3.push([_1.dateFormat(this.format)]);_1=_1.add("mi",this.increment)}this.store=new Ext.data.SimpleStore({fields:["text"],data:_3});this.displayField="text"}},getValue:function(){var v=Ext.form.TimeField.superclass.getValue.call(this);return this.formatDate(this.parseDate(v))||""},setValue:function(_5){Ext.form.TimeField.superclass.setValue.call(this,this.formatDate(this.parseDate(_5)))},validateValue:Ext.form.DateField.prototype.validateValue,parseDate:Ext.form.DateField.prototype.parseDate,formatDate:Ext.form.DateField.prototype.formatDate,beforeBlur:function(){var v=this.parseDate(this.getRawValue());if(v){this.setValue(v.dateFormat(this.format))}}});Ext.reg("timefield",Ext.form.TimeField);Ext.form.Label=Ext.extend(Ext.BoxComponent,{onRender:function(ct,_2){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,ct,_2)},setText:function(t,_4){this.text=t;if(this.rendered){this.el.dom.innerHTML=_4!==false?Ext.util.Format.htmlEncode(t):t}return this}});Ext.reg("label",Ext.form.Label);Ext.form.Action=function(_1,_2){this.form=_1;this.options=_2||{}};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(_3){},success:function(_4){},handleResponse:function(_5){},failure:function(_6){this.response=_6;this.failureType=Ext.form.Action.CONNECT_FAILURE;this.form.afterAction(this,false)},processResponse:function(_7){this.response=_7;if(!_7.responseText){return true}this.result=this.handleResponse(_7);return this.result},getUrl:function(_8){var _9=this.options.url||this.form.url||this.form.el.dom.action;if(_8){var p=this.getParams();if(p){_9+=(_9.indexOf("?")!=-1?"&":"?")+p}}return _9},getMethod:function(){return(this.options.method||this.form.method||this.form.el.dom.method||"POST").toUpperCase()},getParams:function(){var bp=this.form.baseParams;var p=this.options.params;if(p){if(typeof p=="object"){p=Ext.urlEncode(Ext.applyIf(p,bp))}else{if(typeof p=="string"&&bp){p+="&"+Ext.urlEncode(bp)}}}else{if(bp){p=Ext.urlEncode(bp)}}return p},createCallback:function(_d){var _d=_d||{};return{success:this.success,failure:this.failure,scope:this,timeout:(_d.timeout*1000)||(this.form.timeout*1000),upload:this.form.fileUpload?this.success:undefined}}};Ext.form.Action.Submit=function(_e,_f){Ext.form.Action.Submit.superclass.constructor.call(this,_e,_f)};Ext.extend(Ext.form.Action.Submit,Ext.form.Action,{type:"submit",run:function(){var o=this.options;var _11=this.getMethod();var _12=_11=="GET";if(o.clientValidation===false||this.form.isValid()){Ext.Ajax.request(Ext.apply(this.createCallback(o),{form:this.form.el.dom,url:this.getUrl(_12),method:_11,headers:o.headers,params:!_12?this.getParams():null,isUpload:this.form.fileUpload}))}else{if(o.clientValidation!==false){this.failureType=Ext.form.Action.CLIENT_INVALID;this.form.afterAction(this,false)}}},success:function(_13){var _14=this.processResponse(_13);if(_14===true||_14.success){this.form.afterAction(this,true);return}if(_14.errors){this.form.markInvalid(_14.errors);this.failureType=Ext.form.Action.SERVER_INVALID}this.form.afterAction(this,false)},handleResponse:function(_15){if(this.form.errorReader){var rs=this.form.errorReader.read(_15);var _17=[];if(rs.records){for(var i=0,len=rs.records.length;i=0){if(!_2a){col=_27-1}_2a=false;while(col>=0){if(fn.call(_25||this,row,col,cm)===true){return[row,col]}col--}row--}}else{if(col>=_27){row++;_2a=false}while(row<_29){if(!_2a){col=0}_2a=false;while(col<_27){if(fn.call(_25||this,row,col,cm)===true){return[row,col]}col++}row++}}return null},getSelections:function(){return this.selModel.getSelections()},onResize:function(){Ext.grid.GridPanel.superclass.onResize.apply(this,arguments);if(this.viewReady){this.view.layout()}},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 _2b=this.selModel.getCount();return String.format(this.ddText,_2b,_2b==1?"":"s")}});Ext.reg("grid",Ext.grid.GridPanel);Ext.grid.GridView=function(_1){Ext.apply(this,_1);this.addEvents("beforerowremoved","beforerowsinserted","beforerefresh","rowremoved","rowsinserted","rowupdated","refresh");Ext.grid.GridView.superclass.constructor.call(this)};Ext.extend(Ext.grid.GridView,Ext.util.Observable,{deferEmptyText:true,scrollOffset:19,autoFill:false,forceFit:false,sortClasses:["sort-asc","sort-desc"],sortAscText:"Sort Ascending",sortDescText:"Sort Descending",columnsText:"Columns",borderWidth:2,tdClass:"x-grid3-cell",hdCls:"x-grid3-hd",cellSelectorDepth:4,rowSelectorDepth:10,cellSelector:"td.x-grid3-cell",rowSelector:"div.x-grid3-row",initTemplates:function(){var ts=this.templates||{};if(!ts.master){ts.master=new Ext.Template('
    ','
    ','
    {header}
    ','
    {body}
    ',"
    ",'
     
    ','
     
    ',"
    ")}if(!ts.header){ts.header=new Ext.Template('','{cells}',"
    ")}if(!ts.hcell){ts.hcell=new Ext.Template('
    ',this.grid.enableHdMenu?'':"",'{value}',"
    ") }if(!ts.body){ts.body=new Ext.Template("{rows}")}if(!ts.row){ts.row=new Ext.Template('
    ',"{cells}",(this.enableRowBody?'':""),"
    {body}
    ")}if(!ts.cell){ts.cell=new Ext.Template('','
    {value}
    ',"")}for(var k in ts){var t=ts[k];if(t&&typeof t.compile=="function"&&!t.compiled){t.disableFormats=true;t.compile()}}this.templates=ts;this.colRe=new RegExp("x-grid3-td-([^\\s]+)","")},fly:function(el){if(!this._flyweight){this._flyweight=new Ext.Element.Flyweight(document.body)}this._flyweight.dom=el;return this._flyweight},getEditorParent:function(){return this.scroller.dom},initElements:function(){var E=Ext.Element;var el=this.grid.getGridEl().dom.firstChild;var cs=el.childNodes;this.el=new E(el);this.mainWrap=new E(cs[0]);this.mainHd=new E(this.mainWrap.dom.firstChild);if(this.grid.hideHeaders){this.mainHd.setDisplayed(false)}this.innerHd=this.mainHd.dom.firstChild;this.scroller=new E(this.mainWrap.dom.childNodes[1]);if(this.forceFit){this.scroller.setStyle("overflow-x","hidden")}this.mainBody=new E(this.scroller.dom.firstChild);this.focusEl=new E(this.scroller.dom.childNodes[1]);this.focusEl.swallowEvent("click",true);this.resizeMarker=new E(cs[1]);this.resizeProxy=new E(cs[2])},getRows:function(){return this.hasRows()?this.mainBody.dom.childNodes:[]},findCell:function(el){if(!el){return false}return this.fly(el).findParent(this.cellSelector,this.cellSelectorDepth)},findCellIndex:function(el,_b){var _c=this.findCell(el);if(_c&&(!_b||this.fly(_c).hasClass(_b))){return this.getCellIndex(_c)}return false},getCellIndex:function(el){if(el){var m=el.className.match(this.colRe);if(m&&m[1]){return this.cm.getIndexById(m[1])}}return false},findHeaderCell:function(el){var _10=this.findCell(el);return _10&&this.fly(_10).hasClass(this.hdCls)?_10:null},findHeaderIndex:function(el){return this.findCellIndex(el,this.hdCls)},findRow:function(el){if(!el){return false}return this.fly(el).findParent(this.rowSelector,this.rowSelectorDepth)},findRowIndex:function(el){var r=this.findRow(el);return r?r.rowIndex:false},getRow:function(row){return this.getRows()[row]},getCell:function(row,col){return this.getRow(row).getElementsByTagName("td")[col]},getHeaderCell:function(_18){return this.mainHd.dom.getElementsByTagName("td")[_18]},addRowClass:function(row,cls){var r=this.getRow(row);if(r){this.fly(r).addClass(cls)}},removeRowClass:function(row,cls){var r=this.getRow(row);if(r){this.fly(r).removeClass(cls)}},removeRow:function(row){Ext.removeNode(this.getRow(row));this.syncFocusEl(row)},removeRows:function(_20,_21){var bd=this.mainBody.dom;for(var _23=_20;_23<=_21;_23++){Ext.removeNode(bd.childNodes[_20])}this.syncFocusEl(_20)},getScrollState:function(){var sb=this.scroller.dom;return{left:sb.scrollLeft,top:sb.scrollTop}},restoreScroll:function(_25){var sb=this.scroller.dom;sb.scrollLeft=_25.left;sb.scrollTop=_25.top},scrollToTop:function(){this.scroller.dom.scrollTop=0;this.scroller.dom.scrollLeft=0},syncScroll:function(){this.syncHeaderScroll();var mb=this.scroller.dom;this.grid.fireEvent("bodyscroll",mb.scrollLeft,mb.scrollTop)},syncHeaderScroll:function(){var mb=this.scroller.dom;this.innerHd.scrollLeft=mb.scrollLeft;this.innerHd.scrollLeft=mb.scrollLeft},updateSortIcon:function(col,dir){var sc=this.sortClasses;var hds=this.mainHd.select("td").removeClass(sc);hds.item(col).addClass(sc[dir=="DESC"?1:0])},updateAllColumnWidths:function(){var tw=this.getTotalWidth();var _2e=this.cm.getColumnCount();var ws=[];for(var i=0;i<_2e;i++){ws[i]=this.getColumnWidth(i)}this.innerHd.firstChild.style.width=this.getOffsetWidth();this.innerHd.firstChild.firstChild.style.width=tw;this.mainBody.dom.style.width=tw;for(var i=0;i<_2e;i++){var hd=this.getHeaderCell(i);hd.style.width=ws[i]}var ns=this.getRows(),row,_34;for(var i=0,len=ns.length;i=this.ds.getCount()){return null}col=(col!==undefined?col:0);var _93=this.getRow(row),_94;if(!(_92===false&&col===0)){while(this.cm.isHidden(col)){col++}_94=this.getCell(row,col)}return{row:_93,cell:_94}},getResolvedXY:function(_95){if(!_95){return null}var s=this.scroller.dom,c=_95.cell,r=_95.row;return c?Ext.fly(c).getXY():[this.el.getX(),Ext.fly(r).getY()]},syncFocusEl:function(row,col,_9b){var xy=row;if(!Ext.isArray(xy)){row=Math.min(row,Math.max(0,this.getRows().length-1));xy=this.getResolvedXY(this.resolveCell(row,col,_9b))}this.focusEl.setXY(xy||this.scroller.getXY())},ensureVisible:function(row,col,_9f){var _a0=this.resolveCell(row,col,_9f);if(!_a0||!_a0.row){return}var _a1=_a0.row,_a2=_a0.cell;var c=this.scroller.dom;var _a4=0;var p=_a1,_a6=this.el.dom;while(p&&p!=_a6){_a4+=p.offsetTop;p=p.offsetParent}_a4-=this.mainHd.dom.offsetHeight;var _a7=_a4+_a1.offsetHeight;var ch=c.clientHeight;var _a6=parseInt(c.scrollTop,10);var _a9=_a6+ch;if(_a4<_a6){c.scrollTop=_a4}else{if(_a7>_a9){c.scrollTop=_a7-ch}}if(_9f!==false){var _aa=parseInt(_a2.offsetLeft,10);var _ab=_aa+_a2.offsetWidth;var _ac=parseInt(c.scrollLeft,10);var _ad=_ac+c.clientWidth;if(_aa<_ac){c.scrollLeft=_aa}else{if(_ab>_ad){c.scrollLeft=_ab-c.clientWidth}}}return this.getResolvedXY(_a0)},insertRows:function(dm,_af,_b0,_b1){if(!_b1&&_af===0&&_b0>=dm.getCount()-1){this.refresh()}else{if(!_b1){this.fireEvent("beforerowsinserted",this,_af,_b0)}var _b2=this.renderRows(_af,_b0);var _b3=this.getRow(_af);if(_b3){Ext.DomHelper.insertHtml("beforeBegin",_b3,_b2)}else{Ext.DomHelper.insertHtml("beforeEnd",this.mainBody.dom,_b2)}if(!_b1){this.fireEvent("rowsinserted",this,_af,_b0);this.processRows(_af)}}this.syncFocusEl(_af)},deleteRows:function(dm,_b5,_b6){if(dm.getRowCount()<1){this.refresh()}else{this.fireEvent("beforerowsdeleted",this,_b5,_b6);this.removeRows(_b5,_b6);this.processRows(_b5);this.fireEvent("rowsdeleted",this,_b5,_b6)}},getColumnStyle:function(col,_b8){var _b9=!_b8?(this.cm.config[col].css||""):"";_b9+="width:"+this.getColumnWidth(col)+";";if(this.cm.isHidden(col)){_b9+="display:none;"}var _ba=this.cm.config[col].align;if(_ba){_b9+="text-align:"+_ba+";"}return _b9},getColumnWidth:function(col){var w=this.cm.getColumnWidth(col);if(typeof w=="number"){return(Ext.isBorderBox?w:(w-this.borderWidth>0?w-this.borderWidth:0))+"px"}return w},getTotalWidth:function(){return this.cm.getTotalWidth()+"px"},fitColumns:function(_bd,_be,_bf){var cm=this.cm,_c1,_c2,i;var tw=cm.getTotalWidth(false);var aw=this.grid.getGridEl().getWidth(true)-this.scrollOffset;if(aw<20){return}var _c6=aw-tw;if(_c6===0){return false}var vc=cm.getColumnCount(true);var ac=vc-(typeof _bf=="number"?1:0);if(ac===0){ac=1;_bf=undefined}var _c9=cm.getColumnCount();var _ca=[];var _cb=0;var _cc=0;var w;for(i=0;i<_c9;i++){if(!cm.isHidden(i)&&!cm.isFixed(i)&&i!==_bf){w=cm.getColumnWidth(i);_ca.push(i);_cb=i;_ca.push(w);_cc+=w}}var _ce=(aw-cm.getTotalWidth())/_cc;while(_ca.length){w=_ca.pop();i=_ca.pop();cm.setColumnWidth(i,Math.max(this.grid.minColumnWidth,Math.floor(w+w*_ce)),true)}if((tw=cm.getTotalWidth(false))>aw){var _cf=ac!=vc?_bf:_cb;cm.setColumnWidth(_cf,Math.max(1,cm.getColumnWidth(_cf)-(tw-aw)),true)}if(_bd!==true){this.updateAllColumnWidths()}return true},autoExpand:function(_d0){var g=this.grid,cm=this.cm;if(!this.userResized&&g.autoExpandColumn){var tw=cm.getTotalWidth(false);var aw=this.grid.getGridEl().getWidth(true)-this.scrollOffset;if(tw!=aw){var ci=cm.getIndexById(g.autoExpandColumn);var _d6=cm.getColumnWidth(ci);var cw=Math.min(Math.max(((aw-tw)+_d6),g.autoExpandMin),g.autoExpandMax);if(cw!=_d6){cm.setColumnWidth(ci,cw,true);if(_d0!==true){this.updateColumnWidth(ci,cw)}}}}},getColumnData:function(){var cs=[],cm=this.cm,_da=cm.getColumnCount();for(var i=0;i<_da;i++){var _dc=cm.getDataIndex(i);cs[i]={name:(typeof _dc=="undefined"?this.ds.fields.get(i).name:_dc),renderer:cm.getRenderer(i),id:cm.getColumnId(i),style:this.getColumnStyle(i)}}return cs},renderRows:function(_dd,_de){var g=this.grid,cm=g.colModel,ds=g.store,_e2=g.stripeRows;var _e3=cm.getColumnCount();if(ds.getCount()<1){return""}var cs=this.getColumnData();_dd=_dd||0;_de=typeof _de=="undefined"?ds.getCount()-1:_de;var rs=ds.getRange(_dd,_de);return this.doRender(cs,rs,ds,_dd,_e3,_e2)},renderBody:function(){var _e6=this.renderRows()||" ";return this.templates.body.apply({rows:_e6})},refreshRow:function(_e7){var ds=this.ds,_e9;if(typeof _e7=="number"){_e9=_e7;_e7=ds.getAt(_e9)}else{_e9=ds.indexOf(_e7)}var cls=[];this.insertRows(ds,_e9,_e9,true);this.getRow(_e9).rowIndex=_e9;this.onRemove(ds,_e7,_e9+1,true);this.fireEvent("rowupdated",this,_e9,_e7)},refresh:function(_eb){this.fireEvent("beforerefresh",this);this.grid.stopEditing(true);var _ec=this.renderBody();this.mainBody.update(_ec);if(_eb===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('
    '+this.emptyText+"
    ") }},updateHeaderSortState:function(){var _ed=this.ds.getSortState();if(!_ed){return}if(!this.sortState||(this.sortState.field!=_ed.field||this.sortState.direction!=_ed.direction)){this.grid.fireEvent("sortchange",this.grid,_ed)}this.sortState=_ed;var _ee=this.cm.findColumnIndex(_ed.field);if(_ee!=-1){var _ef=_ed.direction;this.updateSortIcon(_ee,_ef)}},destroy:function(){if(this.colMenu){Ext.menu.MenuMgr.unregister(this.colMenu);this.colMenu.destroy();delete this.colMenu}if(this.hmenu){Ext.menu.MenuMgr.unregister(this.hmenu);this.hmenu.destroy();delete this.hmenu}if(this.grid.enableColumnMove){var dds=Ext.dd.DDM.ids["gridHeader"+this.grid.getGridEl().id];if(dds){for(var dd in dds){if(!dds[dd].config.isTarget&&dds[dd].dragElId){var _f2=dds[dd].dragElId;dds[dd].unreg();Ext.get(_f2).remove()}else{if(dds[dd].config.isTarget){dds[dd].proxyTop.remove();dds[dd].proxyBottom.remove();dds[dd].unreg()}}if(Ext.dd.DDM.locationCache[dd]){delete Ext.dd.DDM.locationCache[dd]}}delete Ext.dd.DDM.ids["gridHeader"+this.grid.getGridEl().id]}}if(this.dragZone){this.dragZone.unreg()}Ext.fly(this.innerHd).removeAllListeners();Ext.removeNode(this.innerHd);Ext.destroy(this.resizeMarker,this.resizeProxy,this.focusEl,this.mainBody,this.scroller,this.mainHd,this.mainWrap,this.dragZone,this.splitZone,this.columnDrag,this.columnDrop);this.initData(null,null);Ext.EventManager.removeResizeListener(this.onWindowResize,this);this.purgeListeners()},onDenyColumnHide:function(){},render:function(){if(this.autoFill){var ct=this.grid.ownerCt;if(ct&&ct.getLayout()){ct.on("afterlayout",function(){this.fitColumns(true,true);this.updateHeaders()},this,{single:true})}else{this.fitColumns(true,true)}}else{if(this.forceFit){this.fitColumns(true,false)}else{if(this.grid.autoExpandColumn){this.autoExpand(true)}}}this.renderUI()},initData:function(ds,cm){if(this.ds){this.ds.un("load",this.onLoad,this);this.ds.un("datachanged",this.onDataChange,this);this.ds.un("add",this.onAdd,this);this.ds.un("remove",this.onRemove,this);this.ds.un("update",this.onUpdate,this);this.ds.un("clear",this.onClear,this)}if(ds){ds.on("load",this.onLoad,this);ds.on("datachanged",this.onDataChange,this);ds.on("add",this.onAdd,this);ds.on("remove",this.onRemove,this);ds.on("update",this.onUpdate,this);ds.on("clear",this.onClear,this)}this.ds=ds;if(this.cm){this.cm.un("configchange",this.onColConfigChange,this);this.cm.un("widthchange",this.onColWidthChange,this);this.cm.un("headerchange",this.onHeaderChange,this);this.cm.un("hiddenchange",this.onHiddenChange,this);this.cm.un("columnmoved",this.onColumnMove,this);this.cm.un("columnlockchange",this.onColumnLock,this)}if(cm){delete this.lastViewWidth;cm.on("configchange",this.onColConfigChange,this);cm.on("widthchange",this.onColWidthChange,this);cm.on("headerchange",this.onHeaderChange,this);cm.on("hiddenchange",this.onHiddenChange,this);cm.on("columnmoved",this.onColumnMove,this);cm.on("columnlockchange",this.onColumnLock,this)}this.cm=cm},onDataChange:function(){this.refresh();this.updateHeaderSortState();this.syncFocusEl(0)},onClear:function(){this.refresh();this.syncFocusEl(0)},onUpdate:function(ds,_f7){this.refreshRow(_f7)},onAdd:function(ds,_f9,_fa){this.insertRows(ds,_fa,_fa+(_f9.length-1))},onRemove:function(ds,_fc,_fd,_fe){if(_fe!==true){this.fireEvent("beforerowremoved",this,_fd,_fc)}this.removeRow(_fd);if(_fe!==true){this.processRows(_fd);this.applyEmptyText();this.fireEvent("rowremoved",this,_fd,_fc)}},onLoad:function(){this.scrollToTop()},onColWidthChange:function(cm,col,_101){this.updateColumnWidth(col,_101)},onHeaderChange:function(cm,col,text){this.updateHeaders()},onHiddenChange:function(cm,col,_107){this.updateColumnHidden(col,_107)},onColumnMove:function(cm,_109,_10a){this.indexMap=null;var s=this.getScrollState();this.refresh(true);this.restoreScroll(s);this.afterMove(_10a)},onColConfigChange:function(){delete this.lastViewWidth;this.indexMap=null;this.refresh(true)},initUI:function(grid){grid.on("headerclick",this.onHeaderClick,this)},initEvents:function(){},onHeaderClick:function(g,_10e){if(this.headersDisabled||!this.cm.isSortable(_10e)){return}g.stopEditing(true);g.store.sort(this.cm.getDataIndex(_10e))},onRowOver:function(e,t){var row;if((row=this.findRowIndex(t))!==false){this.addRowClass(row,"x-grid3-row-over")}},onRowOut:function(e,t){var row;if((row=this.findRowIndex(t))!==false&&!e.within(this.getRow(row),true)){this.removeRowClass(row,"x-grid3-row-over")}},handleWheel:function(e){e.stopPropagation()},onRowSelect:function(row){this.addRowClass(row,"x-grid3-row-selected")},onRowDeselect:function(row){this.removeRowClass(row,"x-grid3-row-selected")},onCellSelect:function(row,col){var cell=this.getCell(row,col);if(cell){this.fly(cell).addClass("x-grid3-cell-selected")}},onCellDeselect:function(row,col){var cell=this.getCell(row,col);if(cell){this.fly(cell).removeClass("x-grid3-cell-selected")}},onColumnSplitterMoved:function(i,w){this.userResized=true;var cm=this.grid.colModel;cm.setColumnWidth(i,w,true);if(this.forceFit){this.fitColumns(true,false,i);this.updateAllColumnWidths()}else{this.updateColumnWidth(i,w);this.syncHeaderScroll()}this.grid.fireEvent("columnresize",i,w)},handleHdMenuClick:function(item){var _122=this.hdCtxIndex;var cm=this.cm,ds=this.ds;switch(item.id){case"asc":ds.sort(cm.getDataIndex(_122),"ASC");break;case"desc":ds.sort(cm.getDataIndex(_122),"DESC");break;default:_122=cm.getIndexById(item.id.substr(4));if(_122!=-1){if(item.checked&&cm.getColumnsBy(this.isHideableColumn,this).length<=1){this.onDenyColumnHide();return false}cm.setHidden(_122,item.checked)}}return true},isHideableColumn:function(c){return !c.hidden&&!c.fixed},beforeColMenuShow:function(){var cm=this.cm,_127=cm.getColumnCount();this.colMenu.removeAll();for(var i=0;i<_127;i++){if(cm.config[i].fixed!==true&&cm.config[i].hideable!==false){this.colMenu.add(new Ext.menu.CheckItem({id:"col-"+cm.getColumnId(i),text:cm.getColumnHeader(i),checked:!cm.isHidden(i),hideOnClick:false,disabled:cm.config[i].hideable===false}))}}},handleHdDown:function(e,t){if(Ext.fly(t).hasClass("x-grid3-hd-btn")){e.stopEvent();var hd=this.findHeaderCell(t);Ext.fly(hd).addClass("x-grid3-hd-menu-open");var _12c=this.getCellIndex(hd);this.hdCtxIndex=_12c;var ms=this.hmenu.items,cm=this.cm;ms.get("asc").setDisabled(!cm.isSortable(_12c));ms.get("desc").setDisabled(!cm.isSortable(_12c));this.hmenu.on("hide",function(){Ext.fly(hd).removeClass("x-grid3-hd-menu-open")},this,{single:true});this.hmenu.show(t,"tl-bl?")}},handleHdOver:function(e,t){var hd=this.findHeaderCell(t);if(hd&&!this.headersDisabled){this.activeHd=hd;this.activeHdIndex=this.getCellIndex(hd);var fly=this.fly(hd);this.activeHdRegion=fly.getRegion();if(!this.cm.isMenuDisabled(this.activeHdIndex)){fly.addClass("x-grid3-hd-over");this.activeHdBtn=fly.child(".x-grid3-hd-btn");if(this.activeHdBtn){this.activeHdBtn.dom.style.height=(hd.firstChild.offsetHeight-1)+"px"}}}},handleHdMove:function(e,t){if(this.activeHd&&!this.headersDisabled){var hw=this.splitHandleWidth||5;var r=this.activeHdRegion;var x=e.getPageX();var ss=this.activeHd.style;if(x-r.left<=hw&&this.cm.isResizable(this.activeHdIndex-1)){ss.cursor=Ext.isAir?"move":Ext.isSafari?"e-resize":"col-resize"}else{if(r.right-x<=(!this.activeHdBtn?hw:2)&&this.cm.isResizable(this.activeHdIndex)){ss.cursor=Ext.isAir?"move":Ext.isSafari?"w-resize":"col-resize"}else{ss.cursor=""}}}},handleHdOut:function(e,t){var hd=this.findHeaderCell(t);if(hd&&(!Ext.isIE||!e.within(hd,true))){this.activeHd=null;this.fly(hd).removeClass("x-grid3-hd-over");hd.style.cursor=""}},hasRows:function(){var fc=this.mainBody.dom.firstChild;return fc&&fc.nodeType==1&&fc.className!="x-grid-empty"},bind:function(d,c){this.initData(d,c)}});Ext.grid.GridView.SplitDragZone=function(grid,hd){this.grid=grid;this.view=grid.getView();this.marker=this.view.resizeMarker;this.proxy=this.view.resizeProxy;Ext.grid.GridView.SplitDragZone.superclass.constructor.call(this,hd,"gridSplitters"+this.grid.getGridEl().id,{dragElId:Ext.id(this.proxy.dom),resizeFrame:false}); this.scroll=false;this.hw=this.view.splitHandleWidth||5};Ext.extend(Ext.grid.GridView.SplitDragZone,Ext.dd.DDProxy,{b4StartDrag:function(x,y){this.view.headersDisabled=true;var h=this.view.mainWrap.getHeight();this.marker.setHeight(h);this.marker.show();this.marker.alignTo(this.view.getHeaderCell(this.cellIndex),"tl-tl",[-2,0]);this.proxy.setHeight(h);var w=this.cm.getColumnWidth(this.cellIndex);var minw=Math.max(w-this.grid.minColumnWidth,0);this.resetConstraints();this.setXConstraint(minw,1000);this.setYConstraint(0,0);this.minX=x-minw;this.maxX=x+1000;this.startPos=x;Ext.dd.DDProxy.prototype.b4StartDrag.call(this,x,y)},handleMouseDown:function(e){var t=this.view.findHeaderCell(e.getTarget());if(t){var xy=this.view.fly(t).getXY(),x=xy[0],y=xy[1];var exy=e.getXY(),ex=exy[0],ey=exy[1];var w=t.offsetWidth,_14f=false;if((ex-x)<=this.hw){_14f=-1}else{if((x+w)-ex<=this.hw){_14f=0}}if(_14f!==false){this.cm=this.grid.colModel;var ci=this.view.getCellIndex(t);if(_14f==-1){if(ci+_14f<0){return}while(this.cm.isHidden(ci+_14f)){--_14f;if(ci+_14f<0){return}}}this.cellIndex=ci+_14f;this.split=t.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(e)}}}},endDrag:function(e){this.marker.hide();var v=this.view;var endX=Math.max(this.minX,e.getPageX());var diff=endX-this.startPos;v.onColumnSplitterMoved(this.cellIndex,this.cm.getColumnWidth(this.cellIndex)+diff);setTimeout(function(){v.headersDisabled=false},50)},autoOffset:function(){this.setDelta(0,0)}});Ext.grid.GroupingView=Ext.extend(Ext.grid.GridView,{hideGroupedColumn:false,showGroupName:true,startCollapsed:false,enableGrouping:true,enableGroupingMenu:true,enableNoGroups:true,emptyGroupText:"(None)",ignoreAdd:false,groupTextTpl:"{text}",gidSeed:1000,initTemplates:function(){Ext.grid.GroupingView.superclass.initTemplates.call(this);this.state={};var sm=this.grid.getSelectionModel();sm.on(sm.selectRow?"beforerowselect":"beforecellselect",this.onBeforeRowSelect,this);if(!this.startGroup){this.startGroup=new Ext.XTemplate('
    ','
    ',this.groupTextTpl,"
    ",'
    ')}this.startGroup.compile();this.endGroup="
    "},findGroup:function(el){return Ext.fly(el).up(".x-grid-group",this.mainBody.dom)},getGroups:function(){return this.hasRows()?this.mainBody.dom.childNodes:[]},onAdd:function(){if(this.enableGrouping&&!this.ignoreAdd){var ss=this.getScrollState();this.refresh();this.restoreScroll(ss)}else{if(!this.enableGrouping){Ext.grid.GroupingView.superclass.onAdd.apply(this,arguments)}}},onRemove:function(ds,_5,_6,_7){Ext.grid.GroupingView.superclass.onRemove.apply(this,arguments);var g=document.getElementById(_5._groupId);if(g&&g.childNodes[1].childNodes.length<1){Ext.removeNode(g)}this.applyEmptyText()},refreshRow:function(_9){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 _a=this.getGroupField();var g=this.hmenu.items.get("groupBy");if(g){g.setDisabled(this.cm.config[this.hdCtxIndex].groupable===false)}var s=this.hmenu.items.get("showGroups");if(s){s.setDisabled(!_a&&this.cm.config[this.hdCtxIndex].groupable===false);s.setChecked(!!_a,true)}},renderUI:function(){Ext.grid.GroupingView.superclass.renderUI.call(this);this.mainBody.on("mousedown",this.interceptMouse,this);if(this.enableGroupingMenu&&this.hmenu){this.hmenu.add("-",{id:"groupBy",text:this.groupByText,handler:this.onGroupByClick,scope:this,iconCls:"x-group-by-icon"});if(this.enableNoGroups){this.hmenu.add({id:"showGroups",text:this.showGroupsText,checked:true,checkHandler:this.onShowGroupsClick,scope:this})}this.hmenu.on("beforeshow",this.beforeMenuShow,this)}},onGroupByClick:function(){this.grid.store.groupBy(this.cm.getDataIndex(this.hdCtxIndex));this.beforeMenuShow()},onShowGroupsClick:function(mi,_e){if(_e){this.onGroupByClick()}else{this.grid.store.clearGrouping()}},toggleGroup:function(_f,_10){this.grid.stopEditing(true);_f=Ext.getDom(_f);var gel=Ext.fly(_f);_10=_10!==undefined?_10:gel.hasClass("x-grid-group-collapsed");this.state[gel.dom.id]=_10;gel[_10?"removeClass":"addClass"]("x-grid-group-collapsed")},toggleAllGroups:function(_12){var _13=this.getGroups();for(var i=0,len=_13.length;i=0&&this.config[_42].resizable!==false&&this.config[_42].fixed!==true},setHidden:function(_43,_44){var c=this.config[_43];if(c.hidden!==_44){c.hidden=_44;this.totalWidth=null;this.fireEvent("hiddenchange",this,_43,_44)}},setEditor:function(col,_47){this.config[col].editor=_47}});Ext.grid.ColumnModel.defaultRenderer=function(_48){if(typeof _48=="string"&&_48.length<1){return" "}return _48};Ext.grid.DefaultColumnModel=Ext.grid.ColumnModel;Ext.grid.AbstractSelectionModel=function(){this.locked=false;Ext.grid.AbstractSelectionModel.superclass.constructor.call(this)};Ext.extend(Ext.grid.AbstractSelectionModel,Ext.util.Observable,{init:function(_1){this.grid=_1;this.initEvents()},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked}});Ext.grid.RowSelectionModel=function(_1){Ext.apply(this,_1);this.selections=new Ext.util.MixedCollection(false,function(o){return o.id});this.last=false;this.lastActive=false;this.addEvents("selectionchange","beforerowselect","rowselect","rowdeselect");Ext.grid.RowSelectionModel.superclass.constructor.call(this)};Ext.extend(Ext.grid.RowSelectionModel,Ext.grid.AbstractSelectionModel,{singleSelect:false,initEvents:function(){if(!this.grid.enableDragDrop&&!this.grid.enableDrag){this.grid.on("rowmousedown",this.handleMouseDown,this)}else{this.grid.on("rowclick",function(_3,_4,e){if(e.button===0&&!e.shiftKey&&!e.ctrlKey){this.selectRow(_4,false);_3.view.focusRow(_4)}},this)}this.rowNav=new Ext.KeyNav(this.grid.getGridEl(),{up:function(e){if(!e.shiftKey||this.singleSelect){this.selectPrevious(false)}else{if(this.last!==false&&this.lastActive!==false){var _7=this.last;this.selectRange(this.last,this.lastActive-1);this.grid.getView().focusRow(this.lastActive);if(_7!==false){this.last=_7}}else{this.selectFirstRow()}}},down:function(e){if(!e.shiftKey||this.singleSelect){this.selectNext(false)}else{if(this.last!==false&&this.lastActive!==false){var _9=this.last;this.selectRange(this.last,this.lastActive+1);this.grid.getView().focusRow(this.lastActive);if(_9!==false){this.last=_9}}else{this.selectFirstRow()}}},scope:this});var _a=this.grid.view;_a.on("refresh",this.onRefresh,this);_a.on("rowupdated",this.onRowUpdated,this);_a.on("rowremoved",this.onRemove,this)},onRefresh:function(){var ds=this.grid.store,_c;var s=this.getSelections();this.clearSelections(true);for(var i=0,_f=s.length;i<_f;i++){var r=s[i];if((_c=ds.indexOfId(r.id))!=-1){this.selectRow(_c,true)}}if(s.length!=this.selections.getCount()){this.fireEvent("selectionchange",this)}},onRemove:function(v,_12,r){if(this.selections.remove(r)!==false){this.fireEvent("selectionchange",this)}},onRowUpdated:function(v,_15,r){if(this.isSelected(r)){v.onRowSelect(_15)}},selectRecords:function(_17,_18){if(!_18){this.clearSelections()}var ds=this.grid.store;for(var i=0,len=_17.length;i0},isSelected:function(_2a){var r=typeof _2a=="number"?this.grid.store.getAt(_2a):_2a;return(r&&this.selections.key(r.id)?true:false)},isIdSelected:function(id){return(this.selections.key(id)?true:false)},handleMouseDown:function(g,_2e,e){if(e.button!==0||this.isLocked()){return}var _30=this.grid.getView();if(e.shiftKey&&!this.singleSelect&&this.last!==false){var _31=this.last;this.selectRange(_31,_2e,e.ctrlKey);this.last=_31;_30.focusRow(_2e)}else{var _32=this.isSelected(_2e);if(e.ctrlKey&&_32){this.deselectRow(_2e)}else{if(!_32||this.getCount()>1){this.selectRow(_2e,e.ctrlKey||e.shiftKey);_30.focusRow(_2e)}}}},selectRows:function(_33,_34){if(!_34){this.clearSelections()}for(var i=0,len=_33.length;i=_38;i--){this.selectRow(i,true)}}},deselectRange:function(_3b,_3c,_3d){if(this.isLocked()){return}for(var i=_3b;i<=_3c;i++){this.deselectRow(i,_3d)}},selectRow:function(_3f,_40,_41){if(this.isLocked()||(_3f<0||_3f>=this.grid.store.getCount())||this.isSelected(_3f)){return}var r=this.grid.store.getAt(_3f);if(r&&this.fireEvent("beforerowselect",this,_3f,_40,r)!==false){if(!_40||this.singleSelect){this.clearSelections()}this.selections.add(r);this.last=this.lastActive=_3f;if(!_41){this.grid.getView().onRowSelect(_3f)}this.fireEvent("rowselect",this,_3f,r);this.fireEvent("selectionchange",this)}},deselectRow:function(_43,_44){if(this.isLocked()){return}if(this.last==_43){this.last=false}if(this.lastActive==_43){this.lastActive=false}var r=this.grid.store.getAt(_43);if(r){this.selections.remove(r);if(!_44){this.grid.getView().onRowDeselect(_43)}this.fireEvent("rowdeselect",this,_43,r);this.fireEvent("selectionchange",this)}},restoreLast:function(){if(this._last){this.last=this._last}},acceptsNav:function(row,col,cm){return !cm.isHidden(col)&&cm.isCellEditable(col,row)},onEditorKey:function(_49,e){var k=e.getKey(),_4c,g=this.grid,ed=g.activeEditor;var _4f=e.shiftKey;if(k==e.TAB){e.stopEvent();ed.completeEdit();if(_4f){_4c=g.walkCells(ed.row,ed.col-1,-1,this.acceptsNav,this)}else{_4c=g.walkCells(ed.row,ed.col+1,1,this.acceptsNav,this)}}else{if(k==e.ENTER){e.stopEvent();ed.completeEdit();if(this.moveEditorOnEnter!==false){if(_4f){_4c=g.walkCells(ed.row-1,ed.col,-1,this.acceptsNav,this)}else{_4c=g.walkCells(ed.row+1,ed.col,1,this.acceptsNav,this)}}}else{if(k==e.ESC){ed.cancelEdit()}}}if(_4c){g.startEditing(_4c[0],_4c[1])}}});Ext.grid.CellSelectionModel=function(_1){Ext.apply(this,_1);this.selection=null;this.addEvents("beforecellselect","cellselect","selectionchange");Ext.grid.CellSelectionModel.superclass.constructor.call(this)};Ext.extend(Ext.grid.CellSelectionModel,Ext.grid.AbstractSelectionModel,{initEvents:function(){this.grid.on("cellmousedown",this.handleMouseDown,this);this.grid.getGridEl().on(Ext.isIE||Ext.isSafari3?"keydown":"keypress",this.handleKeyDown,this);var _2=this.grid.view;_2.on("refresh",this.onViewChange,this);_2.on("rowupdated",this.onRowUpdated,this);_2.on("beforerowremoved",this.clearSelections,this);_2.on("beforerowsinserted",this.clearSelections,this);if(this.grid.isEditor){this.grid.on("beforeedit",this.beforeEdit,this)}},beforeEdit:function(e){this.select(e.row,e.column,false,true,e.record)},onRowUpdated:function(v,_5,r){if(this.selection&&this.selection.record==r){v.onCellSelect(_5,this.selection.cell[1])}},onViewChange:function(){this.clearSelections(true)},getSelectedCell:function(){return this.selection?this.selection.cell:null},clearSelections:function(_7){var s=this.selection;if(s){if(_7!==true){this.grid.view.onCellDeselect(s.cell[0],s.cell[1])}this.selection=null;this.fireEvent("selectionchange",this,null)}},hasSelection:function(){return this.selection?true:false},handleMouseDown:function(g,_a,_b,e){if(e.button!==0||this.isLocked()){return}this.select(_a,_b)},select:function(_d,_e,_f,_10,r){if(this.fireEvent("beforecellselect",this,_d,_e)!==false){this.clearSelections();r=r||this.grid.store.getAt(_d);this.selection={record:r,cell:[_d,_e]};if(!_f){var v=this.grid.getView();v.onCellSelect(_d,_e);if(_10!==true){v.focusCell(_d,_e)}}this.fireEvent("cellselect",this,_d,_e);this.fireEvent("selectionchange",this,this.selection)}},isSelectable:function(_13,_14,cm){return !cm.isHidden(_14)},handleKeyDown:function(e){if(!e.isNavKeyPress()){return}var g=this.grid,s=this.selection;if(!s){e.stopEvent();var _19=g.walkCells(0,0,1,this.isSelectable,this);if(_19){this.select(_19[0],_19[1])}return}var sm=this;var _1b=function(row,col,_1e){return g.walkCells(row,col,_1e,sm.isSelectable,sm)};var k=e.getKey(),r=s.cell[0],c=s.cell[1];var _22;switch(k){case e.TAB:if(e.shiftKey){_22=_1b(r,c-1,-1)}else{_22=_1b(r,c+1,1)}break;case e.DOWN:_22=_1b(r+1,c,1);break;case e.UP:_22=_1b(r-1,c,-1);break;case e.RIGHT:_22=_1b(r,c+1,1);break;case e.LEFT:_22=_1b(r,c-1,-1);break;case e.ENTER:if(g.isEditor&&!g.editing){g.startEditing(r,c);e.stopEvent();return}break}if(_22){this.select(_22[0],_22[1]);e.stopEvent()}},acceptsNav:function(row,col,cm){return !cm.isHidden(col)&&cm.isCellEditable(col,row)},onEditorKey:function(_26,e){var k=e.getKey(),_29,g=this.grid,ed=g.activeEditor;if(k==e.TAB){if(e.shiftKey){_29=g.walkCells(ed.row,ed.col-1,-1,this.acceptsNav,this)}else{_29=g.walkCells(ed.row,ed.col+1,1,this.acceptsNav,this)}e.stopEvent()}else{if(k==e.ENTER){ed.completeEdit();e.stopEvent()}else{if(k==e.ESC){e.stopEvent();ed.cancelEdit()}}}if(_29){g.startEditing(_29[0],_29[1])}}});Ext.grid.EditorGridPanel=Ext.extend(Ext.grid.GridPanel,{clicksToEdit:2,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.on("bodyscroll",this.stopEditing,this,[true]);this.on("columnresize",this.stopEditing,this,[true]);if(this.clicksToEdit==1){this.on("cellclick",this.onCellDblClick,this)}else{if(this.clicksToEdit=="auto"&&this.view.mainBody){this.view.mainBody.on("mousedown",this.onAutoEditClick,this)}this.on("celldblclick",this.onCellDblClick,this)}},onCellDblClick:function(g,_2,_3){this.startEditing(_2,_3)},onAutoEditClick:function(e,t){if(e.button!==0){return}var _6=this.view.findRowIndex(t);var _7=this.view.findCellIndex(t);if(_6!==false&&_7!==false){this.stopEditing();if(this.selModel.getSelectedCell){var sc=this.selModel.getSelectedCell();if(sc&&sc.cell[0]===_6&&sc.cell[1]===_7){this.startEditing(_6,_7)}}else{if(this.selModel.isSelected(_6)){this.startEditing(_6,_7)}}}},onEditComplete:function(ed,_a,_b){this.editing=false;this.activeEditor=null;ed.un("specialkey",this.selModel.onEditorKey,this.selModel);var r=ed.record;var _d=this.colModel.getDataIndex(ed.col);_a=this.postEditValue(_a,_b,r,_d);if(String(_a)!==String(_b)){var e={grid:this,record:r,field:_d,originalValue:_b,value:_a,row:ed.row,column:ed.col,cancel:false};if(this.fireEvent("validateedit",e)!==false&&!e.cancel){r.set(_d,e.value);delete e.cancel;this.fireEvent("afteredit",e)}}this.view.focusCell(ed.row,ed.col)},startEditing:function(_f,col){this.stopEditing();if(this.colModel.isCellEditable(col,_f)){this.view.ensureVisible(_f,col,true);var r=this.store.getAt(_f);var _12=this.colModel.getDataIndex(col);var e={grid:this,record:r,field:_12,value:r.data[_12],row:_f,column:col,cancel:false};if(this.fireEvent("beforeedit",e)!==false&&!e.cancel){this.editing=true;var ed=this.colModel.getCellEditor(col,_f);if(!ed.rendered){ed.render(this.view.getEditorParent(ed))}(function(){ed.row=_f;ed.col=col;ed.record=r;ed.on("complete",this.onEditComplete,this,{single:true});ed.on("specialkey",this.selModel.onEditorKey,this.selModel);this.activeEditor=ed;var v=this.preEditValue(r,_12);ed.startEdit(this.view.getCell(_f,col).firstChild,v===undefined?"":v)}).defer(50,this)}}},preEditValue:function(r,_17){var _18=r.data[_17];return this.autoEncode&&typeof _18=="string"?Ext.util.Format.htmlDecode(_18):_18},postEditValue:function(_19,_1a,r,_1c){return this.autoEncode&&typeof _19=="string"?Ext.util.Format.htmlEncode(_19):_19},stopEditing:function(_1d){if(this.activeEditor){this.activeEditor[_1d===true?"cancelEdit":"completeEdit"]()}this.activeEditor=null},onDestroy:function(){if(this.rendered){var _1e=this.colModel.config;for(var i=0,len=_1e.length;i ',width:20,sortable:false,menuDisabled:true,fixed:true,dataIndex:"",id:"checker",initEvents:function(){Ext.grid.CheckboxSelectionModel.superclass.initEvents.call(this);this.grid.on("render",function(){var _1=this.grid.getView();_1.mainBody.on("mousedown",this.onMouseDown,this);Ext.fly(_1.innerHd).on("mousedown",this.onHdMouseDown,this)},this)},onMouseDown:function(e,t){if(e.button===0&&t.className=="x-grid3-row-checker"){e.stopEvent();var _4=e.getTarget(".x-grid3-row");if(_4){var _5=_4.rowIndex;if(this.isSelected(_5)){this.deselectRow(_5)}else{this.selectRow(_5,true)}}}},onHdMouseDown:function(e,t){if(t.className=="x-grid3-hd-checker"){e.stopEvent();var hd=Ext.fly(t.parentNode);var _9=hd.hasClass("x-grid3-hd-checker-on");if(_9){hd.removeClass("x-grid3-hd-checker-on");this.clearSelections()}else{hd.addClass("x-grid3-hd-checker-on");this.selectAll()}}},renderer:function(v,p,_c){return'
     
    '}});Ext.LoadMask=function(el,_2){this.el=Ext.get(el);Ext.apply(this,_2);if(this.store){this.store.on("beforeload",this.onBeforeLoad,this);this.store.on("load",this.onLoad,this);this.store.on("loadexception",this.onLoad,this);this.removeMask=Ext.value(this.removeMask,false)}else{var um=this.el.getUpdater();um.showLoadIndicator=false;um.on("beforeupdate",this.onBeforeLoad,this);um.on("update",this.onLoad,this);um.on("failure",this.onLoad,this);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("loadexception",this.onLoad,this)}else{var um=this.el.getUpdater();um.un("beforeupdate",this.onBeforeLoad,this);um.un("update",this.onLoad,this);um.un("failure",this.onLoad,this)}}};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(ct,_2){Ext.ProgressBar.superclass.onRender.call(this,ct,_2);var _3=new Ext.Template('
    ','
    ','
    ','
    ',"
     
    ","
    ","
    ",'
    ',"
     
    ","
    ","
    ","
    ");if(_2){this.el=_3.insertBefore(_2,{cls:this.baseCls},true)}else{this.el=_3.append(ct,{cls:this.baseCls},true)}if(this.id){this.el.dom.id=this.id}var _4=this.el.dom.firstChild;this.progressBar=Ext.get(_4.firstChild);if(this.textEl){this.textEl=Ext.get(this.textEl); delete this.textTopEl}else{this.textTopEl=Ext.get(this.progressBar.dom.firstChild);var _5=Ext.get(_4.childNodes[1]);this.textTopEl.setStyle("z-index",99).addClass("x-hidden");this.textEl=new Ext.CompositeElement([this.textTopEl.dom.firstChild,_5.dom.firstChild]);this.textEl.setWidth(_4.offsetWidth)}this.progressBar.setHeight(_4.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(_6,_7,_8){this.value=_6||0;if(_7){this.updateText(_7)}if(this.rendered){var w=Math.floor(_6*this.el.dom.firstChild.offsetWidth);this.progressBar.setWidth(w,_8===true||(_8!==false&&this.animate));if(this.textTopEl){this.textTopEl.removeClass("x-hidden").setWidth(w)}}this.fireEvent("update",this,_6,_7);return this},wait:function(o){if(!this.waitTimer){var _b=this;o=o||{};this.updateText(o.text);this.waitTimer=Ext.TaskMgr.start({run:function(i){var _d=o.increment||10;this.updateProgress(((((i+_d)%_d)+1)*(100/_d))*0.01,null,o.animate)},interval:o.interval||1000,duration:o.duration,onStop:function(){if(o.fn){o.fn.apply(o.scope||this)}this.reset()},scope:_b})}return this},isWaiting:function(){return this.waitTimer!=null},updateText:function(_e){this.text=_e||" ";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(w,h){Ext.ProgressBar.superclass.setSize.call(this,w,h);if(this.textTopEl){var _11=this.el.dom.firstChild;this.textEl.setSize(_11.offsetWidth,_11.offsetHeight)}this.syncProgressBar();return this},reset:function(_12){this.updateProgress(0);if(this.textTopEl){this.textTopEl.addClass("x-hidden")}if(this.waitTimer){this.waitTimer.onStop=null;Ext.TaskMgr.stop(this.waitTimer);this.waitTimer=null}if(_12===true){this.hide()}return this}});Ext.reg("progress",Ext.ProgressBar);Ext.Slider=Ext.extend(Ext.BoxComponent,{vertical:false,minValue:0,maxValue:100,keyIncrement:1,increment:0,clickRange:[5,15],clickToChange:true,animate:true,dragging:false,initComponent:function(){if(this.value===undefined){this.value=this.minValue}Ext.Slider.superclass.initComponent.call(this);this.keyIncrement=Math.max(this.increment,this.keyIncrement);this.addEvents("beforechange","change","changecomplete","dragstart","drag","dragend");if(this.vertical){Ext.apply(this,Ext.Slider.Vertical)}},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:[{cls:"x-slider-thumb"},{tag:"a",cls:"x-slider-focus",href:"#",tabIndex:"-1",hidefocus:"on"}]}}};Ext.Slider.superclass.onRender.apply(this,arguments);this.endEl=this.el.first();this.innerEl=this.endEl.first();this.thumb=this.innerEl.first();this.halfThumb=(this.vertical?this.thumb.getHeight():this.thumb.getWidth())/2;this.focusEl=this.thumb.next();this.initEvents()},initEvents:function(){this.thumb.addClassOnOver("x-slider-thumb-over");this.mon(this.el,"mousedown",this.onMouseDown,this);this.mon(this.el,"keydown",this.onKeyDown,this);this.focusEl.swallowEvent("click",true);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(this.thumb);this.on("beforedestroy",this.tracker.destroy,this.tracker)},onMouseDown:function(e){if(this.disabled){return}if(this.clickToChange&&e.target!=this.thumb.dom){var _2=this.innerEl.translatePoints(e.getXY());this.onClickChange(_2)}this.focus()},onClickChange:function(_3){if(_3.top>this.clickRange[0]&&_3.top0){if(m>(_8/2)){_7=_6+(_8-m)}else{_7=_6-m}}return _7.constrain(this.minValue,this.maxValue)},afterRender:function(){Ext.Slider.superclass.afterRender.apply(this,arguments);if(this.value!==undefined){var v=this.normalizeValue(this.value);if(v!==this.value){delete this.value;this.setValue(v,false)}else{this.moveThumb(this.translateValue(v),false)}}},getRatio:function(){var w=this.innerEl.getWidth();var v=this.maxValue-this.minValue;return v==0?w:(w/v)},normalizeValue:function(v){if(typeof v!="number"){v=parseInt(v)}v=Math.round(v);v=this.doSnap(v);v=v.constrain(this.minValue,this.maxValue);return v},setValue:function(v,_f,_10){v=this.normalizeValue(v);if(v!==this.value&&this.fireEvent("beforechange",this,v,this.value)!==false){this.value=v;this.moveThumb(this.translateValue(v),_f!==false);this.fireEvent("change",this,v);if(_10){this.fireEvent("changecomplete",this,v)}}},translateValue:function(v){var _12=this.getRatio();return(v*_12)-(this.minValue*_12)-this.halfThumb},reverseValue:function(pos){var _14=this.getRatio();return(pos+this.halfThumb+(this.minValue*_14))/_14},moveThumb:function(v,_16){if(!_16||this.animate===false){this.thumb.setLeft(v)}else{this.thumb.shift({left:v,stopFx:true,duration:0.35})}},focus:function(){this.focusEl.focus(10)},onBeforeDragStart:function(e){return !this.disabled},onDragStart:function(e){this.thumb.addClass("x-slider-thumb-drag");this.dragging=true;this.dragStartValue=this.value;this.fireEvent("dragstart",this,e)},onDrag:function(e){var pos=this.innerEl.translatePoints(this.tracker.getXY());this.setValue(Math.round(this.reverseValue(pos.left)),false);this.fireEvent("drag",this,e)},onDragEnd:function(e){this.thumb.removeClass("x-slider-thumb-drag");this.dragging=false;this.fireEvent("dragend",this,e);if(this.dragStartValue!=this.value){this.fireEvent("changecomplete",this,this.value)}},onDisable:function(){Ext.Slider.superclass.onDisable.call(this);this.thumb.addClass(this.disabledClass);if(Ext.isIE){var xy=this.thumb.getXY();this.thumb.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(xy)}},onEnable:function(){Ext.Slider.superclass.onEnable.call(this);this.thumb.removeClass(this.disabledClass);if(Ext.isIE){this.innerEl.removeClass(this.disabledClass).dom.disabled=false;if(this.thumbHolder){this.thumbHolder.hide()}this.thumb.show();this.syncThumb()}},onResize:function(w,h){this.innerEl.setWidth(w-(this.el.getPadding("l")+this.endEl.getPadding("r")));this.syncThumb()},syncThumb:function(){if(this.rendered){this.moveThumb(this.translateValue(this.value))}},getValue:function(){return this.value}});Ext.reg("slider",Ext.Slider);Ext.Slider.Vertical={onResize:function(w,h){this.innerEl.setHeight(h-(this.el.getPadding("t")+this.endEl.getPadding("b")));this.syncThumb()},getRatio:function(){var h=this.innerEl.getHeight();var v=this.maxValue-this.minValue;return h/v},moveThumb:function(v,_24){if(!_24||this.animate===false){this.thumb.setBottom(v)}else{this.thumb.shift({bottom:v,stopFx:true,duration:0.35})}},onDrag:function(e){var pos=this.innerEl.translatePoints(this.tracker.getXY());var _27=this.innerEl.getHeight()-pos.top;this.setValue(this.minValue+Math.round(_27/this.getRatio()),false);this.fireEvent("drag",this,e)},onClickChange:function(_28){if(_28.left>this.clickRange[0]&&_28.left0){this.statusEl.addClass(_b);this.currIconCls=_b}}else{this.currIconCls=_b}return this},showBusy:function(o){if(typeof o=="string"){o={text:o}}o=Ext.applyIf(o||{},{text:this.busyText,iconCls:this.busyIconCls});return this.setStatus(o)}});Ext.reg("statusbar",Ext.StatusBar);Ext.History=(function(){var _1,_2;var _3=false;var _4;function getHash(){var _5=top.location.href,i=_5.indexOf("#");return i>=0?_5.substr(i+1):null}function doSave(){_2.value=_4}function handleStateChange(_7){_4=_7;Ext.History.fireEvent("change",_7)}function updateIFrame(_8){var _9=['
    ',_8,"
    "].join("");try{var _a=_1.contentWindow.document;_a.open();_a.write(_9);_a.close();return true}catch(e){return false}}function checkIFrame(){if(!_1.contentWindow||!_1.contentWindow.document){setTimeout(checkIFrame,10);return}var _b=_1.contentWindow.document;var _c=_b.getElementById("state");var _d=_c?_c.innerText:null;var _e=getHash();setInterval(function(){_b=_1.contentWindow.document;_c=_b.getElementById("state");var _f=_c?_c.innerText:null;var _10=getHash();if(_f!==_d){_d=_f;handleStateChange(_d);top.location.hash=_d;_e=_d;doSave()}else{if(_10!==_e){_e=_10;updateIFrame(_10)}}},50);_3=true;Ext.History.fireEvent("ready",Ext.History)}function startUp(){_4=_2.value?_2.value:getHash();if(Ext.isIE){checkIFrame()}else{var _11=getHash();setInterval(function(){var _12=getHash();if(_12!==_11){_11=_12;handleStateChange(_11);doSave()}},50);_3=true;Ext.History.fireEvent("ready",Ext.History)}}return{fieldId:"x-history-field",iframeId:"x-history-frame",events:{},init:function(_13,_14){if(_3){Ext.callback(_13,_14,[this]);return}if(!Ext.isReady){Ext.onReady(function(){Ext.History.init(_13,_14)});return}_2=Ext.getDom(Ext.History.fieldId);if(Ext.isIE){_1=Ext.getDom(Ext.History.iframeId)}this.addEvents("ready","change");if(_13){this.on("ready",_13,_14,{single:true})}startUp()},add:function(_15,_16){if(_16!==false){if(this.getToken()==_15){return true}}if(Ext.isIE){return updateIFrame(_15)}else{top.location.hash=_15;return true}},back:function(){history.go(-1)},forward:function(){history.go(1)},getToken:function(){return _3?_4:getHash()}}})();Ext.apply(Ext.History,new Ext.util.Observable());Ext.debug={};(function(){var cp;function createConsole(){var _2=new Ext.debug.ScriptsPanel();var _3=new Ext.debug.LogPanel();var _4=new Ext.debug.DomTree();var _5=new Ext.TabPanel({activeTab:0,border:false,tabPosition:"bottom",items:[{title:"Debug Console",layout:"border",items:[_3,_2]},{title:"DOM Inspector",layout:"border",items:[_4]}]});cp=new Ext.Panel({id:"x-debug-browser",title:"Console",collapsible:true,animCollapse:false,style:"position:absolute;left:0;bottom:0;",height:200,logView:_3,layout:"fit",tools:[{id:"close",handler:function(){cp.destroy();cp=null;Ext.EventManager.removeResizeListener(handleResize)}}],items:_5});cp.render(document.body);cp.resizer=new Ext.Resizable(cp.el,{minHeight:50,handles:"n",pinned:true,transparent:true,resizeElement:function(){var _6=this.proxy.getBox();this.proxy.hide();cp.setHeight(_6.height);return _6}});function handleResize(){cp.setWidth(Ext.getBody().getViewSize().width)}Ext.EventManager.onWindowResize(handleResize);handleResize()}Ext.apply(Ext,{log:function(){if(!cp){createConsole()}cp.logView.log.apply(cp.logView,arguments)},logf:function(_7,_8,_9,_a){Ext.log(String.format.apply(String,arguments))},dump:function(o){if(typeof o=="string"||typeof o=="number"||typeof o=="undefined"||Ext.isDate(o)){Ext.log(o)}else{if(!o){Ext.log("null")}else{if(typeof o!="object"){Ext.log("Unknown return type")}else{if(Ext.isArray(o)){Ext.log("["+o.join(",")+"]")}else{var b=["{\n"];for(var _d in o){var to=typeof o[_d];if(to!="function"&&to!="object"){b.push(String.format(" {0}: {1},\n",_d,o[_d]))}}var s=b.join("");if(s.length>3){s=s.substr(0,s.length-2)}Ext.log(s+"\n}")}}}}},_timers:{},time:function(_10){_10=_10||"def";Ext._timers[_10]=new Date().getTime()},timeEnd:function(_11,_12){var t=new Date().getTime();_11=_11||"def";var v=String.format("{0} ms",t-Ext._timers[_11]);Ext._timers[_11]=new Date().getTime();if(_12!==false){Ext.log("Timer "+(_11=="def"?v:_11+": "+v))}return v}})})();Ext.debug.ScriptsPanel=Ext.extend(Ext.Panel,{id:"x-debug-scripts",region:"east",minWidth:200,split:true,width:350,border:false,layout:"anchor",style:"border-width:0 0 0 1px;",initComponent:function(){this.scriptField=new Ext.form.TextArea({anchor:"100% -26",style:"border-width:0;"});this.trapBox=new Ext.form.Checkbox({id:"console-trap",boxLabel:"Trap Errors",checked:true});this.toolbar=new Ext.Toolbar([{text:"Run",scope:this,handler:this.evalScript},{text:"Clear",scope:this,handler:this.clear},"->",this.trapBox," "," "]);this.items=[this.toolbar,this.scriptField];Ext.debug.ScriptsPanel.superclass.initComponent.call(this)},evalScript:function(){var s=this.scriptField.getValue();if(this.trapBox.getValue()){try{var rt=eval(s);Ext.dump(rt===undefined?"(no return)":rt)}catch(e){Ext.log(e.message||e.descript)}}else{var rt=eval(s);Ext.dump(rt===undefined?"(no return)":rt)}},clear:function(){this.scriptField.setValue("");this.scriptField.focus()}});Ext.debug.LogPanel=Ext.extend(Ext.Panel,{autoScroll:true,region:"center",border:false,style:"border-width:0 1px 0 0",log:function(){var _17=['
    ',Ext.util.Format.htmlEncode(Array.prototype.join.call(arguments,", ")).replace(/\n/g,"
    ").replace(/\s/g," "),"
    "].join("");this.body.insertHtml("beforeend",_17);this.body.scrollTo("top",100000)},clear:function(){this.body.update("");this.body.dom.scrollTop=0}});Ext.debug.DomTree=Ext.extend(Ext.tree.TreePanel,{enableDD:false,lines:false,rootVisible:false,animate:false,hlColor:"ffff9c",autoScroll:true,region:"center",border:false,initComponent:function(){Ext.debug.DomTree.superclass.initComponent.call(this);var _18=false,_19;var _1a=/^\s*$/;var _1b=Ext.util.Format.htmlEncode;var _1c=Ext.util.Format.ellipsis;var _1d=/\s?([a-z\-]*)\:([^;]*)(?:[;\s\n\r]*)/gi;function findNode(n){if(!n||n.nodeType!=1||n==document.body||n==document){return false}var pn=[n],p=n;while((p=p.parentNode)&&p.nodeType==1&&p.tagName.toUpperCase()!="HTML"){pn.unshift(p)}var cn=_19;for(var i=0,len=pn.length;i"+_1c(_1b(String(c.nodeValue)),35)+"",cls:"x-tree-noicon"}))}}}cb()};this.root=this.setRootNode(new Ext.tree.TreeNode("Ext"));_19=this.root.appendChild(new Ext.debug.HtmlNode(document.getElementsByTagName("html")[0]))}});Ext.debug.HtmlNode=function(){var _3b=Ext.util.Format.htmlEncode;var _3c=Ext.util.Format.ellipsis;var _3d=/^\s*$/;var _3e=[{n:"id",v:"id"},{n:"className",v:"class"},{n:"name",v:"name"},{n:"type",v:"type"},{n:"src",v:"src"},{n:"href",v:"href"}];function hasChild(n){for(var i=0,c;c=n.childNodes[i];i++){if(c.nodeType==1){return true}}return false}function renderNode(n,_43){var tag=n.tagName.toLowerCase();var s="<"+tag;for(var i=0,len=_3e.length;i"+_3b(v)+"""}}var _4a=n.style?n.style.cssText:"";if(_4a){s+=" style=""+_3b(_4a.toLowerCase())+"""}if(_43&&n.childNodes.length>0){s+=">"+_3c(_3b(String(n.innerHTML)),35)+"</"+tag+">"}else{if(_43){s+=" />"}else{s+=">"}}return s}var _4b=function(n){var _4d=!hasChild(n);this.htmlNode=n;this.tagName=n.tagName.toLowerCase();var _4e={text:renderNode(n,_4d),leaf:_4d,cls:"x-tree-noicon"};_4b.superclass.constructor.call(this,_4e);this.attributes.htmlNode=n;if(!_4d){this.on("expand",this.onExpand,this);this.on("collapse",this.onCollapse,this)}};Ext.extend(_4b,Ext.tree.AsyncTreeNode,{cls:"x-tree-noicon",preventHScroll:true,refresh:function(_4f){var _50=!hasChild(this.htmlNode);this.setText(renderNode(this.htmlNode,_50));if(_4f){Ext.fly(this.ui.textNode).highlight()}},onExpand:function(){if(!this.closeNode&&this.parentNode){this.closeNode=this.parentNode.insertBefore(new Ext.tree.TreeNode({text:"</"+this.tagName+">",cls:"x-tree-noicon"}),this.nextSibling)}else{if(this.closeNode){this.closeNode.ui.show()}}},onCollapse:function(){if(this.closeNode){this.closeNode.ui.hide()}},render:function(_51){_4b.superclass.render.call(this,_51)},highlightNode:function(){},highlight:function(){},frame:function(){this.htmlNode.style.border="1px solid #0000ff"},unframe:function(){this.htmlNode.style.border=""}});return _4b}(); Ext.util.Format.eurMoney=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);return"€"+v};Ext.util.Format.boolRenderer=function(v,p,record){p.css+=" x-grid3-check-col-td";return'
     
    '};var treeDropConfig={getDropPoint:function(e,n,dd){var tn=n.node;if(tn.isRoot){return tn.allowChildren!==false?"append":false}var dragEl=n.ddel;var t=Ext.lib.Dom.getY(dragEl),b=t+dragEl.offsetHeight;var y=Ext.lib.Event.getPageY(e);var noAppend=tn.allowChildren===false;if(this.appendOnly||tn.parentNode.allowChildren===false){return noAppend?false:"append"}var noBelow=false;if(!this.allowParentInsert){noBelow=tn.hasChildNodes()&&tn.isExpanded()}var q=(b-t)/(noAppend?2:3);if(y>=t&&y<(t+q)){return"above"}else{if(!noBelow&&(noAppend||y>=b-q&&y<=b)){return"below"}else{return"append"}}},completeDrop:function(de){var ns=de.dropNode,p=de.point,t=de.target;if(!Ext.isArray(ns)){ns=[ns]}var n;for(var i=0,len=ns.length;i '}};Ext.form.DateTimeField=Ext.extend(Ext.form.Field,{defaultAutoCreate:{tag:"input",type:"hidden"},timeWidth:100,dateWidth:100,dtSeparator:" ",hiddenFormat:"Y-m-d H:i:s",otherToNow:true,dateFormat:"d/m/y",timeFormat:"H:i",allowBlank:false,hideTime:false,initComponent:function(){Ext.form.DateTimeField.superclass.initComponent.call(this);var dateConfig=Ext.apply({},{id:this.id+"-date",format:this.dateFormat||Ext.form.DateField.prototype.format,width:this.dateWidth,allowBlank:this.allowBlank,selectOnFocus:this.selectOnFocus,listeners:{blur:{scope:this,fn:this.onBlur},focus:{scope:this,fn:this.onFocus}}},this.dateConfig);this.df=new Ext.form.DateField(dateConfig);this.df.ownerCt=this;delete (this.dateFormat);var timeConfig=Ext.apply({},{id:this.id+"-time",format:this.timeFormat||Ext.form.TimeField.prototype.format,allowBlank:this.allowBlank,width:this.timeWidth,selectOnFocus:this.selectOnFocus,listeners:{blur:{scope:this,fn:this.onBlur},focus:{scope:this,fn:this.onFocus}}},this.timeConfig);this.tf=new Ext.form.TimeField(timeConfig);this.tf.ownerCt=this;delete (this.timeFormat);this.relayEvents(this.df,["focus","specialkey","invalid","valid"]);this.relayEvents(this.tf,["focus","specialkey","invalid","valid"])},onRender:function(ct,position){if(this.isRendered){return}Ext.form.DateTimeField.superclass.onRender.call(this,ct,position);var t;var timeStyle=this.hideTime?"display:none":"";t=Ext.DomHelper.append(ct,{tag:"table",style:"border-collapse:collapse",children:[{tag:"tr",children:[{tag:"td",style:"padding-right:17px",cls:"datetime-date"},{tag:"td",cls:"datetime-time",style:timeStyle}]}]},true);this.tableEl=t;this.wrap=t.wrap();this.wrap.on("mousedown",this.onMouseDown,this,{delay:10});this.df.render(t.child("td.datetime-date"));this.tf.render(t.child("td.datetime-time"));this.df.wrap.setStyle({width:this.dateWidth});this.tf.wrap.setStyle({width:this.timeWidth});if(Ext.isIE&&Ext.isStrict){t.select("input").applyStyles({top:0})}this.on("specialkey",this.onSpecialKey,this);this.df.el.swallowEvent(["keydown","keypress"]);this.tf.el.swallowEvent(["keydown","keypress"]);if("side"===this.msgTarget){var elp=this.el.findParent(".x-form-element",10,true);this.errorIcon=elp.createChild({cls:"x-form-invalid-icon"});this.df.errorIcon=this.errorIcon;this.tf.errorIcon=this.errorIcon}if(!this.el.dom.name){this.el.dom.name=this.hiddenName||this.name||this.id}this.df.el.dom.removeAttribute("name");this.tf.el.dom.removeAttribute("name");this.isRendered=true;if(this.el.dom.value){this.setValue(this.el.dom.value)}else{this.setValue(new Date());this.updateHidden()}},adjustSize:Ext.BoxComponent.prototype.adjustSize,alignErrorIcon:function(){this.errorIcon.alignTo(this.tableEl,"tl-tr",[2,0])},initDateValue:function(){this.dateValue=this.otherToNow?new Date():new Date(1970,0,1,0,0,0)},clearInvalid:function(){this.df.clearInvalid();this.tf.clearInvalid()},beforeDestroy:function(){if(this.isRendered){this.wrap.removeAllListeners();this.wrap.remove();this.tableEl.remove();this.df.destroy();this.tf.destroy()}},disable:function(){if(this.isRendered){this.df.disabled=this.disabled;this.df.onDisable();this.tf.onDisable()}this.disabled=true;this.df.disabled=true;this.tf.disabled=true;this.fireEvent("disable",this);return this},enable:function(){if(this.rendered){this.df.onEnable();this.tf.onEnable()}this.disabled=false;this.df.disabled=false;this.tf.disabled=false;this.fireEvent("enable",this);return this},focus:function(){this.df.focus()},getPositionEl:function(){return this.wrap},getResizeEl:function(){return this.wrap},getValue:function(){return this.dateValue?new Date(this.dateValue):""},isValid:function(){return this.df.isValid()&&this.tf.isValid()},isVisible:function(){return this.df.rendered&&this.df.getActionEl().isVisible()},onBlur:function(f){if(this.wrapClick){f.focus();this.wrapClick=false}this.updateDate();this.updateTime();this.updateHidden();(function(){if(!this.df.hasFocus&&!this.tf.hasFocus){var v=this.getValue();if(String(v)!==String(this.startValue)){this.fireEvent("change",this,v,this.startValue)}this.hasFocus=false;this.fireEvent("blur",this)}}).defer(100,this)},onFocus:function(){if(!this.hasFocus){this.hasFocus=true;this.startValue=this.getValue();this.fireEvent("focus",this)}},onMouseDown:function(e){if(!this.disabled){this.wrapClick="td"===e.target.nodeName.toLowerCase()}},onSpecialKey:function(t,e){var key=e.getKey();if(key===e.TAB){if(t===this.df&&!e.shiftKey){e.stopEvent();this.tf.focus()}if(t===this.tf&&e.shiftKey){e.stopEvent();this.df.focus()}}if(key===e.ENTER){this.updateValue()}},setDate:function(date){this.df.setValue(date)},setTime:function(date){this.tf.setValue(date)},setSize:function(w,h){if(!w){return}if("below"===this.timePosition){this.df.setSize(w,h);this.tf.setSize(w,h);if(Ext.isIE){this.df.el.up("td").setWidth(w);this.tf.el.up("td").setWidth(w)}}else{this.df.setSize(w-this.timeWidth-4,h);this.tf.setSize(this.timeWidth,h);if(Ext.isIE){this.df.el.up("td").setWidth(w-this.timeWidth-4);this.tf.el.up("td").setWidth(this.timeWidth)}}},setValue:function(val){if(!val&&true===this.emptyToNow){this.setValue(new Date());return}else{if(!val){this.setDate("");this.setTime("");this.updateValue();return}}if("number"===typeof val){val=new Date(val)}val=val?val:new Date(1970,0,1,0,0,0);var da,time;if(val instanceof Date){this.setDate(val);this.setTime(val);this.dateValue=new Date(val)}else{da=val.split(this.dtSeparator);this.setDate(da[0]);if(da[1]){if(da[2]){da[1]+=da[2]}var hh=da[1].split(":");this.setTime(hh[0]+":"+hh[1])}}},setVisible:function(visible){if(visible){this.df.show(); this.tf.show()}else{this.df.hide();this.tf.hide()}return this},show:function(){return this.setVisible(true)},hide:function(){return this.setVisible(false)},updateDate:function(){var d=this.df.getValue();if(d){if(!(this.dateValue instanceof Date)){this.initDateValue();if(!this.tf.getValue()){this.setTime(this.dateValue)}}this.dateValue.setMonth(0);this.dateValue.setFullYear(d.getFullYear());this.dateValue.setMonth(d.getMonth());this.dateValue.setDate(d.getDate())}else{this.dateValue="";this.setTime("")}},updateTime:function(){var t=this.tf.getValue();if(t&&!(t instanceof Date)){t=Date.parseDate(t,this.tf.format)}if(t&&!this.df.getValue()){this.initDateValue();this.setDate(this.dateValue)}if(this.dateValue instanceof Date){if(t){this.dateValue.setHours(t.getHours());this.dateValue.setMinutes(t.getMinutes());this.dateValue.setSeconds(t.getSeconds())}else{this.dateValue.setHours(0);this.dateValue.setMinutes(0);this.dateValue.setSeconds(0)}}},updateHidden:function(){if(this.isRendered){var value=this.dateValue instanceof Date?this.dateValue.format(this.hiddenFormat):"";this.el.dom.value=value}},updateValue:function(){this.updateDate();this.updateTime();this.updateHidden();return},validate:function(){return this.df.validate()&&this.tf.validate()},renderer:function(field){var format=field.editor.dateFormat||Ext.form.DateTime.prototype.dateFormat;format+=" "+(field.editor.timeFormat||Ext.form.DateTime.prototype.timeFormat);var renderer=function(val){var retval=Ext.util.Format.date(val,format);return retval};return renderer}});Ext.reg("datetimefield",Ext.form.DateTimeField);Ext.grid.Search=function(config){Ext.apply(this,config);Ext.grid.Search.superclass.constructor.call(this)};Ext.extend(Ext.grid.Search,Ext.util.Observable,{autoFocus:true,searchText:"Search",searchTipText:"Insert a word or press Search",selectAllText:"Select All",position:"top",iconCls:"check",checkIndexes:"all",disableIndexes:[],dateFormat:undefined,showSelectAll:true,menuStyle:"checkbox",minCharsTipText:"Insert at least {0} characters",mode:"remote",width:200,xtype:"gridsearch",paramNames:{fields:"fields",query:"query"},shortcutKey:"r",shortcutModifier:"alt",align:"right",minLength:3,init:function(grid){this.grid=grid;if("string"===typeof this.toolbarContainer){this.toolbarContainer=Ext.getCmp(this.toolbarContainer)}grid.onRender=grid.onRender.createSequence(this.onRender,this);grid.reconfigure=grid.reconfigure.createSequence(this.reconfigure,this)},onRender:function(){var panel=this.toolbarContainer||this.grid;var tb="bottom"===this.position?panel.bottomToolbar:panel.topToolbar;this.menu=new Ext.menu.Menu();if("right"===this.align){tb.addFill()}else{if(0