(function(Ext) { Ext.sandboxName = 'Ext6'; Ext.isSandboxed = true; Ext.buildSettings = { baseCSSPrefix: "x6-", scopeResetCSS: true }; /* This file is part of Ext JS 6.2.0.981 Copyright (c) 2011-2016 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Version: 6.2.0.981 Build date: 2016-08-31 14:49:44 (08dbbd0ec0b8bc0e014d725fdb7d9650d510b343) */ var Ext=Ext||{};if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.dashboard){Ext.dashboard={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.request){Ext.data.request={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.direct){Ext.direct={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.drag){Ext.drag={}}if(!Ext.drag.proxy){Ext.drag.proxy={}}if(!Ext.draw){Ext.draw={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.flash){Ext.flash={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.layout){Ext.fx.layout={}}if(!Ext.fx.layout.card){Ext.fx.layout.card={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.grid){Ext.grid={}}if(!Ext.grid.column){Ext.grid.column={}}if(!Ext.grid.feature){Ext.grid.feature={}}if(!Ext.grid.filters){Ext.grid.filters={}}if(!Ext.grid.filters.filter){Ext.grid.filters.filter={}}if(!Ext.grid.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}if(!Ext.grid.property){Ext.grid.property={}}if(!Ext.grid.selection){Ext.grid.selection={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.component.field){Ext.layout.component.field={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.border){Ext.layout.container.border={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.override){Ext.override={}}if(!Ext.override.sparkline){Ext.override.sparkline={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.list){Ext.overrides.list={}}if(!Ext.overrides.plugin){Ext.overrides.plugin={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.parse){Ext.parse={}}if(!Ext.parse.symbol){Ext.parse.symbol={}}if(!Ext.perf){Ext.perf={}}if(!Ext.picker){Ext.picker={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.promise){Ext.promise={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.slider){Ext.slider={}}if(!Ext.sparkline){Ext.sparkline={}}if(!Ext.state){Ext.state={}}if(!Ext.tab){Ext.tab={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.tree){Ext.tree={}}if(!Ext.tree.plugin){Ext.tree.plugin={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.ux.form){Ext.ux.form={}}if(!Ext.ux.layout){Ext.ux.layout={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}(function(e){var b,m=["constructor","toString","valueOf","toLocaleString"],g={},q={},d=0,n,k,s,i,a,h,o,c,j,r=function(){var v,u;k=Ext.Base;s=Ext.ClassManager;for(v=m.length;v-->0;){u=(1<0;){v=b[w];u[v]=k[v]}return u},l=function(z,C,X,u,B,L,A,U,x,N,G){var v=function F(){return this.constructor.apply(this,arguments)||null},W=v,w={enumerableMembers:u&d,onCreated:G,onBeforeCreated:t,aliases:U},J=X.alternateClassName||[],S=Ext.global,O,R,T,I,Q,aa,Z,y,P,E,V,M,H,Y,K=s.alternateToName||s.maps.alternateToName,D=s.nameToAlternates||s.maps.nameToAlternates;for(T=b.length;T-->0;){Z=b[T];v[Z]=k[Z]}if(X.$isFunction){X=X(v)}w.data=X;E=X.statics;delete X.statics;X.$className=z;if("$className" in X){v.$className=X.$className}v.extend(C);P=v.prototype;if(B){v.xtype=X.xtype=B[0];P.xtypes=B}P.xtypesChain=L;P.xtypesMap=A;X.alias=U;W.triggerExtended(v,X,w);if(X.onClassExtended){v.onExtended(X.onClassExtended,v);delete X.onClassExtended}if(X.privates&&c){c.call(Ext.Class,v,X)}if(E){if(j){v.addStatics(E)}else{for(V in E){if(E.hasOwnProperty(V)){Y=E[V];if(Y&&Y.$isFunction&&!Y.$isClass&&Y!==Ext.emptyFn&&Y!==Ext.identityFn){v[V]=H=Y;H.$owner=v;H.$name=V}v[V]=Y}}}}if(X.inheritableStatics){v.addInheritableStatics(X.inheritableStatics);delete X.inheritableStatics}if(P.onClassExtended){W.onExtended(P.onClassExtended,W);delete P.onClassExtended}if(X.platformConfig&&h){h.call(Ext.Class,v,X);delete X.platformConfig}if(X.config){i.call(Ext.Class,v,X)}if(X.cachedConfig&&a){a.call(Ext.Class,v,X);delete X.cachedConfig}if(X.deprecated&&o){o.call(Ext.ClassManager,z,v,X)}w.onBeforeCreated(v,w.data,w);for(T=0,Q=x&&x.length;T1?parseInt(F[2]):0;if(K){D=true}}else{K=0}E[N]=K}if(E.ie){var G=document.documentMode;if(G>=8){E.ie=G}}K=E.ie||false;L=Math.max(K,w.maxIEVersion);for(I=8;I<=L;++I){H="ie"+I;E[H+"m"]=K?K<=I:0;E[H]=K?K===I:0;E[H+"p"]=K?K>=I:0}return E},y=function(){var E={},J,K,M,G,H,F,D,I,L;M=c(w.osPrefixes);H=M.length;for(G=0,L=0;G1?parseFloat(F[F.length-1]):0}if(I){L++}E[K]=I}M=c(w.fallbackOSPrefixes);H=M.length;for(G=0;G1){z=u[1];if(z==="false"||z==="0"){z=false}}y[s]=z}}return y},filterPlatform:function(t,x){t=e.concat(t||e);x=e.concat(x||e);var w=t.length,v=x.length,s=(!w&&v),u,r;for(u=0;u0&&((v=t.charAt(w-1))==="?"||v==="&")){r=t.indexOf("&",w);r=(r<0)?"":t.substring(r);if(r&&v==="?"){++w;r=r.substring(1)}t=t.substring(0,w-1)+r}return t},getConfig:function(r){return r?d.config[r]:d.config},setConfig:function(r,u){if(typeof r==="string"){d.config[r]=u}else{for(var t in r){d.setConfig(t,r[t])}}return d},getHead:function(){return d.docHead||(d.docHead=o.head||o.getElementsByTagName("head")[0])},create:function(t,u,r){var s=r||{};s.url=t;s.key=u;return d.scripts[u]=new j(s)},getEntry:function(t,s,r){var u,v;u=r?t:d.canonicalUrl(t);v=d.scripts[u];if(!v){v=d.create(t,u,s);if(r){v.canonicalPath=true}}return v},registerContent:function(s,t,u){var r={content:u,loaded:true,css:t==="css"};return d.getEntry(s,r)},processRequest:function(s,r){s.loadEntries(r)},load:function(r){var r=new b(r);if(r.sync||d.syncMode){return d.loadSync(r)}if(d.currentRequest){r.getEntries();d.suspendedQueue.push(r)}else{d.currentRequest=r;d.processRequest(r,false)}return d},loadSync:function(r){var r=new b(r);d.syncMode++;d.processRequest(r,true);d.syncMode--;return d},loadBasePrefix:function(r){r=new b(r);r.prependBaseUrl=true;return d.load(r)},loadSyncBasePrefix:function(r){r=new b(r);r.prependBaseUrl=true;return d.loadSync(r)},requestComplete:function(s){var r;if(d.currentRequest===s){d.currentRequest=null;while(d.suspendedQueue.length>0){r=d.suspendedQueue.shift();if(!r.done){d.load(r);break}}}if(!d.currentRequest&&d.suspendedQueue.length==0){d.fireListeners()}},isLoading:function(){return !d.currentRequest&&d.suspendedQueue.length==0},fireListeners:function(){var r;while(d.isLoading()&&(r=d.listeners.shift())){r()}},onBootReady:function(r){if(!d.isLoading()){r()}else{d.listeners.push(r)}},getPathsFromIndexes:function(u,r){if(!("length" in u)){var t=[],s;for(s in u){if(!isNaN(+s)){t[+s]=u[s]}}u=t}return b.prototype.getPathsFromIndexes(u,r)},createLoadOrderMap:function(r){return b.prototype.createLoadOrderMap(r)},fetch:function(r,s,A,u){u=(u===undefined)?!!s:u;var z=new XMLHttpRequest(),B,w,x,t=false,y=function(){if(z&&z.readyState==4){w=(z.status===1223)?204:(z.status===0&&((self.location||{}).protocol==="file:"||(self.location||{}).protocol==="ionp:"))?200:z.status;x=z.responseText;B={content:x,status:w,exception:t};if(s){s.call(A,B)}z.onreadystatechange=h;z=null}};if(u){z.onreadystatechange=y}try{z.open("GET",r,u);z.send(null)}catch(v){t=v;y();return B}if(!u){y()}return B},notifyAll:function(r){r.notifyRequests()}};function b(r){if(r.$isRequest){return r}var r=r.url?r:{url:r},s=r.url,t=s.charAt?[s]:s,u=r.charset||d.config.charset;a(this,r);delete this.url;this.urls=t;this.charset=u}b.prototype={$isRequest:true,createLoadOrderMap:function(s){var r=s.length,t={},v,u;for(v=0;v0){setTimeout(function(){u.call(t,v)},r)}else{u.call(t,v)}}v.fireListeners();d.requestComplete(v)}},onDone:function(t){var s=this,r=s.listeners||(s.listeners=[]);if(s.done){t(s)}else{r.push(t)}},fireListeners:function(){var r=this.listeners,s;if(r){while((s=r.shift())){s(this)}}}};function j(s){if(s.$isEntry){return s}var x=s.charset||d.config.charset,w=Ext.manifest,r=w&&w.loader,t=(s.cache!==undefined)?s.cache:(r&&r.cache),v,u;if(d.config.disableCaching){if(t===undefined){t=!d.config.disableCaching}if(t===false){v=+new Date()}else{if(t!==true){v=t}}if(v){u=(r&&r.cacheParam)||d.config.disableCachingParam;v=u+"="+v}}a(this,s);this.charset=x;this.buster=v;this.requests=[]}j.prototype={$isEntry:true,done:false,evaluated:false,loaded:false,isCrossDomain:function(){var r=this;if(r.crossDomain===undefined){r.crossDomain=(r.getLoadUrl().indexOf(d.origin)!==0)}return r.crossDomain},isCss:function(){var s=this;if(s.css===undefined){if(s.url){var r=d.assetConfig[s.url];s.css=r?r.type==="css":g.test(s.url)}else{s.css=false}}return this.css},getElement:function(r){var t=this,s=t.el;if(!s){if(t.isCss()){r=r||"link";s=o.createElement(r);if(r=="link"){s.rel="stylesheet";t.prop="href"}else{t.prop="textContent"}s.type="text/css"}else{r=r||"script";s=o.createElement(r);s.type="text/javascript";t.prop="src";if(t.charset){s.charset=t.charset}if(d.hasAsync){s.async=false}}t.el=s}return s},getLoadUrl:function(){var s=this,r;r=s.canonicalPath?s.url:d.canonicalUrl(s.url);if(!s.loadUrl){s.loadUrl=!!s.buster?(r+(r.indexOf("?")===-1?"?":"&")+s.buster):r}return s.loadUrl},fetch:function(u){var s=this.getLoadUrl(),t=!!u.async,r=u.complete;d.fetch(s,r,this,t)},onContentLoaded:function(s){var w=this,r=s.status,v=s.content,u=s.exception,t=this.getLoadUrl();w.loaded=true;if((u||r===0)&&!i.phantom){w.error=true;w.evaluated=true}else{if((r>=200&&r<300)||r===304||i.phantom||(r===0&&v.length>0)){w.content=v}else{w.error=true;w.evaluated=true}}},createLoadElement:function(t){var s=this,r=s.getElement();s.preserve=true;r.onerror=function(){s.error=true;if(t){t();t=null}};if(d.isIE10m){r.onreadystatechange=function(){if(this.readyState==="loaded"||this.readyState==="complete"){if(t){t();t=this.onreadystatechange=this.onerror=null}}}}else{r.onload=function(){t();t=this.onload=this.onerror=null}}r[s.prop]=s.getLoadUrl()},onLoadElementReady:function(){d.getHead().appendChild(this.getElement());this.evaluated=true},inject:function(w,v){var x=this,y=d.getHead(),r=x.url,z=x.key,s,t,u,A;if(x.isCss()){x.preserve=true;A=z.substring(0,z.lastIndexOf("/")+1);s=o.createElement("base");s.href=A;if(y.firstChild){y.insertBefore(s,y.firstChild)}else{y.appendChild(s)}s.href=s.href;if(r){w+="\n/*# sourceURL="+z+" */"}t=x.getElement("style");u=("styleSheet" in t);y.appendChild(s);if(u){y.appendChild(t);t.styleSheet.cssText=w}else{t.textContent=w;y.appendChild(t)}y.removeChild(s)}else{if(r){w+="\n//# sourceURL="+z}Ext.globalEval(w)}return x},loadCrossDomain:function(){var s=this,r=function(){s.el.onerror=s.el.onload=h;s.el=null;s.loaded=s.evaluated=s.done=true;s.notifyRequests()};s.createLoadElement(function(){r()});s.evaluateLoadElement();return false},loadElement:function(){var s=this,r=function(){s.el.onerror=s.el.onload=h;s.el=null;s.loaded=s.evaluated=s.done=true;s.notifyRequests()};s.createLoadElement(function(){r()});s.evaluateLoadElement();return true},loadSync:function(){var r=this;r.fetch({async:false,complete:function(s){r.onContentLoaded(s)}});r.evaluate();r.notifyRequests()},load:function(s){var r=this;if(!r.loaded){if(r.loading){return false}r.loading=true;if(!s){if(d.isIE10||r.isCrossDomain()){return r.loadCrossDomain()}else{if(!r.isCss()&&d.hasReadyState){r.createLoadElement(function(){r.loaded=true;r.notifyRequests()})}else{if(d.useElements&&!(r.isCss()&&i.phantom)){return r.loadElement()}else{r.fetch({async:!s,complete:function(t){r.onContentLoaded(t);r.notifyRequests()}})}}}}else{r.loadSync()}}return true},evaluateContent:function(){this.inject(this.content);this.content=null},evaluateLoadElement:function(){d.getHead().appendChild(this.getElement())},evaluate:function(){var r=this;if(!r.evaluated){if(r.evaluating){return}r.evaluating=true;if(r.content!==undefined){r.evaluateContent()}else{if(!r.error){r.evaluateLoadElement()}}r.evaluated=r.done=true;r.cleanup()}},cleanup:function(){var t=this,s=t.el,u;if(!s){return}if(!t.preserve){t.el=null;s.parentNode.removeChild(s);for(u in s){try{if(u!==t.prop){s[u]=null}delete s[u]}catch(r){}}}s.onload=s.onerror=s.onreadystatechange=h},notifyRequests:function(){var u=this.requests,r=u.length,s,t;for(s=0;s0){while((s=r.shift())){s(this)}}}};Ext.disableCacheBuster=function(s,t){var r=new Date();r.setTime(r.getTime()+(s?10*365:-1)*24*60*60*1000);r=r.toGMTString();o.cookie="ext-cache=1; expires="+r+"; path="+(t||"/")};d.init();return d}(function(){}));Ext.globalEval=Ext.globalEval||(this.execScript?function(a){execScript(a)}:function($$code){eval.call(window,$$code)});if(!Function.prototype.bind){(function(){var a=Array.prototype.slice,b=function(d){var c=a.call(arguments,1),e=this;if(c.length){return function(){var g=arguments;return e.apply(d,g.length?c.concat(a.call(g)):c)}}c=null;return function(){return e.apply(d,arguments)}};Function.prototype.bind=b;b.$extjs=true}())}Ext.setResourcePath=function(c,b){var a=Ext.manifest||(Ext.manifest={}),d=a.resources||(a.resources={});if(a){if(typeof c!=="string"){Ext.apply(d,c)}else{d[c]=b}a.resources=d}};Ext.getResourcePath=function(g,e,a){if(typeof g!=="string"){e=g.pool;a=g.packageName;g=g.path}var d=Ext.manifest,h=d&&d.resources,c=h[e],b=[];if(c==null){c=h.path;if(c==null){c="resources"}}if(c){b.push(c)}if(a){b.push(a)}b.push(g);return b.join("/")};var Ext=Ext||{};(function(){var b=this,h=Object.prototype,c=h.toString,o=["valueOf","toLocaleString","toString","constructor"],l=function(){},g=function(){},j=function(i){return i},n=function(){var i=n.caller.caller;return i.$owner.prototype[i.$name].apply(this,arguments)},a=Ext.manifest||{},k,d=/\[object\s*(?:Array|Arguments|\w*Collection|\w*List|HTML\s+document\.all\s+class)\]/,e=/^\\?\/Date\(([-+])?(\d+)(?:[+-]\d{4})?\)\\?\/$/;Ext.global=b;Ext.now=Date.now||(Date.now=function(){return +new Date()});Ext.ticks=(b.performance&&b.performance.now)?function(){return performance.now()}:Ext.now;Ext._startTime=Ext.ticks();l.$nullFn=j.$nullFn=l.$emptyFn=j.$identityFn=g.$nullFn=true;g.$privacy="framework";l.$noClearOnDestroy=j.$noClearOnDestroy=true;g.$noClearOnDestroy=true;Ext.suspendLayouts=Ext.resumeLayouts=l;for(k in {toString:1}){o=null}Ext.enumerables=o;Ext.apply=function(s,r,u){if(u){Ext.apply(s,u)}if(s&&r&&typeof r==="object"){var t,q,p;for(t in r){s[t]=r[t]}if(o){for(q=o.length;q--;){p=o[q];if(r.hasOwnProperty(p)){s[p]=r[p]}}}}return s};function m(r,i,s){var p,q;for(p in s){if(s.hasOwnProperty(p)){q=s[p];if(typeof q==="function"){q.$name=p;q.$owner=i;q.$previous=r.hasOwnProperty(p)?r[p]:n}r[p]=q}}}Ext.buildSettings=Ext.apply({baseCSSPrefix:"x-"},Ext.buildSettings||{});Ext.apply(Ext,{idSeed:0,idPrefix:"ext-",isSecure:/^https/i.test(window.location.protocol),enableGarbageCollector:false,enableListenerCollection:true,name:Ext.sandboxName||"Ext",privateFn:g,emptyFn:l,identityFn:j,frameStartTime:Ext.now(),manifest:a,enableAria:true,startsWithHashRe:/^#/,validIdRe:/^[a-z_][a-z0-9\-_]*$/i,BLANK_IMAGE_URL:"data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",makeIdSelector:function(i){return"#"+i},id:function(p,i){if(p&&p.id){return p.id}var q=(i||Ext.idPrefix)+(++Ext.idSeed);if(p){p.id=q}return q},returnId:function(i){return i.getId()},returnTrue:function(){return true},emptyString:new String(),baseCSSPrefix:Ext.buildSettings.baseCSSPrefix,$eventNameMap:{},$vendorEventRe:/^(DOMMouse|Moz.+|MS.+|webkit.+)/,canonicalEventName:function(i){return Ext.$eventNameMap[i]||(Ext.$eventNameMap[i]=(Ext.$vendorEventRe.test(i)?i:i.toLowerCase()))},applyIf:function(p,i){var q;if(p){for(q in i){if(p[q]===undefined){p[q]=i[q]}}}return p},destroy:function(){var r=arguments.length,q,p;for(q=0;q0){s--;q[s]="var Ext=window."+Ext.name+";"+q[s]}}i=q.join("");r=p[i];if(!r){r=Function.prototype.constructor.apply(Function.prototype,q);p[i]=r}return r},functionFactory:function(){var i=Array.prototype.slice.call(arguments),p;if(Ext.isSandboxed){p=i.length;if(p>0){p--;i[p]="var Ext=window."+Ext.name+";"+i[p]}}return Function.prototype.constructor.apply(Function.prototype,i)},Logger:{log:function(p,i){if(p&&b.console){if(!i||!(i in b.console)){i="log"}p="["+i.toUpperCase()+"] "+p;b.console[i](p)}},verbose:function(i){this.log(i,"verbose")},info:function(i){this.log(i,"info")},warn:function(i){this.log(i,"warn")},error:function(i){throw new Error(i)},deprecate:function(i){this.log(i,"warn")}}||{verbose:l,log:l,info:l,warn:l,error:function(i){throw new Error(i)},deprecate:l},ariaWarn:function(i,p){if(Ext.enableAria&&!Ext.slicer){if(!Ext.ariaWarn.first){Ext.ariaWarn.first=true;Ext.log.warn("WAI-ARIA compatibility warnings can be suppressed by adding the following to application startup code:");Ext.log.warn(" Ext.ariaWarn = Ext.emptyFn;")}Ext.log.warn({msg:p,dump:i})}},getElementById:function(i){return document.getElementById(i)},splitAndUnescape:(function(){var i={};return function(r,q){if(!r){return[]}else{if(!q){return[r]}}var t=i[q]||(i[q]=new RegExp("\\\\"+q,"g")),p=[],u,s;u=r.split(q);while((s=u.shift())!==undefined){while(s.charAt(s.length-1)==="\\"&&u.length>0){s=s+q+u.shift()}s=s.replace(t,q);p.push(s)}return p}})()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=true}());Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=true);(function(){function a(){var c=this,b=c.sourceClass,e=c.sourceMethod,d=c.msg;if(e){if(d){e+="(): ";e+=d}else{e+="()"}}if(b){e=e?(b+"."+e):b}return e||d||""}Ext.Error=function(c){if(Ext.isString(c)){c={msg:c}}var b=new Error();Ext.apply(b,c);b.message=b.message||b.msg;b.toString=a;return b};Ext.apply(Ext.Error,{ignore:false,raise:function(d){d=d||{};if(Ext.isString(d)){d={msg:d}}var c=this,g=c.raise.caller,e,b;if(g===Ext.raise){g=g.caller}if(g){if(!d.sourceMethod&&(b=g.$name)){d.sourceMethod=b}if(!d.sourceClass&&(b=g.$owner)&&(b=b.$className)){d.sourceClass=b}}if(c.handle(d)!==true){e=a.call(d);throw new Ext.Error(d)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=(function(){var c=Array.prototype,l=c.slice,n=(function(){var v=[],e,u=20;if(!v.splice){return false}while(u--){v.push("A")}v.splice(15,0,"F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F");e=v.length;v.splice(13,0,"XXX");if(e+1!==v.length){return false}return true}()),m="indexOf" in c,h=true;function k(x,u){var e=x.length,w=new Array(e),v;for(v=0;vD){for(y=e;y--;){B[v+y]=B[D+y]}}}if(F&&C===x){B.length=x;B.push.apply(B,E)}else{B.length=x+F;for(y=0;y>1;y=z(x,A[u]);if(y>=0){v=u+1}else{if(y<0){e=u-1}}}return v},defaultCompare:function(e,u){return(eu)?1:0)},lexicalCompare:function(e,u){e=String(e);u=String(u);return(eu)?1:0)},each:function(y,w,v,e){y=a.from(y);var u,x=y.length;if(e!==true){for(u=0;u-1;u--){if(w.call(v||y[u],y[u],u,y)===false){return u}}}return true},forEach:("forEach" in c)?function(v,u,e){return v.forEach(u,e)}:function(x,v,u){for(var e=0,w=x.length;e=0&&u>>0,u=e;if(arguments.length<3){while(true){if(v in y){u=y[v++];break}if(++v>=w){throw new TypeError("Reduce of empty array with no initial value")}}}for(;ve){e=v}}}return e},mean:function(e){return e.length>0?a.sum(e)/e.length:undefined},sum:function(x){var u=0,e,w,v;for(e=0,w=x.length;eu?1:-1,e;for(e=u;e!=w;e+=x){y[e]=y[e+x]}y[w]=v},replace:q,splice:r,push:function(w){var e=arguments.length,v=1,u;if(w===undefined){w=[]}else{if(!Ext.isArray(w)){w=[w]}}for(;v1114111||Math.floor(s)!==s){Ext.raise("Invalid code point: "+s)}if(s<=65535){t.push(s)}else{s-=65536;t.push((s>>10)+55296,(s%1024)+56320)}if(r+1===u){q+=m(t);t.length=0}}return q},insert:function(t,u,r){if(!t){return u}if(!u){return t}var q=t.length;if(!r&&r!==0){r=q}if(r<0){r*=-1;if(r>=q){r=0}else{r=q-r}}if(r===0){t=u+t}else{if(r>=t.length){t+=u}else{t=t.substr(0,r)+u+t.substr(r)}}return t},startsWith:function(t,u,r){var q=c(t,u);if(q){if(r){t=t.toLowerCase();u=u.toLowerCase()}q=t.lastIndexOf(u,0)===0}return q},endsWith:function(u,r,t){var q=c(u,r);if(q){if(t){u=u.toLowerCase();r=r.toLowerCase()}q=u.indexOf(r,u.length-r.length)!==-1}return q},createVarName:function(q){return q.replace(l,"")},htmlEncode:function(q){return(!q)?q:String(q).replace(h,g)},htmlDecode:function(q){return(!q)?q:String(q).replace(d,k)},hasHtmlCharacters:function(q){return h.test(q)},addCharacterEntities:function(r){var q=[],u=[],s,t;for(s in r){t=r[s];a[s]=t;e[t]=s;q.push(t);u.push(s)}h=new RegExp("("+q.join("|")+")","g");d=new RegExp("("+u.join("|")+"|&#[0-9]{1,5};)","g")},resetCharacterEntities:function(){e={};a={};this.addCharacterEntities({"&":"&",">":">","<":"<",""":'"',"'":"'"})},urlAppend:function(r,q){if(!Ext.isEmpty(q)){return r+(r.indexOf("?")===-1?"?":"&")+q}return r},trim:function(q){if(q){q=q.replace(i,"")}return q||""},capitalize:function(q){if(q){q=q.charAt(0).toUpperCase()+q.substr(1)}return q||""},uncapitalize:function(q){if(q){q=q.charAt(0).toLowerCase()+q.substr(1)}return q||""},ellipsis:function(s,r,t){if(s&&s.length>r){if(t){var u=s.substr(0,r-2),q=Math.max(u.lastIndexOf(" "),u.lastIndexOf("."),u.lastIndexOf("!"),u.lastIndexOf("?"));if(q!==-1&&q>=(r-15)){return u.substr(0,q)+"..."}}return s.substr(0,r-3)+"..."}return s},escapeRegex:function(q){return q.replace(b,"\\$1")},createRegex:function(u,t,r,q){var s=u;if(u!=null&&!u.exec){s=o.escapeRegex(String(u));if(t!==false){s="^"+s}if(r!==false){s+="$"}s=new RegExp(s,(q!==false)?"i":"")}return s},escape:function(q){return q.replace(n,"\\$1")},toggle:function(r,s,q){return r===s?q:s},leftPad:function(r,s,t){var q=String(r);t=t||" ";while(q.length daysInMonth) {","d = daysInMonth;","}","}","h = from(h, from(def.h, dt.getHours()));","i = from(i, from(def.i, dt.getMinutes()));","s = from(s, from(def.s, dt.getSeconds()));","ms = from(ms, from(def.ms, dt.getMilliseconds()));","if(z >= 0 && y >= 0){","v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);","v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);","}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){","v = null;","}else{","if (W) {","year = y || (new Date()).getFullYear();","jan4 = new Date(year, 0, 4, 0, 0, 0);","d = jan4.getDay();","week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));","v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));","} else {","v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);","}","}","}","}","if(v){","if(zz != null){","v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);","}else if(o){","v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));","}","}","return (v != null) ? v : null;"].join("\n");if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var m=this;return d(m.getUTCFullYear(),4,"0")+"-"+d(m.getUTCMonth()+1,2,"0")+"-"+d(m.getUTCDate(),2,"0")+"T"+d(m.getUTCHours(),2,"0")+":"+d(m.getUTCMinutes(),2,"0")+":"+d(m.getUTCSeconds(),2,"0")+"."+d(m.getUTCMilliseconds(),3,"0")+"Z"}}function j(n){var m=Array.prototype.slice.call(arguments,1);return n.replace(c,function(o,p){return m[p]})}g={now:e.now,toString:function(m){if(!m){m=new e()}return m.getFullYear()+"-"+d(m.getMonth()+1,2,"0")+"-"+d(m.getDate(),2,"0")+"T"+d(m.getHours(),2,"0")+":"+d(m.getMinutes(),2,"0")+":"+d(m.getSeconds(),2,"0")},getElapsed:function(n,m){return Math.abs(n-(m||g.now()))},useStrict:false,formatCodeToRegex:function(n,m){var o=g.parseCodes[n];if(o){o=typeof o==="function"?o():o;g.parseCodes[n]=o}return o?Ext.applyIf({c:o.c?j(o.c,m||"{0}"):o.c},o):{g:0,c:null,s:Ext.String.escapeRegex(n)}},parseFunctions:{MS:function(n,m){var o=(n||"").match(i);return o?new e(((o[1]||"")+o[2])*1):null},time:function(n,m){var o=parseInt(n,10);if(o||o===0){return new e(o)}return null},timestamp:function(n,m){var o=parseInt(n,10);if(o||o===0){return new e(o*1000)}return null}},parseRegexes:[],formatFunctions:{MS:function(){return"\\/Date("+this.getTime()+")\\/"},time:function(){return this.getTime().toString()},timestamp:function(){return g.format(this,"U")}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",DAYS_IN_WEEK:7,MONTHS_IN_YEAR:12,MAX_DAYS_IN_MONTH:31,SUNDAY:0,MONDAY:1,TUESDAY:2,WEDNESDAY:3,THURSDAY:4,FRIDAY:5,SATURDAY:6,defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:"m/d/Y",firstDayOfWeek:0,weekendDays:[0,6],getShortMonthName:function(m){return g.monthNames[m].substring(0,3)},getShortDayName:function(m){return g.dayNames[m].substring(0,3)},getMonthNumber:function(m){return g.monthNumbers[m.substring(0,1).toUpperCase()+m.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(m){return a.test(m.replace(l,""))},formatContainsDateInfo:function(m){return h.test(m.replace(l,""))},unescapeFormat:function(m){return m.replace(k,"")},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:"Ext.Date.getShortDayName(m.getDay())",j:"m.getDate()",l:"Ext.Date.dayNames[m.getDay()]",N:"(m.getDay() ? m.getDay() : 7)",S:"Ext.Date.getSuffix(m)",w:"m.getDay()",z:"Ext.Date.getDayOfYear(m)",W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:"Ext.Date.monthNames[m.getMonth()]",m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:"Ext.Date.getShortMonthName(m.getMonth())",n:"(m.getMonth() + 1)",t:"Ext.Date.getDaysInMonth(m)",L:"(Ext.Date.isLeapYear(m) ? 1 : 0)",o:"(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))",Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:"((m.getHours() % 12) ? m.getHours() % 12 : 12)",G:"m.getHours()",h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:"Ext.Date.getGMTOffset(m)",P:"Ext.Date.getGMTOffset(m, true)",T:"Ext.Date.getTimezone(m)",Z:"(m.getTimezoneOffset() * -60)",c:function(){var q="Y-m-dTH:i:sP",o=[],n,m=q.length,p;for(n=0;n me.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{2})"},a:{g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(am|pm|AM|PM)",calcAtEnd:true},A:{g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM|am|pm)",calcAtEnd:true},g:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|[0-9])"},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|1[0-9]|[0-9])"},h:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|0[1-9])"},H:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|[0-1][0-9])"},i:{g:1,c:"i = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},s:{g:1,c:"s = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},u:{g:1,c:"ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n",s:"(\\d+)"},O:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),","mn = o.substring(3,5) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{4})"},P:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),","mn = o.substring(4,6) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{2}:\\d{2})"},T:{g:0,c:null,s:"[A-Z]{1,5}"},Z:{g:1,c:"zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n",s:"([+-]?\\d{1,5})"},c:function(){var o=[],m=[g.formatCodeToRegex("Y",1),g.formatCodeToRegex("m",2),g.formatCodeToRegex("d",3),g.formatCodeToRegex("H",4),g.formatCodeToRegex("i",5),g.formatCodeToRegex("s",6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:["if(results[8]) {","if(results[8] == 'Z'){","zz = 0;","}else if (results[8].indexOf(':') > -1){",g.formatCodeToRegex("P",8).c,"}else{",g.formatCodeToRegex("O",8).c,"}","}"].join("\n")}],p,n;for(p=0,n=m.length;p0?"-":"+")+Ext.String.leftPad(Math.floor(Math.abs(o)/60),2,"0")+(n?":":"")+Ext.String.leftPad(Math.abs(o%60),2,"0")},getDayOfYear:function(p){var o=0,r=g.clone(p),n=p.getMonth(),q;for(q=0,r.setDate(1),r.setMonth(0);q28){m=Math.min(m,g.getLastDateOfMonth(g.add(g.getFirstDateOfMonth(o),g.MONTH,r)).getDate())}s.setDate(m);s.setMonth(o.getMonth()+r);break;case g.YEAR:m=o.getDate();if(m>28){m=Math.min(m,g.getLastDateOfMonth(g.add(g.getFirstDateOfMonth(o),g.YEAR,r)).getDate())}s.setDate(m);s.setFullYear(o.getFullYear()+r);break}}if(p){switch(n.toLowerCase()){case g.MILLI:q=1;break;case g.SECOND:q=1000;break;case g.MINUTE:q=1000*60;break;case g.HOUR:q=1000*60*60;break;case g.DAY:q=1000*60*60*24;break;case g.MONTH:m=g.getDaysInMonth(s);q=1000*60*60*24*m;break;case g.YEAR:m=(g.isLeapYear(s)?366:365);q=1000*60*60*24*m;break}if(q){s.setTime(s.getTime()+q*p)}}return s},subtract:function(n,m,o){return g.add(n,m,-o)},between:function(n,p,m){var o=n.getTime();return p.getTime()<=o&&o<=m.getTime()},isWeekend:function(m){return Ext.Array.indexOf(this.weekendDays,m.getDay())>-1},utcToLocal:function(m){return new Date(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds())},localToUtc:function(m){return g.utc(m.getFullYear(),m.getMonth(),m.getDate(),m.getHours(),m.getMinutes(),m.getSeconds(),m.getMilliseconds())},utc:function(r,t,n,m,p,q,o){return new Date(Date.UTC(r,t,n,m||0,p||0,q||0,o||0))},compat:function(){var u,v=["useStrict","formatCodeToRegex","parseFunctions","parseRegexes","formatFunctions","y2kYear","MILLI","SECOND","MINUTE","HOUR","DAY","MONTH","YEAR","defaults","dayNames","monthNames","monthNumbers","getShortMonthName","getShortDayName","getMonthNumber","formatCodes","isValid","parseDate","getFormatCode","createFormat","createParser","parseCodes"],t=["dateFormat","format","getTimezone","getGMTOffset","getDayOfYear","getWeekOfYear","isLeapYear","getFirstDayOfMonth","getLastDayOfMonth","getDaysInMonth","getSuffix","clone","isDST","clearTime","add","between"],n=v.length,m=t.length,q,r,o;for(o=0;om){return o-1}return o;case g.YEAR:o=m.getFullYear()-n.getFullYear();if(g.add(n,p,o)>m){return o-1}else{return o}}},align:function(n,p,o){var m=new e(+n);switch(p.toLowerCase()){case g.MILLI:return m;case g.SECOND:m.setUTCSeconds(m.getUTCSeconds()-m.getUTCSeconds()%o);m.setUTCMilliseconds(0);return m;case g.MINUTE:m.setUTCMinutes(m.getUTCMinutes()-m.getUTCMinutes()%o);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return m;case g.HOUR:m.setUTCHours(m.getUTCHours()-m.getUTCHours()%o);m.setUTCMinutes(0);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return m;case g.DAY:if(o===7||o===14){m.setUTCDate(m.getUTCDate()-m.getUTCDay()+1)}m.setUTCHours(0);m.setUTCMinutes(0);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return m;case g.MONTH:m.setUTCMonth(m.getUTCMonth()-(m.getUTCMonth()-1)%o,1);m.setUTCHours(0);m.setUTCMinutes(0);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return m;case g.YEAR:m.setUTCFullYear(m.getUTCFullYear()-m.getUTCFullYear()%o,1,1);m.setUTCHours(0);m.setUTCMinutes(0);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return n}}};g.parseCodes.C=g.parseCodes.c;return g}());Ext.Function=(function(){var b=0,m,e=[],n=[],i=0,j={},h=window,d=Ext.global,g=!!(d.setImmediate&&d.clearImmediate),l=h.requestAnimationFrame||h.webkitRequestAnimationFrame||h.mozRequestAnimationFrame||h.oRequestAnimationFrame||function(r){var o=Ext.now(),p=Math.max(0,16-(o-b)),q=h.setTimeout(function(){r(o+p)},p);b=o+p;return q},c=function(){var o=e.length,r,p,q;m=null;for(p=0;p0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(s)}else{s()}},q)}s();return 0},interval:function(s,q,r,p,o){s=Ext.Function.bind(s,r,p,o);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(s)}else{s()}},q)},createSequence:function(p,q,o){if(!q){return p}else{return function(){var r=p.apply(this,arguments);q.apply(o||this,arguments);return r}}},createBuffered:function(s,p,r,q){var o;return function(){var u=q||Array.prototype.slice.call(arguments,0),t=r||this;if(o){clearTimeout(o)}o=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(s,t,u)}else{s.apply(t,u)}},p)}},createAnimationFrame:function(r,q,p,s){var o;s=s||3;return function(){var t=p||Array.prototype.slice.call(arguments,0);q=q||this;if(s===3&&o){k.cancelAnimationFrame(o)}if((s&1)||!o){o=k.requestAnimationFrame(function(){o=null;r.apply(q,t)})}}},requestAnimationFrame:function(r,q,o){var s=++i,p=Array.prototype.slice.call(arguments,0);p[3]=s;j[s]=1;e.push(p);if(!m){m=l(Ext.elevateFunction?a:c)}return s},cancelAnimationFrame:function(o){delete j[o]},createThrottled:function(s,p,r){var t=0,o,q,v,u=function(){if(Ext.elevateFunction){Ext.elevateFunction(s,r,q)}else{s.apply(r,q)}t=Ext.now();v=null};return function(){if(!r){r=this}o=Ext.now()-t;q=arguments;if(o>=p){clearTimeout(v);u()}else{if(!v){v=Ext.defer(u,p-o)}}}},createBarrier:function(q,p,o){return function(){if(!--q){p.apply(o,arguments)}}},interceptBefore:function(p,o,r,q){var s=p[o]||Ext.emptyFn;return(p[o]=function(){var t=r.apply(q||this,arguments);s.apply(this,arguments);return t})},interceptAfter:function(p,o,r,q){var s=p[o]||Ext.emptyFn;return(p[o]=function(){s.apply(this,arguments);return r.apply(q||this,arguments)})},interceptAfterOnce:function(q,p,s,r){var t=q[p],o;o=function(){var u;if(t){t.apply(this,arguments)}u=s.apply(r||this,arguments);q[p]=t;q=p=s=r=t=o=null;return u};q[p]=o;return o},makeCallback:function(p,o){return function(){return o[p].apply(o,arguments)}},memoize:function(r,q,o){var p={},s=o&&Ext.isFunction(o);return function(u){var t=s?o.apply(q,arguments):u;if(!(t in p)){p[t]=r.apply(q,arguments)}return p[t]}}};Ext.asap=g?function(p,o,q){if(o!=null||q!=null){p=k.bind(p,o,q)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(p)}else{p()}})}:function(p,o,q){if(o!=null||q!=null){p=k.bind(p,o,q)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(p)}else{p()}},0,true)},Ext.asapCancel=g?function(o){clearImmediate(o)}:function(o){clearTimeout(o)};Ext.defer=k.defer;Ext.interval=k.interval;Ext.pass=k.pass;Ext.bind=k.bind;Ext.deferCallback=k.requestAnimationFrame;return k})();Ext.Number=(new function(){var d=this,c=(0.9).toFixed()!=="1",b=Math,a={count:false,inclusive:false,wrap:true};Ext.apply(d,{MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-(b.pow(2,53)-1),MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||b.pow(2,53)-1,Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:true},a),INCLUSIVE:Ext.applyIf({inclusive:true},a),NOWRAP:Ext.applyIf({wrap:false},a)},clipIndices:function(m,n,h){h=h||a;var g=0,l=h.wrap,k,e,j;n=n||[];for(j=0;j<2;++j){k=e;e=n[j];if(e==null){e=g}else{if(j&&h.count){e+=k;e=(e>m)?m:e}else{if(l){e=(e<0)?(m+e):e}if(j&&h.inclusive){++e}e=(e<0)?0:((e>m)?m:e)}}g=m}n[0]=k;n[1]=(eg)?g:e)},snap:function(i,g,h,j){var e;if(i===undefined||i=g){i+=g}else{if(e*2<-g){i-=g}}}}return d.constrain(i,h,j)},snapInRange:function(i,e,h,j){var g;h=(h||0);if(i===undefined||i=e){i+=e}}if(j!==undefined){if(i>(j=d.snapInRange(j,e,h))){i=j}}return i},roundToNearest:function(g,e){e=e||1;return e*b.round(g/e)},sign:b.sign||function(e){e=+e;if(e===0||isNaN(e)){return e}return(e>0)?1:-1},log10:b.log10||function(e){return b.log(e)*b.LOG10E},isEqual:function(g,e,h){return b.abs(g-e)0){o=s.split("=");A=o[0];A=A.replace(g,"%20");A=decodeURIComponent(A);r=o[1];if(r!==undefined){r=r.replace(g,"%20");r=decodeURIComponent(r)}else{r=""}if(!v){if(y.hasOwnProperty(A)){if(!Ext.isArray(y[A])){y[A]=[y[A]]}y[A].push(r)}else{y[A]=r}}else{n=A.match(c);x=A.match(a);A=x[0];p=[];if(n===null){y[A]=r;continue}for(t=0,h=n.length;t@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(c){var b=c,a;if(c&&c.charAt(0)==="<"){a=Ext._resourcePoolRe.exec(c);if(a){b=Ext.getResourcePath(a[3],a[1],a[2])}}return b},urlEncode:function(){var a=Ext.Array.from(arguments),b="";if(Ext.isString(a[1])){b=a[1]+"&";a[1]=false}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(c){var b=Ext._scrollbarSize;if(c||!b){var a=document.body,d=document.createElement("div");d.style.width=d.style.height="100px";d.style.overflow="scroll";d.style.position="absolute";a.appendChild(d);Ext._scrollbarSize=b={width:d.offsetWidth-d.clientWidth,height:d.offsetHeight-d.clientHeight};a.removeChild(d)}return b},typeOf:(function(){var a=/\S/,c=Object.prototype.toString,d={number:1,string:1,"boolean":1,"undefined":1},b={"[object Array]":"array","[object Date]":"date","[object Boolean]":"boolean","[object Number]":"number","[object RegExp]":"regexp"};return function(h){if(h===null){return"null"}var g=typeof h,e,i;if(d[g]){return g}e=b[i=c.call(h)];if(e){return e}if(g==="function"){return"function"}if(g==="object"){if(h.nodeType!==undefined){if(h.nodeType===3){return a.test(h.nodeValue)?"textnode":"whitespace"}else{return"element"}}return"object"}return i}}()),factory:function(b,e,a,g){var d=Ext.ClassManager,c;if(!b||b.isInstance){if(a&&a!==b){a.destroy()}return b}if(g){if(typeof b==="string"){return d.instantiateByAlias(g+"."+b)}else{if(Ext.isObject(b)&&"type" in b){return d.instantiateByAlias(g+"."+b.type,b)}}}if(b===true){return a||Ext.create(e)}if("xtype" in b){c=d.instantiateByAlias("widget."+b.xtype,b)}else{if("xclass" in b){c=Ext.create(b.xclass,b)}}if(c){if(a){a.destroy()}return c}if(a){return a.setConfig(b)}return Ext.create(e,b)},log:(function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}())});(function(){var d=[""],i=/([^\d\.])/,b=/[^\d]/g,a=/[\-+]/g,h=/\s/g,c=/_/g,g={classic:1,modern:1},e;Ext.Version=e=function(r,n){var s=this,l=s.padModes,j,p,m,o,t,k,q;if(r.isVersion){r=r.version}s.version=q=String(r).toLowerCase().replace(c,".").replace(a,"");j=q.charAt(0);if(j in l){q=q.substring(1);m=l[j]}else{m=n?l[n]:0}s.pad=m;k=q.search(i);s.shortVersion=q;if(k!==-1){s.release=t=q.substr(k,r.length);s.shortVersion=q.substr(0,k);t=e.releaseValueMap[t]||t}s.releaseValue=t||m;s.shortVersion=s.shortVersion.replace(b,"");s.parts=o=q.split(".");for(p=o.length;p--;){o[p]=parseInt(o[p],10)}if(m===Infinity){o.push(m)}s.major=o[0]||m;s.minor=o[1]||m;s.patch=o[2]||m;s.build=o[3]||m;return s};e.prototype={isVersion:true,padModes:{"~":NaN,"^":Infinity},release:"",compareTo:function(t){var u=this,n=u.pad,r=u.parts,v=r.length,m=t.isVersion?t:new e(t),k=m.pad,q=m.parts,p=q.length,j=Math.max(v,p),o,l,s;for(o=0;os){return 1}}l=u.releaseValue;s=m.releaseValue;if(ls){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(j){return this.compareTo(j)>0},isGreaterThanOrEqual:function(j){return this.compareTo(j)>=0},isLessThan:function(j){return this.compareTo(j)<0},isLessThanOrEqual:function(j){return this.compareTo(j)<=0},equals:function(j){return this.compareTo(j)===0},match:function(j){j=String(j);return this.version.substr(0,j.length)===j},toArray:function(){var j=this;return[j.getMajor(),j.getMinor(),j.getPatch(),j.getBuild(),j.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(j){return this.compareTo(j)>0},lt:function(j){return this.compareTo(j)<0},gtEq:function(j){return this.compareTo(j)>=0},ltEq:function(j){return this.compareTo(j)<=0}};Ext.apply(e,{aliases:{from:{extjs:"ext",core:"core",touch:"modern"},to:{ext:["extjs"],core:["core"],modern:["touch"]}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,"#":-2,p:-1,pl:-1},getComponentValue:function(j){return !j?0:(isNaN(j)?this.releaseValueMap[j]||j:parseInt(j,10))},compare:function(l,k){var j=l.isVersion?l:new e(l);return j.compareTo(k)},set:function(o,m,l){var k=e.aliases.to[m],j=l.isVersion?l:new e(l),n;o[m]=j;if(k){for(n=k.length;n-->0;){o[k[n]]=j}}return j}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(k){var j=Ext.compatVersions,l;if(!k){l=j.ext||j.touch||j.core}else{l=j[e.aliases.from[k]||k]}return l||Ext.getVersion(k)},setCompatVersion:function(k,j){e.set(Ext.compatVersions,k,j)},setVersion:function(k,j){if(k in g){Ext.toolkit=k}Ext.lastRegisteredVersion=e.set(Ext.versions,k,j);return this},getVersion:function(k){var j=Ext.versions;if(!k){return j.ext||j.touch||j.core}return j[e.aliases.from[k]||k]},checkVersion:function(p,x){var t=Ext.isArray(p),l=e.aliases.from,y=t?p:d,k=y.length,m=Ext.versions,w=m.ext||m.touch,q,v,s,n,o,j,z,r,u;if(!t){d[0]=p}for(q=0;q=0){z=z.replace(h,"")}v=z.indexOf("@");if(v<0){r=z;u=w}else{j=z.substring(0,v);if(!(u=m[l[j]||j])){if(x){return false}continue}r=z.substring(v+1)}v=r.indexOf("-");if(v<0){if(r.charAt(v=r.length-1)==="+"){n=r.substring(0,v);o=null}else{n=o=r}}else{if(v>0){n=r.substring(0,v);o=r.substring(v+1)}else{n=null;o=r.substring(v+1)}}s=true;if(n){n=new e(n,"~");s=n.ltEq(u)}if(s&&o){o=new e(o,"~");s=o.gtEq(u)}}if(s){if(!x){return true}}else{if(x){return false}}}return !!x},deprecate:function(j,l,m,k){if(e.compare(Ext.getVersion(j),l)<1){m.call(k)}}})}());(function(d){var e=(d&&d.packages)||{},c=d&&d.compatibility,b,a;for(b in e){a=e[b];Ext.setVersion(b,a.version)}if(c){if(Ext.isString(c)){Ext.setCompatVersion("core",c)}else{for(b in c){Ext.setCompatVersion(b,c[b])}}}if(!e.ext&&!e.touch){Ext.setVersion("ext","6.2.0.981");Ext.setVersion("core","6.2.0.981")}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:"_"+b,initializing:"is"+a+"Initializing",apply:"apply"+a,update:"update"+a,get:"get"+a,set:"set"+a,initGet:"initGet"+a,changeEvent:b.toLowerCase()+"change"};c.root=c};Ext.Config.map={};Ext.Config.get=function(b){var c=Ext.Config.map,a=c[b]||(c[b]=new Ext.Config(b));return a};Ext.Config.prototype={self:Ext.Config,isConfig:true,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(g,b,e,d){var a,c;if(!b){a=g}else{if(!g){a=b}else{a=Ext.Object.chain(b);for(c in g){if(!d||!(c in a)){a[c]=g[c]}}}}return a},mergeSets:function(e,c,a){var b=c?Ext.Object.chain(c):{},d,g;if(e instanceof Array){for(d=e.length;d--;){g=e[d];if(!a||!(g in b)){b[g]=true}}}else{if(e){if(e.constructor===Object){for(d in e){g=e[d];if(!a||!(d in b)){b[d]=g}}}else{if(!a||!(e in b)){b[e]=true}}}}return b},makeGetter:function(){var a=this.name,b=this.names.internal;return function(){var c=this.$configPrefixed?b:a;return this[c]}},makeInitGetter:function(){var a=this.name,e=this.names,d=e.set,b=e.get,c=e.initializing;return function(){var g=this;g[c]=true;delete g[b];g[d](g.config[a]);delete g[c];return g[b].apply(g,arguments)}},makeSetter:function(){var a=this.name,e=this.names,c=e.internal,d=e.get,b=e.apply,h=e.update,g;g=function(l){var k=this,j=k.$configPrefixed?c:a,i=k[j];delete k[d];if(!k[b]||(l=k[b](l,i))!==undefined){if(l!==(i=k[j])){k[j]=l;if(k[h]){k[h](l,i)}}}return k};g.$isDefault=true;return g},makeEventedSetter:function(){var b=this.name,h=this.names,j=h.internal,a=h.get,i=h.apply,d=h.update,g=h.changeEvent,e=function(m,n,k,l){m[l]=n;if(m[d]){m[d](n,k)}},c;c=function(n){var m=this,l=m.$configPrefixed?j:b,k=m[l];delete m[a];if(!m[i]||(n=m[i](n,k))!==undefined){if(n!==(k=m[l])){if(m.isConfiguring){m[l]=n;if(m[d]){m[d](n,k)}}else{m.fireEventedAction(g,[m,n,k],e,m,[m,n,k,l])}}}return m};c.$isDefault=true;return c}};(function(){var b=Ext.Config,c=b.map,a=Ext.Object;Ext.Configurator=function(d){var g=this,e=d.prototype,h=d.superclass?d.superclass.self.$config:null;g.cls=d;g.superCfg=h;if(h){g.configs=a.chain(h.configs);g.cachedConfigs=a.chain(h.cachedConfigs);g.initMap=a.chain(h.initMap);g.values=a.chain(h.values);g.needsFork=h.needsFork}else{g.configs={};g.cachedConfigs={};g.initMap={};g.values={}}e.config=e.defaultConfig=g.values;d.$config=g};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:false,initList:null,add:function(u,d){var v=this,i=v.cls,l=v.configs,w=v.cachedConfigs,n=v.initMap,q=i.prototype,x=d&&d.$config.configs,e=v.values,k,m,t,g,h,j,y,p,o,r;for(y in u){r=u[y];k=r&&r.constructor===Object;m=k&&"$value" in r?r:null;t=false;if(m){t=!!m.cached;r=m.$value;k=r&&r.constructor===Object}g=m&&m.merge;h=l[y];if(h){if(d){g=h.merge;if(!g){continue}m=null}else{g=g||h.merge}j=e[y];if(g){r=g.call(h,r,j,i,d)}else{if(k){if(j&&j.constructor===Object){r=a.merge({},j,r)}}}}else{if(x){h=x[y];m=null}else{h=b.get(y)}l[y]=h;if(h.cached||t){w[y]=true}p=h.names;if(!q[o=p.get]){q[o]=h.getter||h.getGetter()}if(!q[o=p.set]){q[o]=(m&&m.evented)?(h.eventedSetter||h.getEventedSetter()):(h.setter||h.getSetter())}}if(m){if(h.owner!==i){l[y]=h=Ext.Object.chain(h);h.owner=i}Ext.apply(h,m);delete h.$value}if(!v.needsFork&&r&&(r.constructor===Object||r instanceof Array)){v.needsFork=true}if(r!==null){n[y]=true}else{if(q.$configPrefixed){q[l[y].names.internal]=null}else{q[l[y].name]=null}if(y in n){n[y]=false}}e[y]=r}},configure:function(y,m){var A=this,l=A.configs,n=A.initMap,p=A.initListMap,w=A.initList,q=A.cls.prototype,e=A.values,r=0,t=!w,g,h,j,v,u,k,o,B,s,z,x,d;e=A.needsFork?a.fork(e):a.chain(e);y.isConfiguring=true;if(t){A.initList=w=[];A.initListMap=p={};y.isFirstInstance=true;for(B in n){h=l[B];z=h.cached;if(n[B]){o=h.names;s=e[B];if(!q[o.set].$isDefault||q[o.apply]||q[o.update]||typeof s==="object"){if(z){(g||(g=[])).push(h)}else{w.push(h);p[B]=true}y[o.get]=h.initGetter||h.getInitGetter()}else{q[h.getInternalName(q)]=s}}else{if(z){q[h.getInternalName(q)]=undefined}}}}k=g&&g.length;if(k){for(v=0;v0){for(o=0;og.maxSize){g.unlinkEntry(c.prev,true);--g.count}}return e.value},evict:Ext.emptyFn,linkEntry:function(d){var c=this.head,e=c.next;d.next=e;d.prev=c;c.next=d;e.prev=d},unlinkEntry:function(e,g){var c=e.next,d=e.prev;d.next=c;c.prev=d;if(g){this.evict(e.key,e.value)}}};a.destroy=a.clear}());(function(){var d,c=Ext.Base,e=c.$staticMembers,b=function(h,g){return(h.length-g.length)||((hg)?1:0))};function a(h){function g(){return this.constructor.apply(this,arguments)||null}return g}Ext.Class=d=function(h,i,g){if(typeof h!="function"){g=i;i=h;h=null}if(!i){i={}}h=d.create(h,i);d.process(h,i,g);return h};Ext.apply(d,{makeCtor:a,onBeforeCreated:function(h,i,g){h.addMembers(i);g.onCreated.call(h,h)},create:function(g,k){var j=e.length,h;if(!g){g=a()}while(j--){h=e[j];g[h]=c[h]}return g},process:function(g,o,k){var h=o.preprocessors||d.defaultPreprocessors,r=this.preprocessors,u={onBeforeCreated:this.onBeforeCreated},t=[],v,n,m,s,l,q,p;delete o.preprocessors;g._classHooks=u;for(m=0,s=h.length;m0){k=g.test(r[o])}r=d[w];if(r&&!k){o=r.length;while(!k&&o-->0){k=g.test(r[o])}}}if(k){u[w]=1;l.push(w)}}}}}return l},getPath:function(b){var c=this,e=c.paths,a="",d;if(b in e){a=e[b]}else{d=c.nameToPrefix[b]||(c.nameToPrefix[b]=c.getPrefix(b));if(d){b=b.substring(d.length+1);a=e[d];if(a){a+="/"}}a+=b.replace(c.dotRe,"/")+".js"}return a},getPrefix:function(h){if(h in this.paths){return h}else{if(h in this.nameToPrefix){return this.nameToPrefix[h]}}var e=this.getPrefixes(),b=h.length,i,c,a,g,d,k;while(b-->0){i=e[b];if(i){c=h.charAt(b);if(c!=="."){continue}a=h.substring(0,b);for(d=0,k=i.length;d0){A=h[u];v=w;w=A.value||w[A.name];if(!w&&z){v[A.name]=w={}}}return w},setNamespace:function(v,x){var w=c.getNamespaceEntry(v),u=Ext.global;if(w.parent){u=c.lookupName(w.parent,true)}u[w.name]=x;return x},setXType:function(u,B){var w=u.$className,A=w?u:c.get(w=u),x=A.prototype,y=x.xtypes,v=x.xtypesChain,z=x.xtypesMap;if(!x.hasOwnProperty("xtypes")){x.xtypes=y=[];x.xtypesChain=v=v?v.slice(0):[];x.xtypesMap=z=Ext.apply({},z)}c.addAlias(w,"widget."+B,true);y.push(B);v.push(B);z[B]=true},set:function(u,w){var v=c.getName(w);c.classes[u]=c.setNamespace(u,w);if(v&&v!==u){c.addAlternate(v,u)}return c},get:function(u){return c.classes[u]||c.lookupName(u,false)},addNameAliasMappings:function(u){c.addAlias(u)},addNameAlternateMappings:function(u){c.addAlternate(u)},getByAlias:function(u){return c.get(c.getNameByAlias(u))},getByConfig:function(v,w){var x=v.xclass,u;if(x){u=x}else{u=v.xtype;if(u){w="widget."}else{u=v.type}u=c.getNameByAlias(w+u)}return c.get(u)},getName:function(u){return u&&u.$className||""},getClass:function(u){return u&&u.self||null},create:function(v,x,u){var w=b(v);if(typeof x==="function"){x=x(w)}x.$className=v;return new q(w,x,function(){var y=x.postprocessors||c.defaultPostprocessors,F=c.postprocessors,G=[],E,A,D,z,C,B,H;delete x.postprocessors;for(A=0,D=y.length;A0;){u=c.lookupName(arguments[v],true)}return u}});Ext.addRootNamespaces=c.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;q.registerPreprocessor("className",function(u,v){if("$className" in v){u.$className=v.$className}},true,"first");q.registerPreprocessor("alias",function(F,z){var D=F.prototype,w=e(z.xtype),u=e(z.alias),G="widget.",E=G.length,A=Array.prototype.slice.call(D.xtypesChain||[]),x=Ext.merge({},D.xtypesMap||{}),y,C,B,v;for(y=0,C=u.length;y=p){Ext[n+"p"]=true}}}if(v.is.Opera&&parseInt(d,10)<=12){Ext.isOpera12m=true}Ext.chromeVersion=Ext.isChrome?d:0;Ext.firefoxVersion=Ext.isFirefox?d:0;Ext.ieVersion=Ext.isIE?d:0;Ext.operaVersion=Ext.isOpera?d:0;Ext.safariVersion=Ext.isSafari?d:0;Ext.webKitVersion=Ext.isWebKit?d:0;this.setFlag(q+d,true,o);this.setFlag(q+m.getShortVersion())}for(p in c){if(c.hasOwnProperty(p)){w=c[p];this.setFlag(w,q===w)}}this.setFlag(w);if(g){this.setFlag(t+(g.getMajor()||""));this.setFlag(t+g.getShortVersion())}for(p in k){if(k.hasOwnProperty(p)){w=k[p];this.setFlag(w,t===w,o)}}this.setFlag("Standalone",!!navigator.standalone);this.setFlag("Ripple",!!document.getElementById("tinyhippos-injected")&&!Ext.isEmpty(window.top.ripple));this.setFlag("WebWorks",!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){j=true;this.setFlag("PhoneGap");this.setFlag("Cordova")}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(u)){j=true}this.setFlag("WebView",j);this.isStrict=Ext.isStrict=document.compatMode==="CSS1Compat";this.isSecure=Ext.isSecure;this.identity=q+d+(this.isStrict?"Strict":"Quirks")};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{webkit:"WebKit",gecko:"Gecko",presto:"Presto",trident:"Trident",other:"Other"},enginePrefixes:{webkit:"AppleWebKit/",gecko:"Gecko/",presto:"Presto/",trident:"Trident/"},styleDashPrefixes:{WebKit:"-webkit-",Gecko:"-moz-",Trident:"-ms-",Presto:"-o-",Other:""},stylePrefixes:{WebKit:"Webkit",Gecko:"Moz",Trident:"ms",Presto:"O",Other:""},propertyPrefixes:{WebKit:"webkit",Gecko:"moz",Trident:"ms",Presto:"o",Other:""},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(a,c,b){if(c===undefined){c=true}this.is[a]=c;this.is[a.toLowerCase()]=c;if(b){Ext["is"+a]=c}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(a){var b=this.propertyPrefixes[this.engineName];if(b.length>0){return b+Ext.String.capitalize(a)}return a},getPreferredTranslationMethod:function(a){if(typeof a==="object"&&"translationMethod" in a&&a.translationMethod!=="auto"){return a.translationMethod}else{return"csstransform"}}};(function(a){Ext.browser=new Ext.env.Browser(a,true);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":"about:blank"}(Ext.global.navigator.userAgent));Ext.env.OS=function(p,b,m){var l=this,k=Ext.Boot.osNames,d=Ext.Boot.osPrefixes,a,j="",g=l.is,c,h,e,o,n;m=m||Ext.browser;for(c in d){if(d.hasOwnProperty(c)){h=d[c];e=p.match(new RegExp("(?:"+h+")([^\\s;]+)"));if(e){a=k[c];n=e[1];if(n&&n==="HTC_"){j=new Ext.Version("2.3")}else{if(n&&n==="Silk/"){j=new Ext.Version("2.3")}else{j=new Ext.Version(e[e.length-1])}}break}}}if(!a){a=k[(p.toLowerCase().match(/mac|win|linux/)||["other"])[0]];j=new Ext.Version("")}this.name=a;this.version=j;if(p.match(/ipad/i)){b="iPad"}if(b){this.setFlag(b.replace(/ simulator$/i,""))}this.setFlag(a);if(j){this.setFlag(a+(j.getMajor()||""));this.setFlag(a+j.getShortVersion())}for(c in k){if(k.hasOwnProperty(c)){o=k[c];if(!g.hasOwnProperty(a)){this.setFlag(o,(a===o))}}}if(this.name==="iOS"&&window.screen.height===568){this.setFlag("iPhone5")}if(m.is.Safari||m.is.Silk){if(this.is.Android2||this.is.Android3||m.version.shortVersion===501){m.setFlag("AndroidStock")}if(this.is.Android4){m.setFlag("AndroidStock");m.setFlag("AndroidStock4")}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(a,b){if(b===undefined){b=true}if(this.flags){this.flags[a]=b}this.is[a]=b;this.is[a.toLowerCase()]=b;return this}};(function(){var a=Ext.global.navigator,h=a.userAgent,g=Ext.env.OS,e=(Ext.is||(Ext.is={})),i,d,b;g.prototype.flags=e;Ext.os=i=new g(h,a.platform);d=i.name;Ext["is"+d]=true;Ext.isMac=e.Mac=e.MacOS;var j=window.location.search.match(/deviceType=(Tablet|Phone)/),c=window.deviceType;if(j&&j[1]){b=j[1]}else{if(c==="iPhone"){b="Phone"}else{if(c==="iPad"){b="Tablet"}else{if(!i.is.Android&&!i.is.iOS&&!i.is.WindowsPhone&&/Windows|Linux|MacOS/.test(d)){b="Desktop";Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else{if(i.is.iPad||i.is.RIMTablet||i.is.Android3||Ext.browser.is.Silk||(i.is.Android&&h.search(/mobile/i)===-1)){b="Tablet"}else{b="Phone"}}}}}i.setFlag(b,true);i.deviceType=b;delete g.prototype.flags}());Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a="div"}else{if(typeof a!=="string"){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(c,b){var d=this.getTestElement(b).style,a=Ext.String.capitalize(c);if(typeof d[c]!=="undefined"||typeof d[Ext.browser.getStylePrefix(c)+a]!=="undefined"){return true}return false},isStyleSupportedWithoutPrefix:function(b,a){var c=this.getTestElement(a).style;if(typeof c[b]!=="undefined"){return true}return false},isEventSupported:function(c,a){if(a===undefined){a=window}var e=this.getTestElement(a),b="on"+c.toLowerCase(),d=(b in e);if(!d){if(e.setAttribute&&e.removeAttribute){e.setAttribute(b,"");d=typeof e[b]==="function";if(typeof e[b]!=="undefined"){e[b]=undefined}e.removeAttribute(b)}}return d},getStyle:function(c,b){var a=c.ownerDocument.defaultView,d=(a?a.getComputedStyle(c,null):c.currentStyle);return(d||c.style)[b]},getSupportedPropertyName:function(b,a){var c=Ext.browser.getVendorProperyName(a);if(c in b){return c}else{if(a in b){return a}}return null},detect:function(j){var k=this,m=document,g=k.toRun||k.tests,e=g.length,b=m.createElement("div"),c=[],p=Ext.supports,o=k.has,a,i,h,d,l;b.innerHTML='
';if(j){m.body.appendChild(b)}d=k.preDetected[Ext.browser.identity]||[];while(e--){h=g[e];l=d[e];a=h.name;i=h.names;if(l===undefined){if(!j&&h.ready){c.push(h);continue}l=h.fn.call(k,m,b)}if(a){p[a]=o[a]=l}else{if(i){while(i.length){a=i.pop();p[a]=o[a]=l}}}}if(j){m.body.removeChild(b)}k.toRun=c},report:function(){var b=[],a=this.tests.length,c;for(c=0;c
";a=(b.childNodes.length===1);b.innerHTML="";return a}},{name:"Touch",fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return(Ext.supports.TouchEvents&&a!==1)||a>1}else{return Ext.supports.TouchEvents||a>0}}},{name:"TouchEvents",fn:function(){return this.isEventSupported("touchend")}},{name:"PointerEvents",fn:function(){return navigator.pointerEnabled}},{name:"MSPointerEvents",fn:function(){return navigator.msPointerEnabled}},{name:"Orientation",fn:function(){return("orientation" in window)&&this.isEventSupported("orientationchange")}},{name:"OrientationChange",fn:function(){return this.isEventSupported("orientationchange")}},{name:"DeviceMotion",fn:function(){return this.isEventSupported("devicemotion")}},{names:["Geolocation","GeoLocation"],fn:function(){return"geolocation" in window.navigator}},{name:"SqlDatabase",fn:function(){return"openDatabase" in window}},{name:"WebSockets",fn:function(){return"WebSocket" in window}},{name:"Range",fn:function(){return !!document.createRange}},{name:"CreateContextualFragment",fn:function(){var a=!!document.createRange?document.createRange():false;return a&&!!a.createContextualFragment}},{name:"History",fn:function(){return("history" in window&&"pushState" in window.history)}},{name:"Css3dTransforms",fn:function(){return this.has("CssTransforms")&&this.isStyleSupported("perspective")}},{name:"CssTransforms",fn:function(){return this.isStyleSupported("transform")}},{name:"CssTransformNoPrefix",fn:function(){return this.isStyleSupportedWithoutPrefix("transform")}},{name:"CssAnimations",fn:function(){return this.isStyleSupported("animationName")}},{names:["CssTransitions","Transitions"],fn:function(){return this.isStyleSupported("transitionProperty")}},{names:["Audio","AudioTag"],fn:function(){return !!this.getTestElement("audio").canPlayType}},{name:"Video",fn:function(){return !!this.getTestElement("video").canPlayType}},{name:"LocalStorage",fn:function(){try{if("localStorage" in window&&window.localStorage!==null){localStorage.setItem("sencha-localstorage-test","test success");localStorage.removeItem("sencha-localstorage-test");return true}}catch(a){}return false}},{name:"XHR2",fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&("withCredentials" in new XMLHttpRequest())}},{name:"XHRUploadProgress",fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&("upload" in a)&&("onprogress" in a.upload)}return false}},{name:"NumericInputPlaceHolder",fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:"matchesSelector",fn:function(){var b=document.documentElement,e="matches",d="webkitMatchesSelector",a="msMatchesSelector",c="mozMatchesSelector";return b[e]?e:b[d]?d:b[a]?a:b[c]?c:null}},{name:"RightMargin",ready:true,fn:function(b,c){var a=b.defaultView;return !(a&&a.getComputedStyle(c.firstChild.firstChild,null).marginRight!=="0px")}},{name:"DisplayChangeInputSelectionBug",fn:function(){var a=Ext.webKitVersion;return 0a";b=a.firstChild;a.innerHTML="
b
";return b.innerHTML!=="a"}},{name:"IncludePaddingInWidthCalculation",ready:true,fn:function(a,b){return b.childNodes[1].firstChild.offsetWidth===210}},{name:"IncludePaddingInHeightCalculation",ready:true,fn:function(a,b){return b.childNodes[1].firstChild.offsetHeight===210}},{name:"TextAreaMaxLength",fn:function(a){return("maxlength" in a.createElement("textarea"))}},{name:"GetPositionPercentage",ready:true,fn:function(a,b){return Ext.feature.getStyle(b.childNodes[2],"left")==="10%"}},{name:"PercentageHeightOverflowBug",ready:true,fn:function(d){var a=false,c,b;if(Ext.getScrollbarSize().height){b=this.getTestElement();c=b.style;c.height="50px";c.width="50px";c.overflow="auto";c.position="absolute";b.innerHTML=['
','
',"
"].join("");d.body.appendChild(b);if(b.firstChild.offsetHeight===50){a=true}d.body.removeChild(b)}return a}},{name:"xOriginBug",ready:true,fn:function(d,e){e.innerHTML='
';var c=document.getElementById("b1").getBoundingClientRect(),b=document.getElementById("b2").getBoundingClientRect(),a=document.getElementById("b3").getBoundingClientRect();return(b.left!==c.left&&a.right!==c.right)}},{name:"ScrollWidthInlinePaddingBug",ready:true,fn:function(d){var a=false,c,b;b=d.createElement("div");c=b.style;c.height="50px";c.width="50px";c.padding="10px";c.overflow="hidden";c.position="absolute";b.innerHTML='';d.body.appendChild(b);if(b.scrollWidth===70){a=true}d.body.removeChild(b);return a}},{name:"rtlVertScrollbarOnRight",ready:true,fn:function(c,d){d.innerHTML='
';var b=d.firstChild,a=b.firstChild;return(a.offsetLeft+a.offsetWidth!==b.offsetLeft+b.offsetWidth)}},{name:"rtlVertScrollbarOverflowBug",ready:true,fn:function(b,c){c.innerHTML='
';var a=c.firstChild;return a.clientHeight===a.offsetHeight}},{identity:"defineProperty",fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return false}return true}},{identify:"nativeXhr",fn:function(){if(typeof XMLHttpRequest!=="undefined"){return true}XMLHttpRequest=function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(a){return null}};return false}},{name:"SpecialKeyDownRepeat",fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(!(Ext.isGecko||Ext.isIE)||(Ext.isOpera&&Ext.operaVersion<12))}},{name:"EmulatedMouseOver",fn:function(){return Ext.os.is.iOS}},{name:"Hashchange",fn:function(){var a=document.documentMode;return"onhashchange" in window&&(a===undefined||a>7)}},{name:"FixedTableWidthBug",ready:true,fn:function(){if(Ext.isIE8){return false}var b=document.createElement("div"),a=document.createElement("div"),c;b.setAttribute("style","display:table;table-layout:fixed;");a.setAttribute("style","display:table-cell;min-width:50px;");b.appendChild(a);document.body.appendChild(b);b.offsetWidth;b.style.width="25px";c=b.offsetWidth;document.body.removeChild(b);return c===50}},{name:"FocusinFocusoutEvents",fn:function(){return !Ext.isGecko}},{name:"AsyncFocusEvents",fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:"accessibility",ready:true,fn:function(h){var a=h.body,i,d,e,b,c;function g(o){var j=[],l=0,n,k;if(o.indexOf("rgb(")!==-1){j=o.replace("rgb(","").replace(")","").split(", ")}else{if(o.indexOf("#")!==-1){n=o.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;k=o.match(n);if(k){j=["0x"+k[1],"0x"+k[2],"0x"+k[3]]}}}for(var m=0;m0};Ext.supports.HighContrastMode=!b.BackgroundImages;a.removeChild(i);i=d=null;return b}},{name:"ViewportUnits",ready:true,fn:function(e){if(Ext.isIE8){return false}var a=e.body,g=document.createElement("div"),d=g.currentStyle||g.style,c,b;a.appendChild(g);Ext.apply(d,{width:"50vw"});c=parseInt(window.innerWidth/2,10);b=parseInt((window.getComputedStyle?getComputedStyle(g,null):g.currentStyle).width,10);a.removeChild(g);g=null;return c===b}},{name:"CSSVariables",ready:false,fn:function(b){if(!window.getComputedStyle){return false}var a=window.getComputedStyle(b.documentElement);return a.getPropertyValue&&!!a.getPropertyValue("--x-supports-variables")}},{name:"Selectors2",ready:false,fn:function(b){try{return !!b.querySelectorAll(":scope")}catch(a){return false}}},{name:"CSSScrollSnap",ready:false,fn:function(b){var a=b.documentElement.style;return"scrollSnapType" in a||"webkitScrollSnapType" in a||"msScrollSnapType" in a}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||"").indexOf("ext-pauseReadyFire")>0?1:0,bound:0,delay:1,firing:false,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==="complete"){a.onReadyEvent({type:b.readyState||"body"})}else{a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener("deviceready",a.onReadyEvent,false)}b.addEventListener("DOMContentLoaded",a.onReadyEvent,false);window.addEventListener("load",a.onReadyEvent,false)}}},block:function(){++this.blocks;Ext.isReady=false},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=true;a.state=1;Ext.feature.detect(true);if(!a.delay){a.handleReady()}else{if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else{a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(a){var b=this;if(!b.timer){b.timer=Ext.defer(function(){b.timer=null;b.handleReady()},a||b.delay)}},invoke:function(b){var a=b.delay;if(a){Ext.defer(b.fn,a,b.scope)}else{if(Ext.elevateFunction){Ext.elevateFunction(b.fn,b.scope)}else{b.fn.call(b.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else{this.doInvokeAll()}},doInvokeAll:function(){var b=this,a=b.listeners,c;if(!b.blocks){Ext.isReady=true}b.firing=true;while(a.length){if(b.sortGeneration!==b.generation){b.sortGeneration=b.generation;a.sort(b.sortFn)}c=a.pop();if(b.blocks&&!c.dom){a.push(c);break}b.invoke(c)}b.firing=false},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:false,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(c,b,a){var d=Ext.env.Ready,e=d.makeListener(c,b,a);if(d.state===2&&!d.firing&&(e.dom||!d.blocks)){d.invoke(e)}else{d.listeners.push(e);++d.generation;if(!d.bound){d.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else{a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(d,c){return -((d.phase-c.phase)||(c.priority-d.priority)||(d.id-c.id))},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener("deviceready",a.onReadyEvent,false)}b.removeEventListener("DOMContentLoaded",a.onReadyEvent,false);window.removeEventListener("load",a.onReadyEvent,false)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=true;try{document.documentElement.doScroll("left")}catch(c){b=false}if(b&&document.body){a.onReadyEvent({type:"doScroll"})}else{a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var d=document,b;try{b=window.frameElement===undefined}catch(c){}if(!b||!d.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else{if(a.pollScroll()){return}}if(d.readyState==="complete"){a.onReadyEvent({type:"already "+(d.readyState||"body")})}else{d.attachEvent("onreadystatechange",a.onReadyStateChange);window.attachEvent("onload",a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent("onreadystatechange",a.onReadyStateChange);window.detachEvent("onload",a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:true};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()}());Ext.Loader=(new function(){var c=this,a=Ext.ClassManager,h=Ext.Boot,d=Ext.Class,j=Ext.env.Ready,i=Ext.Function.alias,g=["extend","mixins","requires"],m={},k=[],b=[],e=[],n={},l={enabled:true,scriptChainDelay:false,disableCaching:true,disableCachingParam:"_dc",paths:a.paths,preserveScripts:true,scriptCharset:undefined},o={disableCaching:true,disableCachingParam:true,preserveScripts:true,scriptChainDelay:"loadDelay"};Ext.apply(c,{isInHistory:m,isLoading:false,history:k,config:l,readyListeners:b,optionalRequires:e,requiresMap:n,hasFileLoadError:false,scriptsLoading:0,classesLoading:{},missingCount:0,missingQueue:{},syncModeEnabled:false,init:function(){var v=document.getElementsByTagName("script"),p=v[v.length-1].src,C=p.substring(0,p.lastIndexOf("/")+1),A=Ext._classPathMetadata,B=Ext.Microloader,r=Ext.manifest,s,u,x,z,w,y,t,q;if(!a.getPath("Ext")){a.setPath("Ext",C+"src")}if(A){Ext._classPathMetadata=null;c.addClassPathMappings(A)}if(r){s=r.loadOrder;w=Ext.Boot.baseUrl;if(s&&r.bootRelative){for(y=s.length,t=0;t1)?"es":"")+": "+t.join(", "))}if(x.length){c.loadScripts({url:x,_classNames:t,_urlByClass:z})}else{c.checkReady()}}else{if(y){y.call(A)}c.checkReady()}if(c.syncModeEnabled){if(s===1){return a.get(p[0])}}return c},makeLoadCallback:function(p,q){return function(){var s=[],r=p.length;while(r-->0){s[r]=a.get(p[r])}return q.apply(this,s)}},onLoadFailure:function(){var p=this,q=p.onError;c.hasFileLoadError=true;--c.scriptsLoading;if(q){q.call(p.userScope,p)}c.checkReady()},onLoadSuccess:function(){var x=this,u=x.onLoad,p=x._classNames,w=x._urlByClass,q=a.classState,v=c.missingQueue,t,r,s;--c.scriptsLoading;if(u){u.call(x.userScope,x)}for(r=0,s=p.length;r0},fireDelegated:function(g,e){this.firingObservable=g;return this.fire.apply(this,e)},fire:function(){var C=this,g=Ext.ComponentQuery,t=C.listeners,n=t.length,q=C.observable,u=q.isElement,B=q.isComponent,z=C.firingObservable,k,y,r,w,h,l,x,v,D,j,p,m,A,s,o;if(!C.suspended&&n>0){C.firing=true;h=arguments.length?d.call(arguments,0):[];x=h.length;if(u){A=h[0]}for(w=0;w4?r:l;r=l;for(l in r){if(r.hasOwnProperty(l)){j=r[l];if(!p.$eventOptions[l]){m.addManagedListener(p,l,j.fn||j,j.scope||r.scope||q,j.fn?j:i,true)}}}if(r&&r.destroyable){return new c(m,p,r)}}else{if(n!==e){p.doAddListener(l,n,q,r,null,m,m);if(!k&&r&&r.destroyable){return new c(m,p,l,n,q)}}}},removeManagedListener:function(q,l,o,r){var n=this,s,k,p,j,m;if(q.$observableDestroyed){return}if(typeof l!=="string"){s=l;for(l in s){if(s.hasOwnProperty(l)){k=s[l];if(!q.$eventOptions[l]){n.removeManagedListener(q,l,k.fn||k,k.scope||s.scope||r)}}}}else{p=n.managedListeners?n.managedListeners.slice():[];l=Ext.canonicalEventName(l);for(m=0,j=p.length;m0,i=this.events;if(!j&&k&&i){k=i[k];if(k&&k.isEvent){return k.isSuspended()}}return j},suspendEvents:function(i){++this.eventsSuspended;if(i&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var o=this,m=o.events,j=arguments.length,l,n,k;for(l=0;l0){o.push(i)}l--;if(l===0){r.resolve(o)}return i};p=function(i){g--;if(g===0){r.reject(new Error("Too few Promises were resolved."))}return i};for(n=k=0,m=j.length;k0){c.type=d.substring(0,b);c.defaultType=d.substring(b+1)}if(h){delete e.factoryConfig;Ext.apply(c,h)}a=Ext.Factory.define(c.type,c);if(g.create===Ext.Base.create){g.create=a}}},0,0,0,0,0,0,[Ext.mixin,"Factoryable"],0));(Ext.cmd.derive("Ext.data.request.Base",Ext.Base,{factoryConfig:{type:"request",defaultType:"ajax"},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=true}a.abort=Ext.emptyFn},createDeferred:function(){return(this.deferred=new Ext.Deferred())},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var c=this,b=c.deferred,a=c.result;c.clearTimer();if(b){if(c.success){b.resolve(a)}else{b.reject(a)}}},onTimeout:function(){var a=this;a.timedout=true;a.timer=null;a.abort(true)},getTimeout:function(){return this.timeout},clearTimer:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var b=this,a;a={request:b,requestId:b.id,status:b.aborted?-1:0,statusText:b.aborted?"transaction aborted":"communication failure",getResponseHeader:b._getHeader,getAllResponseHeaders:b._getHeaders};if(b.aborted){a.aborted=true}if(b.timedout){a.timedout=true}return a},_getHeader:function(a){var b=this.headers;return b&&b[a.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,"Base"],0));(Ext.cmd.derive("Ext.data.flash.BinaryXhr",Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=true;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById("ext-flash-polyfill");Ext.GlobalEvents.fireEvent("flashready")},flashPluginActive:false,flashPluginInjected:false,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(d,c,b){var a;a=this.liveConnections[Number(d)];if(a){a.onFlashStateChange(c,b)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var b=this,a,c;b.flashPolyfillEl=Ext.getBody().appendChild({id:"ext-flash-polyfill",cn:[{tag:"p",html:"To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed."},{tag:"a",href:"http://www.adobe.com/go/getflashplayer",cn:[{tag:"img",src:window.location.protocol+"//www.adobe.com/images/shared/download_buttons/get_flash_player.gif",alt:"Get Adobe Flash player"}]}]});a=[Ext.Loader.getPath("Ext.data.Connection"),"../../../plugins/flash/swfobject.js"].join("/");c="/plugins/flash/FlashPlugin.swf";if(Ext.flashPluginPath){c=Ext.flashPluginPath}Ext.Loader.loadScript({url:a,onLoad:function(){var e="11.4.0";var h="playerProductInstall.swf";var d={};var i={};i.quality="high";i.bgcolor="#ffffff";i.allowscriptaccess="sameDomain";i.allowfullscreen="true";var g={};g.id="ext-flash-polyfill";g.name="polyfill";g.align="middle";swfobject.embedSWF(c,"ext-flash-polyfill","0","0",e,h,d,i,g)},onError:function(){},scope:b});Ext.data.flash.BinaryXhr.flashPluginInjected=true}},readyState:0,status:0,statusText:"",responseBytes:null,javascriptId:null,constructor:function(a){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var b=this;Ext.apply(b,a);b.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=true;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener("flashready",a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(b,c){a.push(b+": "+c)});return a.join("\r\n")},getResponseHeader:function(b){var a=this.responseHeaders;return(a&&a[b])||null},open:function(g,c,d,a,b){var e=this;e.method=g;e.url=c;e.async=d!==false;e.user=a;e.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(a){var b=this;b.body=a;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener("flashready",b.onFlashReady,b)}else{this.onFlashReady()}},onFlashReady:function(){var c=this,b,a;c.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(c);b={method:c.method,url:c.url,user:c.user,password:c.password,mimeType:c.mimeType,requestHeaders:c.requestHeaders,body:c.body,javascriptId:c.javascriptId};a=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(b,a){this.requestHeaders[b]=a},onreadystatechange:Ext.emptyFn,parseData:function(b){var a=this;this.status=b.status||0;a.responseHeaders={};if(a.mimeType){a.responseHeaders["content-type"]=a.mimeType}if(b.reason=="complete"){this.responseBytes=b.data;a.responseHeaders["content-length"]=b.data.length}else{if(b.reason=="error"||b.reason=="securityError"){this.statusText=b.text;a.responseHeaders["content-length"]=0}}},onFlashStateChange:function(c,b){var a=this;if(c==4){a.parseData(b);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(c)}},1,0,0,0,0,0,[Ext.data.flash,"BinaryXhr"],0));(Ext.cmd.derive("Ext.data.request.Ajax",Ext.data.request.Base,{statics:{parseStatus:function(b,c){var a;if(c){if(c.responseType==="arraybuffer"){a=c.byteLength}else{if(c.responseText){a=c.responseText.length}}}b=b==1223?204:b;var e=(b>=200&&b<300)||b==304||(b==0&&Ext.isNumber(a)),d=false;if(!e){switch(b){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:d=true;break}}return{success:e,isException:d}}},start:function(e){var c=this,b=c.options,a=c.requestOptions,d=c.isXdr,h,g;h=c.xhr=c.openRequest(b,a,c.async,c.username,c.password);if(!d){g=c.setupHeaders(h,b,a.data,a.params)}if(c.async){if(!d){h.onreadystatechange=Ext.Function.bind(c.onStateChange,c)}}if(d){c.processXdrRequest(c,h)}Ext.data.request.Base.prototype.start.call(this,e);h.send(e);if(!c.async){return c.onComplete()}return c},abort:function(b){var a=this,d=a.xhr;if(b||a.isLoading()){try{d.onreadystatechange=null}catch(c){d.onreadystatechange=Ext.emptyFn}d.abort();Ext.data.request.Base.prototype.abort.call(this,b);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var a=this,d=a.xhr,b=d&&d.readyState,c=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!d||a.aborted||a.timedout){return false}if(c&&d instanceof c){return b!==4}return b!==0&&b!==4},openRequest:function(c,a,d,h,b){var e=this,g=e.newRequest(c);if(h){g.open(a.method,a.url,d,h,b)}else{if(e.isXdr){g.open(a.method,a.url)}else{g.open(a.method,a.url,d)}}if(c.binary||e.binary){if(window.Uint8Array){g.responseType="arraybuffer"}else{if(g.overrideMimeType){g.overrideMimeType("text/plain; charset=x-user-defined")}}}if(c.withCredentials||e.withCredentials){g.withCredentials=true}return g},newRequest:function(a){var b=this,c;if(a.binaryData){if(window.Uint8Array){c=b.getXhrInstance()}else{c=new Ext.data.flash.BinaryXhr()}}else{if(b.cors&&Ext.isIE9m){c=b.getXdrInstance();b.isXdr=true}else{c=b.getXhrInstance();b.isXdr=false}}return c},setupHeaders:function(o,p,g,d){var k=this,b=Ext.apply({},p.headers||{},k.defaultHeaders),n=k.defaultPostHeader,l=p.jsonData,a=p.xmlData,j="Content-Type",c=k.useDefaultXhrHeader,m,h;if(!b.hasOwnProperty(j)&&(g||d)){if(g){if(p.rawData){n="text/plain"}else{if(a&&Ext.isDefined(a)){n="text/xml"}else{if(l&&Ext.isDefined(l)){n="application/json"}}}}b[j]=n}if(c&&!b["X-Requested-With"]){b["X-Requested-With"]=k.defaultXhrHeader}if(b[j]===undefined||b[j]===null){delete b[j]}try{for(m in b){if(b.hasOwnProperty(m)){h=b[m];o.setRequestHeader(m,h)}}}catch(i){k.owner.fireEvent("exception",m,h)}return b},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else{Ext.raise({msg:"Your browser does not support CORS"})}return a},getXhrInstance:(function(){var b=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],c=0,a=b.length,g;for(;c=0){i=l.substr(0,g).toLowerCase();if(l.charAt(g+1)==" "){++g}b[i]=l.substr(g+1)}}d={request:h,requestId:h.id,status:j.status,statusText:j.statusText,getResponseHeader:function(m){return b[m.toLowerCase()]},getAllResponseHeaders:function(){return b}};if(c){h.processXdrResponse(d,j)}if(h.binary){d.responseBytes=h.getByteArray(j)}else{d.responseText=j.responseText;d.responseXML=j.responseXML}return d},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(k){var c=k.response,b=k.responseBody,l=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,j,g,d;if(k instanceof l){a=k.responseBytes}else{if(window.Uint8Array){a=c?new Uint8Array(c):[]}else{if(Ext.isIE9p){try{a=new VBArray(b).toArray()}catch(h){a=[]}}else{if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(k.responseBody,a=[])}else{a=[];j=k.responseText;g=j.length;for(d=0;d=500){this.run()}},run:function(){var e=this;if(!e.isRunning){return}var a=e.runningQueue,b=Ext.now(),c,d;e.lastRunTime=b;e.frameStartTime=b;a.push.apply(a,e.queue);for(c=0,d=a.length;c0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty("taskQueueTimer")){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}},1,0,0,0,0,0,[Ext,"AnimationQueue"],0));(Ext.cmd.derive("Ext.ComponentManager",Ext.Base,{alternateClassName:"Ext.ComponentMgr",singleton:true,count:0,typeName:"xtype",constructor:function(a){var b=this;Ext.apply(b,a||{});b.all={};b.references={};b.onAvailableCallbacks={}},create:function(a,b){if(typeof a==="string"){return Ext.widget(a)}if(a.isComponent){return a}if("xclass" in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(a){var e=this,d=e.all,c=a.getId(),b=e.onAvailableCallbacks;d[c]=a;if(a.getReference&&a.getReference()){e.references[c]=a}++e.count;if(!e.hasFocusListener){Ext.on("focus",e.onGlobalFocus,e);e.hasFocusListener=true}b=b&&b[c];if(b&&b.length){e.notifyAvailable(a)}},unregister:function(a){var b=a.getId();if(a.getReference&&a.getReference()){this.references[b]=null;delete this.references[b]}this.all[b]=null;delete this.all[b];this.count--},markReferencesDirty:function(){this.referencesDirty=true},fixReferences:function(){var c=this,b=c.references,a;if(c.referencesDirty){for(a in b){if(b.hasOwnProperty(a)){b[a].fixReference()}}c.referencesDirty=false}},onAvailable:function(h,c,b){var g=this,e=g.onAvailableCallbacks,a=g.all,d;if(h in a){d=a[h];c.call(b||d,d)}else{if(h){if(!Ext.isArray(e[h])){e[h]=[]}e[h].push(function(i){c.call(b||i,i)})}}},notifyAvailable:function(b){var a=this.onAvailableCallbacks[b&&b.getId()]||[];while(a.length){(a.shift())(b)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(i){var d=this,b=i.toElement,j=i.fromElement,h=Ext.Component.fromElement(b),a=Ext.Component.fromElement(j),c,g;if(h===a){return}c=d.getCommonAncestor(a,h);if(a&&!(a.destroyed||a.destroying)){if(a.handleBlurEvent){a.handleBlurEvent(i)}for(g=a;g&&g!==c;g=g.getRefOwner()){if(!(g.destroyed||g.destroying)){g.onFocusLeave({event:i.event,type:"focusleave",target:j,relatedTarget:b,fromComponent:a,toComponent:h})}}}if(h&&!(h.destroyed||h.destroying)){if(h.handleFocusEvent){h.handleFocusEvent(i)}for(g=h;g&&g!==c;g=g.getRefOwner()){g.onFocusEnter({event:i.event,type:"focusenter",relatedTarget:j,target:b,fromComponent:a,toComponent:h})}}},getCommonAncestor:function(b,a){if(b===a){return b}while(b&&!(b.isAncestor(a)||b===a)){b=b.getRefOwner()}return b},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(b,d,c){var h=Ext.getDom(b),a=this.all,e=0,j,g,i;if(typeof d!=="number"){j=Ext.getDom(d);d=Number.MAX_VALUE}while(h&&h.nodeType===1&&e0){for(;b.first&&c;c--){b.removeAtKey(b.first.key)}}}},0,0,0,0,0,0,[Ext.util,"LruCache"],0));(Ext.cmd.derive("Ext.ComponentQuery",Ext.Base,{singleton:true},0,0,0,0,0,0,[Ext,"ComponentQuery"],function(){var g=this,s=Ext.util.Operators,k=/(\d*)n\+?(\d*)/,e=/\D/,m=/^(\s)+/,l=/\\(.)/g,n=new Ext.util.LruCache({maxSize:100}),o=["var r = [],","i = 0,","it = items,","l = it.length,","c;","for (; i < l; i++) {","c = it[i];","if (c.{0}) {","r.push(c);","}","}","return r;"].join(""),p=function(u,t){return t.method.apply(this,[u].concat(t.args))},a=function(v,z){var t=[],w=0,y=v.length,x,u=z!==">";for(;w\^])\s?|\s|$)/,q=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,c=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:d,argTransform:function(t){if(t[1]!==undefined){t[1]=t[1].replace(l,"$1")}return t.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:b,argTransform:function(w){var t=w[0],x=w[1],u=w[2],v=w[4],y;if(v!==undefined){v=v.replace(l,"$1")}if(u==="/="){y=n.get(v);if(y){v=y}else{v=n.add(v,new RegExp(v))}}return[x,u,v]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:r,argTransform:function(t){if(t[2]!==undefined){t[2]=t[2].replace(l,"$1")}return t.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:o}];g.Query=Ext.extend(Object,{constructor:function(t){t=t||{};Ext.apply(this,t)},execute:function(v){var w=this.operations,u=[],y,x,t;for(x=0,t=w.length;x=0;--x){v=t[x];y=v.mode;if(y){if(y==="^"){u=a(u," ")}else{if(y===">"){A=[];for(w=0,z=u.length;w0){u=p(u,{method:i,args:[C.id,true]})}if(u.length===0){return false}}return true},getMatches:function(w,u){var t=u.length,v;for(v=0;v1}});Ext.apply(g,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(z,t){var x=0,y=z.length,w=[],v=-1,u;for(;x0){t.push(u[0])}return t},last:function(v){var t=v.length,u=[];if(t>0){u.push(v[t-1])}return u},focusable:function(u){var t=u.length,w=[],v=0,x;for(;vh.right){j=true;d[0]=(h.right-a.right)}if(a.left+d[0]h.bottom){j=true;d[1]=(h.bottom-a.bottom)}if(a.top+d[1]0){e[0]=d;g=true}else{e[0]=-10000}if(b&2&&(d=h.right-c.right)>0){e[1]=Math.max(0,a.getWidth()-d);g=true}else{e[1]=10000}if(b&4&&(d=h.bottom-c.bottom)>0){e[2]=Math.max(0,a.getHeight()-d);g=true}else{e[2]=10000}if(b&8&&(d=c.left-h.left)>0){e[3]=d;g=true}else{e[3]=-10000}l="rect(";for(j=0;j<4;++j){l+=Ext.Element.addUnits(e[j],"px");l+=(j===3)?")":","}a.dom.style.clip=l;a.addCls(n);if((m=a.shadow)&&(a=m.el)&&a.dom){e[2]-=m.offsets.y;e[3]-=m.offsets.x;l="rect(";for(j=0;j<4;++j){l+=Ext.Element.addUnits(e[j],"px");l+=(j===3)?")":","}a.dom.style.clip=l;if(g&&!Ext.supports.CSS3BoxShadow){a.dom.style.display="none"}else{a.dom.style.display="";a.addCls(n)}}},clearClip:function(){var b=this.el,a=this.clippedCls;b.dom.style.clip=Ext.isIE8?"auto":"";b.removeCls(a);if(b.shadow&&b.shadow.el&&b.shadow.el.dom){b.shadow.el.dom.style.clip=Ext.isIE8?"auto":"";if(!Ext.supports.CSS3BoxShadow){b.dom.style.display="";b.removeCls(a)}}}}},0,0,0,0,0,0,[Ext.util,"Positionable"],0));Ext.define("Ext.overrides.util.Positionable",{override:"Ext.util.Positionable",anchorTo:function(h,e,b,a,j,k){var g=this,i=!Ext.isEmpty(j),c=function(){g.mixins.positionable.alignTo.call(g,h,e,b,a);Ext.callback(k,g)},d=g.getAnchor();g.removeAnchor();Ext.apply(d,{fn:c,scroll:i});Ext.on("resize",c,null);if(i){Ext.getWin().on("scroll",c,null,{buffer:!isNaN(j)?j:50})}c();return g},getAnchor:function(){var b=this.el,c,a;if(!b||!b.dom){return}c=b.getData();a=c._anchor;if(!a){a=c._anchor={}}return a},alignTo:function(d,a,h,c){var g=this,e=g.el,b,i;if(g.isComponent&&g.getSizeModel().height.shrinkWrap){if(g.maxHeight){g.setMaxHeight(null)}b=true}i=g.getAlignToRegion(d,a,h,g.minHeight||150);g.setXY([i.x,i.y],e.anim&&!!c?e.anim(c):false);if(b&&(b=i.getHeight())!==g.getHeight()){g.setMaxHeight(b)}return g},removeAnchor:function(){var a=this.getAnchor();if(a&&a.fn){Ext.un("resize",a.fn);if(a.scroll){Ext.getWin().on("scroll",a.fn)}delete a.fn}return this},setBox:function(c,a){var b=this;if(c.isRegion){c={x:c.left,y:c.top,width:c.right-c.left,height:c.bottom-c.top}}if(a){b.constrainBox(c);b.animate(Ext.applyIf({to:c,listeners:{afteranimate:Ext.Function.bind(b.afterSetPosition,b,[c.x,c.y])}},a))}else{arguments.callee.$previous.call(this,c)}return b}});(Ext.cmd.derive("Ext.dom.UnderlayPool",Ext.Base,{constructor:function(a){this.elementConfig=a;this.cache=[]},checkOut:function(){var a=this.cache.shift();if(!a){a=Ext.Element.create(this.elementConfig);a.setVisibilityMode(2)}return a},checkIn:function(a){this.cache.push(a)},reset:function(){var a=this.cache,b=a.length;while(b--){a[b].destroy()}this.cache=[]}},1,0,0,0,0,0,[Ext.dom,"UnderlayPool"],0));(Ext.cmd.derive("Ext.dom.Underlay",Ext.Base,{constructor:function(a){Ext.apply(this,a)},beforeShow:Ext.emptyFn,getInsertionTarget:function(){return this.target},getPool:function(){return this.pool||(this.self.prototype.pool=new Ext.dom.UnderlayPool(this.elementConfig))},hide:function(){var b=this,a=b.el;if(a){a.hide();b.getPool().checkIn(a);b.el=null;b.hidden=true}},realign:function(i,h,a,j){var e=this,b=e.el,d=e.target,c=e.offsets,g=Math.max;if(b){if(i==null){i=d.getX()}if(h==null){h=d.getY()}if(a==null){a=d.getWidth()}if(j==null){j=d.getHeight()}if(c){i=i+c.x;h=h+c.y;a=g(a+c.w,0);j=g(j+c.h,0)}b.setXY([i,h]);b.setSize(a,j)}},setZIndex:function(a){this.zIndex=a;if(this.el){this.el.setStyle("z-index",a)}},show:function(){var b=this,d=b.target,g=b.zIndex,a=b.el,c=b.getInsertionTarget().dom,e;if(!a){a=b.el=b.getPool().checkOut()}b.beforeShow();if(g==null){g=(parseInt(d.getStyle("z-index"),10))}if(g){a.setStyle("z-index",g)}a.setStyle("position",b.fixed?"fixed":"");e=a.dom;if(e.nextSibling!==c){d.dom.parentNode.insertBefore(e,c)}a.show();b.realign();b.hidden=false}},1,0,0,0,0,0,[Ext.dom,"Underlay"],0));(Ext.cmd.derive("Ext.dom.Shadow",Ext.dom.Underlay,{alternateClassName:"Ext.Shadow",mode:"drop",offset:4,cls:"x-"+(!Ext.supports.CSS3BoxShadow?"ie":"css")+"-shadow",constructor:function(b){var d=this,e,c,g,a;Ext.dom.Underlay.prototype.constructor.call(this,b);d.elementConfig={cls:d.cls,role:"presentation"};g=d.offset;a=Math.floor(g/2);d.opacity=50;switch(d.mode.toLowerCase()){case"drop":e={x:0,y:0,w:g,h:g};if(Ext.supports.CSS3BoxShadow){c={x:g,y:g,h:-g,w:-g}}else{c={x:-a,y:-a,h:-a,w:-a}}break;case"sides":e={x:-g,y:0,w:g*2,h:g};if(Ext.supports.CSS3BoxShadow){c={x:0,y:g,h:-g,w:0}}else{c={x:1+a-2*g,y:-(1+a),h:-1,w:a-1}}break;case"frame":e={x:-g,y:-g,w:g*2,h:g*2};if(Ext.supports.CSS3BoxShadow){c={x:0,y:0,h:0,w:0}}else{c={x:1+a-2*g,y:1+a-2*g,h:g-a-1,w:g-a-1}}break;case"bottom":e={x:-g,y:0,w:g*2,h:g};if(Ext.supports.CSS3BoxShadow){c={x:0,y:g,h:-g,w:0}}else{c={x:0,y:g,h:0,w:0}}break}d.offsets=c;d.outerOffsets=e},getShadowSize:function(){var b=this,d=b.el?b.offset:0,a=[d,d,d,d],c=b.mode.toLowerCase();if(b.el&&c!=="frame"){a[0]=0;if(c=="drop"){a[3]=0}}return a},boxShadowProperty:(function(){var b="boxShadow",a=document.documentElement.style;if(!("boxShadow" in a)){if("WebkitBoxShadow" in a){b="WebkitBoxShadow"}else{if("MozBoxShadow" in a){b="MozBoxShadow"}}}return b}()),beforeShow:function(){var b=this,a=b.el.dom.style,c=b.shim;if(Ext.supports.CSS3BoxShadow){a[b.boxShadowProperty]="0 0 "+(b.offset+2)+"px #888"}else{a.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+b.opacity+") progid:DXImageTransform.Microsoft.Blur(pixelradius="+(b.offset)+")"}if(c){c.realign()}},setOpacity:function(a){var b=this.el;if(b){if(Ext.isIE&&!Ext.supports.CSS3BoxShadow){a=Math.floor(a*100/2)/100}this.opacity=a;b.setOpacity(a)}}},1,0,0,0,0,0,[Ext.dom,"Shadow",Ext,"Shadow"],0));(Ext.cmd.derive("Ext.dom.Shim",Ext.dom.Underlay,{cls:"x-shim",constructor:function(a){Ext.dom.Underlay.prototype.constructor.call(this,a);this.elementConfig={tag:"iframe",cls:this.cls,role:"presentation",frameBorder:"0",src:Ext.SSL_SECURE_URL,tabindex:"-1"}},getInsertionTarget:function(){var a=this.shadow;return(a&&a.el)||this.target}},1,0,0,0,0,0,[Ext.dom,"Shim"],0));(Ext.cmd.derive("Ext.dom.ElementEvent",Ext.util.Event,{addListener:function(h,l,m,c,e){var g=this,i=false,a=g.name,k=Ext.event.publisher.Dom.instance.directEvents[a],b,d,j;m=m||{};if(m.delegated===false||k){if(k&&m.delegate){m.capture=true}if(m.capture){j=g.directCaptures||(g.directCaptures=new Ext.util.Event(g.observable,a));i=j.addListener(h,l,m,c,e)}else{d=g.directs||(g.directs=new Ext.util.Event(g.observable,a));i=d.addListener(h,l,m,c,e)}}else{if(m.capture){b=g.captures||(g.captures=new Ext.util.Event(g.observable,a));i=b.addListener(h,l,m,c,e)}else{i=Ext.util.Event.prototype.addListener.call(this,h,l,m,c,e)}}return i},removeListener:function(e,d){var g=this,a=g.captures,c=g.directs,h=g.directCaptures,i=false,b=g.findListener(e,d);if(b!==-1){i=Ext.util.Event.prototype.removeListener.call(this,e,d,b)}else{if(c){b=c.findListener(e,d)}if(b!==-1){i=c.removeListener(e,d,b)}else{if(a){b=a.findListener(e,d)}if(b!==-1){i=a.removeListener(e,d,b)}else{if(h){b=h.findListener(e,d);if(b!==-1){i=h.removeListener(e,d,b)}}}}}return i},clearListeners:function(){var c=this,d=c.directCaptures,b=c.directs,a=c.captures;if(d){d.clearListeners()}if(b){b.clearListeners()}if(a){a.clearListeners()}Ext.util.Event.prototype.clearListeners.call(this)},suspend:function(){var c=this,d=c.directCaptures,b=c.directs,a=c.captures;if(d){d.suspend()}if(b){b.suspend()}if(a){a.suspend()}Ext.util.Event.prototype.suspend.call(this)},resume:function(){var c=this,d=c.directCaptures,b=c.directs,a=c.captures;if(d){d.resume()}if(b){b.resume()}if(a){a.resume()}Ext.util.Event.prototype.resume.call(this)}},0,0,0,0,0,0,[Ext.dom,"ElementEvent"],0));(Ext.cmd.derive("Ext.event.publisher.Publisher",Ext.Base,{isEventPublisher:true,$vetoClearingPrototypeOnDestroy:true,handledEvents:[],statics:{publishers:{},publishersByEvent:{}},constructor:function(){var b=this,a=b.type;b.handles={};b.registerEvents();Ext.event.publisher.Publisher.publishers[a]=b},registerEvents:function(e){var h=this,d=Ext.event.publisher.Publisher.publishersByEvent,b=e||h.handledEvents,g=b.length,a,c;for(c=0;cE){v=w.getHeight();if(vz.getAnchorPoint_c()[1]){B=z.bottom-E}else{D=true;B=z.top+E-F.getHeight()}if(t){B=Math.min(Math.max(B,t.top),t.bottom-F.getHeight())}F.setPosition(F.x,B);w=new b.Region(Math.max(F.top,z.top),C,Math.min(F.bottom,z.bottom),C);v=w.getHeight();if(vE){v=w.getWidth();if(vz.getAnchorPoint_c()[0]){C=z.right-E}else{D=true;C=z.left+E-F.getWidth()}if(t){C=Math.min(Math.max(C,t.left),t.right-F.getWidth())}F.setPosition(C,F.y);w=new b.Region(B,Math.min(F.right,z.right),B,Math.max(F.left,z.left));v=w.getWidth();if(v=v.bottom&&s.bottom>r.bottom){s.setHeight(Math.max(s.getHeight()+r.bottom-s.bottom,u));s.constrainHeight=true}else{if(s.bottom<=v.top&&s.topr.getHeight()){s.setHeight(Math.max(u,r.getHeight()));s.setPosition(s.x,0);s.constrainHeight=true}}}}},d=function(t,s,v,r){var u;if(t&&r){if(s.left>=v.right&&s.right>r.right){s.setWidth(Math.max(s.getWidth()+r.right-s.right,t));s.constrainWidth=true}else{if(s.right<=v.left&&s.leftr.getWidth()){s.setWidth(Math.max(t,r.getWidth()));s.setPosition(0,s.y);s.constrainWidth=true}}}}};return{isRegion:true,statics:{getRegion:function(r){return Ext.fly(r).getRegion()},from:function(r){return new this(r.top,r.right,r.bottom,r.left)},getAlignInfo:function(w,u){if(typeof w==="object"){return w}w=w?((w.indexOf("-")<0)?"tl-"+w:w):"tl-bl";v=m.exec(w);w=v[1];w=(u?a:l)[w]||w;var t=u?i:g,v,s=k.exec(w),r;r={myEdge:s[1],myOffset:s[2],otherEdge:s[4],otherOffset:s[5],constrain:v[2]};if(s[3]){r.myEdge=s[3][0];r.myOffset=t[s[3][1]];if(r.myOffset==null){r.myOffset=50}}if(s[6]){r.otherEdge=s[6][0];r.otherOffset=t[s[6][1]];if(r.otherOffset==null){r.otherOffset=50}}r.position=p[r.myEdge];return r}},constructor:function(v,s,r,u){var t=this;t.y=t.top=t[1]=v;t.right=s;t.bottom=r;t.x=t.left=t[0]=u;t.height=t.bottom-t.top;t.width=t.right-t.left},setPosition:function(r,s){if(arguments.length===1){s=r[1];r=r[0]}return this.translateBy(r-this.x,s-this.y)},contains:function(s){var r=this;return(s.x>=r.x&&(s.right||s.x)<=r.right&&s.y>=r.y&&(s.bottom||s.y)<=r.bottom)},intersect:function(y){var x=this,v=Math.max(x.y,y.y),w=Math.min(x.right,y.right),s=Math.min(x.bottom,y.bottom),u=Math.max(x.x,y.x);if(s>v&&w>u){return new this.self(v,w,s,u)}else{return false}},union:function(y){var x=this,v=Math.min(x.y,y.y),w=Math.max(x.right,y.right),s=Math.max(x.bottom,y.bottom),u=Math.min(x.x,y.x);return new this.self(v,w,s,u)},constrainTo:function(s){var r=this,t=Ext.Number.constrain;r.top=r.y=t(r.top,s.y,s.bottom);r.bottom=t(r.bottom,s.y,s.bottom);r.left=r.x=t(r.left,s.x,s.right);r.right=t(r.right,s.x,s.right);return r},adjust:function(v,s,r,u){var t=this;t.top=t.y+=v||0;t.left=t.x+=u||0;t.right+=s||0;t.bottom+=r||0;return t},getOutOfBoundOffset:function(r,s){if(!Ext.isObject(r)){if(r==="x"){return this.getOutOfBoundOffsetX(s)}else{return this.getOutOfBoundOffsetY(s)}}else{s=r;var t=new b.Offset();t.x=this.getOutOfBoundOffsetX(s.x);t.y=this.getOutOfBoundOffsetY(s.y);return t}},getOutOfBoundOffsetX:function(r){if(r<=this.x){return this.x-r}else{if(r>=this.right){return this.right-r}}return 0},getOutOfBoundOffsetY:function(r){if(r<=this.y){return this.y-r}else{if(r>=this.bottom){return this.bottom-r}}return 0},isOutOfBound:function(r,s){if(!Ext.isObject(r)){if(r==="x"){return this.isOutOfBoundX(s)}else{return this.isOutOfBoundY(s)}}else{s=r;return(this.isOutOfBoundX(s.x)||this.isOutOfBoundY(s.y))}},isOutOfBoundX:function(r){return(rthis.right)},isOutOfBoundY:function(r){return(rthis.bottom)},restrict:function(s,u,r){if(Ext.isObject(s)){var t;r=u;u=s;if(u.copy){t=u.copy()}else{t={x:u.x,y:u.y}}t.x=this.restrictX(u.x,r);t.y=this.restrictY(u.y,r);return t}else{if(s==="x"){return this.restrictX(u,r)}else{return this.restrictY(u,r)}}},restrictX:function(s,r){if(!r){r=1}if(s<=this.x){s-=(s-this.x)*r}else{if(s>=this.right){s-=(s-this.right)*r}}return s},restrictY:function(s,r){if(!r){r=1}if(s<=this.y){s-=(s-this.y)*r}else{if(s>=this.bottom){s-=(s-this.bottom)*r}}return s},alignTo:function(H){var B=this,G=B.self,A=b.Offset,z=n(H.target),D,C=H.rtl,E=H.overlap,y=H.align,x=H.anchorSize,u=H.offset,t=H.inside,w=H.position,s=H.allowXTranslate,v=H.allowYTranslate,r,F;if(u){u=A.fromObject(u)}if(x){x=A.fromObject(x)}if(w){if(w.length===2){w=new b.Point(w[0],w[1])}F=new G().copyFrom(B).setPosition(w.x,w.y)}else{y=B.getAlignInfo(y,C);if(t){if(z.x>=t.right){z.setPosition(t.right-1,z.y);if(y.position!==3){y=B.getAlignInfo("r-l",C)}}else{if(z.right=t.bottom){z.setPosition(z.x,t.bottom-1);if(y.position!==0){y=B.getAlignInfo("b-t",C)}}else{if(z.bottomt.right&&F.left>t.left){F.translateBy(t.right-F.right,0);r=true}if(F.topt.bottom&&F.top>t.top){F.translateBy(0,t.bottom-F.bottom);r=true}if(r&&!E){F.anchor=null;if(H.axisLock){if(y.position&1){v=false}else{s=false}}if(w){if(F.contains(w)){w.exclude(F,{inside:t,centerOnSideChange:false})}}else{if(F.intersect(D)){y.position=z.exclude(F,{defaultPosition:y.position,inside:t,minHeight:H.minHeight,minWidth:H.minWidth,allowX:s,allowY:v,offset:u,anchorHeight:x?x.y:0,centerOnSideChange:!!x})}else{if(H.minWidth&&F.getWidth()>t.getWidth()){F.setPosition(0,F.y);F.setWidth(Math.max(t.getWidth(),H.minWidth));F.constrainWidth=true}else{if(H.minHeight&&F.getHeight()>t.getHeight()){F.setPosition(F.x,0);F.setHeight(Math.max(t.getHeight(),H.minHeight));F.constrainHeight=true}}}F.align=y;if(x){h(z,F,y.position,x,t)}}}}return F},exclude:function(x,s){s=s||{};var L=this,J=s.inside,u=s.defaultPosition,r=s.centerOnSideChange,z=s.minHeight,D=s.minWidth,F=s.allowX!==false,E=s.allowY!==false,K=s.anchorHeight,y=s.offset,v=[],G,C,I,w,H,A,B;if(!y){y=c}if(E){v.push([0,C=L.top-x.bottom-K+y.y,"b-t",0,Math.abs(C)]);v.push([0,C=L.bottom-x.top+K+y.y,"t-b",2,Math.abs(C)])}else{r=false}if(F){v.push([C=L.left-x.right-K+y.x,0,"r-l",3,Math.abs(C)]);v.push([C=L.right-x.left+K+y.x,0,"l-r",1,Math.abs(C)])}else{r=false}Ext.Array.sort(v,function(M,N){var t=M[4]-N[4];if(!t){if(M[3]===u){return -1}if(N[3]===u){return 1}}return t});if(J){for(I=0;Iw.region.getArea()){w={region:G,align:C[2],position:C[3],distance:C[4]}}}}if(D){d(D,G,L,J);if(J.contains(G)){if(!w||G.getArea()>w.region.getArea()){w={region:G,align:C[2],position:C[3],distance:C[4]}}}}A=J.intersect(G);if(A){A=A.getArea();if(!H||(A&&H.area0)?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return"Point["+this.x+","+this.y+"]"},equals:function(a){return(this.x===a.x&&this.y===a.y)},isCloseTo:function(c,b){if(typeof b=="number"){return this.getDistanceTo(c)<=b}var a=c.x,g=c.y,e=b.x,d=b.y;return(this.x<=a+e&&this.x>=a-e&&this.y<=g+d&&this.y>=g-d)},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=="object"){a=this.origin}return(Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y))},getDistanceTo:function(b){if(!b||typeof b!=="object"){b=this.origin}var c=this.x-b.x,a=this.y-b.y;return Math.sqrt(c*c+a*a)},getAngleTo:function(b){if(!b||typeof b!=="object"){b=this.origin}var c=this.x-b.x,a=this.y-b.y;return Math.atan2(a,c)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,"Point"],function(){this.prototype.translate=this.prototype.translateBy}));(Ext.cmd.derive("Ext.event.Event",Ext.Base,{alternateClassName:"Ext.EventObjectImpl",stopped:false,claimed:false,defaultPrevented:false,isEvent:true,statics:{resolveTextNode:function(a){return(a&&a.nodeType===3)?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypeMap:{2:"touch",3:"pen",4:"mouse",touch:"touch",pen:"pen",mouse:"mouse"},keyFlags:{CTRL:"ctrlKey",CONTROL:"ctrlKey",ALT:"altKey",SHIFT:"shiftKey",CMD:"metaKey",COMMAND:"metaKey",CMDORCTRL:Ext.isMac?"metaKey":"ctrlKey",COMMANDORCONTROL:Ext.isMac?"metaKey":"ctrlKey",META:"metaKey"},modifierGlyphs:{ctrlKey:"⌃",altKey:"⌥",metaKey:Ext.isMac?"⌘":"⊞",shiftKey:"⇧"},specialKeyGlyphs:{BACKSPACE:"⌫",TAB:"⇥",ENTER:"⏎",RETURN:"⏎",SPACE:"␣",PAGE_UP:"⇞",PAGE_DOWN:"⇟",END:"⇲",HOME:"⌂",LEFT:"←",UP:"↑",RIGHT:"→",DOWN:"↓",PRINT_SCREEN:"⎙",INSERT:"⎀",DELETE:"⌦",CONTEXT_MENU:"☰"},getKeyId:function(e){e=e.toUpperCase();var g=this,h=e.split("+"),j=h.length-1,c=h[j],b=[],a,d;for(d=0;d1)},chain:function(a){var b=Ext.Object.chain(this);b.parentEvent=this;return Ext.apply(b,a)},correctWheelDelta:function(c){var b=this.WHEEL_SCALE,a=Math.round(c/b);if(!a&&c){a=(c<0)?-1:1}return a},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.keyCodes[this.keyCode]},getPoint:function(){var b=this,a=b.point,c;if(!a){c=b.getXY();a=b.point=new Ext.util.Point(c[0],c[1])}return a},getRelatedTarget:function(b,e,a){var c=this.relatedTarget,d=null;if(c&&c.nodeType){if(b){d=Ext.fly(c).findParent(b,e,a)}else{d=a?Ext.get(c):c}}return d},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):(a?Ext.get(this.target):this.target)},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,c=d.browserEvent,b=0,a=0;if(Ext.isDefined(c.wheelDeltaX)){b=c.wheelDeltaX;a=c.wheelDeltaY}else{if(c.wheelDelta){a=c.wheelDelta}else{if("deltaX" in c){b=c.deltaX;a=-c.deltaY}else{if(c.detail){a=-c.detail;if(a>100){a=3}else{if(a<-100){a=-3}}if(Ext.isDefined(c.axis)&&c.axis===c.HORIZONTAL_AXIS){b=a;a=0}}}}}return{x:d.correctWheelDelta(b),y:d.correctWheelDelta(a)}},getX:function(){return this.getXY()[0]},getXY:function(){var c=this,e=c.xy;if(!e){e=c.xy=[c.pageX,c.pageY];var b=e[0],h,d,g,a;if(!b&&b!==0){h=c.browserEvent;d=document;g=d.documentElement;a=d.body;e[0]=h.clientX+(g&&g.scrollLeft||a&&a.scrollLeft||0)-(g&&g.clientLeft||a&&a.clientLeft||0);e[1]=h.clientY+(g&&g.scrollTop||a&&a.scrollTop||0)-(g&&g.clientTop||a&&a.clientTop||0)}}return e},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(d){var c=this,a=c.keyCode,b=c.type==="keypress";return((!b||Ext.isGecko)&&a>=33&&a<=40)||(!d&&(a===c.RETURN||a===c.TAB||a===c.ESC))},isSpecialKey:function(){var d=this,b=d.keyCode,a=Ext.isGecko,c=d.type==="keypress";return(a&&c&&d.charCode===0)||(this.isNavKeyPress())||(b===d.BACKSPACE)||(b===d.ENTER)||(b>=16&&b<=20)||((!c||a)&&b>=44&&b<=46)},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var b=this,a=b.parentEvent;b.defaultPrevented=true;if(a){a.defaultPrevented=true}b.browserEvent.preventDefault();return b},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var b=this,c=b.browserEvent,a=b.parentEvent;b.stopped=true;if(a&&!b.isGesture){a.stopped=true}if(!c.stopPropagation){c.cancelBubble=true;return b}c.stopPropagation();return b},claimGesture:function(){var b=this,a=b.parentEvent;b.claimed=true;if(a&&!b.hasOwnProperty("isGesture")){a.claimGesture()}else{b.preventDefault()}return b},within:function(c,d,a){var b;if(c){b=d?this.getRelatedTarget():this.getTarget()}return b?Ext.fly(c).contains(b)||!!(a&&b===Ext.getDom(c)):false},deprecated:{"4.0":{methods:{getPageX:"getX",getPageY:"getY"}}}},1,0,0,0,0,0,[Ext.event,"Event",Ext,"EventObjectImpl"],function(a){var c=a.prototype,d={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN: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,WHEEL_SCALE:(function(){var h;if(Ext.isGecko){h=3}else{if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){h=120}else{h=12}h*=3}else{h=120}}return h}())},b={},e,g;Ext.apply(a,d);Ext.apply(c,d);delete d.WHEEL_SCALE;delete d.RETURN;for(e in d){g=d[e];b[g]=e}c.keyCodes=b;c.getTrueXY=c.getXY}));Ext.define("Ext.overrides.event.Event",{override:"Ext.event.Event",mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:(function(){var d,e={},c;if(!Ext.isIE9m&&document.createEvent){d={createHtmlEvent:function(k,i,h,g){var j=k.createEvent("HTMLEvents");j.initEvent(i,h,g);return j},createMouseEvent:function(u,s,m,l,o,k,i,j,g,r,q,n,p){var h=u.createEvent("MouseEvents"),t=u.defaultView||window;if(h.initMouseEvent){h.initMouseEvent(s,m,l,t,o,k,i,k,i,j,g,r,q,n,p)}else{h=u.createEvent("UIEvents");h.initEvent(s,m,l);h.view=t;h.detail=o;h.screenX=k;h.screenY=i;h.clientX=k;h.clientY=i;h.ctrlKey=j;h.altKey=g;h.metaKey=q;h.shiftKey=r;h.button=n;h.relatedTarget=p}return h},createUIEvent:function(m,k,i,h,j){var l=m.createEvent("UIEvents"),g=m.defaultView||window;l.initUIEvent(k,i,h,g,j);return l},fireEvent:function(i,g,h){i.dispatchEvent(h)}}}else{if(document.createEventObject){c={0:1,1:4,2:2};d={createHtmlEvent:function(k,i,h,g){var j=k.createEventObject();j.bubbles=h;j.cancelable=g;return j},createMouseEvent:function(t,s,m,l,o,k,i,j,g,r,q,n,p){var h=t.createEventObject();h.bubbles=m;h.cancelable=l;h.detail=o;h.screenX=k;h.screenY=i;h.clientX=k;h.clientY=i;h.ctrlKey=j;h.altKey=g;h.shiftKey=r;h.metaKey=q;h.button=c[n]||n;h.relatedTarget=p;return h},createUIEvent:function(l,j,h,g,i){var k=l.createEventObject();k.bubbles=h;k.cancelable=g;return k},fireEvent:function(i,g,h){i.fireEvent("on"+g,h)}}}}Ext.Object.each({load:[false,false],unload:[false,false],select:[true,false],change:[true,false],submit:[true,true],reset:[true,false],resize:[true,false],scroll:[true,false]},function(i,j){var h=j[0],g=j[1];e[i]=function(m,k){var l=d.createHtmlEvent(i,h,g);d.fireEvent(m,i,l)}});function b(i,h){var g=(i!=="mousemove");return function(m,j){var l=j.getXY(),k=d.createMouseEvent(m.ownerDocument,i,true,g,h,l[0],l[1],j.ctrlKey,j.altKey,j.shiftKey,j.metaKey,j.button,j.relatedTarget);d.fireEvent(m,i,k)}}Ext.each(["click","dblclick","mousedown","mouseup","mouseover","mousemove","mouseout"],function(g){e[g]=b(g,1)});Ext.Object.each({focusin:[true,false],focusout:[true,false],activate:[true,true],focus:[false,false],blur:[false,false]},function(i,j){var h=j[0],g=j[1];e[i]=function(m,k){var l=d.createUIEvent(m.ownerDocument,i,h,g,1);d.fireEvent(m,i,l)}});if(!d){e={};d={}}function a(h,g){}return function(j){var i=this,h=e[i.type]||a,g=j?(j.dom||j):i.getTarget();h(g,i)}}()),preventDefault:function(g){var d=this,c=d.browserEvent,b=d.parentEvent,a,e;if(typeof c.type!=="unknown"){if(!g){d.defaultPrevented=true}if(b){b.defaultPrevented=true}if(c.preventDefault){c.preventDefault()}else{if(c.type==="mousedown"){e=c.target;a=e.getAttribute("unselectable");if(a!=="on"){e.setAttribute("unselectable","on");Ext.defer(function(){e.setAttribute("unselectable",a)},1)}}c.returnValue=false;if(c.ctrlKey||c.keyCode>111&&c.keyCode<124){c.keyCode=-1}}}return d},stopPropagation:function(){var b=this,a=b.browserEvent;if(typeof a.type!=="unknown"){if(b.mousedownEvents[b.type]){Ext.GlobalEvents.fireMouseDown(b)}arguments.callee.$previous.call(this)}return b},deprecated:{"5.0":{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var a=this,d,c=function(g){if(g.keyCode===9){a.forwardTab=!g.shiftKey}},b=function(g){if(g.keyCode===9){delete a.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};a.override({statics:{enableIEAsync:function(h){var e,g={};for(e in h){g[e]=h[e]}return g}},constructor:function(i,j,g,e){var h=this;h.callParent([i,j,g,e]);h.button=d[i.button];if(i.type==="contextmenu"){h.button=2}h.toElement=i.toElement;h.fromElement=i.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(e){this.browserEvent=this.self.enableIEAsync(e)},getRelatedTarget:function(g,k,e){var i=this,h,j;if(!i.relatedTarget){h=i.type;if(i.mouseLeaveRe.test(h)){j=i.toElement}else{if(i.mouseEnterRe.test(h)){j=i.fromElement}}if(j){i.relatedTarget=i.self.resolveTextNode(j)}}return i.callParent([g,k,e])}});document.attachEvent("onkeydown",c);document.attachEvent("onkeyup",b);window.attachEvent("onunload",function(){document.detachEvent("onkeydown",c);document.detachEvent("onkeyup",b)})}else{if(document.addEventListener){document.addEventListener("keydown",c,true);document.addEventListener("keyup",b,true)}}});(Ext.cmd.derive("Ext.event.publisher.Dom",Ext.event.publisher.Publisher,{type:"dom",handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1,scroll:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var g=this,d=Ext.event.publisher.Publisher.publishersByEvent,a=g.handledDomEvents,e=a.length,c=0,b;for(;cc)?1:(d1){r=[];for(d=0;d1)){m.target=h[0].target;o.push(m)}else{s.push(m)}if(g){p.publishGestures()}},getCommonTargets:function(a){var k=a[0],g=a.length;if(g===1){return k}var d=[],e=1,h,b,c;while(true){h=k[k.length-e];if(!h){return d}for(c=1;c0){b.invokeRecognizers("onTouchMove",c)}}b.publishGestures()},onTouchEnd:function(c){var b=this,a;if(!b.isStarted){b.publishGestures();return}b.updateTouches(c,true);a=b.activeTouches.length;try{b.invokeRecognizers(b.isCancelEvent[c.type]?"onTouchCancel":"onTouchEnd",c)}finally{if(!a){b.isStarted=false;b.invokeRecognizers("onEnd",c)}b.publishGestures();if(!a){if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else{this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else{this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var a=this,b=c.target;b.removeEventListener("touchmove",a.onTargetTouchMove);b.removeEventListener("touchend",a.onTargetTouchEnd);b.removeEventListener("touchcancel",a.onTargetTouchEnd);if(!Ext.getBody().contains(b)){a.onTouchEnd(new Ext.event.Event(c))}},reset:function(){var e=this,b=e.recognizers,d=b.length,c,a;e.activeTouchesMap={};e.activeTouches=[];e.changedTouches=[];e.isStarted=false;e.gestureTargets=null;e.events=[];e.cancelEvents=[];for(c=0;c=500){this.run()}},run:function(){this.pending=false;var k=this.readQueue,e=this.writeQueue,c=null,g;if(this.mode){g=k;if(e.length>0){c=false}}else{g=e;if(k.length>0){c=true}}var b=g.slice(),d,h,a,j,l;g.length=0;for(d=0,h=b.length;d2){j.apply(l,a[2])}else{j.call(l)}}b.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,"TaskQueue"],0));(Ext.cmd.derive("Ext.util.sizemonitor.Abstract",Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:null,height:null,contentWidth:null,contentHeight:null,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(true)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls("x-size-monitored")},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead("refresh",this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.clientWidth},getContentHeight:function(){return this.detectorsContainer.clientHeight},refreshSize:function(){var d=this.getElement();if(!d||d.destroyed){return false}var b=d.getWidth(),k=d.getHeight(),a=this.getContentWidth(),j=this.getContentHeight(),i=this.contentWidth,g=this.contentHeight,c=this.info,e=false,h=0;this.width=b;this.height=k;this.contentWidth=a;this.contentHeight=j;h=((i!==a?1:0)+(g!==j?2:0));if(h>0){c.width=b;c.height=k;c.contentWidth=a;c.contentHeight=j;c.flag=h;e=true;this.getCallback().apply(this.getScope(),this.getArgs())}return e},refresh:function(a){if(this.destroying||this.destroyed){return}if(this.refreshSize()||a){Ext.TaskQueue.requestWrite("refreshMonitors",this)}},destroy:function(){var b=this,a=b.getElement();b.bindListeners(false);if(a&&!a.destroyed){a.removeCls("x-size-monitored")}delete b._element;b.refresh=null;b.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,"Abstract"],0));(Ext.cmd.derive("Ext.util.sizemonitor.Scroll",Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return{reference:"detectorsContainer",classList:["x-size-monitors","scroll"],children:[{reference:"expandMonitor",className:"expand"},{reference:"shrinkMonitor",className:"shrink"}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?"addEventListener":"removeEventListener";this.expandMonitor[a]("scroll",this.onScroll,true);this.shrinkMonitor[a]("scroll",this.onScroll,true)},forceRefresh:function(){Ext.TaskQueue.requestRead("refresh",this,[true])},onScroll:function(){Ext.TaskQueue.requestRead("refresh",this)},refreshMonitors:function(){var b=this.expandMonitor,c=this.shrinkMonitor,a=1000000;if(b&&!b.destroyed){b.scrollLeft=a;b.scrollTop=a}if(c&&!c.destroyed){c.scrollLeft=a;c.scrollTop=a}},destroy:function(){this.onScroll=null;Ext.util.sizemonitor.Abstract.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,"Scroll"],0));(Ext.cmd.derive("Ext.util.sizemonitor.OverflowChange",Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return{reference:"detectorsContainer",classList:["x-size-monitors","overflowchanged"],children:[{reference:"expandMonitor",className:"expand",children:[{reference:"expandHelper"}]},{reference:"shrinkMonitor",className:"shrink",children:[{reference:"shrinkHelper"}]}]}},bindListeners:function(b){var a=b?"addEventListener":"removeEventListener";this.expandMonitor[a](Ext.browser.is.Firefox?"underflow":"overflowchanged",this.onExpand,true);this.shrinkMonitor[a](Ext.browser.is.Firefox?"overflow":"overflowchanged",this.onShrink,true)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead("refresh",this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead("refresh",this)},refreshMonitors:function(){if(this.destroying||this.destroyed){return}var g=this.expandHelper,e=this.shrinkHelper,b=this.getContentBounds(),d=b.width,a=b.height,c;if(g&&!g.destroyed){c=g.style;c.width=(d+1)+"px";c.height=(a+1)+"px"}if(e&&!e.destroyed){c=e.style;c.width=d+"px";c.height=a+"px"}Ext.TaskQueue.requestRead("refresh",this)},destroy:function(){this.onExpand=this.onShrink=null;Ext.util.sizemonitor.Abstract.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,"OverflowChange"],0));(Ext.cmd.derive("Ext.util.SizeMonitor",Ext.Base,{constructor:function(a){var b=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new b.OverflowChange(a)}else{return new b.Scroll(a)}}},1,0,0,0,0,0,[Ext.util,"SizeMonitor"],0));(Ext.cmd.derive("Ext.event.publisher.ElementSize",Ext.event.publisher.Publisher,{type:"size",handledEvents:["resize"],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var d=b.id,c=this.subscribers,a=this.monitors;if(c[d]){++c[d]}else{c[d]=1;a[d]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on("painted","forceRefresh",a[d]);return true},unsubscribe:function(c){var e=c.id,d=this.subscribers,b=this.monitors,a;if(d[e]&&!--d[e]){delete d[e];a=b[e];c.un("painted","forceRefresh",a);a.destroy();delete b[e]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead("fire",this,[a,"resize",[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,"ElementSize"],function(a){a.instance=new a()}));(Ext.cmd.derive("Ext.util.paintmonitor.Abstract",Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:"",monitorClass:"",constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?"addEventListener":"removeEventListener"](this.eventName,this.onElementPainted,true)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:["x-paint-monitor",this.monitorClass]},true);a.appendChild(this.monitorElement);a.addCls("x-paint-monitored");this.bindListeners(true)},onElementPainted:function(){},destroy:function(){var d=this,b=d.monitorElement,a=b.parentNode,c=d.getElement();d.bindListeners(false);delete d.monitorElement;if(c&&!c.destroyed){c.removeCls("x-paint-monitored");delete d._element}if(a){a.removeChild(b)}d.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,"Abstract"],0));(Ext.cmd.derive("Ext.util.paintmonitor.CssAnimation",Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?"webkitAnimationEnd":"animationend",monitorClass:"cssanimation",onElementPainted:function(a){if(a.animationName==="x-paint-monitor-helper"){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,"CssAnimation"],0));(Ext.cmd.derive("Ext.util.PaintMonitor",Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,"PaintMonitor"],0));(Ext.cmd.derive("Ext.event.publisher.ElementPaint",Ext.event.publisher.Publisher,{type:"paint",handledEvents:["painted"],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(a){var b=this,d=a.id,c=b.subscribers;if(c[d]){++c[d]}else{c[d]=1;b.monitors[d]=new Ext.util.PaintMonitor({element:a,callback:b.onElementPainted,scope:b,args:[a]})}},unsubscribe:function(b){var d=b.id,c=this.subscribers,a=this.monitors;if(c[d]&&!--c[d]){delete c[d];a[d].destroy();delete a[d]}},onElementPainted:function(a){Ext.TaskQueue.requestRead("fire",this,[a,"painted",[a]])}},1,0,0,0,0,0,[Ext.event.publisher,"ElementPaint"],function(a){a.instance=new a()}));(Ext.cmd.derive("Ext.dom.Element",Ext.Base,function(s){var x=window,V=document,g=V.documentElement,X=x.top,W,aj,P,l="width",T="height",ag="min-width",h="min-height",t="max-width",G="max-height",X="top",ak="right",Q="bottom",K="left",n="visibility",ah="hidden",d="display",Z="none",q="z-index",ab="position",v="relative",w="static",C="-",A=/\w/g,O=/\s+/,ai=/[\s]+/,b=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,M=/table-row|table-.*-group/,c=/top/i,z={t:"border-top-width",r:"border-right-width",b:"border-bottom-width",l:"border-left-width"},af={t:"padding-top",r:"padding-right",b:"padding-bottom",l:"padding-left"},p={t:"margin-top",r:"margin-right",b:"margin-bottom",l:"margin-left"},J=[af.l,af.r,af.t,af.b],j=[z.l,z.r,z.t,z.b],ad=/\d+$/,m=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,U="px",S=/(-[a-z])/gi,am=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,u=/^\d+(?:\.\d*)?px$/i,B={},y="originalDisplay",aa=function(e,an){return an.charAt(1).toUpperCase()},N=function(ap,an){var aq,ao,e;if(ap.nodeType===1){ap._extData=null;if(an){aq=ap.childNodes;for(ao=0,e=aq.length;aox.innerWidth)?"portrait":"landscape"},getViewportHeight:function(){var e=s._viewportHeight;if(Ext.isIE9m){return V.documentElement.clientHeight}return(e!=null)?e:g.clientHeight},getViewportWidth:function(){var e=s._viewportWidth;if(Ext.isIE9m){return V.documentElement.clientWidth}return(e!=null)?e:g.clientWidth},getViewportScale:function(){var e=x.top;return((Ext.isiOS||Ext.isAndroid)?1:(e.devicePixelRatio||e.screen.deviceXDPI/e.screen.logicalXDPI))*this.getViewportTouchScale()},getViewportTouchScale:function(ao){var aq=1,e="hidden",an=x.top,ap;if(!ao){ap=this._viewportTouchScale;if(ap){return ap}}if(Ext.isIE10p||Ext.isEdge||Ext.isiOS){aq=g.offsetWidth/x.innerWidth}else{if(Ext.isChromeMobile){aq=an.outerWidth/an.innerWidth}}return aq},getViewSize:function(){return{width:s.getViewportWidth(),height:s.getViewportHeight()}},maskIframes:function(){var e=document.getElementsByTagName("iframe");Ext.each(e,function(ao){var an;an=Ext.fly(ao.parentNode).mask();an.setStyle("background-color","transparent")})},normalize:function(e){return B[e]||(B[e]=e.replace(S,aa))},_onWindowFocusChange:function(an){if(Ext.fly(an.target).is(s.editableSelector)){Y=new Date();D=(an.type==="focusin"||an.type==="pointerup")}},_onWindowResize:function(){var ao=g.clientWidth,ar=g.clientHeight,aq=new Date(),an=1000,ap,e;ap=ao-s._documentWidth;e=ar-s._documentHeight;s._windowWidth=ao;s._windowHeight=ar;if(((aq-Y)=s.minKeyboardHeight)){i=false;ae=new Date()}if(i){return}s._viewportWidth=ao;s._viewportHeight=ar},parseBox:function(ao){ao=ao||0;var e=typeof ao,ap,an;if(e==="number"){return{top:ao,right:ao,bottom:ao,left:ao}}else{if(e!=="string"){return ao}}ap=ao.split(" ");an=ap.length;if(an===1){ap[1]=ap[2]=ap[3]=ap[0]}else{if(an===2){ap[2]=ap[0];ap[3]=ap[1]}else{if(an===3){ap[3]=ap[1]}}}return{top:parseFloat(ap[0])||0,right:parseFloat(ap[1])||0,bottom:parseFloat(ap[2])||0,left:parseFloat(ap[3])||0}},parseStyles:function(an){var e={},ao;if(an){am.lastIndex=0;while((ao=am.exec(an))){e[ao[1]]=ao[2]||""}}return e},select:function(e,ao,an){return Ext.fly(an||V).select(e,ao)},query:function(an,e,ao){return Ext.fly(ao||V).query(an,e)},unitizeBox:function(ao,e){var an=this;ao=an.parseBox(ao);return an.addUnits(ao.top,e)+" "+an.addUnits(ao.right,e)+" "+an.addUnits(ao.bottom,e)+" "+an.addUnits(ao.left,e)},unmaskIframes:function(){var e=document.getElementsByTagName("iframe");Ext.each(e,function(an){Ext.fly(an.parentNode).unmask()})},serializeForm:function(ap){var aq=ap.elements||(V.forms[ap]||Ext.getDom(ap)).elements,aA=false,az=encodeURIComponent,au="",at=aq.length,av,an,ay,aC,aB,aw,ar,ax,ao;for(aw=0;aw0||ao.scrollLeft!==0){ap.push(ao);ar.push(I.attach(ao).getScroll())}}return function(){var av,aw,au;for(aw=0,au=ap.length;aw "+e,!!an)},clone:function(e,an){var ao=this.dom.cloneNode(e);if(Ext.supports.CloneNodeCopiesExpando){N(ao,e)}return an?ao:Ext.get(ao)},constrainScrollLeft:function(e){var an=this.dom;return Math.max(Math.min(e,an.scrollWidth-an.clientWidth),0)},constrainScrollTop:function(e){var an=this.dom;return Math.max(Math.min(e,an.scrollHeight-an.clientHeight),0)},createChild:function(an,e,ao){an=an||{tag:"div"};if(e){return Ext.DomHelper.insertBefore(e,an,ao!==true)}else{return Ext.DomHelper.append(this.dom,an,ao!==true)}},contains:function(e){if(!e){return false}var an=this,ao=Ext.getDom(e);return(ao===an.dom)||an.isAncestor(ao)},destroy:function(){var e=this,an=e.dom;if(an&&an.parentNode){an.parentNode.removeChild(an)}e.collect()},detach:function(){var e=this.dom;if(e&&e.parentNode&&e.tagName!=="BODY"){e.parentNode.removeChild(e)}return this},disableShadow:function(){var e=this.shadow;if(e){e.hide();e.disabled=true}},disableShim:function(){var e=this.shim;if(e){e.hide();e.disabled=true}},doReplaceWith:function(e){var an=this.dom;an.parentNode.replaceChild(Ext.getDom(e),an)},doScrollIntoView:function(e,aq,an,ar,ay,av){I=I||new Ext.dom.Fly();var aw=this,at=aw.dom,az=I.attach(e)[ay](),ax=e.scrollTop,au=aw.getScrollIntoViewXY(e,az,ax),ap=au.x,ao=au.y;if(ar){if(an){an=Ext.apply({listeners:{afteranimate:function(){I.attach(at).highlight()}}},an)}else{I.attach(at).highlight()}}if(ao!==ax){I.attach(e).scrollTo("top",ao,an)}if(aq!==false&&(ap!==az)){I.attach(e)[av]("left",ap,an)}return aw},down:function(e,an){return this.selectNode(e,!!an)},enableShadow:function(an,e){var ao=this,aq=ao.shadow||(ao.shadow=new Ext.dom.Shadow(Ext.apply({target:ao},an))),ap=ao.shim;if(ap){ap.offsets=aq.outerOffsets;ap.shadow=aq;aq.shim=ap}if(e===true||(e!==false&&ao.isVisible())){aq.show()}else{aq.hide()}aq.disabled=false},enableShim:function(an,e){var ao=this,aq=ao.shim||(ao.shim=new Ext.dom.Shim(Ext.apply({target:ao},an))),ap=ao.shadow;if(ap){aq.offsets=ap.outerOffsets;aq.shadow=ap;ap.shim=aq}if(e===true||(e!==false&&ao.isVisible())){aq.show()}else{aq.hide()}aq.disabled=false;return aq},findParent:function(at,an,e){var ap=this,aq=ap.dom,ao=g,ar=0;if(an||an===0){if(typeof an!=="number"){ao=Ext.getDom(an);an=Number.MAX_VALUE}}else{an=50}while(aq&&aq.nodeType===1&&ar0&&at<0.5){e++}}}if(ap){e-=ao.getBorderWidth("tb")+ao.getPadding("tb")}return(e<0)?0:e},getHtml:function(){return this.dom?this.dom.innerHTML:""},getLeft:function(e){return e?this.getLocalX():this.getX()},getLocalX:function(){var ao=this,an,e=ao.getStyle("left");if(!e||e==="auto"){e=0}else{if(u.test(e)){e=parseFloat(e)}else{e=ao.getX();an=ao.dom.offsetParent;if(an){e-=Ext.fly(an).getX()}}}return e},getLocalXY:function(){var ap=this,ao,an=ap.getStyle(["left","top"]),e=an.left,aq=an.top;if(!e||e==="auto"){e=0}else{if(u.test(e)){e=parseFloat(e)}else{e=ap.getX();ao=ap.dom.offsetParent;if(ao){e-=Ext.fly(ao).getX()}}}if(!aq||aq==="auto"){aq=0}else{if(u.test(aq)){aq=parseFloat(aq)}else{aq=ap.getY();ao=ap.dom.offsetParent;if(ao){aq-=Ext.fly(ao).getY()}}}return[e,aq]},getLocalY:function(){var an=this,e,ao=an.getStyle("top");if(!ao||ao==="auto"){ao=0}else{if(u.test(ao)){ao=parseFloat(ao)}else{ao=an.getY();e=an.dom.offsetParent;if(e){ao-=Ext.fly(e).getY()}}}return ao},getMargin:(function(){var an={t:"top",l:"left",r:"right",b:"bottom"},e=["margin-top","margin-left","margin-right","margin-bottom"];return function(ap){var ar=this,aq,ao,at;if(!ap){aq=ar.getStyle(e);at={};if(aq&&typeof aq==="object"){at={};for(ao in p){at[ao]=at[an[ao]]=parseFloat(aq[p[ao]])||0}}}else{at=ar.addStyles(ap,p)}return at}})(),getPadding:function(e){return this.addStyles(e,af)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(e){return(e?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var ao=this,ar=ao.dom,an=g,aq,ap,e=V.body;if(ar===V||ar===e){aq=an.scrollLeft||(e?e.scrollLeft:0);ap=an.scrollTop||(e?e.scrollTop:0)}else{aq=ar.scrollLeft;ap=ar.scrollTop}return{left:aq,top:ap}},getScrollIntoViewXY:function(ar,az,ay){var aB=this.dom,an=Ext.getDom(ar),ao=this.getOffsetsTo(an),ax=aB.offsetWidth,au=aB.offsetHeight,e=ao[0]+az,at=ao[1]+ay,aq=at+au,aD=e+ax,av=an.clientHeight,aA=an.clientWidth,aC=az,aw=ay,ap=aw+av,aE=aC+aA;if(au>av||atap){ay=aq-av}}if(ax>aA||eaE){az=aD-aA}}return{x:az,y:ay}},getScrollLeft:function(){var e=this.dom;if(e===V||e===V.body){return this.getScroll().left}else{return e.scrollLeft}},getScrollTop:function(){var e=this.dom;if(e===V||e===V.body){return this.getScroll().top}else{return e.scrollTop}},getSize:function(e){return{width:this.getWidth(e),height:this.getHeight(e)}},getStyle:function(az,au){var av=this,ap=av.dom,aC=typeof az!=="string",aA=av.styleHooks,an=az,aw=an,at=1,ar,aB,ay,ax,ao,e,aq;if(aC){ay={};an=aw[0];aq=0;if(!(at=aw.length)){return ay}}if(!ap||ap.documentElement){return ay||""}ar=ap.style;if(au){e=ar}else{e=ap.ownerDocument.defaultView.getComputedStyle(ap,null);if(!e){au=true;e=ar}}do{ax=aA[an];if(!ax){aA[an]=ax={name:s.normalize(an)}}if(ax.get){ao=ax.get(ap,av,au,e)}else{aB=ax.name;ao=e[aB]}if(!aC){return ao}ay[an]=ao;an=aw[++aq]}while(aq0&&au<0.5){an++}}}if(e){an-=ap.getBorderWidth("lr")+ap.getPadding("lr")}return(an<0)?0:an},getX:function(){return this.getXY()[0]},getXY:function(){var ao=Math.round,at=this.dom,an=V.body,e=0,au=0,aq,ar;if(at!==V&&at!==an){try{aq=an.getBoundingClientRect();ar=at.getBoundingClientRect();e=ar.left-aq.left;au=ar.top-aq.top}catch(ap){}}return[ao(e),ao(au)]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle("z-index"),10)},hasCls:function(e){var an=this.getData();if(!an.isSynchronized){this.synchronize()}return an.classMap.hasOwnProperty(e)},hide:function(){this.setVisible(false);return this},insertAfter:function(e){e=Ext.getDom(e);e.parentNode.insertBefore(this.dom,e.nextSibling);return this},insertBefore:function(e){e=Ext.getDom(e);e.parentNode.insertBefore(this.dom,e);return this},insertFirst:function(an,e){an=an||{};if(an.nodeType||an.dom||typeof an==="string"){an=Ext.getDom(an);this.dom.insertBefore(an,this.dom.firstChild);return !e?Ext.get(an):an}else{return this.createChild(an,this.dom.firstChild,e)}},insertHtml:function(an,ao,e){var ap=Ext.DomHelper.insertHtml(an,this.dom,ao);return e?Ext.get(ap):ap},insertSibling:function(ao,ar,av){var au=this,aw=Ext.DomHelper,ax=(ar||"before").toLowerCase()==="after",aq,an,ap,at;if(Ext.isIterable(ao)){ap=ao.length;an=Ext.fly(V.createDocumentFragment());if(Ext.isArray(ao)){for(at=0;ate.clientHeight||e.scrollWidth>e.clientWidth},isStyle:function(e,an){return this.getStyle(e)===an},isVisible:function(an){var ao=this.dom,e;if(!ao){return false}if(!ac){ac=new Ext.dom.Fly()}for(e=ao.ownerDocument.documentElement;ao!==e;ao=ao.parentNode){if(!ao||ao.nodeType===11||(ac.attach(ao)).isStyle(n,ah)||ac.isStyle(d,Z)){return false}if(!an){break}}return true},last:function(e,an){return this.matchNode("previousSibling","lastChild",e,an)},matchNode:function(an,ar,e,ao){var ap=this.dom,aq;if(!ap){return null}aq=ap[ar];while(aq){if(aq.nodeType===1&&(!e||Ext.fly(aq,"_matchNode").is(e))){return !ao?Ext.get(aq):aq}aq=aq[an]}return null},monitorMouseLeave:function(e,ap,ao){var aq=this,ar,an={mouseleave:function(at){if(Ext.isIE9m){at.enableIEAsync()}ar=Ext.defer(ap,e,ao||aq,[at])},mouseenter:function(){clearTimeout(ar)},destroy:function(){clearTimeout(ar);aq.un(an)}};aq.on(an);return an},next:function(e,an){return this.matchNode("nextSibling","nextSibling",e,an)},parent:function(e,an){return this.matchNode("parentNode","parentNode",e,an)},position:function(aq,ap,e,ao){var an=this;if(an.dom.tagName!=="BODY"){if(!aq&&an.isStyle(ab,w)){an.setStyle(ab,v)}else{if(aq){an.setStyle(ab,aq)}}if(ap){an.setStyle(q,ap)}if(e||ao){an.setXY([e||false,ao||false])}}},prev:function(e,an){return this.matchNode("previousSibling","previousSibling",e,an)},query:function(ao,ax,av){var aq=this.dom,at,au,aw,an,e,ar,ap;if(!aq){return null}ax=(ax!==false);ao=ao.split(",");if(!av){at=[]}for(ar=0,au=ao.length;ar0){an=ap.className.split(ai);for(aq=0,ar=an.length;aq=":function(d){var c=this._filterValue;return this.getCandidateValue(d,c)>=c},">":function(d){var c=this._filterValue;return this.getCandidateValue(d,c)>c},"!=":function(d){var e=this,c=e._filterValue;d=e.getCandidateValue(d,c);if(e.isDateValue&&d instanceof Date){d=d.getTime();c=e.dateValue}return d!=c},"!==":function(d){var e=this,c=e._filterValue;d=e.getCandidateValue(d,c,true);if(e.isDateValue&&d instanceof Date){d=d.getTime();c=e.dateValue}return d!==c},"in":function(d){var c=this._filterValue;return Ext.Array.contains(c,this.getCandidateValue(d,c))},notin:function(d){var c=this._filterValue;return !Ext.Array.contains(c,this.getCandidateValue(d,c))},like:function(d){var c=this._filterValue;return c&&this.getCandidateValue(d,c).toLowerCase().indexOf(c.toLowerCase())>-1},"/=":function(d){var g=this,c=g._filterValue;d=g.getCandidateValue(d,c);if(c!==g.lastRegExpSource){g.lastRegExpSource=c;try{g.regex=new RegExp(c,"i")}catch(h){g.regex=null}}return g.regex?g.regex.test(d):false}});b["=="]=b["="];b.gt=b[">"];b.ge=b[">="];b.lt=b["<"];b.le=b["<="];b.eq=b["="];b.ne=b["!="]}));(Ext.cmd.derive("Ext.util.Observable",Ext.mixin.Observable,{$applyConfigs:true},0,0,0,0,0,0,[Ext.util,"Observable"],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe}));(Ext.cmd.derive("Ext.util.AbstractMixedCollection",Ext.Base,{isMixedCollection:true,generation:0,indexGeneration:0,constructor:function(b,a){var c=this;if(arguments.length===1&&Ext.isObject(b)){c.initialConfig=b;Ext.apply(c,b)}else{c.allowFunctions=b===true;if(a){c.getKey=a}c.initialConfig={allowFunctions:c.allowFunctions,getKey:c.getKey}}c.items=[];c.map={};c.keys=[];c.indexMap={};c.length=0;c.mixins.observable.constructor.call(c)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:false,add:function(c,d){var a=this.length,b;if(arguments.length===1){b=this.insert(a,c)}else{b=this.insert(a,c,d)}return b},getKey:function(a){return a.id},replace:function(c,e){var d=this,a,b;if(arguments.length==1){e=arguments[0];c=d.getKey(e)}a=d.map[c];if(typeof c=="undefined"||c===null||typeof a=="undefined"){return d.add(c,e)}d.generation++;b=d.indexOfKey(c);d.items[b]=e;d.map[c]=e;if(d.hasListeners.replace){d.fireEvent("replace",c,a,e)}return e},reorder:function(d){var h=this,b=h.items,c=0,g=b.length,a=[],e=[],i;h.suspendEvents();for(i in d){a[d[i]]=b[i]}for(c=0;c-1){b=e[g];delete e[g];delete c[g];e[h]=b;c[h]=a;d.keys[a]=h;d.indexGeneration=++d.generation}},addAll:function(c){var b=this,a;if(arguments.length>1||Ext.isArray(c)){b.insert(b.length,arguments.length>1?arguments:c)}else{for(a in c){if(c.hasOwnProperty(a)){if(b.allowFunctions||typeof c[a]!="function"){b.add(a,c[a])}}}}},each:function(e,d){var b=Ext.Array.push([],this.items),c=0,a=b.length,g;for(;c2){a=this.doInsert(b,[c],[d])}else{a=this.doInsert(b,[c])}a=a[0]}return a},doInsert:function(j,o,n){var l=this,b,c,g,k=o.length,a=k,e=l.hasListeners.add,d,h={},m,q,p;if(n!=null){l.useLinearSearch=true}else{n=o;o=new Array(k);for(g=0;g=0;--b){c.remove(a[b])}}else{while(c.length){c.removeAt(0)}}}else{c.length=c.items.length=c.keys.length=0;c.map={};c.indexMap={};c.generation++;c.indexGeneration=c.generation}},removeAt:function(a){var c=this,d,b;if(a=0){c.length--;d=c.items[a];Ext.Array.erase(c.items,a,1);b=c.keys[a];if(typeof b!="undefined"){delete c.map[b]}Ext.Array.erase(c.keys,a,1);if(c.hasListeners.remove){c.fireEvent("remove",d,b)}c.generation++;return d}return false},removeRange:function(h,a){var j=this,b,k,g,e,c,d;if(h=0){if(!a){a=1}e=Math.min(h+a,j.length);a=e-h;d=e===j.length;c=d&&j.indexGeneration===j.generation;for(g=h;g=0;a--){if(c[a]==null){d.removeAt(a)}}}else{return d.removeAt(d.indexOfKey(b))}},getCount:function(){return this.length},indexOf:function(c){var b=this,a;if(c!=null){if(!b.useLinearSearch&&(a=b.getKey(c))){return this.indexOfKey(a)}return Ext.Array.indexOf(b.items,c)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var e=this,d=e.indexMap={},c=e.keys,a=c.length,b;for(b=0;bb){e=true;g=i;i=b;b=g}if(i<0){i=0}if(b==null||b>=a){b=a-1}c=d.slice(i,b+1);if(e&&c.length){c.reverse()}return c},filter:function(d,c,e,a){var b=[];if(Ext.isString(d)){b.push(new Ext.util.Filter({property:d,value:c,anyMatch:e,caseSensitive:a}))}else{if(Ext.isArray(d)||d instanceof Ext.util.Filter){b=b.concat(d)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(e,d){var j=this,a=new j.self(j.initialConfig),h=j.keys,b=j.items,g=b.length,c;a.getKey=j.getKey;for(c=0;ci)?1:(a0){c.removeRange(b.multiSortLimit,d)}break;case"prepend":c.insert(0,h);break;case"append":c.addAll(h);break;case undefined:case null:case"replace":c.clear();c.addAll(h);break;default:}}if(e!==false){b.fireEvent("beforesort",b,h);b.onBeforeSort(h);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return h},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(g){if(!Ext.isArray(g)){if(g===undefined){g=[]}else{g=[g]}}var d=g.length,h=Ext.util.Sorter,b=this.getModel?this.getModel():this.model,e,a,c;for(c=0;c>1;h=d(e,b[c]);if(h>=0){i=c+1}else{if(h<0){a=c-1}}}return i},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent("sort",this)},sortByKey:function(a,b){this._sort("key",a,b||function(d,c){var g=String(d).toUpperCase(),e=String(c).toUpperCase();return g>e?1:(gc){q=c}}}if(o){p.tasks=o}p.firing=false;if(p.tasks.length){p.startTimer(q-a,Ext.Date.now())}if(r!==false&&d.hasListeners.idle){d.fireEvent("idle")}},startTimer:function(e,c){var d=this,b=c+e,a=d.timerId;if(a&&d.nextExpires-b>d.interval){clearTimeout(a);a=null}if(!a){if(e=e.duration),g,i;if(a){b=e.duration;c=true}g=this.collectTargetData(e,b,h,c);if(h){e.target.setAttr(g.anims[e.id].attributes,true);d.collectTargetData(e,e.duration,h,c);e.paused=true;g=e.target.target;if(e.target.isComposite){g=e.target.target.last()}i={};i[Ext.supports.CSS3TransitionEnd]=e.lastFrame;i.scope=e;i.single=true;g.on(i)}return g},jumpToEnd:function(c){var b=this,d,a;if(!b.targetArr){b.targetArr={};a=true}d=b.runAnim(c,true);b.applyAnimAttrs(d,d.anims[c.id]);if(a){b.targetArr=null}},collectTargetData:function(c,a,e,g){var b=c.target.getId(),d=this.targetArr[b];if(!d){d=this.targetArr[b]={id:b,el:c.target,anims:{}}}d.anims[c.id]={id:c.id,anim:c,elapsed:a,isLastFrame:g,attributes:[{duration:c.duration,easing:(e&&c.reverse)?c.easingFn.reverse().toCSS3():c.easing,attrs:c.runAnim(a)}]};return d},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,false,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var e=this.targetArr,g,c,b,d,a;for(c in e){if(e.hasOwnProperty(c)){g=e[c];for(a in g.anims){if(g.anims.hasOwnProperty(a)){b=g.anims[a];d=b.anim;if(b.attributes&&d.isRunning()){g.el.setAttr(b.attributes,false,b.isLastFrame);if(b.isLastFrame){d.lastFrame()}}}}}}}},1,0,0,0,0,[["queue",Ext.fx.Queue]],[Ext.fx,"Manager"],0));(Ext.cmd.derive("Ext.fx.Animator",Ext.Base,{isAnimator:true,duration:250,delay:0,delayStart:0,dynamic:false,easing:"ease",running:false,paused:false,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(a){var b=this;a=Ext.apply(b,a||{});b.config=a;b.id=Ext.id(null,"ext-animator-");b.mixins.observable.constructor.call(b,a);b.timeline=[];b.createTimeline(b.keyframes);if(b.target){b.applyAnimator(b.target);Ext.fx.Manager.addAnim(b)}},sorter:function(d,c){return d.pct-c.pct},createTimeline:function(d){var h=this,l=[],j=h.to||{},b=h.duration,m,a,c,g,k,e;for(k in d){if(d.hasOwnProperty(k)&&h.animKeyFramesRE.test(k)){e={attrs:Ext.apply(d[k],j)};if(k==="from"){k=0}else{if(k==="to"){k=100}}e.pct=parseInt(k,10);l.push(e)}}Ext.Array.sort(l,h.sorter);g=l.length;for(c=0;c0},isRunning:function(){return false}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.fx,"Animator"],0));(Ext.cmd.derive("Ext.fx.CubicBezier",Ext.Base,{singleton:true,cubicBezierAtTime:function(o,d,b,n,m,i){var j=3*d,l=3*(n-d)-j,a=1-j-l,h=3*b,k=3*(m-b)-h,p=1-h-k;function g(q){return((a*q+l)*q+j)*q}function c(q,s){var r=e(q,s);return((p*r+k)*r+h)*r}function e(q,y){var w,v,t,r,u,s;for(t=q,s=0;s<8;s++){r=g(t)-q;if(Math.abs(r)v){return v}while(wr){w=t}else{v=t}t=(v-w)/2+w}return t}return c(o,1/(200*i))},cubicBezier:function(b,e,a,c){var d=function(g){return Ext.fx.CubicBezier.cubicBezierAtTime(g,b,e,a,c,1)};d.toCSS3=function(){return"cubic-bezier("+[b,e,a,c].join(",")+")"};d.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-a,1-c,1-b,1-e)};return d}},0,0,0,0,0,0,[Ext.fx,"CubicBezier"],0));(Ext.cmd.derive("Ext.fx.Easing",Ext.Base,function(){var e=Math,h=e.PI,d=e.pow,b=e.sin,g=e.sqrt,a=e.abs,c=1.70158;return{singleton:true,linear:Ext.identityFn,ease:function(r){var l=0.07813-r/2,k=g(0.0066+l*l),i=k-l,p=d(a(i),1/3)*(i<0?-1:1),o=-k-l,m=d(a(o),1/3)*(o<0?-1:1),j=p+m+0.25;return d(1-j,2)*3*j*0.1+(1-j)*3*j*j+j*j*j},easeIn:function(i){return d(i,1.7)},easeOut:function(i){return d(i,0.48)},easeInOut:function(r){var l=0.48-r/1.04,k=g(0.1734+l*l),i=k-l,p=d(a(i),1/3)*(i<0?-1:1),o=-k-l,m=d(a(o),1/3)*(o<0?-1:1),j=p+m+0.5;return(1-j)*3*j*j+j*j*j},backIn:function(i){return i*i*((c+1)*i-c)},backOut:function(i){i=i-1;return i*i*((c+1)*i+c)+1},elasticIn:function(k){if(k===0||k===1){return k}var j=0.3,i=j/4;return d(2,-10*k)*b((k-i)*(2*h)/j)+1},elasticOut:function(i){return 1-Ext.fx.Easing.elasticIn(1-i)},bounceIn:function(i){return 1-Ext.fx.Easing.bounceOut(1-i)},bounceOut:function(m){var j=7.5625,k=2.75,i;if(m<(1/k)){i=j*m*m}else{if(m<(2/k)){m-=(1.5/k);i=j*m*m+0.75}else{if(m<(2.5/k)){m-=(2.25/k);i=j*m*m+0.9375}else{m-=(2.625/k);i=j*m*m+0.984375}}}return i}}},0,0,0,0,0,0,[Ext.fx,"Easing"],function(b){var c=b.self,a=c.prototype;c.addMembers({"back-in":a.backIn,"back-out":a.backOut,"ease-in":a.easeIn,"ease-out":a.easeOut,"elastic-in":a.elasticIn,"elastic-out":a.elasticOut,"bounce-in":a.bounceIn,"bounce-out":a.bounceOut,"ease-in-out":a.easeInOut})}));(Ext.cmd.derive("Ext.fx.DrawPath",Ext.Base,{singleton:true,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return(a=="object"&&b===Object(b))||(a=="undefined"&&typeof b==a)||(a=="null"&&b===null)||(a=="array"&&Array.isArray&&Array.isArray(b))||(Object.prototype.toString.call(b).toLowerCase().slice(8,-1))==a},path2string:function(){return this.join(",").replace(Ext.fx.DrawPath.pathToStringRE,"$1")},pathToString:function(a){return a.join(",").replace(Ext.fx.DrawPath.pathToStringRE,"$1")},parsePathString:function(a){if(!a){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},c=[],b=this;if(b.is(a,"array")&&b.is(a[0],"array")){c=b.pathClone(a)}if(!c.length){String(a).replace(b.pathCommandRE,function(g,e,j){var i=[],h=e.toLowerCase();j.replace(b.pathValuesRE,function(l,k){if(k){i.push(+k)}});if(h=="m"&&i.length>2){c.push([e].concat(Ext.Array.splice(i,0,2)));h="l";e=(e=="m")?"l":"L"}while(i.length>=d[h]){c.push([e].concat(Ext.Array.splice(i,0,d[h])));if(!d[h]){break}}})}c.toString=b.path2string;return c},pathClone:function(g){var c=[],a,e,b,d;if(!this.is(g,"array")||!this.is(g&&g[0],"array")){g=this.parsePathString(g)}for(b=0,d=g.length;b7){p[s].shift();var t=p[s];while(t.length){Ext.Array.splice(p,s++,0,["C"].concat(Ext.Array.splice(t,0,6)))}Ext.Array.erase(p,s,1);o=Math.max(d.length,m.length||0)}},c=function(v,u,s,p,t){if(v&&u&&v[t][0]=="M"&&u[t][0]!="M"){Ext.Array.splice(u,t,0,["M",p.x,p.y]);s.bx=0;s.by=0;s.x=v[t][1];s.y=v[t][2];o=Math.max(d.length,m.length||0)}},h,o,g,q,e,k;for(h=0,o=Math.max(d.length,m.length||0);h1){aa=V(aa);H=aa*H;F=aa*F}c=H*H;R=F*F;U=(n==g?-1:1)*V(u((c*R-c*N*N-R*O*O)/(c*N*N+R*O*O)));C=U*H*N/F+(s+r)/2;B=U*-F*O/H+(af+ae)/2;m=o(((af-B)/F).toFixed(7));l=o(((ae-B)/F).toFixed(7));m=sl){m=m-d*2}if(!g&&l>m){l=l-d*2}}else{m=A[0];l=A[1];C=A[2];B=A[3]}q=l-m;if(u(q)>E){D=l;G=r;p=ae;l=m+E*(g&&l>m?1:-1);r=C+H*T(l);ae=B+F*a(l);M=v.arc2curve(r,ae,H,F,z,0,g,G,p,[l,D,C,B])}q=l-m;j=T(m);ad=a(m);e=T(l);ac=a(l);P=J.tan(q/4);S=4/3*H*P;Q=4/3*F*P;ab=[s,af];Z=[s+S*ad,af-Q*j];Y=[r+S*ac,ae-Q*e];W=[r,ae];Z[0]=2*ab[0]-Z[0];Z[1]=2*ab[1]-Z[1];if(A){return[Z,Y,W].concat(M)}else{M=[Z,Y,W].concat(M).join().split(",");L=[];K=M.length;for(X=0;X=d){l=d;a=true}if(i.reverse){l=d-l}for(e in k){if(k.hasOwnProperty(e)){j=k[e];h=a?1:c(l/d);g[e]=b[e].set(j,h)}}i.frameCount++;return g},lastFrame:function(){var c=this,a=c.iterations,b=c.currentIteration;b++;if(b0},isRunning:function(){return this.paused===false&&this.running===true&&this.isAnimator!==true}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.fx,"Anim"],0));Ext.enableFx=true;(Ext.cmd.derive("Ext.util.Animate",Ext.Base,{mixinId:"animate",isAnimate:true,animate:function(a){var b=this;if(Ext.fx.Manager.hasFxBlock(b.id)){return b}Ext.fx.Manager.queueFx(new Ext.fx.Anim(b.anim(a)));return this},anim:function(a){if(!Ext.isObject(a)){return(a)?{}:false}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:true},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,"stopAnimation"),stopAnimation:function(a){Ext.fx.Manager.stopAnimation(this.id,a);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:true});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:false});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,"getActiveAnimation"),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,"Animate"],0));(Ext.cmd.derive("Ext.dom.Fly",Ext.dom.Element,{alternateClassName:"Ext.dom.Element.Fly",validNodeTypes:{1:1,9:1,11:1},isFly:true,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=false}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,"Fly",Ext.dom.Element,"Fly"],function(a){var b={},c;a.cache=b;Ext.fly=function(j,e){var h=null,g=Ext.fly,d,i;e=e||(g.caller&&g.caller.$name)||"_global";j=Ext.getDom(j);if(j){d=j.nodeType;if(a.prototype.validNodeTypes[d]||(!d&&(j.window==j))){h=Ext.cache[j.id];if(!h||h.dom!==j){h=b[e]||(b[e]=new a());h.dom=j;i=h.getData(true);if(i){i.isSynchronized=false}}}}return h};Ext.getDetachedBody=function(){if(!c){Ext.detachedBodyEl=c=new a(document.createElement("div"));c.isDetachedBody=true}return c}}));(Ext.cmd.derive("Ext.dom.CompositeElementLite",Ext.Base,{alternateClassName:["Ext.CompositeElementLite"],isComposite:true,isLite:true,statics:{importElementMethods:function(){var a=Ext.dom.Element,b=this.prototype;Ext.Object.each(a.prototype,function(c,d){if(typeof d==="function"&&!b[c]){b[c]=function(){return this.invoke(c,arguments)}}})}},constructor:function(b,a){if(a){this.elements=b||[]}else{this.elements=[];this.add(b)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(c,a){var e=this.elements,b,d;if(!c){return this}if(typeof c=="string"){c=Ext.fly(a||document).query(c)}else{if(c.isComposite){c=c.elements}else{if(!Ext.isIterable(c)){c=[c]}}}for(b=0,d=c.length;b-1){c=Ext.getDom(c);if(a){g=this.elements[b];g.parentNode.insertBefore(c,g);Ext.removeNode(g)}Ext.Array.splice(this.elements,b,1,c)}return this},clear:function(d){var c=this,b=c.elements,a=b.length-1;if(d){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(d,b){if(!d){return this}if(typeof d==="string"){d=Ext.dom.Element.selectorFunction(d,b)}var c=this.elements,a=d.length,g;for(g=0;g','","",'",'"].join(""),J=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,D=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,b=/\ssrc=([\'\"])(.*?)\1/i,o=/\S/,i=/\stype=([\'\"])(.*?)\1/i,A=/^-ms-/,B=/(-[a-z])/gi,I=function(Q,R){return R.charAt(1).toUpperCase()},n="x-masked",z="x-masked-relative",v="x-mask-msg",s=/^body/i,r={},w=function(R){var S=R.getData(),Q=S[H];if(Q===undefined){S[H]=Q=j.VISIBILITY}return Q},N=E.createRange?E.createRange():null,F={INPUT:true,TEXTAREA:true};if(Ext.isIE8){var h=E.createElement("div"),L=[],d=Ext.Function.createBuffered(function(){var Q=L.length,R;for(R=0;R"+Ext.String.format(P,Q)+""));R.selectNode("."+Q+"-mc").appendChild(this.dom);return R},clean:function(R){var T=this,V=T.dom,U=T.getData(),W=V.firstChild,S=-1,Q;if(U.isCleaned&&R!==true){return T}while(W){Q=W.nextSibling;if(W.nodeType===3){if(!(o.test(W.nodeValue))){V.removeChild(W)}else{if(Q&&Q.nodeType===3){W.appendData(Ext.String.trim(Q.data));V.removeChild(Q);Q=W.nextSibling;W.nodeIndex=++S}}}else{Ext.fly(W,"_clean").clean();W.nodeIndex=++S}W=Q}U.isCleaned=true;return T},empty:N?function(){var Q=this.dom;if(Q.firstChild){N.setStartBefore(Q.firstChild);N.setEndAfter(Q.lastChild);N.deleteContents()}}:function(){var Q=this.dom;while(Q.lastChild){Q.removeChild(Q.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(Q){Q=Q||"";return this.setStyle({left:Q,right:Q,top:Q,bottom:Q,"z-index":"",position:"static"})},createProxy:function(Q,U,T){Q=(typeof Q==="object")?Q:{tag:"div",role:"presentation",cls:Q};var S=this,R=U?Ext.DomHelper.append(U,Q,true):Ext.DomHelper.insertBefore(S.dom,Q,true);R.setVisibilityMode(j.DISPLAY);R.hide();if(T&&S.setBox&&S.getBox){R.setBox(S.getBox())}return R},clearOpacity:function(){return this.setOpacity("")},clip:function(){var R=this,S=R.getData(),Q;if(!S[q]){S[q]=true;Q=R.getStyle([K,u,t]);S[x]={o:Q[K],x:Q[u],y:Q[t]};R.setStyle(K,M);R.setStyle(u,M);R.setStyle(t,M)}return R},destroy:function(){var S=this,U=S.dom,T=S.getData(),R,Q;if(U){if(S.isAnimate){S.stopAnimation()}S.removeAnchor()}arguments.callee.$previous.call(this);if(U&&Ext.isIE8&&(U.window!=U)&&(U.nodeType!==9)&&(U.tagName!=="BODY")&&(U.tagName!=="HTML")){L[L.length]=U;d()}if(T){R=T.maskEl;Q=T.maskMsg;if(R){R.destroy()}if(Q){Q.destroy()}}},enableDisplayMode:function(R){var Q=this;Q.setVisibilityMode(j.DISPLAY);if(R!==undefined){Q.getData()[m]=R}return Q},fadeIn:function(S){var Q=this,R=Q.dom;Q.animate(Ext.apply({},S,{opacity:1,internalListeners:{beforeanimate:function(U){var T=Ext.fly(R,"_anim");if(T.isStyle("display","none")){T.setDisplayed("")}else{T.show()}}}}));return this},fadeOut:function(S){var Q=this,R=Q.dom;S=Ext.apply({opacity:0,internalListeners:{afteranimate:function(U){if(R&&U.to.opacity===0){var T=Ext.fly(R,"_anim");if(S.useDisplay){T.setDisplayed(false)}else{T.hide()}}}}},S);Q.animate(S);return Q},fixDisplay:function(){var Q=this;if(Q.isStyle(a,G)){Q.setStyle(g,M);Q.setStyle(a,Q._getDisplay());if(Q.isStyle(a,G)){Q.setStyle(a,"block")}}},frame:function(Q,T,U){var S=this,V=S.dom,R;Q=Q||"#C3DAF9";T=T||1;U=U||{};R=function(){var Z=Ext.fly(V,"_anim"),Y=this,aa,X,W;Z.show();aa=Z.getBox();X=Ext.getBody().createChild({role:"presentation",id:Z.dom.id+"-anim-proxy",style:{position:"absolute","pointer-events":"none","z-index":35000,border:"0px solid "+Q}});W=new Ext.fx.Anim({target:X,duration:U.duration||1000,iterations:T,from:{top:aa.y,left:aa.x,borderWidth:0,opacity:1,height:aa.height,width:aa.width},to:{top:aa.y-20,left:aa.x-20,borderWidth:10,opacity:0,height:aa.height+40,width:aa.width+40}});W.on("afteranimate",function(){X.destroy();Y.end()})};S.animate({duration:(Math.max(U.duration,500)*2)||2000,listeners:{beforeanimate:{fn:R}},callback:U.callback,scope:U.scope});return S},getColor:function(R,S,X){var U=this.getStyle(R),T=X||X===""?X:"#",W,Q,V=0;if(!U||(/transparent|inherit/.test(U))){return S}if(/^r/.test(U)){U=U.slice(4,U.length-1).split(",");Q=U.length;for(;V5?T.toLowerCase():S)},getLoader:function(){var R=this,S=R.getData(),Q=S.loader;if(!Q){S.loader=Q=new Ext.ElementLoader({target:R})}return Q},getPositioning:function(R){var Q=this.getStyle(["left","top","position","z-index"]),S=this.dom;if(R){if(Q.left==="auto"){Q.left=S.offsetLeft+"px"}if(Q.top==="auto"){Q.top=S.offsetTop+"px"}}return Q},ghost:function(Q,T){var S=this,U=S.dom,R;Q=Q||"b";R=function(){var Y=Ext.fly(U,"_anim"),X=Y.getWidth(),W=Y.getHeight(),Z=Y.getXY(),V=Y.getPositioning(),aa={opacity:0};switch(Q){case"t":aa.y=Z[1]-W;break;case"l":aa.x=Z[0]-X;break;case"r":aa.x=Z[0]+X;break;case"b":aa.y=Z[1]+W;break;case"tl":aa.x=Z[0]-X;aa.y=Z[1]-W;break;case"bl":aa.x=Z[0]-X;aa.y=Z[1]+W;break;case"br":aa.x=Z[0]+X;aa.y=Z[1]+W;break;case"tr":aa.x=Z[0]+X;aa.y=Z[1]-W;break}this.to=aa;this.on("afteranimate",function(){var ab=Ext.fly(U,"_anim");if(ab){ab.hide();ab.clearOpacity();ab.setPositioning(V)}})};S.animate(Ext.applyIf(T||{},{duration:500,easing:"ease-out",listeners:{beforeanimate:R}}));return S},hide:function(Q){if(typeof Q==="string"){this.setVisible(false,Q);return this}this.setVisible(false,this.anim(Q));return this},highlight:function(T,R){var X=this,U=X.dom,Z={},W,aa,V,S,Q,Y;R=R||{};S=R.listeners||{};V=R.attr||"backgroundColor";Z[V]=T||"ffff9c";if(!R.to){aa={};aa[V]=R.endColor||X.getColor(V,"ffffff","")}else{aa=R.to}R.listeners=Ext.apply(Ext.apply({},S),{beforeanimate:function(){W=U.style[V];var ab=Ext.fly(U,"_anim");ab.clearOpacity();ab.show();Q=S.beforeanimate;if(Q){Y=Q.fn||Q;return Y.apply(Q.scope||S.scope||l,arguments)}},afteranimate:function(){if(U){U.style[V]=W}Q=S.afteranimate;if(Q){Y=Q.fn||Q;Y.apply(Q.scope||S.scope||l,arguments)}}});X.animate(Ext.apply({},R,{duration:1000,easing:"ease-in",from:Z,to:aa}));return X},hover:function(R,Q,T,S){var U=this;U.on("mouseenter",R,T||U.dom,S);U.on("mouseleave",Q,T||U.dom,S);return U},initDD:function(S,R,T){var Q=new Ext.dd.DD(Ext.id(this.dom),S,R);return Ext.apply(Q,T)},initDDProxy:function(S,R,T){var Q=new Ext.dd.DDProxy(Ext.id(this.dom),S,R);return Ext.apply(Q,T)},initDDTarget:function(S,R,T){var Q=new Ext.dd.DDTarget(Ext.id(this.dom),S,R);return Ext.apply(Q,T)},isFocusable:function(){var R=this.dom,Q=false,S;if(R&&!R.disabled){S=R.nodeName;Q=!!Ext.Element.naturallyFocusableTags[S]||((S==="A"||S==="LINK")&&!!R.href)||R.getAttribute("tabIndex")!=null||R.contentEditable==="true";if(Ext.isIE8&&S==="INPUT"&&R.type==="hidden"){Q=false}Q=Q&&this.isVisible(true)}return Q},isInputField:function(){var R=this.dom,Q=R.contentEditable;if((F[R.tagName]&&R.type!=="button")||(Q===""||Q==="true")){return true}return false},isTabbable:function(S){var T=this.dom,V=false,U,R,Q;if(T&&!T.disabled){U=T.nodeName;Q=T.getAttribute("tabIndex");R=Q!=null;Q-=0;if(U==="A"||U==="LINK"){if(T.href){V=R&&Q<0?false:true}else{if(T.contentEditable==="true"){V=!R||(R&&Q>=0)?true:false}else{V=R&&Q>=0?true:false}}}else{if(T.contentEditable==="true"||Ext.Element.naturallyTabbableTags[U]){V=R&&Q<0?false:true}else{if(R&&Q>=0){V=true}}}if(Ext.isIE8&&U==="INPUT"&&T.type==="hidden"){V=false}V=V&&(S||((!this.component||this.component.isVisible(true))&&this.isVisible(true)))}return V},isMasked:function(Q){var U=this,W=U.getData(),T=W.maskEl,R=W.maskMsg,V=false,S;if(T&&T.isVisible()){if(R){R.center(U)}V=true}else{if(Q){S=U.findParentNode();if(S){return Ext.fly(S).isMasked(Q)}}}return V},load:function(Q){this.getLoader().load(Q);return this},mask:function(X,V,Q){var T=this,W=T.dom,U=T.getData(),S=U.maskEl,R;if(!(s.test(W.tagName)&&T.getStyle("position")==="static")){T.addCls(z)}if(S){S.destroy()}S=Ext.DomHelper.append(W,{role:"presentation",cls:"x-mask x-border-box",children:{role:"presentation",cls:V?v+" "+V:v,cn:{tag:"div",role:"presentation",cls:"x-mask-msg-inner",cn:{tag:"div",role:"presentation",cls:"x-mask-msg-text",html:X||""}}}},true);R=Ext.get(S.dom.firstChild);U.maskEl=S;T.addCls(n);S.setDisplayed(true);if(typeof X==="string"){R.setDisplayed(true);R.center(T)}else{R.setDisplayed(false)}if(W===E.body){S.addCls("x-mask-fixed")}T.saveTabbableState({skipSelf:W===E.body});if(Ext.isIE9m&&W!==E.body&&T.isStyle("height","auto")){S.setSize(undefined,Q||T.getHeight())}return S},puff:function(U){var T=this,V=T.dom,R,S=T.getBox(),Q=T.getStyle(["width","height","left","right","top","bottom","position","z-index","font-size","opacity"],true);U=Ext.applyIf(U||{},{easing:"ease-out",duration:500,useDisplay:false});R=function(){var W=Ext.fly(V,"_anim");W.clearOpacity();W.show();this.to={width:S.width*2,height:S.height*2,x:S.x-(S.width/2),y:S.y-(S.height/2),opacity:0,fontSize:"200%"};this.on("afteranimate",function(){var X=Ext.fly(V,"_anim");if(X){if(U.useDisplay){X.setDisplayed(false)}else{X.hide()}X.setStyle(Q);Ext.callback(U.callback,U.scope)}})};T.animate({duration:U.duration,easing:U.easing,listeners:{beforeanimate:{fn:R}}});return T},selectable:function(){var Q=this;Q.dom.unselectable="";Q.removeCls(j.unselectableCls);Q.addCls(j.selectableCls);return Q},setCapture:function(){var Q=this.dom;if(Ext.isIE9m&&Q.setCapture){Q.setCapture()}},setHeight:function(Q,R){var S=this;if(!R||!S.anim){arguments.callee.$previous.apply(this,arguments)}else{if(!Ext.isObject(R)){R={}}S.animate(Ext.applyIf({to:{height:Q}},R))}return S},setHorizontal:function(){var R=this,Q=R.verticalCls;delete R.vertical;if(Q){delete R.verticalCls;R.removeCls(Q)}delete R.setWidth;delete R.setHeight;if(!Ext.isIE8){delete R.getWidth;delete R.getHeight}delete R.styleHooks},updateText:function(T){var Q=this,S,R;if(S){R=S.firstChild;if(!R||(R.nodeType!==3||R.nextSibling)){R=E.createTextNode();Q.empty();S.appendChild(R)}if(T){R.data=T}}},setHtml:function(S,R,X,T){var U=this,W,V,Q;if(!U.dom){return U}S=S||"";V=U.dom;if(R!==true){V.innerHTML=S;Ext.callback(X,U);return U}W=Ext.id();S+='';Q=Ext.interval(function(){var ae,ab,aa,Z,Y,ad,ac;if(!(ad=E.getElementById(W))){return false}clearInterval(Q);Ext.removeNode(ad);ae=Ext.getHead().dom;while((ab=J.exec(S))){aa=ab[1];Z=aa?aa.match(b):false;if(Z&&Z[2]){ac=E.createElement("script");ac.src=Z[2];Y=aa.match(i);if(Y&&Y[2]){ac.type=Y[2]}ae.appendChild(ac)}else{if(ab[2]&&ab[2].length>0){if(T){Ext.functionFactory(ab[2]).call(T)}else{Ext.globalEval(ab[2])}}}}Ext.callback(X,T||U)},20);V.innerHTML=S.replace(D,"");return U},setOpacity:function(R,Q){var S=this;if(!S.dom){return S}if(!Q||!S.anim){S.setStyle("opacity",R)}else{if(typeof Q!="object"){Q={duration:350,easing:"ease-in"}}S.animate(Ext.applyIf({to:{opacity:R}},Q))}return S},setPositioning:function(Q){return this.setStyle(Q)},setVertical:function(T,Q){var S=this,R=j.prototype;S.vertical=true;if(Q){S.addCls(S.verticalCls=Q)}S.setWidth=R.setHeight;S.setHeight=R.setWidth;if(!Ext.isIE8){S.getWidth=R.getHeight;S.getHeight=R.getWidth}S.styleHooks=(T===270)?R.verticalStyleHooks270:R.verticalStyleHooks90},setSize:function(S,Q,R){var T=this;if(Ext.isObject(S)){R=Q;Q=S.height;S=S.width}if(!R||!T.anim){T.dom.style.width=j.addUnits(S);T.dom.style.height=j.addUnits(Q);if(T.shadow||T.shim){T.syncUnderlays()}}else{if(R===true){R={}}T.animate(Ext.applyIf({to:{width:S,height:Q}},R))}return T},setVisible:function(U,Q){var S=this,T=S.dom,R=w(S);if(typeof Q==="string"){switch(Q){case a:R=j.DISPLAY;break;case g:R=j.VISIBILITY;break;case O:R=j.OFFSETS;break;case c:R=j.CLIP;break}S.setVisibilityMode(R);Q=false}if(!Q||!S.anim){if(R===j.DISPLAY){return S.setDisplayed(U)}else{if(R===j.OFFSETS){S[U?"removeCls":"addCls"](k)}else{if(R===j.CLIP){S[U?"removeCls":"addCls"](p)}else{if(R===j.VISIBILITY){S.fixDisplay();T.style.visibility=U?"":M}}}}}else{if(U){S.setOpacity(0.01);S.setVisible(true)}if(!Ext.isObject(Q)){Q={duration:350,easing:"ease-in"}}S.animate(Ext.applyIf({callback:function(){if(!U){Ext.fly(T).setVisible(false).setOpacity(1)}},to:{opacity:(U)?1:0}},Q))}S.getData()[y]=U;if(S.shadow||S.shim){S.setUnderlaysVisible(U)}return S},setWidth:function(R,Q){var S=this;if(!Q||!S.anim){arguments.callee.$previous.apply(this,arguments)}else{if(!Ext.isObject(Q)){Q={}}S.animate(Ext.applyIf({to:{width:R}},Q))}return S},setX:function(Q,R){return this.setXY([Q,this.getY()],R)},setXY:function(S,Q){var R=this;if(!Q||!R.anim){arguments.callee.$previous.call(this,S)}else{if(!Ext.isObject(Q)){Q={}}R.animate(Ext.applyIf({to:{x:S[0],y:S[1]}},Q))}return this},setY:function(R,Q){return this.setXY([this.getX(),R],Q)},show:function(Q){if(typeof Q==="string"){this.setVisible(true,Q);return this}this.setVisible(true,this.anim(Q));return this},slideIn:function(T,S,U){var W=this,R=W.dom,Z=R.style,Y,Q,V,X;T=T||"t";S=S||{};Y=function(){var ae=this,ad=S.listeners,ac=Ext.fly(R,"_anim"),af,aa,ag,ab;if(!U){ac.fixDisplay()}af=ac.getBox();if((T=="t"||T=="b")&&af.height===0){af.height=R.scrollHeight}else{if((T=="l"||T=="r")&&af.width===0){af.width=R.scrollWidth}}aa=ac.getStyle(["width","height","left","right","top","bottom","position","z-index"],true);ac.setSize(af.width,af.height);if(S.preserveScroll){V=ac.cacheScrollValues()}ab=ac.wrap({role:"presentation",id:Ext.id()+"-anim-wrap-for-"+ac.dom.id,style:{visibility:U?"visible":"hidden"}});X=ab.dom.parentNode;ab.setPositioning(ac.getPositioning());if(ab.isStyle("position","static")){ab.position("relative")}ac.clearPositioning("auto");ab.clip();if(V){V()}ac.setStyle({visibility:"",position:"absolute"});if(U){ab.setSize(af.width,af.height)}switch(T){case"t":ag={from:{width:af.width+"px",height:"0px"},to:{width:af.width+"px",height:af.height+"px"}};Z.bottom="0px";break;case"l":ag={from:{width:"0px",height:af.height+"px"},to:{width:af.width+"px",height:af.height+"px"}};W.anchorAnimX(T);break;case"r":ag={from:{x:af.x+af.width,width:"0px",height:af.height+"px"},to:{x:af.x,width:af.width+"px",height:af.height+"px"}};W.anchorAnimX(T);break;case"b":ag={from:{y:af.y+af.height,width:af.width+"px",height:"0px"},to:{y:af.y,width:af.width+"px",height:af.height+"px"}};break;case"tl":ag={from:{x:af.x,y:af.y,width:"0px",height:"0px"},to:{width:af.width+"px",height:af.height+"px"}};Z.bottom="0px";W.anchorAnimX("l");break;case"bl":ag={from:{y:af.y+af.height,width:"0px",height:"0px"},to:{y:af.y,width:af.width+"px",height:af.height+"px"}};W.anchorAnimX("l");break;case"br":ag={from:{x:af.x+af.width,y:af.y+af.height,width:"0px",height:"0px"},to:{x:af.x,y:af.y,width:af.width+"px",height:af.height+"px"}};W.anchorAnimX("r");break;case"tr":ag={from:{x:af.x+af.width,width:"0px",height:"0px"},to:{x:af.x,width:af.width+"px",height:af.height+"px"}};Z.bottom="0px";W.anchorAnimX("r");break}ab.show();Q=Ext.apply({},S);delete Q.listeners;Q=new Ext.fx.Anim(Ext.applyIf(Q,{target:ab,duration:500,easing:"ease-out",from:U?ag.to:ag.from,to:U?ag.from:ag.to}));Q.on("afteranimate",function(){var ah=Ext.fly(R,"_anim");ah.setStyle(aa);if(U){if(S.useDisplay){ah.setDisplayed(false)}else{ah.hide()}}if(ab.dom){if(ab.dom.parentNode){ab.dom.parentNode.insertBefore(ah.dom,ab.dom)}else{X.appendChild(ah.dom)}ab.destroy()}if(V){V()}ae.end()});if(ad){Q.on(ad)}};W.animate({duration:S.duration?Math.max(S.duration,500)*2:1000,listeners:{beforeanimate:Y}});return W},slideOut:function(R,Q){return this.slideIn(R,Q,true)},swallowEvent:function(R,S){var U=this,V,Q,T=function(W){W.stopPropagation();if(S){W.preventDefault()}};if(Ext.isArray(R)){Q=R.length;for(V=0;V0){W.setAttribute(X,++R)}else{if(W.hasAttribute("tabIndex")){W.setAttribute(T,W.getAttribute("tabIndex"))}else{W.setAttribute(T,"none")}W.setAttribute("tabIndex","-1");W.setAttribute(X,"1")}}return S},restoreTabbableState:function(Q,W){var U=this.dom,Y=Ext.Element.tabbableSavedCounterAttribute,Z=Ext.Element.tabbableSavedValueAttribute,S=[],aa,R,S,T,V,X;if(!U){return this}if(!W){S=Ext.Array.from(U.querySelectorAll("["+Y+"]"))}if(!Q){S.unshift(U)}for(V=0,X=S.length;V1){T.setAttribute(Y,--R);continue}aa=T.getAttribute(Z);if(aa==="none"){T.removeAttribute("tabIndex")}else{T.setAttribute("tabIndex",aa)}T.removeAttribute(Z);T.removeAttribute(Y)}return S}},deprecated:{"4.0":{methods:{pause:function(Q){var R=this;Ext.fx.Manager.setFxDefaults(R.id,{delay:Q});return R},scale:function(Q,R,S){this.animate(Ext.apply({},S,{width:Q,height:R}));return this},shift:function(Q){this.animate(Q);return this}}},"4.2":{methods:{moveTo:function(Q,S,R){return this.setXY([Q,S],R)},setBounds:function(R,U,T,Q,S){return this.setBox({x:R,y:U,width:T,height:Q},S)},setLeftTop:function(T,S){var R=this,Q=R.dom.style;Q.left=j.addUnits(T);Q.top=j.addUnits(S);if(R.shadow||R.shim){R.syncUnderlays()}return R},setLocation:function(Q,S,R){return this.setXY([Q,S],R)}}},"5.0":{methods:{getAttributeNS:function(R,Q){return this.getAttribute(Q,R)},getCenterXY:function(){return this.getAlignToXY(E,"c-c")},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(C))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(e))||0},getStyleSize:function(){var U=this,V=this.dom,R=(V===E||V===E.body),T,Q,S;if(R){return{width:j.getViewportWidth(),height:j.getViewportHeight()}}T=U.getStyle(["height","width"],true);if(T.width&&T.width!=="auto"){Q=parseFloat(T.width)}if(T.height&&T.height!=="auto"){S=parseFloat(T.height)}return{width:Q||U.getWidth(true),height:S||U.getHeight(true)}},isBorderBox:function(){return true},isDisplayed:function(){return !this.isStyle("display","none")},focusable:"isFocusable"}}}}})(),function(){var q=Ext.dom.Element,p=q.prototype,w=!Ext.isIE8,b=document,m=b.defaultView,v=/alpha\(opacity=(.*)\)/i,h=/^\s+|\s+$/g,x=p.styleHooks,t=Ext.supports,e,o,d,s,g,y,c;p._init(q);delete p._init;Ext.plainTableCls="x-table-plain";Ext.plainListCls="x-list-plain";if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!t.Opacity&&Ext.isIE){Ext.apply(x.opacity,{get:function(B){var A=B.style.filter,z,k;if(A.match){z=A.match(v);if(z){k=parseFloat(z[1]);if(!isNaN(k)){return k?k/100:0}}}return 1},set:function(B,z){var k=B.style,A=k.filter.replace(v,"").replace(h,"");k.zoom=1;if(typeof(z)==="number"&&z>=0&&z<1){z*=100;k.filter=A+(A.length?" ":"")+"alpha(opacity="+z+")"}else{k.filter=A}}})}if(!t.matchesSelector){var j=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,l=/\-/g,a,u=function(k,z){var A=new RegExp("(?:^|\\s+)"+z.replace(l,"\\-")+"(?:\\s+|$)");if(k&&k!=="*"){k=k.toUpperCase();return function(B){return B.tagName===k&&A.test(B.className)}}return function(B){return A.test(B.className)}},r=function(k){k=k.toUpperCase();return function(z){return z.tagName===k}},n={};p.matcherCache=n;p.is=function(k){if(!k){return true}var z=this.dom,F,B,E,D,C,A,G;if(z.nodeType!==1){return false}if(!(E=Ext.isFunction(k)?k:n[k])){if(!(B=k.match(j))){D=z.parentNode;if(!D){C=true;D=a||(a=b.createDocumentFragment());a.appendChild(z)}A=Ext.Array.indexOf(Ext.fly(D,"_is").query(k),z)!==-1;if(C){a.removeChild(z)}return A}G=B[1];F=B[2];n[k]=E=F?u(G,F):r(G)}return E(z)}}if(!m||!m.getComputedStyle){p.getStyle=function(M,H){var I=this,D=I.dom,O=typeof M!=="string",A=M,J=A,G=1,B=H,z=I.styleHooks,N,F,L,K,C,k,E;if(O){L={};A=J[0];E=0;if(!(G=J.length)){return L}}if(!D||D.documentElement){return L||""}F=D.style;if(H){k=F}else{k=D.currentStyle;if(!k){B=true;k=F}}do{K=z[A];if(!K){z[A]=K={name:q.normalize(A)}}if(K.get){C=K.get(D,I,B,k)}else{N=K.name;C=k[N]}if(!O){return C}L[A]=C;A=J[++E]}while(E=9)){p.getAttribute=function(k,A){var B=this.dom,z;if(A){z=typeof B[A+":"+k];if(z!=="undefined"&&z!=="unknown"){return B[A+":"+k]||null}return null}if(k==="for"){k="htmlFor"}return B[k]||null}}Ext.onInternalReady(function(){var B=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,z=[],G=p.setWidth,H=p.setHeight,L=p.setSize,M=/^\d+(?:\.\d*)?px$/i,F,D,k,K;if(t.FixedTableWidthBug){x.width={name:"width",set:function(S,R,P){var O=S.style,N=P._needsTableWidthFix,Q=O.display;if(N){O.display="none"}O.width=R;if(N){S.scrollWidth;O.display=Q}}};p.setWidth=function(Q,O){var S=this,T=S.dom,P=T.style,N=S._needsTableWidthFix,R=P.display;if(N&&!O){P.display="none"}G.call(S,Q,O);if(N&&!O){T.scrollWidth;P.display=R}return S};p.setSize=function(R,O,P){var T=this,U=T.dom,Q=U.style,N=T._needsTableWidthFix,S=Q.display;if(N&&!P){Q.display="none"}L.call(T,R,O,P);if(N&&!P){U.scrollWidth;Q.display=S}return T}}if(Ext.isIE8){x.height={name:"height",set:function(S,R,P){var O=P.component,Q,N;if(O&&O._syncFrameHeight&&P===O.el){N=O.frameBody.dom.style;if(M.test(R)){Q=O.getFrameInfo();if(Q){N.height=(parseInt(R,10)-Q.height)+"px"}}else{if(!R||R==="auto"){N.height=""}}}S.style.height=R}};p.setHeight=function(N,P){var Q=this.component,R,O;if(Q&&Q._syncFrameHeight&&this===Q.el){O=Q.frameBody.dom.style;if(!N||N==="auto"){O.height=""}else{R=Q.getFrameInfo();if(R){O.height=(N-R.height)+"px"}}}return H.call(this,N,P)};p.setSize=function(R,N,P){var Q=this.component,S,O;if(Q&&Q._syncFrameHeight&&this===Q.el){O=Q.frameBody.dom.style;if(!N||N==="auto"){O.height=""}else{S=Q.getFrameInfo();if(S){O.height=(N-S.height)+"px"}}}return L.call(this,R,N,P)}}Ext.getDoc().on("selectstart",function(R,S){var Q=q.selectableCls,P=q.unselectableCls,N=S&&S.tagName;N=N&&N.toLowerCase();if(N==="input"||N==="textarea"){return}while(S&&S.nodeType===1&&S!==b.documentElement){var O=Ext.fly(S);if(O.hasCls(Q)){return}if(O.hasCls(P)){R.stopEvent();return}S=S.parentNode}});function E(R,O,Q,N){var P=N[this.name]||"";return B.test(P)?"transparent":P}function J(O,P,N){return function(){O.selectionStart=P;O.selectionEnd=N}}function I(R){var P=t.DisplayChangeInputSelectionBug,Q=t.DisplayChangeTextAreaSelectionBug,S,N,T,O;if(P||Q){S=q.getActiveElement();N=S&&S.tagName;if((Q&&N==="TEXTAREA")||(P&&N==="INPUT"&&S.type==="text")){if(Ext.fly(R).isAncestor(S)){T=S.selectionStart;O=S.selectionEnd;if(Ext.isNumber(T)&&Ext.isNumber(O)){return J(S,T,O)}}}}return Ext.emptyFn}function C(T,Q,S,P){var N=P.marginRight,O,R;if(N!=="0px"){O=T.style;R=O.display;O.display="inline-block";N=(S?P:T.ownerDocument.defaultView.getComputedStyle(T,null)).marginRight;O.display=R}return N}function A(U,R,T,Q){var N=Q.marginRight,P,O,S;if(N!=="0px"){P=U.style;O=I(U);S=P.display;P.display="inline-block";N=(T?Q:U.ownerDocument.defaultView.getComputedStyle(U,"")).marginRight;P.display=S;O()}return N}if(!t.RightMargin){x.marginRight=x["margin-right"]={name:"marginRight",get:(t.DisplayChangeInputSelectionBug||t.DisplayChangeTextAreaSelectionBug)?A:C}}if(!t.TransparentColor){F=["background-color","border-color","color","outline-color"];for(D=F.length;D--;){k=F[D];K=q.normalize(k);x[k]=x[K]={name:K,get:E}}}p.verticalStyleHooks90=e=Ext.Object.chain(x);p.verticalStyleHooks270=o=Ext.Object.chain(x);e.width=x.height||{name:"height"};e.height=x.width||{name:"width"};e["margin-top"]={name:"marginLeft"};e["margin-right"]={name:"marginTop"};e["margin-bottom"]={name:"marginRight"};e["margin-left"]={name:"marginBottom"};e["padding-top"]={name:"paddingLeft"};e["padding-right"]={name:"paddingTop"};e["padding-bottom"]={name:"paddingRight"};e["padding-left"]={name:"paddingBottom"};e["border-top"]={name:"borderLeft"};e["border-right"]={name:"borderTop"};e["border-bottom"]={name:"borderRight"};e["border-left"]={name:"borderBottom"};o.width=x.height||{name:"height"};o.height=x.width||{name:"width"};o["margin-top"]={name:"marginRight"};o["margin-right"]={name:"marginBottom"};o["margin-bottom"]={name:"marginLeft"};o["margin-left"]={name:"marginTop"};o["padding-top"]={name:"paddingRight"};o["padding-right"]={name:"paddingBottom"};o["padding-bottom"]={name:"paddingLeft"};o["padding-left"]={name:"paddingTop"};o["border-top"]={name:"borderRight"};o["border-right"]={name:"borderBottom"};o["border-bottom"]={name:"borderLeft"};o["border-left"]={name:"borderTop"};if(!Ext.scopeCss){z.push("x-body")}if(t.Touch){z.push("x-touch")}if(Ext.isIE&&Ext.isIE9m){z.push("x-ie","x-ie9m");z.push("x-ie8p");if(Ext.isIE8){z.push("x-ie8")}else{z.push("x-ie9","x-ie9p")}if(Ext.isIE8m){z.push("x-ie8m")}}if(Ext.isIE10){z.push("x-ie10")}if(Ext.isIE10p){z.push("x-ie10p")}if(Ext.isIE11){z.push("x-ie11")}if(Ext.isEdge){z.push("x-edge")}if(Ext.isGecko){z.push("x-gecko")}if(Ext.isOpera){z.push("x-opera")}if(Ext.isOpera12m){z.push("x-opera12m")}if(Ext.isWebKit){z.push("x-webkit")}if(Ext.isSafari){z.push("x-safari")}if(Ext.isChrome){z.push("x-chrome")}if(Ext.isMac){z.push("x-mac")}if(Ext.isLinux){z.push("x-linux")}if(!t.CSS3BorderRadius){z.push("x-nbr")}if(!t.CSS3LinearGradient){z.push("x-nlg")}if(t.Touch){z.push("x-touch")}if(Ext.os.deviceType){z.push("x-"+Ext.os.deviceType.toLowerCase())}Ext.getBody().addCls(z)},null,{priority:1500})});(Ext.cmd.derive("Ext.GlobalEvents",Ext.mixin.Observable,{alternateClassName:"Ext.globalEvents",observableType:"global",singleton:true,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on("resize",this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on("mousedown",this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent("mousedown",a)},fireResize:function(){var d=this,b=Ext.Element,a=b.getViewportWidth(),c=b.getViewportHeight();if(d.curHeight!==c||d.curWidth!==a){d.curHeight=c;d.curWidth=a;d.fireEvent("resize",a,c)}}},1,0,0,0,0,0,[Ext,"GlobalEvents",Ext,"globalEvents"],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)};Ext.fireEvent=function(){return a.fireEvent.apply(a,arguments)}}));Ext.define("Ext.overrides.GlobalEvents",{override:"Ext.GlobalEvents",deprecated:{5:{methods:{addListener:function(d,h,i,j,c,b,e){var a,g;if(d==="ready"){g=h}else{if(typeof d!=="string"){for(a in d){if(a==="ready"){g=d[a]}}}}if(g){Ext.onReady(g)}this.callParent([d,h,i,j,c,b,e])}}}}});(Ext.cmd.derive("Ext.Glyph",Ext.Base,{isGlyph:true,constructor:function(a){a&&this.setGlyph(a)},setGlyph:function(b){var a;this.glyphConfig=b;if(typeof b==="string"){a=b.split("@");if(isNaN(b=isNaN(a[0])?parseInt("0"+a[0],16):parseInt(a[0],10))||!b){b=a[0].charCodeAt(0)}this.fontFamily=a[1]||Ext._glyphFontFamily}else{this.fontFamily=Ext._glyphFontFamily}this.codepoint=b;this.character=Ext.String.fromCodePoint(this.codepoint);return this},getStyle:function(){return{"font-family":this.fontFamily}},isEqual:function(a){return a&&a.isGlyph&&a.codepoint===this.codepoint&&a.fontFamily===this.fontFamily},statics:(function(){var a;return{fly:function(b){return b.isGlyph?b:(a||(a=new Ext.Glyph())).setGlyph(b)}}})()},1,0,0,0,0,0,[Ext,"Glyph"],0));Ext.USE_NATIVE_JSON=false;Ext.JSON=(new (function(){var me=this,hasNative=window.JSON&&JSON.toString()==="[object JSON]",useHasOwn=!!{}.hasOwnProperty,pad=function(n){return n<10?"0"+n:n},doDecode=function(json){return eval("("+json+")")},doEncode=function(o,newline){if(o===null||o===undefined){return"null"}else{if(Ext.isDate(o)){return me.encodeDate(o)}else{if(Ext.isString(o)){if(Ext.isMSDate(o)){return me.encodeMSDate(o)}else{return me.encodeString(o)}}else{if(typeof o==="number"){return isFinite(o)?String(o):"null"}else{if(Ext.isBoolean(o)){return String(o)}else{if(o.toJSON){return o.toJSON()}else{if(Ext.isArray(o)){return encodeArray(o,newline)}else{if(Ext.isObject(o)){return encodeObject(o,newline)}else{if(typeof o==="function"){return"null"}}}}}}}}}return"undefined"},m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\","\v":"\\u000b"},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(s){return'"'+s.replace(charToReplace,function(a){var c=m[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(o){return'"'+o+'"'},encodeArrayPretty=function(o,newline){var len=o.length,cnewline=newline+" ",sep=","+cnewline,a=["[",cnewline],i;for(i=0;i0}}return a},onBindNotify:function(b,a,c){c.syncing=(c.syncing+1)||1;this[c._config.names.set](b);--c.syncing},removeBindings:function(){var b=this,d,a,c;if(b.$hasBinds){d=b.getBind();if(d&&typeof d!=="string"){for(a in d){c=d[a];c.destroy();c._config=c.getTemplateScope=null}}}b.setBind(null)},updateSession:function(b){var a=this.getInherited();if(b){a.session=b}else{delete a.session}},updateViewModel:function(b){var c=this.getInherited(),a=this.getController();if(b){c.viewModel=b;b.setView(this);if(a){a.initViewModel(b)}}else{delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,"Bindable"],0));(Ext.cmd.derive("Ext.mixin.ComponentDelegation",Ext.Mixin,{mixinConfig:{id:"componentDelegation"},privates:{addDelegatedListener:function(g,i,k,l,d,c,e){var h=this,b,a,j;g=Ext.canonicalEventName(g);d=d||l.order;if(d){j=(l&&l.priority);if(!j){l=l?Ext.Object.chain(l):{};l.priority=h.$orderToPriority[d]}}b=h.$delegatedEvents||(h.$delegatedEvents={});a=b[g]||(b[g]=new Ext.util.Event(h,g));if(a.addListener(i,k,l,c,e)){h.$hasDelegatedListeners._incr_(g)}},clearDelegatedListeners:function(){var d=this,b=d.$delegatedEvents,a,c,e;if(b){for(a in b){c=b[a];e=c.listeners.length;c.clearListeners();d.$hasDelegatedListeners._decr_(a,e);delete b[a]}}},doFireDelegatedEvent:function(b,d){var h=this,c=true,a,e,g;if(h.$hasDelegatedListeners[b]){a=h.getRefOwner();while(a){e=a.$delegatedEvents;if(e){g=e[b];if(g){c=g.fireDelegated(h,d);if(c===false){break}}}a=a.getRefOwner()}}return c},removeDelegatedListener:function(a,d,c){var g=this,b=g.$delegatedEvents,e;if(b){e=b[a];if(e&&e.removeListener(d,c)){g.$hasDelegatedListeners._decr_(a);if(e.listeners.length===0){delete b[a]}}}},destroyComponentDelegation:function(){if(this.clearPropertiesOnDestroy){this.$delegatedEvents=null}}},onClassMixedIn:function(a){function b(){}a.prototype.HasListeners=a.HasListeners=b;b.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,"ComponentDelegation"],function(b){function a(){}b.HasDelegatedListeners=a;a.prototype=b.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()}));(Ext.cmd.derive("Ext.mixin.Pluggable",Ext.Base,function(b){var a=[];return{config:{plugins:null},addPlugin:function(e){var d=this,c=d.getPlugins();if(c){e=d.createPlugin(e);e.init(d);c.push(e)}else{d.setPlugins(e)}return e},destroyPlugin:function(c){return this.removePlugin(c,true)},findPlugin:function(g){var c=this.getPlugins(),j=c&&c.length,e,h,d;for(e=0;e0){h=c[d];if(h===g||h.id===g){c.splice(d,1);if(e){if(h.destroy){h.destroy()}}else{if(h.detachCmp){h.detachCmp();if(h.setCmp){h.setCmp(null)}}}break}h=null}return h},privates:{statics:{idSeed:0},activatePlugin:function(h){var j=this,e=j.initialConfig,c=e&&e.plugins,d=null,g,k;if(c){c=a.concat(c);for(g=c.length;g-->0;){k=c[g];if(k===h||k.type===h){j.initialConfig=e=Ext.apply({},e);e.plugins=c;c[g]=d=j.createPlugin(k);break}}}return d},applyPlugins:function(d,c){var k=this,e=c&&c.length||0,j,g,h;d=d?a.concat(d):null;j=d&&d.length||0;for(g=0;g]+>/gi,stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},nbsp:function(c,b){b=b!==false;if(b?c===""||c==null:!c){c="\xa0"}return c},undef:function(b){return b!==undefined?b:""},defaultValue:function(c,b){return c!==undefined&&c!==""?c:b},substr:"ab".substr(-1)!="b"?function(c,e,b){var d=String(c);return(e<0)?d.substr(Math.max(d.length+e,0),b):d.substr(e,b)}:function(c,d,b){return String(c).substr(d,b)},lowercase:function(b){return String(b).toLowerCase()},uppercase:function(b){return String(b).toUpperCase()},usMoney:function(b){return a.currency(b,"$",2)},currency:function(d,g,c,b,k){var j="",h=",0",e=0;d=d-0;if(d<0){d=-d;j="-"}c=Ext.isDefined(c)?c:a.currencyPrecision;h+=(c>0?".":"");for(;ec){b=b.substring(b.length-c)}}while(b.lengthg?b:(e?b:h))},sign:function(e,c,b,d){if(d===undefined){d=b}return a.lessThanElse(e,0,c,b,d)},stripTags:function(b){return !b?b:String(b).replace(a.stripTagsRe,"")},stripScripts:function(b){return !b?b:String(b).replace(a.stripScriptsRe,"")},fileSize:(function(){var b=1024,c=1048576,d=1073741824;return function(g){var e;if(g2){}else{if(k.length===2){h=k[1].length;o=k[1].match(a.hashRe);if(o){i=o[0].length;d='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+i+'}$")'}}}b=["var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts"+(c?",thousandSeparator,thousands=[],j,n,i":"")+(l?',formatString="'+g+'",formatPattern=/[\\d,\\.#]+/':"")+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;',"absVal=Math.abs(v);","fnum=Ext.Number.toFixed(absVal, "+h+");",d,";"];if(c){if(h){b[b.length]='parts=fnum.split(".");';b[b.length]="fnum=parts[0];"}b[b.length]="if(absVal>=1000) {";b[b.length]="thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i")},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(c){c=c||0;if(typeof c==="number"){return{top:c,right:c,bottom:c,left:c}}var d=c.split(" "),b=d.length;if(b===1){d[1]=d[2]=d[3]=d[0]}else{if(b===2){d[2]=d[0];d[3]=d[1]}else{if(b===3){d[3]=d[1]}}}return{top:parseInt(d[0],10)||0,right:parseInt(d[1],10)||0,bottom:parseInt(d[2],10)||0,left:parseInt(d[3],10)||0}},uri:function(b){return encodeURI(b)},uriCmp:function(b){return encodeURIComponent(b)},wordBreakRe:/[\W\s]+/,word:function(e,c,b){var d=b?(typeof b==="string"?new RegExp(b):b):a.wordBreakRe,g=(e||"").split(d);return g[c||0]||""}}},1,0,0,0,0,0,[Ext.util,"Format"],0));(Ext.cmd.derive("Ext.Template",Ext.Base,{inheritableStatics:{from:function(b,a){b=Ext.getDom(b);return new this(b.value||b.innerHTML,a||"")}},useEval:Ext.isGecko,constructor:function(d){var g=this,b=arguments,a=[],c,e=b.length,h;g.initialConfig={};if(e===1&&Ext.isArray(d)){b=d;e=b.length}if(e>1){for(c=0;c]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,"XTemplateParser"],0));(Ext.cmd.derive("Ext.util.XTemplateCompiler",Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:true,propNameRe:/^[\w\d\$]*$/,compile:function(a){var c=this,b=c.generate(a);return c.useEval?c.evalTpl(b):(new Function("Ext",b))(Ext)},generate:function(a){var d=this,b="var fm=Ext.util.Format,ts=Object.prototype.toString;",c;d.maxLevel=0;d.body=["var c0=values, a0="+d.createArrayTest(0)+", p0=parent, n0=xcount, i0=xindex, k0, v;\n"];if(d.definitions){if(typeof d.definitions==="string"){d.definitions=[d.definitions,b]}else{d.definitions.push(b)}}else{d.definitions=[b]}d.switches=[];d.parse(a);d.definitions.push((d.useEval?"$=":"return")+" function ("+d.fnArgs+") {",d.body.join(""),"}");c=d.definitions.join("\n");d.definitions.length=d.body.length=d.switches.length=0;delete d.definitions;delete d.body;delete d.switches;return c},doText:function(c){var b=this,a=b.body;c=c.replace(b.aposRe,"\\'").replace(b.newLineRe,"\\n");if(b.useIndex){a.push("out[out.length]='",c,"'\n")}else{a.push("out.push('",c,"')\n")}},doExpr:function(b){var a=this.body;a.push("if ((v="+b+") != null) out");if(this.useIndex){a.push("[out.length]=v+''\n")}else{a.push(".push(v+'')\n")}},doTag:function(a){var b=this.parseTag(a);if(b){this.doExpr(b)}else{this.doText("{"+a+"}")}},doElse:function(){this.body.push("} else {\n")},doEval:function(a){this.body.push(a,"\n")},doIf:function(b,c){var a=this;if(b==="."){a.body.push("if (values) {\n")}else{if(a.propNameRe.test(b)){a.body.push("if (",a.parseTag(b),") {\n")}else{a.body.push("if (",a.addFn(b),a.callFn,") {\n")}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==="."){a.body.push("else if (values) {\n")}else{if(a.propNameRe.test(b)){a.body.push("} else if (",a.parseTag(b),") {\n")}else{a.body.push("} else if (",a.addFn(b),a.callFn,") {\n")}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(c){var b=this,a;if(c==="."||c==="#"){a=c==="."?"values":"xindex";b.body.push("switch (",a,") {\n")}else{if(b.propNameRe.test(c)){b.body.push("switch (",b.parseTag(c),") {\n")}else{b.body.push("switch (",b.addFn(c),b.callFn,") {\n")}}b.switches.push(0)},doCase:function(e){var d=this,c=Ext.isArray(e)?e:[e],g=d.switches.length-1,a,b;if(d.switches[g]){d.body.push("break;\n")}else{d.switches[g]++}for(b=0,g=c.length;b1){ out.push("',h.between,'"); } \n')}},doForEach:function(e,h){var d=this,c,b=d.level,a=b-1,g;if(e==="."){c="values"}else{if(d.propNameRe.test(e)){c=d.parseTag(e)}else{c=d.addFn(e)+d.callFn}}if(d.maxLevel1){ out.push("',h.between,'"); } \n')}},createArrayTest:("isArray" in Array)?function(a){return"Array.isArray(c"+a+")"}:function(a){return"ts.call(c"+a+')==="[object Array]"'},doExec:function(d,e){var c=this,a="f"+c.definitions.length,b=c.guards[c.strict?0:1];c.definitions.push("function "+a+"("+c.fnArgs+") {",b.doTry," var $v = values; with($v) {"," "+d," }",b.doCatch,"}");c.body.push(a+c.callFn+"\n")},guards:[{doTry:"",doCatch:""},{doTry:"try { ",doCatch:" } catch(e) {\n}"}],addFn:function(a){var d=this,b="f"+d.definitions.length,c=d.guards[d.strict?0:1];if(a==="."){d.definitions.push("function "+b+"("+d.fnArgs+") {"," return values","}")}else{if(a===".."){d.definitions.push("function "+b+"("+d.fnArgs+") {"," return parent","}")}else{d.definitions.push("function "+b+"("+d.fnArgs+") {",c.doTry," var $v = values; with($v) {"," return("+a+")"," }",c.doCatch,"}")}}return b},parseTag:function(b){var h=this,a=h.tagRe.exec(b),e,i,d,g,c;if(!a){return null}e=a[1];i=a[2];d=a[3];g=a[4];if(e=="."){if(!h.validTypes){h.definitions.push("var validTypes={string:1,number:1,boolean:1};");h.validTypes=true}c='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else{if(e=="#"){c="xindex"}else{if(e=="$"){c="xkey"}else{if(e.substr(0,7)=="parent."){c=e}else{if(isNaN(e)&&e.indexOf("-")==-1&&e.indexOf(".")!=-1){c="values."+e}else{c="values['"+e+"']"}}}}}if(g){c="("+c+g+")"}if(i&&h.useFormat){d=d?","+d:"";if(i.substr(0,5)!="this."){i="fm."+i+"("}else{i+="("}}else{return c}return i+c+d+")"},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,"XTemplateCompiler"],function(){var a=this.prototype;a.fnArgs="out,values,parent,xindex,xcount,xkey";a.callFn=".call(this,"+a.fnArgs+")"}));(Ext.cmd.derive("Ext.XTemplate",Ext.Template,{isXTemplate:true,emptyObj:{},fn:null,strict:false,apply:function(a,b,c,d){return this.applyOut(a,[],b,c,d).join("")},applyOut:function(a,b,d,h,j){var g=this,c;if(!g.fn){c=new Ext.util.XTemplateCompiler({useFormat:g.disableFormats!==true,definitions:g.definitions,strict:g.strict});g.fn=c.compile(g.html)}h=h||1;j=j||1;if(g.strict){g.fn(b,a,d||g.emptyObj,h,j)}else{try{g.fn(b,a,d||g.emptyObj,h,j)}catch(i){}}return b},compile:function(){return this},statics:{getTpl:function(b,d){var c=b[d],a;if(c&&!c.isTemplate){c=Ext.ClassManager.dynInstantiate("Ext.XTemplate",c);if(b.hasOwnProperty(d)){a=b}else{for(a=b.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=c;c.owner=a}return c||null}}},0,0,0,0,0,0,[Ext,"XTemplate"],0));(Ext.cmd.derive("Ext.app.EventDomain",Ext.Base,{statics:{instances:{}},isEventDomain:true,isInstance:false,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(j,n,l){n=Ext.canonicalEventName(n);var m=this,k=m.bus,o=k[n],e,c,b,d,p,h,g,a;if(!o){return true}for(e in o){if(o.hasOwnProperty(e)&&m.match(j,e,m.controller)){c=o[e];for(b in c){if(c.hasOwnProperty(b)){d=c[b];if(d.controller.isActive()){p=d.list;h=p.length;for(g=0;g=0;--l){o=p[l];if(o.styleSheet){c.cacheStyleSheet(o.styleSheet)}c.cacheRule(o,m)}}catch(n){}},cacheRule:function(h,l){if(h.styleSheet){return c.cacheStyleSheet(h.styleSheet)}var k=h.selectorText,i,g;if(k){k=k.split(",");i=k.length;for(g=0;gb){this.isEnded=true;return this.getEndValue()}else{return this.getStartValue()+((a/b)*this.distance)}}},0,0,0,0,["easing.linear"],0,[Ext.fx.easing,"Linear"],0));(Ext.cmd.derive("Ext.util.translatable.Abstract",Ext.Evented,{config:{useWrapper:null,easing:null,easingX:{duration:300},easingY:{duration:300}},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:false,isTranslatable:true,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,"easing")},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:function(a,b){if(this.hasListeners.translate){this.fireEvent("translate",this,a,b)}},translate:function(a,c,b){if(b){return this.translateAnimated(a,c,b)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=="number"){this.x=a}if(!isNaN(c)&&typeof c=="number"){this.y=c}this.doTranslate(a,c)},translateAxis:function(b,d,c){var a,e;if(b=="x"){a=d}else{e=d}return this.translate(a,e,c)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(b,a){this.activeEasingX=b;this.activeEasingY=a;this.isAnimating=true;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent("animationstart",this,this.x,this.y);return this},translateAnimated:function(b,i,g){var e=this;if(!Ext.isObject(g)){g={}}if(e.isAnimating){e.stopAnimation()}e.callback=g.callback;e.callbackScope=g.scope;var d=Ext.Date.now(),h=g.easing,c=(typeof b=="number")?(g.easingX||h||e.getEasingX()||true):null,a=(typeof i=="number")?(g.easingY||h||e.getEasingY()||true):null;if(c){c=e.factoryEasing(c);c.setStartTime(d);c.setStartValue(e.x);c.setEndValue(b);if("duration" in g){c.setDuration(g.duration)}}if(a){a=e.factoryEasing(a);a.setStartTime(d);a.setStartValue(e.y);a.setEndValue(i);if("duration" in g){a.setDuration(g.duration)}}return e.animate(c,a)},doAnimationFrame:function(){var e=this,c=e.activeEasingX,b=e.activeEasingY,d=Date.now(),a,g;if(!e.isAnimating){return}e.lastRun=d;if(c===null&&b===null){e.stopAnimation();return}if(c!==null){e.x=a=Math.round(c.getValue());if(c.isEnded){e.activeEasingX=null;e.fireEvent("axisanimationend",e,"x",a)}}else{a=e.x}if(b!==null){e.y=g=Math.round(b.getValue());if(b.isEnded){e.activeEasingY=null;e.fireEvent("axisanimationend",e,"y",g)}}else{g=e.y}if(e.lastX!==a||e.lastY!==g){e.doTranslate(a,g);e.lastX=a;e.lastY=g}e.fireEvent("animationframe",e,a,g)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=false;Ext.AnimationQueue.stop(a.doAnimationFrame,a);if(!a.destroying){a.fireEvent("animationend",a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){var a=this;a.destroying=true;if(a.isAnimating){a.stopAnimation()}Ext.Evented.prototype.destroy.call(this);a.destroying=false;a.destroyed=true}},1,0,0,0,0,0,[Ext.util.translatable,"Abstract"],0));(Ext.cmd.derive("Ext.util.translatable.Dom",Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,"Dom"],0));(Ext.cmd.derive("Ext.util.translatable.ScrollPosition",Ext.util.translatable.Dom,{type:"scrollposition",constructor:function(a){if(a&&a.element){this.x=a.element.getScrollLeft();this.y=a.element.getScrollTop()}Ext.util.translatable.Dom.prototype.constructor.call(this,a)},translateAnimated:function(){var a=this.getElement();this.x=a.getScrollLeft();this.y=a.getScrollTop();Ext.util.translatable.Dom.prototype.translateAnimated.apply(this,arguments)},doTranslate:function(a,c){var b=this.getElement();b.setScrollLeft(Math.round(a));b.setScrollTop(Math.round(c))},getPosition:function(){var c=this,a=c.position,b=c.getElement();a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},1,0,0,0,0,0,[Ext.util.translatable,"ScrollPosition"],0));(Ext.cmd.derive("Ext.scroll.Scroller",Ext.Evented,{factoryConfig:{defaultType:"scroller"},isScroller:true,config:{direction:undefined,element:undefined,scrollbars:null,snapSelector:null,snapOffset:null,msSnapInterval:null,x:true,y:true,scrollElement:null,size:null,spacerXY:null},snappableCls:"x-scroller-snappable",elementCls:"x-scroller",spacerCls:"x-scroller-spacer",noScrollbarsCls:"x-no-scrollbars",statics:{create:function(a,b){return Ext.Factory.scroller(a,b)},getScrollingElement:function(){var e=document,a=this.$standardScrollElement,d=e.scrollingElement,c,b;if(d){return d}if(a===undefined){c=document.createElement("iframe");c.style.height="1px";document.body.appendChild(c);b=c.contentWindow.document;b.write('
x
');b.close();a=b.documentElement.scrollHeight>b.body.scrollHeight;c.parentNode.removeChild(c);this.$standardScrollElement=a}return a?e.documentElement:e.body}},constructor:function(a){var b=this;b.position={x:0,y:0};Ext.Evented.prototype.constructor.call(this,a);b.onDomScrollEnd=Ext.Function.createBuffered(b.onDomScrollEnd,100,b)},destroy:function(){var a=this;a.setX(Ext.emptyString);a.setY(Ext.emptyString);a.setElement(null);a.setScrollElement(null);a.onDomScrollEnd=a._partners=a.component=null;if(a._translatable){a._translatable.destroy();a._translatable=null}a.removeSnapStylesheet();Ext.Evented.prototype.destroy.call(this)},addPartner:function(d,b){var c=this,e=c._partners||(c._partners={}),a=d._partners||(d._partners={});e[d.getId()]={scroller:d,axis:b};a[c.getId()]={scroller:c,axis:b}},applyElement:function(b,a){var d=this,c,e,g;if(a){d.scrollListener.destroy()}if(b){if(b.isElement){c=b}else{c=Ext.get(b)}if(c.dom===document.documentElement||c.dom===document.body){e=Ext.getWin();g=Ext.scroll.Scroller.getScrollingElement()}else{g=e=c}d.setScrollElement(Ext.get(g));d.scrollListener=e.on({scroll:d.onDomScroll,scope:d,destroyable:true});return c}},applySize:function(b,c){var a,d;if(b===null||typeof b==="number"){a=d=b}else{if(b){a=b.x;d=b.y}}if(a===null){a=0}else{if(a===undefined){a=(c?c.x:0)}}if(d===null){d=0}else{if(d===undefined){d=(c?c.y:0)}}return{x:a,y:d}},getClientSize:function(){var a=this.getElement().dom;return{x:a.clientWidth,y:a.clientHeight}},getScrollbarSize:function(){var g=this,b=0,k=0,e=g.getElement(),d,j,i,h,c,a;if(e&&!e.destroyed){j=g.getX();i=g.getY();d=e.dom;if(j||i){a=Ext.getScrollbarSize()}if(j==="scroll"){h=true}else{if(j){h=d.scrollWidth>d.clientWidth}}if(i==="scroll"){c=true}else{if(i){c=d.scrollHeight>d.clientHeight}}if(h){k=a.height}if(c){b=a.width}}return{width:b,height:k}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var b=this.getElement(),a,c;if(b&&!b.destroyed){c=b.dom;a={x:c.scrollWidth,y:c.scrollHeight}}else{a={x:0,y:0}}return a},getMaxPosition:function(){var b=this.getElement(),a=0,d=0,c;if(b&&!b.destroyed){c=b.dom;a=c.scrollWidth-c.clientWidth;d=c.scrollHeight-c.clientHeight}return{x:a,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),a=0,e=0,d;if(b&&!b.destroyed){d=b.dom;if(c.getX()){a=d.scrollWidth-d.clientWidth}if(c.getY()){e=d.scrollHeight-d.clientHeight}}return{x:a,y:e}},refresh:function(){this.positionDirty=true;this.fireEvent("refresh",this);return this},removePartner:function(b){var c=this._partners,a=b._partners;if(c){delete c[b.getId()]}if(a){delete (a[this.getId()])}},scrollBy:function(c,b,d){var a=this.getPosition();if(c){if(c.length){d=b;b=c[1];c=c[0]}else{if(typeof c!=="number"){d=b;b=c.y;c=c.x}}}c=(typeof c==="number")?c+a.x:null;b=(typeof b==="number")?b+a.y:null;return this.doScrollTo(c,b,d)},scrollIntoView:function(d,e,b,h){var j=this,i=j.getPosition(),g,a,k,c=j.getElement();if(d){g=Ext.fly(d).getScrollIntoViewXY(c,i.x,i.y);a=(e===false)?i.x:g.x;k=g.y;if(k!==i.y||a!==i.x){if(h){j.on({scrollend:"doHighlight",scope:j,single:true,args:[d,h]})}j.doScrollTo(a,k,b)}else{if(h){j.doHighlight(d,h)}}}},isInView:function(a){return this.doIsInView(a)},scrollTo:function(a,d,b){var c;if(a){if(a.length){b=d;d=a[1];a=a[0]}else{if(typeof a!=="number"){b=d;d=a.y;a=a.x}}}if(a<0||d<0){c=this.getMaxPosition();if(a<0){a+=c.x}if(d<0){d+=c.y}}this.doScrollTo(a,d,b)},updateDirection:function(c){var b=this,a,d;if(!c){a=b.getX();d=b.getY();if(a&&d){c=(d==="scroll"&&a==="scroll")?"both":"auto"}else{if(d){c="vertical"}else{if(a){c="horizontal"}}}b._direction=c}else{if(c==="auto"){a=true;d=true}else{if(c==="vertical"){a=false;d=true}else{if(c==="horizontal"){a=true;d=false}else{if(c==="both"){a="scroll";d="scroll"}}}}b.setX(a);b.setY(d)}},updateScrollbars:function(a,b){this.syncScrollbarCls()},updateSize:function(d){var e=this,c=e.getElement(),a=d.x,g=d.y,b;if(c){e.positionDirty=true;b=e.getSpacer();if(!a&&!g){b.hide()}else{if(a>0){a-=1}if(g>0){g-=1}e.setSpacerXY({x:a,y:g});b.show()}}},updateMsSnapInterval:function(){this.initMsSnapInterval()},updateSnapSelector:function(){this.initSnap()},updateSnapOffset:function(){this.initSnap()},updateElement:function(a){var b=this;b.initXStyle();b.initYStyle();a.addCls(b.elementCls);b.initSnap();b.initMsSnapInterval();b.syncScrollbarCls()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},deprecated:{"5":{methods:{getScroller:function(){return this}}},"5.1.0":{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var c=this,a=c._spacer,b;if(!a){b=c.getElement();a=c._spacer=b.createChild({cls:c.spacerCls,role:"presentation"},b.dom.firstChild);a.setVisibilityMode(2);a.hide();b.position()}return a},applySpacerXY:function(b,a){if(a&&b.x===a.x&&b.y===a.y){b=undefined}return b},updateSpacerXY:function(g){var c=this,a=c.getSpacer(),e=a.dom.style,b=g.y,d;e.marginTop="";c.translateSpacer(g.x,c.constrainScrollRange(b));e.lineHeight=Number(!parseInt(e.lineHeight,10))+"px";d=b-c.getElement().dom.scrollHeight;if(d>0){e.marginTop=Math.min(d,c.maxSpacerMargin||0)+"px"}},translateSpacer:function(a,b){this.getSpacer().translate(a,b)},doIsInView:function(d,g){var e=this,j=e.component,a={x:false,y:false},h,i=e.getElement(),b;if(d&&(g||(i.contains(d)||(j&&j.owns(d))))){b=i.getRegion();h=Ext.fly(d).getRegion();a.x=h.right>b.left&&h.leftb.top&&h.topb.right){c=c|2}if(e.bottom>b.bottom){c=c|4}if(e.left{% this.renderTabGuard(out, values, 'before'); %}",'','
{parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation">
','
','
',"
",'
{parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">',"{%this.applyRenderTpl(out, values)%}","
",'
','
','','
{parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation">
','
','
',"
","{% this.renderTabGuard(out, values, 'after'); %}"],frameTableTpl:["{% this.renderTabGuard(out, values, 'before'); %}",'','','','','','',"","",'','','",'',"",'','','','','',"","","","{% this.renderTabGuard(out, values, 'after'); %}"],_renderState:0,ariaEl:"el",_layerCls:"x-layer",_fixedLayerCls:"x-fixed-layer",ariaStaticRoles:{presentation:true,article:true,definition:true,directory:true,document:true,img:true,heading:true,math:true,note:true,banner:true,complementary:true,contentinfo:true,navigation:true,search:true,"undefined":true,"null":true},statics:{makeRenderSetter:function(a,c){var b=a.name;return function(e){var d=this,h=(d.renderConfigs||(d.renderConfigs={})),g=h[c];if(d._renderState>=c){(a.setter||a.getSetter()).call(d,e)}else{if(!g){h[c]=g={}}if(!(b in g)){g[b]=d[b]}d[b]=e}return d}},processRenderConfig:function(a,l,c){var h=this.prototype,e=this.getConfigurator(),m=Ext.util.Renderable,k=m.makeRenderSetter,d=a[l],i,j,b,g;for(b in d){j=Ext.Config.get(b);if(!h[g=j.names.set]){i=(j.renderSetter||(j.renderSetter={}));h[g]=i[c]||(i[c]=k(j,c))}}delete a[l];e.add(d)}},onClassMixedIn:function(c){var a=c.override,e=this.processRenderConfig,d=function(g){if(g.beforeRenderConfig){this.processRenderConfig(g,"beforeRenderConfig",1)}if(g.renderConfig){this.processRenderConfig(g,"renderConfig",3)}a.call(this,g)},b=function(h,g){h.override=d;h.processRenderConfig=e;if(g.beforeRenderConfig){h.processRenderConfig(g,"beforeRenderConfig",1)}if(g.renderConfig){h.processRenderConfig(g,"renderConfig",3)}};b(c,c.prototype);c.onExtended(b)},afterRender:function(){var i=this,d={},b=i.protoEl,h=i.el,e,j,c,g,a;i.finishRenderChildren();i._renderState=4;if(i.contentEl){c="x-";g=c+"hidden-";a=i.contentEl=Ext.get(i.contentEl);a.component=i;a.removeCls([c+"hidden",g+"display",g+"offsets"]);i.getContentTarget().appendChild(a.dom)}b.writeTo(d);j=d.removed;if(j){h.removeCls(j)}j=d.cls;if(j.length){h.addCls(j)}j=d.style;if(d.style){h.setStyle(j)}i.protoEl=null;if(!i.ownerCt&&!i.skipLayout){i.updateLayout()}if(!(i.x&&i.y)&&(i.pageX||i.pageY)){i.setPagePosition(i.pageX,i.pageY)}if(i.disableOnRender){i.onDisable()}e=i.controller;if(e&&e.afterRender){e.afterRender(i)}},afterFirstLayout:function(d,l){var g=this,k=g.x,i=g.y,j=g.defaultAlign,b=g.alignOffset,e,c,a,h,m;if(!g.ownerLayout){c=k!==undefined;a=i!==undefined}if(g.floating&&!g.preventDefaultAlign&&(!c||!a)){if(g.floatParent){h=g.floatParent.getTargetEl().getViewRegion();m=g.el.getAlignToXY(g.alignTarget||g.floatParent.getTargetEl(),j,b);h.x=m[0]-h.x;h.y=m[1]-h.y}else{m=g.el.getAlignToXY(g.alignTarget||g.container,j,b);h=g.el.translateXY(m[0],m[1])}k=c?k:h.x;i=a?i:h.y;c=a=true}if(c||a){g.setPosition(k,i)}g.onBoxReady(d,l);e=g.controller;if(e&&e.boxReady){e.boxReady(g,d,l)}},beforeRender:function(){var d=this,e=d.floating,c=d.getComponentLayout(),b=d.userCls,a;d._renderState=1;d.ariaUsesMainElement=d.ariaEl==="el";a=d.controller;if(a&&a.beforeRender){a.beforeRender(d)}d.initBindable();if(d.renderConfigs){d.flushRenderConfigs()}if(d.reference){d.publishState()}if(b){d.addCls(b)}if(e){d.addCls(d.fixed?d._fixedLayerCls:d._layerCls);b=e.cls;if(b){d.addCls(b)}}d.frame=d.frame||d.alwaysFramed;if(!c.initialized){c.initLayout()}d.initOverflow();d.setUI(d.ui)},doApplyRenderTpl:function(c,a){var d=a.$comp,b;if(!d.rendered){b=d.initRenderTpl();b.applyOut(a.renderData,c)}},getElConfig:function(){var e=this,h=e.autoEl,d=e.getFrameInfo(),b={tag:"div",tpl:d?e.initFramingTpl(d.table):e.initRenderTpl()},i=e.layoutTargetCls,g=e.protoEl,a=e.ariaRole,c;e.initStyles(g);if(i&&!d){g.addCls(i)}g.writeTo(b);g.flush();if(h){if(Ext.isString(h)){b.tag=h}else{Ext.apply(b,h)}}if(a&&e.ariaUsesMainElement){b.role=a;if(!e.ariaStaticRoles[a]){b["aria-hidden"]=!!e.hidden;b["aria-disabled"]=!!e.disabled;if(e.ariaLabel&&!e.ariaLabelledBy){b["aria-label"]=e.ariaLabel}if(e.collapsible){b["aria-expanded"]=!e.collapsed}if(e.ariaRenderAttributes){Ext.apply(b,e.ariaRenderAttributes)}if(e.config.ariaAttributes){Ext.apply(b,e.getAriaAttributes())}}}b.id=e.id;if(b.tpl){if(d){b.tplData=c=e.getFrameRenderData();c.renderData=e.initRenderData()}else{b.tplData=e.initRenderData()}}e.ariaRenderAttributes=null;return b},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else{a=Ext.getDom(a)}}return a},getRenderTree:function(){var b=this,a=null;if(!b.hasListeners.beforerender||b.fireEvent("beforerender",b)!==false){b._renderState=1;b.beforeRender();b.rendering=true;b._renderState=2;a=b.getElConfig();if(b.el){a.id=b.$pid=Ext.id(null,b.el.identifiablePrefix)}}return a},initRenderData:function(){var c=this,a=c.ariaRole,d,b;d=Ext.apply({$comp:c,id:c.id,ui:c.ui,uiCls:c.uiCls,baseCls:c.baseCls,componentCls:c.componentCls,frame:c.frame,hasTabGuard:!!c.tabGuard,scrollerCls:c.scrollerCls,childElCls:"",ariaEl:c.ariaEl},c.renderData);if(a&&!c.ariaUsesMainElement){b={role:a};if(!c.ariaStaticRoles[a]){b["aria-hidden"]=!!c.hidden;b["aria-disabled"]=!!c.disabled;if(c.ariaLabel&&!c.ariaLabelledBy){b["aria-label"]=c.ariaLabel}if(c.collapsible){b["aria-expanded"]=!c.collapsed}if(c.ariaRenderAttributes){Ext.apply(b,c.ariaRenderAttributes)}if(c.config.ariaAttributes){Ext.apply(b,c.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(d,e){var h=this,j=h.x,i=h.y,c=null,b=h.el,g=h.scrollable,a,k;h.applyRenderSelectors();if(g&&g.isScroller){g.setElement(h.getOverflowEl());if(Ext.isIE){h.showListenerIE=Ext.on("show",h.onGlobalShow,h,{destroyable:true})}}h.rendering=null;h.rendered=true;h._renderState=3;if(h.renderConfigs){h.flushRenderConfigs()}if(j!=null){c={x:j}}if(i!=null){(c=c||{}).y=i}if(!h.getFrameInfo()){a=h.width;k=h.height;if(typeof a==="number"){c=c||{};c.width=a}if(typeof k==="number"){c=c||{};c.height=k}}h.lastBox=b.lastBox=c},render:function(c,b){var e=this,d=e.el,i=e.ownerLayout,h,a,g;if(d&&!d.isElement){e.wrapPrimaryEl(d);d=e.el}if(!e.skipLayout){Ext.suspendLayouts()}c=e.initContainer(c);g=e.getInsertPosition(b);if(!d){a=e.getRenderTree();if(i&&i.transformItemRenderTree){a=i.transformItemRenderTree(a)}if(a){if(g){d=Ext.DomHelper.insertBefore(g,a)}else{d=Ext.DomHelper.append(c,a)}e.wrapPrimaryEl(d);e.cacheRefEls(d)}}else{if(!e.hasListeners.beforerender||e.fireEvent("beforerender",e)!==false){e.beforeRender();e.needsRenderTpl=e.rendering=true;e._renderState=2;e.initStyles(d);if(e.allowDomMove!==false){if(g){c.dom.insertBefore(d.dom,g)}else{c.dom.appendChild(d.dom)}}}else{h=true}}if(d&&!h){e.finishRender(b)}if(!e.skipLayout){Ext.resumeLayouts(!e.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var b=this,a;while(b.ownerCt){b=b.ownerCt}if(b.container.isDetachedBody){b.container=a=Ext.getBody();a.appendChild(b.el.dom);if(c){b.updateLayout()}if(typeof b.x==="number"||typeof b.y==="number"){b.setPosition(b.x,b.y)}}},privates:{applyRenderSelectors:function(){var d=this,b=d.renderSelectors,c=d.el,e,a;d.attachChildEls(c);d.ariaEl=d[d.ariaEl]||d.el;if(b){for(a in b){e=b[a];if(e){d[a]=c.selectNode(e,false)}}}},cacheRefEls:function(e){e=e||this.el;var c=Ext.cache,h=Ext.dom.Element,j=e.isElement?e.dom:e,b=j.querySelectorAll("[data-ref]"),a=b.length,g,d;for(d=0;de){q=k;n=true}if(g&&a>p){m=a;n=true}if(l||g){j=t.el.getStyle("overflow");if(j!=="hidden"){t.el.setStyle("overflow","hidden")}}if(n){b=!Ext.isNumber(t.width);s=!Ext.isNumber(t.height);t.setSize(m,q);t.el.setSize(p,e);if(b){delete t.width}if(s){delete t.height}}if(g){d.width=a}if(l){d.height=k}}i=t.constrain;o=t.constrainHeader;if(i||o){t.constrain=t.constrainHeader=false;r=c.callback;c.callback=function(){t.constrain=i;t.constrainHeader=o;if(r){r.call(c.scope||t,arguments)}if(j!=="hidden"){t.el.setStyle("overflow",j)}}}return t.mixins.animate.animate.apply(t,arguments)},applyScrollable:function(b,c){var a=this,e=a.rendered,d;if(b){if(b===true||typeof b==="string"){d=a._scrollableCfg[b];b=d}if(c){c.setConfig(b);b=c}else{b=Ext.Object.chain(b);if(e){b.element=a.getOverflowEl()}b=Ext.scroll.Scroller.create(b,a.scrollableType);b.component=a}}else{if(c){b=c;c.setConfig({x:false,y:false})}}if(a.rendered&&!a.destroying&&!a.destroyed){if(b){a.getOverflowStyle()}else{a.scrollFlags=a._scrollFlags.none}a.updateLayout()}return b},applyTouchAction:function(a,b){if(b!=null){a=Ext.merge({},b,a)}return a},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(j,h,b){var g=this,i=null,d,c,a,e;if(j){if(Ext.isNumber(d=j[0])){b=h;h=j[1];j=d}else{if((d=j.x)!==undefined){b=h;h=j.y;j=d}}}if(g.constrain||g.constrainHeader){i=g.calculateConstrainedPosition(null,[j,h],true);if(i){j=i[0];h=i[1]}}c=(j!==undefined);a=(h!==undefined);if(c||a){g.x=j;g.y=h;e=g.adjustPosition(j,h);i={x:e.x,y:e.y,anim:b,hasX:c,hasY:a}}return i},beforeShow:Ext.emptyFn,bubble:function(c,b,a){var d=this;while(d){if(c.apply(b||d,a||[d])===false){break}d=d.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(c){c=c||{};var d=c.id||Ext.id(),a=Ext.applyIf(c,this.initialConfig),b;a.id=d;b=Ext.getClass(this);return new b(a)},destroy:function(){var a=this;if(!a.hasListeners.beforedestroy||a.fireEvent("beforedestroy",a)!==false){a.isDestroying=a.destroying=true;a.doDestroy();a.clearListeners();a.isDestroying=a.destroying=false;a.callParent();a.mixins.componentDelegation.destroyComponentDelegation.call(a);a.mixins.observable.destroyObservable.call(a,true)}},doDestroy:function(){var g=this,b=g.focusableContainer,c=g.renderSelectors,a,e,d;e=g.floatParent||g.ownerCt;if(g.floating){delete g.floatParent;if(g.zIndexManager&&!g.zIndexManager.destroyed){g.zIndexManager.unregister(g)}g.floating=true}g.removeBindings();if(!g.beforeDestroy.$emptyFn){g.beforeDestroy()}g.destroyBindable();if(e&&e.remove){e.remove(g,false)}g.stopAnimation();if(g.rendered){Ext.destroy(g.loadMask,g.dd,g.resizer,g.proxy,g.proxyWrap,g.resizerComponent,g.scrollable,g.contentEl)}if(b){b.onFocusableChildDestroy(g)}if(g.focusable){g.destroyFocusable()}Ext.destroy(g.componentLayout,g.loadMask,g.floatingDescendants);if(!g.onDestroy.$emptyFn){g.onDestroy()}Ext.destroy(g.plugins);if(g.rendered){Ext.Component.cancelLayout(g,true)}g.componentLayout=null;if(g.hasListeners.destroy){g.fireEvent("destroy",g)}if(!g.preventRegister){Ext.ComponentManager.unregister(g)}g.mixins.state.destroy.call(g);if(g.floating){g.onFloatDestroy()}if(g.rendered){if(g.showListenerIE){g.showListenerIE.destroy();g.showListenerIE=null}if(!g.preserveElOnDestroy){g.el.destroy()}g.el.component=null;g.mixins.elementCt.destroy.call(g);if(c){for(a in c){if(c.hasOwnProperty(a)){d=g[a];if(d){delete g[a];d.destroy()}}}}g.rendered=false}},disable:function(c,e){var d=this,b=d.focusableContainer,a=d.getInherited();if(!e){a.disabled=true;d.savedDisabled=true}if(d.maskOnDisable){a.disableMask=true}if(!d.disabled){if(b){b.beforeFocusableChildDisable(d)}d.addCls(d.disabledCls);if(d.rendered){d.onDisable()}else{d.disableOnRender=true}d.disabled=true;if(c!==true){d.fireEvent("disable",d)}if(b){b.onFocusableChildDisable(d)}}return d},doFireEvent:function(b,d,a){var e=this,c;c=e.mixins.observable.doFireEvent.call(e,b,d,a);if(c!==false&&!e.destroyed){c=e.mixins.componentDelegation.doFireDelegatedEvent.call(e,b,d)}return c},enable:function(c,e){var d=this,b=d.focusableContainer,a=d.getInherited();if(!e){delete d.getInherited().disabled;d.savedDisabled=false}if(d.maskOnDisable){delete a.disableMask}if(d.disabled){if(!(e&&a.hasOwnProperty("disabled"))){if(b){b.beforeFocusableChildEnable(d)}d.disableOnRender=false;d.removeCls(d.disabledCls);if(d.rendered){d.onEnable()}d.disabled=false;if(c!==true){d.fireEvent("enable",d)}if(b){b.onFocusableChildEnable(d)}}}return d},findParentBy:function(a){var b;for(b=this.getRefOwner();b&&!a(b,this);b=b.getRefOwner()){}return b||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.self===a||b.constructor===a}):this.up(a)},findPlugin:function(d){var b,a=this.plugins,c=a&&a.length;for(b=0;b-1;e--){c=g[e];if(c.query){a=c.query(b);a=a[a.length-1];if(a){return a}}if(c.is(b)){return c}}return h.previousNode(b,true)}return null},previousSibling:function(b){var e=this.ownerCt,d,a,g;if(e){d=e.items;a=d.indexOf(this);if(a!==-1){if(b){for(--a;a>=0;a--){if((g=d.getAt(a)).is(b)){return g}}}else{if(a){return d.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(a){var c=this,b=c.rendered?c.el:c.protoEl;b.removeCls.apply(b,arguments);return c},removeClsWithUI:function(d,l){var k=this,j=[],g=0,a=Ext.Array,h=a.remove,e=k.uiCls=a.clone(k.uiCls),c=k.activeUI,b,m;if(typeof d==="string"){d=(d.indexOf(" ")<0)?[d]:Ext.String.splitWords(d)}b=d.length;for(g=0;g1){arguments[0]=null;d.pendingShow=arguments}else{d.pendingShow=true}}else{if(g&&d.isVisible()){if(d.floating){d.onFloatShow()}}else{if(d.fireEvent("beforeshow",d)!==false){d.hidden=false;delete this.getInherited().hidden;if(b){b.beforeFocusableChildShow(d)}Ext.suspendLayouts();if(!g&&(d.autoRender||d.floating)){d.doAutoRender();g=d.rendered}if(g){d.beforeShow();Ext.resumeLayouts();d.onShow.apply(d,arguments);d.afterShow.apply(d,arguments)}else{Ext.resumeLayouts(true)}}else{d.onShowVeto()}}}return d},showAt:function(a,d,b){var c=this;if(!c.rendered&&(c.autoRender||c.floating)){c.x=a;c.y=d;return c.show()}if(c.floating){c.setPosition(a,d,b)}else{c.setPagePosition(a,d,b)}return c.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a._lastAlignTarget=b;a._lastAlignToPos=d||a.defaultAlign;a._lastAlignToOffsets=c||a.alignOffset;a.show()}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=true}},toggleCls:function(a,b){if(b===undefined){b=!this.hasCls(a)}return this[b?"addCls":"removeCls"](a)},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(false)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(d,e){var c=this.getRefOwner(),b=typeof e==="string",h=typeof e==="number",a=e&&e.isComponent,g=0;if(d){for(;c&&!c.destroyed;c=c.getRefOwner()){g++;if(d.isComponent){if(c===d){return c}}else{if(Ext.ComponentQuery.is(c,d)){return c}}if(b&&c.is(e)){return}if(h&&g===e){return}if(a&&c===e){return}}}return c},update:function(d,h,j,b){var i=this,k=(i.tpl&&!Ext.isString(d)),c=i.focusableContainer,g,a,e;if(k){i.data=(d&&d.isEntity)?d.getData(true):d}else{i.html=Ext.isObject(d)?Ext.DomHelper.markup(d):d}if(i.rendered){g=i.getSizeModel();a=g.width.shrinkWrap||g.height.shrinkWrap;if(i.isContainer){e=i.layout.getRenderTarget();a=a||i.items.items.length>0}else{e=i.getTargetEl()}if(k){i.tpl[i.tplWriteMode](e,i.data||{})}else{e.setHtml(i.html,h,j,b||i)}if(a){i.updateLayout()}if(c){c.onFocusableChildUpdate(i)}}},setHtml:function(b,a,c){this.update(b,a,null,c)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:true},_notAsLayoutRoot:{isRoot:false},updateLayout:function(c){var e=this,g,b=e.lastBox,a=c&&c.isRoot,d=c&&c.context;if(b){b.invalid=true}if(!e.rendered||e.layoutSuspendCount||e.suspendLayout){return}if(e.hidden){Ext.Component.cancelLayout(e)}else{if(typeof a!=="boolean"){a=e.isLayoutRoot()}}if(a||!e.ownerLayout||!e.ownerLayout.onContentChange(e,d)){if(!e.isLayoutSuspended()){g=(c&&c.hasOwnProperty("defer"))?c.defer:e.deferLayouts;Ext.Component.updateLayout(e,g)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,"min","max-height","height")},updateMaxWidth:function(b,a){this.changeConstraint(b,a,"min","max-width","width")},updateMinHeight:function(b,a){this.changeConstraint(b,a,"max","min-height","height")},updateMinWidth:function(a,b){this.changeConstraint(a,b,"max","min-width","width")},updateTouchAction:function(e){var b,a,c,d;for(b in e){a=this[b];c=e[b];if(a&&a.isElement){a.setTouchAction(c)}else{d=true}}if(d){this.el.setTouchAction(e)}},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(a,b){this.el.setX(a,b)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var d=this,a=d.baseCls+"-"+d.ui,c,g,b,e;d.addCls(a);if(d.rendered&&d.frame&&!Ext.supports.CSS3BorderRadius){a+="-";c=d.getChildEls();for(g in c){e=c[g].frame;if(e&&e!==true){b=d[g];if(b){b.addCls(a+e)}}}}},changeConstraint:function(h,c,a,e,b){var g=this,d=g[b];if(h!=null&&typeof d==="number"){g[b]=Math[a](d,h)}if(g.liquidLayout){if(h!=null){g.setStyle(e,h+"px")}else{if(c){g.setStyle(e,"")}}}if(g.rendered){g.updateLayout()}},constructPlugin:function(b){var a=this;if(typeof b==="string"){b=Ext.PluginManager.create({},b,a)}else{b=Ext.PluginManager.create(b,null,a)}return b},constructPlugins:function(){var e=this,c=e.plugins,b,d,a;if(c){b=[];b.processed=true;if(!Ext.isArray(c)){c=[c]}for(d=0,a=c.length;d=0){m=n[k].splitterDelta;if(i.getAt(h+m)!==a){i.remove(a);h=i.indexOf(j);if(m>0){++h}i.insert(h,a)}}}if(l){if(e){j.expand(false)}b.remove(l);j.placeholder=null;if(e){j.collapse(null,false)}}b.updateLayout();Ext.resumeLayouts(true);j.fireEventArgs("changeregion",[j,d])}else{j.region=k}}return d},setWeight:function(d){var c=this,b=c.getOwningBorderContainer(),e=c.placeholder,a=c.weight;if(d!==a){if(c.fireEventArgs("beforechangeweight",[c,d])!==false){c.weight=d;if(e){e.weight=d}if(b){b.updateLayout()}c.fireEventArgs("changeweight",[c,a])}}return a}},function(a){var b=a.prototype;b.setBorderRegion=b.setRegion;b.setRegionWeight=b.setWeight});Ext.define("Ext.overrides.app.domain.Component",{override:"Ext.app.domain.Component"},function(a){a.monitor(Ext.Component)});(Ext.cmd.derive("Ext.app.EventBus",Ext.Base,{singleton:true,constructor:function(){var b=this,a=Ext.app.EventDomain.instances;b.callParent();b.domains=a;b.bus=a.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(d,b){var a=this.domains,c;for(c in d){if(d.hasOwnProperty(c)){a[c].listen(d[c],b)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}},1,0,0,0,0,0,[Ext.app,"EventBus"],0));(Ext.cmd.derive("Ext.app.domain.Global",Ext.app.EventDomain,{singleton:true,type:"global",constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue},1,0,0,0,0,0,[Ext.app.domain,"Global"],0));(Ext.cmd.derive("Ext.app.BaseController",Ext.Base,{isController:true,config:{id:undefined,control:null,listen:null,routes:null,before:null},constructor:function(a){var b=this;Ext.apply(b,a);delete b.control;delete b.listen;b.eventbus=Ext.app.EventBus;b.mixins.observable.constructor.call(b,a)},updateId:function(a){this.id=a},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.getId();if(a){this.control(a)}},updateListen:function(a){this.getId();if(a){this.listen(a)}},updateRoutes:function(b){if(b){var e=this,g=e.getBefore()||{},a=Ext.app.route.Router,d,c,h;for(d in b){c=b[d];if(Ext.isString(c)){c={action:c}}h=c.action;if(!c.before){c.before=g[h]}a.connect(d,c,e)}}},isActive:function(){return true},control:function(b,c,a){var d=this,e=a,g;if(Ext.isString(b)){g={};g[b]=c}else{g=b;e=c}d.eventbus.control(g,e||d)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var b=this,a=b.eventbus;Ext.app.route.Router.disconnectAll(b);if(a){a.unlisten(b);b.eventbus=null}b.callParent()},redirectTo:function(c,d){if(c.isModel){c=c.toUrl()}var a=Ext.util.History.getToken()===c,b=false;if(!a){b=true;Ext.util.History.add(c)}else{if(d){b=true;Ext.app.route.Router.onStateChange(c)}}return b}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,"BaseController"],0));(Ext.cmd.derive("Ext.app.Util",Ext.Base,{},0,0,0,0,0,0,[Ext.app,"Util"],function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(c){var d=Ext.app.namespaces,b,a;if(!Ext.isArray(c)){c=[c]}for(b=0,a=c.length;ba.length&&(c+"."===b.substring(0,c.length+1))){a=c}}return a===""?undefined:a},setupPaths:function(a,b,e){var d=Ext.manifest,c;if(a&&b!==null){d=d&&d.paths;if(!d||b!==undefined){Ext.Loader.setPath(a,(b===undefined)?"app":b)}}if(e){for(c in e){if(e.hasOwnProperty(c)){Ext.Loader.setPath(c,e[c])}}}}});Ext.getNamespace=Ext.app.getNamespace}));(Ext.cmd.derive("Ext.util.CollectionKey",Ext.Base,{isCollectionKey:true,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:true},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(k,e){var a=this.map||this.getMap(),l=a[k],g=this.getCollection(),b=g.length,d,h,j,c;if(!l){return -1}if(e===undefined){e=-1}if(l instanceof Array){j=l;h=b;for(c=j.length;c-->0;){d=g.indexOf(j[c]);if(de){h=d}}if(h===b){return -1}}else{h=g.indexOf(l)}return(h>e)?h:-1},updateKey:function(c,e){var b=this,d=b.map,g,a;if(d){g=d[e];if(g instanceof Array){a=Ext.Array.indexOf(g,c);if(a>=0){if(g.length>2){g.splice(a,1)}else{d[e]=g[1-a]}}}else{if(g){delete d[e]}}b.add([c])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(b,a){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(e,d){var h=this,a=h.map,g=d.items,b=g.length,c,k,j;if(a){if(h.getUnique()&&be)?1:(b0&&v.getAutoSort(),r=v.getSource(),q=0,k=false,o=false,t,s,g,w,h,b;if(r&&!r.updating){r.itemChanged(u,i,m,n)}else{s=v.getKey(u);if(j){h=v.indexOfKey(c?m:s);o=(h<0);k=v.isItemFiltered(u);e=(o!==k)}if(e){if(k){q=[u];b=-1}else{w=[u];b=v.length}}else{if(a&&!k){if(!j){h=v.indexOfKey(c?m:s)}g=v.getSortFn();if(h!==-1){if(h&&g(p[h-1],p[h])>0){d=-1;b=Ext.Array.binarySearch(p,u,0,h,g)}else{if(h0){d=1;b=Ext.Array.binarySearch(p,u,h+1,g)}}if(d){w=[u]}}}}t={item:u,key:s,index:b,filterChanged:e,keyChanged:c,indexChanged:!!d,filtered:k,oldIndex:h,newIndex:b,wasFiltered:o,meta:n};if(c){t.oldKey=m}if(i){t.modified=i}v.beginUpdate();v.notify("beforeitemchange",[t]);if(c){v.updateKey(u,m)}if(w||q){v.splice(b,q,w)}if(d>0){t.newIndex--}else{if(d<0){t.oldIndex++}}v.notify(k?"filtereditemchange":"itemchange",[t]);v.endUpdate()}},remove:function(d){var c=this,a=c.decodeRemoveItems(arguments,0),b=c.length;c.splice(0,a);return b-c.length},removeAll:function(){var b=this,a=b.length;if(b.generation&&a){b.splice(0,a)}return b},removeAt:function(i,h){var j=this,b=j.length,e=Ext.Number,d=e.clipIndices(b,[i,(h===undefined)?1:h],e.Clip.COUNT),c=d[0],a=d[1]-c,k=(a===1)&&j.getAt(c),g;j.splice(c,a);g=j.length-b;return(k&&g)?k:g},removeByKey:function(a){var b=this.getByKey(a);if(!b||!this.remove(b)){return false}return b},replace:function(b){var a=this.indexOf(b);if(a===-1){this.add(b)}else{this.insert(a,b)}},splice:function(E,o,C){var m=this,d=m.sorted&&m.getAutoSort(),A=m.map,s=m.items,q=m.length,w=(o instanceof Array)?m.decodeRemoveItems(o):null,x=!w,F=Ext.Number,e=F.clipIndices(q,[E,x?o:0],F.Clip.COUNT),h=e[0],l=e[1],L=l-h,u=m.decodeItems(arguments,2),K=u?u.length:0,D,y,v,c=h,b=m.indices||((K||w)?m.getIndices():null),r=null,j=L?[h]:null,g=null,t=m.getSource(),a,H,I,N,B,G,M,p,z,J,P,O;if(t&&!t.updating){if(x){w=[];for(N=0;N1){if(!D.$cloned){u=D=D.slice(0)}m.sortData(D)}}for(N=0;N0;){p=m.getKey(w[N]);if((G=b[p])!==undefined){(j||(j=[])).push(G)}}if(!r&&!j){return m}m.beginUpdate();if(j){a=null;I=[];v={};if(j.length>1){j.sort(Ext.Array.numericSortFn)}for(N=0,J=j.length;N(a.at+H.length)){I.push(a={at:G,items:(H=[]),keys:(z=[]),map:v,next:a,replacement:r});if(r){r.replaced=a}}H.push(v[p]=B);z.push(p);if(G1&&G===h){--L;j[N--]=++h}}if(r){r.at=c}for(M=I.length;M-->0;){a=I[M];N=a.at;J=a.items.length;if(N+J1&&q){m.spliceMerge(D,g)}else{if(d){if(K>1){c=0;m.indices=b=null}else{c=O.findInsertionIndex(r.items[0],s,m.getSortFn(),E)}}if(c===q){l=c;for(N=D.length-1;N>=0;--N){s[l+N]=D[N]}b=m.indices;if(b){for(N=0;N-1){c=g[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(a,b){var l=this,o=b.atItem,k=b.items,g=l.requestedIndex,j,h,c,e,m,d;if(!l.sorted){if(g!==undefined){h=g}else{if(o){h=l.indexOf(o);if(h===-1){h=l.findInsertIndex(k[0])}else{++h}}else{h=0}}}if(l.getAutoFilter()&&l.filtered){for(e=0,d=k.length;ec)){c=j}}return[c,h]},count:function(a){return a.length},extremes:function(g,a,c,m,k){var h=null,b=null,e,n,j,d,l;for(e=a;ed)){d=l;b=n}}return[b,h]},max:function(e,g,d,h,c){var a=this._aggregators.bounds.call(this,e,g,d,h,c);return a[1]},maxItem:function(e,g,d,h,c){var a=this._aggregators.extremes.call(this,e,g,d,h,c);return a[1]},min:function(e,g,d,h,c){var a=this._aggregators.bounds.call(this,e,g,d,h,c);return a[0]},minItem:function(e,g,d,h,c){var a=this._aggregators.extremes.call(this,e,g,d,h,c);return a[0]},sum:function(c,g,b,j,a){for(var h,e=0,d=g;d1){Ext.Array.sort(c,b.prioritySortFn)}},prioritySortFn:function(g,e){var d=g.observerPriority||0,c=e.observerPriority||0;return d-c},applyExtraKeys:function(e,a){var g=this,d=a||{},c,b,h;for(b in e){h=e[b];if(!h.isCollectionKey){c={collection:g};if(Ext.isString(h)){c.property=h}else{c=Ext.apply(c,h)}h=new Ext.util.CollectionKey(c)}else{h.setCollection(g)}d[b]=g[b]=h;h.name=b}return d},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,"Ext.util.Grouper")}return a},decodeItems:function(d,c){var g=this,b=(c===undefined)?d:d[c],a,h,e;if(!b||!b.$cloned){a=d.length>c+1||!Ext.isIterable(b);if(a){b=Ext.Array.slice(d,c);if(b.length===1&&b[0]===undefined){b.length=0}}h=g.getDecoder();if(h){if(!a){b=b.slice(0);a=true}for(e=b.length;e-->0;){if((b[e]=h.call(g,b[e]))===false){b.splice(e,1)}}}if(a){b.$cloned=true}}return b},getIndices:function(){var d=this,e=d.indices,a=d.items,g=a.length,c,b;if(!e){d.indices=e={};++d.indexRebuilds;for(c=0;c0);if(d||a){b.filtered=a;b.onFilterChange(c)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==false){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(a,c,d){var b=this.getSorters();b.addSort.apply(b,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify("beforesort",[a.getSorters(false)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify("sort")},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(g,b,e,d){var h,c,a;b=b||this.items;e=e||this.getSortFn();a=b.length;if(d0?e(b[d-1],g):0;c=d0);if(d||a){b.sorted=!!a;b.onSortChange(c)}},removeObserver:function(a){var b=this.observers;if(b){Ext.Array.remove(b,a)}},spliceMerge:function(k,s){var r=this,q=r.map,g=k.length,c=0,l=r.items,t=l.length,j=[],h=0,n=[],d=r.getSortFn(),m,b,o,e,p,a;r.items=n;for(a=0;a1){j[h-2].next=j[h-1]}for(;a1){j[h-2].next=j[h-1]}n.push(e);for(b=a+1;b=0){break}n.push(e);m.push(e)}}for(;c0){d=e[j];a=!d.isEqual(b,d.get(k));c=m?null:l;if(a!==m){d.changingKey=true;d[g](c);d.changingKey=false}else{d[n]=c}}}}),Right:Ext.define(null,{extend:"Ext.data.schema.Role",left:false,side:"right",onDrop:function(c,b){var a=this.association.field;if(a){c.set(a.name,null)}c[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,d){var b=this.association.field,a;if(b){a=this.getSessionStore(c,d.get(b.name));if(a&&!a.contains(d)){a.add(d)}}},onValueChange:function(d,h,b,a){var j=this,m=j.getInstanceName(),o=j.cls,c,n,l,e,k,g;if(!d.changingKey){c=b||b===0;if(!c){d[m]=null}if(h){l=j.getSessionStore(h,a);if(l){l.remove(d)}if(c){l=j.getSessionStore(h,b);if(l&&!l.isLoading()){l.add(d)}if(o){g=h.peekRecord(o,b)}d[m]=g||undefined}}else{n=d.joined;if(n){for(e=n.length-1;e>=0;e--){l=n[e];if(l.isStore){k=l.getAssociatedEntity();if(k&&k.self===j.cls&&k.getId()===a){l.remove(d)}}}}}}if(j.owner&&b===null){j.association.schema.queueKeyCheck(d,j)}},checkKeyForDrop:function(b){var a=this.association.field;if(b.get(a.name)===null){b.drop()}},getSessionStore:function(c,b){var a=this.cls,d;if(a){d=c.peekRecord(a,b);if(d){return this.inverse.getAssociatedItem(d)}}},read:function(g,c,b,e){var d=this.callParent([g,c,b,e]),a;if(d){a=d[0];if(a){g[this.getInstanceName()]=a;delete g.data[this.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,"ManyToOne"],0));(Ext.cmd.derive("Ext.data.schema.ManyToMany",Ext.data.schema.Association,{isManyToMany:true,isToMany:true,kind:"many-to-many",Left:Ext.define(null,{extend:"Ext.data.schema.Role",isMany:true,digitRe:/^\d+$/,findRecords:function(l,m,d){var n=l.getMatrixSlice(this.inverse,m.id),e=n.members,k=[],o=this.cls,a,h,j,b,g,c;if(d){a={};for(h=0,j=d.length;h=0){a.remove([b])}}else{if(b<0){c=a.getSession().getEntry(this.type,h);g=c&&c.record;if(g){a.add(g)}}}a.matrixUpdate=0}},adoptAssociated:function(b,g){var d=this.getAssociatedItem(b),c,e,a;if(d){d.setSession(g);this.onStoreCreate(d,g,b.getId());c=d.getData().items;for(e=0,a=c.length;e1){c[a]=this.apply("capitalize",c[a])}return c.join("")},getterName:function(b){var a=b.role;if(b&&b.isMany){return a}return"get"+this.apply("capitalize",a)},inverseFieldRole:function(h,i,e,b){var g=this,a=g.apply(i?"uniRole":"multiRole",h),d=g.apply("pluralize",e),c=g.apply("undotted,pluralize",b);if(d.toLowerCase()!==c.toLowerCase()){a=e+g.apply("capitalize",a)}return a},manyToMany:function(e,d,a){var c=this,b=c.apply("undotted,capitalize,singularize",d)+c.apply("undotted,capitalize,pluralize",a);if(e){b=c.apply("capitalize",e+b)}return b},manyToOne:function(d,b,a,c){return this.apply("capitalize,singularize",a)+this.apply("capitalize",b)},matrixRole:function(c,b){var a=this.apply(c?"multiRole,capitalize":"multiRole",b);return c?c+a:a},oneToOne:function(d,b,a,c){return this.apply("undotted,capitalize,singularize",a)+this.apply("capitalize",b)},setterName:function(a){return"set"+this.apply("capitalize",a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(e,c){var j=this,b=j.cache,k=b[c]||(b[c]={}),h=k[e],g,d,a;if(!h){if(e.indexOf(",")<0){h=j[e](c)}else{d=(a=e.split(",")).length;h=c;for(g=0;g=Math.max(b,a)},find:function(g,e,h,i,a,d){var c=!i,b=!!(c&&d);return this.getData().findIndex(g,e,h,c,b,!a)},findRecord:function(){var b=this,a=b.find.apply(b,arguments);return a!==-1?b.getAt(a):null},findExact:function(c,a,b){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(c),a)},this,b)},findBy:function(b,a,c){return this.getData().findIndexBy(b,a,c)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,c){var a=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(c&&c.callback){c.callback.call(c.scope||this,a,d,b,c)}return a},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==false){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(b,a){var c;if(!a){a=this.createFiltersCollection();c=true}a.add(b);if(c){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==false){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(b,a){var c;if(!a){a=this.createSortersCollection();c=true}a.add(b);if(c){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(b,c,a){if(Ext.isString(b)){b={property:b,value:c}}this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=false},removeFilter:function(b,a){var d=this,c=d.getFilters();d.suppressNextFilter=!!a;if(b instanceof Ext.util.Filter){c.remove(b)}else{c.removeByKey(b)}d.suppressNextFilter=false},updateAutoSort:function(a){this.getData().setAutoSort(a)},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(false),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(false),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=false},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(a){var c=this,b=c.getFilters(false);if(!b||b.getCount()===0){return}c.suppressNextFilter=!!a;b.removeAll();c.suppressNextFilter=false},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(false);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(e){if(e.getTransform()){return}var d=e.getProperty(),c=this.getModel(),a,b;if(c){a=c.getField(d);b=a?a.getSortType():null}if(b&&b!==Ext.identityFn){e.setTransform(b)}},beginUpdate:function(){if(!this.updating++){this.fireEvent("beginupdate")}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent("endupdate");this.onEndUpdate()}},getState:function(){var e=this,g=[],d=e.getFilters(),b=e.getGrouper(),h,c,a;e.getSorters().each(function(i){g[g.length]=i.getState();c=true});if(e.statefulFilters&&e.saveStatefulFilters){c=true;h=[];d.each(function(i){h[h.length]=i.getState()})}if(b){c=true}if(c){a={};if(g.length){a.sorters=g}if(h){a.filters=h}if(b){a.grouper=b.getState()}}return a},applyState:function(e){var c=this,b=e.sorters,a=e.filters,d=e.grouper;if(b){c.getSorters().replaceAll(b)}if(a){c.saveStatefulFilters=true;c.getFilters().replaceAll(a)}if(d){c.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.hasListeners.beforedestroy){a.fireEvent("beforedestroy",a)}a.destroying=true;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.doDestroy();if(a.hasListeners.destroy){a.fireEvent("destroy",a)}a.destroying=false;a.callParent()},doDestroy:Ext.emptyFn,sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else{a.forceLocalSort()}}else{a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(a,b){if(b){this.fireEvent("beforesort",this,b.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(false);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.load({callback:function(){a.fireEvent("sort",a,b)}})}else{a.fireEvent("datachanged",a);a.fireEvent("refresh",a);a.fireEvent("sort",a,b)}}else{a.fireEvent("sort",a,b)}},onFilterEndUpdate:function(){var c=this,b=c.suppressNextFilter,a=c.getFilters(false);if(!a){return}if(c.getRemoteFilter()){c.currentPage=1;if(!b){c.load()}}else{if(!b){c.fireEvent("datachanged",c);c.fireEvent("refresh",c)}}if(c.trackStateChanges){c.saveStatefulFilters=true}c.fireEvent("filterchange",c,c.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else{this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(a,d){var b=this,c=b.getSorters(false),e=a||(c&&c.length);if(a&&typeof a==="string"){a={property:a,direction:d||b.getGroupDir()}}b.settingGroups=true;b.getData().setGrouper(a);delete b.settingGroups;if(e){if(b.getRemoteSort()){b.load({scope:b,callback:b.fireGroupChange})}else{b.fireEvent("datachanged",b);b.fireEvent("refresh",b);b.fireGroupChange()}}else{b.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent("groupchange",this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b="";if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?"on":"un"]("endupdate",this.onFilterEndUpdate,this)}},onRemoteSortSet:function(b,c){var a=this;if(b){b[c?"on":"un"]("endupdate",a.onSorterEndUpdate,a);a.getData()[c?"un":"on"]("beforesort",a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,"AbstractStore"],0));(Ext.cmd.derive("Ext.data.Error",Ext.Base,{isError:true,$configPrefixed:false,config:{field:null,message:""},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,"Error"],0));(Ext.cmd.derive("Ext.data.ErrorCollection",Ext.util.MixedCollection,{alternateClassName:"Ext.data.Errors",init:function(g){var k=this,h=g.fields,d=g.data,m,l,n,e,j,c,b,a;for(e=0,j=h.length;e]+>/gi,asText:function(a){return(a!=null)?String(a).replace(this.stripTagsRe,""):"\x00"},asUCText:function(a){return(a!=null)?String(a).toUpperCase().replace(this.stripTagsRe,""):"\x00"},asUCString:function(a){return(a!=null)?String(a).toUpperCase():"\x00"},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(a){var b=parseFloat(String(a).replace(this.stripCommasRe,""));return isNaN(b)?0:b},asInt:function(a){var b=parseInt(String(a).replace(this.stripCommasRe,""),10);return isNaN(b)?0:b}},0,0,0,0,0,0,[Ext.data,"SortTypes"],0));(Ext.cmd.derive("Ext.data.validator.Validator",Ext.Base,{isValidator:true,type:"base",statics:{all:{},register:function(b,a){var c=this.all;c[b.toUpperCase()]=c[b.toLowerCase()]=c[b]=a.prototype}},onClassExtended:function(a,b){if(b.type){Ext.data.validator.Validator.register(b.type,a)}},constructor:function(a){if(typeof a==="function"){this.fnOnly=true;this.validate=a}else{this.initConfig(a)}},validate:function(){return true},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,["data.validator.base"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,"Validator"],function(){this.register(this.prototype.type,this)}));(Ext.cmd.derive("Ext.data.field.Field",Ext.Base,{alternateClassName:"Ext.data.Field",aliasPrefix:"data.field.",type:"auto",factoryConfig:{defaultProperty:"name"},isDataField:true,isField:true,allowBlank:true,allowNull:false,critical:false,defaultInvalidMessage:"This field is invalid",defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:false,rank:null,stripRe:/[\$,%]/g,calculated:false,evil:false,identifier:false,onClassExtended:function(c,e){var g=e.sortType,d=c.prototype,a=d.validators,b=e.validators;if(g&&Ext.isString(g)){d.sortType=Ext.data.SortTypes[g]}if(b){if(!Ext.isArray(b)){b=[b]}delete e.validators;if(a){b=a.concat(b)}d.validators=b}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var l=this,n=l.calculateRe,h,o,m,i,c,a,j,b,k,e,g;if(d){if(Ext.isString(d)){l.name=d}else{g=d.validators;if(g){delete d.validators;l.instanceValidators=g}Ext.apply(l,d)}}if(!l.allowNull){l.allowNull=!!l.reference}h=l.calculate;c=l.depends;if(h){l.convert=l.doCalculate;if(!c){if(!(c=h.$depends)){a={};k=h.toString();h.$depends=c=[];j=l.argumentNamesRe.exec(k);b=j?j[1]:"data";while((j=n.exec(k))){if(b===j[1]&&!a[e=j[2]]){a[e]=1;c.push(e)}}}l.depends=c}}m=l.defaultValue;if(l.convert){l.calculated=o=l.convert.length>1;l.evil=o&&!c}if(l.persist===null){l.persist=!h}i=l.sortType;if(!l.sortType){l.sortType=Ext.data.SortTypes.none}else{if(Ext.isString(i)){l.sortType=Ext.data.SortTypes[i]}}if(c&&typeof c==="string"){l.depends=[c]}l.cloneDefaultValue=m!==undefined&&(Ext.isDate(m)||Ext.isArray(m)||Ext.isObject(m))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var e=a.length,c=this._validators,b,d;for(b=0;b0){(k=J[K]).dirty=true;j=j?Math.min(j,k.rank):k.rank}if(!g||g.persist){if(q&&q.hasOwnProperty(l)){if(!s||v.isEqual(q[l],F)){delete q[l];n.dirty=-1}}else{if(s){if(!q){n.modified=q={}}n.dirty=true;q[l]=h}}}if(l===n.idField.name){b=true;x=h;B=F}}if(!j){break}g=I[j-1];g.dirty=false;if(z){delete M[u]}else{M=n._singleProp;z=true}u=g.name;M[u]=L[u];C=true;for(;j0;){b=(m=c[d]).name;if(!(b in j)){q=e[b];if(r&&m.serialize){q=m.serialize(q,k)}j[b]=q}}}if(l){k.getAssociatedData(j,a)}return j},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(b){b=Ext.apply({},b);var g=this,e=b.scope||g,c=g.getProxy(),i=b.callback,a=g.loadOperation,h=g.getId(),d;if(a){d=a.extraCalls;if(!d){d=a.extraCalls=[]}d.push(b);return a}b.id=h;b.recordCreator=function(l,j,k){var m=g.session;if(k){k.recordCreator=m?m.recordCreator:null}g.set(l,g._commitOptions);return g};b.internalCallback=function(l){var p=l.wasSuccessful()&&l.getRecords().length>0,q=g.loadOperation,n=q.extraCalls,k=[g,l],o=[g,l,p],m,j;g.loadOperation=null;if(p){Ext.callback(b.success,e,k)}else{Ext.callback(b.failure,e,k)}Ext.callback(i,e,o);if(n){for(m=0,j=n.length;m0;){a=k[d];if(a in c){delete c[a];delete m[a]}}for(d=0,h=g.length;d=j.getTotal()){j.setConfig({success:false,records:[],total:0})}else{j.setRecords(Ext.Array.slice(d,b,b+e))}}g.setCompleted();if(k=j.getMetadata()){i.onMetaChange(k)}}},clear:Ext.emptyFn},0,0,0,0,["proxy.memory"],0,[Ext.data.proxy,"Memory",Ext.data,"MemoryProxy"],0));(Ext.cmd.derive("Ext.data.ProxyStore",Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:false,batchUpdateMode:"operation",sortOnLoad:true,trackRemoved:true,asynchronousLoad:undefined},onClassExtended:function(b,d,a){var c=d.model,e;if(typeof c==="string"){e=a.onBeforeCreated;a.onBeforeCreated=function(){var h=this,g=arguments;Ext.require(c,function(){e.apply(h,g)})}}},implicitModel:"Ext.data.Model",autoSyncSuspended:0,constructor:function(a){var b=this;b.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(b.getAsynchronousLoad()===false){b.flushLoad()}},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else{if(!this.destroying){this.getFields();a=this.getModel()||this.createImplicitModel()}}return a},applyProxy:function(b){var a=this.getModel();if(b!==null){if(b){if(b.isProxy){b.setModel(a)}else{if(Ext.isString(b)){b={type:b,model:a}}else{if(!b.model){b=Ext.apply({model:a},b)}}b=Ext.createByAlias("proxy."+b.type,b);b.autoCreated=true}}else{if(a){b=a.getProxy();this.useModelProxy=true}}if(!b){b=Ext.createByAlias("proxy.memory");b.autoCreated=true}}return b},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(a,b){this.fireEvent("metachange",this,b)},create:function(e,c){var d=this,g=d.getModel(),a=new g(e),b;c=Ext.apply({},c);if(!c.records){c.records=[a]}c.internalScope=d;c.internalCallback=d.onProxyWrite;b=d.createOperation("create",c);return b.execute()},read:function(){return this.load.apply(this,arguments)},update:function(b){var c=this,a;b=Ext.apply({},b);if(!b.records){b.records=c.getUpdatedRecords()}b.internalScope=c;b.internalCallback=c.onProxyWrite;a=c.createOperation("update",b);return a.execute()},onProxyWrite:function(b){var c=this,d=b.wasSuccessful(),a=b.getRecords();switch(b.getAction()){case"create":c.onCreateRecords(a,b,d);break;case"update":c.onUpdateRecords(a,b,d);break;case"destroy":c.onDestroyRecords(a,b,d);break}if(d){c.fireEvent("write",c,b);c.fireEvent("datachanged",c)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(b,a,c){if(c){this.cleanRemoved()}},erase:function(b){var c=this,a;b=Ext.apply({},b);if(!b.records){b.records=c.getRemovedRecords()}b.internalScope=c;b.internalCallback=c.onProxyWrite;a=c.createOperation("destroy",b);return a.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(c,a){var g=this,b=c.operations,e=b.length,d;if(g.batchUpdateMode!=="operation"){g.suspendEvents();for(d=0;d0){b.create=g;h=true}if(d.length>0){b.update=d;h=true}if(a.length>0){b.destroy=a;h=true}if(h&&e.fireEvent("beforesync",b)!==false){e.isSyncing=true;c=c||{};e.proxy.batch(Ext.apply(c,{operations:b,listeners:e.getBatchListeners()}))}return e},getBatchListeners:function(){var b=this,a={scope:b,exception:b.onBatchException,complete:b.onBatchComplete};if(b.batchUpdateMode==="operation"){a.operationcomplete=b.onBatchOperationComplete}return a},save:function(){return this.sync.apply(this,arguments)},load:function(a){var b=this;if(typeof a==="function"){a={callback:a}}else{a=a?Ext.Object.chain(a):{}}b.pendingLoadOptions=a;if(b.getAsynchronousLoad()){if(!b.loadTimer){b.loadTimer=Ext.asap(b.flushLoad,b)}}else{b.flushLoad()}return b},flushLoad:function(){var c=this,b=c.pendingLoadOptions,a;c.clearLoadTask();if(!b){return}c.setLoadOptions(b);if(c.getRemoteSort()&&b.sorters){c.fireEvent("beforesort",c,b.sorters)}a=Ext.apply({internalScope:c,internalCallback:c.onProxyLoad,scope:c},b);c.lastOptions=a;a=c.createOperation("read",a);if(c.fireEvent("beforeload",c,a)!==false){c.onBeforeLoad(a);c.loading=true;a.execute()}},reload:function(a){return this.load(Ext.apply({},a,this.lastOptions))},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(a){var b=this;if(b.contains(a)){b.onUpdate(a,Ext.data.Model.REJECT,null);b.fireEvent("update",b,a,Ext.data.Model.REJECT,null)}},afterCommit:function(a,c){var b=this;if(!c){c=null}if(b.contains(a)){b.onUpdate(a,Ext.data.Model.COMMIT,c);b.fireEvent("update",b,a,Ext.data.Model.COMMIT,c)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,doDestroy:function(){var b=this,a=b.getProxy();b.clearLoadTask();b.getData().destroy();b.data=null;b.setProxy(null);if(a.autoCreated){a.destroy()}b.setModel(null);Ext.data.AbstractStore.prototype.doDestroy.call(this)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){if(this.loadTimer){Ext.asapCancel(this.loadTimer)}this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var c=this.getRawRemovedRecords(),a,b;if(c){for(b=0,a=c.length;b-1},each:function(e,d,h){var g=this.getData(),a,b,c;if(typeof h==="object"){h=h.filtered}if(h===true&&g.filtered){g=g.getSource()}g=g.items.slice(0);a=g.length;for(c=0;c0){if(l){j=0;if(a.length>1&&k){j=1}u[g]=a[j].getProperty();u[o]=a[j].getDirection()}else{u[g]=v.encodeSorters(a)}}if(q&&n&&n.length>0){u[q]=v.encodeFilters(n)}return u},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format("{0}={1}",b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(b){var a;if(b){a=b.getUrl()||this.getApi()[b.getAction()]}return a?a:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){var a=this;a.destroying=true;a.reader=a.writer=Ext.destroy(a.reader,a.writer);Ext.data.proxy.Proxy.prototype.destroy.call(this);a.destroying=false;a.destroyed=true}},0,0,0,0,["proxy.server"],0,[Ext.data.proxy,"Server",Ext.data,"ServerProxy"],0));(Ext.cmd.derive("Ext.data.proxy.Ajax",Ext.data.proxy.Server,{alternateClassName:["Ext.data.HttpProxy","Ext.data.AjaxProxy"],isAjaxProxy:true,defaultActionMethods:{create:"POST",read:"GET",update:"POST",destroy:"POST"},config:{binary:false,headers:undefined,paramsAsJson:false,withCredentials:false,useDefaultXhrHeader:true,username:null,password:null,actionMethods:{create:"POST",read:"GET",update:"POST",destroy:"POST"}},doRequest:function(a){var d=this,e=d.getWriter(),c=d.buildRequest(a),h=d.getMethod(c),b,g;if(e&&a.allowWrite()){c=e.write(c)}c.setConfig({binary:d.getBinary(),headers:d.getHeaders(),timeout:d.getTimeout(),scope:d,callback:d.createRequestCallback(c,a),method:h,useDefaultXhrHeader:d.getUseDefaultXhrHeader(),disableCaching:false});if(h.toUpperCase()!=="GET"&&d.getParamsAsJson()){g=c.getParams();if(g){b=c.getJsonData();if(b){b=Ext.Object.merge({},b,g)}else{b=g}c.setJsonData(b);c.setParams(undefined)}}if(d.getWithCredentials()){c.setWithCredentials(true);c.setUsername(d.getUsername());c.setPassword(d.getPassword())}return d.sendRequest(c)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(a){var c=this.getActionMethods(),b=a.getAction(),d;if(c){d=c[b]}return d||this.defaultActionMethods[b]},createRequestCallback:function(c,a){var b=this;return function(e,g,d){if(c===b.lastRequest){b.lastRequest=null}b.processResponse(g,a,c,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,["proxy.ajax"],0,[Ext.data.proxy,"Ajax",Ext.data,"HttpProxy",Ext.data,"AjaxProxy"],0));(Ext.cmd.derive("Ext.data.reader.Json",Ext.data.reader.Reader,{alternateClassName:"Ext.data.JsonReader",config:{record:null,metaProperty:"metaData",useSimpleAccessors:false,preserveRawData:false},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},getResponseData:function(a){var b;try{return Ext.decode(a.responseText)}catch(c){b=this.createReadError(c.message);Ext.Logger.warn("Unable to parse the JSON returned by the server");this.fireEvent("exception",this,a,b);return b}},buildExtractors:function(){var c=this,a,b;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){a=c.getMetaProperty();b=c.getRootProperty();if(b){c.getRoot=c.getAccessor(b)}else{c.getRoot=Ext.identityFn}if(a){c.getMeta=c.getAccessor(a)}}},extractData:function(a,e){var g=this.getRecord(),d=[],c,b;if(g){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b1||(q&&!o)){d+=m}else{if(l){s=false;if(p){++q}else{if(o){--q;s=true}}if(d){if(s){d="["+d+"]"}else{d="."+d}k+=d;g.push(""+k);d=""}}}}u=g.join(" && ");u=Ext.functionFactory("raw","return "+u)}return u}}()),createFieldAccessor:function(e){var b=this,a=e.mapping,c=a||a===0,d=c?a:e.name;if(c){if(typeof d==="function"){return function(g){return e.mapping(g,b)}}else{return b.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?"simple":"";return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,["reader.json"],0,[Ext.data.reader,"Json",Ext.data,"JsonReader"],0));(Ext.cmd.derive("Ext.data.writer.Json",Ext.data.writer.Writer,{alternateClassName:"Ext.data.JsonWriter",config:{rootProperty:undefined,encode:false,allowSingle:true,expandData:false},getExpandedData:function(d){var b=d.length,e=0,k,a,g,c,h,l=function(i,j){var m={};m[i]=j;return m};for(;e0){h=k[a];for(;c>0;c--){h=l(g[c],h)}k[g[0]]=k[g[0]]||{};Ext.Object.merge(k[g[0]],h);delete k[a]}}}}return d},writeRecords:function(e,g){var d=this,a=d.getRootProperty(),c,h,b;if(d.getExpandData()){g=d.getExpandedData(g)}if(d.getAllowSingle()&&g.length===1){g=g[0];h=true}b=this.getTransform();if(b){g=b(g,e)}if(d.getEncode()){if(a){e.setParam(a,Ext.encode(g))}else{}}else{if(h||(g&&g.length)){c=e.getJsonData()||{};if(a){c[a]=g}else{c=g}e.setJsonData(c)}}return e}},0,0,0,0,["writer.json"],0,[Ext.data.writer,"Json",Ext.data,"JsonWriter"],0));(Ext.cmd.derive("Ext.util.Group",Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001,manageSorters:false},0,0,0,0,0,0,[Ext.util,"Group"],0));(Ext.cmd.derive("Ext.util.SorterCollection",Ext.util.Collection,{isSorterCollection:true,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(a){var b=this;b.sortFn=Ext.util.Sorter.createComparator(b);Ext.util.Collection.prototype.constructor.call(this,a);b.setDecoder(b.decodeSorter)},addSort:function(j,i,c){var h=this,d,e,b,l,a,k,g;if(!j){h.beginUpdate();h.endUpdate()}else{l=h.getOptions();if(j instanceof Array){g=j;c=i;i=null}else{if(Ext.isString(j)){if(!(k=h.get(j))){g=[{property:j,direction:i||l.getDefaultSortDirection()}]}else{g=[k]}}else{if(Ext.isFunction(j)){g=[{sorterFn:j,direction:i||l.getDefaultSortDirection()}]}else{g=[j];c=i;i=null}}}c=h._sortModes[c||"replace"];a=h.getAt(0);d=h.length;e=c.append?d:0;h.beginUpdate();h.splice(e,c.replace?d:0,g);if(c.multi){d=h.length;b=l.getMultiSortLimit();if(d>b){h.removeAt(b,d)}}if(k&&i){k.setDirection(i)}else{if(e===0&&a&&a===h.getAt(0)){a.toggle()}}h.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(e){var b=this.items,a=b.length,c,d;for(c=0;cd+1||!Ext.isIterable(e)){e=Ext.Array.slice(h,d)}var l=k.items,g=e.length,c=[],b,m,a,o,j;for(b=0;b0;){m=l[a];if(m.getSorterFn()===o){c.push(m)}}}}}}e=c;e.$cloned=true}return e},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,"SorterCollection"],0));(Ext.cmd.derive("Ext.util.FilterCollection",Ext.util.Collection,{isFilterCollection:true,$filterable:null,filterFn:null,constructor:function(a){var b=this;b.filterFn=Ext.util.Filter.createFilterFn(b);Ext.util.Collection.prototype.constructor.call(this,a);b.setDecoder(b.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(c){var b=this.getOptions(),a=b.getRootProperty(),d;if(c.isFilter){if(!c.getRoot()){c.setRoot(a)}}else{d={root:a};if(Ext.isFunction(c)){d.filterFn=c}else{d=Ext.apply(d,c);if(d.fn){d.filterFn=d.fn;delete d.fn}if(Ext.util.Filter.isInvalid(d)){return false}}c=new Ext.util.Filter(d)}return c},decodeRemoveItems:function(p,k){var r=this,l=(k===undefined)?p:p[k];if(!l.$cloned){if(p.length>k+1||!Ext.isIterable(l)){l=Ext.Array.slice(p,k)}var e=r.items,o=l.length,h=[],b,g,c,m,a,s,j,d,q;for(g=0;g0;){s=e[d];j=false;if(a){j=s.getProperty()===b}else{if(c){j=s.getFilterFn()===b}else{if(m){j=s.getProperty()===b.property&&s.getValue()===b.value}}}if(j){h.push(s)}}}}l=h;l.$cloned=true}return l},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,"FilterCollection"],0));(Ext.cmd.derive("Ext.util.GroupCollection",Ext.util.Collection,{isGroupCollection:true,config:{grouper:null,itemRoot:null},observerPriority:-100,constructor:function(a){Ext.util.Collection.prototype.constructor.call(this,a);this.on("remove","onGroupRemove",this)},onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items,a.at)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(c,a){var b=a.item;if(!a.indexChanged){this.syncItemGrouping(c,b,c.getKey(b),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(a,b){var h=this,l=h.changeDetails,g,j,k,e,c,d,m;if(l){m=l.item;k=h.findGroupForItem(m);g=[];if(k){g.push({group:k,items:[m]})}}else{g=h.groupItems(a,b.items,false)}for(e=0,c=g.length;e1&&g){c=k.indexOf(e[0].group.getAt(0));g=Math.max(g-c,0)}for(m=0,o=e.length;m0&&a.getSorters().getCount()===0){d=a.indexOf(p.items[0]);if(b-1){a=[b];g=1}else{g=0}}else{a=[];for(d=0,g=b.length;d=0;d--){b=k[d];b.reject();if(!h){j.insert(b.removedFrom||0,b)}}if(h){c.setAutoSort(e);j.add(k)}k.length=0}j.endUpdate();Ext.resumeLayouts(true)},doDestroy:function(){var b=this,a=b.loadTask,d=b.getData(),c=d.getSource();b.clearData();b.setSession(null);b.observers=null;if(a){a.cancel();b.loadTask=null}if(c){c.destroy()}Ext.data.ProxyStore.prototype.doDestroy.call(this)},privates:{fetch:function(b){b=Ext.apply({},b);this.setLoadOptions(b);var a=this.createOperation("read",b);a.execute()},fireChangeEvent:function(a){return this.getDataSource().contains(a)},onBeforeLoad:function(a){this.callObservers("BeforeLoad",[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,c){var a=this.getData();if(b){a.setSorters(c?null:b)}a.setAutoGroup(!c);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,c)},isMoving:function(c,e){var g=this.moveMap,b=0,a,d;if(g){if(c){if(Ext.isArray(c)){for(d=0,a=c.length;d-1}}}return a}},1,0,0,0,0,0,[Ext.app.domain,"Store"],0));(Ext.cmd.derive("Ext.app.route.Queue",Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var a=this.queue,c=a.removeAt(0),b;if(c){b=c&&c.route;b.execute(this.token,c.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else{this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,"Queue"],0));(Ext.cmd.derive("Ext.app.route.Route",Ext.Base,{action:null,conditions:null,controller:null,allowInactive:false,url:null,before:null,caseInsensitive:false,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(b){var c=this,a;Ext.apply(c,b,{conditions:{}});a=c.url;c.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);c.paramsInMatchString=a.match(c.paramMatchingRegex)||[];c.matcherRegex=c.createMatcherRegex(a)},recognize:function(c){var d=this,a=d.controller,e,b;if((d.allowInactive||a.isActive())&&d.recognizes(c)){e=d.matchesFor(c);b=c.match(d.matcherRegex);b.shift();return Ext.applyIf(e,{controller:a,action:d.action,historyUrl:c,args:b})}return false},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(c,h,i,d){var b=h.args||[],g=this.before,a=this.controller,e=this.createCallback(h,i,d);if(g){b.push(e);if(Ext.isString(g)){g=this.before=a[g]}if(g){g.apply(a,b)}}else{e.resume()}},matchesFor:function(c){var g={},e=this.paramsInMatchString,b=c.match(this.matcherRegex),d=0,a=e.length;b.shift();for(;d0){a=c.substring(0,b);h=c.substring(b+1)+"."+a}else{if(c.indexOf(".")>0&&(Ext.ClassManager.isCreated(c)||this.hasRegisteredPrefix(c))){h=c;a=c.replace(e+"."+g+".","")}else{if(e){h=e+"."+g+"."+(d?d+"."+c:c);a=c}else{h=c}}}return{absoluteName:h,shortName:a}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:true,moduleClassName:null},onClassExtended:function(b,c,a){var d=a.onBeforeCreated;a.onBeforeCreated=function(e,j){var k=Ext.app.Controller,h=[],g,i;i=e.prototype;g=k.resolveNamespace(e,j);if(g){i.$namespace=g}k.processDependencies(i,h,g,"model",j.models);k.processDependencies(i,h,g,"view",j.views);k.processDependencies(i,h,g,"store",j.stores);k.processDependencies(i,h,g,"controller",j.controllers);Ext.require(h,Ext.Function.pass(d,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.call(this,a)},normalizeRefs:function(b){var c=this,a=[];if(b){if(Ext.isObject(b)){Ext.Object.each(b,function(d,e){if(Ext.isString(e)){e={selector:e}}e.ref=d;a.push(e)})}else{if(Ext.isArray(b)){a=Ext.Array.merge(a,b)}}}b=c.refs;if(b){c.refs=null;b=c.normalizeRefs(b);if(b){a=Ext.Array.merge(a,b)}}return a},getRefMap:function(){var g=this,c=g._refMap,a,e,d,b;if(!c){a=g.getRefs();c=g._refMap={};if(a){for(b=0,d=a.length;b0){c=a[e];d.map[d.getKey(c)]=e}++d.generation}}},1,0,0,0,0,0,[Ext.util,"Bag"],0));(Ext.cmd.derive("Ext.util.Scheduler",Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:false,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:true,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var b=this,a=b.items;if(a===b.firing){b.items=a=a.clone()}c.id=c.id||++b.nextId;c.scheduler=b;a.add(c);if(!b.sortMap){b.orderedItems=null}},remove:function(c){var b=this,a=b.items;if(b.destroyed){return}if(a===b.firing){b.items=a=a.clone()}if(c.scheduled){b.unscheduleItem(c);c.scheduled=false}a.remove(c);b.orderedItems=null},sort:function(){var d=this,a=d.items,e={},g=d.getPreSort(),b,c;d.orderedItems=[];d.sortMap=e;if(g){a.sort(g)}a=a.items;for(b=0;b0)}return h},untrackRecordState:function(a){var d=this,c=d._crudCounters,g=d._dirtyRecordCount,e,b;if(c){--c[a.crudState];d._dirtyRecordCount=b=c.C+c.U+c.D;e=!b!==!g;if(e&&d.recordStateIsDirtyState){d.setDirty(b>0)}}return e}},0,0,0,0,0,0,[Ext.mixin,"Dirty"],0));(Ext.cmd.derive("Ext.data.Session",Ext.Base,{isSession:true,config:{schema:"default",parent:null,autoDestroy:true,crudProperties:{create:"C",read:"R",update:"U",drop:"D"}},crudOperations:[{type:"R",entityMethod:"readEntities"},{type:"C",entityMethod:"createEntities"},{type:"U",entityMethod:"updateEntities"},{type:"D",entityMethod:"dropEntities"}],crudKeys:{C:1,R:1,U:1,D:1},statics:{nextId:1},constructor:function(a){var b=this;b.data={};b.matrices={};b.id=Ext.data.Session.nextId++;b.identifierCache={};b.recordCreator=b.recordCreator.bind(b);b.mixins.observable.constructor.call(b,a)},destroy:function(){var d=this,b=d.matrices,e=d.data,c,g,a,h;for(h in b){b[h].destroy()}for(c in e){g=e[c];for(h in g){a=g[h].record;if(a){a.$source=null;a.unjoin(d)}}}d.identifierCache=d.recordCreator=d.matrices=d.data=null;d.setSchema(null);d.callParent()},adopt:function(b){var d=this,c=b.associations,a;if(b.session!==d){b.session=d;d.add(b);if(c){for(a in c){c[a].adoptAssociated(b,d)}}}},commit:function(){var d=this,e=d.data,b=d.matrices,c,g,h,a;for(c in e){g=e[c];for(h in g){a=g[h].record;if(a){a.commit()}}}for(h in b){b[h].commit()}d.clearRecordStates()},createRecord:function(b,c){var d=b.$isClass?b:this.getSchema().getEntity(b),a=this.getParent(),e;if(c&&a){e=d.getIdFromData(c);if(a.peekRecord(d,e)){Ext.raise("A parent session already contains an entry for "+d.entityName+": "+e)}}return new d(c,this)},getChanges:function(){var a=new Ext.data.session.ChangesVisitor(this);this.visitData(a);return a.result},getChangesForParent:function(){var a=new Ext.data.session.ChildChangesVisitor(this);this.visitData(a);return a.result},getRecord:function(i,a,c){var h=this,b=i.isModel,g,d,j,e;if(b){b=i;a=i.id;i=i.self}g=h.peekRecord(i,a);if(!g){d=i.$isClass?i:h.getSchema().getEntity(i);j=h.getParent();if(j){e=j.peekRecord(d,a)}if(e){if(e.isLoading()){b=false}else{g=e.copy(undefined,h);g.$source=e}}if(!g){if(b){g=b;h.adopt(g)}else{g=d.createWithId(a,null,h);if(c!==false){g.load(Ext.isObject(c)?c:undefined)}}}}return g},getSaveBatch:function(a){var b=new Ext.data.session.BatchVisitor();this.visitData(b);return b.getBatch(a)},onInvalidAssociationEntity:function(a,b){Ext.raise("Unable to read association entity: "+this.getModelIdentifier(a,b))},onInvalidEntityCreate:function(a,b){Ext.raise("Cannot create, record already not exists: "+this.getModelIdentifier(a,b))},onInvalidEntityDrop:function(a,b){Ext.raise("Cannot drop, record does not exist: "+this.getModelIdentifier(a,b))},onInvalidEntityRead:function(a,b){Ext.raise("Cannot read, record already not exists: "+this.getModelIdentifier(a,b))},onInvalidEntityUpdate:function(a,c,b){if(b){Ext.raise("Cannot update, record dropped: "+this.getModelIdentifier(a,c))}else{Ext.raise("Cannot update, record does not exist: "+this.getModelIdentifier(a,c))}},peekRecord:function(e,i,a){var h=e.$isClass?e:this.getSchema().getEntity(e),c=h.entityName,g=this.data[c],b,d;g=g&&g[i];b=g&&g.record;if(!b&&a){d=this.getParent();b=d&&d.peekRecord(e,i,a)}return b||null},save:function(){var b=this,a=b.getParent(),c;if(a){c=new Ext.data.session.ChildChangesVisitor(b);b.visitData(c);a.update(c.result);b.commit()}},spawn:function(){return new this.self({schema:this.getSchema(),parent:this})},update:function(k){var m=this,e=m.getSchema(),a=m.crudOperations,l=a.length,n=m.crudKeys,o,g,q,j,d,r,c,p,h,b;m.getSchema().processKeyChecks(true);for(o in k){g=e.getEntity(o);q=k[o];for(j=0;j0;){e[b].stub=c}}return c},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return true}}return false},onSchedule:function(){for(var b,a,d,e,c=this.parent;c;c=c.parent){e=c.bindings;if(e){for(b=0,a=e.length;b "+a.binding.getFullName()+")")},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():false},link:function(d,b){var a=this,c=a.binding;if(c){c.destroy()}b=a.target=b||a.owner;a.linkDescriptor=d;a.binding=b.bind(d,a.onChange,a);a.binding.deep=true},onChange:function(){this.invalidate(true)},react:function(){var b=this,a=b.owner.linkData;a[b.name]=b.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var b=this,a=Ext.app.bind.Stub.prototype.collect.call(this),c=b.binding?1:0;return a+c},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,"LinkStub"],0));(Ext.cmd.derive("Ext.app.bind.RootStub",Ext.app.bind.AbstractStub,{isRootStub:true,depth:0,createRootChild:function(a,e){var j=this,b=j.owner,g=b.getData(),c=j.children,i=c&&c[a],h=i?null:j,k,d;if(e||g.hasOwnProperty(a)||!(k=b.getParent())){d=new Ext.app.bind.Stub(b,a,h)}else{d=new Ext.app.bind.LinkStub(b,a,i?null:h);d.link("{"+a+"}",k)}if(i){i.graft(d)}return d},createStubChild:function(a){return this.createRootChild(a,true)},descend:function(g,c){var e=this,d=e.children,h=c||0,b=g[h++],a=(d&&d[b])||e.createRootChild(b);if(h0;){if(b[a].isLoading()){return true}}return false},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var d=this.bindings,a=d.length,b,c;for(b=0;b":40,">=":40},symbols:{"(":{nud:function(){var d=this.parser,c=d.symbols[":"],b,a;a=c.priority;c.priority=70;b=d.parseExpression();d.advance(")");c.priority=a;return b}}},prefix:{"@":0},tokenizer:{operators:{"@":"at","?":"qmark","===":"feq","!==":"fneq","==":"eq","!=":"neq","<":"lt","<=":"lte",">":"gt",">=":"gte","&&":"and","||":"or"}},compileExpression:function(e,d){var c=this,a,b;c.tokens=e;c.tokensMap=d;b=c.parseSlot(c.parseExpression(),a);c.tokens=c.tokensMap=null;return b},compileFormat:function(){var a;a=this.parseSlot({arity:"formatter",fmt:this.parseFmt(),operand:{arity:"ident",value:"dummy"}});this.expect("(end)");return a},privates:{useEval:Ext.isGecko,escapeRe:/("|'|\\)/g,parseFmt:function(){var c=this,a=[],b=c.symbols[":"].priority,d;do{if(a.length){c.advance()}d=c.parseExpression(b);if(d.isIdent||d.isInvoke){a.push(d)}else{c.syntaxError(d.at,"Expected formatter name")}}while(c.token.id===":");return a},parseSlot:function(l,a){var j=this,d=[],g=[],h=j.tokens||[],k,b,e,c,m;j.definitions=d;j.body=g;g.push("return "+j.compile(l)+";");c=h.length;b="var fm = Ext.util.Format,\nme,";m="var a = Ext.Array.from(values);\nme = scope;\n";if(h.length){for(e=0;e-1}}}}return a}},1,0,0,0,0,0,[Ext.app.domain,"Controller"],0));(Ext.cmd.derive("Ext.direct.Manager",Ext.Base,{singleton:true,exceptions:{TRANSPORT:"xhr",PARSE:"parse",DATA:"data",LOGIN:"login",SERVER:"exception"},providerClasses:{},remotingMethods:{},config:{varName:"Ext.REMOTING_API"},apiNotFoundError:"Ext Direct API was not found at {0}",constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.transactions=new Ext.util.MixedCollection();a.providers=new Ext.util.MixedCollection()},addProvider:function(g){var d=this,b=arguments,e=d.relayers||(d.relayers={}),c,a;if(b.length>1){for(c=0,a=b.length;c0},connect:function(){var a=this;if(a.subscribers===0){a.doConnect();a.fireEventArgs("connect",[a])}a.subscribers++},doConnect:Ext.emptyFn,disconnect:function(b){var a=this;if(a.subscribers>0||b){if(b){a.subscribers=0}else{a.subscribers--}if(a.subscribers===0){a.doDisconnect();a.fireEventArgs("disconnect",[a])}}},doDisconnect:function(){var c=this.requests,a,b;for(b in c){a=c[b];a.abort()}this.requests={}},sendAjaxRequest:function(b){var a=Ext.Ajax.request(b);if(a&&a.id){this.requests[a.id]=a}return a},onData:function(b,c,a){if(a&&a.request){delete this.requests[a.request.id]}},inheritableStatics:{checkConfig:Ext.returnFalse},onClassExtended:function(b,c,a){if(c.type){Ext.direct.Manager.addProviderClass(c.type,b)}}},1,0,0,0,["direct.provider"],[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.direct,"Provider"],0));(Ext.cmd.derive("Ext.app.domain.Direct",Ext.app.EventDomain,{singleton:true,type:"direct",idProperty:"id",constructor:function(){var a=this;a.callParent();a.monitor(Ext.direct.Provider)}},1,0,0,0,0,0,[Ext.app.domain,"Direct"],0));(Ext.cmd.derive("Ext.data.PageMap",Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:""},clear:function(a){var b=this;b.pageMapGeneration=(b.pageMapGeneration||0)+1;b.indexMap={};Ext.util.LruCache.prototype.clear.call(this,a)},forEach:function(l,n){var h=this,d=Ext.Object.getKeys(h.map),a=d.length,k=h.getPageSize(),c,b,m,g,e;for(c=0;cb},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(a,b){b--;if(!this.hasRange(a,b)){Ext.raise("PageMap asked for range which it does not have")}var h=this,d=Ext.Array,i=h.getPageSize(),l=h.getPageFromRecordIndex(a),e=h.getPageFromRecordIndex(b),c=(l-1)*i,n=(e*i)-1,j=l,o=[],m,g,k;for(;j<=e;j++){if(j===l){m=a-c;k=m>0}else{m=0;k=false}if(j===e){g=i-(n-b);k=k||g=o){b=o-1;j=Math.max(b-i,0)}if(h.rangeCached(j,b,false)){h.loadCount=(h.loadCount||0)+1;h.loading=false;e.un("pageadd",a);c=e.getRange(j,b);h.fireEvent("load",h,c,true);h.fireEvent("refresh",h)}};l=Math.ceil((h.getLeadingBufferZone()+h.getTrailingBufferZone())/2);if(h.lastRequestStart&&h.preserveScrollOnReload){j=h.lastRequestStart;b=h.lastRequestEnd;k=h.getTotalCount()}else{j=n.start||0;b=j+(n.count||h.getPageSize())-1}e.clear(true);delete h.totalCount;j=Math.max(j-l,0);b=Math.min(b+l,k);j=j===0?0:j-1;b=b===k?b:b+1;g=h.getPageFromRecordIndex(j);m=h.getPageFromRecordIndex(b);h.loading=true;n.waitForReload=a;e.on("pageadd",a);for(d=g;d<=m;d++){h.prefetchPage(d,n)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},clearData:function(c){var a=this,b=a.getData();if(b){b.clear()}},getCount:function(){return this.totalCount||0},getRange:function(d,h,m){var l=this,e=l.totalCount-1,g=l.lastRequestStart,n=[],i=l.getData(),c,k,b,a,j;m=Ext.apply({prefetchStart:d,prefetchEnd:h},m);h=(h>=l.totalCount)?e:h;if(m.forRender!==false){k=d===0?0:d-1;b=h===e?h:h+1}else{k=d;b=h}l.lastRequestStart=d;l.lastRequestEnd=h;if(l.rangeCached(d,h,m.forRender)){l.onRangeAvailable(m);n=i.getRange(d,h+1)}else{l.fireEvent("cachemiss",l,d,h);a=l.getPageFromRecordIndex(k);j=l.getPageFromRecordIndex(b);c=function(o,q,p){if(q>=a&&q<=j&&l.rangeCached(d,h)){l.fireEvent("cachefilled",l,d,h);i.un("pageadd",c);l.onRangeAvailable(m)}};i.on("pageadd",c);l.prefetchRange(d,h)}l.primeCache(d,h,d-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var c=this,a;if(b&&typeof b==="string"){a=c.grouper;if(a&&d!==undefined){a.setDirection(d)}else{c.grouper=new Ext.util.Grouper({property:b,direction:d||"ASC",root:"data"})}}else{c.grouper=b?c.getSorters().decodeSorter(b,"Ext.util.Grouper"):null}c.getData().clear();c.loadPage(1,{callback:function(){c.fireEvent("groupchange",c,c.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(a){var c=this,b=c.getPurgePageCount();return b?Math.max(c.getData().getMaxSize()||0,Math.ceil((a+c.getTrailingBufferZone()+c.getLeadingBufferZone())/c.getPageSize())*2+b):0},loadToPrefetch:function(s){var m=this,c=s,h,b,o,n=s.start,a=s.start+s.limit-1,r=(m.getViewSize()||s.limit),j=Math.min(a,s.start+r-1),k=m.getPageFromRecordIndex(Math.max(n-m.getTrailingBufferZone(),0)),q=m.getPageFromRecordIndex(a+m.getLeadingBufferZone()),g=m.getData(),l=function(){b=b||[];if(s.loadCallback){s.loadCallback.call(s.scope||m,b,e,true)}if(s.callback){s.callback.call(s.scope||m,b,n||0,a||0,s)}},p=function(){m.loadCount=(m.loadCount||0)+1;m.fireEvent("datachanged",m);m.fireEvent("refresh",m);m.fireEvent("load",m,b,true)},d=function(){if(m.rangeCached(n,j)){m.loading=false;b=g.getRange(n,j+1);g.un("pageadd",d);if(m.hasListeners.guaranteedrange){m.guaranteeRange(n,j,s.callback,s.scope)}l();p()}},e;g.setMaxSize(m.calculatePageCacheSize(r));if(m.fireEvent("beforeload",m,s)!==false){delete m.totalCount;m.loading=true;if(s.callback){c=Ext.apply({},s);delete c.callback}m.on("prefetch",function(t,i,v,u){e=u;if(v){if((o=m.getTotalCount())){g.on("pageadd",d);j=Math.min(j,o-1);q=m.getPageFromRecordIndex(Math.min(j+m.getLeadingBufferZone(),o-1));for(h=k+1;h<=q;++h){m.prefetchPage(h,c)}}else{l();p()}}else{m.loading=false;l();m.fireEvent("load",m,i,false)}},null,{single:true});m.prefetchPage(k,c)}},prefetch:function(d){var e=this,b=e.getPageSize(),g=e.getData(),c,a;if(b){if(e.lastPageSize&&b!=e.lastPageSize){Ext.raise("pageSize cannot be dynamically altered")}if(!g.getPageSize()){g.setPageSize(b)}}else{e.pageSize=g.setPageSize(b=d.limit)}e.lastPageSize=b;if(!d.page){d.page=e.getPageFromRecordIndex(d.start);d.start=(d.page-1)*b;d.limit=Math.ceil(d.limit/b)*b}a=e.pageRequests[d.page];if(!a||a.getOperation().pageMapGeneration!==g.pageMapGeneration){d=Ext.apply({action:"read",filters:e.getFilters().items,sorters:e.getSorters().items,grouper:e.getGrouper(),internalCallback:e.onProxyPrefetch,internalScope:e},d);c=e.createOperation("read",d);c.pageMapGeneration=g.pageMapGeneration;if(e.fireEvent("beforeprefetch",e,c)!==false){e.pageRequests[d.page]=c.execute();if(e.getProxy().isSynchronous){delete e.pageRequests[d.page]}}}return e},onPageMapClear:function(){var c=this,b=c.wasLoading,a=c.pageRequests,e=c.getData(),d;e.clearListeners();e.on("clear",c.onPageMapClear,c);c.relayEvents(e,["beforepageremove","pageadd","pageremove"]);c.loading=true;c.totalCount=0;for(d in a){if(a.hasOwnProperty(d)){a[d].getOperation().abort()}}c.fireEvent("clear",c);c.loading=b},prefetchPage:function(e,b){var d=this,a=d.getPageSize(),g=(e-1)*a,c=d.totalCount;if(c!==undefined&&d.data.getCount()===c){return}d.prefetch(Ext.applyIf({page:e,start:g,limit:a},b))},onProxyPrefetch:function(d){if(this.destroying||this.destroyed){return}var i=this,j=d.getResultSet(),c=d.getRecords(),g=d.wasSuccessful(),h=d.getPage(),b=d.waitForReload,l=i.totalCount,a=i.pageRequests,k,e;if(d.pageMapGeneration===i.getData().pageMapGeneration){if(j){i.totalCount=j.getTotal();if(i.totalCount!==l){i.fireEvent("totalcountchange",i.totalCount)}}if(h!==undefined){delete i.pageRequests[h]}i.loading=false;i.fireEvent("prefetch",i,c,g,d);if(g){if(i.totalCount===0){if(b){for(k in a){e=a[k].getOperation();if(e.waitForReload===b){delete e.waitForReload}}i.getData().un("pageadd",b);i.fireEvent("load",i,[],true);i.fireEvent("refresh",i)}}else{i.cachePage(c,d.getPage())}}Ext.callback(d.getCallback(),d.getScope()||i,[c,d,g])}},cachePage:function(b,e){var d=this,a=b.length,c;if(!Ext.isDefined(d.totalCount)){d.totalCount=b.length;d.fireEvent("totalcountchange",d.totalCount)}for(c=0;cb-1)?b-1:d.prefetchEnd,c;a=Math.max(0,a);c=e.getData().getRange(g,a+1);if(d.fireEvent!==false){e.fireEvent("guaranteedrange",c,g,a,d)}if(d.callback){d.callback.call(d.scope||e,c,g,a,d)}},guaranteeRange:function(e,a,d,c,b){b=Ext.apply({callback:d,scope:c},b);this.getRange(e,a+1,b)},prefetchRange:function(h,b){var d=this,c,a,g,e=d.getData();if(!d.rangeCached(h,b)){c=d.getPageFromRecordIndex(h);a=d.getPageFromRecordIndex(b);e.setMaxSize(d.calculatePageCacheSize(b-h+1));for(g=c;g<=a;g++){if(!d.pageCached(g)){d.prefetchPage(g)}}}},primeCache:function(i,c,h){var g=this,e=g.getLeadingBufferZone(),d=g.getTrailingBufferZone(),b=g.getPageSize(),a=g.totalCount;if(h===-1){i=Math.max(i-e,0);c=Math.min(c+d,a-1)}else{if(h===1){i=Math.max(Math.min(i-d,a-b),0);c=Math.min(c+e,a-1)}else{i=Math.min(Math.max(Math.floor(i-((e+d)/2)),0),a-g.pageSize);c=Math.min(Math.max(Math.ceil(c+((e+d)/2)),0),a-1)}}g.prefetchRange(i,c)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else{this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent("beforesort",a,b);a.clearAndLoad({callback:function(){a.fireEvent("sort",a,b)}})}else{a.fireEvent("sort",a,b)}},clearAndLoad:function(a){var b=this;b.clearing=true;b.getData().clear();b.clearing=false;b.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return false}}},0,0,0,0,["store.buffered"],0,[Ext.data,"BufferedStore"],0));(Ext.cmd.derive("Ext.data.proxy.Direct",Ext.data.proxy.Server,{alternateClassName:"Ext.data.DirectProxy",config:{paramOrder:undefined,paramsAsHash:true,directFn:undefined,api:undefined,metadata:undefined},paramOrderRe:/[\s,|]/,constructor:function(a){Ext.data.proxy.Server.prototype.constructor.call(this,a);this.canceledOperations={}},applyParamOrder:function(a){if(Ext.isString(a)){a=a.split(this.paramOrderRe)}return a},updateApi:function(){this.methodsResolved=false},updateDirectFn:function(){this.methodsResolved=false},resolveMethods:function(){var c=this,b=c.getDirectFn(),a=c.getApi(),d;if(b){c.setDirectFn(d=Ext.direct.Manager.parseMethod(b));if(!Ext.isFunction(d)){Ext.raise("Cannot resolve directFn "+b)}}if(a){a=Ext.direct.Manager.resolveApi(a,c);c.setApi(a)}c.methodsResolved=true},doRequest:function(d){var i=this,a,e,c,b,h,g,j,k;if(!i.methodsResolved){i.resolveMethods()}e=i.buildRequest(d);c=e.getAction();g=i.getApi();if(g){j=g[c]}j=j||i.getDirectFn();a=i.getWriter();if(a&&d.allowWrite()){e=a.write(e)}if(c==="read"){b=e.getParams()}else{b=e.getJsonData()}h=j.directCfg.method.getArgs({params:b,allowSingle:a.getAllowSingle(),paramOrder:i.getParamOrder(),paramsAsHash:i.getParamsAsHash(),paramsAsArray:true,metadata:i.getMetadata(),callback:i.createRequestCallback(e,d),scope:i});e.setConfig({args:h,directFn:j});j.apply(window,h);return e},abort:function(a){var b;if(a&&a.isDataRequest){a=a.getOperation()}if(a&&a.isOperation){b=a.id}if(b!=null){this.canceledOperations[b]=true}},applyEncoding:Ext.identityFn,createRequestCallback:function(c,a){var b=this;return function(e,d){if(!b.canceledOperations[a.id]){b.processResponse(d.status,a,c,d)}delete b.canceledOperations[a.id]}},extractResponseData:function(a){return Ext.isDefined(a.result)?a.result:a.data},setException:function(b,a){b.setException(a.message)},buildUrl:function(){return""}},1,0,0,0,["proxy.direct"],0,[Ext.data.proxy,"Direct",Ext.data,"DirectProxy"],0));(Ext.cmd.derive("Ext.data.DirectStore",Ext.data.Store,{constructor:function(a){a=Ext.apply({},a);if(!a.proxy){var b={type:"direct",reader:{type:"json"}};Ext.copyTo(b,a,"paramOrder,paramsAsHash,directFn,api,simpleSortMode,extraParams");Ext.copyTo(b.reader,a,"totalProperty,root,rootProperty,idProperty");a.proxy=b}Ext.data.Store.prototype.constructor.call(this,a)}},1,0,0,0,["store.direct"],0,[Ext.data,"DirectStore"],0));(Ext.cmd.derive("Ext.data.JsonP",Ext.Base,{singleton:true,requestCount:0,requests:{},timeout:30000,disableCaching:true,disableCachingParam:"_dc",callbackKey:"callback",request:function(n){n=Ext.apply({},n);var j=this,d=Ext.isDefined(n.disableCaching)?n.disableCaching:j.disableCaching,h=n.disableCachingParam||j.disableCachingParam,c=++j.requestCount,l=n.callbackName||"callback"+c,i=n.callbackKey||j.callbackKey,m=Ext.isDefined(n.timeout)?n.timeout:j.timeout,e=Ext.apply({},n.params),b=n.url,a=Ext.name,g,k;if(d&&!e[h]){e[h]=Ext.Date.now()}n.params=e;e[i]=a+".data.JsonP."+l;k=j.createScript(b,e,n);j.requests[c]=g={url:b,params:e,script:k,id:c,scope:n.scope,success:n.success,failure:n.failure,callback:n.callback,callbackKey:i,callbackName:l};if(m>0){g.timeout=Ext.defer(j.handleTimeout,m,j,[g])}j.setupErrorHandling(g);j[l]=Ext.bind(j.handleResponse,j,[g],true);j.loadScript(g);return g},abort:function(c){var b=this,d=b.requests,a;if(c){if(!c.id){c=d[c]}b.handleAbort(c)}else{for(a in d){if(d.hasOwnProperty(a)){b.abort(d[a])}}}},setupErrorHandling:function(a){a.script.onerror=Ext.bind(this.handleError,this,[a])},handleAbort:function(a){a.errorType="abort";this.handleResponse(null,a)},handleError:function(a){a.errorType="error";this.handleResponse(null,a)},cleanupErrorHandling:function(a){a.script.onerror=null},handleTimeout:function(a){a.errorType="timeout";this.handleResponse(null,a)},handleResponse:function(b,c){var d=true,a=Ext.GlobalEvents;if(c.timeout){clearTimeout(c.timeout)}delete this[c.callbackName];delete this.requests[c.id];this.cleanupErrorHandling(c);Ext.fly(c.script).destroy();if(c.errorType){d=false;Ext.callback(c.failure,c.scope,[c.errorType])}else{Ext.callback(c.success,c.scope,[b])}Ext.callback(c.callback,c.scope,[d,b,c.errorType]);if(a.hasListeners.idle){a.fireEvent("idle")}},createScript:function(c,d,b){var a=document.createElement("script");a.setAttribute("src",Ext.urlAppend(c,Ext.Object.toQueryString(d)));a.setAttribute("async",true);a.setAttribute("type","text/javascript");return a},loadScript:function(a){Ext.getHead().appendChild(a.script)}},0,0,0,0,0,0,[Ext.data,"JsonP"],0));(Ext.cmd.derive("Ext.data.proxy.JsonP",Ext.data.proxy.Server,{alternateClassName:"Ext.data.ScriptTagProxy",config:{callbackKey:"callback",recordParam:"records",autoAppendParams:true},doRequest:function(a){var c=this,b=c.buildRequest(a),d=b.getParams();b.setConfig({callbackKey:c.callbackKey,timeout:c.timeout,scope:c,disableCaching:false,callback:c.createRequestCallback(b,a)});if(c.getAutoAppendParams()){b.setParams({})}b.setRawRequest(Ext.data.JsonP.request(b.getCurrentConfig()));b.setParams(d);c.lastRequest=b;return b},createRequestCallback:function(c,a){var b=this;return function(g,d,e){if(c===b.lastRequest){b.lastRequest=null}b.processResponse(g,a,c,d)}},setException:function(b,a){b.setException(b.getRequest().getRawRequest().errorType)},buildUrl:function(h){var k=this,a=Ext.data.proxy.Server.prototype.buildUrl.apply(this,arguments),d=h.getRecords(),e=k.getWriter(),g,c,b,j,l;if(e&&h.getOperation().allowWrite()){h=e.write(h)}g=h.getParams();c=g.filters;delete g.filters;if(c&&c.length){for(j=0;j0&&(!e||!e.getEncode())){g[k.getRecordParam()]=k.encodeRecords(d)}if(k.getAutoAppendParams()){a=Ext.urlAppend(a,Ext.Object.toQueryString(g))}return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.data.JsonP.abort(a.getRawRequest())}},encodeRecords:function(b){var d=[],c=0,a=b.length;for(;c0},isExpandable:function(){var c=this;if(c.get("expandable")){return !(c.isLeaf()||(c.isLoaded()&&!c.phantom&&!c.hasChildNodes()))}return false},triggerUIUpdate:function(){this.callJoined("afterEdit",[])},appendChild:function(h,s,k){var p=this,l,o,n,r,c,u={isLast:true,parentId:p.getId(),depth:(p.data.depth||0)+1},t,g=p.getTreeStore(),e=g&&g.triStateCheckbox?1:false,d=g&&g.bulkUpdate,m,j,q;Ext.suspendLayouts();if(Ext.isArray(h)){o=h.length;t=new Array(o);p.callTreeStore("beginFill");for(l=0;l0){if(!m){m=j.getTreeStore().getSortFn()}Ext.Array.sort(k,m);j.setFirstChild(k[0]);j.setLastChild(k[h-1]);for(g=0;g0){d.children=h=[];for(g=0;g1&&!h.getRemoteSort()&&h.getFolderSort()||g.length,c=h.needsLocalFilter(),l,k,e;if(c){h.doFilter(d[0])}for(e=1;e")}else{k.push(">");if((j=q.tpl)){j.applyOut(q.tplData,k)}if((j=q.html)){k.push(j)}if((j=q.cn||q.children)){p.generateMarkup(j,k)}l=p.closeTags;k.push(l[r]||(l[r]=""))}}}return k},generateStyles:function(n,k,m){var j=k||[],l,o;for(l in n){if(n.hasOwnProperty(l)){o=n[l];l=this.decamelizeName(l);if(m&&Ext.String.hasHtmlCharacters(o)){o=Ext.String.htmlEncode(o)}j.push(l,":",o,";")}}return k||j.join("")},markup:function(j){if(typeof j==="string"){return j}var k=this.generateMarkup(j,[]);return k.join("")},applyStyles:function(j,k){Ext.fly(j).applyStyles(k)},createContextualFragment:function(k){var n=this.detachedDiv,j=document.createDocumentFragment(),l,m;n.innerHTML=k;m=n.childNodes;l=m.length;while(l--){j.appendChild(m[0])}return j},createDom:function(m,j){var l=this,k=l.markup(m),p=l.detachedDiv,n;p.innerHTML=k;n=p.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?n.cloneNode(true):n},insertHtml:function(m,j,n){var r=this,k,o,l,q,s;m=m.toLowerCase();if(j.insertAdjacentHTML){if(r.ieInsertHtml){s=r.ieInsertHtml(m,j,n);if(s){return s}}k=b[m];if(k){j.insertAdjacentHTML(k[0],n);return j[k[1]]}}else{if(j.nodeType===3){m=m===a?h:m;m=m===d?g:m}o=Ext.supports.CreateContextualFragment?j.ownerDocument.createRange():undefined;q="setStart"+(this.endRe.test(m)?"After":"Before");if(c[m]){if(o){o[q](j);s=o.createContextualFragment(n)}else{s=this.createContextualFragment(n)}j.parentNode.insertBefore(s,m===h?j:j.nextSibling);return j[(m===h?"previous":"next")+"Sibling"]}else{l=(m===a?"first":"last")+"Child";if(j.firstChild){if(o){try{o[q](j[l]);s=o.createContextualFragment(n)}catch(p){s=this.createContextualFragment(n)}}else{s=this.createContextualFragment(n)}if(m===a){j.insertBefore(s,j.firstChild)}else{j.appendChild(s)}}else{j.innerHTML=n}return j[l]}}},insertBefore:function(j,l,k){return this.doInsert(j,l,k,h)},insertAfter:function(j,l,k){return this.doInsert(j,l,k,g)},insertFirst:function(j,l,k){return this.doInsert(j,l,k,a)},append:function(j,l,k){return this.doInsert(j,l,k,d)},overwrite:function(l,k,n){var m=this,j;l=Ext.getDom(l);k=m.markup(k);if(m.ieOverwrite){j=m.ieOverwrite(l,k)}if(!j){l.innerHTML=k;j=l.firstChild}return n?Ext.get(j):j},doInsert:function(l,p,n,j){var m=this,k;l=l.dom||Ext.getDom(l);if("innerHTML" in l){k=m.insertHtml(j,l,m.markup(p))}else{k=m.createDom(p,null);if(l.nodeType===3){j=j===a?h:j;j=j===d?g:j}if(c[j]){l.parentNode.insertBefore(k,j===h?l:l.nextSibling)}else{if(l.firstChild&&j===a){l.insertBefore(k,l.firstChild)}else{l.appendChild(k)}}}return n?Ext.get(k):k},createTemplate:function(k){var j=this.markup(k);return new Ext.Template(j)},createHtml:function(j){return this.markup(j)}}},0,0,0,0,0,0,[Ext.dom,"Helper",Ext,"DomHelper",Ext.core,"DomHelper"],0));Ext.define("Ext.overrides.dom.Helper",(function(){var c=/^(?:table|thead|tbody|tr|td)$/i,h=/td|tr|tbody|thead/i,g="",i="
",b=g+"",e=""+i,a=b+"",d=""+e;return{override:"Ext.dom.Helper",ieInsertHtml:function(j,l,k){var m=null;if(Ext.isIE9m&&c.test(l.tagName)){m=this.insertIntoTable(l.tagName.toLowerCase(),j,l,k)}return m},ieOverwrite:function(k,j){if(Ext.isIE9m&&c.test(k.tagName)){while(k.firstChild){k.removeChild(k.firstChild)}if(j){return this.insertHtml("afterbegin",k,j)}}},ieTable:function(p,k,q,o){var l=-1,n=this.detachedDiv,m,j;n.innerHTML=[k,q,o].join("");while(++ltext";return d.children&&(d.children.length===0)})(),nonSpace=/\S/,trimRe=/^\s+|\s+$/g,tplRe=/\{(\d+)\}/g,modeRe=/^(\s?[\/>+~]\s?|\s|$)/,tagTokenRe=/^(#)?([\w\-\*\|\\]+)/,nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/,startIdRe=/^\s*#/,isIE=window.ActiveXObject?true:false,key=30803,longHex=/\\([0-9a-fA-F]{6})/g,shortHex=/\\([0-9a-fA-F]{1,6})\s{0,1}/g,nonHex=/\\([^0-9a-fA-F]{1})/g,escapes=/\\/g,num,hasEscapes,supportsColonNsSeparator=(function(){var xmlDoc,xmlString='';if(window.DOMParser){xmlDoc=(new DOMParser()).parseFromString(xmlString,"application/xml")}else{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.loadXML(xmlString)}return !!xmlDoc.getElementsByTagName("a:b").length})(),longHexToChar=function($0,$1){return String.fromCharCode(parseInt($1,16))},shortToLongHex=function($0,$1){while($1.length<6){$1="0"+$1}return"\\"+$1},charToLongHex=function($0,$1){num=$1.charCodeAt(0).toString(16);if(num.length===1){num="0"+num}return"\\0000"+num},unescapeCssSelector=function(selector){return(hasEscapes)?selector.replace(longHex,longHexToChar):selector},setupEscapes=function(path){hasEscapes=(path.indexOf("\\")>-1);if(hasEscapes){path=path.replace(shortHex,shortToLongHex).replace(nonHex,charToLongHex).replace(escapes,"\\\\")}return path};eval("var batch = 30803, child, next, prev, byClassName;");child=useChildrenCollection?function child(parent,index){return parent.children[index]}:function child(parent,index){var i=0,n=parent.firstChild;while(n){if(n.nodeType==1){if(++i==index){return n}}n=n.nextSibling}return null};next=useElementPointer?function(n){return n.nextElementSibling}:function(n){while((n=n.nextSibling)&&n.nodeType!=1){}return n};prev=useElementPointer?function(n){return n.previousElementSibling}:function(n){while((n=n.previousSibling)&&n.nodeType!=1){}return n};function children(parent){var n=parent.firstChild,nodeIndex=-1,nextNode;while(n){nextNode=n.nextSibling;if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){parent.removeChild(n)}else{n.nodeIndex=++nodeIndex}n=nextNode}return this}byClassName=useClassList?function(nodeSet,cls){cls=unescapeCssSelector(cls);if(!cls){return nodeSet}var result=[],ri=-1,i,ci,classList;for(i=0;ci=nodeSet[i];i++){classList=ci.classList;if(classList){if(classList.contains(cls)){result[++ri]=ci}}else{if((" "+ci.className+" ").indexOf(cls)!==-1){result[++ri]=ci}}}return result}:function(nodeSet,cls){cls=unescapeCssSelector(cls);if(!cls){return nodeSet}var result=[],ri=-1,i,ci;for(i=0;ci=nodeSet[i];i++){if((" "+ci.className+" ").indexOf(cls)!==-1){result[++ri]=ci}}return result};function attrValue(n,attr){if(!n.tagName&&typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(attr=="for"){return n.htmlFor}if(attr=="class"||attr=="className"){return n.className}return n.getAttribute(attr)||n[attr]}function getNodes(ns,mode,tagName){var result=[],ri=-1,cs,i,ni,j,ci,cn,utag,n,cj;if(!ns){return result}tagName=tagName.replace("|",":")||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns]}if(!mode){tagName=unescapeCssSelector(tagName);if(!supportsColonNsSeparator&&DQ.isXml(ns[0])&&tagName.indexOf(":")!==-1){for(i=0;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName.split(":").pop());for(j=0;ci=cs[j];j++){if(ci.tagName===tagName){result[++ri]=ci}}}}else{for(i=0;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);for(j=0;ci=cs[j];j++){result[++ri]=ci}}}}else{if(mode=="/"||mode==">"){utag=tagName.toUpperCase();for(i=0;ni=ns[i];i++){cn=ni.childNodes;for(j=0;cj=cn[j];j++){if(cj.nodeName==utag||cj.nodeName==tagName||tagName=="*"){result[++ri]=cj}}}}else{if(mode=="+"){utag=tagName.toUpperCase();for(i=0;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(n&&(n.nodeName==utag||n.nodeName==tagName||tagName=="*")){result[++ri]=n}}}else{if(mode=="~"){utag=tagName.toUpperCase();for(i=0;n=ns[i];i++){while((n=n.nextSibling)){if(n.nodeName==utag||n.nodeName==tagName||tagName=="*"){result[++ri]=n}}}}}}}return result}function concat(a,b){a.push.apply(a,b);return a}function byTag(cs,tagName){if(cs.tagName||cs===doc){cs=[cs]}if(!tagName){return cs}var result=[],ri=-1,i,ci;tagName=tagName.toLowerCase();for(i=0;ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){result[++ri]=ci}}return result}function byId(cs,id){id=unescapeCssSelector(id);if(cs.tagName||cs===doc){cs=[cs]}if(!id){return cs}var result=[],ri=-1,i,ci;for(i=0;ci=cs[i];i++){if(ci&&ci.id==id){result[++ri]=ci;return result}}return result}function byAttribute(cs,attr,value,op,custom){var result=[],ri=-1,useGetStyle=custom=="{",fn=DQ.operators[op],a,xml,hasXml,i,ci;value=unescapeCssSelector(value);for(i=0;ci=cs[i];i++){if(ci.nodeType===1){if(!hasXml){xml=DQ.isXml(ci);hasXml=true}if(!xml){if(useGetStyle){a=DQ.getStyle(ci,attr)}else{if(attr=="class"||attr=="className"){a=ci.className}else{if(attr=="for"){a=ci.htmlFor}else{if(attr=="href"){a=ci.getAttribute("href",2)}else{a=ci.getAttribute(attr)}}}}}else{a=ci.getAttribute(attr)}if((fn&&fn(a,value))||(!fn&&a)){result[++ri]=ci}}}return result}function byPseudo(cs,name,value){value=unescapeCssSelector(value);return DQ.pseudos[name](cs,value)}function nodupIEXml(cs){var d=++key,r,i,len,c;cs[0].setAttribute("_nodup",d);r=[cs[0]];for(i=1,len=cs.length;i1){return nodup(results)}return results},isXml:function(el){var docEl=(el?el.ownerDocument||el:0).documentElement;return docEl?docEl.nodeName!=="HTML":false},select:doc.querySelectorAll?function(path,root,type,single){root=root||doc;if(!DQ.isXml(root)){try{if(root.parentNode&&(root.nodeType!==9)&&path.indexOf(",")===-1&&!startIdRe.test(path)){path=Ext.makeIdSelector(Ext.id(root))+" "+path;root=root.parentNode}return single?[root.querySelector(path)]:Ext.Array.toArray(root.querySelectorAll(path))}catch(e){}}return DQ.jsSelect.call(this,path,root,type)}:function(path,root,type){return DQ.jsSelect.call(this,path,root,type)},selectNode:function(path,root){return Ext.DomQuery.select(path,root,null,true)[0]},selectValue:function(path,root,defaultValue){path=path.replace(trimRe,"");var query=valueCache.get(path),n,v;if(!query){query=DQ.compile(path,"select");valueCache.add(path,query)}else{setupEscapes(path)}n=query(root);return DQ.getNodeValue(n[0]||n,defaultValue)},getNodeValue:function(node,defaultValue){if(typeof node.normalize=="function"){node.normalize()}var firstChild=node&&node.firstChild,v=firstChild?firstChild.nodeValue:null;if(defaultValue!==undefined&&(v==null||v==="")){v=defaultValue}return v},selectNumber:function(path,root,defaultValue){var v=DQ.selectValue(path,root,defaultValue||0);return parseFloat(v)},is:function(el,ss){if(typeof el=="string"){el=doc.getElementById(el)}var isArray=Ext.isArray(el),result=DQ.filter(isArray?el:[el],ss);return isArray?(result.length==el.length):(result.length>0)},filter:function(els,ss,nonMatches){ss=ss.replace(trimRe,"");var query=simpleCache.get(ss),result;if(!query){query=DQ.compile(ss,"simple");simpleCache.add(ss,query)}else{setupEscapes(ss)}result=query(els);return nonMatches?quickDiff(result,els):result},matchers:[{re:/^\.([\w\-\\]+)/,select:useClassList?'n = byClassName(n, "{1}");':'n = byClassName(n, " {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, "{1}");'},{re:/^@([\w\-\.]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],pseudos:{"first-child":function(c){var r=[],ri=-1,n,i,ci;for(i=0;(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,i,ci;for(i=0;(ci=n=c[i]);i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci}}return r},"nth-child":function(c,a){var r=[],ri=-1,m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!nthRe2.test(a)&&"n+"+a||a),f=(m[1]||1)-0,l=m[2]-0,i,n,j,cn,pn;for(i=0;n=c[i];i++){pn=n.parentNode;if(batch!=pn._batch){j=0;for(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,i,ci;for(i=0;ci=c[i];i++){if(!prev(ci)&&!next(ci)){r[++ri]=ci}}return r},empty:function(c){var r=[],ri=-1,i,ci,cns,j,cn,empty;for(i=0;ci=c[i];i++){cns=ci.childNodes;j=0;empty=true;while(cn=cns[j]){++j;if(cn.nodeType==1||cn.nodeType==3){empty=false;break}}if(empty){r[++ri]=ci}}return r},contains:function(c,v){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if((ci.textContent||ci.innerText||ci.text||"").indexOf(v)!=-1){r[++ri]=ci}}return r},nodeValue:function(c,v){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(ci.firstChild&&ci.firstChild.nodeValue==v){r[++ri]=ci}}return r},checked:function(c){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(ci.checked===true){r[++ri]=ci}}return r},not:function(c,ss){return DQ.filter(c,ss,true)},any:function(c,selectors){var ss=selectors.split("|"),r=[],ri=-1,s,i,ci,j;for(i=0;ci=c[i];i++){for(j=0;s=ss[j];j++){if(DQ.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=DQ.select,r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(s(ss,ci).length>0){r[++ri]=ci}}return r},next:function(c,ss){var is=DQ.is,r=[],ri=-1,i,ci,n;for(i=0;ci=c[i];i++){n=next(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},prev:function(c,ss){var is=DQ.is,r=[],ri=-1,i,ci,n;for(i=0;ci=c[i];i++){n=prev(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},focusable:function(candidates){var len=candidates.length,results=[],i=0,c;for(;i0||s.left>0){r[++ri]=ci}}return r}}}},0,0,0,0,0,0,[Ext.dom,"Query",Ext.core,"DomQuery",Ext,"DomQuery"],function(){this._init()}));(Ext.cmd.derive("Ext.data.reader.Xml",Ext.data.reader.Reader,{alternateClassName:"Ext.data.XmlReader",config:{record:"",namespace:""},createAccessor:function(a){if(Ext.isEmpty(a)){return Ext.emptyFn}if(Ext.isFunction(a)){return a}return function(b){return this.getNodeValue(Ext.DomQuery.selectNode(a,b))}},getNodeValue:function(a){if(a){if(typeof a.normalize==="function"){a.normalize()}a=a.firstChild;if(a){return a.nodeValue}}return undefined},getResponseData:function(a){var c=a.responseXML,b="XML data not found in the response";if(!c){Ext.Logger.warn(b);return this.createReadError(b)}return c},getData:function(a){return a.documentElement||a},getRoot:function(b){var c=b.nodeName,a=this.getRootProperty();if(!a||(c&&c==a)){return b}else{if(Ext.DomQuery.isXml(b)){return Ext.DomQuery.selectNode(a,b)}}},extractData:function(a,b){var c=this.getRecord();if(c!==a.nodeName){a=Ext.DomQuery.select(c,a)}else{a=[a]}return Ext.data.reader.Reader.prototype.extractData.call(this,a,b)},readRecords:function(c,b,a){if(Ext.isArray(c)){c=c[0]}return Ext.data.reader.Reader.prototype.readRecords.call(this,c,b,a)},createFieldAccessor:function(e){var d=this,c=d.getNamespace(),b,a;b=e.mapping||((c?c+"|":"")+e.name);if(typeof b==="function"){a=function(g){return e.mapping(g,d)}}else{a=function(g){return d.getNodeValue(Ext.DomQuery.selectNode(b,g))}}return a},deprecated:{"5.1.1":{properties:{xmlData:null}}}},0,0,0,0,["reader.xml"],0,[Ext.data.reader,"Xml",Ext.data,"XmlReader"],0));(Ext.cmd.derive("Ext.data.writer.Xml",Ext.data.writer.Writer,{alternateClassName:"Ext.data.XmlWriter",config:{documentRoot:"xmlData",defaultDocumentRoot:"xmlData",header:"",record:"record"},selectorRe:/[^>\s]+/g,writeRecords:function(b,c){var j=this,g=[],d=0,h=c.length,l=j.getDocumentRoot(),k=j.getRecord(),e=k.match(this.selectorRe),m=e.length,n=c.length!==1&&m===1,a;a=this.getTransform();if(a){c=a(c,b)}g.push(j.getHeader()||"");if(!l&&n){l=j.getDefaultDocumentRoot()}if(l){g.push("<",l,">")}for(d=0;d")}k=e[d];for(d=0;d-1;d--){g.push("")}if(l){g.push("")}b.setXmlData(g.join(""));return b},objectToElement:function(b,e,g){var p,m,h=[],d,c,k,j,l,a,n;if(!g){g=[]}g.push("<",b);for(p in e){m=e[p];if(p[0]==="@"){g.push(" ",p.substr(1),'="',m,'"')}else{if(typeof m==="object"){this.objectToElement(p,m,h)}else{d=p.match(this.selectorRe);if((c=d.length)>1){l=l||{};for(j=l,k=0;k",m,"")}}}}g.push(">");g.push.apply(g,h);if(l){for(p in l){m=l[p];this.objectToElement(p,m,g)}}g.push("");return g}},0,0,0,0,["writer.xml"],0,[Ext.data.writer,"Xml",Ext.data,"XmlWriter"],0));(Ext.cmd.derive("Ext.data.XmlStore",Ext.data.Store,{constructor:function(a){a=Ext.apply({proxy:{type:"ajax",reader:"xml",writer:"xml"}},a);Ext.data.Store.prototype.constructor.call(this,a)}},1,0,0,0,["store.xml"],0,[Ext.data,"XmlStore"],0));(Ext.cmd.derive("Ext.data.identifier.Negative",Ext.data.identifier.Sequential,{config:{increment:-1,seed:-1}},0,0,0,0,["data.identifier.negative"],0,[Ext.data.identifier,"Negative"],0));(Ext.cmd.derive("Ext.data.identifier.Uuid",Ext.data.identifier.Generator,{isUnique:true,config:{id:null},constructor:function(a){Ext.data.identifier.Generator.prototype.constructor.call(this,a);this.reconfigure(a)},reconfigure:function(b){var a=this.self;this.generate=(b&&b.version===1)?a.createSequential(b.salt,b.timestamp,b.clockSeq):a.createRandom()},clone:null,statics:{createRandom:function(){var c="xxxxxxxx-xxxx-4xxx-Rxxx-xMxxxxxxxxxx".split(""),b="0123456789abcdef".split(""),a=c.length,d=[];return function(){for(var g,h,e=0;em){l=l.substring(l.length-m)}else{if(l.length>>8)&63),2)+a(e&255,2);g[4]=a(c,4)+a(i,8);return function(){g[0]=a(j,8);g[1]=a(d&65535,4);g[2]=a(((d>>>16)&4095)|(1<<12),4);++j;if(j>=k){j=0;++d}return g.join("-")}}}},1,0,0,0,["data.identifier.uuid"],0,[Ext.data.identifier,"Uuid"],function(){this.Global=new this({id:"uuid"})}));(Ext.cmd.derive("Ext.data.proxy.WebStorage",Ext.data.proxy.Client,{alternateClassName:"Ext.data.WebStorageProxy",config:{id:undefined},constructor:function(a){Ext.data.proxy.Client.prototype.constructor.apply(this,arguments);this.cache={};this.initialize()},create:function(e){var k=this,d=e.getRecords(),c=d.length,a=k.getIds(),b,h,g,j;if(k.isHierarchical===undefined){k.isHierarchical=!!d[0].isNode;if(k.isHierarchical){k.getStorageObject().setItem(k.getTreeKey(),true)}}for(g=0;gb){h=e._bothMsg}}else{if(c){if(gb){h=e._maxMsg}}}}return h},validateValue:function(a){if(a===undefined||a===null){return this.getEmptyMessage()}return true},getValue:Ext.identityFn},1,0,0,0,["data.validator.bound"],0,[Ext.data.validator,"Bound"],0));(Ext.cmd.derive("Ext.data.validator.Format",Ext.data.validator.Validator,{type:"format",config:{message:"Is in the wrong format",matcher:undefined},validate:function(b){var c=this.getMatcher(),a=c&&c.test(b);return a?a:this.getMessage()}},0,0,0,0,["data.validator.format"],0,[Ext.data.validator,"Format"],0));(Ext.cmd.derive("Ext.data.validator.Email",Ext.data.validator.Format,{type:"email",config:{message:"Is not a valid email address",matcher:/^(")?(?:[^\."])(?:(?:[\.])?(?:[\w\-!#$%&'*+\/=?\^_`{|}~]))*\1@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/}},0,0,0,0,["data.validator.email"],0,[Ext.data.validator,"Email"],0));(Ext.cmd.derive("Ext.data.validator.List",Ext.data.validator.Validator,{type:"list",config:{list:null},inclusion:null,validate:function(c){var b=Ext.Array.contains(this.getList(),c),e=this.inclusion,d=!e,a;a=(e&&b)||(d&&!b);return a||this.getMessage()}},0,0,0,0,["data.validator.list"],0,[Ext.data.validator,"List"],0));(Ext.cmd.derive("Ext.data.validator.Exclusion",Ext.data.validator.List,{type:"exclusion",config:{message:"Is a value that has been excluded"},inclusion:false},0,0,0,0,["data.validator.exclusion"],0,[Ext.data.validator,"Exclusion"],0));(Ext.cmd.derive("Ext.data.validator.Inclusion",Ext.data.validator.List,{type:"inclusion",config:{message:"Is not in the list of acceptable values"},inclusion:true},0,0,0,0,["data.validator.inclusion"],0,[Ext.data.validator,"Inclusion"],0));(Ext.cmd.derive("Ext.data.validator.Length",Ext.data.validator.Bound,{type:"length",config:{minOnlyMessage:"Length must be at least {0}",maxOnlyMessage:"Length must be no more than {0}",bothMessage:"Length must be between {0} and {1}"},getValue:function(a){return String(a).length}},0,0,0,0,["data.validator.length"],0,[Ext.data.validator,"Length"],0));(Ext.cmd.derive("Ext.data.validator.Presence",Ext.data.validator.Validator,{type:"presence",config:{message:"Must be present",allowEmpty:false},validate:function(b){var a=!(b===undefined||b===null);if(a&&!this.getAllowEmpty()){a=!(b==="")}return a?true:this.getMessage()}},0,0,0,0,["data.validator.presence"],0,[Ext.data.validator,"Presence"],0));(Ext.cmd.derive("Ext.data.validator.Range",Ext.data.validator.Bound,{type:"range",config:{minOnlyMessage:"Must be must be at least {0}",maxOnlyMessage:"Must be no more than than {0}",bothMessage:"Must be between {0} and {1}",nanMessage:"Must be numeric"},validateValue:function(a){var b=Ext.data.validator.Bound.prototype.validateValue.call(this,a);if(b===true&&isNaN(a)){b=this.getNanMessage()}return b}},0,0,0,0,["data.validator.range"],0,[Ext.data.validator,"Range"],0));(Ext.cmd.derive("Ext.direct.Event",Ext.Base,{status:true,constructor:function(a){Ext.apply(this,a)},getName:function(){return this.name},getData:function(){return this.data}},1,0,0,0,["direct.event"],0,[Ext.direct,"Event"],0));(Ext.cmd.derive("Ext.direct.RemotingEvent",Ext.direct.Event,{getTransaction:function(){var a=this;return a.transaction||Ext.direct.Manager.getTransaction(a.tid)}},0,0,0,0,["direct.rpc"],0,[Ext.direct,"RemotingEvent"],0));(Ext.cmd.derive("Ext.direct.ExceptionEvent",Ext.direct.RemotingEvent,{status:false},0,0,0,0,["direct.exception"],0,[Ext.direct,"ExceptionEvent"],0));(Ext.cmd.derive("Ext.direct.JsonProvider",Ext.direct.Provider,{parseResponse:function(a){var b=a&&a.responseText;if(b!=null){if(Ext.isObject(b)||Ext.isArray(b)){return b}return Ext.decode(b)}return null},createEvents:function(b){var h=this,j=null,d=[],g,c,a;try{j=h.parseResponse(b)}catch(k){g=new Ext.direct.ExceptionEvent({parsingError:true,data:k,xhr:b,code:Ext.direct.Manager.exceptions.PARSE,message:"Error parsing json response: \n\n "+k});return[g]}if(Ext.isArray(j)){for(c=0,a=j.length;c0){if(j){a=b.paramsAsArray&&h.len===1&&(j.length>1||Ext.isArray(c));if(a){if(Ext.isArray(c)){for(d=0,e=c.length;d1){g=[g]}}else{g=h.convertParams(c,j,h.len,false)}}else{g.push(c)}}}else{g.push(c)}g.push(b.callback,b.scope||window);if(m||k){m=Ext.apply({},m);if(k){m.metadata=k}g.push(m)}return g},convertParams:function(h,b,e,j){var c=[],g,d,a;for(d=0,a=e;d0){c.sendTransaction(a===1?b[0]:b);c.callBuffer=[]}},sendTransaction:function(a){var h=this,d,b,c,k=h.enableUrlEncode,j,e,g;d={url:h.url,callback:h.onData,scope:h,transaction:a,headers:h.getHeaders()};if(a.timeout!=null){d.timeout=a.timeout}else{if(h.timeout!=null){d.timeout=h.timeout}}if(a.isForm){Ext.apply(d,{params:a.params,form:a.form,isUpload:a.isUpload})}else{if(Ext.isArray(a)){b=[];for(e=0,g=a.length;ea.interval){a.collect()}if(!a.timerId){a.timerId=Ext.defer(a.onTick,a.interval)}}},1,0,0,0,0,0,[Ext.dom,"GarbageCollector"],0));(Ext.cmd.derive("Ext.dom.TouchAction",Ext.Base,{singleton:true,lastTouchStartTime:0,minMoveDistance:8,spaceRe:/\s+/,preventSingle:null,preventMulti:null,disabledOverflowDom:null,panXCls:"x-touch-action-pan-x",panYCls:"x-touch-action-pan-y",cssValues:["none","pan-x","pan-y","pan-x pan-y","pinch-zoom","pan-x pinch-zoom","pan-y pinch-zoom","manipulation","double-tap-zoom","pan-x double-tap-zoom","pan-y double-tap-zoom","pan-x pan-y double-tap-zoom","pinch-zoom double-tap-zoom","pan-x pinch-zoom double-tap-zoom","pan-y pinch-zoom double-tap-zoom",""],objectValues:[{panX:false,panY:false,pinchZoom:false,doubleTapZoom:false},{panX:true,panY:false,pinchZoom:false,doubleTapZoom:false},{panX:false,panY:true,pinchZoom:false,doubleTapZoom:false},{panX:true,panY:true,pinchZoom:false,doubleTapZoom:false},{panX:false,panY:false,pinchZoom:true,doubleTapZoom:false},{panX:true,panY:false,pinchZoom:true,doubleTapZoom:false},{panX:false,panY:true,pinchZoom:true,doubleTapZoom:false},{panX:true,panY:true,pinchZoom:true,doubleTapZoom:false},{panX:false,panY:false,pinchZoom:false,doubleTapZoom:true},{panX:true,panY:false,pinchZoom:false,doubleTapZoom:true},{panX:false,panY:true,pinchZoom:false,doubleTapZoom:true},{panX:true,panY:true,pinchZoom:false,doubleTapZoom:true},{panX:false,panY:false,pinchZoom:true,doubleTapZoom:true},{panX:true,panY:false,pinchZoom:true,doubleTapZoom:true},{panX:false,panY:true,pinchZoom:true,doubleTapZoom:true},{panX:true,panY:true,pinchZoom:true,doubleTapZoom:true}],attributeName:"data-extTouchAction",constructor:function(){var b=this,a=Ext.supports;if(a.PointerEvents){b.cssProp="touch-action"}else{if(a.MSPointerEvents){b.cssProp="-ms-touch-action"}else{if(a.TouchEvents){Ext.getWin().on({touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",scope:b,translate:false,capture:true,priority:5000});Ext.on({scroll:"onScroll",scope:b,destroyable:true})}}}},containsTargets:function(h,g){var b=true,d=g.type==="touchend"?g.changedTouches:g.touches,a,c;for(a=0,c=d.length;a1&&(d===true))||(n===1&&(k===true))){o=true}else{while(j){c=m.lookupFlags(j);if(c!=null){if(!c){o=true}else{if(n===1){q=!!(c&1);p=!!(c&2);if(q&&p){o=false}else{if(!q&&!p){o=true}else{r=l.getPoint();b=m.startPoint;g=Ext.Element.getViewportScale();a=Math.abs(r.getDistanceTo(m.startPoint)*g);if(a>=m.minMoveDistance){i=Math.abs(r.x-b.x);h=Math.abs(r.y-b.y);o=!!((q&&(h>i))||(p&&(i>h)))}}}}else{if(m.containsTargets(j,l)){o=!(c&4)}else{o=false}}}if(o){break}}j=j.parentNode}}if(n===1){m.preventSingle=o}else{if(n>1){m.preventMulti=o}}if(o){l.preventDefault()}},onTouchStart:function(h){var d=this,g,c,i,b,a;if(h.touches.length===1){g=h.time;if(!d.scrollOccurred&&((g-d.lastTouchStartTime)<=500)){d.isDoubleTap=true}d.lastTouchStartTime=g;d.scrollOccurred=false;d.startPoint=h.getPoint();i=h.target;while(i){c=d.lookupFlags(i);if(c!=null){b=!!(c&1);a=!!(c&2);if(b!==a){d.disableOverflow(i,b);break}}i=i.parentNode}}else{d.isDoubleTap=false}},resetOverflow:function(){var a=this,b=a.disabledOverflowDom;while(b){Ext.fly(b).removeCls([a.panXCls,a.panYCls]);b=b.parentNode}a.disabledOverflowDom=null},set:function(g,e){var d=this,c=d.cssProp,a=d.getFlags(e),b=d.attributeName;if(c){Ext.fly(g).setStyle(c,d.cssValues[a])}if(a===15){g.removeAttribute(b)}else{g.setAttribute(b,a)}}},1,0,0,0,0,0,[Ext.dom,"TouchAction"],0));(Ext.cmd.derive("Ext.drag.Constraint",Ext.Base,{factoryConfig:{defaultType:"base",type:"drag.constraint"},config:{element:null,horizontal:false,region:null,snap:null,source:null,vertical:false,x:null,y:null},constructor:function(a){this.initConfig(a)},applyElement:function(a){if(a){if(typeof a==="boolean"){a=this.getSource().getElement().parent()}else{a=Ext.get(a)}}return a||null},applySnap:function(a){if(typeof a==="number"){a={x:a,y:a}}return a},constrain:function(m,a){var h=this,k=m[0],j=m[1],l=h.constrainInfo,g=l.initial,d=l.x,c=l.y,b=l.snap,e,i;if(!l.vertical){if(b&&b.x){if(b.xFn){k=b.x.call(h,a,k)}else{k=h.doSnap(k,g.x,b.x)}}if(d){e=d[0];i=d[1];if(e!==null&&ki){k=i}}}else{k=g.x}if(!l.horizontal){if(b&&b.y){if(b.yFn){j=b.y.call(h,a,j)}else{j=h.doSnap(j,g.y,b.y)}}if(c){e=c[0];i=c[1];if(e!==null&&ji){j=i}}}else{j=g.y}return[k,j]},destroy:function(){this.setSource(null);this.setElement(null);this.callParent()},privates:{constrainValue:function(d,c,i){var h=null,g=d===null,e=c===null;if(!(g&&e)){if(g){h=c}else{if(e){h=d}else{h=i(d,c)}}}return h},doSnap:function(b,c,a){if(!a){return b}var d=(b-c)/a,e=Math.floor(d);if(d-e<=0.5){d=e}else{d=e+1}return c+(a*d)},onDragStart:function(n){var t=this,l=t.getSnap(),a=t.getVertical(),q=t.getHorizontal(),b=t.getElement(),d=t.getRegion(),m=n.proxy,i=m.element,k=t.getX(),j=t.getY(),s=null,r=null,p=null,o=null,h=null,g=null,e=null,c=null;if(b){d=b.getRegion(true)}if(d){if(!a){h=d.left;g=d.right-(i?m.width:0)}if(!q){e=d.top;c=d.bottom-(i?m.height:0)}}if(!a&&(d||k)){if(k){s=k[0];r=k[1]}if(s!==null||r!==null||h!==null||g!==null){s=t.constrainValue(s,h,Math.max);r=t.constrainValue(r,g,Math.min);k=[s,r]}}if(!q&&(d||j)){if(j){p=j[0];o=j[1]}if(p!==null||o!==null||e!==null||c!==null){p=t.constrainValue(p,e,Math.max);o=t.constrainValue(o,c,Math.min);j=[p,o]}}if(l){l={x:l.x,xFn:typeof l.x==="function",y:l.y,yFn:typeof l.y==="function"}}t.constrainInfo={initial:n.element.initial,vertical:t.getVertical(),horizontal:t.getHorizontal(),x:k,y:j,snap:l}}}},1,0,0,0,["drag.constraint.base"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.drag,"Constraint"],0));(Ext.cmd.derive("Ext.drag.Info",Ext.Base,{constructor:function(a,h){if(!a){return}var j=this,m=h.getXY(),g=m[0],d=m[1],b,l,k,c,i;j.source=a;b=a.getElement();m=b.getXY();l=m[0];k=m[1];j.eventTarget=h.target;j.cursor={current:{x:g,y:d},delta:{x:0,y:0},initial:{x:g,y:d},offset:{x:g-l,y:d-k}};j.element={current:{x:l,y:k},delta:{x:0,y:0},initial:{x:l,y:k}};j.proxy={current:{x:l,y:k},delta:{x:0,y:0},initial:{x:l,y:k},element:b,isUnderCursor:false,isElement:true};j.types=[];j.data={};a.describe(j);c=a.getProxy().getElement(j);i=j.proxy;i.isElement=c===a.getElement();i.element=c;if(c){i.width=c.getWidth();i.height=c.getHeight()}if(i.isElement){b=j.element;b.current=i.current;b.delta=i.delta}j.needsCursorCheck=i.element&&a.manager&&a.manager.pointerBug},cursor:null,element:null,eventTarget:null,files:null,isNative:false,proxy:null,source:null,target:null,types:null,valid:false,clearData:function(a){Ext.Array.remove(this.types,a);delete this.data[a]},clone:function(){var b=this,a=new Ext.drag.Info();a.cursor=Ext.merge({},b.cursor);a.data=Ext.apply({},b.data);a.element=Ext.merge({},b.element);a.eventTarget=b.eventTarget;a.proxy=Ext.merge({},b.proxy);a.source=b.source;a.target=b.target;a.types=Ext.Array.clone(b.types);a.valid=b.valid;return a},getData:function(b){var d=this,e=d.data,c=d.dataTransfer,a;if(c){a=c.getData(b)}else{a=e[b];if(typeof a==="function"){e[b]=a=a.call(d.source,d)}if(!a&&a!==0){a=""}}return Ext.Promise.resolve(a)},setData:function(a,b){Ext.Array.include(this.types,a);this.data[a]=b},destroy:function(){var a=this;a.eventTarget=a.data=a.proxy=a.targetMap=a.targetMap=a.types=a.elementMap=a.possibleTargets=a.target=null;a.callParent()},privates:{data:null,dataTransfer:null,elementMap:null,possibleTargets:null,targetMap:null,copyNativeData:function(c,b){var a=b.browserEvent.dataTransfer;this.target=c;this.dataTransfer=a;this.files=a.files},finalize:function(){var b=this,d=b.target,c=b.source,a;b.finalized=true;if(d){d.info=null;d.handleDrop(b)}},getAlignXY:function(i,g){var e=this,a=e.source,b=e.cursor.offset,d=a.getProxy(),c=e.proxy.element,h=a.getConstrain(),j=[i,g];if(c){if(e.proxy.isElement){j[0]-=b.x;j[1]-=b.y}else{j=d.adjustCursorOffset(e,j)}if(h){j=h.constrain(j,e)}}return j},onNativeDragEnter:function(c,b){var a=this;a.valid=c.accepts(a);c.info=a;a.copyNativeData(c,b)},onNativeDragLeave:function(c,b){var a=this;if(a.target===c){c.info=null;a.valid=false;a.target=a.dataTransfer=a.files=null}},onNativeDragMove:function(b,a){this.copyNativeData(b,a)},onNativeDrop:function(b,a){this.copyNativeData(b,a);b.info=null},setActive:function(d){var a=this,b=a.source,c=a.target,e=c!==d;if(c&&e){c.handleDragLeave(a);c.info=null}a.target=d;if(d){if(e){a.valid=!!a.possibleTargets[d.getId()]&&d.accepts(a)!==false;d.handleDragEnter(a);d.info=a}d.handleDragMove(a)}else{a.valid=false}if(e){b.getProxy().update(a)}},update:function(i,m){var k=this,q=i.getXY(),n=q[0],l=q[1],a=k.getAlignXY(n,l),d=a[0],b=a[1],j=k.proxy,p=k.cursor,h=p.current,o=p.delta,g=p.initial,c=j.element;h.x=n;h.y=l;o.x=n-g.x;o.y=l-g.y;h=j.current;o=j.delta;g=j.initial;h.x=d;h.y=b;o.x=d-g.x;o.y=b-g.y;if(k.needsCursorCheck){j.isUnderCursor=!(nj.width+d||l>j.height+b)}if(!m&&c){c.setXY(a)}}}},1,0,0,0,0,0,[Ext.drag,"Info"],0));(Ext.cmd.derive("Ext.drag.Item",Ext.Base,{config:{autoDestroy:true,element:null,groups:null},constructor:function(a){this.mixins.observable.constructor.call(this,a)},isDisabled:function(){return this.disabled},disable:function(){this.disabled=true},enable:function(){this.disabled=false},applyElement:function(a){return a?Ext.get(a):null},updateElement:function(a){this.setupListeners()},applyGroups:function(a){if(typeof a==="string"){a=[a]}return a},destroy:function(){var b=this,a=b.getElement();b.destroying=true;b.setElement(null);if(a&&b.getAutoDestroy()){a.destroy()}b.callParent();b.destroying=false},privates:{disabled:false,getElListeners:Ext.privateFn,setupListeners:function(a){var b=this,c=b.elListeners;a=a||b.getElement();if(c){c.destroy();b.elListeners=null}if(a){b.elListeners=a.on(Ext.apply({scope:b,destroyable:true},b.getElListeners()))}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.drag,"Item"],0));(Ext.cmd.derive("Ext.drag.Manager",Ext.Base,{singleton:true,dragCls:"x-drag-body",pointerBug:Ext.isTouch||(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera),constructor:function(){this.targets={};this.nativeTargets=[];Ext.onReady(this.init,this)},init:function(){Ext.getDoc().on({scope:this,dragenter:{capture:true,fn:"onNativeDragEnter"},dragleave:"onNativeDragLeave",dragover:"onNativeDragOver",drop:"onNativeDrop"})},destroy:function(){var c=this,a=c.targets,b;c.destroying=true;for(b in a){a[b].destroy()}c.targets=null;c.callParent();c.destroying=false},privates:{elementFromPoint:function(a,b){if(Ext.rootInheritedState.rtl){a=Ext.Element.getViewportWidth()-a}return Ext.dom.Element.fromPagePoint(a,b,true)},getAtPoint:function(h){var g=h.cursor.current,b=h.elementMap,d=h.proxy.isUnderCursor,a=this.pointerBug&&d?h.proxy.element.dom:null,e,c;if(a){a.style.visibility="hidden"}c=this.elementFromPoint(g.x,g.y);if(a){a.style.visibility="visible"}while(c){e=b[c.id];if(e){return e}c=c.parentNode}return null},getNativeDragInfo:function(b){var a=this.nativeDragInfo;if(!a){this.nativeDragInfo=a=new Ext.drag.Info();a.isNative=true}return a},onDragCancel:function(){Ext.getBody().removeCls(this.dragCls)},onDragEnd:function(b,a){b.finalize();Ext.getBody().removeCls(this.dragCls)},onDragMove:function(b,a){this.processDrag(b)},onDragStart:function(g,p){var q=this,a=g.source,n=q.targets,h=a.getGroups(),j={},c={},m={},b,o,r,d,s,l,k;m={};c={};if(h){d=Ext.Array.toMap(h)}for(b in n){o=n[b];if(!o.isDisabled()){s=false;r=o.getGroups();if(!d&&!r){s=true}else{if(d&&r){for(k=0,l=r.length;k1){return this.cancel(a)}}},0,0,0,0,0,0,[Ext.event.gesture,"SingleTouch"],0));(Ext.cmd.derive("Ext.event.gesture.DoubleTap",Ext.event.gesture.SingleTouch,{priority:300,config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:["singletap","doubletap"],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(d){var c=this,b=Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,d),a;if(b!==false){c.isStarted=true;a=c.lastStartPoint=d.changedTouches[0].point;c.startPoint=c.startPoint||a;c.startTime=d.time;clearTimeout(c.singleTapTimer)}return b},onTouchMove:function(c){var b=this,a=c.changedTouches[0].point,d=Ext.Element.getViewportScale(),g=Math.round(Math.abs(a.getDistanceTo(b.lastStartPoint)*d));if(g>=b.getMoveDistance()){return b.cancel(c)}},onTouchEnd:function(i){var k=this,h=k.getMaxDuration(),b=i.time,j=i.target,l=k.lastTapTime,d=k.lastTarget,m=i.changedTouches[0].point,g,c,a;k.lastTapTime=b;k.lastTarget=j;if(l){g=b-l;if(g<=h){c=Ext.Element.getViewportScale();a=Math.round(Math.abs(m.getDistanceTo(k.startPoint)*c));if(a<=k.getTapDistance()){if(j!==d){return k.cancel(i)}k.lastTarget=null;k.lastTapTime=0;k.fire("doubletap",i,{touch:i.changedTouches[0],duration:g});return Ext.event.gesture.SingleTouch.prototype.onTouchEnd.call(this,i)}}}if(b-k.startTime>h){k.fire("singletap",i);k.reset()}else{k.setSingleTapTimer(i)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fire("singletap",b);a.reset()},a.getMaxDuration())},reset:function(){var a=this;clearTimeout(a.singleTapTimer);a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null;return Ext.event.gesture.SingleTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,"DoubleTap"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)}));(Ext.cmd.derive("Ext.event.gesture.Drag",Ext.event.gesture.SingleTouch,{priority:100,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:["dragstart","drag","dragend","dragcancel"],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0},longpress:false}},onTouchStart:function(c){var b=this,a=Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,c);if(a!==false){b.startTime=c.time;b.startPoint=c.changedTouches[0].point}return a},tryDragStart:function(c){var b=this,a=c.changedTouches[0].point,g=b.getMinDistance(),d=Ext.Element.getViewportScale(),h=Math.round(Math.abs(a.getDistanceTo(b.startPoint)*d));if(h>=g){b.doDragStart(c)}},doDragStart:function(h,b){var c=this,i=h.changedTouches[0],a=i.point,g=c.info,d;if(b){d=Ext.now();c.startTime=d;c.startPoint=a;g.longpress=true}else{d=h.time}c.isStarted=true;c.previousPoint=c.lastPoint=a;c.resetInfo("x",h,i);c.resetInfo("y",h,i);g.time=d;c.fire("dragstart",h,g)},onTouchMove:function(c){var b=this,d,a;if(!b.startPoint){return}if(!b.isStarted){b.tryDragStart(c)}if(!b.isStarted){return}d=c.changedTouches[0];a=d.point;if(b.lastPoint){b.previousPoint=b.lastPoint}b.lastPoint=a;b.lastMoveEvent=c;b.updateInfo("x",c,d);b.updateInfo("y",c,d);b.info.time=c.time;b.fire("drag",c,b.info)},onAxisDragEnd:function(a,c){var b=c.time-c.previousTime[a];if(b>0){c.flick.velocity[a]=(c[a]-c.previous[a])/b}},resetInfo:function(c,h,g){var i=this,j=i.lastPoint[c],a=i.startPoint[c],k=j-a,d=c.toUpperCase(),b=i.info;b.touch=g;b.delta[c]=k;b.absDelta[c]=Math.abs(k);b.previousTime[c]=i.startTime;b.previous[c]=a;b[c]=j;b.direction[c]=0;b["start"+d]=i.startPoint[c];b["previous"+d]=b.previous[c];b["page"+d]=b[c];b["delta"+d]=b.delta[c];b["absDelta"+d]=b.absDelta[c];b["previousDelta"+d]=0;b.startTime=i.startTime},updateInfo:function(d,j,i){var k=this,m=k.lastPoint[d],g=k.previousPoint[d],a=k.startPoint[d],n=m-a,c=k.info,l=c.direction,h=d.toUpperCase(),b=c.previous[d];c.touch=i;c.delta[d]=n;c.absDelta[d]=Math.abs(n);if(m!==b&&m!==c[d]){c.previous[d]=c[d];c.previousTime[d]=c.time}c[d]=m;if(m>g){l[d]=1}else{if(mk.getMaxDuration())){return k.cancel(j)}if(k.isHorizontal&&b>k.getMaxOffset()){k.isHorizontal=false}if(k.isVertical&&c>k.getMaxOffset()){k.isVertical=false}if(!k.isVertical||!k.isHorizontal){o=k.getMinDistance();if(k.isHorizontal&&cg){m.isVertical=false}if(m.isHorizontal&&b>g){m.isHorizontal=false}if(m.isVertical&&m.isHorizontal){if(b>c){m.isHorizontal=false}else{m.isVertical=false}}if(m.isHorizontal){o=(i<0)?"left":"right";a=i}else{if(m.isVertical){o=(h<0)?"up":"down";a=h}}o=m.direction||(m.direction=o);if(o==="up"){a=h*-1}else{if(o==="left"){a=i*-1}}m.distance=a;if(!a){return m.cancel(l)}if(!m.isStarted){if((o==="right"&&m.startX>r)||(o==="down"&&m.startY>r)||(o==="left"&&(p-m.startX)>r)||(o==="up"&&(k-m.startY)>r)){return m.cancel(l)}m.isStarted=true;m.startTime=l.time;m.fire("edgeswipestart",l,{touch:j,direction:o,distance:a,duration:d})}else{m.fire("edgeswipe",l,{touch:j,direction:o,distance:a,duration:d})}},onTouchEnd:function(c){var a=this,b;if(a.onTouchMove(c)!==false){b=c.time-a.startTime;a.fire("edgeswipeend",c,{touch:c.changedTouches[0],direction:a.direction,distance:a.distance,duration:b})}return this.reset()},onCancel:function(a){this.fire("edgeswipecancel",a,{touch:a.changedTouches[0]},true)},reset:function(){var a=this;a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null;return Ext.event.gesture.Swipe.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,"EdgeSwipe"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)}));(Ext.cmd.derive("Ext.event.gesture.LongPress",Ext.event.gesture.SingleTouch,{priority:400,config:{moveDistance:8,minDuration:1000},handledEvents:["longpress","taphold"],onTouchStart:function(c){var b=this,a=Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,c);if(a!==false){b.startPoint=c.changedTouches[0].point;b.setLongPressTimer(c)}return a},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(a.fireLongPress,a.getMinDuration(),a,[b])},onTouchMove:function(c){var b=this,a=c.changedTouches[0].point,d=Ext.Element.getViewportScale(),g=Math.round(Math.abs(a.getDistanceTo(b.startPoint)*d));if(g>=b.getMoveDistance()){return b.cancel(c)}},reset:function(){var a=this;clearTimeout(a.timer);a.timer=a.startPoint=null;return Ext.event.gesture.SingleTouch.prototype.reset.call(this)},fireLongPress:function(c){var a=this,b={touch:c.changedTouches[0],duration:a.getMinDuration(),startDrag:a.startDrag};this.fire("taphold",c,b);this.fire("longpress",c,b);this.reset()},startDrag:function(){var b=Ext.event.gesture.Drag.instance,a=this.parentEvent;b.doDragStart(a,true);Ext.event.publisher.Gesture.instance.claimRecognizer(b,a)}},0,0,0,0,0,0,[Ext.event.gesture,"LongPress"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)}));(Ext.cmd.derive("Ext.event.gesture.MultiTouch",Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:false,isMultiTouch:true,onTouchStart:function(g){var b=this,a=b.requiredTouchesCount,d=g.touches,c=d.length;if(c===a){b.isTracking=true}else{if(c>a){return b.cancel(g)}}},reset:function(){this.isTracking=false;return Ext.event.gesture.Recognizer.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,"MultiTouch"],0));(Ext.cmd.derive("Ext.event.gesture.Pinch",Ext.event.gesture.MultiTouch,{priority:700,handledEvents:["pinchstart","pinch","pinchend","pinchcancel"],startDistance:0,lastTouches:null,onTouchMove:function(d){var b=this,c,g,a,h;if(b.isTracking){c=d.touches;g=c[0].point;a=c[1].point;h=g.getDistanceTo(a);if(h===0){return}if(!b.isStarted){b.isStarted=true;b.startDistance=h;b.fire("pinchstart",d,{touches:c,distance:h,scale:1})}else{b.fire("pinch",d,{touches:c,distance:h,scale:h/b.startDistance})}}},onTouchEnd:function(a){if(this.isStarted){this.fire("pinchend",a)}return Ext.event.gesture.MultiTouch.prototype.onTouchEnd.call(this,a)},onCancel:function(a){this.fire("pinchcancel",a,null,true)},reset:function(){this.lastTouches=null;this.startDistance=0;return Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,"Pinch"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.pinch)}));(Ext.cmd.derive("Ext.event.gesture.Rotate",Ext.event.gesture.MultiTouch,{priority:800,handledEvents:["rotatestart","rotate","rotateend","rotatecancel"],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(i){var j=this,h,b,d,g,c,a,k,l;if(j.isTracking){h=i.touches;b=j.lastAngle;d=h[0].point;g=h[1].point;c=d.getAngleTo(g);if(b!==null){l=Math.abs(b-c);a=c+360;k=c-360;if(Math.abs(a-b)=b.getMoveDistance()){return b.cancel(c)}},onTouchEnd:function(a){this.fire("tap",a,{touch:a.changedTouches[0]});return Ext.event.gesture.SingleTouch.prototype.onTouchEnd.call(this,a)},onCancel:function(a){this.fire("tapcancel",a,{touch:a.changedTouches[0]},true)},reset:function(){this.startPoint=null;return Ext.event.gesture.SingleTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,"Tap"],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)}));(Ext.cmd.derive("Ext.event.publisher.Focus",Ext.event.publisher.Dom,{type:"focus",handledEvents:["focusenter","focusleave","focusmove"],handledDomEvents:["focusin","focusout"],publishDelegatedDomEvent:function(c){var b=this,a=c.relatedTarget;if(c.type==="focusout"){if(a==null){b.processFocusIn(c,c.target,document.body)}}else{if(a==null||!a.tagName){a=document.body}b.processFocusIn(c,a,c.target)}},processFocusIn:function(j,k,c){var l=this,m,b,i=[],a,h,g,d;g=Ext.fly(k);d=Ext.fly(c);if((g&&g.isFocusSuspended())||(d&&d.isFocusSuspended())){return}for(b=k,m=Ext.dom.Element.getCommonAncestor(c,k,true);b&&b!==m;b=b.parentNode){i.push(b)}if(i.length){a=l.createSyntheticEvent("focusleave",j,k,c);l.publish(a,i);if(a.stopped){return}}i.length=0;for(b=c;b&&b!==m;b=b.parentNode){i.push(b)}h=l.createSyntheticEvent("focusenter",j,c,k);if(i.length){l.publish(h,i);if(h.stopped){return}}i=l.getPropagatingTargets(m);if(i.length){a=l.createSyntheticEvent("focusmove",j,c,k);l.publish(a,i);if(a.stopped){return}}Ext.GlobalEvents.fireEvent("focus",{event:h,toElement:c,fromElement:k})},createSyntheticEvent:function(b,e,d,a){var c=new Ext.event.Event(e);c.type=b;c.relatedTarget=a;c.target=d;return c}},0,0,0,0,0,0,[Ext.event.publisher,"Focus"],function(b){var a;b.instance=new b();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:["focus","blur"],publishDelegatedDomEvent:function(d){var c=this,g;c.callSuper([d]);g=d.target!==window&&d.target!==document;if(d.type==="blur"){if(!g){if(d.explicitOriginalTarget===b.previousActiveElement){if(d.target===window){clearTimeout(a);a=0;c.processFocusIn(d,b.previousActiveElement,document.body);b.previousActiveElement=null}}}else{a=setTimeout(function(){a=0;c.processFocusIn(d,d.target,document.body);b.previousActiveElement=null},0)}b.previousActiveElement=g?d.target:null}else{clearTimeout(a);a=0;c.processFocusIn(d,b.previousActiveElement||document.body,g?d.target:document.body)}}})}}));(Ext.cmd.derive("Ext.fx.State",Ext.Base,{isAnimatable:{"background-color":true,"background-image":true,"background-position":true,"border-bottom-color":true,"border-bottom-width":true,"border-color":true,"border-left-color":true,"border-left-width":true,"border-right-color":true,"border-right-width":true,"border-spacing":true,"border-top-color":true,"border-top-width":true,"border-width":true,bottom:true,color:true,crop:true,"font-size":true,"font-weight":true,height:true,left:true,"letter-spacing":true,"line-height":true,"margin-bottom":true,"margin-left":true,"margin-right":true,"margin-top":true,"max-height":true,"max-width":true,"min-height":true,"min-width":true,opacity:true,"outline-color":true,"outline-offset":true,"outline-width":true,"padding-bottom":true,"padding-left":true,"padding-right":true,"padding-top":true,right:true,"text-indent":true,"text-shadow":true,top:true,"vertical-align":true,visibility:true,width:true,"word-spacing":true,"z-index":true,zoom:true,transform:true},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(c,h){var g=this.data,a=Ext.isArray(h),b=g.transform,e,d;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof c=="string"){switch(c){case"translate":if(a){e=h.length;if(e==0){break}b.translateX=h[0];if(e==1){break}b.translateY=h[1];if(e==2){break}b.translateZ=h[2]}else{b.translateX=h}break;case"rotate":if(a){e=h.length;if(e==0){break}b.rotateX=h[0];if(e==1){break}b.rotateY=h[1];if(e==2){break}b.rotateZ=h[2]}else{b.rotate=h}break;case"scale":if(a){e=h.length;if(e==0){break}b.scaleX=h[0];if(e==1){break}b.scaleY=h[1];if(e==2){break}b.scaleZ=h[2]}else{b.scaleX=h;b.scaleY=h}break;case"skew":if(a){e=h.length;if(e==0){break}b.skewX=h[0];if(e==1){break}b.skewY=h[1]}else{b.skewX=h}break;default:b[c]=h}}else{for(d in c){if(c.hasOwnProperty(d)){h=c[d];this.setTransform(d,h)}}}},set:function(a,d){var c=this.data,b;if(typeof a!="string"){for(b in a){d=a[b];if(b==="transform"){this.setTransform(d)}else{c[b]=d}}}else{if(a==="transform"){this.setTransform(d)}else{c[a]=d}}return this},unset:function(a){var b=this.data;if(b.hasOwnProperty(a)){delete b[a]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,"State"],0));(Ext.cmd.derive("Ext.fx.animation.Abstract",Ext.Evented,{isAnimation:true,config:{name:"",element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:"linear",iteration:1,direction:"normal",delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:false,replacePrevious:true},STATE_FROM:"0%",STATE_TO:"100%",DIRECTION_UP:"up",DIRECTION_DOWN:"down",DIRECTION_LEFT:"left",DIRECTION_RIGHT:"right",stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(b,a){if(b){return Ext.factory(b,Ext.fx.State,a)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(a){var c=this.stateNameRegex,b;for(b in a){if(c.test(b)){this.setState(b,a[b])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent("stop",this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(b,d){var a=this.getStates(),c;c=Ext.factory(d,Ext.fx.State,a[b]);if(c){a[b]=c}return this},getState:function(a){return this.getStates()[a]},getData:function(){var h=this,m=h.getStates(),e={},i=h.getBefore(),c=h.getAfter(),j=m[h.STATE_FROM],k=m[h.STATE_TO],l=j.getData(),g=k.getData(),d,b,a;for(b in m){if(m.hasOwnProperty(b)){a=m[b];d=a.getData();e[b]=d}}return{before:i?i.getData():{},after:c?c.getData():{},states:e,from:l,to:g,duration:h.getDuration(),iteration:h.getIteration(),direction:h.getDirection(),easing:h.getEasing(),delay:h.getDelay(),onEnd:h.getOnEnd(),onBeforeEnd:h.getOnBeforeEnd(),onBeforeStart:h.getOnBeforeStart(),scope:h.getScope(),preserveEndState:h.getPreserveEndState(),replacePrevious:h.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,"Abstract"],0));(Ext.cmd.derive("Ext.fx.animation.Slide",Ext.fx.animation.Abstract,{alternateClassName:"Ext.fx.animation.SlideIn",config:{direction:"left",out:false,offset:0,easing:"auto",containerBox:"auto",elementBox:"auto",isElementBoxFit:true,useCssTransform:true},reverseDirectionMap:{up:"down",down:"up",left:"right",right:"left"},applyEasing:function(a){if(a==="auto"){return"ease-"+((this.getOut())?"in":"out")}return a},getContainerBox:function(){var a=this._containerBox;if(a==="auto"){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==="auto"){a=this.getElement().getBox()}return a},getData:function(){var q=this.getElementBox(),c=this.getContainerBox(),h=q?q:c,o=this.getFrom(),p=this.getTo(),g=this.getOut(),e=this.getOffset(),n=this.getDirection(),b=this.getUseCssTransform(),i=this.getReverse(),d=0,a=0,m,k,l,j;if(i){n=this.reverseDirectionMap[n]}switch(n){case this.DIRECTION_UP:if(g){a=c.top-h.top-h.height-e}else{a=c.bottom-h.bottom+h.height+e}break;case this.DIRECTION_DOWN:if(g){a=c.bottom-h.bottom+h.height+e}else{a=c.top-h.height-h.top-e}break;case this.DIRECTION_RIGHT:if(g){d=c.right-h.right+h.width+e}else{d=c.left-h.left-h.width-e}break;case this.DIRECTION_LEFT:if(g){d=c.left-h.left-h.width-e}else{d=c.right-h.right+h.width+e}break}m=(g)?0:d;k=(g)?0:a;if(b){o.setTransform({translateX:m,translateY:k})}else{o.set("left",m);o.set("top",k)}l=(g)?d:0;j=(g)?a:0;if(b){p.setTransform({translateX:l,translateY:j})}else{p.set("left",l);p.set("top",j)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,["animation.slide","animation.slideIn"],0,[Ext.fx.animation,"Slide",Ext.fx.animation,"SlideIn"],0));(Ext.cmd.derive("Ext.fx.animation.SlideOut",Ext.fx.animation.Slide,{config:{out:true}},0,0,0,0,["animation.slideOut"],0,[Ext.fx.animation,"SlideOut"],0));(Ext.cmd.derive("Ext.fx.animation.Fade",Ext.fx.animation.Abstract,{alternateClassName:"Ext.fx.animation.FadeIn",config:{out:false,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(a){var c=this.getTo(),b=this.getFrom();if(a){b.set("opacity",1);c.set("opacity",0)}else{b.set("opacity",0);c.set("opacity",1)}}},0,0,0,0,["animation.fade","animation.fadeIn"],0,[Ext.fx.animation,"Fade",Ext.fx.animation,"FadeIn"],0));(Ext.cmd.derive("Ext.fx.animation.FadeOut",Ext.fx.animation.Fade,{config:{out:true,before:{}}},0,0,0,0,["animation.fadeOut"],0,[Ext.fx.animation,"FadeOut"],0));(Ext.cmd.derive("Ext.fx.animation.Flip",Ext.fx.animation.Abstract,{config:{easing:"ease-in",direction:"right",half:false,out:null},getData:function(){var h=this,j=h.getFrom(),k=h.getTo(),i=h.getDirection(),b=h.getOut(),n=h.getHalf(),c=n?90:180,e=1,a=1,m=0,l=0,g=0,d=0;if(b){a=0.8}else{e=0.8}switch(i){case this.DIRECTION_UP:if(b){g=c}else{m=-c}break;case this.DIRECTION_DOWN:if(b){g=-c}else{m=c}break;case this.DIRECTION_RIGHT:if(b){d=c}else{l=-c}break;case this.DIRECTION_LEFT:if(b){d=-c}else{l=c}break}j.setTransform({rotateX:m,rotateY:l,scale:e});k.setTransform({rotateX:g,rotateY:d,scale:a});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},0,0,0,0,["animation.flip"],0,[Ext.fx.animation,"Flip"],0));(Ext.cmd.derive("Ext.fx.animation.Pop",Ext.fx.animation.Abstract,{alternateClassName:"Ext.fx.animation.PopIn",config:{out:false,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var c=this.getTo(),b=this.getFrom(),a=this.getOut();if(a){b.set("opacity",1);b.setTransform({scale:1});c.set("opacity",0);c.setTransform({scale:0})}else{b.set("opacity",0);b.setTransform({scale:0});c.set("opacity",1);c.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,["animation.pop","animation.popIn"],0,[Ext.fx.animation,"Pop",Ext.fx.animation,"PopIn"],0));(Ext.cmd.derive("Ext.fx.animation.PopOut",Ext.fx.animation.Pop,{config:{out:true,before:{}}},0,0,0,0,["animation.popOut"],0,[Ext.fx.animation,"PopOut"],0));(Ext.cmd.derive("Ext.fx.Animation",Ext.Base,{constructor:function(b){var a=Ext.fx.animation.Abstract,c;if(typeof b=="string"){c=b;b={}}else{if(b&&b.type){c=b.type}}if(c){a=Ext.ClassManager.getByAlias("animation."+c)}return Ext.factory(b,a)}},1,0,0,0,0,0,[Ext.fx,"Animation"],0));(Ext.cmd.derive("Ext.fx.runner.Css",Ext.Evented,{prefixedProperties:{transform:true,"transform-origin":true,perspective:true,"transform-style":true,transition:true,"transition-property":true,"transition-duration":true,"transition-timing-function":true,"transition-delay":true,animation:true,"animation-name":true,"animation-duration":true,"animation-iteration-count":true,"animation-direction":true,"animation-timing-function":true,"animation-delay":true},lengthProperties:{top:true,right:true,bottom:true,left:true,width:true,height:true,"max-height":true,"max-width":true,"min-height":true,"min-width":true,"margin-bottom":true,"margin-left":true,"margin-right":true,"margin-top":true,"padding-bottom":true,"padding-left":true,"padding-right":true,"padding-top":true,"border-bottom-width":true,"border-left-width":true,"border-right-width":true,"border-spacing":true,"border-top-width":true,"border-width":true,"outline-width":true,"letter-spacing":true,"line-height":true,"text-indent":true,"word-spacing":true,"font-size":true,translate:true,translateX:true,translateY:true,translateZ:true,translate3d:true,x:true,y:true},durationProperties:{"transition-duration":true,"transition-delay":true,"animation-duration":true,"animation-delay":true},angleProperties:{rotate:true,rotateX:true,rotateY:true,rotateZ:true,skew:true,skewX:true,skewY:true},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:"px",DEFAULT_UNIT_ANGLE:"deg",DEFAULT_UNIT_DURATION:"ms",customProperties:{x:true,y:true},formattedNameCache:{x:"left",y:"top"},transformMethods3d:["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","scaleX","scaleY","scaleZ"],transformMethodsNo3d:["translateX","translateY","rotate","skewX","skewY","scaleX","scaleY"],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement("style");a.type="text/css";(document.head||document.getElementsByTagName("head")[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var h=this.getStyleSheet(),l=this.ruleStylesCache,k=h.cssRules,c,e,i,b,d,a,g;for(c in j){e=j[c];i=l[c];if(i===undefined){d=k.length;h.insertRule(c+"{}",d);i=l[c]=k.item(d).style}b=i.$cache;if(!b){b=i.$cache={}}for(a in e){g=this.formatValue(e[a],a);a=this.formatName(a);if(b[a]!==g){b[a]=g;if(g===null){i.removeProperty(a)}else{i.setProperty(a,g,"important")}}}}return this},applyStyles:function(d){var h,c,g,b,a,e;for(h in d){if(d.hasOwnProperty(h)){this.activeElement=c=document.getElementById(h);if(!c){continue}g=c.style;b=d[h];for(a in b){if(b.hasOwnProperty(a)){e=this.formatValue(b[a],a);a=this.formatName(a);if(e===null){g.removeProperty(a)}else{g.setProperty(a,e,"important")}}}}}this.activeElement=null;return this},formatName:function(b){var a=this.formattedNameCache,c=a[b];if(!c){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){c=this.vendorPrefix+b}else{c=b}a[b]=c}return c},formatValue:function(l,b){var h=typeof l,n=this.DEFAULT_UNIT_LENGTH,j=this.customProperties[b],e,a,d,g,c,m,k;if(l===null){return""}if(h==="string"){if(this.lengthProperties[b]){k=l.match(this.lengthUnitRegex)[1];if(k.length>0){}else{l=l+n;if(j){l=this.getCustomValue(l,b)}return l}}return l}else{if(h==="number"){if(l==0){return"0"}if(this.lengthProperties[b]){l=l+n;if(j){l=this.getCustomValue(l,b)}return l}if(this.angleProperties[b]){return l+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[b]){return l+this.DEFAULT_UNIT_DURATION}}else{if(b==="transform"){e=this.transformMethods;c=[];for(d=0,g=e.length;d0)?m.join(", "):"none"}}}}return l},getCustomValue:function(d,a){var b=Ext.fly(this.activeElement),c=d.match(this.lengthUnitRegex)[1];if(a==="x"){d=b.translateXY(parseInt(d,10)).x}else{if(a==="y"){d=b.translateXY(null,parseInt(d,10)).y}}return d+c}},1,0,0,0,0,0,[Ext.fx.runner,"Css"],0));(Ext.cmd.derive("Ext.fx.runner.CssTransition",Ext.fx.runner.Css,{alternateClassName:"Ext.Animator",singleton:true,listenersAttached:false,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=true;Ext.getWin().on("transitionend","onTransitionEnd",this)},onTransitionEnd:function(b){var a=b.target,c=a.id;if(c&&this.runningAnimationsData.hasOwnProperty(c)){this.refreshRunningAnimationsData(Ext.get(a),[b.browserEvent.propertyName])}},getElementId:function(a){return a.getId?a.getId():a.id},onAnimationEnd:function(h,g,d,k,o){var c=this.getElementId(h),l=this.runningAnimationsData[c],p={},n={},b,j,e,m,a;d.un("stop","onAnimationStop",this);if(l){b=l.nameMap}p[c]=n;if(g.onBeforeEnd){g.onBeforeEnd.call(g.scope||this,h,k)}d.fireEvent("animationbeforeend",d,h,k);this.fireEvent("animationbeforeend",this,d,h,k);if(o||(!k&&!g.preserveEndState)){j=g.toPropertyNames;for(e=0,m=j.length;e0},refreshRunningAnimationsData:function(d,l,u,q){var h=this.getElementId(d),r=this.runningAnimationsData,a=r[h];if(!a){return}var n=a.nameMap,t=a.nameList,b=a.sessions,g,k,e,v,m,c,s,p,o=false;u=Boolean(u);q=Boolean(q);if(!b){return this}g=b.length;if(g===0){return this}if(q){a.nameMap={};t.length=0;for(m=0;m");e.close();c.testElement=d=e.createElement("div");d.style.setProperty("position","absolute","important");e.body.appendChild(d);c.testElementComputedStyle=e.defaultView.getComputedStyle(d)}return d},getCssStyleValue:function(b,e){var d=this.getTestElement(),a=this.testElementComputedStyle,c=d.style;c.setProperty(b,e);if(Ext.browser.is.Firefox){d.offsetHeight}e=a.getPropertyValue(b);c.removeProperty(b);return e},run:function(K){var q=this,v=Ext.Function,x=q.lengthProperties,w={},h={},I={},C={},l,a,m,L,z,J,u,p,d,c,b,G,F,y,M,H,A,t,o,g,k,r,D,s,n,e,E,B;if(!q.listenersAttached){q.attachListeners()}K=Ext.Array.from(K);for(G=0,y=K.length;G0){q.refreshRunningAnimationsData(l,Ext.Array.merge(J,u),true,I.replacePrevious)}n=c.nameMap;e=c.nameList;A={};for(F=0;F0){J=Ext.Array.difference(e,J);u=Ext.Array.merge(J,u);b["transition-property"]=J}w[a]=b;h[a]=Ext.apply({},L);C[a]={"transition-property":u,"transition-duration":I.duration,"transition-timing-function":I.easing,"transition-delay":I.delay};M.startTime=Date.now()}q.activeElement=null;d=q.$className;q.applyStyles(w);p=function(i){if(i.data===d&&i.source===window){window.removeEventListener("message",p,false);q.applyStyles(h)}};v.requestAnimationFrame(function(){if(Ext.isIE){q.applyStyles(C);v.requestAnimationFrame(function(){window.addEventListener("message",p,false);window.postMessage(d,"*")})}else{Ext.merge(h,C);window.addEventListener("message",p,false);window.postMessage(d,"*")}})},onAnimationStop:function(d){var g=this.runningAnimationsData,j,a,h,b,c,e;for(j in g){if(g.hasOwnProperty(j)){a=g[j];h=a.sessions;for(b=0,c=h.length;b0?1:-1,h=this.getMinMomentumValue(),d=this.getMaxMomentumValue(),c=(g==1)?d:h,i=this.lastValue,j,b;if(e===0){return this.getStartValue()}if(!this.isOutOfBound){j=a.getValue();b=a.getVelocity();if(Math.abs(b)=h&&j<=d){return j}this.isOutOfBound=true;k.setStartTime(Ext.Date.now()).setStartVelocity(b).setStartValue(c)}j=k.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(i!==null){if((g==1&&ji)){this.isBouncingBack=true}}}else{if(Math.round(j)==c){this.isEnded=true}}}this.lastValue=j;return j}},0,0,0,0,0,0,[Ext.fx.easing,"BoundMomentum"],0));(Ext.cmd.derive("Ext.fx.easing.EaseIn",Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var c=Ext.Date.now()-this.getStartTime(),h=this.getDuration(),b=this.getStartValue(),a=this.getEndValue(),i=this.distance,e=c/h,d=Math.pow(e,this.getExponent()),g=b+(d*i);if(c>=h){this.isEnded=true;return a}return g}},0,0,0,0,["easing.ease-in"],0,[Ext.fx.easing,"EaseIn"],0));(Ext.cmd.derive("Ext.fx.easing.EaseOut",Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var g=Ext.Date.now()-this.getStartTime(),d=this.getDuration(),b=this.getStartValue(),i=this.getEndValue(),a=this.distance,c=g/d,h=1-c,e=1-Math.pow(h,this.getExponent()),j=b+(e*a);if(g>=d){this.isEnded=true;return i}return j}},0,0,0,0,["easing.ease-out"],0,[Ext.fx.easing,"EaseOut"],0));(Ext.cmd.derive("Ext.fx.easing.Easing",Ext.Base,{constructor:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,"easing")}},1,0,0,0,0,0,[Ext.fx.easing,"Easing"],0));(Ext.cmd.derive("Ext.fx.layout.card.Abstract",Ext.Evented,{isAnimation:true,config:{direction:"left",duration:null,reverse:null,layout:null},updateLayout:function(a){if(a){this.enable()}},enable:function(){var a=this.getLayout();if(a){a.on("beforeactiveitemchange","onActiveItemChange",this)}},disable:function(){var a=this.getLayout();if(this.isAnimating){this.stopAnimation()}if(a){a.un("beforeactiveitemchange","onActiveItemChange",this)}},onActiveItemChange:Ext.emptyFn,destroy:function(){var b=this,a=b.getLayout();if(b.isAnimating){b.stopAnimation()}if(a){a.un("beforeactiveitemchange","onActiveItemChange",this)}b.setLayout(null);if(b.observableId){b.fireEvent("destroy",this)}Ext.Evented.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.fx.layout.card,"Abstract"],0));(Ext.cmd.derive("Ext.fx.layout.card.Style",Ext.fx.layout.card.Abstract,{config:{inAnimation:{before:{visibility:null},preserveEndState:false,replacePrevious:true},outAnimation:{preserveEndState:false,replacePrevious:true}},constructor:function(b){var c,a;Ext.fx.layout.card.Abstract.prototype.constructor.call(this,b);this.endAnimationCounter=0;c=this.getInAnimation();a=this.getOutAnimation();c.on("animationend","incrementEnd",this);a.on("animationend","incrementEnd",this)},updateDirection:function(a){this.getInAnimation().setDirection(a);this.getOutAnimation().setDirection(a)},updateDuration:function(a){this.getInAnimation().setDuration(a);this.getOutAnimation().setDuration(a)},updateReverse:function(a){this.getInAnimation().setReverse(a);this.getOutAnimation().setReverse(a)},incrementEnd:function(){this.endAnimationCounter++;if(this.endAnimationCounter>1){this.endAnimationCounter=0;this.fireEvent("animationend",this)}},applyInAnimation:function(b,a){return Ext.factory(b,Ext.fx.Animation,a)},applyOutAnimation:function(b,a){return Ext.factory(b,Ext.fx.Animation,a)},updateInAnimation:function(a){a.setScope(this)},updateOutAnimation:function(a){a.setScope(this)},onActiveItemChange:function(g,d,i,b){var h,a,e,c;if(d&&i&&i.isPainted()){e=this.getInAnimation();c=this.getOutAnimation();h=d.renderElement;a=i.renderElement;e.setElement(h);c.setElement(a);c.setOnEnd(function(){b.resume()});h.dom.style.setProperty("visibility","hidden","important");d.show();Ext.Animator.run([c,e]);b.pause()}},destroy:function(){Ext.destroy(this.getInAnimation(),this.getOutAnimation());Ext.fx.layout.card.Abstract.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.fx.layout.card,"Style"],0));(Ext.cmd.derive("Ext.fx.layout.card.Slide",Ext.fx.layout.card.Style,{config:{inAnimation:{type:"slide",easing:"ease-out"},outAnimation:{type:"slide",easing:"ease-out",out:true}},updateReverse:function(a){this.getInAnimation().setReverse(a);this.getOutAnimation().setReverse(a)}},0,0,0,0,["fx.layout.card.slide"],0,[Ext.fx.layout.card,"Slide"],0));(Ext.cmd.derive("Ext.fx.layout.card.Cover",Ext.fx.layout.card.Style,{config:{reverse:null,inAnimation:{before:{"z-index":100},after:{"z-index":0},type:"slide",easing:"ease-out"},outAnimation:{easing:"ease-out",from:{opacity:0.99},to:{opacity:1},out:true}},updateReverse:function(a){this.getInAnimation().setReverse(a);this.getOutAnimation().setReverse(a)}},0,0,0,0,["fx.layout.card.cover"],0,[Ext.fx.layout.card,"Cover"],0));(Ext.cmd.derive("Ext.fx.layout.card.Reveal",Ext.fx.layout.card.Style,{config:{inAnimation:{easing:"ease-out",from:{opacity:0.99},to:{opacity:1}},outAnimation:{before:{"z-index":100},after:{"z-index":0},type:"slide",easing:"ease-out",out:true}},updateReverse:function(a){this.getInAnimation().setReverse(a);this.getOutAnimation().setReverse(a)}},0,0,0,0,["fx.layout.card.reveal"],0,[Ext.fx.layout.card,"Reveal"],0));(Ext.cmd.derive("Ext.fx.layout.card.Fade",Ext.fx.layout.card.Style,{config:{reverse:null,inAnimation:{type:"fade",easing:"ease-out"},outAnimation:{type:"fade",easing:"ease-out",out:true}}},0,0,0,0,["fx.layout.card.fade"],0,[Ext.fx.layout.card,"Fade"],0));(Ext.cmd.derive("Ext.fx.layout.card.Flip",Ext.fx.layout.card.Style,{config:{duration:500,inAnimation:{type:"flip",half:true,easing:"ease-out",before:{"backface-visibility":"hidden"},after:{"backface-visibility":null}},outAnimation:{type:"flip",half:true,easing:"ease-in",before:{"backface-visibility":"hidden"},after:{"backface-visibility":null},out:true}},onActiveItemChange:function(d,b,e,a){var c=b.element.getParent();c.addCls("x-layout-card-perspective");this.on("animationend",function(){c.removeCls("x-layout-card-perspective")},this,{single:true});Ext.fx.layout.card.Style.prototype.onActiveItemChange.apply(this,arguments)},updateDuration:function(d){var c=d/2,b=this.getInAnimation(),a=this.getOutAnimation();b.setDelay(c);b.setDuration(c);a.setDuration(c)}},0,0,0,0,["fx.layout.card.flip"],0,[Ext.fx.layout.card,"Flip"],0));(Ext.cmd.derive("Ext.fx.layout.card.Pop",Ext.fx.layout.card.Style,{config:{duration:500,inAnimation:{type:"pop",easing:"ease-out"},outAnimation:{type:"pop",easing:"ease-in",out:true}},updateDuration:function(d){var c=d/2,b=this.getInAnimation(),a=this.getOutAnimation();b.setDelay(c);b.setDuration(c);a.setDuration(c)}},0,0,0,0,["fx.layout.card.pop"],0,[Ext.fx.layout.card,"Pop"],0));(Ext.cmd.derive("Ext.fx.layout.card.Scroll",Ext.fx.layout.card.Abstract,{config:{duration:150},constructor:function(a){this.initConfig(a)},getEasing:function(){var a=this.easing;if(!a){this.easing=a=new Ext.fx.easing.Linear()}return a},updateDuration:function(a){this.getEasing().setDuration(a)},onActiveItemChange:function(a,d,m,c){var j=this.getDirection(),h=this.getEasing(),l,e,b,i,k,g;if(d&&m){if(this.isAnimating){this.stopAnimation()}d.setWidth("100%");d.setHeight("100%");l=this.getLayout().container.innerElement;i=l.getWidth();k=l.getHeight();e=d.renderElement;b=m.renderElement;this.oldItem=m;this.newItem=d;this.containerElement=l;this.currentEventController=c;this.isReverse=g=this.getReverse();d.show();if(j=="right"){j="left";this.isReverse=g=!g}else{if(j=="down"){j="up";this.isReverse=g=!g}}if(j=="left"){if(g){h.setConfig({startValue:i,endValue:0});l.dom.scrollLeft=i;b.setLeft(i)}else{h.setConfig({startValue:0,endValue:i});e.setLeft(i)}}else{if(g){h.setConfig({startValue:k,endValue:0});l.dom.scrollTop=k;b.setTop(k)}else{h.setConfig({startValue:0,endValue:k});e.setTop(k)}}this.startAnimation();c.pause()}},startAnimation:function(){this.isAnimating=true;this.getEasing().setStartTime(Date.now());Ext.AnimationQueue.start(this.doAnimationFrame,this)},doAnimationFrame:function(){var d=this.getEasing(),c=this.getDirection(),a="scrollTop",b;if(c=="left"||c=="right"){a="scrollLeft"}if(d.isEnded){this.stopAnimation()}else{b=d.getValue();this.containerElement.dom[a]=b}},stopAnimation:function(){var c=this,e=c.getDirection(),a="setTop",d=c.oldItem,b=c.newItem;if(e=="left"||e=="right"){a="setLeft"}c.currentEventController.resume();if(c.isReverse&&d&&d.renderElement&&d.renderElement.dom){d.renderElement[a](null)}else{if(b&&b.renderElement&&b.renderElement.dom){b.renderElement[a](null)}}Ext.AnimationQueue.stop(this.doAnimationFrame,this);c.isAnimating=false;c.fireEvent("animationend",c)}},1,0,0,0,["fx.layout.card.scroll"],0,[Ext.fx.layout.card,"Scroll"],0));(Ext.cmd.derive("Ext.fx.layout.Card",Ext.Base,{constructor:function(b){var a=Ext.fx.layout.card.Abstract,c;if(!b){return null}if(typeof b=="string"){c=b;b={}}else{if(b.type){c=b.type}}b.elementBox=false;if(c){a=Ext.ClassManager.getByAlias("fx.layout.card."+c)}return Ext.factory(b,a)}},1,0,0,0,0,0,[Ext.fx.layout,"Card"],0));(Ext.cmd.derive("Ext.fx.layout.card.Cube",Ext.fx.layout.card.Style,{config:{reverse:null,inAnimation:{type:"cube"},outAnimation:{type:"cube",out:true}}},0,0,0,0,["fx.layout.card.cube"],0,[Ext.fx.layout.card,"Cube"],0));(Ext.cmd.derive("Ext.fx.layout.card.ScrollCover",Ext.fx.layout.card.Scroll,{onActiveItemChange:function(c,h,d,e){var i,a,k,j,b,g;this.currentEventController=e;this.inItem=h;if(h&&d){i=this.getLayout().container.innerElement;a=i.getSize();k=this.calculateXY(a);j={easing:this.getEasing(),duration:this.getDuration()};h.renderElement.dom.style.setProperty("visibility","hidden","important");b=h.setTranslatable(true).getTranslatable();g=d.setTranslatable(true).getTranslatable();g.translate({x:0,y:0});b.translate({x:k.left,y:k.top});b.getWrapper().dom.style.setProperty("z-index","100","important");h.show();b.on({animationstart:"onInAnimationStart",animationend:"onInAnimationEnd",scope:this});b.translateAnimated({x:0,y:0},j);e.pause()}},onInAnimationStart:function(){this.inItem.renderElement.dom.style.removeProperty("visibility")},onInAnimationEnd:function(){this.inItem.getTranslatable().getWrapper().dom.style.removeProperty("z-index");this.currentEventController.resume()}},0,0,0,0,["fx.layout.card.scrollcover"],0,[Ext.fx.layout.card,"ScrollCover"],0));(Ext.cmd.derive("Ext.fx.layout.card.ScrollReveal",Ext.fx.layout.card.Scroll,{onActiveItemChange:function(c,h,d,e){var i,a,k,j,g,b;this.currentEventController=e;this.outItem=d;this.inItem=h;if(h&&d){i=this.getLayout().container.innerElement;a=i.getSize();k=this.calculateXY(a);j={easing:this.getEasing(),duration:this.getDuration()};g=d.setTranslatable(true).getTranslatable();b=h.setTranslatable(true).getTranslatable();g.getWrapper().dom.style.setProperty("z-index","100","important");g.translate({x:0,y:0});b.translate({x:0,y:0});h.show();g.on({animationend:"onOutAnimationEnd",scope:this});g.translateAnimated({x:k.x,y:k.y},j);e.pause()}},onOutAnimationEnd:function(){this.outItem.getTranslatable().getWrapper().dom.style.removeProperty("z-index");this.currentEventController.resume()}},0,0,0,0,["fx.layout.card.scrollreveal"],0,[Ext.fx.layout.card,"ScrollReveal"],0));(Ext.cmd.derive("Ext.fx.runner.CssAnimation",Ext.fx.runner.Css,{constructor:function(){this.runningAnimationsMap={};this.elementEndStates={};this.animationElementMap={};this.keyframesRulesCache={};this.uniqueId=0;return Ext.fx.runner.Css.prototype.constructor.apply(this,arguments)},attachListeners:function(){this.listenersAttached=true;Ext.getWin().on({animationstart:"onAnimationStart",animationend:"onAnimationEnd",scope:this})},onAnimationStart:function(h){var b=h.browserEvent.animationName,a=this.animationElementMap[b],g=this.runningAnimationsMap[a][b],i=this.elementEndStates,c=i[a],d={};if(c){delete i[a];d[a]=c;this.applyStyles(d)}if(g.before){d[a]=g.before;this.applyStyles(d)}},onAnimationEnd:function(j){var c=j.target,b=j.browserEvent.animationName,d=this.animationElementMap,a=d[b],g=this.runningAnimationsMap,i=g[a],h=i[b];if(h.onBeforeEnd){h.onBeforeEnd.call(h.scope||this,c)}if(h.onEnd){h.onEnd.call(h.scope||this,c)}delete d[b];delete i[b];this.removeKeyframesRule(b)},generateAnimationId:function(){return"animation-"+(++this.uniqueId)},run:function(g){var t={},u=this.elementEndStates,p=this.animationElementMap,s=this.runningAnimationsMap,b,d,j,l,q,h,r,v,n,m,c,e,a,k,o;if(!this.listenersAttached){this.attachListeners()}g=Ext.Array.from(g);for(q=0,h=g.length;q1)},updateRowCls:function(b,a){this.rowElement.replaceCls(a,b)},updateSelected:function(c,e){var d=this,a=d.selectedCls,b=d.getToolElement();Ext.list.AbstractTreeItem.prototype.updateSelected.call(this,c,e);d.element.toggleCls(a,c);if(b){b.toggleCls(a,c)}},updateSelectedParent:function(b){var c=this;c.element.toggleCls(c.selectedParentCls,b);var a=c.getToolElement();if(a){a.toggleCls(c.selectedCls,b)}},updateText:function(a){this.textElement.update(a)},privates:{doNodeUpdate:function(a){Ext.list.AbstractTreeItem.prototype.doNodeUpdate.call(this,a);this.setRowCls(a&&a.data[this.rowClsProperty])},doIconCls:function(c,b,a){if(a){c.removeCls(a)}if(b){c.addCls(b)}},syncIndent:function(){var c=this,a=c.getIndent(),b=c.getNode(),d;if(b){d=b.data.depth-1;c.wrapElement.dom.style.marginLeft=(d*a)+"px"}},updateExpandCls:function(){if(!this.updatingExpandCls){var e=this,c=e.getExpandable(),d=e.element,b=e.getExpanded(),a=e.expandedCls,g=e.collapsedCls;e.updatingExpandCls=true;d.toggleCls(e.expandableCls,c);if(c){d.toggleCls(a,b);d.toggleCls(g,!b)}else{d.removeCls([a,g])}e.updatingExpandCls=false}},updateIndent:function(b,a){this.syncIndent();Ext.list.AbstractTreeItem.prototype.updateIndent.call(this,b,a)}}},1,["treelistitem"],["widget","treelistitem"],{widget:true,treelistitem:true},["widget.treelistitem"],0,[Ext.list,"TreeItem"],0));Ext.define("Ext.overrides.list.TreeItem",{override:"Ext.list.TreeItem",config:{floated:null},setFloated:function(e){var d=this,b=d.element,g=d.placeholder,c,a;if(d.treeItemFloated!==e){if(e){g=b.clone(false,true);g.id+="-placeholder";d.placeholder=Ext.get(g);d.wasExpanded=d.getExpanded();d.setExpanded(true);b.addCls(d.floatedCls);b.dom.parentNode.insertBefore(g,b.dom);d.floater=d.createFloater()}else{if(g){a=d.wasExpanded;c=d.getNode();d.setExpanded(a);if(!a&&c.isExpanded()){d.preventAnimation=true;c.collapse();d.preventAnimation=false}d.floater.remove(d,false);b.removeCls(d.floatedCls);g.dom.parentNode.insertBefore(b.dom,g.dom);g.destroy();d.floater.destroy();d.placeholder=d.floater=null}}d.treeItemFloated=e}},getFloated:function(){return this.treeItemFloated},runAnimation:function(a){return this.itemContainer.addAnimation(a)},stopAnimation:function(a){a.jumpToEnd()},privates:{createFloater:function(){var d=this,a=d.getOwner(),b=d.up("treelist"),c,e=d.getToolElement();d.floater=c=new Ext.container.Container({cls:b.self.prototype.element.cls+" "+b.uiPrefix+b.getUi()+" x-treelist-floater",floating:true,width:Ext.isIE8?200:(b.expandedWidth-e.getWidth()),shadow:false,renderTo:Ext.getBody(),listeners:{element:"el",click:function(g){return a.onClick(g)}}});c.add(d);c.show();c.el.alignTo(e,"tr?");return c}}});(Ext.cmd.derive("Ext.list.Tree",Ext.Widget,{expanderFirstCls:"x-treelist-expander-first",expanderOnlyCls:"x-treelist-expander-only",highlightPathCls:"x-treelist-highlight-path",microCls:"x-treelist-micro",uiPrefix:"x-treelist-",element:{reference:"element",cls:"x-treelist x-unselectable",listeners:{click:"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseover:"onMouseOver"},children:[{reference:"toolsElement",cls:"x-treelist-toolstrip",listeners:{click:"onToolStripClick",mouseover:"onToolStripMouseOver"}}]},cachedConfig:{animation:{duration:500,easing:"ease"},expanderFirst:true,expanderOnly:true},config:{defaults:{xtype:"treelistitem"},highlightPath:null,iconSize:null,indent:null,micro:false,overItem:null,selection:null,selectOnExpander:false,singleExpand:null,store:null,ui:null},twoWayBindable:{selection:1},publishes:{selection:1},defaultBindProperty:"store",constructor:function(a){var b=this;Ext.Widget.prototype.constructor.call(this,a);b.publishState("selection",b.getSelection());if(!Ext.isIE8){b.el.on({resize:b.onElResize,buffer:300,scope:b})}},beforeLayout:function(){this.syncIconSize()},destroy:function(){var a=this;a.destroying=true;a.unfloatAll();a.activeFloater=null;a.setSelection(null);a.setStore(null);Ext.Widget.prototype.destroy.call(this)},updateOverItem:function(g,a){var e={},d=2,h,b;for(h=g;h;h=this.getItem(b.parentNode)){b=h.getNode();e[b.internalId]=true;h.setOver(d);d=1}if(a){for(h=a;h;h=this.getItem(b.parentNode)){b=h.getNode();if(e[b.internalId]){break}h.setOver(0)}}},applyMicro:function(a){return Boolean(a)},applySelection:function(c,a){var b=this.getStore();if(!b){c=null}if(c&&c.get("selectable")===false){c=a}return c},updateSelection:function(b,a){var d=this,c;if(!d.destroying){c=d.getItem(a);if(c){c.setSelected(false)}c=d.getItem(b);if(c){c.setSelected(true)}d.fireEvent("selectionchange",d,b)}},applyStore:function(a){return a&&Ext.StoreManager.lookup(a,"tree")},updateStore:function(b,d){var c=this,a;if(d){if(!d.destroyed){if(d.getAutoDestroy()){d.destroy()}else{c.storeListeners.destroy()}}c.removeRoot();c.storeListeners=null}if(b){c.storeListeners=b.on({destroyable:true,scope:c,filterchange:"onFilterChange",nodeappend:"onNodeAppend",nodecollapse:"onNodeCollapse",nodeexpand:"onNodeExpand",nodeinsert:"onNodeInsert",noderemove:"onNodeRemove",rootchange:"onRootChange",update:"onNodeUpdate"});a=b.getRoot();if(a){c.createRootItem(a)}}if(!c.destroying){c.updateLayout()}},updateExpanderFirst:function(a){this.element.toggleCls(this.expanderFirstCls,a)},updateExpanderOnly:function(a){this.element.toggleCls(this.expanderOnlyCls,!a)},updateHighlightPath:function(a){this.element.toggleCls(this.highlightPathCls,a)},onElResize:function(b,a){if(!this.getMicro()){this.expandedWidth=a.width}},updateMicro:function(a){var b=this;if(!a){b.unfloatAll();b.activeFloater=null}b.element.toggleCls(b.microCls,a)},updateUi:function(d,a){var c=this.element,b=this.uiPrefix;if(a){c.removeCls(b+a)}if(d){c.addCls(b+d)}delete this.iconSize;this.syncIconSize()},getItem:function(b){var c=this.itemMap,a;if(b&&c){a=c[b.internalId]}return a||null},getItemConfig:function(b,a){return Ext.apply({parentItem:a.isRootListItem?null:a,owner:this,node:b,indent:this.getIndent()},this.getDefaults())},privates:{checkForOutsideClick:function(b){var a=this.activeFloater;if(!a.element.contains(b.target)){this.unfloatAll()}},collapsingForExpand:false,createItem:function(g,b){var e=this,d=Ext.create(e.getItemConfig(g,b)),h=e.toolsElement,a,c;if(b.isRootListItem){a=d.getToolElement();if(a){c=e.findVisiblePreviousSibling(g);if(!c){h.insertFirst(a)}else{c=e.getItem(c);a.insertAfter(c.getToolElement())}a.dom.setAttribute("data-recordId",g.internalId);a.isTool=true}}e.itemMap[g.internalId]=d;return d},createRootItem:function(a){var c=this,b;c.itemMap={};c.rootItem=b=new Ext.list.RootTreeItem({indent:c.getIndent(),node:a,owner:c});c.element.appendChild(b.element);c.itemMap[a.internalId]=b},findVisiblePreviousSibling:function(b){var a=b.previousSibling;while(a){if(a.data.visible){return a}a=a.previousSibling}return null},floatItem:function(d,b){var c=this,a;if(d.getFloated()){return}if(c.toolMouseListeners){c.toolMouseListeners.destroy();c.floaterMouseListeners.destroy()}c.unfloatAll();c.activeFloater=a=d;c.floatedByHover=b;d.setFloated(true);if(b){c.toolMouseListeners=d.getToolElement().monitorMouseLeave(300,c.checkForMouseLeave,c);c.floaterMouseListeners=(d.floater||d).el.monitorMouseLeave(300,c.checkForMouseLeave,c)}else{Ext.on("mousedown","checkForOutsideClick",c)}},onClick:function(b){var a=b.getTarget("[data-recordId]"),c;if(a){c=a.getAttribute("data-recordId");a=this.itemMap[c];if(a){a.onClick(b)}}},onMouseEnter:function(a){this.onMouseOver(a)},onMouseLeave:function(){this.setOverItem(null)},onMouseOver:function(b){var a=Ext.Component.fromElement(b.getTarget());this.setOverItem(a&&a.isTreeListItem&&a)},checkForMouseLeave:function(c){var b=this.activeFloater,a=c.getRelatedTarget();if(b){if(a!==b.getToolElement().dom&&!b.element.contains(a)){this.unfloatAll()}}},onFilterChange:function(a){this.onRootChange(a.getRoot())},onNodeAppend:function(a,c){if(a){var b=this.itemMap[a.internalId];if(b){b.nodeInsert(c,null)}}},onNodeCollapse:function(b){var a=this.itemMap[b.internalId];if(a){a.nodeCollapse(b,this.collapsingForExpand)}},onNodeExpand:function(g){var e=this,d=e.itemMap[g.internalId],h,b,c,a,j;if(d){if(!d.isRootItem&&e.getSingleExpand()){e.collapsingForExpand=true;a=(d.getParentItem()||e.rootItem).getNode();h=a.childNodes;for(c=0,b=h.length;c"){this.isParentReference=true;b=b.substring(0,a)}return b}}},0,0,0,0,0,0,[Ext.mixin,"Container"],0));(Ext.cmd.derive("Ext.mixin.Hookable",Ext.Mixin,{mixinConfig:{id:"hookable"},bindHook:function(a,d,i,c,b){if(!i){i=d}var g=a[d],e,h;if(g&&g.hasOwnProperty("$binding")){h=g.$binding;if(h.bindingMethod===i&&h.bindingScope===this){return this}}a[d]=e=function(){var l=e.$binding,k=l.bindingScope,j=Array.prototype.slice.call(arguments);j.push(arguments);if(b){j.push.apply(j,b)}if(!l.preventDefault&&k[l.bindingMethod].apply(k,j)!==false){return l.boundFn.apply(this,arguments)}};e.$binding={preventDefault:!!c,boundFn:g,bindingMethod:i,bindingScope:this};return this},unbindHook:function(a,b,h){if(!h){h=b}var d=a[b],e=d.$binding,c,g;while(e){c=e.boundFn;if(e.bindingMethod===h&&e.bindingScope===this){if(g){g.boundFn=c}else{a[b]=c}return this}g=e;e=c.$binding}return this}},0,0,0,0,0,0,[Ext.mixin,"Hookable"],0));Ext.define("Ext.mixin.Mashup",function(a){return{extend:"Ext.Mixin",mixinConfig:{id:"mashup",extended:function(c,b){a.process(b)}},statics:{process:function(e){var c=e.prototype,g=c.requiredScripts,b=e._classHooks,d=b.onCreated;if(g){delete c.requiredScripts;b.onCreated=function(){var i=this,h=Ext.Array.slice(arguments);Ext.Loader.loadScripts({url:g,cache:true,onLoad:function(){b.onCreated=d;b.onCreated.call(i,h)}})}}}},onClassMixedIn:function(b){a.process(b)}}});(Ext.cmd.derive("Ext.mixin.Responsive",Ext.Mixin,function(a){return{mixinConfig:{id:"responsive",after:{destroy:"destroy"}},config:{responsiveConfig:{$value:undefined,merge:function(h,c,g,e){if(!h){return c}var b=c?Ext.Object.chain(c):{},d;for(d in h){if(!e||!(d in b)){b[d]={fn:null,config:h[d]}}}return b}},responsiveFormulas:{$value:0,merge:function(e,b,d,c){return this.mergeNew(e,b,d,c)}}},destroy:function(){a.unregister(this)},privates:{statics:{active:false,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=true;a.updateContext();Ext.on("resize",a.onResize,a)},deactivate:function(){a.active=false;Ext.un("resize",a.onResize,a)},notify:function(){var d=a.all,c=a.context,b=Ext.GlobalEvents,g=a.timer,e;if(g){a.timer=null;Ext.asapCancel(g)}a.updateContext();Ext.suspendLayouts();b.fireEvent("beforeresponsiveupdate",c);for(e in d){d[e].setupResponsiveContext()}b.fireEvent("beginresponsiveupdate",c);for(e in d){d[e].updateResponsiveState()}b.fireEvent("responsiveupdate",c);Ext.resumeLayouts(true)},onResize:function(){if(!a.timer){a.timer=Ext.asap(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(b,i,g){var h=i&&i[g],e=b.config,c,d;if(h){d=b.self.getConfigurator();c=d.configs[g];e[g]=c.merge(h,e[g],b)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),b=e.getViewportHeight(),c=a.context;c.width=d;c.height=b;c.tall=dh){e=h;h=c;c=e}for(d=c;d<=h;d++){a.push(b.getAt(d))}this.doMultiSelect(a,j)},select:function(c,e,b){var d=this,a;if(d.getDisableSelection()){return}if(typeof c==="number"){c=[d.getStore().getAt(c)]}if(!c){return}if(d.getMode()=="SINGLE"&&c){a=c.length?c[0]:c;d.doSingleSelect(a,b)}else{d.doMultiSelect(c,e,b)}},doSingleSelect:function(a,b){var d=this,c=d.selected;if(d.getDisableSelection()){return}if(d.isSelected(a)){return}if(c.getCount()>0){d.deselect(d.getLastSelected(),b)}c.add(a);d.setLastSelected(a);d.onItemSelect(a,b);d.setLastFocused(a);if(!b){d.fireSelectionChange([a])}},doMultiSelect:function(a,k,j){if(a===null||this.getDisableSelection()){return}a=!Ext.isArray(a)?[a]:a;var g=this,b=g.selected,e=a.length,h=false,c=0,d;if(!k&&b.getCount()>0){h=true;g.deselect(g.getSelections(),true)}for(;c0},refreshSelection:function(){var b=this,a=b.getSelections();b.deselectAll(true);if(a.length){b.select(a,false,true)}},onSelectionStoreRemove:function(c,b){var h=this,e=h.selected,g=b.length,j,a,d;if(h.getDisableSelection()){return}for(d=0;d',''," ({childCount} children)","",''," ({depth} deep)","",'',", {type}: {[this.time(values.sum)]} msec (","avg={[this.time(values.sum / parent.count)]}",")","",""].join(""),{time:function(m){return Math.round(m*100)/100}})}var l=this.getData(k);l.name=this.name;l.pure.type="Pure";l.total.type="Total";l.times=[l.pure,l.total];return d.apply(l)},getData:function(k){var l=this;return{count:l.count,childCount:l.childCount,depth:l.maxDepth,pure:g(l.count,l.childCount,k,l.pure),total:g(l.count,l.childCount,k,l.total)}},enter:function(){var k=this,l={accum:k,leave:e,childTime:0,parent:c};++k.depth;if(k.maxDepth0){k=i==="this"?this:typeof i==="string"?this[i]:typeof i==="number"?arguments[i]:null;if(k){n=k.id}if(n!=null){console.log(h+" for "+n+": "+m+"ms")}else{console.log(h+" for unknown: "+m+"ms")}if(console.trace){console.trace()}}return j}})(g,b[g])}Ext.override(a,d)}}}}},1,0,0,0,0,0,[Ext.perf,"Monitor",Ext,"Perf"],0));(Ext.cmd.derive("Ext.plugin.Abstract",Ext.Base,{alternateClassName:"Ext.AbstractPlugin",isPlugin:true,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},getCmp:function(){return this.cmp},setCmp:function(a){this.cmp=a},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(b,e,a){var d=e.alias,c=b.prototype;if(d&&!e.ptype){if(Ext.isArray(d)){d=d[0]}c.ptype=d.split("plugin.")[1]}},resolveListenerScope:function(d){var c=this,b=c.getCmp(),a;if(b){a=b.resolveSatelliteListenerScope(c,d)}return a||c.mixins.observable.resolveListenerScope.call(c,d)}},1,0,0,0,0,0,[Ext.plugin,"Abstract",Ext,"AbstractPlugin"],0));Ext.define("Ext.overrides.plugin.Abstract",{override:"Ext.plugin.Abstract",$configStrict:false,$configPrefixed:false,disabled:false,getState:null,applyState:null,enable:function(){this.disabled=false},disable:function(){this.disabled=true}});(Ext.cmd.derive("Ext.plugin.LazyItems",Ext.plugin.Abstract,{init:function(a){Ext.plugin.Abstract.prototype.init.apply(this,arguments);if(this.items){if(this.eagerInstantiation){this.items=a.prepareItems(this.items)}}a.beforeRender=Ext.Function.createInterceptor(a.beforeRender,this.beforeComponentRender,this)},beforeComponentRender:function(){this.cmp.add(this.items);this.cmp.beforeComponentRender=null}},0,0,0,0,["plugin.lazyitems"],0,[Ext.plugin,"LazyItems"],0));(Ext.cmd.derive("Ext.plugin.MouseEnter",Ext.plugin.Abstract,{element:"el",init:function(a){var c=this,b={mouseover:c.onMouseOver,scope:c,destroyable:true};if(c.leaveHandler){b.mouseout=c.onMouseOut}if(typeof c.element==="string"){b.element=c.element;c.mouseListener=a.on(b)}else{c.mouseListener=c.element.on(b)}},onMouseOver:function(c){var b=this,a=c.getTarget(b.delegate);if(a&&a!==c.getRelatedTarget(b.delegate)){Ext.callback(b.handler,null,[c,a],0,b.cmp,b.scope)}},onMouseOut:function(c){var b=this,a=c.getRelatedTarget(b.delegate);if(a&&a!==c.getTarget(b.delegate)){Ext.callback(b.leaveHandler,null,[c,a],0,b.cmp,b.scope)}},destroy:function(){Ext.plugin.Abstract.prototype.destroy.call(this);Ext.destroy(this.mouseListener)}},0,0,0,0,["plugin.mouseenter"],0,[Ext.plugin,"MouseEnter"],0));(Ext.cmd.derive("Ext.sparkline.Shape",Ext.Base,{constructor:function(d,e,b,a){var c=this;c.target=d;c.id=e;c.type=b;c.args=a},append:function(){this.target.appendShape(this);return this}},1,0,0,0,0,0,[Ext.sparkline,"Shape"],0));(Ext.cmd.derive("Ext.sparkline.CanvasBase",Ext.Base,{shapeCount:0,_pxregex:/(\d+)(px)?\s*$/i,constructor:function(a){this.owner=a;this.rtl=this.owner.getInherited().rtl},setWidth:function(a){this.pixelWidth=a},setHeight:function(a){this.pixelHeight=a},drawLine:function(c,e,b,d,g,a){return this.drawShape([[c,e],[b,d]],g,a)},drawShape:function(c,b,d,a){return this._genShape("Shape",[c,b,d,a])},drawCircle:function(c,g,b,d,e,a){return this._genShape("Circle",[c,g,b,d,e,a])},drawPieSlice:function(b,h,a,d,c,e,g){return this._genShape("PieSlice",[b,h,a,d,c,e,g])},drawRect:function(b,g,c,a,d,e){return this._genShape("Rect",[b,g,c,a,d,e])},getElement:function(){return this.el},getLastShapeId:function(){return this.lastShapeId},reset:function(){},_genShape:function(b,a){var c=this.shapeCount++;a.unshift(c);return new Ext.sparkline.Shape(this,c,b,a)},appendShape:function(a){},replaceWithShape:function(b,a){},insertAfterShape:function(b,a){},removeShapeId:function(a){},getShapeAt:function(a,b){},render:function(){}},1,0,0,0,0,0,[Ext.sparkline,"CanvasBase"],0));(Ext.cmd.derive("Ext.sparkline.CanvasCanvas",Ext.sparkline.CanvasBase,{statics:{contextOverrides:(function(){var a=window.devicePixelRatio||1;return{moveTo:function(b,c){if(this.rtl){b=this.canvas.width-b-1}this.$moveTo(b*a,c*a)},lineTo:function(b,c){if(this.rtl){b=this.canvas.width-b-1}this.$lineTo(b*a,c*a)},arc:function(c,h,b,g,d,e){if(this.rtl){c=this.canvas.width-c-1}this.$arc(c*a,h*a,b*a,g,d,e)},clearRect:function(c,e,d,b){if(this.rtl){c=this.canvas.width-c-d}this.$clearRect(c*a,e*a,d*a,b*a)}}})()},setWidth:function(a){Ext.sparkline.CanvasBase.prototype.setWidth.apply(this,arguments);this.owner.element.dom.width=a*(window.devicePixelRatio||1)},setHeight:function(a){Ext.sparkline.CanvasBase.prototype.setHeight.apply(this,arguments);this.owner.element.dom.height=a*(window.devicePixelRatio||1)},onOwnerUpdate:function(){var a=this;a.el=a.owner.element;a.interact=!a.owner.initialConfig.disableInteraction;a.shapes={};a.shapeseq=[];a.currentTargetShapeId=a.lastShapeId=null},_getContext:function(d,g,a){var c=this.el.dom.getContext("2d"),e=Ext.sparkline.CanvasCanvas.contextOverrides,b;if(!this.context){for(b in e){c["$"+b]=c[b]}Ext.apply(c,e);c.rtl=this.rtl;this.context=c}if(d!=null){c.strokeStyle=d}c.lineWidth=a||1;if(g!=null){c.fillStyle=g}return c},reset:function(){var a=this._getContext();a.clearRect(0,0,this.pixelWidth,this.pixelHeight);this.shapes={};this.shapeseq=[];this.currentTargetShapeId=this.lastShapeId=null},_drawShape:function(h,k,j,b,g){var c=this._getContext(j,b,g),a=this.rtl?-0.5:0.5,e,d;c.beginPath();c.moveTo(k[0][0]+a,k[0][1]+0.5);for(e=1,d=k.length;e'].join("")},_drawCircle:function(d,i,g,c,h,a,b){var e=c*2,k,j;i-=c;g-=c;k=h==null?' stroked="false" ':' strokeWeight="'+b+'px" strokeColor="'+h+'" ';j=a==null?' filled="false"':' fillColor="'+a+'" filled="true" ';return[''].join("")},_drawPieSlice:function(j,o,m,i,k,e,n,d){var l,c=this.pixelWidth,p=this.pixelHeight,b,a,h,g,r=n==null?' stroked="false" ':' strokeWeight="1px" strokeColor="'+n+'" ',q=d==null?' filled="false"':' fillColor="'+d+'" filled="true" ';if(k===e){return""}if((e-k)===(2*Math.PI)){k=0;e=(2*Math.PI)}b=o+Math.round(Math.cos(k)*i);a=m+Math.round(Math.sin(k)*i);h=o+Math.round(Math.cos(e)*i);g=m+Math.round(Math.sin(e)*i);if(b===h&&a===g){if((e-k)'].join("")},_drawRect:function(e,b,h,c,a,d,g){return this._drawShape(e,[[b,h],[b,h+a],[b+c,h+a],[b+c,h],[b,h]],d,g)},reset:function(){Ext.fly(this.group).empty()},appendShape:function(a){this.prerender.push(this["_draw"+a.type].apply(this,a.args));this.lastShapeId=a.id;return a.id},replaceWithShape:function(d,a){var c=this.el.getById("jqsshape"+d,true),b=this["_draw"+a.type].apply(this,a.args);c.outerHTML=b},replaceWithShapes:function(b,a){var e=this.el.getById("jqsshape"+b[0],true),d="",g=a.length,c;for(c=0;c=360){e-=360}}return[e,o,c]},getHSV:function(){var j=this,a=j.r/255,i=j.g/255,k=j.b/255,l=Math.max(a,i,k),d=Math.min(a,i,k),c=l-d,e,n=0,m=l;if(d!=l){n=m?c/m:0;if(a===l){e=60*(i-k)/c}else{if(i===l){e=60*(k-a)/c+120}else{e=60*(a-i)/c+240}}if(e<0){e+=360}if(e>=360){e-=360}}return[e,n,m]},setHSL:function(i,g,e){var j=this,d=Math.abs,k,b,a;i=(i%360+360)%360;g=g>1?1:g<0?0:g;e=e>1?1:e<0?0:e;if(g===0||i===null){e*=255;j.setRGB(e,e,e)}else{i/=60;k=g*(1-d(2*e-1));b=k*(1-d(i%2-1));a=e-k/2;a*=255;k*=255;b*=255;switch(Math.floor(i)){case 0:j.setRGB(k+a,b+a,a);break;case 1:j.setRGB(b+a,k+a,a);break;case 2:j.setRGB(a,k+a,b+a);break;case 3:j.setRGB(a,b+a,k+a);break;case 4:j.setRGB(b+a,a,k+a);break;case 5:j.setRGB(k+a,a,b+a);break}}return j},setHSV:function(g,e,d){var i=this,j,b,a;g=(g%360+360)%360;e=e>1?1:e<0?0:e;d=d>1?1:d<0?0:d;if(e===0||g===null){d*=255;i.setRGB(d,d,d)}else{g/=60;j=d*e;b=j*(1-Math.abs(g%2-1));a=d-j;a*=255;j*=255;b*=255;switch(Math.floor(g)){case 0:i.setRGB(j+a,b+a,a);break;case 1:i.setRGB(b+a,j+a,a);break;case 2:i.setRGB(a,j+a,b+a);break;case 3:i.setRGB(a,b+a,j+a);break;case 4:i.setRGB(b+a,a,j+a);break;case 5:i.setRGB(j+a,a,b+a);break}}return i},createLighter:function(b){var a=this.clone();a.lighten(b);return a},lighten:function(b){if(!b&&b!==0){b=this.lightnessFactor}var a=this.getHSL();this.setHSL(a[0],a[1],Ext.Number.constrain(a[2]+b,0,1))},createDarker:function(b){var a=this.clone();a.darken(b);return a},darken:function(a){if(!a&&a!==0){a=this.lightnessFactor}return this.lighten(-a)},toString:function(){var h=this,c=Math.round;if(h.a===1){var e=c(h.r).toString(16),d=c(h.g).toString(16),a=c(h.b).toString(16);e=(e.length===1)?"0"+e:e;d=(d.length===1)?"0"+d:d;a=(a.length===1)?"0"+a:a;return["#",e,d,a].join("")}else{return"rgba("+[c(h.r),c(h.g),c(h.b),h.a===0?0:h.a.toFixed(15)].join(", ")+")"}},toHex:function(c){var h=this.r,e=this.g,a=this.b,d=a|(e<<8)|(h<<16);return"#"+("000000"+d.toString(16)).slice(-6)},setFromString:function(k){var e,i,h,c,d=1,j=parseInt;if(k===Ext.util.Color.NONE){this.r=this.g=this.b=this.a=0;return this}if((k.length===4||k.length===7)&&k.substr(0,1)==="#"){e=k.match(Ext.util.Color.hexRe);if(e){i=j(e[1],16)>>0;h=j(e[2],16)>>0;c=j(e[3],16)>>0;if(k.length===4){i+=(i*16);h+=(h*16);c+=(c*16)}}}else{if((e=k.match(Ext.util.Color.rgbToHexRe))){i=+e[1];h=+e[2];c=+e[3]}else{if((e=k.match(Ext.util.Color.rgbaToHexRe))){i=+e[1];h=+e[2];c=+e[3];d=+e[4]}else{if(Ext.util.Color.ColorList.hasOwnProperty(k.toLowerCase())){return this.setFromString(Ext.util.Color.ColorList[k.toLowerCase()])}}}}if(typeof i==="undefined"){return this}this.r=i;this.g=h;this.b=c;this.a=d;return this}},3,0,0,0,0,0,[Ext.util,"Color",Ext.draw,"Color"],function(){var a=new this();this.addStatics({fly:function(e,c,b,d){switch(arguments.length){case 1:a.setFromString(e);break;case 3:case 4:a.setRGB(e,c,b,d);break;default:return null}return a},ColorList:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},fromHSL:function(d,c,b){return(new this(0,0,0,0)).setHSL(d,c,b)},fromHSV:function(d,c,b){return(new this(0,0,0,0)).setHSL(d,c,b)},fromString:function(b){return(new this(0,0,0,0)).setFromString(b)},create:function(b){if(b instanceof this){return b}else{if(Ext.isArray(b)){return new Ext.util.Color(b[0],b[1],b[2],b[3])}else{if(Ext.isString(b)){return Ext.util.Color.fromString(b)}else{if(arguments.length>2){return new Ext.util.Color(arguments[0],arguments[1],arguments[2],arguments[3])}else{return new Ext.util.Color(0,0,0,0)}}}}}})}));(Ext.cmd.derive("Ext.sparkline.Base",Ext.Gadget,{cachedConfig:{baseCls:"x-sparkline",lineColor:"#157fcc",defaultPixelsPerValue:3,tagValuesAttribute:"values",enableTagOptions:false,enableHighlight:true,highlightColor:null,highlightLighten:0.1,tooltipSkipNull:true,tooltipPrefix:"",tooltipSuffix:"",disableTooltips:false,disableInteraction:false,tipTpl:null},config:{values:null},element:{tag:"canvas",reference:"element",style:{display:"inline-block",verticalAlign:"top"},listeners:{mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},width:0,height:0},defaultBindProperty:"values",redrawQueue:{},inheritableStatics:{sparkLineTipClass:"x-sparkline-tip-target",onClassCreated:function(c){var a=c.prototype.applyConfigChange,e=c.prototype,g=c.getConfigurator().configs,d,b;for(d in g){if(d!=="tipTpl"){b=Ext.Config.get(d).names.apply;if(e[b]){e[b]=Ext.Function.createSequence(e[b],a)}else{e[b]=a}}}}},constructor:function(a){var b=this;b.canvas=Ext.supports.Canvas?new Ext.sparkline.CanvasCanvas(b):new Ext.sparkline.VmlCanvas(b);if(!b.getDisableTooltips()){b.element.cls=Ext.sparkline.Base.sparkLineTipClass}Ext.apply(b,a);Ext.Widget.prototype.constructor.call(this,a)},all:function(d,b,a){var c;for(c=b.length;c--;){if(a&&b[c]===null){continue}if(b[c]!==d){return false}}return true},applyConfigChange:function(b){var a=this;a.redrawQueue[a.getId()]=a;if(!a.redrawTimer){Ext.sparkline.Base.prototype.redrawTimer=Ext.Function.requestAnimationFrame(a.processRedrawQueue)}return b},applyTipTpl:function(a){if(a&&!a.isTemplate){a=new Ext.XTemplate(a)}return a},normalizeValue:function(b){var a;switch(b){case"undefined":b=undefined;break;case"null":b=null;break;case"true":b=true;break;case"false":b=false;break;default:a=parseFloat(b);if(b==a){b=a}}return b},normalizeValues:function(c){var b,a=[];for(b=c.length;b--;){a[b]=this.normalizeValue(c[b])}return a},updateWidth:function(b,a){var c=this,e=c.element.dom,d=c.measurer;Ext.Widget.prototype.updateWidth.call(this,b,a);c.canvas.setWidth(b);c.width=b;if(c.height==null&&d){c.setHeight(parseInt(d.getCachedStyle(e.parentNode,"line-height"),10))}},updateHeight:function(a,c){var b=this;Ext.Widget.prototype.updateHeight.call(this,a,c);b.canvas.setHeight(a);b.height=a},applyValues:function(b,a){if(b&&a&&Ext.Array.equals(b,a)){b=undefined}return b},updateValues:function(a){this.values=a},redraw:function(){var a=this;if(!a.destroyed&&a.getValues()){a.onUpdate();a.canvas.onOwnerUpdate();a.renderGraph()}},onUpdate:Ext.emptyFn,renderGraph:function(){var a=true;if(this.disabled){this.canvas.reset();a=false}return a},onMouseEnter:function(a){this.onMouseMove(a)},onMouseMove:function(a){this.currentPageXY=a.getPoint();this.redraw()},onMouseLeave:function(){var a=this;a.currentPageXY=a.targetX=a.targetY=null;a.redraw();a.hideTip()},updateDisplay:function(){var b=this,a=b.getValues(),e,c,d;if(a&&a.length&&b.currentPageXY&&b.el.getRegion().contains(b.currentPageXY)){e=b.canvas.el.getXY();d=b.getRegion(b.currentPageXY[0]-e[0],b.currentPageXY[1]-e[1]);if(d!=null&&b.isValidRegion(d,a)){if(!b.disableHighlight){b.renderHighlight(d)}c=b.getRegionTooltip(d)}b.fireEvent("sparklineregionchange",b);if(c){b.tooltip.setHtml(c);b.showTip()}}if(!c){b.hideTip()}},getRegion:Ext.emptyFn,getRegionTooltip:function(n){var m=this,e=[],p=m.getTipTpl(),g,h,d,k,b,o,l,c,a;g=m.getRegionFields(n);o=m.tooltipFormatter;if(o){return o(m,m,g)}if(!p){return""}if(!Ext.isArray(g)){g=[g]}h=m.tooltipFormatFieldlist;d=m.tooltipFormatFieldlistKey;if(h&&d){k=[];for(c=g.length;c--;){b=g[c][d];if((a=Ext.Array.indexOf(b,h))!==-1){k[a]=g[c]}}g=k}l=g.length;for(a=0;a")}return""},getRegionFields:Ext.emptyFn,calcHighlightColor:function(a){var c=this,e=c.getHighlightColor(),b=c.getHighlightLighten(),d;if(e){return e}if(b){d=Ext.util.Color.fromString(a);if(d){d.lighten(b);a=d.toHex()}}return a},destroy:function(){delete this.redrawQueue[this.getId()];Ext.Widget.prototype.destroy.call(this)},privates:{hideTip:Ext.privateFn,isValidRegion:function(b,a){return b-1){a=c.split(":");a[0]=a[0].length===0?-Infinity:parseFloat(a[0]);a[1]=a[1].length===0?Infinity:parseFloat(a[1]);a[2]=d[c];b.push(a)}}this.map=d;this.rangelist=b||false},get:function(e){var d=this.rangelist,c,b,a;if((a=this.map[e])!==undefined){return a}if(d){for(c=d.length;c--;){b=d[c];if(b[0]<=e&&b[1]>=e){return b[2]}}}}},1,0,0,0,0,0,[Ext.sparkline,"RangeMap"],0));(Ext.cmd.derive("Ext.sparkline.Bar",Ext.sparkline.BarBase,{config:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:null,nullColor:null,zeroAxis:true,barWidth:4,barSpacing:1,chartRangeMin:null,chartRangeMax:null,chartRangeClip:false,colorMap:null},tipTpl:"● {prefix}{value}{suffix}",remove:function(e,c){var b,d,a=[];for(b=0,d=e.length;b-1;if(v||Ext.isArray(J)){E=true;if(v){J=c[B]=I.normalizeValues(J.split(":"))}J=I.remove(J,null);r=Math.min.apply(Math,J);u=Math.max.apply(Math,J);if(rG){G=u}}}I.stacked=E;I.regionShapes={};I.totalBarWidth=t+q;I.width=(c.length*t)+((c.length-1)*q);if(m){C=k==null?-Infinity:k;F=l==null?Infinity:l}g=[];e=E?[]:g;for(B=0,h=c.length;B0){b[B]+=J}if(D<0&&G>0){if(J<0){a[B]+=Math.abs(J)}else{e[B]+=J}}else{e[B]+=Math.abs(J-(J<0?G:D))}g.push(J)}}}else{J=m?Ext.Number.constrain(c[B],C,F):c[B];J=c[B]=I.normalizeValue(J);if(J!==null){g.push(J)}}}I.max=A=Math.max.apply(Math,g);I.min=x=Math.min.apply(Math,g);I.stackMax=G=E?Math.max.apply(Math,b):A;I.stackMin=D=E?Math.min.apply(Math,g):x;if(k!=null&&(m||kA)){A=l}if(x<=0&&A>=0&&z){o=0}else{if(!z){o=x}else{if(x>0){o=x}else{o=A}}}I.xAxisOffset=o;s=E?(Math.max.apply(Math,e)+Math.max.apply(Math,a)):A-x;I.canvasHeightEf=(z&&x<0)?I.getHeight()-2:I.getHeight()-1;if(x=0)?G:A;n=(d-o)/s*I.getHeight();if(n!==Math.ceil(n)){I.canvasHeightEf-=2;n=Math.ceil(n)}}else{n=I.getHeight()}I.yoffset=n;I.range=s},getRegion:function(b,c){var a=Math.floor(b/this.totalBarWidth);return(a<0||a>=this.values.length)?undefined:a},getRegionFields:function(e){var b=Ext.Array.from(this.values[e]),a=[],d,c;for(c=b.length;c--;){d=b[c];a.push({isNull:d===null,value:d,color:this.calcColor(c,d,e),offset:e})}return a},calcColor:function(j,i,d){var g=this,b=g.colorMapByIndex,h=g.colorMapByValue,a,e,c=g.getZeroColor();if(this.stacked){a=g.getStackedBarColor()}else{a=(i<0)?g.getNegBarColor():g.getBarColor()}if(i===0&&c!=null){a=c}if(h&&(e=h.get(i))){a=e}else{if(b&&b.length>d){a=b[d]}}return Ext.isArray(a)?a[j%a.length]:a},renderRegion:function(l,e){var z=this,n=z.values[l],a=z.xAxisOffset,o=z.range,w=z.stacked,c=z.canvas,q=z.getBarWidth(),j=l*z.totalBarWidth,b=z.canvasHeightEf,k=z.yoffset,h,r,t,s,g,u,d,A,v,m,p=z.getNullColor();n=Ext.isArray(n)?n:[n];d=n.length;A=n[0];s=z.all(n,null);m=z.all(n,a,true);if(s){if(p){t=e?p:z.calcHighlightColor(p,z);h=(k>0)?k-1:k;c.drawRect(j,h,q-1,0,t,t).append()}return}g=k;for(u=0;u0){r=Math.floor(b*((Math.abs(A-a)/o)))+1}else{r=1}if(A5){B=h[0];w=h[1];s=h[2];r=h[3];p=h[4];b=h[5];m=h[6]}else{w=h[0];s=h[1];r=h[2];p=h[3];b=h[4]}}else{h.sort(function(G,i){return G-i});s=E.quartile(h,1);r=E.quartile(h,2);p=E.quartile(h,3);j=p-s;if(v){w=b=null;for(A=0;As-(j*u)){w=h[A]}if(h[A]b){l.drawCircle((m-x)*g+z,e/2,F,a,k).append()}}l.drawRect(Math.round((s-x)*g+z),Math.round(e*0.1),Math.round((p-s)*g),Math.round(e*0.8),E.getBoxLineColor(),E.getBoxFillColor()).append();l.drawLine(Math.round((w-x)*g+z),Math.round(e/2),Math.round((s-x)*g+z),Math.round(e/2),d).append();l.drawLine(Math.round((w-x)*g+z),Math.round(e/4),Math.round((w-x)*g+z),Math.round(e-e/4),c).append();l.drawLine(Math.round((b-x)*g+z),Math.round(e/2),Math.round((p-x)*g+z),Math.round(e/2),d).append();l.drawLine(Math.round((b-x)*g+z),Math.round(e/4),Math.round((b-x)*g+z),Math.round(e-e/4),c).append();l.drawLine(Math.round((r-x)*g+z),Math.round(e*0.1),Math.round((r-x)*g+z),Math.round(e*0.9),E.getMedianColor()).append();if(E.target){y=Math.ceil(E.spotRadius);l.drawLine(Math.round((E.target-x)*g+z),Math.round((e/2)-y),Math.round((E.target-x)*g+z),Math.round((e/2)+y),n).append();l.drawLine(Math.round((E.target-x)*g+z-y),Math.round(e/2),Math.round((E.target-x)*g+z+y),Math.round(e/2),n).append()}if(E.currentPageXY&&E.el.getRegion().contains(E.currentPageXY)){E.currentRegion=null;E.updateDisplay()}l.render()}},0,["sparklinebox"],["widget","sparkline","sparklinebox"],{widget:true,sparkline:true,sparklinebox:true},["widget.sparklinebox"],0,[Ext.sparkline,"Box"],0));(Ext.cmd.derive("Ext.sparkline.Bullet",Ext.sparkline.Base,{config:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:null},tipTpl:["{fieldkey:this.fields} - {value}",{fields:function(a){if(a==="r"){return"Range"}if(a==="p"){return"Performance"}if(a==="t"){return"Target"}}}],applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),this.normalizeValue);this.disabled=!(a&&a.length);this.applyConfigChange();return a},onUpdate:function(){var d=this,b=d.values,c,a,g,e=d.getBase();Ext.sparkline.Base.prototype.onUpdate.apply(this,arguments);g=b.slice();g[0]=g[0]===null?g[2]:g[0];g[1]=b[1]===null?g[2]:g[1];c=Math.min.apply(Math,b);a=Math.max.apply(Math,b);if(e==null){c=c<0?c:0}else{c=e}d.min=c;d.max=a;d.range=a-c;d.shapes={};d.valueShapes={};d.regiondata={};if(!b.length){d.disabled=true}},getRegion:function(a,c){var b=this.canvas.getShapeAt(a,c);return(b!==undefined&&this.shapes[b]!==undefined)?this.shapes[b]:undefined},getRegionFields:function(a){return{fieldkey:a.substr(0,1),value:this.values[a.substr(1)],region:a}},renderHighlight:function(e){var d=this,b=d.valueShapes,a=d.shapes,g=b[e],c;delete a[g];switch(e.substr(0,1)){case"r":c=d.renderRange(e.substr(1),true);break;case"p":c=d.renderPerformance(true);break;case"t":c=d.renderTarget(true);break}b[e]=c.id;a[c.id]=e;d.canvas.replaceWithShape(g,c)},renderRange:function(e,b){var d=this.values[e],c=Math.round(this.getWidth()*((d-this.min)/this.range)),a=this.getRangeColors()[e-2];if(b){a=this.calcHighlightColor(a)}return this.canvas.drawRect(0,0,c-1,this.getHeight()-1,a,a)},renderPerformance:function(b){var d=this.values[1],c=Math.round(this.getWidth()*((d-this.min)/this.range)),a=this.getPerformanceColor();if(b){a=this.calcHighlightColor(a)}return this.canvas.drawRect(0,Math.round(this.getHeight()*0.3),c-1,Math.round(this.getHeight()*0.4)-1,a,a)},renderTarget:function(c){var h=this.values[0],e=this.getTargetWidth(),a=Math.round(this.getWidth()*((h-this.min)/this.range)-(e/2)),g=Math.round(this.getHeight()*0.1),d=this.getHeight()-(g*2),b=this.getTargetColor();if(c){b=this.calcHighlightColor(b)}return this.canvas.drawRect(a,g,e-1,d-1,b,b)},renderGraph:function(){var g=this,h=g.values.length,d=g.canvas,e,c,b=g.shapes||(g.shapes={}),a=g.valueShapes||(g.valueShapes={});if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}for(e=2;ec.max)){c.max=d}if(c.canvas){if(c.getLineHeight()==="auto"){c.setLineHeight(Math.round(c.getHeight()*0.3))}}},getRegion:function(a,b){return Math.floor(a/this.itemWidth)},getRegionFields:function(a){return{isNull:this.values[a]===undefined,value:this.values[a],offset:a}},renderRegion:function(k,e){var m=this,r=m.values,h=m.min,n=m.max,j=m.range,c=m.interval,b=m.canvas,i=m.getHeight(),q=m.getLineHeight(),l=i-q,a,d,g,p,o=m.getThresholdColor();d=Ext.Number.constrain(r[k],h,n);p=k*c;a=Math.round(l-l*((d-h)/j));g=(o&&d=c[b][0]&&a<=c[b][1]){return c[b][2]}}return undefined},getRegionFields:function(a){return{isNull:this.yvalues[a]===null,x:this.xvalues[a],y:this.yvalues[a],color:this.getLineColor(),fillColor:this.getFillColor(),offset:a}},renderHighlight:function(g){var c=this,a=c.canvas,e=c.vertices[g],b=c.getSpotRadius(),h=c.getHighlightSpotColor(),d=c.getHighlightLineColor();if(!e){return}if(b&&h){a.drawCircle(e[0],e[1],b,null,h).append()}if(d){a.drawLine(e[0],c.canvasTop,e[0],c.canvasTop+c.getHeight(),d).append()}},scanValues:function(){var k=this,l=k.values,c=l.length,a=k.xvalues,h=k.yvalues,m=k.yminmax,e,d,j,g,b;for(e=0;ed.maxy){d.maxy=g}}if(a!=null&&(d.chartRangeClip||ad.maxy)){this.maxy=e}if(b!=null&&(d.chartRangeClipX||bd.maxx)){d.maxx=h}},drawNormalRange:function(c,h,g,d,i){var a=this.getNormalRangeMin(),e=this.getNormalRangeMax(),b=h+Math.round(g-(g*((e-this.miny)/i))),j=Math.round((g*(e-a))/i);this.canvas.drawRect(c,b,d,j,undefined,this.normalRangeColor).append()},renderGraph:function(){var q=this,k=q.canvas,M=q.getWidth(),m=q.getHeight(),d=q.vertices,L=q.getSpotRadius(),O=q.regionMap,B,g,C,t,r,s,J,A,F,E,j,w,n,p,h,K,e,D,o,c=q.getValueSpots(),H,u,G,I,N,l=q.getSpotColor(),b=q.getMinSpotColor(),z=q.getMaxSpotColor(),v=q.getNormalRangeMin(),a=q.getDrawNormalOnTop();if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}q.scanValues();q.processRangeOptions();G=q.xvalues;I=q.yvalues;if(!q.yminmax.length||q.yvalues.length<2){return}t=r=0;B=q.maxx-q.minx===0?1:q.maxx-q.minx;g=q.maxy-q.miny===0?1:q.maxy-q.miny;C=q.yvalues.length-1;if(L&&(M<(L*4)||m<(L*4))){L=0}if(L){H=q.getHighlightSpotColor()&&!q.disableInteraction;if(H||b||(l&&I[C]===q.miny)){m-=Math.ceil(L)}if(H||z||(l&&I[C]===q.maxy)){m-=Math.ceil(L);t+=Math.ceil(L)}if(H||((b||z)&&(I[0]===q.miny||I[0]===q.maxy))){r+=Math.ceil(L);M-=Math.ceil(L)}if(H||l||(b||z&&(I[C]===q.miny||I[C]===q.maxy))){M-=Math.ceil(L)}}m--;if(v!=null&&!a){q.drawNormalRange(r,t,m,M,g)}J=[];A=[J];p=h=null;K=I.length;for(N=0;Nq.maxy){E=q.maxy}if(!J.length){J.push([w,t+m])}s=[w,t+Math.round(m-(m*((E-this.miny)/g)))];J.push(s);d.push(s)}}e=[];D=[];o=A.length;for(N=0;N2){J[0]=[J[0][0],J[1][1]]}e.push(J)}}o=D.length;for(N=0;N0){for(b=a.length;b--;){c+=a[b]}}d.total=c;d.radius=Math.floor(Math.min(d.getWidth(),d.getHeight())/2)},getRegion:function(a,d){var b=window.devicePixelRatio||1,c=this.canvas.getShapeAt(a*b,d*b);return(c!=null&&this.shapes[c]!=null)?this.shapes[c]:null},getRegionFields:function(b){var a=this.getSliceColors();return{isNull:this.values[b]==null,value:this.values[b],percent:this.values[b]/this.total*100,color:a[b%a.length],offset:b}},renderHighlight:function(a){this.renderSlice(a,true).append()},renderSlice:function(m,e){var o=this,d=o.canvas,n=o.radius,a=o.getBorderWidth(),j=o.getOffset(),b=2*Math.PI,s=o.values,p=o.total,l=j?(2*Math.PI)*(j/360):0,c,h,k,q,g,r=this.getSliceColors();q=s.length;for(k=0;k0){h=l+(b*(s[k]/p))}if(m===k){g=r[k%r.length];if(e){g=o.calcHighlightColor(g)}return d.drawPieSlice(n,n,n-a,c,h,null,g)}l=h}},renderGraph:function(){var h=this,c=h.canvas,k=h.values,e=h.radius,a=h.getBorderWidth(),g,d,b=h.shapes||(h.shapes={}),j=h.valueShapes||(h.valueShapes={});if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}if(a){c.drawCircle(e,e,Math.floor(e-(a/2)),h.getBorderColor(),null,a).append()}for(d=k.length;d--;){if(k[d]){g=h.renderSlice(d).append();j[d]=g.id;b[g.id]=d}}if(h.currentPageXY&&h.el.getRegion().contains(h.currentPageXY)){h.currentRegion=null;h.updateDisplay()}c.render()}},0,["sparklinepie"],["widget","sparkline","sparklinepie"],{widget:true,sparkline:true,sparklinepie:true},["widget.sparklinepie"],0,[Ext.sparkline,"Pie"],0));(Ext.cmd.derive("Ext.sparkline.TriState",Ext.sparkline.BarBase,{config:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{}},tipTpl:["● {value:this.states}",{states:function(a){var b=Number(a);if(b===-1){return"Loss"}if(b===0){return"Draw"}if(b===1){return"Win"}return a}}],applyColorMap:function(a){var b=this;if(Ext.isArray(a)){b.colorMapByIndex=a;b.colorMapByValue=null}else{b.colorMapByIndex=null;b.colorMapByValue=a;if(b.colorMapByValue&&b.colorMapByValue.get==null){b.colorMapByValue=new Ext.sparkline.RangeMap(a)}}b.applyConfigChange();return a},applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);this.applyConfigChange();return a},onUpdate:function(){this.totalBarWidth=this.getBarWidth()+this.getBarSpacing()},getBarWidth:function(){var a=this.values;return this._barWidth||(this.getWidth()-(a.length-1)*this.getBarSpacing())/a.length},getRegion:function(a,b){return Math.floor(a/this.totalBarWidth)},getRegionFields:function(a){return{isNull:this.values[a]==null,value:this.values[a],color:this.calcColor(this.values[a],a),offset:a}},calcColor:function(g,h){var e=this,b=e.values,i=e.colorMapByIndex,d=e.colorMapByValue,a,c;if(d&&(c=d.get(g))){a=c}else{if(i&&i.length>h){a=i[h]}else{if(b[h]<0){a=e.getNegBarColor()}else{if(b[h]>0){a=e.getPosBarColor()}else{a=e.getZeroBarColor()}}}}return a},renderRegion:function(e,b){var h=this,k=h.values,a=h.canvas,d,l,g,j,i,c;d=a.pixelHeight;g=Math.round(d/2);j=e*h.totalBarWidth;if(k[e]<0){i=g;l=g-1}else{if(k[e]>0){i=0;l=g-1}else{i=g-1;l=2}}c=h.calcColor(k[e],e);if(c==null){return}if(b){c=h.calcHighlightColor(c)}a.drawRect(j,i,h.getBarWidth()-1,l-1,c,c).append()}},0,["sparklinetristate"],["widget","sparkline","sparklinetristate"],{widget:true,sparkline:true,sparklinetristate:true},["widget.sparklinetristate"],0,[Ext.sparkline,"TriState"],0));(Ext.cmd.derive("Ext.util.Base64",Ext.Base,{singleton:true,_str:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var d=this;var a="",n,l,j,m,k,h,g,b=0;e=d._utf8_encode(e);var c=e.length;while(b>2;k=((n&3)<<4)|(l>>4);h=((l&15)<<2)|(j>>6);g=j&63;if(isNaN(l)){h=g=64}else{if(isNaN(j)){g=64}}a=a+d._str.charAt(m)+d._str.charAt(k)+d._str.charAt(h)+d._str.charAt(g)}return a},decode:function(e){var d=this;var a="",n,l,j,m,k,h,g,b=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var c=e.length;while(b>4);l=((k&15)<<4)|(h>>2);j=((h&3)<<6)|g;a=a+String.fromCharCode(n);if(h!==64){a=a+String.fromCharCode(l)}if(g!==64){a=a+String.fromCharCode(j)}}a=d._utf8_decode(a);return a},_utf8_encode:function(d){d=d.replace(/\r\n/g,"\n");var b="",g=0,a=d.length;for(;g127)&&(e<2048)){b+=String.fromCharCode((e>>6)|192);b+=String.fromCharCode((e&63)|128)}else{b+=String.fromCharCode((e>>12)|224);b+=String.fromCharCode(((e>>6)&63)|128);b+=String.fromCharCode((e&63)|128)}}}return b},_utf8_decode:function(b){var e="",h=0,j=0,d=0,g=0,a=b.length;while(h191)&&(j<224)){g=b.charCodeAt(h+1);e+=String.fromCharCode(((j&31)<<6)|(g&63));h+=2}else{g=b.charCodeAt(h+1);d=b.charCodeAt(h+2);e+=String.fromCharCode(((j&15)<<12)|((g&63)<<6)|(d&63));h+=3}}}return e}},0,0,0,0,0,0,[Ext.util,"Base64"],0));(Ext.cmd.derive("Ext.util.DelimitedValue",Ext.Base,{dateFormat:"C",delimiter:"\t",lineBreak:"\n",quote:'"',parseREs:{},quoteREs:{},lineBreakRe:/\r?\n/g,lastLineBreakRe:/(\r?\n|\r)$/,constructor:function(a){if(a){Ext.apply(this,a)}},decode:function(k,b){if(!k){return[]}var i=this,c=b||i.delimiter,n=[],o=[n],a=i.quote,g=i.quoteREs,l=i.parseREs,k=k.replace(i.lastLineBreakRe,""),m=l[c]||(l[c]=new RegExp("(\\"+c+"|\\r?\\n|\\r|^)(?:\\"+a+"([^\\"+a+"]*(?:\\"+a+"\\"+a+"[^\\"+a+"]*)*)\\"+a+'|([^"\\'+c+"\\r\\n]*))","gi")),e=g[a]||(g[a]=new RegExp("\\"+a+"\\"+a,"g")),h,d,j;while(h=m.exec(k)){d=h[1];if(d.length&&d!==c){o.push(n=[])}if(h[2]){j=h[2].replace(e,'"')}else{j=h[3]}n.push(j)}return o},encode:function(m,c){var j=this,e=c||j.delimiter,d=j.dateFormat,b=j.quote,k=b+b,l=m.length,h=j.lineBreakRe,o=[],a=[],g,i,n;while(l-->0){n=m[l];a.length=i=n.length;while(i-->0){g=n[i];if(g==null){g=""}else{if(typeof g==="string"){if(g){if(g.indexOf(b)>-1){g=b+g.split(b).join(k)+b}else{if(g.indexOf(e)>-1||h.test(g)){g=b+g+b}}}}else{if(Ext.isDate(g)){g=Ext.Date.format(g,d)}}}a[i]=g}o[l]=a.join(e)}return o.join(j.lineBreak)}},1,0,0,0,0,0,[Ext.util,"DelimitedValue"],0));(Ext.cmd.derive("Ext.util.CSV",Ext.util.DelimitedValue,{singleton:true,delimiter:","},0,0,0,0,0,0,[Ext.util,"CSV"],0));(Ext.cmd.derive("Ext.util.ItemCollection",Ext.util.MixedCollection,{alternateClassName:"Ext.ItemCollection",getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,"ItemCollection",Ext,"ItemCollection"],0));(Ext.cmd.derive("Ext.util.LocalStorage",Ext.Base,{id:null,destroyed:false,lazyKeys:true,prefix:"",session:false,_keys:null,_store:null,_users:0,statics:{cache:{},get:function(e){var d=this,b=d.cache,c={_users:1},a;if(Ext.isString(e)){c.id=e}else{Ext.apply(c,e)}if(!(a=b[c.id])){a=new d(c)}else{++a._users}return a},supported:true},constructor:function(a){var b=this;Ext.apply(b,a);if(b._users){Ext.util.LocalStorage.cache[b.id]=b}b.init()},init:function(){var a=this,b=a.id;if(!a.prefix&&b){a.prefix=b+"-"}a._store=(a.session?window.sessionStorage:window.localStorage)},destroy:function(){var a=this;delete Ext.util.LocalStorage.cache[a.id];a._store=a._keys=null;a.callParent()},getKeys:function(){var e=this,a=e._store,g=e.prefix,d=e._keys,h=g.length,c,b;if(!d){e._keys=d=[];for(c=a.length;c--;){b=a.key(c);if(b.length>h){if(g===b.substring(0,h)){d.push(b.substring(h))}}}}return d},release:function(){if(!--this._users){this.destroy()}},save:Ext.emptyFn,clear:function(){var d=this,a=d._store,e=d.prefix,c=d._keys||d.getKeys(),b;for(b=c.length;b--;){a.removeItem(e+c[b])}c.length=0},key:function(a){var b=this._keys||this.getKeys();return(0<=a&&a-1&&c','
role="presentation"','class="{innerCtCls}">',"{%this.renderBody(out,values)%}","
",""],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var b=this.owner,c=b.inheritedState,a=b.inheritedStateInner;if(!c||c.invalid){c=b.getInherited();a=b.inheritedStateInner}if(d.widthModel.shrinkWrap){a.inShrinkWrapTable=true}else{delete a.inShrinkWrapTable}},beginLayoutCycle:function(d){var j=this,b=j.outerCt,h=j.lastOuterCtWidth||"",g=j.lastOuterCtHeight||"",k=j.lastOuterCtTableLayout||"",a=d.state,l,e,m,c,i;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);e=m=c="";if(!d.widthModel.shrinkWrap){e="100%";i=j.owner.inheritedStateInner;l=j.getOverflowXStyle(d);c=(i.inShrinkWrapTable||l==="auto"||l==="scroll")?"":"fixed"}if(!d.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){m="100%"}if((e!==h)||j.hasOuterCtPxWidth){b.setStyle("width",e);j.lastOuterCtWidth=e;j.hasOuterCtPxWidth=false}if(c!==k){b.setStyle("table-layout",c);j.lastOuterCtTableLayout=c}if((m!==g)||j.hasOuterCtPxHeight){b.setStyle("height",m);j.lastOuterCtHeight=m;j.hasOuterCtPxHeight=false}if(j.hasInnerCtPxHeight){j.innerCt.setStyle("height","");j.hasInnerCtPxHeight=false}a.overflowAdjust=a.overflowAdjust||j.lastOverflowAdjust},calculate:function(c){var a=this,b=c.state,e=a.getContainerSize(c,true),d=b.calculatedItems||(b.calculatedItems=a.calculateItems?a.calculateItems(c,e):true);a.setCtSizeIfNeeded(c,e);if(d&&c.hasDomProp("containerChildrenSizeDone")){a.calculateContentSize(c);if(e.gotAll){if(a.manageOverflow&&!c.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(c,e)}return}}a.done=false},calculateContentSize:function(g){var e=this,a=((g.widthModel.shrinkWrap?1:0)|(g.heightModel.shrinkWrap?2:0)),c=(a&1)||undefined,h=(a&2)||undefined,d=0,b=g.props;if(c){if(isNaN(b.contentWidth)){++d}else{c=undefined}}if(h){if(isNaN(b.contentHeight)){++d}else{h=undefined}}if(d){if(c&&!g.setContentWidth(e.measureContentWidth(g))){e.done=false}if(h&&!g.setContentHeight(e.measureContentHeight(g))){e.done=false}}},calculateOverflow:function(c){var h=this,b,j,a,g,e,d,i;e=(h.getOverflowXStyle(c)==="auto");d=(h.getOverflowYStyle(c)==="auto");if(e||d){a=Ext.getScrollbarSize();i=c.overflowContext.el.dom;g=0;if(i.scrollWidth>i.clientWidth){g|=1}if(i.scrollHeight>i.clientHeight){g|=2}b=(d&&(g&2))?a.width:0;j=(e&&(g&1))?a.height:0;if(b!==h.lastOverflowAdjust.width||j!==h.lastOverflowAdjust.height){h.done=false;c.invalidate({state:{overflowAdjust:{width:b,height:j},overflowState:g,secondPass:true}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(c,e){var d=e.$layout,a=Ext.XTemplate,g=d.beforeBodyTpl,b=d.afterBodyTpl;if(g){a.getTpl(d,"beforeBodyTpl").applyOut(e,c)}this.renderItems(c,e);this.renderContent(c,e);if(b){a.getTpl(d,"afterBodyTpl").applyOut(e,c)}},doRenderPadding:function(b,d){var c=d.$layout,a=d.$layout.owner,e=a[a.contentPaddingProperty];if(c.managePadding&&e){b.push("padding:",a.unitizeBox(e))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle("position","relative");a.dom.scrollWidth;a.setStyle("position","")}},getContainerSize:function(b,c){var a=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),d=b.state.overflowAdjust;if(d){a.width-=d.width;a.height-=d.height}return a},getRenderData:function(){var a=this,b=Ext.layout.container.Container.prototype.getRenderData.call(this);b.innerCtCls=a.innerCtCls;b.outerCtCls=a.outerCtCls;return b},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle("overflow-x"))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle("overflow-y"))},initContextItems:function(b){var a=this,d=b.target,c=a.owner.getOverflowEl();b.outerCtContext=b.getEl("outerCt",a);b.innerCtContext=b.getEl("innerCt",a);b.overflowContext=(c===b.el)?b:b.getEl(c);if(d[d.contentPaddingProperty]!==undefined){b.paddingContext=b.innerCtContext}},initLayout:function(){var c=this,b=Ext.getScrollbarSize().width,a=c.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&c.manageOverflow&&!c.hasOwnProperty("lastOverflowAdjust")){if(a.scrollable||c.reserveScrollbar){c.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&(c[c.contentPaddingProperty]===undefined)){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(d){var g,c,b,a,e;if(this.chromeCellMeasureBug){g=this.innerCt.dom;c=g.style;b=c.display;if(b==="table-cell"){c.display="";g.offsetWidth;c.display=b}}if(Ext.isSafari){g=this.outerCt.dom;c=g.style;c.display="table-cell";g.offsetWidth;g.style.display=""}a=this.outerCt.getWidth();e=d.target;if(this.managePadding&&(e[e.contentPaddingProperty]===undefined)){a+=d.targetContext.getPaddingInfo().width}return a},setCtSizeIfNeeded:function(d,b){var e=this,l=b.height,h=d.paddingContext.getPaddingInfo(),j=e.getTarget(),k=e.getOverflowXStyle(d),c=(k==="auto"||k==="scroll"),a=Ext.getScrollbarSize(),g,i;if(l&&!d.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){g=true}if(Ext.isIE8){i=true}if((g||i)&&c&&(j.dom.scrollWidth>j.dom.clientWidth)){l=Math.max(l-a.height,0)}if(g){d.outerCtContext.setProp("height",l+h.height);e.hasOuterCtPxHeight=true}if(i){d.innerCtContext.setProp("height",l);e.hasInnerCtPxHeight=true}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt}},0,0,0,0,["layout.auto","layout.autocontainer"],0,[Ext.layout.container,"Auto"],function(b){var a=Ext.chromeVersion;b.prototype.chromeCellMeasureBug=Ext.isChrome&&a>=26&&a<=34}));(Ext.cmd.derive("Ext.ZIndexManager",Ext.Base,{alternateClassName:"Ext.WindowGroup",statics:{zBase:9000,activeCounter:0},constructor:function(a){var b=this;b.id=Ext.id(null,"zindex-mgr-");b.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(e,d){var c=(e.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!c){c=e.getActiveCounter()-d.getActiveCounter()}return c}},filters:{filterFn:function(c){return c.isVisible()}}});b.zIndexStack.addObserver(b);b.front=null;b.sortCount=0;b.globalListeners=Ext.GlobalEvents.on({beforehide:b.onComponentShowHide,show:b.onComponentShowHide,scope:b,destroyable:true});if(a){if(a.isContainer){b.resizeListeners=a.on({resize:b.onContainerResize,scope:b,destroyable:true});b.zseed=Ext.Number.from(b.rendered?a.getEl().getStyle("zIndex"):undefined,b.getNextZSeed());b.targetEl=a.getTargetEl();b.container=a}else{b.resizeListeners=Ext.on({resize:b.onContainerResize,scope:b,destroyable:true});b.zseed=b.getNextZSeed();b.targetEl=Ext.get(a)}}else{b.zseed=b.getNextZSeed();Ext.onInternalReady(function(){b.resizeListeners=Ext.on({resize:b.scheduleContainerResize,scope:b,destroyable:true,priority:-10000});b.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return(Ext.ZIndexManager.zBase+=10000)},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var j=this,e=j.front,k=j.zseed,l=j.zIndexStack.getRange(),h=l.length,d,g,c,b,m=!e||e.isVisible();j.sortCount++;for(d=0;d0;){b=a[c];if(b.isComponent&&e.call(d||b,b)===false){return}}},destroy:function(){var d=this,b=d.zIndexStack.getRange(),a=b.length,c;for(c=0;c{% this.renderTabGuard(out, values, 'before'); %}{% this.renderContainer(out,values) %}{% this.renderTabGuard(out, values, 'after'); %}",config:{actions:null},autoDestroy:true,defaultType:"panel",detachOnRemove:true,items:undefined,layout:"auto",suspendLayout:false,tabGuardTpl:'',tabGuardElements:{before:"tabGuardBeforeEl",after:"tabGuardAfterEl"},_applyDefaultsOptions:{defaults:true,strict:false},ariaRole:"presentation",baseCls:"x-container",layoutCounter:0,add:function(){var l=this,h=Ext.Array.slice(arguments),e=(typeof h[0]==="number")?h.shift():-1,c=l.getLayout(),d=false,n,j,b,a,o,m,g,k;if(h.length===1&&Ext.isArray(h[0])){j=h[0];n=true}else{j=h}if(l.rendered){Ext.suspendLayouts()}g=j=l.prepareItems(j,true);a=j.length;if(!n&&a===1){g=j[0]}for(b=0;b0){d=Math.min(d,c);b=Math.max(b,c)}}}g.dom.setAttribute("tabIndex",d);e.dom.setAttribute("tabIndex",b)}else{g.dom.removeAttribute("tabIndex");e.dom.removeAttribute("tabIndex")}if(k.onTabGuardFocusEnter){if(!g.hasListeners.focusenter){g.on("focusenter",k.onTabGuardFocusEnter,k)}if(!e.hasListeners.focusenter){e.on("focusenter",k.onTabGuardFocusEnter,k)}}},_noMargin:{"margin-top":"","margin-right":"","margin-bottom":"","margin-left":""},resetItemMargins:function(){var a=this.items.items,c=a.length,b=this._noMargin,d;while(c--){d=a[c];d.margin$=null;d.el.setStyle(b)}},setupRenderTpl:function(a){Ext.Component.prototype.setupRenderTpl.apply(this,arguments);this.getLayout().setupRenderTpl(a)}}},0,["container"],["component","box","container"],{component:true,box:true,container:true},["widget.container"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable],[Ext.mixin.Container.prototype.mixinId||Ext.mixin.Container.$className,Ext.mixin.Container]],[Ext.container,"Container",Ext,"Container",Ext,"AbstractContainer"],0));(Ext.cmd.derive("Ext.layout.container.Editor",Ext.layout.container.Container,{autoSizeDefault:{width:"field",height:"field"},sizePolicies:{$:{$:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},boundEl:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1}},boundEl:{$:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},boundEl:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}}},getItemSizePolicy:function(d){var c=this,a=c.owner.autoSize,b=a&&a.width,e=c.sizePolicies;e=e[b]||e.$;b=a&&a.height;e=e[b]||e.$;return e},calculate:function(g){var e=this,b=e.owner,a=b.autoSize,d,c;if(a===true){a=e.autoSizeDefault}if(a){d=e.getDimension(b,a.width,"getWidth",b.width);c=e.getDimension(b,a.height,"getHeight",b.height)}g.childItems[0].setSize(d,c);g.setWidth(d);g.setHeight(c);g.setContentSize(d||b.field.getWidth(),c||b.field.getHeight())},getDimension:function(a,b,d,c){switch(b){case"boundEl":return a.boundEl[d]();case"field":return undefined;default:return c}}},0,0,0,0,["layout.editor"],0,[Ext.layout.container,"Editor"],0));(Ext.cmd.derive("Ext.Editor",Ext.container.Container,{layout:"editor",allowBlur:true,revertInvalid:true,value:"",alignment:"c-c?",offsets:[0,0],shadow:"frame",constrain:false,swallowKeys:true,completeOnEnter:true,cancelOnEsc:true,updateEl:false,focusOnToFront:false,baseCls:"x-editor",editing:false,preventDefaultAlign:true,useBoundValue:true,specialKeyDelay:1,initComponent:function(){var a=this,b=a.field=Ext.ComponentManager.create(a.field||{},"textfield");b.msgTarget=b.msgTarget||"qtip";a.mon(b,{scope:a,specialkey:a.onSpecialKey});if(b.grow){a.mon(b,"autosize",a.onFieldAutosize,a,{delay:1})}a.floating={constrain:a.constrain};a.items=b;Ext.container.Container.prototype.initComponent.call(this)},onAdded:function(a){this.ownerCmp=a},onFieldAutosize:function(){this.updateLayout()},afterRender:function(b,a){var c=this,e=c.field,d=e.inputEl;Ext.container.Container.prototype.afterRender.apply(this,arguments);if(d){d.dom.name="";if(c.swallowKeys){d.swallowEvent(["keypress","keydown"])}}},onSpecialKey:function(h,g){var e=this,c=g.getKey(),a=e.completeOnEnter&&c===g.ENTER,d=e.cancelOnEsc&&c===g.ESC,b=e.specialKeyTask;if(a||d){g.stopEvent();if(!b){e.specialKeyTask=b=new Ext.util.DelayedTask()}b.delay(e.specialKeyDelay,a?e.completeEdit:e.cancelEdit,e)}e.fireEvent("specialkey",e,h,g)},startEdit:function(c,e,a){var d=this,g=d.field,i,b,h;d.completeEdit(true);d.boundEl=Ext.get(c);i=d.boundEl.dom;if(d.useBoundValue&&!Ext.isDefined(e)){e=Ext.String.trim(i.textContent||i.innerText||i.innerHTML)}if(d.fireEvent("beforestartedit",d,d.boundEl,e)!==false){if(d.context){e=d.context.value}Ext.suspendLayouts();if(!d.rendered){b=d.ownerCt;h=d.renderTo||(b&&b.getEl())||Ext.getBody();Ext.fly(h).position();d.renderTo=h}d.startValue=e;d.show();d.realign(true);g.suspendEvents();g.setValue(e);g.resetOriginalValue();g.resumeEvents();if(a!==false){g.focus(g.selectOnFocus?true:[Number.MAX_VALUE])}if(g.autoSize){g.autoSize()}Ext.resumeLayouts(true);d.toggleBoundEl(false);d.editing=true}},realign:function(a){var b=this;if(a===true){b.updateLayout()}b.alignTo(b.boundEl,b.alignment,b.offsets)},completeEdit:function(a){var d=this,g=d.field,b=d.startValue,c=d.context&&d.context.cancel,e;if(!d.editing){return}if(g.assertValue){g.assertValue()}e=d.getValue();if(!g.isValid()){if(d.revertInvalid!==false){d.cancelEdit(a)}return}if(d.ignoreNoChange&&!g.didValueChange(e,b)){d.onEditComplete(a);return}if(d.fireEvent("beforecomplete",d,e,b)!==false){e=d.getValue();if(d.updateEl&&d.boundEl){d.boundEl.setHtml(e)}d.onEditComplete(a,c);d.fireEvent("complete",d,e,b)}},onShow:function(){var a=this;Ext.container.Container.prototype.onShow.apply(this,arguments);a.fireEvent("startedit",a,a.boundEl,a.startValue)},cancelEdit:function(a){var c=this,b=c.startValue,e=c.field,d;if(c.editing){if(e){d=c.editedValue=c.getValue();e.suspendEvents();c.setValue(b);e.resumeEvents()}c.onEditComplete(a,true);c.fireEvent("canceledit",c,d,b);delete c.editedValue}},onEditComplete:function(b,a){this.editing=false;if(b!==true){this.hide();this.toggleBoundEl(true)}},onFocusLeave:function(b){var a=this;if(a.allowBlur===true&&a.editing){a.completeEdit()}Ext.container.Container.prototype.onFocusLeave.call(this,b)},onHide:function(){var a=this,b=a.field;if(a.editing){a.completeEdit()}else{if(b.collapse){b.collapse()}}Ext.container.Container.prototype.onHide.apply(this,arguments)},getValue:function(){return this.field.getValue()},setValue:function(a){this.field.setValue(a)},toggleBoundEl:function(a){if(this.hideEl!==false){this.boundEl.setVisible(a)}},doDestroy:function(){var b=this,a=b.specialKeyTask;if(a){a.cancel()}Ext.destroy(b.field);Ext.container.Container.prototype.doDestroy.call(this)}},0,["editor"],["component","box","container","editor"],{component:true,box:true,container:true,editor:true},["widget.editor"],0,[Ext,"Editor"],0));(Ext.cmd.derive("Ext.EventManager",Ext.Base,{singleton:true,mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,addListener:function(c,a,e,d,b){Ext.get(c).addListener(a,e,d,b)},onWindowResize:function(c,b,a){Ext.GlobalEvents.on("resize",c,b,a)},onWindowUnload:function(c,b,a){Ext.getWin().on("unload",c,b,a)},purgeElement:function(b,a){Ext.get(b).clearListeners()},removeAll:function(a){Ext.get(a).clearListeners()},removeListener:function(c,a,e,d,b){Ext.get(c).removeListener(a,e,d,b)},removeResizeListener:function(b,a){Ext.GlobalEvents.un("resize",b,a)},removeUnloadListener:function(b,a){Ext.getWin().un("unload",b,a)},stopEvent:function(a){this.stopPropagation(a);this.preventDefault(a)},stopPropagation:function(a){a=a.browserEvent||a;if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}},preventDefault:function(a){a=a.browserEvent||a;if(a.preventDefault){a.preventDefault()}else{a.returnValue=false;try{if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}catch(b){}}},getId:function(a){a=Ext.get(a);return a.id},getRelatedTarget:function(a){a=a.browserEvent||a;var b=a.relatedTarget;if(!b){if(this.mouseLeaveRe.test(a.type)){b=a.toElement}else{if(this.mouseEnterRe.test(a.type)){b=a.fromElement}}}return this.resolveTextNode(b)},getPageX:function(a){return this.getPageXY(a)[0]},getPageXY:function(c){c=c.browserEvent||c;var b=c.pageX,e=c.pageY,d=document.documentElement,a=document.body;if(!b&&b!==0){b=c.clientX+(d&&d.scrollLeft||a&&a.scrollLeft||0)-(d&&d.clientLeft||a&&a.clientLeft||0);e=c.clientY+(d&&d.scrollTop||a&&a.scrollTop||0)-(d&&d.clientTop||a&&a.clientTop||0)}return[b,e]},getPageY:function(a){return this.getPageXY(a)[1]},getTarget:function(a){a=a.browserEvent||a;return Ext.EventManager.resolveTextNode(a.target||a.srcElement)},resolveTextNode:Ext.isGecko?function(b){if(b){var a=HTMLElement.prototype.toString.call(b);if(a!=="[xpconnect wrapped native prototype]"&&a!=="[object XULElement]"){return b.nodeType===3?b.parentNode:b}}}:function(a){return a&&a.nodeType===3?a.parentNode:a}},0,0,0,0,0,0,[Ext,"EventManager"],function(a){a.on=a.addListener;a.un=a.removeListener}));(Ext.cmd.derive("Ext.Img",Ext.Component,{autoEl:"img",baseCls:"x-img",config:{src:null,glyph:null},alt:"",title:"",imgCls:"",maskOnDisable:false,applySrc:function(a){return a&&Ext.resolveResource(a)},getElConfig:function(){var d=this,e=d.autoEl,b=Ext.Component.prototype.getElConfig.call(this),c=d.glyph,a;if(c){b.tag="div";b.html=c.character;b.style=b.style||{};b.style.fontFamily=c.fontFamily;b.role="img"}else{if(e==="img"||(Ext.isObject(e)&&e.tag==="img")){a=b}else{b.cn=[a={tag:"img",id:d.id+"-img"}]}}if(a){if(d.imgCls){a.cls=(a.cls?a.cls+" ":"")+d.imgCls}a.src=d.src||Ext.BLANK_IMAGE_URL}if(d.alt){(a||b).alt=d.alt}else{(a||b).alt=""}if(d.title){(a||b).title=d.title}return b},onRender:function(){var b=this,c=b.autoEl,a;Ext.Component.prototype.onRender.apply(this,arguments);a=b.el;if(c==="img"||(Ext.isObject(c)&&c.tag==="img")){b.imgEl=a}else{b.imgEl=a.getById(b.id+"-img")}},doDestroy:function(){var a=this,b=a.imgEl;if(b&&a.el!==b){b.destroy()}a.imgEl=null;Ext.Component.prototype.doDestroy.call(this)},getTitle:function(){return this.title},setTitle:function(c){var a=this,b=a.imgEl;a.title=c||"";if(b){b.dom.title=c||""}},afterComponentLayout:function(e,a,c,g){var b=this.getSizeModel().height,d;if((b.calculated||b.configured)&&a&&this.glyph){d=a+"px";this.setStyle({"line-height":d,"font-size":d})}Ext.Component.prototype.afterComponentLayout.call(this,e,a,c,g)},getAlt:function(){return this.alt},setAlt:function(c){var a=this,b=a.imgEl;a.alt=c||"";if(b){b.dom.alt=c||""}},_naturalSize:null,getNaturalSize:function(){var e=this,b=e.imgEl,g=e._naturalSize,d,a,c;if(b&&!g){b=b.dom;e._naturalSize=g={width:a=b.naturalWidth,height:b.naturalHeight};if(!a){d=b.style;a=d.width;c=d.height;d.width=d.height="auto";g.width=b.width;g.height=b.height;d.width=a;d.height=c}g.aspect=g.width/g.height}return g},updateSrc:function(b){var a=this.imgEl;if(a){a.dom.src=b||Ext.BLANK_IMAGE_URL}},applyGlyph:function(b,a){if(b){if(!b.isGlyph){b=new Ext.Glyph(b)}if(b.isEqual(a)){b=undefined}}return b},updateGlyph:function(c,a){var b=this.el;if(b){b.dom.innerHTML=c.character;b.setStyle(c.getStyle())}}},0,["image","imagecomponent"],["component","box","image","imagecomponent"],{component:true,box:true,image:true,imagecomponent:true},["widget.image","widget.imagecomponent"],0,[Ext,"Img"],0));(Ext.cmd.derive("Ext.util.StoreHolder",Ext.Base,{mixinId:"storeholder",autoDestroyBoundStore:false,bindStore:function(b,c,a){a=a||"store";var d=this,e=c?null:d[a];if(b!==e){if(e){if(!d.onUnbindStore.$emptyFn){d.onUnbindStore(e,c,a)}if(!e.destroyed){if(d.autoDestroyBoundStore&&a==="store"&&e.autoDestroy){e.destroy()}else{d.unbindStoreListeners(e)}}}if(b){d[a]=b=Ext.data.StoreManager.lookup(b);d.bindStoreListeners(b);if(!d.onBindStore.$emptyFn){d.onBindStore(b,e,c)}}else{d[a]=null}if(d.fireEvent){d.fireEvent("storechange",d,b,e)}}return d},getStore:function(){return this.store},setStore:function(a){this.bindStore(a)},unbindStoreListeners:function(a){var b=this.storeListeners;if(b){a.un(b)}},bindStoreListeners:function(a){var b=this.getStoreListeners(a);if(b){b=Ext.apply({},b);if(!b.scope){b.scope=this}this.storeListeners=b;a.on(b)}},getStoreListeners:Ext.emptyFn,onUnbindStore:Ext.emptyFn,onBindStore:Ext.emptyFn},0,0,0,0,0,0,[Ext.util,"StoreHolder"],0));(Ext.cmd.derive("Ext.LoadMask",Ext.Component,{isLoadMask:true,msg:"Loading...",msgCls:"x-mask-loading",msgWrapCls:"x-mask-msg",useMsg:true,useTargetEl:false,cls:"x-mask",componentCls:"x-border-box",ariaRole:"progressbar",focusable:true,tabIndex:0,childEls:["msgWrapEl","msgEl","msgTextEl"],renderTpl:['"],maskOnDisable:false,skipLayout:true,constructor:function(b){var c=this,a;if(arguments.length===2){a=c.target=b;b=arguments[1]}else{a=b.target}Ext.Component.prototype.constructor.call(this,b);if(a.isComponent){c.ownerCt=a;c.hidden=true;c.renderTo=c.getMaskTarget();c.external=c.renderTo===Ext.getBody();c.bindComponent(a)}else{a=Ext.get(a);c.isElement=true;c.renderTo=c.target}c.render(c.renderTo);if(c.store){c.bindStore(c.store,true)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||"";return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(a){var c=this,b={scope:this,resize:c.sizeMask};if(c.external){b.added=c.onComponentAdded;b.removed=c.onComponentRemoved;if(a.floating){b.move=c.sizeMask;c.activeOwner=a}else{if(a.ownerCt){c.onComponentAdded(a.ownerCt)}}}c.mon(a,b);if(c.external){c.mon(Ext.GlobalEvents,{show:c.onContainerShow,hide:c.onContainerHide,expand:c.onContainerExpand,collapse:c.onContainerCollapse,scope:c})}},onComponentAdded:function(a){var b=this;delete b.activeOwner;b.floatParent=a;if(!a.floating){a=a.up("[floating]")}if(a){b.activeOwner=a;b.mon(a,"move",b.sizeMask,b);b.mon(a,"tofront",b.onOwnerToFront,b)}else{b.preventBringToFront=true}a=b.floatParent.ownerCt;if(b.rendered&&b.isVisible()&&a){b.floatOwner=a;b.mon(a,"afterlayout",b.sizeMask,b,{single:true})}},onComponentRemoved:function(a){var c=this,d=c.activeOwner,b=c.floatOwner;if(d){c.mun(d,"move",c.sizeMask,c);c.mun(d,"tofront",c.onOwnerToFront,c)}if(b){c.mun(b,"afterlayout",c.sizeMask,c)}delete c.activeOwner;delete c.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on("mousedown",a.onMouseDown,a)}this.el.skipGarbageCollection=true},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(a,b){this.el.setStyle("zIndex",b+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=true}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var b=this,c=b.activeOwner||b.target,a=b.external?b.getOwner().el:b.getMaskTarget(),d;if(b.rendered&&b.isVisible()){if(b.external){if(!b.isElement&&c.floating){d=c.el.getZIndex();if(!isNaN(d)){b.onOwnerToFront(c,d)}}b.el.setSize(a.getSize()).alignTo(a,"tl-tl")}b.msgWrapEl.center(b.el)}},bindStore:function(a,b){var c=this;Ext.destroy(c.proxyListeners);c.mixins.storeholder.bindStore.apply(c,arguments);a=c.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){c.proxyListeners=a.getProxy().on({exception:c.onLoad,scope:c,destroyable:true})}if(a.isLoading()){c.onBeforeLoad()}}},getStoreListeners:function(b){var d=this.onLoad,c=this.onBeforeLoad,a={cachemiss:c,cachefilled:{fn:d,buffer:100}};if(!b.loadsSynchronously()){a.beforeload=c;a.load=d}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():(a.getMaskTarget()||Ext.getBody())},onBeforeLoad:function(){var c=this,a=c.getOwner(),b;if(!c.disabled){c.loading=true;if(a.componentLayoutCounter){c.maybeShow()}else{b=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=b;b.apply(a,arguments);c.maybeShow()}}}},maybeShow:function(){var c=this,a=c.getOwner(),b;b=a.isVisible(true)&&(!c.isComponent||a.el.isVisible(true));if(!b){c.showNext=true}else{if(c.loading&&a.rendered){c.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent("hide",this);return}if(a){a.updateMaskState(false,b)}delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:"",this.msgCls);a.fireEvent("show",this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var b=this,a=b.ownerCt;b.loading=true;Ext.Component.prototype.afterShow.apply(this,arguments);a.updateMaskState(true,b);b.el.restoreTabbableState();b.syncMaskState()},syncMaskState:function(){var c=this,b=c.ownerCt,a=c.el;if(c.isVisible()){if(c.hasOwnProperty("msgWrapCls")){a.dom.className=c.msgWrapCls}if(c.useMsg){c.msgTextEl.setHtml(c.msg);c.ariaEl.dom.setAttribute("aria-valuetext",c.msg)}else{c.msgWrapEl.hide()}if(c.shim||Ext.useShims){a.enableShim(null,true)}else{a.disableShim()}if(b.el.contains(Ext.Element.getActiveElement())){c.focus()}c.sizeMask()}},onLoad:function(){this.loading=false;this.hide()},doDestroy:function(){var a=this;a.ownerCt=null;a.bindStore(null);if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.doDestroy.call(this)}},1,["loadmask"],["component","box","loadmask"],{component:true,box:true,loadmask:true},["widget.loadmask"],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,"LoadMask"],0));(Ext.cmd.derive("Ext.layout.component.Component",Ext.layout.Layout,{type:"component",isComponentLayout:true,nullBox:{},usesContentHeight:true,usesContentWidth:true,usesHeight:true,usesWidth:true,widthCache:{},heightCache:{},beginLayoutCycle:function(d,q){var l=this,c=l.owner,h=d.ownerCtContext,i=d.heightModel,j=d.widthModel,k=c.el.dom===document.body,g=c.lastBox||l.nullBox,n=c.el.lastBox||l.nullBox,a=!k,e=d.isTopLevel,m,o,b,p;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,d,q);if(q){if(l.usesContentWidth){++d.consumersContentWidth}if(l.usesContentHeight){++d.consumersContentHeight}if(l.usesWidth){++d.consumersWidth}if(l.usesHeight){++d.consumersHeight}if(h&&!h.hasRawContent){m=c.ownerLayout;if(m){if(m.usesWidth){++d.consumersWidth}if(m.usesHeight){++d.consumersHeight}}}}if(j.configured){b=c[j.names.width];if(e&&j.calculatedFrom){b=g.width}if(!k){a=l.setWidthInDom||(q?b!==n.width:j.constrained)}d.setWidth(b,a)}else{if(e){if(j.calculated){o=g.width;d.setWidth(o,o!==n.width)}o=g.x;d.setProp("x",o,o!==n.x)}}if(i.configured){p=c[i.names.height];if(e&&i.calculatedFrom){p=g.height}if(!k){a=q?p!==n.height:i.constrained}d.setHeight(p,a)}else{if(e){if(i.calculated){o=g.height;d.setHeight(o,o!==n.height)}o=g.y;d.setProp("y",o,o!==n.y)}}},finishedLayout:function(b){var h=this,k=b.children,a=h.owner,e,c,j,d,g;if(k){e=k.length;for(c=0;c','',"",'"],componentLayout:"progressbar",ariaRole:"progressbar",focusable:true,tabIndex:0,autoEl:{"aria-valuemin":"0","aria-valuenow":"0","aria-valuemax":"100"},initRenderData:function(){var a=this,c=a.value||0,b;b=Ext.Component.prototype.initRenderData.call(this);return Ext.apply(b,{internalText:!a.hasOwnProperty("textEl"),text:a.text||Math.round(c*100)+"%",percentage:c*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else{a.textEl=a.el.select("."+a.baseCls+"-text")}},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(a.text){a.ariaEl.dom.setAttribute("aria-valuetext",a.text)}},updateValue:function(a){this.updateProgress(a)},updateProgress:function(e,g,a){e=e||0;var d=this,b=d.value,c=d.getTextTpl();d.value=e||(e=0);if(g!=null){d.autoText=false;d.updateText(g)}else{if(c){d.autoText=false;d.updateText(c.apply({value:e,percent:e*100}))}else{if(!d.text&&d.autoText!==false){d.autoText=true;d.updateText(Math.round(e*100)+"%")}else{if(d.text&&d.ariaEl.dom){d.ariaEl.dom.removeAttribute("aria-valuetext")}}}}if(d.rendered&&!d.destroyed){if(a===true||(a!==false&&d.animate)){d.bar.stopAnimation();d.bar.animate(Ext.apply({from:{width:(b*100)+"%"},to:{width:(e*100)+"%"}},d.animate))}else{d.bar.setStyle("width",(e*100)+"%")}d.ariaEl.dom.setAttribute("aria-valuenow",Math.round(e*100))}d.fireEvent("update",d,e,g);return d},updateText:function(b){var a=this;if(!a.autoText){a.text=b}if(a.rendered){a.textEl.setHtml(b);if(!a.autoText){a.ariaEl.dom.setAttribute("aria-valuetext",b)}else{a.ariaEl.dom.removeAttribute("aria-valuetext")}}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(c){var b=this,a;if(!b.waitTimer){a=b;c=c||{};if(c.text!=null){b.autoText=false}b.updateText(c.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var e=c.increment||10;d-=1;b.updateProgress(((((d+e)%e)+1)*(100/e))*0.01,null,c.animate)},interval:c.interval||1000,duration:c.duration,onStop:function(){if(c.fn){c.fn.apply(c.scope||b)}b.reset()},scope:a})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(a){var b=this;b.updateProgress(0);b.clearTimer();if(a===true){b.hide()}if(b.rendered){b.ariaEl.dom.removeAttribute("aria-valuetext")}return b},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},doDestroy:function(){var b=this,a=b.bar;b.clearTimer();if(b.rendered){if(b.textEl.isComposite){b.textEl.clear()}Ext.destroyMembers(b,"textEl","progressBar");if(a&&b.animate){a.stopAnimation()}}Ext.Component.prototype.doDestroy.call(this)}},0,["progressbar"],["component","box","progressbar"],{component:true,box:true,progressbar:true},["widget.progressbar"],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,"ProgressBar"],0));(Ext.cmd.derive("Ext.dom.ButtonElement",Ext.dom.Element,{setSize:function(d,a,b){var e=this,c=e.component;Ext.dom.Element.prototype.setSize.call(this,d,a,b);c.btnWrap.setStyle("table-layout",(!d||d==="auto")?"":"fixed");c.btnEl.setStyle("height",(!a||a==="auto")?"":"auto");return e},setStyle:function(g,e){var d=this,b=d.component,c,a;Ext.dom.Element.prototype.setStyle.call(this,g,e);if(g){if(g==="width"||(typeof g!=="string"&&"width" in g)){c=e||g.width;b.btnWrap.setStyle("table-layout",(!c||c==="auto")?"":"fixed")}if(g==="height"||(typeof g!=="string"&&"height" in g)){a=e||g.height;b.btnEl.setStyle("height",(!a||a==="auto")?"":"auto")}}return d},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle("height",(!a||a==="auto")?"":"auto");return this},setWidth:function(b,a){Ext.dom.Element.prototype.setWidth.call(this,b,a);this.component.btnWrap.setStyle("table-layout",(!b||b==="auto")?"":"fixed");return this}},0,0,0,0,0,0,[Ext.dom,"ButtonElement"],0));(Ext.cmd.derive("Ext.button.Manager",Ext.Base,{singleton:true,alternateClassName:"Ext.ButtonToggleManager",groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=true}},onButtonMousedown:function(a,c){var b=this.pressedButton;if(b&&!b.destroying&&!b.destroyed){b.onMouseUp(c)}this.pressedButton=a},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a&&!a.destroying&&!a.destroyed){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(b,e){if(e){var d=this.groups[b.toggleGroup],c=d.length,a;for(a=0;a{[values.$comp.renderIcon(values)]}{text}{[values.$comp.renderIcon(values)]}{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]} {closeText} tabindex="{tabIndex}" {$}="{.}" style="{arrowElStyle}">{arrowElText}',iconTpl:'background-image:url({iconUrl});font-family:{glyphFontFamily};">{glyph}">',scale:"small",allowedScales:["small","medium","large"],arrowAlign:"right",arrowCls:"arrow",maskOnDisable:false,shrinkWrap:3,frame:true,autoEl:{tag:"a",hidefocus:"on",unselectable:"on"},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==="_blank"){window.open(this.getHref(),this.hrefTarget)}else{location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls("x-unselectable");Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=true;a.setMenu(a.menu,false,true)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty("preventDefault");if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=false}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==""){a.enableToggle=true}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var c=this,b=Ext.Component.prototype.getElConfig.call(this),a=c.getHref(),d=c.hrefTarget;if(b.tag==="a"){if(!c.disabled){b.tabIndex=c.tabIndex}if(a){if(!c.disabled){b.href=a;if(d){b.target=d}}}}if(!c.ariaStaticRoles[c.ariaRole]){if(c.menu&&!c.isSplitButton){b["aria-haspopup"]=true}if(c.enableToggle){b["aria-pressed"]=!!c.pressed}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(i,h,e){var g=this,b=g.menu,a=g.isSplitButton?g.arrowEl&&g.arrowEl.dom:g.ariaEl.dom,c,d;if(b&&!e){if(h!==false&&g.destroyMenu){b.destroy()}b.ownerCmp=null}if(i){c=i.isMenu;i=Ext.menu.Manager.get(i,{ownerCmp:g});i.setOwnerCmp(g,c);i.menuClickBuffer=250;g.mon(i,{scope:g,show:g.onMenuShow,hide:g.onMenuHide});if(!b&&g.getArrowVisible()){g.split=true;if(g.rendered){g._addSplitCls();g.updateLayout()}}g.menu=i;if(a){a.setAttribute("aria-haspopup",true);a.setAttribute("aria-owns",i.id)}else{d=g.isSplitButton?(g.ariaArrowElAttributes||(g.ariaArrowElAttributes={})):(g.ariaRenderAttributes||(g.ariaRenderAttributes={}));d["aria-haspopup"]=true;d["aria-owns"]=i.id}}else{if(g.rendered){a.removeAttribute("aria-haspopup");a.removeAttribute("aria-owns");g._removeSplitCls();g.updateLayout()}else{d=g.isSplitButton?g.ariaArrowElAttributes:g.ariaRenderAttributes;if(d){delete d["aria-haspopup"];delete d["aria-owns"]}}g.split=false;g.menu=null}},onRender:function(){var c=this,d,a,b;Ext.Component.prototype.onRender.apply(this,arguments);a=c.el;if(c.tooltip){c.setTooltip(c.tooltip,true)}if(c.handleMouseEvents){b={scope:c,mouseover:c.onMouseOver,mouseout:c.onMouseOut,mousedown:c.onMouseDown};if(c.split){b.mousemove=c.onMouseMove}}else{b={scope:c}}if(Ext.supports.Touch){b.touchstart=c.onTouchStart}if(c.repeat){c.mon(new Ext.util.ClickRepeater(a,Ext.isObject(c.repeat)?c.repeat:{}),"click",c.onRepeatClick,c)}else{if(b[c.clickEvent]){d=true}else{b[c.clickEvent]=c.onClick}}c.mon(a,b);if(c.hasFrameTable()){c.mon(c.frameTable,"click",c.frameTableListener,c)}if(d){c.mon(a,c.clickEvent,c.onClick,c)}Ext.button.Manager.register(c)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var h=this,b=h._btnCls,d=h._baseIconCls,a=h.getIconAlign(),i=h.glyph,g,j=h.text,c=h._hasIcon(),e=h._hasIconCls;if(i){g=i.fontFamily;i=i.character}return{split:h.isSplitButton,innerCls:h._innerCls,splitCls:h.getArrowVisible()?h.getSplitCls():"",iconUrl:h.icon,iconCls:h.iconCls,glyph:i,glyphCls:i?h._glyphCls:"",glyphFontFamily:g,text:j||" ",closeText:h.closeText,textCls:j?h._textCls:"",noTextCls:j?"":h._noTextCls,hasIconCls:c?e:"",btnWrapCls:h._btnWrapCls,btnWrapStyle:h.width?"table-layout:fixed;":"",btnElStyle:h.height?"height:auto;":"",btnCls:b,baseIconCls:d,iconBeforeText:a==="left"||a==="top",iconAlignCls:c?(e+"-"+a):"",textAlignCls:b+"-"+h.getTextAlign(),arrowElCls:h._arrowElCls,arrowElStyle:h.arrowVisible?"":"display:none",tabIndex:h.tabIndex}},renderIcon:function(a){return this.lookupTpl("iconTpl").apply(a)},setHref:function(a){var b=this,d=b.hrefTarget,c;b.href=a;if(!b.configuredWithPreventDefault){b.preventDefault=!a}if(b.rendered){c=b.el.dom;if(!a||b.disabled){c.removeAttribute("href");c.removeAttribute("hrefTarget")}else{c.href=b.getHref();if(d){c.target=d}}}},getHref:function(){var b=this,a=b.href;return a?Ext.urlAppend(a,Ext.Object.toQueryString(Ext.apply({},b.params,b.baseParams))):false},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute("href")}else{b.href=a.getHref()||""}}},getSplitCls:function(){var a=this;return a.split?(a.baseCls+"-"+a.arrowCls)+" "+(a.baseCls+"-"+a.arrowCls+"-"+a.arrowAlign):""},setIcon:function(b){b=b||"";var c=this,a=c.btnIconEl,d=c.icon||"";if(c.glyph){c.setGlyph(null)}c.icon=b;if(b!==d){if(a){a.removeCls(c.iconCls);a.setStyle("background-image",b?"url("+b+")":"");c._syncHasIconCls();if(c.didIconStateChange(d,b)){c.updateLayout()}}c.fireEvent("iconchange",c,d,b)}return c},setIconCls:function(b){b=b||"";var d=this,a=d.btnIconEl,c=d.iconCls||"";if(d.glyph){d.setGlyph(null)}d.iconCls=b;if(c!==b){if(a){a.setStyle("background-image","");a.removeCls(c);a.addCls(b);d._syncHasIconCls();if(d.didIconStateChange(c,b)){d.updateLayout()}}d.fireEvent("iconchange",d,c,b)}return d},applyGlyph:function(b,a){if(b){if(!b.isGlyph){b=new Ext.Glyph(b)}if(b.isEqual(a)){b=undefined}}return b},updateGlyph:function(d,b){var c=this,a=c.btnIconEl,e=c._glyphCls;if(a){c.icon=null;a.setStyle("background-image","");if(d){a.dom.innerHTML=d.character;a.addCls(e);a.setStyle(d.getStyle())}else{a.dom.innerHTML="";a.removeCls(e)}c._syncHasIconCls();if(c.didIconStateChange(b,d)){c.updateLayout()}}c.fireEvent("glyphchange",c,d&&d.glyphConfig,b&&b.glyphConfig);return c},setTooltip:function(c,a){var b=this;if(b.rendered){if(!a||!c){b.clearTip()}if(c){if(Ext.quickTipsActive&&Ext.isObject(c)){Ext.tip.QuickTipManager.register(Ext.apply({target:b.el.id},c));b.tooltip=c}else{b.el.dom.setAttribute(b.getTipAttr(),c)}}}else{b.tooltip=c}return b},updateIconAlign:function(g,d){var c=this,b,a,e;if(c.rendered){b=c.btnEl;a=c.btnIconEl;e=c._hasIconCls;if(d){b.removeCls(e+"-"+d)}b.addCls(e+"-"+g);if(g==="top"||g==="left"){b.insertFirst(a)}else{b.appendChild(a)}c.updateLayout()}},updateTextAlign:function(e,d){var c=this,b=c.btnEl,a=c._btnCls;if(c.rendered){b.removeCls(a+"-"+d);b.addCls(a+"-"+e)}},getTipAttr:function(){return this.tooltipType==="qtip"?"data-qtip":"title"},getRefItems:function(a){var c=this.menu,b=[];if(c){if(a){b=c.getRefItems(a)}b.unshift(c)}return b},clearTip:function(){var b=this,a=b.el;if(Ext.quickTipsActive&&Ext.isObject(b.tooltip)){Ext.tip.QuickTipManager.unregister(a)}else{a.dom.removeAttribute(b.getTipAttr())}},doDestroy:function(){var a=this,b=a.menu;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.doDestroy.call(this)},setHandler:function(b,a){this.handler=b;if(arguments.length>1){this.scope=a}return this},updateText:function(d,a){d=d==null?"":String(d);a=a||"";var c=this,e=c.btnInnerEl,b=c.btnEl;if(c.rendered){e.setHtml(d||" ");b[d?"addCls":"removeCls"](c._textCls);b[d?"removeCls":"addCls"](c._noTextCls);c.updateLayout()}c.fireEvent("textchange",c,a,d)},didIconStateChange:function(a,c){var b=Ext.isEmpty(c);return Ext.isEmpty(a)?!b:b},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==false)},toggle:function(d,b){var c=this,a=c.ariaEl.dom;if(!c.enableToggle){return c}d=d===undefined?!c.pressed:!!d;if(c.fireEvent("beforetoggle",c,d)!==false){if(d!==c.pressed){c[d?"addCls":"removeCls"](c._pressedCls);c.pressed=d;if(a){a.setAttribute("aria-pressed",d)}if(!b){c.fireEvent("toggle",c,d);Ext.callback(c.toggleHandler,c.scope,[c,d],0,c);if(c.publishState){c.publishState("pressed",d)}}}}return c},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(a){var c=this,d=c.menu,b=!a||a.pointerType;if(d&&c.rendered){if(c.tooltip&&Ext.quickTipsActive&&c.getTipAttr()!=="title"){Ext.tip.QuickTipManager.getQuickTip().cancelShow(c.el)}if(d.isVisible()){if(b){d.hide()}else{d.focus()}}else{if(!a||c.showEmptyMenu||d.items.getCount()>0){d.autoFocus=!b;d.showBy(c.el,c.menuAlign)}}}return c},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(a,b){this.onClick(b)},onTouchStart:function(a){this.doPreventDefault(a)},onEnterKey:function(a){if(!this.href){this.onClick(a);a.stopEvent();return false}},onClick:function(b){var a=this;if(b){a.doPreventDefault(b)}if(b&&b.type!=="keydown"&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doToggle:function(){var a=this;if(a.allowDepress!==false||!a.pressed){a.toggle()}},doPreventDefault:function(a){if(a&&(this.preventDefault||(this.disabled&&this.getHref()))){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent("click",a,b)!==false&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,true,true)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,true,true)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(c){var a=this,b=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(c)){if(!b){a.onMenuTriggerOver(c)}}else{if(b){a.onMenuTriggerOut(c)}}}},isWithinTrigger:function(d){var c=this,b=c.el,g,a;g=(c.arrowAlign==="right")?d.getX()-c.getX():d.getY()-b.getY();a=c.getTriggerRegion();return g>a.begin&&g=0;c--){e=h[c];if(j.forceSelection&&!c&&!b){e.pressed=true}if(e.pressed){b=true;d=e.value;if(d==null){d=j.items.indexOf(e)}if(!Ext.Array.contains(l,d)){l.unshift(d)}}}}g=l.length;for(c=0;c-1){g=d.slice(g);g.splice(i,1)}}else{if(g===a){g=null}}}e.setValue(g);e.fireEvent("toggle",e,c,h)},_syncItemClasses:function(a){var h=this,b,d,k,g,e,l,j,c;if(!a&&!h.rendered){return}b=h._getFirstCls();d=h._middleCls;k=h._getLastCls();g=h.items.items;e=g.length;l=[];for(c=0;c1){l[0].addCls(b);for(c=1;c{iconMarkup}
role="{textElRole}">{text}
{iconMarkup}',iconTpl:'',_textAlignClasses:{left:"x-title-align-left",center:"x-title-align-center",right:"x-title-align-right"},_iconAlignClasses:{top:"x-title-icon-top",right:"x-title-icon-right",bottom:"x-title-icon-bottom",left:"x-title-icon-left"},_rotationClasses:{0:"x-title-rotate-none",1:"x-title-rotate-right",2:"x-title-rotate-left"},_rotationAngles:{1:90,2:270},baseCls:"x-title",_titleSuffix:"-title",_glyphCls:"x-title-glyph",_iconWrapCls:"x-title-icon-wrap",_baseIconCls:"x-title-icon",_itemCls:"x-title-item",_textCls:"x-title-text",afterComponentLayout:function(){var d=this,b=d.getRotation(),a,e,c;if(b&&!Ext.isIE8){c=d.el;a=d.lastBox;e=a.x;c.setStyle(d._getVerticalAdjustDirection(),(e+((b===1)?a.width:-a.height))+"px")}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var c=this,a=c.getRotation(),b=c.el;Ext.Component.prototype.onRender.call(this);if(a){b.setVertical(c._rotationAngles[a])}if(Ext.supports.FixedTableWidthBug){b._needsTableWidthFix=true}},applyText:function(a){if(!a){a=" "}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.lookupTpl("iconTpl").apply(this.getIconRenderData())},getIconRenderData:function(){var e=this,c=e.getIcon(),b=e.getIconCls(),d=e.getGlyph(),g,a=e.getIconAlign();if(d){g=d.fontFamily;d=d.character}return{id:e.id,ui:e.ui,itemCls:e._itemCls,iconUrl:c,iconCls:b,iconWrapCls:e._iconWrapCls,baseIconCls:e._baseIconCls,iconAlignCls:e._iconAlignClasses[a],glyph:d,glyphCls:d?e._glyphCls:"",glyphFontFamily:g}},initRenderData:function(){var b=this,a,c;c=Ext.apply({text:b.getText(),textElRole:b.textElRole,id:b.id,ui:b.ui,itemCls:b._itemCls,textCls:b._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(b._hasIcon()){a=b.getIconAlign();c.iconMarkup=b.getIconMarkup();c.iconBeforeTitle=(a==="top"||a==="left")}return c},onAdded:function(b,g,a){var d=this,e=d._titleSuffix,c=b.baseCls;d.addCls([c+e,c+e+"-"+b.ui]);Ext.Component.prototype.onAdded.call(this,b,g,a)},applyGlyph:function(b,a){if(b){if(!b.isGlyph){b=new Ext.Glyph(b)}if(b.isEqual(a)){b=undefined}}return b},updateGlyph:function(d,b){var c=this,e=c._glyphCls,a;if(c.rendered){c._syncIconVisibility();a=c.iconEl;if(d){a.dom.innerHTML=d.character;a.addCls(e);a.setStyle("font-family",d.fontFamily)}else{if(b!==d){a.dom.innerHTML="";a.removeCls(e)}}if(c._didIconStateChange(b,d)){c.updateLayout()}}},updateIcon:function(b,d){b=b||"";var c=this,a;if(c.rendered&&b!==d){c._syncIconVisibility();a=c.iconEl;a.setStyle("background-image",b?"url("+b+")":"");if(c._didIconStateChange(d,b)){c.updateLayout()}}},updateIconAlign:function(g,c){var b=this,e=b.iconWrapEl,a,d;if(b.iconWrapEl){a=b.el;d=b._iconAlignClasses;if(c){e.removeCls(d[c])}e.addCls(d[g]);if(g==="top"||g==="left"){a.insertFirst(e)}else{a.appendChild(e)}b.updateLayout()}},updateIconCls:function(b,c){b=b||"";var d=this,a;if(d.rendered&&c!==b){d._syncIconVisibility();a=d.iconEl;if(c){a.removeCls(c)}a.addCls(b);if(d._didIconStateChange(c,b)){d.updateLayout()}}},updateRotation:function(b,a){var d=this,c,e;if(d.rendered){c=d.el;e=d._rotationClasses;d.removeCls(e[a]);d.addCls(e[b]);c.setHorizontal();if(b){c.setVertical(d._rotationAngles[b])}c.setStyle({right:"",left:"",top:"",height:"",width:""});d.lastBox=null;d.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,b){var a=this,c=a._textAlignClasses;if(a.rendered){if(b){a.removeCls(c[b])}a.addCls(c[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return"left"},_didIconStateChange:function(a,c){var b=Ext.isEmpty(c);return Ext.isEmpty(a)?!b:b},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var e=this,d=e.el,a=e._hasIcon(),g=e.iconWrapEl,c,b;if(a&&!g){b=e.iconAlign;c=(b==="left"||b==="top");d.dom.insertAdjacentHTML(c?"afterbegin":"beforeend",e.getIconMarkup());g=e.iconWrapEl=d[c?"first":"last"]();e.iconEl=g.first()}if(g){g.setDisplayed(a)}}}},0,["title"],["component","box","title"],{component:true,box:true,title:true},["widget.title"],0,[Ext.panel,"Title"],0));(Ext.cmd.derive("Ext.panel.Tool",Ext.Component,{config:{glyph:null},isTool:true,baseCls:"x-tool",disabledCls:"x-tool-disabled",toolPressedCls:"x-tool-pressed",toolOverCls:"x-tool-over",childEls:["toolEl"],renderTpl:[''],toolOwner:null,tooltipType:"qtip",stopEvent:true,ariaRole:"button",focusable:true,tabIndex:0,keyMap:{scope:"this",SPACE:"onClick",ENTER:"onClick"},cacheHeight:true,cacheWidth:true,initComponent:function(){var a=this;a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},initRenderData:function(){var b=this,c=Ext.Component.prototype.initRenderData.call(this),a=b.getGlyph(),d;if(a){d=a.fontFamily;a=a.character}Ext.applyIf(c,{className:b.calculateClassName(),glyph:a,glyphFontFamily:d});return c},calculateClassName:function(){var b=this,a=b.baseCls+"-tool-el ";if(b.type){a+=b.baseCls+"-img "+b.baseCls+"-"+b.type}else{if(b.iconCls){a+=b.iconCls}}return a},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.call(this);if(a.setTypeAfterRender){a.setTypeAfterRender=false;a.setType(a.type)}a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:"data-qtip"},setTooltip:function(h,d){var e=this,b=e.tooltip,g=e.tooltipType,i=e.id,c=e.el,a;if(b&&Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.unregister(i)}e.tooltip=h;if(d){e.tooltipType=d}if(h){if(Ext.quickTipsActive&&Ext.isObject(h)){Ext.tip.QuickTipManager.register(Ext.apply({target:i},h))}else{if(c){if(d&&g&&d!==g){a=e.tipAttrs[g]||"title";c.dom.removeAttribute(a)}a=e.tipAttrs[d||g]||"title";c.dom.setAttribute(a,h)}}if(a!=="title"&&e.ariaRole&&e.ariaRole!=="presentation"){if(c){c.dom.setAttribute("aria-label",h)}else{e.ariaRenderAttributes=e.ariaRenderAttributes||{};e.ariaRenderAttributes["aria-label"]=h}}}},setType:function(g){var h=this,d=h.toolEl,e=h.updating,b=h.rendering,c,a;if(!e){c=h.calculateClassName();if(!b){h.updating=a=true}h.setIconCls(null);h.setGlyph(null)}h.type=g;if(a){h.updateToolCls(c);h.updating=false}else{if(b){h.setTypeAfterRender=true}}return h},setIconCls:function(d){var g=this,c=g.toolEl,e=g.updating,b,a;if(!e){b=g.calculateClassName();g.updating=a=true;g.setType(null);g.setGlyph(null)}g.iconCls=d;if(a){g.updateToolCls(b);g.updating=false}return g},doDestroy:function(){var a=this;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.doDestroy.call(this)},applyGlyph:function(b,a){if(b){if(!b.isGlyph){b=new Ext.Glyph(b)}if(b.isEqual(a)){b=undefined}}return b},updateGlyph:function(h,b){var g=this,d=g.toolEl,e=g.updating,c,a;if(!e){c=g.calculateClassName();g.updating=a=true;g.setType(null);g.setIconCls(null)}if(d){if(h){d.dom.innerHTML=h.character;d.setStyle(h.getStyle())}else{d.dom.innerHTML=""}}if(a){g.updateToolCls(c);g.updating=false}},privates:{onClick:function(c,b){var a=this;if(a.disabled){return false}if(c.type!=="keydown"){a.el.removeCls(a.toolPressedCls+" "+a.toolOverCls)}if(a.stopEvent!==false){c.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[c,b,a.ownerCt,a],0,a)}else{if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,c],0,a)}}if(a.destroyed){return}a.fireEvent("click",a,c,a.toolOwner||a.ownerCt);return true},onMouseDown:function(a){a.preventDefault();if(this.disabled){return false}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return false}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)},updateToolCls:function(b){var c=this,a=this.toolEl;if(a){a.removeCls(b);a.addCls(this.calculateClassName())}}}},0,["tool"],["component","box","tool"],{component:true,box:true,tool:true},["widget.tool"],0,[Ext.panel,"Tool"],0));(Ext.cmd.derive("Ext.util.KeyMap",Ext.Base,{alternateClassName:"Ext.KeyMap",eventName:"keydown",constructor:function(a){var b=this;if((arguments.length!==1)||(typeof a==="string")||a.dom||a.tagName||a===document||a.isComponent){b.legacyConstructor.apply(b,arguments);return}Ext.apply(b,a);b.bindings=[];if(!b.target.isComponent){b.target=Ext.get(b.target)}if(b.binding){b.addBinding(b.binding)}else{if(a.key){b.addBinding(a)}}b.enable()},legacyConstructor:function(b,d,a){var c=this;Ext.apply(c,{target:Ext.get(b),eventName:a||c.eventName,bindings:[]});if(d){c.addBinding(d)}c.enable()},addBinding:function(e){var c=this,d=e.key,b,a;if(c.processing){c.bindings=c.bindings.slice(0)}if(Ext.isArray(e)){for(b=0,a=e.length;b0?(h0?h+b:e-1);for(;;d+=b){if(h<0&&(d>=e||d<0)){return null}else{if(d>=e){d=-1;continue}else{if(d<0){d=e;continue}else{if(d===h){return null}}}}j=g[d];if(!j||!j.focusable||(j.disabled&&!c)){continue}if(k||(j.isFocusable&&j.isFocusable())){return j}}return null},isFocusableContainerActive:function(){var e=this,d=false,b=e.tabGuardBeforeEl,c=e.focusableContainerEl,g,a;if(b&&b.isTabbable&&b.isTabbable()){d=true}else{if(c.isTabbable&&c.isTabbable()){d=true}else{g=e.lastFocusedChild;a=g&&g.getFocusEl&&g.getFocusEl();if(a&&a.isTabbable&&a.isTabbable()){d=true}}}return d},onFocusEnter:function(c){var a=this,b=c.toComponent,d;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return null}if(b===a){d=a.initDefaultFocusable();if(d){d.focus();a.activateFocusableContainer(false)}}else{a.activateFocusableContainer(false)}return b},onFocusLeave:function(c){var b=this,a=b.lastFocusedChild;if(!b.enableFocusableContainer||b.destroying||b.destroyed){return}b.clearFocusables();if(a&&!a.disabled){b.activateFocusable(a)}else{b.activateFocusableContainer(true)}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(d){var c=this,a=c.activeChildTabIndex,b;b=c.findNextFocusableChild({child:d,step:-1});if(b){b.setTabIndex(a)}b=c.findNextFocusableChild({child:d,step:1});if(b){b.setTabIndex(a)}},afterFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}a.lastFocusedChild=b},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},doFocusableChildAdd:function(b){var a=this;if(b.focusable){b.focusableContainer=a;if(!a.$initingItems&&!a.isFocusableContainerActive()){a.activateFocusableContainer(true)}}},onFocusableChildRemove:function(a){if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}a.focusableContainer=null},doFocusableChildRemove:function(b){var a=this;if(b===a.lastFocusedChild){a.lastFocusedChild=null;a.activateFocusableContainer(true)}b=a.findNextFocusableChild({step:1,beforeRender:true});if(!b){a.activateFocusableContainer(false)}},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(b!==a.lastFocusedChild){a.deactivateFocusable(b);if(!a.isFocusableContainerActive()){a.activateFocusableContainer(true)}}},beforeFocusableChildDisable:function(c){var b=this,a;if(!b.enableFocusableContainer||b.destroying||b.destroyed){return}if(c.hasFocus){a=b.findNextFocusableChild({child:c})||c.findFocusTarget();if(a){a.focus()}}},onFocusableChildDisable:function(d){var c=this,a=c.lastFocusedChild,b;if(!c.enableFocusableContainer||c.destroying||c.destroyed){return}if(d===a){c.activateFocusableContainer(true)}b=c.findNextFocusableChild({step:1});if(!b){c.activateFocusableContainer(false)}},beforeFocusableChildHide:function(a){return this.beforeFocusableChildDisable(a)},onFocusableChildHide:function(a){return this.onFocusableChildDisable(a)},beforeFocusableChildShow:function(a){return this.beforeFocusableChildEnable(a)},onFocusableChildShow:function(a){return this.onFocusableChildEnable(a)},onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,"FocusableContainer"],0));(Ext.cmd.derive("Ext.panel.Header",Ext.panel.Bar,{isHeader:true,defaultType:"tool",indicateDrag:false,weight:-1,shrinkWrap:3,iconAlign:"left",titleAlign:"left",titlePosition:0,titleRotation:"default",autoEl:{role:"presentation"},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:"title",flex:1},merge:function(b,a){if(typeof b!=="object"){b={text:b}}return Ext.merge(a?Ext.Object.chain(a):{},b)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:"x-header",initComponent:function(){var d=this,c=d.items,b=d.itemPosition,a=[d.headerCls];d.tools=d.tools||[];d.items=c=(c?c.slice():[]);if(b!==undefined){d._userItems=c.slice();d.items=c=[]}d.indicateDragCls=d.headerCls+"-draggable";if(d.indicateDrag){a.push(d.indicateDragCls)}d.addCls(a);d.syncNoBorderCls();Ext.Array.push(c,d.tools);d.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);d.on({dblclick:d.onDblClick,click:d.onClick,element:"el",scope:d})},addTool:function(a){var b=this;b.add(Ext.ComponentManager.create(a,"tool"));b.checkFocusableTools()},afterLayout:function(){var b=this,e,a,c,d;if(b.vertical){a=b.frameTR;if(a){e=b.frameBR;c=b.frameTL;d=(b.getWidth()-a.getPadding("r")-((c)?c.getPadding("l"):b.el.getBorderWidth("l")))+"px";e.setStyle("background-position-x",d);a.setStyle("background-position-x",d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(e,c){var d=this,a,b;e=e||"";a=Ext.isString(e);if(!Ext.isObject(e)){e={text:e.toString()}}if(c){Ext.suspendLayouts();c.setConfig(e);Ext.resumeLayouts(true);e=c}else{if(a){e.xtype="title"}e.ui=d.ui;b=("rotation" in e);e.id=d.id+"-title";if(d.isAccordionHeader){e.ariaRole="tab";e.textElRole=null;e.focusable=true}e=Ext.create(e);if(!b&&d.vertical&&d.titleRotation==="default"){e.rotation=1}}return e},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var b=this,a=b.itemPosition;b.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(a!==undefined){b.insert(a,b._userItems)}b.checkFocusableTools()},checkFocusableTools:function(){var c=this,d=c.tools,e,b,a;if(c.isAccordionHeader){c.enableFocusableContainer=false;return}for(b=0,a=d.length;bb){if(l){m.removeCls(e)}m.addCls(n)}}}},syncNoBorderCls:function(){var b=this,a=this.ownerCt,c=b.headerCls+"-noborder";if(a?(a.border===false&&!a.frame):b.border===false){b.addCls(c)}else{b.removeCls(c)}}}},0,["header"],["component","box","container","header"],{component:true,box:true,container:true,header:true},["widget.header"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.panel,"Header"],0));(Ext.cmd.derive("Ext.layout.container.boxOverflow.None",Ext.Base,{alternateClassName:"Ext.layout.boxOverflow.None",factoryConfig:{defaultType:"none"},isBoxOverflowHandler:true,$configPrefixed:false,$configStrict:false,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var a=this,c=b.state.boxPlan,d;if(c&&c.tooNarrow){d=a.handleOverflow(b);if(d){if(d.reservedSpace){a.layout.publishInnerCtSize(b,d.reservedSpace)}}}else{a.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(d){var c=this,a=c.layout.owner,b,e;if(a.hasListeners.overflowchange){b=a.query(">[hidden]");e=b.length;if(e!==c.lastHiddenCount){a.fireEvent("overflowchange",c.lastHiddenCount,e,b);c.lastHiddenCount=e}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(a){var b;if(a.isToolbar){b="toolbar"}else{if(a.isTabBar){b="tab-bar"}else{if(a.isMenu){b="menu"}else{if(a.isBreadcrumb){b="breadcrumb"}else{b=a.getXType()}}}}return b},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return""},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,["box.overflow.None","box.overflow.none"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,"None",Ext.layout.boxOverflow,"None"],0));(Ext.cmd.derive("Ext.layout.container.boxOverflow.Scroller",Ext.layout.container.boxOverflow.None,{alternateClassName:"Ext.layout.boxOverflow.Scroller",animateScroll:false,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:"x-box-scroller",beforeSuffix:"-before-scroller",afterSuffix:"-after-scroller",constructor:function(a){var b=this;b.mixins.observable.constructor.call(b,a);b.scrollPosition=0;b.scrollSize=0},getPrefixConfig:function(){return{role:"presentation",id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls("beforeX"),style:"display:none"}},getSuffixConfig:function(){return{role:"presentation",id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls("afterX"),style:"display:none"}},createScrollerCls:function(e){var h=this,g=h.layout,b=g.owner,d=h.getOwnerType(b),a=h.scrollerCls,c=a+" "+a+"-"+g.names[e]+" "+a+"-"+d+" "+a+"-"+d+"-"+b.ui;if(b.plain){c+=" "+a+"-plain"}return c},getOverflowCls:function(a){return this.scrollerCls+"-body-"+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(d){var c=this,g=d.state.boxPlan,b=c.layout,e=b.names,h=Math.min(c.getMaxScrollPosition(),d.innerCtScrollPos),a;if(g&&g.tooNarrow){a=d.childItems[d.childItems.length-1].props;c.scrollSize=a[e.x]+a[e.width];c.updateScrollButtons();b.innerCt[e.setScrollLeft](h)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,d)},handleOverflow:function(b){var h=this,g=h.layout.names,i=g.getWidth,j=g.parallelMargins,c,e,d,a;h.showScrollers();d=h.getBeforeScroller();a=h.getAfterScroller();c=d[i]()+a[i]()+d.getMargin(j)+a.getMargin(j);e=b.targetContext.getPaddingInfo()[g.width];return{reservedSpace:Math.max(c-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,"beforeRepeater","scrollLeft"))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,"afterRepeater","scrollRight"))},createScroller:function(g,d,h){var e=this,c=e.layout.owner,b=e.scrollerCls,a;a=c.el.getById(c.id+g);a.addClsOnOver(b+"-hover");a.addClsOnClick(b+"-pressed");a.setVisibilityMode(Ext.Element.DISPLAY);e[d]=new Ext.util.ClickRepeater(a,{interval:e.scrollRepeatInterval,handler:h,scope:e});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on("mousewheel",a.onMouseWheel,a,{destroyable:true})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,false)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==="vertical"?"vertical-scroller":"scroller")},hideScrollers:function(){var b=this,c=b.getBeforeScroller(),a=b.getAfterScroller();if(c){c.hide();a.hide();b.layout.owner.removeClsWithUI(b.layout.direction==="vertical"?"vertical-scroller":"scroller")}},destroy:function(){Ext.destroyMembers(this,"beforeRepeater","afterRepeater","_beforeScroller","_afterScroller","wheelListener");this.callParent()},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return{duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var b=this,d=b.getBeforeScroller(),a=b.getAfterScroller(),c;if(!d||!a){return}c=b.scrollerCls+"-disabled";d[b.atExtremeBefore()?"addCls":"removeCls"](c);a[b.atExtremeAfter()?"addCls":"removeCls"](c);b.scrolling=false},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,false)},scrollRight:function(){this.scrollBy(this.scrollIncrement,false)},getScrollPosition:function(){var c=this,b=c.layout,a;if(isNaN(c.scrollPosition)){a=b.innerCt[b.names.getScrollLeft]()}else{a=c.scrollPosition}return a},getMaxScrollPosition:function(){var b=this,a=b.layout,c=b.scrollSize-a.innerCt.lastBox[a.names.width];return(c<0)?0:c},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),b=c.getAfterScroller(),e=c.layout.names,a=c.scrollerCls;d.removeCls(a+"-"+e.beforeY);b.removeCls(a+"-"+e.afterY);d.addCls(a+"-"+e.beforeX);b.addCls(a+"-"+e.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(a,b){var g=this,e=g.layout,h=e.names,d=g.getScrollPosition(),c=Ext.Number.constrain(a,0,g.getMaxScrollPosition());if(c!==d&&!g.scrolling){g.scrollPosition=NaN;if(b===undefined){b=g.animateScroll}e.innerCt[h.scrollTo](h.beforeScrollX,c,b?g.getScrollAnim():false);if(b){g.scrolling=true}else{g.updateScrollButtons()}g.fireEvent("scroll",g,c,b?g.getScrollAnim():false)}},scrollToItem:function(k,c){var j=this,g=j.layout,d=g.owner,i=g.names,b=g.innerCt,a,e,h;k=j.getItem(k);if(k!==undefined){if(k===d.items.first()){h=0}else{if(k===d.items.last()){h=j.getMaxScrollPosition()}else{a=j.getItemVisibility(k);if(!a.fullyVisible){e=k.getBox(false,true);h=e[i.x];if(a.hiddenEnd){h-=(b[i.getWidth]()-e[i.width])}}}}if(h!==undefined){j.scrollTo(h,c)}}},getItemVisibility:function(j){var h=this,b=h.getItem(j).getBox(true,true),c=h.layout,g=c.names,e=b[g.x],d=e+b[g.width],a=h.getScrollPosition(),i=a+c.innerCt[g.getWidth]();return{hiddenStart:ei,fullyVisible:e>=a&&d<=i}}},1,0,0,0,["box.overflow.Scroller","box.overflow.scroller"],[["observable",Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,"Scroller",Ext.layout.boxOverflow,"Scroller"],0));(Ext.cmd.derive("Ext.dd.DragDropManager",Ext.Base,{singleton:true,alternateClassName:["Ext.dd.DragDropMgr","Ext.dd.DDM"],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:false,initialized:false,locked:false,init:function(){this.initialized=true},POINT:0,INTERSECT:1,mode:0,notifyOccluded:false,dragCls:"x-dd-drag-current",currentPoint:new Ext.util.Point(),_execOnAll:function(c,b){var e=this.ids,d,a,h,g;for(d in e){if(e.hasOwnProperty(d)){g=e[d];for(a in g){if(g.hasOwnProperty(a)){h=g[a];if(!this.isTypeOfDD(h)){continue}h[c].apply(h,b)}}}}},addListeners:function(){var a=this;a.init();Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},_onResize:function(a){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:8,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(h,b){var e=this,c=e.ids,a=h.groups,d;if(e.clearingAll){return}if(e.dragCurrent===h){e.dragCurrent=null}for(d in a){if(a.hasOwnProperty(d)){if(b){delete c[d]}else{if(c[d]){delete c[d][h.id]}}}}delete e.handleIds[h.id];delete e.locationCache[h.id]},regHandle:function(b,a){if(!this.handleIds[b]){this.handleIds[b]={}}this.handleIds[b][a]=a},isDragDrop:function(a){return(this.getDDById(a))?true:false},getRelated:function(g,b){var e=[],d,c,a;for(d in g.groups){for(c in this.ids[d]){a=this.ids[d][c];if(!this.isTypeOfDD(a)){continue}if(!b||a.isTarget){e[e.length]=a}}}return e},isLegalTarget:function(e,d){var b=this.getRelated(e,true),c,a;for(c=0,a=b.length;ch.clickPixelThresh||c>h.clickPixelThresh){j.claimGesture();h.startDrag(h.startX,h.startY)}}if(h.dragThreshMet){i.b4Drag(j);i.onDrag(j);if(!i.moveOnly){h.fireEvents(j,false)}}h.stopEvent(j);return true},fireEvents:function(u,m){var w=this,n=Ext.supports.Touch,g=w.dragCurrent,s=w.currentPoint,o=[],h=[],k=[],a=[],v=[],t=[],c,d,l,b,q,r,p,j;if(!g||g.isLocked()){return}j=!(g.deltaX<0||g.deltaY<0);if(n||(!w.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&j)){c=g.getDragEl();if(j){c.style.visibility="hidden"}u=u.chain({target:w.elementFromPoint(u.clientX,u.clientY)||document.documentElement});if(j){c.style.visibility="visible"}}for(q in w.dragOvers){d=w.dragOvers[q];delete w.dragOvers[q];if(!w.isTypeOfDD(d)||d.destroyed){continue}if(m){k.push(d)}else{if(w.notifyOccluded){if(!this.isOverTarget(s,d,w.mode)){k.push(d)}}else{if(!u.within(d.getEl())){k.push(d)}}}h[q]=true}for(p in g.groups){if("string"!==typeof p){continue}for(q in w.ids[p]){d=w.ids[p][q];if(w.isTypeOfDD(d)&&(l=d.getEl())&&(d.isTarget)&&(!d.isLocked())&&(Ext.fly(l).isVisible(true))&&((d!==g)||(g.ignoreSelf===false))){if(w.notifyOccluded){if((d.zIndex=w.getZIndex(l))!==-1){b=true}o.push(d)}else{if(u.within(d.getEl())){o.push(d);break}}}}}if(b){Ext.Array.sort(o,w.byZIndex)}for(q=0,r=o.length;q','",""],isSplitter:true,baseCls:"x-splitter",collapsedClsInternal:"x-splitter-collapsed",canResize:true,collapsible:null,collapseOnDblClick:true,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:"next",horizontal:false,vertical:false,touchAction:undefined,size:5,tracker:null,ariaRole:"separator",focusable:true,tabIndex:0,applyTouchAction:function(a,b){if(a===undefined){a=this.vertical?{panX:false}:{panY:false}}return Ext.Component.prototype.applyTouchAction.call(this,a,b)},getTrackerConfig:function(){return Ext.apply({xclass:"Ext.resizer.SplitterTracker",el:this.el,splitter:this},this.tracker)},beforeRender:function(){var c=this,d=c.getCollapseTarget(),b=c.collapsible,a;Ext.Component.prototype.beforeRender.call(this);if(d.collapsed){c.addCls(c.collapsedClsInternal)}if(!c.canResize){c.addCls(c.baseCls+"-noresize")}Ext.applyIf(c.renderData,{collapseDir:c.getCollapseDirection(),collapsible:(b!==null)?b:d.collapsible});c.ariaRenderAttributes=c.ariaRenderAttributes||{};c.ariaRenderAttributes["aria-orientation"]=c.orientation;c.protoEl.unselectable()},onRender:function(){var b=this,c,a;Ext.Component.prototype.onRender.apply(this,arguments);if(b.performCollapse!==false){if(b.renderData.collapsible){b.mon(b.collapseEl,"click",b.toggleTargetCmp,b)}if(b.collapseOnDblClick){b.mon(b.el,"dblclick",b.toggleTargetCmp,b)}}c=b.getCollapseTarget();if(c&&c.isPanel){c.on({collapse:b.onTargetCollapse,expand:b.onTargetExpand,beforeexpand:b.onBeforeTargetExpand,beforecollapse:b.onBeforeTargetCollapse,scope:b})}if(b.canResize){b.tracker=Ext.create(b.getTrackerConfig());b.relayEvents(b.tracker,["beforedragstart","dragstart","dragend"])}a=b.collapseEl;if(a){a.lastCollapseDirCls=b.collapseDirProps[b.collapseDirection].cls}},getCollapseDirection:function(){var g=this,c=g.collapseDirection,e,a,b,d;if(!c){e=g.collapseTarget;if(e.isComponent){c=e.collapseDirection}if(!c){d=g.ownerCt.layout.type;if(e.isComponent){b=g.ownerCt.items;a=Number(b.indexOf(e)===b.indexOf(g)-1)<<1|Number(d==="hbox")}else{a=Number(g.collapseTarget==="prev")<<1|Number(d==="hbox")}c=["bottom","right","top","left"][a]}g.collapseDirection=c}g.setOrientation((c==="top"||c==="bottom")?"horizontal":"vertical");return c},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==="prev"?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl("none")},onBeforeTargetCollapse:function(){this.setCollapseEl("none")},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==="vertical"?"collapsedHorizontal":"collapsedVertical"]()){a.el.addCls(a.collapsedClsInternal+" "+(a.collapsedCls||""))}a.setCollapseEl("")},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+" "+(a.collapsedCls||""));a.setCollapseEl("")},collapseDirProps:{top:{cls:"x-layout-split-top"},right:{cls:"x-layout-split-right"},bottom:{cls:"x-layout-split-bottom"},left:{cls:"x-layout-split-left"}},orientationProps:{horizontal:{opposite:"vertical",fixedAxis:"height",stretchedAxis:"width"},vertical:{opposite:"horizontal",fixedAxis:"width",stretchedAxis:"height"}},applyCollapseDirection:function(){var c=this,b=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],a;if(b){a=b.lastCollapseDirCls;if(a){b.removeCls(a)}b.addCls(b.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var e=this,c=e.orientation,d=e.orientationProps[c],g=e.size,b=d.fixedAxis,h=d.stretchedAxis,a=e.baseCls+"-";e[c]=true;e[d.opposite]=false;if(!e.hasOwnProperty(b)||e[b]==="100%"){e[b]=g}if(!e.hasOwnProperty(h)||e[h]===g){e[h]="100%"}e.removeCls(a+d.opposite);e.addCls(a+c)},setOrientation:function(a){var b=this;if(b.orientation!==a){b.orientation=a;b.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,b){var c=this.getCollapseTarget(),g=c.placeholder,a;if(Ext.isFunction(c.expand)&&Ext.isFunction(c.collapse)){if(g&&!g.hidden){a=true}else{a=!c.hidden}if(a){if(c.collapsed||c.floatedFromCollapse){c.expand()}else{if(c.collapseDirection){c.collapse()}else{c.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},doDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.doDestroy.call(this)}},0,["splitter"],["component","box","splitter"],{component:true,box:true,splitter:true},["widget.splitter"],0,[Ext.resizer,"Splitter"],0));(Ext.cmd.derive("Ext.layout.container.Box",Ext.layout.container.Container,{alternateClassName:"Ext.layout.BoxLayout",type:"box",config:{align:"begin",constrainAlign:false,enableSplitters:true,overflowHandler:{$value:null,merge:function(b,a){if(typeof b==="string"){b={type:b}}return Ext.merge(a?Ext.Object.chain(a):{},b)}},padding:0,pack:"start",stretchMaxPartner:undefined,vertical:false,alignRoundingMethod:"round"},itemCls:"x-box-item",targetCls:"x-box-layout-ct",targetElCls:"x-box-target",innerCls:"x-box-inner",manageMargins:true,createsInnerCt:true,childEls:["innerCt","targetEl"],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:true,definitions:"var dh=Ext.DomHelper;"}],constructor:function(a){var c=this,b;Ext.layout.container.Container.prototype.constructor.call(this,a);c.setVertical(c.vertical);c.flexSortFn=c.flexSort.bind(c);b=typeof c.padding;if(b==="string"||b==="number"){c.padding=Ext.util.Format.parseBox(c.padding);c.padding.height=c.padding.top+c.padding.bottom;c.padding.width=c.padding.left+c.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(q,r){var l=this,j=l.sizePolicy,h=l.align,g=q.flex,o=h,k=l.names,i=k.height,n=k.width,b=q[n],p=q[i],d=l._percentageRe,c=d.test(b),e=(h==="stretch"),a=(h==="stretchmax"),m=l.constrainAlign;if(!r&&(e||g||c||(m&&!a))){r=l.owner.getSizeModel()}if(e){if(!d.test(p)&&r[i].shrinkWrap){o="stretchmax"}}else{if(!a){if(d.test(p)){o="stretch"}else{if(m&&!r[i].shrinkWrap){o="stretchmax"}else{o=""}}}}if(g||c){if(!r[n].shrinkWrap){j=j.flex}}return j[o]},flexSort:function(o,n){var l=this.names.maxWidth,e=this.names.minWidth,m=Infinity,k=o.target,r=n.target,i=k.flex,h=r.flex,s=0,c,p,j,d,q,g;j=k[l]||m;d=r[l]||m;c=k[e]||0;p=r[e]||0;q=isFinite(c)||isFinite(p);g=isFinite(j)||isFinite(d);if(q||g){if(g){s=j-d}if(s===0&&q){s=p-c}if(s===0){if(g){s=h-i}else{s=i-h}}}return s},isItemBoxParent:function(a){return true},isItemShrinkWrap:function(a){return true},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(b){var a=this;if(a.direction==="vertical"&&b.collapsedVertical()){b.collapseMemento.capture(["flex"]);delete b.flex}else{if(a.direction==="horizontal"&&b.collapsedHorizontal()){b.collapseMemento.capture(["flex"]);delete b.flex}}},beginExpand:function(a){a.collapseMemento.restore(["flex"])},beginLayout:function(e){var d=this,a=d.owner,h=a.stretchMaxPartner,c=d.innerCt.dom.style,g=d.names,b=d.overflowHandler;e.boxNames=g;if(b){b.beginLayout(e)}if(typeof h==="string"){h=Ext.getCmp(h)||a.query(h)[0]}e.stretchMaxPartner=h&&e.context.getCmp(h);Ext.layout.container.Container.prototype.beginLayout.call(this,e);e.innerCtContext=e.getEl("innerCt",d);e.targetElContext=e.getEl("targetEl",d);e.ownerScrollable=a.getScrollable();c.width=c.height=""},beginLayoutCycle:function(d,n){var k=this,a=d.state,l=d.ownerScrollable,i=k.align,j=d.boxNames,m=k.pack,c=k._centerRe,e=k.overflowHandler,b=d.state.canScroll,h,g;if(e){e.beginLayoutCycle(d,n)}Ext.layout.container.Container.prototype.beginLayoutCycle.call(this,d,n);d.parallelSizeModel=h=d[j.widthModel];d.perpendicularSizeModel=g=d[j.heightModel];d.boxOptions={align:i={stretch:i==="stretch",stretchmax:i==="stretchmax",center:c.test(i),bottom:k._endRe.test(i)},pack:m={center:c.test(m),end:m==="end"}};if(l){if(!b){a.canScroll={parallel:!h.shrinkWrap&&l[j.getX](),perpendicular:!g.shrinkWrap&&l[j.getY]()}}if(!a.actualScroll){a.actualScroll={parallel:false,perpendicular:false}}}if(i.stretch&&g.shrinkWrap){i.stretchmax=true;i.stretch=false}i.nostretch=!(i.stretch||i.stretchmax);if(h.shrinkWrap){m.center=m.end=false}k.cacheFlexes(d);k.targetEl.setWidth(20000)},cacheFlexes:function(m){var B=this,n=m.boxNames,a=n.widthModel,h=n.heightModel,c=m.boxOptions.align.nostretch,t=0,b=m.childItems,v=b.length,z=[],o=0,w=0,s=0,l=n.minWidth,y=n.minHeight,j=B._percentageRe,x=0,A=0,g,q,u,k,d,e,r,p;while(v--){q=b[v];g=q.target;e=q[a];if(e.calculated){q.flex=u=g.flex;if(u){t+=u;z.push(q);o+=g[l]||0}else{if((k=j.exec(g[n.width]))){q.percentageParallel=parseFloat(k[1])/100;++x}}}if(e.configured){r=g[n.width]}else{r=g[l]||0}s+=r;d=q[h];if(c&&d.calculated){k=j.exec(g[n.height]);q.percentagePerpendicular=parseFloat(k[1])/100;++A}if(d.configured){p=g[n.height]}else{p=g[y]||0}if(p>w){w=p}}m.flexedItems=z;m.flexedMinWidth=o;m.smallestWidth=s;m.smallestHeight=w;m.totalFlex=t;m.percentageWidths=x;m.percentageHeights=A;Ext.Array.sort(z,B.flexSortFn)},calculate:function(c){var h=this,g=c.boxNames,a=c.state,e=a.actualScroll,j=a.needsScroll,b=a.canScroll,i=a.boxPlan||(a.boxPlan={}),d=h.overflowHandler;i.targetSize=h.getContainerSize(c);if(b&&!j){a.needsScroll=j={parallel:b.parallel&&i.targetSize[g.width]o){r.invalidate({before:F,after:C,layout:t,childHeight:o,names:M});v.state.parallelDone=false}if(isNaN(H=m(H,E+w,r.target[M.minHeight]||0))){return false}}}if(L){H+=a;v[M.hasOverflowX]=true;v.target.componentLayout[M.setHeightInDom]=true;v[M.invalidateScrollX]=Ext.isIE8}e=v.stretchMaxPartner;if(e){v.setProp("maxChildHeight",H);N=e.childItems;if(N&&N.length){H=m(H,e.getProp("maxChildHeight"));if(isNaN(H)){return false}}}v[M.setContentHeight](H+t.padding[l]+v.targetContext.getPaddingInfo()[l]);if(L){H-=a}if(H>b[l]&&u&&u.perpendicular){Q.actualScroll.perpendicular=true}B.maxSize=H;if(q){c=H}else{if(P||O||D){if(I){c=d?H:o}else{c=d?H:m(o,H)}c-=v.innerCtContext.getBorderInfo()[l]}}for(K=0;K0){z=k+Math[t.alignRoundingMethod](y/2)}}else{if(O){z=m(0,c-z-r.props[l])}}}r.setProp(s,z)}return true},onBeforeConstrainInvalidateChild:function(b,a){var c=a.names.heightModel;if(!b[c].constrainedMin){b[c]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(b,a){var c=a.names;b.setProp(c.beforeY,0);if(b[c.heightModel].calculated){b[c.setHeight](a.childHeight)}},calculateStretchMax:function(c,k,m){var l=this,h=k.height,n=k.width,g=c.childItems,a=g.length,p=m.maxSize,o=l.onBeforeStretchMaxInvalidateChild,e=l.onAfterStretchMaxInvalidateChild,q,j,d,b;for(d=0;d":{xtype:"tbfill",height:0}},1:{"->":{xtype:"tbfill",width:0}}}},initComponent:function(){var c=this,b=c.layout,a=c.vertical;if(a===undefined){c.vertical=a=c.dock==="right"||c.dock==="left"}c.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:a?"vbox":"hbox",align:a?"stretchmax":"middle"});if(c.overflowHandler){b.overflowHandler=c.overflowHandler}else{if(c.enableOverflow){b.overflowHandler="menu"}}if(a){c.addClsWithUI("vertical")}if(c.ui==="footer"){c.ignoreBorderManagement=true}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(a){var e=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),d=e.layout,c;if(a&&(e.enableOverflow||(e.overflowHandler==="menu"))){c=d.overflowHandler;if(c&&c.menu){b=b.concat(c.menu.getRefItems(a))}}return b},lookupComponent:function(e){var d=arguments,a,b;if(typeof e==="string"&&e[0]!=="@"){b=Ext.toolbar.Toolbar;a=b.shortcutsHV[this.vertical?1:0][e]||b.shortcuts[e];if(typeof a==="string"){e={xtype:a}}else{if(a){e=Ext.apply({},a)}else{e={xtype:"tbtext",text:e}}}this.applyDefaults(e);d=[e]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(b){var c=this,d=c.ui==="footer",a=d?c.defaultFooterButtonUI:c.defaultButtonUI;if(b.isSegmentedButton){if(b.getDefaultUI()==="default"&&!b.config.hasOwnProperty("defaultUI")){b.setDefaultUI(a)}}else{if(b.ui==="default"&&!b.hasOwnProperty("ui")){if(b.isButton){b.ui=a}else{if(b.isFormField){b.ui=d?c.defaultFooterFieldUI:c.defaultFieldUI}}}}if(b instanceof Ext.toolbar.Separator){b.setUI(c.vertical?"vertical":"horizontal")}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){var b=this;if(a.needArrowKeys&&b.enableFocusableContainer){b.enableFocusableContainer=false;b.ariaRole="group"}Ext.container.Container.prototype.onAdd.apply(this,arguments);b.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,true)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(c,a){var b=this;if(b.trackMenus&&c.menu){c[a?"un":"on"]({mouseover:b.onButtonOver,menushow:b.onButtonMenuShow,menuhide:b.onButtonMenuHide,scope:b})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(b,c){var a=this.activeMenuBtn;if(a&&a!==b){a.hideMenu();b.focus();b.showMenu(c);this.activeMenuBtn=b}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,["toolbar"],["component","box","container","toolbar"],{component:true,box:true,container:true,toolbar:true},["widget.toolbar"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,"Toolbar",Ext,"Toolbar"],0));(Ext.cmd.derive("Ext.dd.DragDrop",Ext.Base,{constructor:function(c,a,b){if(c){this.init(c,a,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},moveOnly:false,unlock:function(){this.locked=false},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,triggerEvent:"mousedown",b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(a,b){},b4DragOver:function(a){},onDragOver:function(a,b){},b4DragOut:function(a){},onDragOut:function(a,b){},b4DragDrop:function(a){},onDragDrop:function(a,b){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(e,b,l){if(Ext.isNumber(b)){b={left:b,right:b,top:b,bottom:b}}b=b||this.defaultPadding;var h=Ext.get(this.getEl()).getBox(),m=Ext.get(e),k=m.getScroll(),g,i=m.dom,j,d,a;if(i===document.body){g={x:k.left,y:k.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else{j=m.getXY();g={x:j[0],y:j[1],width:i.clientWidth,height:i.clientHeight}}d=h.y-g.y;a=h.x-g.x;this.resetConstraints();this.setXConstraint(a-(b.left||0),g.width-a-h.width-(b.right||0),this.xTickSize);this.setYConstraint(d-(b.top||0),g.height-d-h.height-(b.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(d,a,b){var c=this;c.el=c.el||Ext.get(d);c.initTarget(d,a,b);Ext.get(c.id).on(c.triggerEvent,c.handleMouseDown,c);if(Ext.supports.Touch&&c.triggerEvent==="longpress"){Ext.get(c.id).swallowEvent("contextmenu",true)}},initTarget:function(c,a,b){this.config=b||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof c!=="string"){c=Ext.id(c)}this.id=c;this.addToGroup((a)?a:"default");this.handleElId=c;this.setDragElId(c);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(c,a,d,b){if(!a&&0!==a){this.padding=[c,c,c,c]}else{if(!d&&0!==d){this.padding=[c,a,c,a]}else{this.padding=[c,a,d,b]}}},setInitPosition:function(d,c){var e=this.getEl(),b,a,g;if(!this.DDMInstance.verifyEl(e)){return}b=d||0;a=c||0;g=Ext.fly(e).getXY();this.initPageX=g[0]-b;this.initPageY=g[1]-a;this.lastPageX=g[0];this.lastPageY=g[1];this.setStartPosition(g)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=true;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=="string"){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=="string"){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=true},unreg:function(){var b=this,a;if(b._domRef){a=Ext.fly(b.id);if(a){a.un(b.triggerEvent,b.handleMouseDown,b)}}b._domRef=null;b.DDMInstance._remove(b,b.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return(this.DDMInstance.isLocked()||this.locked)},handleMouseDown:function(c,b){var a=this;if((a.primaryButtonOnly&&c.button)||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(c.getPoint(),a)){if(a.clickValidator(c)){a.setStartPosition();a.b4MouseDown(c);a.onMouseDown(c);a.DDMInstance.handleMouseDown(c,a);a.DDMInstance.stopEvent(c)}}},clickValidator:function(b){var a=b.getTarget();return(this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id)))},addInvalidHandleType:function(a){var b=a.toUpperCase();this.invalidHandleTypes[b]=b},addInvalidHandleId:function(a){if(typeof a!=="string"){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=="string"){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(b){var d=this.invalidHandleClasses,a=d.length,c;for(c=0;c=this.minX;b=b-a){if(!c[b]){this.xTicks[this.xTicks.length]=b;c[b]=true}}for(b=this.initPageX;b<=this.maxX;b=b+a){if(!c[b]){this.xTicks[this.xTicks.length]=b;c[b]=true}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,a){this.yTicks=[];this.yTickSize=a;var c={},b;for(b=this.initPageY;b>=this.minY;b=b-a){if(!c[b]){this.yTicks[this.yTicks.length]=b;c[b]=true}}for(b=this.initPageY;b<=this.maxY;b=b+a){if(!c[b]){this.yTicks[this.yTicks.length]=b;c[b]=true}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}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(a,c,b){this.topConstraint=a;this.bottomConstraint=c;this.minY=this.initPageY-a;this.maxY=this.initPageY+c;if(b){this.setYTicks(this.initPageY,b)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var b=(this.maintainOffset)?this.lastPageX-this.initPageX:0,a=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(b,a)}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(h,d){if(!d){return h}else{if(d[0]>=h){return d[0]}else{var b,a,c,g,e;for(b=0,a=d.length;b=h){g=h-d[b];e=d[c]-h;return(e>g)?d[b]:d[c]}}return d[d.length-1]}}},toString:function(){return("DragDrop "+this.id)}},3,0,0,0,0,0,[Ext.dd,"DragDrop"],0));(Ext.cmd.derive("Ext.dd.DD",Ext.dd.DragDrop,{constructor:function(c,a,b){if(c){this.init(c,a,b)}},scroll:true,autoOffset:function(c,b){var a=c-this.startPageX,d=b-this.startPageY;this.setDelta(a,d)},setDelta:function(b,a){this.deltaX=b;this.deltaY=a},setDragElPos:function(c,b){var a=this.getDragEl();this.alignElWithMouse(a,c,b)},alignElWithMouse:function(b,e,c){var g=this.getTargetCoord(e,c),d=b.dom?b:Ext.fly(b,"_dd"),l=d.getSize(),i=Ext.Element,j,a,k,h;if(!this.deltaSetXY){j=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};a=[Math.max(0,Math.min(g.x,j.width-l.width)),Math.max(0,Math.min(g.y,j.height-l.height))];d.setXY(a);k=this.getLocalX(d);h=d.getLocalY();this.deltaSetXY=[k-g.x,h-g.y]}else{j=this.cachedViewportSize;this.setLocalXY(d,Math.max(0,Math.min(g.x+this.deltaSetXY[0],j.width-l.width)),Math.max(0,Math.min(g.y+this.deltaSetXY[1],j.height-l.height)))}this.cachePosition(g.x,g.y);this.autoScroll(g.x,g.y,b.offsetHeight,b.offsetWidth);return g},cachePosition:function(b,a){if(b){this.lastPageX=b;this.lastPageY=a}else{var c=Ext.fly(this.getEl()).getXY();this.lastPageX=c[0];this.lastPageY=c[1]}},autoScroll:function(l,k,e,m){if(this.scroll){var n=Ext.Element.getViewportHeight(),b=Ext.Element.getViewportWidth(),p=this.DDMInstance.getScrollTop(),d=this.DDMInstance.getScrollLeft(),j=e+k,o=m+l,i=(n+p-k-this.deltaY),g=(b+d-l-this.deltaX),c=40,a=(document.all)?80:30;if(j>n&&i0&&k-pb&&g0&&l-dthis.maxX){a=this.maxX}}if(this.constrainY){if(dthis.maxY){d=this.maxY}}a=this.getTick(a,this.xTicks);d=this.getTick(d,this.yTicks);return{x:a,y:d}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return("DD "+this.id)},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(b,a,c){b.setLocalXY(a,c)}},3,0,0,0,0,0,[Ext.dd,"DD"],0));(Ext.cmd.derive("Ext.dd.DDProxy",Ext.dd.DD,{statics:{dragElId:"ygddfdiv"},constructor:function(c,a,b){if(c){this.init(c,a,b);this.initFrame()}},resizeFrame:true,centerFrame:false,createFrame:function(){var b=this,a=document.body,d,c;if(!a||!a.firstChild){Ext.defer(function(){b.createFrame()},50);return}d=this.getDragEl();if(!d){d=document.createElement("div");d.id=this.dragElId;d.setAttribute("role","presentation");c=d.style;c.position="absolute";c.visibility="hidden";c.cursor="move";c.border="2px solid #aaa";c.zIndex=999;a.insertBefore(d,a.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(e,d){var c=this,a=c.getDragEl(),b=a.style;c._resizeProxy();if(c.centerFrame){c.setDelta(Math.round(parseInt(b.width,10)/2),Math.round(parseInt(b.height,10)/2))}c.setDragElPos(e,d);Ext.fly(a).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(c){var b=c.getXY(),a=b[0],d=b[1];this.autoOffset(a,d);this.setDragElPos(a,d)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility="";this.beforeMove();b.style.visibility="hidden";Ext.dd.DDM.moveToEl(b,a);a.style.visibility="hidden";b.style.visibility="";this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return("DDProxy "+this.id)}},3,0,0,0,0,0,[Ext.dd,"DDProxy"],0));(Ext.cmd.derive("Ext.dd.StatusProxy",Ext.Component,{animRepair:false,childEls:["ghost"],renderTpl:[''],repairCls:"x-dd-drag-repair",ariaRole:"presentation",skipLayout:true,alignOnScroll:false,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:"visibility",hidden:true,floating:true,id:b.id||Ext.id(),cls:"x-dd-drag-proxy "+this.dropNotAllowed,shadow:a.shadow||false,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(b){var c=this,a="x-dd-drag-proxy ";c.el.replaceCls(a+c.dropAllowed,a+c.dropNotAllowed);c.dropStatus=c.dropNotAllowed;if(b){c.ghost.setHtml("")}},update:function(a){if(typeof a==="string"){this.ghost.setHtml(a)}else{this.ghost.setHtml("");a.style.margin="0";this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle("float","none")}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(true)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(c,d,a){var b=this;b.callback=d;b.scope=a;if(c&&b.animRepair!==false){b.el.addCls(b.repairCls);b.el.setUnderlaysVisible(false);b.anim=b.el.animate({duration:b.repairDuration||500,easing:"ease-out",to:{x:c[0],y:c[1]},stopAnimation:true,callback:b.afterRepair,scope:b})}else{b.afterRepair()}},afterRepair:function(){var a=this;a.hide(true);a.el.removeCls(a.repairCls);if(typeof a.callback==="function"){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,["component","box"],{component:true,box:true},0,0,[Ext.dd,"StatusProxy"],0));(Ext.cmd.derive("Ext.dd.DragSource",Ext.dd.DDProxy,{dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",animRepair:true,repairHighlightColor:"c3daf9",constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+"-drag-status-proxy",animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:false,isTarget:false,scroll:this.scroll===true});this.dragging=false},getDragData:function(a){return this.dragData},onDragEnter:function(c,d){var b=Ext.dd.DragDropManager.getDDById(d),a;this.cachedTarget=b;if(this.beforeDragEnter(b,c,d)!==false){if(b.isNotifyTarget){a=b.notifyEnter(this,c,this.dragData);this.proxy.setStatus(a)}else{this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(b,c,d)}}},beforeDragEnter:function(b,a,c){return true},onDragOver:function(c,d){var b=this.cachedTarget||Ext.dd.DragDropManager.getDDById(d),a;if(this.beforeDragOver(b,c,d)!==false){if(b.isNotifyTarget){a=b.notifyOver(this,c,this.dragData);this.proxy.setStatus(a)}if(this.afterDragOver){this.afterDragOver(b,c,d)}}},beforeDragOver:function(b,a,c){return true},onDragOut:function(b,c){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(c);if(this.beforeDragOut(a,b,c)!==false){if(a.isNotifyTarget){a.notifyOut(this,b,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,b,c)}}this.cachedTarget=null},beforeDragOut:function(b,a,c){return true},onDragDrop:function(b,c){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(c);if(this.beforeDragDrop(a,b,c)!==false){if(a.isNotifyTarget){if(a.notifyDrop(this,b,this.dragData)!==false){this.onValidDrop(a,b,c)}else{this.onInvalidDrop(a,b,c)}}else{this.onValidDrop(a,b,c)}if(this.afterDragDrop){this.afterDragDrop(a,b,c)}}delete this.cachedTarget},beforeDragDrop:function(b,a,c){return true},onValidDrop:function(b,a,c){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(b,a,c)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==false){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=false},beforeInvalidDrop:function(b,a,c){return true},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==false){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return true},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(true);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=false;this.dragging=true;this.proxy.update("");this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(a,c){var b=this.el.dom.cloneNode(true);b.id=Ext.id();this.proxy.update(b);this.onStartDrag(a,c);return true},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(true);this.dragging=false},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.destroy(this.proxy);Ext.dd.DDProxy.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.dd,"DragSource"],0));(Ext.cmd.derive("Ext.panel.Proxy",Ext.Base,{alternateClassName:"Ext.dd.PanelProxy",moveOnDrag:true,constructor:function(a,b){var c=this;c.panel=a;c.id=c.panel.id+"-ddproxy";Ext.apply(c,b)},insertProxy:true,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var b=this,a;if(!b.ghost){a=b.panel.getSize();b.panel.el.setVisibilityMode(Ext.Element.DISPLAY);b.ghost=b.panel.ghost();if(b.insertProxy){b.proxy=b.panel.el.insertSibling({role:"presentation",cls:"x-panel-dd-spacer"});b.proxy.setSize(a)}}},repair:function(b,c,a){this.hide();Ext.callback(c,a||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,"Proxy",Ext.dd,"PanelProxy"],0));(Ext.cmd.derive("Ext.panel.DD",Ext.dd.DragSource,{constructor:function(b,a){var c=this;c.panel=b;c.dragData={panel:b};c.panelProxy=new Ext.panel.Proxy(b,a);c.proxy=c.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,a);c.setupEl(b)},setupEl:function(a){var c=this,d=a.header,b=a.body;if(d){c.setHandleElId(d.id);b=d.el}if(b){b.setStyle("cursor","move");c.scroll=false}else{a.on("boxready",c.setupEl,c,{single:true})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(c){var b=c.getXY(),a=b[0],d=b[1];this.autoOffset(a,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return true},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(c,b,d){var a=this;if(a.beforeInvalidDrop(c,b,d)!==false){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}}},1,0,0,0,0,0,[Ext.panel,"DD"],0));(Ext.cmd.derive("Ext.layout.component.Dock",Ext.layout.component.Component,{alternateClassName:"Ext.layout.component.AbstractDock",type:"dock",horzAxisProps:{name:"horz",oppositeName:"vert",dockBegin:"left",dockEnd:"right",horizontal:true,marginBegin:"margin-left",maxSize:"maxWidth",minSize:"minWidth",pos:"x",setSize:"setWidth",shrinkWrapDock:"shrinkWrapDockWidth",size:"width",sizeModel:"widthModel"},vertAxisProps:{name:"vert",oppositeName:"horz",dockBegin:"top",dockEnd:"bottom",horizontal:false,marginBegin:"margin-top",maxSize:"maxHeight",minSize:"minHeight",pos:"y",setSize:"setHeight",shrinkWrapDock:"shrinkWrapDockHeight",size:"height",sizeModel:"heightModel"},initializedBorders:-1,horizontalCollapsePolicy:{width:true,x:true},verticalCollapsePolicy:{height:true,y:true},finishRender:function(){var b=this,c,a;Ext.layout.component.Component.prototype.finishRender.call(this);c=b.getRenderTarget();a=b.getDockedItems();b.finishRenderItems(c,a)},isItemBoxParent:function(a){return true},isItemShrinkWrap:function(a){return true},noBorderClasses:["x-docked-noborder-top","x-docked-noborder-right","x-docked-noborder-bottom","x-docked-noborder-left"],noBorderClassesSides:{top:"x-docked-noborder-top",right:"x-docked-noborder-right",bottom:"x-docked-noborder-bottom",left:"x-docked-noborder-left"},borderWidthProps:{top:"border-top-width",right:"border-right-width",bottom:"border-bottom-width",left:"border-left-width"},_itemCls:"x-docked",handleItemBorders:function(){var m=this,a=m.owner,l,q,h=m.lastDockedItems,g=m.borders,b=a.dockedItems.generation,c=m.noBorderClassesSides,n=m.borderWidthProps,e,k,p,o,j,d=m.collapsed;if(m.initializedBorders===b||(a.border&&!a.manageBodyBorders)||(a.collapsed&&a.collapseMode==="mini")){return}m.initializedBorders=b;m.collapsed=false;m.lastDockedItems=q=m.getLayoutItems();m.collapsed=d;l={top:[],right:[],bottom:[],left:[]};for(e=0,k=q.length;ed){h=r.constrainedMax;n=d}else{if(jd){g=r.constrainedMax;m=d}else{if(j0){w--}}}else{n=z;w=j+q++;if(x.dock==="right"||x.dock==="bottom"){w++}}if(!x.rendered){y.renderItem(x,n,w)}else{if(!y.isValidParent(x,n,w)){y.moveItem(x,n,w)}}}}},undoLayout:function(c){var b=this,a=b.owner;if(c.isCollapsingOrExpanding===1){if(a.reExpander){a.reExpander.el.hide()}a.removeClsWithUI(a.collapsedCls);c.undo(true)}else{if(c.isCollapsingOrExpanding===2){a.addClsWithUI(a.collapsedCls);c.bodyContext.undo()}}},sizePolicy:{nostretch:{setsWidth:0,setsHeight:0},horz:{shrinkWrap:{setsWidth:1,setsHeight:0,readsWidth:1},stretch:{setsWidth:1,setsHeight:0}},vert:{shrinkWrap:{setsWidth:0,setsHeight:1,readsHeight:1},stretch:{setsWidth:0,setsHeight:1}},stretchV:{setsWidth:0,setsHeight:1},autoStretchH:{readsWidth:1,setsWidth:1,setsHeight:0},autoStretchV:{readsHeight:1,setsWidth:0,setsHeight:1}},getItemSizePolicy:function(d,g){var c=this,h=c.sizePolicy,e=c.owner.shrinkWrapDock,b,a;if(d.stretch===false){return h.nostretch}b=d.dock;a=(b==="left"||b==="right");e=e===true?3:(e||0);if(a){h=h.vert;e=e&1}else{h=h.horz;e=e&2}if(e){if(!g){g=c.owner.getSizeModel()}if(g[a?"height":"width"].shrinkWrap){return h.shrinkWrap}}return h.stretch},configureItem:function(a,b){Ext.layout.component.Component.prototype.configureItem.apply(this,arguments);a.addCls(this._itemCls);if(!a.ignoreBorderManagement){a.addClsWithUI(this.getDockCls(a.dock))}},getDockCls:function(a){return"docked-"+a},afterRemove:function(a){var b;Ext.layout.component.Component.prototype.afterRemove.apply(this,arguments);a.removeCls(this._itemCls);if(!a.ignoreBorderManagement){a.removeClsWithUI(this.getDockCls(a.dock))}b=a.el.dom;if(!a.destroying&&b){b.parentNode.removeChild(b)}this.childrenChanged=true},borderCollapseMap:{},getBorderCollapseTable:function(){var d=this,g=d.borderCollapseMap,a=d.owner,b=a.baseCls,e=a.ui,c;g=g[b]||(g[b]={});c=g[e];if(!c){b+="-"+e+"-outer-border-";g[e]=c=[0,b+"l",b+"b",b+"bl",b+"r",b+"rl",b+"rb",b+"rbl",b+"t",b+"tl",b+"tb",b+"tbl",b+"tr",b+"trl",b+"trb",b+"trbl"]}return c}},0,0,0,0,["layout.dock"],0,[Ext.layout.component,"Dock",Ext.layout.component,"AbstractDock"],0));(Ext.cmd.derive("Ext.util.Memento",Ext.Base,(function(){function d(i,h,j,g){i[g?g+j:j]=h[j]}function c(h,g,i){delete h[i]}function e(k,j,l,i){var g=i?i+l:l,h=k[g];if(h||k.hasOwnProperty(g)){a(j,l,h)}}function a(h,i,g){if(Ext.isDefined(g)){h[i]=g}else{delete h[i]}}function b(h,m,l,i,j){if(m){if(Ext.isArray(i)){var k,g=i.length;for(k=0;k','
',"{headingText}","
","","{% this.renderTabGuard(out, values, 'before'); %}",'
',' {$}="{.}"',"",' role="presentation"',"",">","{% this.renderDockedItems(out,values,0); %}",'
{bodyCls}',' {baseCls}-body-{ui}',' {parent.baseCls}-body-{parent.ui}-{.}','{childElCls}"','',' {$}="{.}"',"",' role="presentation"',"",' style="{bodyStyle}">',"{%this.renderContainer(out,values);%}","
","{% this.renderDockedItems(out,values,1); %}","
","{% this.renderTabGuard(out, values, 'after'); %}"],headerPosition:"top",iconAlign:"left",titleAlign:"left",titleRotation:"default",beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:true,closable:false,closeAction:"destroy",closeToolText:"Close panel",collapsed:false,collapsedCls:"collapsed",collapseFirst:true,collapsible:undefined,collapseToolText:"Collapse panel",expandToolText:"Expand panel",constrain:false,constrainHeader:false,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:true,frame:false,frameHeader:true,hideCollapseTool:false,manageHeight:true,maskElement:"el",minButtonWidth:75,preventHeader:false,shrinkWrapDock:false,titleCollapse:undefined,baseCls:"x-panel",bodyPosProps:{x:"x",y:"y"},componentLayout:"dock",contentPaddingProperty:"bodyPadding",emptyArray:[],isPanel:true,defaultBindProperty:"title",addBodyCls:function(b){var c=this,a=c.rendered?c.body:c.getProtoBody();a.addCls(b);return c},addTool:function(e){if(!Ext.isArray(e)){e=[e]}var d=this,h=d.header,a=e.length,g=d.tools,c,b;if(!h||!h.isHeader){h=null;if(!g){d.tools=g=[]}}for(c=0;c=g||n[e]>0){if(e>=g){e=0;a=0;b++;for(c=0;c0){n[c]--}}}else{e++}}m.push({rowIdx:b,cellIdx:a});for(c=l.colspan||1;c;--c){n[e]=l.rowspan||1;++e}++a}return m},getRenderTree:function(){var j=this,g=j.getLayoutItems(),o=[],p=Ext.apply({tag:"table",id:j.owner.id+"-table","data-ref":"table",role:"presentation",cls:j.tableCls,cellspacing:0,cellpadding:0,cn:{tag:"tbody",id:j.owner.id+"-tbody","data-ref":"tbody",role:"presentation",cn:o}},j.tableAttrs),c=j.tdAttrs,d,e=g.length,n,l,h,b,a,k,m;m=j.calculateCells(g);for(d=0;d0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(Ext.ComponentQuery.is(a,this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(c,b){var e=this,a=e.items,d=e.addHandler;if(!e.disabled){if(d){d.call(e.scope||b,b)}if(a){a.add(b)}}b.clearPropertiesOnDestroy=b.clearPrototypeOnDestroy=false},onItemRemove:function(c,b){var e=this,a=e.items,d=e.removeHandler;if(!e.disabled){if(d){d.call(e.scope||b,b)}if(a){a.remove(b)}}},onContainerAdd:function(e,g){var h=this,c,a,d,b;if(e.isContainer){e.on({scope:h,add:h.handleAdd,dockedadd:h.handleAdd,remove:h.handleRemove,dockedremove:h.handleRemove})}if(g!==true){c=e.query(h.selector);for(d=0,a=c.length;dcontainer");for(d=0,a=c.length;d"+j.xtype+"[rowIndex="+j.rowIndex+"]"),function(i){return i!==j});a=c.length;if(!j.destroying&&!j.destroyed){d.remove(j);if(a===1){c[0].columnWidth=1}else{for(g=0;gb.tolerance){b.triggerStart(g)}else{return}}if(b.fireEvent("mousemove",b,g)===false){b.onMouseUp(g)}else{b.onDrag(g);b.fireEvent("drag",b,g)}},onMouseUp:function(b){var a=this;a.mouseIsDown=false;if(a.mouseIsOut){a.mouseIsOut=false;a.onMouseOut(b)}if(a.preventDefault!==false){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent("mouseup",a,b);a.endDrag(b)},endDrag:function(c){var b=this,a=b.active;Ext.getDoc().un({mousemove:b.onMouseMove,mouseup:b.onMouseUp,selectstart:b.stopSelect,capture:true,scope:b});b.clearStart();b.active=false;b.dragEnded=true;if(a){b.onEnd(c);b.fireEvent("dragend",b,c)}else{b.onCancel(c)}b._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=true;a.onStart(b);a.fireEvent("dragstart",a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return false},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onCancel:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else{if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var b=this.getXY(c),a=this.startXY;return[b[0]-a[0],b[1]-a[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(b,d){var c=b.dragRegion,a=b.getConstrainRegion();if(!a){return d}c.x=c.left=c[0]=c.right=d[0];c.y=c.top=c[1]=c.bottom=d[1];c.constrainTo(a);return[c.left,c.top]},dragTarget:function(c,g){var b=c.startXY,e=c.startRegion.copy(),a=c.getConstrainRegion(),d;if(!a){return g}e.translateBy(g[0]-b[0],g[1]-b[1]);if(e.right>a.right){g[0]+=d=(a.right-e.right);e.left+=d}if(e.lefta.bottom){g[1]+=d=(a.bottom-e.bottom);e.top+=d}if(e.top[flex]"),m=l.length,c=j==="vertical",k=0,g=c?"width":"height",d=0,r,s;for(;k1||(p&&(h>p))){if(g){g.orphan=1;g.el.setHeight(0)}l=0;h=1;if(q.length){r=q.length-1;n.syncFirstLast(n.getColumns(q[r].items))}q.push(o={index:q.length,items:[],maxHeight:0})}l+=b;o.items.push(c);c.row=o;m.rowIndex=o.index;if(a){c.el.setHeight(1)}g=c}if(q.length){n.syncFirstLast(n.getColumns(q[q.length-1].items))}},beforeLayoutCycle:function(c){var b=this,a=b.owner.items;if(b.splitterGen!==a.generation){b.syncSplitters();b.splitterGen=a.generation}Ext.layout.container.Column.prototype.beforeLayoutCycle.apply(this,arguments)},finishedLayout:function(e){var b=e.childItems,a=b.length,d,j,c,g,h;Ext.layout.container.Column.prototype.finishedLayout.call(this,e);for(c=0;c0){g=b[c];if(d){if(g.isSplitter){d=false}else{if(e){e=false;a.suspendLayouts()}i=a.add(c+1,h.getSplitterConfig())}}else{if(g.isSplitter){if(e){e=false;a.suspendLayouts()}a.remove(g)}else{d=true}}}while(b.length&&(g=b[0]).isSplitter){if(e){e=false;a.suspendLayouts()}a.remove(g)}if(!e){a.resumeLayouts()}},syncFirstLast:function(e){var g=this,b=g.firstColumnCls,j=g.lastColumnCls,d,a=[b,j],c,k,h;e=Ext.Array.from(e);d=e.length;for(c=0;cm-n)?1:0)));if(!n||!r.extensible){a=z.items.items;for(q=0,u=a.length;q0)?(g-a-c.getPadding("lr"))+"px":"","margin-top":"7px"})}else{o=n.body.getPadding("lr");b.setStyle({"float":"left",clear:"left",margin:"0 7px 0 7px"});b.setWidth(n.body.getWidth()-o);p.panelProxy.moveProxy(n.body.dom.firstChild.firstChild,null)}this.scrollPos=n.body.getScroll();if(k.dragover){n.fireEvent("dragover",j)}}return j.status},isRowExtensible:function(d){var c=this,b=c.dashboard,a=b.getMaxColumns()||1;return Ext.Array.from(b.query(">dashboard-column[rowIndex="+d+"]")).length0){++n}}b=l.createColumn();if(d){b.columnWidth=d.columnWidth=d.columnWidth/2;delete d.width}else{b.columnWidth=1}d=l.insert(n,b);o=0}a.el.dom.style.display="";d.insert(o,a);a.isMoving=false;d.updateLayout();Ext.resumeLayouts(true);if(j.drop){l.fireEvent("drop",i)}}},1,0,0,0,0,0,[Ext.dashboard,"DropZone"],0));(Ext.cmd.derive("Ext.dashboard.Part",Ext.Base,{factoryConfig:{type:"part"},isPart:true,_lastId:0,config:{id:null,dashboard:null,viewTemplate:{collapsed:"{collapsed}",columnIndex:"{columnIndex}",id:"{id}",title:"{title}",height:"{height}"}},viewTemplateOptions:{excludeProperties:{bind:1}},valueRe:/^[{][a-z]*[}]$/i,constructor:function(a){this.initConfig(a)},applyViewTemplate:function(a){return Ext.util.ObjectTemplate.create(a,this.viewTemplateOptions)},displayForm:function(a,b,d,c){d.call(c||this,{})},createView:function(b){var d=this,c=d.getViewTemplate(),a=c.apply(b);a.dashboard=d.getDashboard();a.part=d;a._partConfig=b;return a}},1,0,0,0,["part.part"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.dashboard,"Part"],0));(Ext.cmd.derive("Ext.dashboard.Dashboard",Ext.panel.Panel,{isDashboard:true,cls:"x-dashboard",bodyCls:"x-dashboard-body",defaultType:"dashboard-column",scrollable:true,layout:null,stateful:false,idSeed:1,config:{parts:null},renderConfig:{maxColumns:4},initComponent:function(){var a=this;if(!a.layout){a.layout={type:"dashboard"}}Ext.panel.Panel.prototype.initComponent.call(this)},applyParts:function(b,c){if(!c){c=new Ext.util.Collection({decoder:Ext.Factory.part})}var d,a;for(d in b){a=b[d];if(Ext.isString(a)){a={type:a}}a.id=d;a.dashboard=this;c.add(a)}return c},getPart:function(a){var b=this.getParts();return b.getByKey(a)},addNew:function(c,b,e){var d=this,a=d.getPart(c);a.displayForm(null,null,function(g){g.type=c;d.addView(g,b,e)})},addView:function(k,e,i){var h=this,g=h.query("dashboard-column"),c=g.length,d=e||0,j=k.id?k:h.createView(k),a=h.columnWidths,b;if(!c){b=h.add(0,h.createColumn({columnWidth:(Ext.isArray(a)?a[0]:1)}));g=[b];c=1}if(d>=c){d=c-1;i=1}if(!i){b=g[d];if(b){return b.add(j)}}if(i>0){++d}b=h.createColumn();if(a){b.columnWidth=a[d]||(a[d]=1)}if(!b.items){b.items=[]}b.items.push(j);b=h.add(b);return b.items.first()},createColumn:function(a){var b=this.cycleLayout;return Ext.apply({items:[],bubbleEvents:["add","remove","childmove","resize"],listeners:{remove:this.onRemoveItem,expand:b,collapse:b,scope:this}},a)},createView:function(c){var e=this,d=c.type,b=e.getPart(d),a=b.createView(c);if(!a.id){a.id=e.id+"_"+d+(e.idSeed++)}a.bubbleEvents=Ext.Array.from(a.bubbleEvents).concat(["expand","collapse"]);a.stateful=e.stateful;return a},initEvents:function(){Ext.panel.Panel.prototype.initEvents.call(this);this.dd=new Ext.dashboard.DropZone(this,this.dropConfig)},cycleLayout:function(){this.updateLayout()},doDestroy:function(){if(this.dd){Ext.destroy(this.dd)}Ext.panel.Panel.prototype.doDestroy.call(this)},applyState:function(g){delete g.items;var e=this;Ext.panel.Panel.prototype.applyState.call(this,g);var b=g.columnWidths,a=e.items.items,d=a.length,c,h;if(b){h=b.length;e.columnWidths=[];for(c=0;c'],initComponent:function(){Ext.Component.prototype.initComponent.call(this)},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);Ext.applyIf(this.renderData,{swfId:this.getSwfId()})},afterRender:function(){var b=this,a=Ext.apply({},b.flashParams),c=Ext.apply({},b.flashVars);Ext.Component.prototype.afterRender.call(this);a=Ext.apply({allowScriptAccess:"always",bgcolor:b.backgroundColor,wmode:b.wmode},a);c=Ext.apply({allowedDomain:document.location.hostname},c);new swfobject.embedSWF(b.url,b.getSwfId(),b.swfWidth,b.swfHeight,b.flashVersion,b.expressInstall?b.statics.EXPRESS_INSTALL_URL:undefined,c,a,b.flashAttributes,b.swfCallback.bind(b))},swfCallback:function(b){var a=this;if(b.success){a.swf=Ext.get(b.ref);a.onSuccess();a.fireEvent("success",a)}else{a.onFailure();a.fireEvent("failure",a)}},getSwfId:function(){return this.swfId||(this.swfId="extswf"+this.getAutoId())},onSuccess:function(){this.swf.setStyle("visibility","inherit")},onFailure:Ext.emptyFn,doDestroy:function(){var b=this,a=b.swf;if(a){swfobject.removeSWF(b.getSwfId());b.swf=Ext.destroy(a)}Ext.Component.prototype.doDestroy.call(this)},statics:{EXPRESS_INSTALL_URL:"http://swfobject.googlecode.com/svn/trunk/swfobject/expressInstall.swf"}},0,["flash"],["component","box","flash"],{component:true,box:true,flash:true},["widget.flash"],0,[Ext.flash,"Component",Ext,"FlashComponent"],0));(Ext.cmd.derive("Ext.form.action.Action",Ext.Base,{alternateClassName:"Ext.form.Action",submitEmptyText:true,constructor:function(a){if(a){Ext.apply(this,a)}var b=a.params;if(Ext.isString(b)){this.params=Ext.Object.fromQueryString(b)}},run:Ext.emptyFn,onFailure:function(a){var c=this.form,b=c&&!c.destroying&&!c.destroyed;this.response=a;this.failureType=Ext.form.action.Action.CONNECT_FAILURE;if(b){c.afterAction(this,false)}},processResponse:function(a){this.response=a;if(!a.responseText&&!a.responseXML){return true}return(this.result=this.handleResponse(a))},getUrl:function(){return this.url||this.form.url},getMethod:function(){return(this.method||this.form.method||"POST").toUpperCase()},getParams:function(){return Ext.apply({},this.params,this.form.baseParams)},createCallback:function(){var a=this;return{success:a.onSuccess,failure:a.onFailure,scope:a,timeout:(a.timeout||a.form.timeout)*1000}},statics:{CLIENT_INVALID:"client",SERVER_INVALID:"server",CONNECT_FAILURE:"connect",LOAD_FAILURE:"load"}},1,0,0,0,0,0,[Ext.form.action,"Action",Ext.form,"Action"],0));(Ext.cmd.derive("Ext.form.action.Load",Ext.form.action.Action,{alternateClassName:"Ext.form.Action.Load",type:"load",run:function(){Ext.Ajax.request(Ext.apply(this.createCallback(),{method:this.getMethod(),url:this.getUrl(),headers:this.headers,params:this.getParams()}))},onSuccess:function(b){var a=this.processResponse(b),d=this.form,c=d&&!d.destroying&&!d.destroyed;if(a===true||!a.success||!a.data){this.failureType=Ext.form.action.Action.LOAD_FAILURE;if(c){d.afterAction(this,false)}return}if(c){d.clearInvalid();d.setValues(a.data);d.afterAction(this,true)}},handleResponse:function(c){var a=this.form.reader,b,d;if(a){b=a.read(c);d=b.records&&b.records[0]?b.records[0].data:null;return{success:b.success,data:d}}return Ext.decode(c.responseText)}},0,0,0,0,["formaction.load"],0,[Ext.form.action,"Load",Ext.form.Action,"Load"],0));(Ext.cmd.derive("Ext.form.action.Submit",Ext.form.action.Action,{alternateClassName:"Ext.form.Action.Submit",type:"submit",run:function(){var b=this,a=b.form;if(b.clientValidation===false||a.isValid()){b.doSubmit()}else{b.failureType=Ext.form.action.Action.CLIENT_INVALID;a.afterAction(b,false)}},doSubmit:function(){var d=this,b=Ext.apply(d.createCallback(),{url:d.getUrl(),method:d.getMethod(),headers:d.headers}),c=d.form,e=d.jsonSubmit||c.jsonSubmit,a=e?"jsonData":"params",g;if(c.hasUpload()){g=d.buildForm();b.form=g.formEl;b.isUpload=true}else{b[a]=d.getParams(e)}Ext.Ajax.request(b);if(g){d.cleanup(g)}},cleanup:function(h){var e=h.formEl,d=h.uploadEls,b=h.uploadFields,a=b.length,c,g;for(c=0;c for="{inputId}"'," {labelAttrTpl}>",'',"{beforeLabelTextTpl}",'','{fieldLabel}','{labelSeparator}',"","","{afterLabelTextTpl}","","","{afterLabelTpl}",'",'','
','","
","
",{disableFormats:true}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['','
    ','
  • {.}
  • ',"
","
"],plaintextActiveErrorsTpl:['','\n{.}',""],ariaActiveErrorsTpl:['','{.}',""],isFieldLabelable:true,formItemCls:"x-form-item",labelCls:"x-form-item-label",topLabelCls:"x-form-item-label-top",rightLabelCls:"x-form-item-label-right",labelInnerCls:"x-form-item-label-inner",labelTextCls:"x-form-item-label-text",topLabelSideErrorCls:"x-form-item-label-top-side-error",errorMsgCls:"x-form-error-msg",errorWrapCls:"x-form-error-wrap",errorWrapSideCls:"x-form-error-wrap-side",errorWrapUnderCls:"x-form-error-wrap-under",errorWrapUnderSideLabelCls:"x-form-error-wrap-under-side-label",baseBodyCls:"x-form-item-body",invalidIconCls:"x-form-invalid-icon",invalidUnderCls:"x-form-invalid-under",noLabelCls:"x-form-item-no-label",fieldBodyCls:"",extraFieldBodyCls:"",invalidCls:"x-form-invalid",fieldLabel:undefined,labelAlign:"left",labelWidth:100,labelPad:5,labelSeparator:":",hideLabel:false,hideEmptyLabel:true,preventMark:false,autoFitErrors:true,msgTarget:"qtip",msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:true,ariaHelp:undefined,ariaErrorText:"Input error. {0}.",labelableInsertions:["beforeBodyEl","afterBodyEl","beforeLabelTpl","afterLabelTpl","beforeSubTpl","afterSubTpl","beforeLabelTextTpl","afterLabelTextTpl","labelAttrTpl"],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:"ext-form-error-tip",ui:"form-invalid"};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor="top";a.showDelay=0;a.showOnTap=true;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.activeTarget.el).getWidth()}}}b=this.tip=Ext.create("Ext.tip.QuickTip",a);c=Ext.apply({},b.tagConfig);c.attribute="errorqtip";b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==="title"){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else{a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+"-"+a.ui]);a.lastActiveError="";a.enableBubble("errorchange")},trimLabelSeparator:function(){var c=this,d=c.labelSeparator,a=c.fieldLabel||"",b=a.substr(a.length-1);return b===d?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(d){d=d||"";var e=this,g=e.labelSeparator,c=e.labelEl,b=e.errorWrapEl,i=(e.labelAlign!=="top"),a=e.noLabelCls,h=e.errorWrapUnderSideLabelCls;e.fieldLabel=d;if(e.rendered){if(Ext.isEmpty(d)&&e.hideEmptyLabel){e.addCls(a);if(i&&b){b.removeCls(h)}}else{if(g){d=e.trimLabelSeparator()+g}e.labelTextEl.dom.innerHTML=d;e.removeCls(a);if(i&&b){b.addCls(h)}}e.updateLayout()}},setHideLabel:function(a){var b=this;if(a!==b.hideLabel){b.hideLabel=a;if(b.rendered){b[a?"addCls":"removeCls"](b.noLabelCls);b.updateLayout()}}},setHideEmptyLabel:function(a){var c=this,b;if(a!==c.hideEmptyLabel){c.hideEmptyLabel=a;if(c.rendered&&!c.hideLabel){b=a&&!c.getFieldLabel();c[b?"addCls":"removeCls"](c.noLabelCls);c.updateLayout()}}},getInsertionRenderData:function(d,e){var b=e.length,a,c;while(b--){a=e[b];c=this[a];if(c){if(typeof c!=="string"){if(!c.isTemplate){c=Ext.XTemplate.getTpl(this,a)}c=c.apply(d)}}d[a]=c||""}return d},getLabelableRenderData:function(){var p=this,s=p.labelAlign,e=(s==="top"),m=(s==="right"),j=(p.msgTarget==="side"),g=(p.msgTarget==="under"),r=p.errorMsgCls,h=p.labelPad,o=p.labelWidth,b=p.labelClsExtra||"",i=j?p.errorWrapSideCls:p.errorWrapUnderCls,a="",l="",d=p.hasVisibleLabel(),n=p.autoFitErrors,k=p.defaultBodyWidth,c,q;if(e){b+=" "+p.topLabelCls;if(h){l="padding-bottom:"+h+"px;"}if(j&&!n){b+=" "+p.topLabelSideErrorCls}}else{if(m){b+=" "+p.rightLabelCls}if(h){a+=p.getHorizontalPaddingStyle()+h+"px;"}a+="width:"+(o+(h?h:0))+"px;";l="width:"+o+"px"}if(d){if(!e&&g){i+=" "+p.errorWrapUnderSideLabelCls}}if(k){c="min-width:"+k+"px;max-width:"+k+"px;"}q={id:p.id,inputId:p.getInputId(),labelCls:p.labelCls,labelClsExtra:b,labelStyle:a+(p.labelStyle||""),labelInnerStyle:l,labelInnerCls:p.labelInnerCls,labelTextCls:p.labelTextCls,skipLabelForAttribute:!!p.skipLabelForAttribute,unselectableCls:Ext.Element.unselectableCls,bodyStyle:c,baseBodyCls:p.baseBodyCls,fieldBodyCls:p.fieldBodyCls,extraFieldBodyCls:p.extraFieldBodyCls,errorWrapCls:p.errorWrapCls,errorWrapExtraCls:i,renderError:j||g,invalidMsgCls:j?p.invalidIconCls:g?p.invalidUnderCls:"",errorMsgCls:r,growCls:p.grow?p.growCls:"",tipAnchorTarget:p.id+"-inputEl",errorWrapStyle:(j&&!n)?"visibility:hidden":"display:none",fieldLabel:p.getFieldLabel(),labelSeparator:p.labelSeparator,renderAriaElements:!!p.renderAriaElements,ariaStatus:""};if(p.ariaHelp){q.ariaHelp=Ext.String.htmlEncode(p.ariaHelp)}p.getInsertionRenderData(q,p.labelableInsertions);return q},getHorizontalPaddingStyle:function(){return"padding-right:"},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls("x-"+a.ownerLayout.type+"-form-item")}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var d=this,c={},g=Ext.Element,a=d.errorWrapEl,e,b;if(a){a.setVisibilityMode((d.msgTarget==="side"&&!d.autoFitErrors)?g.VISIBILITY:g.DISPLAY)}if(d.extraMargins){e=d.el.getMargin();for(b in e){if(e.hasOwnProperty(b)){c["margin-"+b]=(e[b]+d.extraMargins[b])+"px"}}d.el.setStyle(c)}},hasVisibleLabel:function(){if(this.hideLabel){return false}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return""},getInputId:function(){return""},getActiveError:function(){return this.activeError||""},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(l){var i=this,k=i.errorWrapEl,g=i.msgTarget,e=g==="side",n=g==="qtip",o=i.ariaErrorEl,c,b,h,m,j,a,d;l=Ext.Array.from(l);h=i.lookupTpl("activeErrorsTpl");i.activeErrors=l;b=i.activeError=h.apply({fieldLabel:i.fieldLabel,errors:l,listCls:"x-list-plain"});i.renderActiveError();if(i.rendered){c=i.getActionEl();if(e){i.errorEl.dom.setAttribute("data-errorqtip",b)}else{if(n){c.dom.setAttribute("data-errorqtip",b)}else{if(g==="title"){c.dom.setAttribute("title",b)}}}if(g!=="title"&&o){j=i.lookupTpl("ariaActiveErrorsTpl");a=j.apply({errors:l});d=Ext.String.formatEncode(i.ariaErrorText,a,i.fieldLabel);if(o.dom.innerHTML!==d){o.dom.innerHTML=d}i.ariaStatusEl.dom.innerHTML=Ext.String.htmlEncode(a)}if(e||n){Ext.form.Labelable.initTip()}if(!i.msgTargets[g]){m=Ext.get(g);if(m){m.dom.innerHTML=b}}}if(k){k.setVisible(l.length>0);if(e&&i.autoFitErrors){i.labelEl.addCls(i.topLabelSideErrorCls)}i.updateLayout()}},unsetActiveError:function(){var g=this,b=g.errorWrapEl,e=g.ariaErrorEl,c=g.msgTarget,a=g.restoreDisplay,d,h;if(g.hasActiveError()){delete g.activeError;delete g.activeErrors;g.renderActiveError();if(g.rendered){d=g.getActionEl();if(c==="qtip"){d.dom.removeAttribute("data-errorqtip")}else{if(c==="title"){d.dom.removeAttribute("title")}}if(c!=="title"&&e){e.dom.innerHTML=g.ariaStatusEl.dom.innerHTML=""}if(!g.msgTargets[c]){h=Ext.get(c);if(h){h.dom.innerHTML=""}}if(b){b.hide();if(c==="side"&&g.autoFitErrors){g.labelEl.removeCls(g.topLabelSideErrorCls)}g.updateLayout();if(a){g.el.dom.style.display="block";g.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=""}},renderActiveError:function(){var c=this,b=c.getActiveError(),a=!!b;if(b!==c.lastActiveError){c.lastActiveError=b;c.fireEvent("errorchange",c,b)}if(c.rendered&&!c.destroyed&&!c.preventMark){c.toggleInvalidCls(a);if(c.errorEl){c.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?"addCls":"removeCls"](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,"Labelable"],function(){if(Ext.supports.Touch){this.prototype.msgTarget="side"}}));(Ext.cmd.derive("Ext.form.field.Field",Ext.Base,{mixinId:"field",isFormField:true,config:{validation:null,validationField:null},disabled:false,submitValue:true,validateOnChange:true,valuePublishEvent:"change",suspendCheckChange:0,dirty:false,initField:function(){var d=this,c=d.valuePublishEvent,a,b;d.initValue();if(Ext.isString(c)){d.on(c,d.publishValue,d)}else{for(b=0,a=c.length;b name="{name}"',' value="{[Ext.util.Format.htmlEncode(values.value)]}"',' placeholder="{placeholder}"','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}',' readonly="readonly"',' disabled="disabled"',' tabindex="{tabIdx}"',' style="{fieldStyle}"',"",' {$}="{.}"',"",' {$}="{.}"',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:true}],defaultBindProperty:"value",autoEl:{role:"presentation"},subTplInsertions:["inputAttrTpl"],childEls:["inputEl"],inputType:"text",isTextInput:true,invalidText:"The value in this field is invalid",fieldCls:"x-form-field",focusCls:"form-focus",dirtyCls:"x-form-dirty",checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?["change","propertychange","keyup"]:["change","input","textInput","keyup","dragdrop"],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:true,readOnly:false,readOnlyCls:"x-form-readonly",validateOnBlur:true,hasFocus:false,baseCls:"x-field",fieldBodyCls:"x-field-body",maskOnDisable:false,stretchInputElFixed:true,ariaEl:"inputEl",renderAriaElements:true,initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls("x-form-type-"+a.inputType);if(a.format&&a.formatText&&!a.ariaHelp){a.ariaHelp=Ext.String.format(a.formatText,a.format)}},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+"-inputEl")},getSubTplData:function(d){var g=this,i=g.id,e=g.inputType,b=g.getInputId(),h,c,a;h=Ext.apply({ui:g.ui,id:b,cmpId:i,name:g.name||b,disabled:g.disabled,readOnly:g.readOnly,value:g.getRawValue(),type:e,fieldCls:g.fieldCls,fieldStyle:g.getFieldStyle(),childElCls:d.childElCls,tabIdx:g.tabIndex,inputCls:g.inputCls,typeCls:"x-form-"+(g.isTextInput?"text":e),ariaEl:g.ariaEl},g.subTplData);if(g.ariaRole){c={};if(!g.ariaStaticRoles[g.ariaRole]){c["aria-hidden"]=!!g.hidden;c["aria-disabled"]=!!g.disabled;a={"aria-invalid":false,"aria-readonly":!!g.readOnly};if(g.ariaLabel){c["aria-label"]=Ext.String.htmlEncode(g.ariaLabel)}c=Ext.apply(c,g.getAriaAttributes());if(!c["aria-describedby"]){if(g.ariaHelp){a["aria-describedby"]=i+"-ariaStatusEl "+i+"-ariaHelpEl"}else{a["aria-describedby"]=i+"-ariaStatusEl"}}h.inputElAriaAttributes=a}if(g.ariaRole!=="native"){c.role=g.ariaRole}if(g.ariaLabel){c["aria-label"]=g.ariaLabel}if(g.format&&g.formatText&&!h.title){c.title=Ext.String.formatEncode(g.formatText,g.format)}h.ariaElAttributes=c}g.getInsertionRenderData(h,g.subTplInsertions);return h},getSubTplMarkup:function(b){var c=this,d=c.getSubTplData(b),e=c.lookupTpl("preSubTpl"),g=c.lookupTpl("postSubTpl"),a="";if(e){a+=e.apply(d)}a+=c.lookupTpl("fieldSubTpl").apply(d);if(g){a+=g.apply(d)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(a){var b=this,c=b.inputEl;if(c){c.applyStyles(a)}b.fieldStyle=a},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,true):a||""},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},beforeBlur:function(a){if(this.validateOnBlur){this.validate()}},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==="file"},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var b=this,a=(b.inputEl?b.inputEl.getValue():Ext.valueFrom(b.rawValue,""));b.rawValue=a;return a},setRawValue:function(c){var a=this,b=a.rawValue;if(!a.transformRawValue.$nullFn){c=a.transformRawValue(c)}c=Ext.valueFrom(c,"");if(b===undefined||b!==c){a.rawValue=c;if(a.inputEl){a.bindChangeEvents(false);a.inputEl.dom.value=c;a.bindChangeEvents(true)}}if(a.rendered&&a.reference){a.publishState("rawValue",c)}return c},transformRawValue:Ext.identityFn,valueToRaw:function(a){return""+Ext.valueFrom(a,"")},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=true;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=true}}if(a.wasValid===false){a.checkValidityChange(true)}},onEnable:function(){var b=this,c=b.inputEl,d=b.preventMark,a;Ext.Component.prototype.onEnable.call(this);if(c){c.dom.disabled=false}if(b.wasValid!==undefined){b.forceValidation=true;b.preventMark=!b.hadErrorOnDisable;a=b.isValid();b.forceValidation=false;b.preventMark=d;b.checkValidityChange(a)}delete b.hadErrorOnDisable},setReadOnly:function(d){var b=this,c=b.inputEl,a=b.readOnly;d=!!d;b[d?"addCls":"removeCls"](b.readOnlyCls);b.readOnly=d;if(c){c.dom.readOnly=d;c.dom.setAttribute("aria-readonly",d)}else{if(b.rendering){b.setReadOnlyOnBoxReady=true}}if(d!==a){b.fireEvent("writeablechange",b,d)}},fireKey:function(b,a){if(b.isSpecialKey()){this.fireEvent("specialkey",this,b,a)}},initEvents:function(){var e=this,h=e.inputEl,g=e.onFieldMutation,c=e.checkChangeEvents,a=c.length,b,d;if(h){e.mon(h,Ext.supports.SpecialKeyDownRepeat?"keydown":"keypress",e.fireKey,e);for(b=0;b style="{triggerStyle}"',' role="{ariaRole}" role="presentation"',">","{[values.$trigger.renderBody(values)]}",""],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(b){var c=this,a;Ext.apply(c,b);if(c.compat4Mode){a=c.cls;c.focusCls=[c.focusCls,a+"-focus"];c.overCls=[c.overCls,a+"-over"];c.clickCls=[c.clickCls,a+"-click"]}},afterFieldRender:function(){var a=this,b=a.tooltip;a.initEvents();if(b){a.tooltip=null;a.setTooltip(b)}},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=true;if(a){a.hide()}},initEvents:function(){var d=this,a=d.isFieldEnabled,c=d.getStateEl(),b=d.el;c.addClsOnOver(d.overCls,a,d);c.addClsOnClick(d.clickCls,a,d);if(d.repeatClick){d.clickRepeater=new Ext.util.ClickRepeater(b,{preventDefault:true,handler:d.onClick,listeners:{mousedown:d.onClickRepeaterMouseDown,mouseup:d.onClickRepeaterMouseUp,scope:d},scope:d})}else{d.field.mon(b,{click:d.onClick,mousedown:d.onMouseDown,scope:d})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=false;if(a.hidden||!c||!a.rendered||a.destroyed){b=true}return !b},onClick:function(){var c=this,a=arguments,g=c.clickRepeater?a[1]:a[0],b=c.handler,d=c.field;if(b&&!d.readOnly&&c.isFieldEnabled()){Ext.callback(c.handler,c.scope,[d,c,g],0,d)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=="touch"&&(!this.field.containsFocus||this.focusOnMousedown)){this.field.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==="mousedown"){this.field.inputEl.focus()}a.preventDefault()},onClickRepeaterMouseUp:function(c){var a=this,b=a.field;Ext.callback(a.endHandler,a.scope,[b,a,c],0,b)},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var b=this,a=b.el=b.field.triggerWrap.selectNode("#"+b.domId,false);a.setVisibilityMode(Ext.Element.DISPLAY);b.rendered=true},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,"bodyTpl").apply(b):""},renderTrigger:function(a){var c=this,b=c.width,d=c.hidden?"display:none;":"";if(b){d+="width:"+b}return Ext.XTemplate.getTpl(c,"renderTpl").apply({$trigger:c,fieldData:a,ui:a.ui,childElCls:a.childElCls,triggerId:c.domId=c.field.id+"-trigger-"+c.id,cls:c.cls,triggerStyle:d,extraCls:c.extraCls,baseCls:c.baseCls,ariaRole:c.ariaRole})},setHidden:function(a){if(a!==this.hidden){this[a?"hide":"show"]()}},setTooltip:function(c){var b=this,a=b.el,d=b.tooltip;if(c!==d){b.tooltip=c;if(a){a.dom.setAttribute("data-qtip",Ext.htmlEncode(c))}}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=false;if(a){a.show()}}},1,0,0,0,["trigger.trigger"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,"Trigger"],0));(Ext.cmd.derive("Ext.form.field.Text",Ext.form.field.Base,{alternateClassName:["Ext.form.TextField","Ext.form.Text"],config:{hideTrigger:false,triggers:undefined},renderConfig:{editable:true},growMin:30,growMax:800,growAppend:"W",allowBlank:true,validateBlank:false,allowOnlyWhitespace: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}",blankText:"This field is required",regexText:"",emptyText:"",emptyCls:"x-form-empty-field",placeholderCoverCls:"x-placeholder-label",requiredCls:"x-form-required-field",ariaRole:"textbox",repeatTriggerClick:false,triggerWrapCls:"x-form-trigger-wrap",triggerWrapFocusCls:"x-form-trigger-wrap-focus",triggerWrapInvalidCls:"x-form-trigger-wrap-invalid",fieldBodyCls:"x-form-text-field-body",inputWrapCls:"x-form-text-wrap",inputWrapFocusCls:"x-form-text-wrap-focus",inputWrapInvalidCls:"x-form-text-wrap-invalid",growCls:"x-form-text-grow",emptyClsElements:null,needArrowKeys:true,squashMouseUp:{mouseup:function(a){if(this.selectOnFocus){this.inputEl.dom.select()}},translate:false,single:true,preventDefault:true},childEls:["triggerWrap","inputWrap","placeholderLabel"],preSubTpl:['
",' {$}="{.}"',"",' role="presentation"',"",' class="{triggerWrapCls} {triggerWrapCls}-{ui}">','",'{[values.renderTrigger(parent)]}',"
"],initComponent:function(){var b=this,a=b.emptyCls;if(b.allowOnlyWhitespace===false){b.allowBlank=false}if(b.size){b.defaultBodyWidth=b.size*6.5+20}if(!b.onTrigger1Click){b.onTrigger1Click=b.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(b.readOnly){b.setReadOnly(b.readOnly)}b.fieldFocusCls=b.baseCls+"-focus";b.emptyUICls=a+" "+a+"-"+b.ui;b.addStateEvents("change")},initEvents:function(){var b=this,a=b.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(b.selectOnFocus||b.emptyText){b.mon(a,"mousedown",b.onMouseDown,b)}if(b.maskRe||(b.vtype&&b.disableKeyFilter!==true&&(b.maskRe=Ext.form.field.VTypes[b.vtype+"Mask"]))){b.mon(a,"keypress",b.filterKeys,b)}if(b.enableKeyEvents){b.mon(a,{scope:b,keyup:b.onKeyUp,keydown:b.onKeyDown,keypress:b.onKeyPress})}},isEqual:function(b,a){return this.isEqualAsString(b,a)},onChange:function(b,a){Ext.form.field.Base.prototype.onChange.call(this,b,a);this.autoSize()},getSubTplData:function(c){var d=this,g=d.getRawValue(),i=d.emptyText&&g.length<1,a=d.maxLength,h,e,b;if(d.enforceMaxLength){if(a===Number.MAX_VALUE){a=undefined}}else{a=undefined}if(d.emptyText){h=d.emptyText}e=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,c),{triggerWrapCls:d.triggerWrapCls,inputWrapCls:d.inputWrapCls,placeholderCoverCls:d.placeholderCoverCls,triggers:d.orderedTriggers,maxLength:a,readOnly:!d.editable||d.readOnly,placeholder:h,value:g,fieldCls:d.fieldCls+(d.allowBlank?"":" "+d.requiredCls)+(i?" "+d.emptyUICls:"")});b=e.inputElAriaAttributes;if(b){b["aria-required"]=!d.allowBlank}return e},onRender:function(){var b=this,a=b.getTriggers(),c=[],d;if(Ext.supports.FixedTableWidthBug){b.el._needsTableWidthFix=true}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(a){this.invokeTriggers("onFieldRender");for(d in a){c.push(a[d].el)}b.triggerEl=b.triggerCell=new Ext.CompositeElement(c,true)}b.inputCell=b.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers("afterFieldRender");a.emptyClsElements=[a.inputEl]},onMouseDown:function(){if(!this.hasFocus){this.squashMouseUp.scope=this;Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(h){var j=this,c=j.getHideTrigger(),l=j.readOnly,m=j.orderedTriggers=[],k=j.repeatTriggerClick,b,g,d,a,e;if(!h){h={};if(j.triggerCls&&!j.trigger1Cls){j.trigger1Cls=j.triggerCls}for(e=1;(a=j["trigger"+e+"Cls"]);e++){h["trigger"+e]={cls:a,extraCls:"x-trigger-index-"+e,handler:"onTrigger"+e+"Click",compat4Mode:true,scope:j}}}for(b in h){if(h.hasOwnProperty(b)){g=h[b];g.field=j;g.id=b;if((l&&g.hideOnReadOnly!==false)||(c&&g.hidden!==false)){g.hidden=true}if(k&&(g.repeatClick!==false)){g.repeatClick=true}d=h[b]=Ext.form.trigger.Trigger.create(g);m.push(d)}}Ext.Array.sort(m,Ext.form.trigger.Trigger.weightComparator);return h},invokeTriggers:function(a,c){var e=this,d=e.getTriggers(),g,b;if(d){for(g in d){if(d.hasOwnProperty(g)){b=d[g];b[a].apply(b,c||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?"hide":"show")},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(g){var d=this,c=d.getTriggers(),b=d.getHideTrigger(),a,e;g=!!g;Ext.form.field.Base.prototype.setReadOnly.call(this,g);if(d.rendered){d.setReadOnlyAttr(g||!d.editable)}if(c){for(e in c){a=c[e];if(a.hideOnReadOnly===true||(a.hideOnReadOnly!==false&&!b)){a.setVisible(!g)}}}},setReadOnlyAttr:function(d){var b=this,a="readonly",c=b.inputEl.dom;if(d){c.setAttribute(a,a)}else{c.removeAttribute(a)}if(!b.ariaStaticRoles[b.ariaRole]){b.inputEl.dom.setAttribute("aria-readonly",!!d)}},processRawValue:function(c){var b=this,e=b.stripCharsRe,a,d;if(e){if(!e.global){a="g";a+=(e.ignoreCase)?"i":"";a+=(e.multiline)?"m":"";e=new RegExp(e.source,a)}d=c.replace(e,"");if(d!==c){b.setRawValue(d);if(b.lastValue===c){b.lastValue=d}c=d}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable="on"}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=""}},onKeyDown:function(a){this.fireEvent("keydown",this,a)},onKeyUp:function(a){this.fireEvent("keyup",this,a)},onKeyPress:function(a){this.fireEvent("keypress",this,a)},getEmptyText:function(){return this.emptyText},setEmptyText:function(b){var a=this,c=a.inputEl;b=b||"";a.emptyText=b;if(a.rendered){if(Ext.supports.Placeholder&&!a.simulatePlaceholder){if(b){c.dom.setAttribute("placeholder",b)}else{c.dom.removeAttribute("placeholder")}}else{a.placeholderLabel.setHtml(b)}a.refreshEmptyText()}return this},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable="on"}}},toggleInvalidCls:function(a){var b=a?"addCls":"removeCls";Ext.form.field.Base.prototype.toggleInvalidCls.call(this,a);this.triggerWrap[b](this.triggerWrapInvalidCls);this.inputWrap[b](this.inputWrapInvalidCls)},onFieldMutation:function(a){this.refreshEmptyText();Ext.form.field.Base.prototype.onFieldMutation.call(this,a)},refreshEmptyText:function(){var c=this,e=c.inputEl,a=c.emptyClsElements,d,g,b;if(e){d=c.getValue();g=!(e.dom.value||(Ext.isArray(d)&&d.length));if(c.placeholderLabel){c.placeholderLabel.setDisplayed(g)}for(b=0;bg.maxLength){j.push(k(g.maxLengthText,g.maxLength))}if(d){if(!h[d](l,g)){j.push(g.vtypeText||h[d+"Text"])}}if(i&&!i.test(l)){j.push(g.regexText||g.invalidText)}return j},selectText:function(h,b){var g=this,e=g.inputEl.dom,d=e.value,a=d.length,c;if(a>0){h=h===undefined?0:Math.min(h,a);b=b===undefined?a:Math.min(b,a);if(e.setSelectionRange){e.setSelectionRange(h,b)}else{if(e.createTextRange){c=e.createTextRange();c.moveStart("character",h);c.moveEnd("character",b-a);c.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var c=this,b,h,e,g,a,d;if(c.grow&&c.rendered&&c.getSizeModel().width.auto){g=c.inputEl;b=c.getTriggers();e=0;d=Ext.util.Format.htmlEncode(c.getGrowWidth()||(c.hasFocus?"":c.emptyText)||"");d+=c.growAppend;for(h in b){e+=b[h].el.getWidth()}a=g.getTextWidth(d)+e+c.inputWrap.getBorderWidth("lr")+c.triggerWrap.getBorderWidth("lr");a=Math.min(Math.max(a,c.growMin),c.growMax);c.bodyEl.setWidth(a);c.updateLayout();c.fireEvent("autosize",c,a)}},doDestroy:function(){var a=this;a.invokeTriggers("destroy");Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.doDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return"textfield"}},deprecated:{5:{methods:{getTriggerWidth:function(){var b=this.getTriggers(),a=0,c;if(b&&this.rendered){for(c in b){if(b.hasOwnProperty(c)){a+=b[c].el.getWidth()}}}return a}}}}},0,["textfield"],["component","box","field","textfield"],{component:true,box:true,field:true,textfield:true},["widget.textfield"],0,[Ext.form.field,"Text",Ext.form,"TextField",Ext.form,"Text"],0));(Ext.cmd.derive("Ext.form.field.TextArea",Ext.form.field.Text,{alternateClassName:"Ext.form.TextArea",fieldSubTpl:['",{disableFormats:true}],growMin:60,growMax:1000,growAppend:"\n-",enterIsSpecial:false,preventScrollbars:false,returnRe:/\r/g,inputCls:"x-form-textarea",extraFieldBodyCls:"x-form-textarea-body",ariaAttributes:{"aria-multiline":true},getSubTplData:function(b){var d=this,c=d.getFieldStyle(),a=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(d.grow){if(d.preventScrollbars){a.fieldStyle=(c||"")+";overflow:hidden;height:"+d.growMin+"px"}}return a},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on("paste",a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==="string"){a=a.replace(this.returnRe,"")}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,c=b.getValue(),a=b.maxLength;if(c.length>a){c=c.substr(0,a);b.setValue(c)}},fireKey:function(d){var b=this,a=d.getKey(),c;if(d.isSpecialKey()&&(b.enterIsSpecial||(a!==d.ENTER||d.hasModifier()))){b.fireEvent("specialkey",b,d)}if(a===d.ENTER){d.stopPropagation()}if(b.needsMaxCheck&&a!==d.BACKSPACE&&a!==d.DELETE&&!d.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(d,a)){c=b.getValue();if(c.length>=b.maxLength){d.stopEvent()}}},isCutCopyPasteSelectAll:function(b,a){if(b.ctrlKey){return a===b.A||a===b.C||a===b.V||a===b.X}return false},autoSize:function(){var c=this,e,a,b,d;if(c.grow&&c.rendered&&c.getSizeModel().height.auto){e=c.inputEl;b=e.getWidth(true);d=Ext.util.Format.htmlEncode(e.dom.value)||" ";d+=c.growAppend;d=d.replace(/\n/g,"
");a=Ext.util.TextMetrics.measure(e,d,b).height+e.getPadding("tb")+c.inputWrap.getBorderWidth("tb")+c.triggerWrap.getBorderWidth("tb");a=Math.min(Math.max(a,c.growMin),c.growMax);c.bodyEl.setHeight(a);c.updateLayout();c.fireEvent("autosize",c,a)}},doDestroy:function(){var a=this.pasteTask;if(a){a.cancel()}Ext.form.field.Text.prototype.doDestroy.call(this)}},0,["textarea","textareafield"],["component","box","field","textfield","textareafield","textarea"],{component:true,box:true,field:true,textfield:true,textareafield:true,textarea:true},["widget.textarea","widget.textareafield"],0,[Ext.form.field,"TextArea",Ext.form,"TextArea"],0));(Ext.cmd.derive("Ext.window.MessageBox",Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:"x-message-box-info",WARNING:"x-message-box-warning",QUESTION:"x-message-box-question",ERROR:"x-message-box-error",hideMode:"offsets",closeAction:"hide",resizable:false,scrollable:true,title:" ",defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:true,cls:["x-message-box","x-hidden-offsets"],layout:{type:"vbox",align:"stretch"},shrinkWrapDock:true,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:"OK",yes:"Yes",no:"No",cancel:"Cancel"},buttonIds:["ok","yes","no","cancel"],titleText:{confirm:"Confirm",prompt:"Prompt",wait:"Loading...",alert:"Attention"},baseIconCls:"x-message-box-icon",ariaRole:"alertdialog",makeButton:function(a){var b=this.buttonIds[a];return new Ext.button.Button({handler:this.btnCallback,itemId:b,scope:this,text:this.buttonText[b],minWidth:75})},btnCallback:function(a,c){var b=this,d,e;if(c&&c.type==="keydown"&&!c.isSpecialKey()){c.getTarget(null,null,true).on({keyup:function(g){b.btnCallback(a,g)},single:true});return}if(b.cfg.prompt||b.cfg.multiline){if(b.cfg.multiline){e=b.textArea}else{e=b.textField}d=e.getValue();e.reset()}b.hide();b.userCallback(a.itemId,d,b.cfg)},hide:function(){var b=this,a=b.cfg?b.cfg.cls:"";b.progressBar.reset();if(a){b.removeCls(a)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(a){var b=this;Ext.window.Window.prototype.constructor.apply(this,arguments);b.minWidth=b.defaultMinWidth=(b.minWidth||b.defaultMinWidth);b.maxWidth=b.defaultMaxWidth=(b.maxWidth||b.defaultMaxWidth);b.minHeight=b.defaultMinHeight=(b.minHeight||b.defaultMinHeight);b.maxHeight=b.defaultMaxHeight=(b.maxHeight||b.defaultMaxHeight)},initComponent:function(a){var e=this,b=e.id,d,c;e.title=e.title||" ";e.iconCls=e.iconCls||"";e.topContainer=new Ext.container.Container({layout:"hbox",padding:10,style:{overflow:"hidden"},items:[e.iconComponent=new Ext.Component({cls:e.baseIconCls}),e.promptContainer=new Ext.container.Container({flex:1,layout:{type:"vbox",align:"stretch"},items:[e.msg=new Ext.Component({id:b+"-msg",cls:e.baseCls+"-text"}),e.textField=new Ext.form.field.Text({id:b+"-textfield",enableKeyEvents:true,ariaAttributes:{"aria-labelledby":e.msg.id},listeners:{keydown:e.onPromptKey,scope:e}}),e.textArea=new Ext.form.field.TextArea({id:b+"-textarea",height:75,ariaAttributes:{"aria-labelledby":e.msg.id}})]})]});e.progressBar=new Ext.ProgressBar({id:b+"-progressbar",margin:"0 10 10 10"});e.items=[e.topContainer,e.progressBar];e.msgButtons=[];for(d=0;d<4;d++){c=e.makeButton(d);e.msgButtons[c.itemId]=c;e.msgButtons.push(c)}e.bottomTb=new Ext.toolbar.Toolbar({id:b+"-toolbar",ui:"footer",dock:"bottom",enableFocusableContainer:false,ariaRole:null,layout:{pack:"center"},items:[e.msgButtons[0],e.msgButtons[1],e.msgButtons[2],e.msgButtons[3]]});e.dockedItems=[e.bottomTb];e.on("close",e.onClose,e);Ext.window.Window.prototype.initComponent.call(this)},afterRender:function(){var a=this;Ext.window.Window.prototype.afterRender.apply(this,arguments);a.textField.labelEl.dom.removeAttribute("for");a.textArea.labelEl.dom.removeAttribute("for")},onClose:function(){var a=this.msgButtons[3];if(a){this.btnCallback(a)}},onPromptKey:function(a,c){var b=this;if(c.keyCode===c.RETURN||c.keyCode===10){if(b.msgButtons.ok.isVisible()){b.msgButtons.ok.handler.call(b,b.msgButtons.ok)}else{if(b.msgButtons.yes.isVisible()){b.msgButtons.yes.handler.call(b,b.msgButtons.yes)}}}},reconfigure:function(d){var v=this,s=0,k=true,x=v.buttonText,g=v.resizer,q=v.header,u=q&&!q.isHeader,e=d&&(d.message||d.msg),h=d.buttonTips,w,a,y,o,l,r,t,j,c,m,p,n,b;v.updateButtonText();v.cfg=d=d||{};n=d.wait;if(d.width){o=d.width}if(d.height){l=d.height}v.minWidth=d.minWidth||v.defaultMinWidth;v.maxWidth=d.maxWidth||v.defaultMaxWidth;v.minHeight=d.minHeight||v.defaultMinHeight;v.maxHeight=d.maxHeight||v.defaultMaxHeight;if("maskClickAction" in d){v.maskClickAction=d.maskClickAction}else{delete v.maskClickAction}if(g){y=g.resizeTracker;g.minWidth=y.minWidth=v.minWidth;g.maxWidth=y.maxWidth=v.maxWidth;g.minHeight=y.minHeight=v.minHeight;g.maxHeight=y.maxHeight=v.maxHeight}delete v.defaultFocus;if(d.defaultFocus){v.defaultFocus=d.defaultFocus}v.animateTarget=d.animateTarget||undefined;v.modal=d.modal!==false;if(d.title!=null){w=d.title}else{if(u&&q.title!=null){w=q.title}else{w=v.title}}if(d.iconCls!=null){a=d.iconCls}else{if(u&&q.iconCls!=null){a=q.iconCls}else{a=v.iconCls}}v.setTitle(w);v.setIconCls(a);if(Ext.isObject(d.buttons)){v.buttonText=d.buttons;s=0}else{v.buttonText=d.buttonText||v.buttonText;s=Ext.isNumber(d.buttons)?d.buttons:0}Ext.each(v.buttonIds,function(i){v.msgButtons[i].setTooltip((h&&h[i])||null)});s=s|v.updateButtonText();v.buttonText=x;Ext.suspendLayouts();v.width=v.height=null;if(o||l){if(o){v.setWidth(o)}if(l){v.setHeight(l)}}if(!v.rendered){v.render(Ext.getBody())}v.closable=d.closable!==false&&!n;q=v.header;if(q){b=q.child("[type=close]");if(b){b.setVisible(v.closable)}if(!d.title&&!v.closable&&!d.iconCls){q.hide()}else{q.show()}}v.liveDrag=!d.proxyDrag;v.userCallback=Ext.Function.bindCallback(d.callback||d.fn||Ext.emptyFn,d.scope||Ext.global);v.setIcon(d.icon);c=v.msg;if(e){c.setHtml(e);c.show();v.ariaEl.dom.setAttribute("aria-describedby",c.id)}else{c.hide();v.ariaEl.dom.removeAttribute("aria-describedby")}t=v.textArea;j=v.textField;if(d.prompt||d.multiline){v.multiline=d.multiline;if(d.multiline){t.setValue(d.value);t.setHeight(d.defaultTextHeight||v.defaultTextHeight);t.show();j.hide();v.defaultFocus=t}else{j.setValue(d.value);t.hide();j.show();v.defaultFocus=j}v.ariaEl.dom.removeAttribute("aria-describedby")}else{t.hide();j.hide()}m=v.progressBar;if(d.progress||n){m.show();v.updateProgress(0,d.progressText);v.defaultFocus=m;if(n){m.wait(n===true?d.waitConfig:n)}}else{m.hide()}p=v.msgButtons;for(r=0;r<4;r++){if(s&Math.pow(2,r)){if(!v.defaultFocus){v.defaultFocus=p[r]}p[r].show();k=false}else{p[r].hide()}}if(k){v.bottomTb.hide()}else{v.bottomTb.show()}Ext.resumeLayouts(true)},updateButtonText:function(){var d=this,c=d.buttonText,b=0,e,a;for(e in c){if(c.hasOwnProperty(e)){a=d.msgButtons[e];if(a){if(d.cfg&&d.cfg.buttonText){b=b|Math.pow(2,Ext.Array.indexOf(d.buttonIds,e))}if(a.text!==c[e]){a.setText(c[e])}}}}return b},show:function(a){var c=this,b;a=a||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){c.show(a)},single:true});return c}c.reconfigure(a);if(a.cls){c.addCls(a.cls)}b=c.query("textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])");c.preventFocusOnActivate=!b.length;Ext.window.Window.prototype.show.call(this);return c},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(d,c,a){var e=this,g=e.iconComponent,b=e.messageIconCls;if(b){g.removeCls(b)}if(d){g.show();if(c||a){g.setSize(c||g.getWidth(),a||g.getHeight())}g.addCls("x-dlg-icon");g.addCls(e.messageIconCls=d)}else{g.removeCls("x-dlg-icon");g.hide()}return e},updateProgress:function(c,a,b){this.progressBar.updateProgress(c,a);if(b){this.updateText(b)}return this},onEsc:function(){if(this.closable!==false){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,d,c,b){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:d,buttons:this.YESNO,callback:c,scope:b}}return this.show(a)},prompt:function(g,d,c,b,a,e){if(Ext.isString(g)){g={prompt:true,title:g,minWidth:this.minPromptWidth,message:d,buttons:this.OKCANCEL,callback:c,scope:b,multiline:a,value:e}}return this.show(g)},wait:function(b,c,a){if(Ext.isString(b)){b={title:c,message:b,closable:false,wait:true,modal:true,minWidth:this.minProgressWidth,waitConfig:a}}return this.show(b)},alert:function(d,c,b,a){if(Ext.isString(d)){d={title:d,message:c,buttons:this.OK,fn:b,scope:a,minWidth:this.minWidth}}return this.show(d)},progress:function(c,b,a){if(Ext.isString(c)){c={title:c,message:b,progress:true,progressText:a}}return this.show(c)}},1,["messagebox"],["component","box","container","panel","window","messagebox"],{component:true,box:true,container:true,panel:true,window:true,messagebox:true},["widget.messagebox"],0,[Ext.window,"MessageBox"],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})}));(Ext.cmd.derive("Ext.form.Basic",Ext.util.Observable,{alternateClassName:"Ext.form.BasicForm",taskDelay:10,constructor:function(b,c){var d=this,a;d.owner=b;d.fieldMonitors={validitychange:d.checkValidityDelay,enable:d.checkValidityDelay,disable:d.checkValidityDelay,dirtychange:d.checkDirtyDelay,errorchange:d.checkErrorDelay,scope:d};d.checkValidityTask=new Ext.util.DelayedTask(d.checkValidity,d);d.checkDirtyTask=new Ext.util.DelayedTask(d.checkDirty,d);d.checkErrorTask=new Ext.util.DelayedTask(d.checkError,d);d.monitor=new Ext.container.Monitor({selector:"[isFormField]:not([excludeForm])",scope:d,addHandler:d.onFieldAdd,removeHandler:d.onFieldRemove,invalidateHandler:d.onMonitorInvalidate});d.monitor.bind(b);Ext.apply(d,c);if(Ext.isString(d.paramOrder)){d.paramOrder=d.paramOrder.split(/[\s,|]/)}a=d.reader;if(a&&!a.isReader){if(typeof a==="string"){a={type:a}}d.reader=Ext.createByAlias("reader."+a.type,a)}a=d.errorReader;if(a&&!a.isReader){if(typeof a==="string"){a={type:a}}d.errorReader=Ext.createByAlias("reader."+a.type,a)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=true;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:false,waitTitle:"Please Wait...",trackResetOnLoad:false,wasDirty:false,destroy:function(){var b=this,a=b.monitor;if(a){a.unbind();b.monitor=null}b.clearListeners();b.checkValidityTask.cancel();b.checkDirtyTask.cancel();b.checkErrorTask.cancel();b.checkValidityTask=b.checkDirtyTask=b.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query("[formBind]"))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(c){var a=c.preventMark,b;c.preventMark=true;b=c.isValid();c.preventMark=a;return !b})},isValid:function(){var a=this,b;Ext.suspendLayouts();b=a.getFields().filterBy(function(c){return !c.validate()});Ext.resumeLayouts(true);return b.length<1},checkValidity:function(){var b=this,a;if(b.destroyed){return}a=!b.hasInvalidField();if(a!==b.wasValid){b.onValidityChange(a);b.fireEvent("validitychange",b,a);b.wasValid=a}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else{this.checkValidity()}},checkError:function(){this.fireEvent("errorchange",this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else{this.checkError()}},onValidityChange:function(g){var d=this.getBoundItems(),b,c,a,e;if(d){b=d.items;a=b.length;for(c=0;c',' {$}="{.}"',"",' role="presentation"',"",">","{%this.renderContainer(out,values)%}",""],initComponent:function(){var a=this;a.initLabelable();a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.initMonitor()},onAdd:function(a){var b=this;if(a.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&b.layout.type==="absolute"&&!b.hideLabel&&b.labelAlign!=="top"){a.x+=(b.labelWidth+b.labelPad)}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(a.isLabelable&&b.combineLabels){a.oldHideLabel=a.hideLabel;a.hideLabel=true}b.updateLabel()},onRemove:function(a,b){var c=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!b){if(a.isLabelable&&c.combineLabels){a.hideLabel=a.oldHideLabel}c.updateLabel()}},initRenderData:function(){var a=this,b=Ext.container.Container.prototype.initRenderData.call(this);b.containerElCls=a.containerElCls;b=Ext.applyIf(b,a.getLabelableRenderData());if(a.labelAlign==="top"||a.msgTarget==="under"){b.extraFieldBodyCls+=" x-field-container-body-vertical"}b.tipAnchorTarget=a.id+"-containerEl";return b},getFieldLabel:function(){var a=this.fieldLabel||"";if(!a&&this.combineLabels){a=Ext.Array.map(this.query("[isFieldLabelable]"),function(b){return b.getFieldLabel()}).join(this.labelConnector)}return a},getSubTplData:function(){var a=this.initRenderData();Ext.apply(a,this.subTplData);return a},getSubTplMarkup:function(b){var d=this,a=d.lookupTpl("fieldSubTpl"),c;if(!a.renderContent){d.setupRenderTpl(a)}c=a.apply(d.getSubTplData(b));return c},updateLabel:function(){var b=this,a=b.labelEl;if(a){b.setFieldLabel(b.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var c=this,d=c.getActiveError(),b=Ext.Array.filter(c.query("[isFormField]"),function(e){return e.hasActiveError()}),a=c.getCombinedErrors(b);if(a){c.setActiveErrors(a)}else{c.unsetActiveError()}if(d!==c.getActiveError()){c.updateLayout()}}},getCombinedErrors:function(e){var k=[],c,l=e.length,i,d,j,b,g,h;for(c=0;c{% this.renderColumn(out,parent,xindex-1) %}',lastOwnerItemsGeneration:null,initLayout:function(){var b=this,a=b.owner;b.columnsArray=Ext.isArray(a.columns);b.autoColumns=!a.columns||a.columns==="auto";if(!b.autoColumns){b.vertical=a.vertical||(a.columns===1||a.columns.length===1)}Ext.layout.container.Container.prototype.initLayout.call(this)},beginLayout:function(b){var k=this,e,d,h,a,j,g=0,m=0,l=k.autoFlex,c=k.innerCt.dom.style;Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);e=k.rowNodes[0].children;b.innerCtContext=b.getEl("innerCt",k);if(!b.widthModel.shrinkWrap){d=e.length;if(k.columnsArray){for(h=0;hh){k=l[l.length-1];k.parentNode.removeChild(k)}for(d=h-1;d>=0;d--){k=l[d];b=k.children;while(b.length>e){a=b[b.length-1];k.removeChild(a)}if(d>0){for(c=b.length-1;c>=0;c--){a=b[c];if(a.children.length===0){k.removeChild(a)}else{break}}}}},renderItem:function(e,g,c){var d=this,b,a;d.configureItem(e);a=d.vertical?g:0;b=Ext.get(d.getColumnNodeAt(g,c));e.render(b,a)},moveItem:function(e,h,c){var d=this,b,a,g;a=d.vertical?h:0;b=d.getColumnNodeAt(h,c);g=b.children[a];b.insertBefore(e.el.dom,g||null)}},0,0,0,0,["layout.checkboxgroup"],0,[Ext.layout.container,"CheckboxGroup"],0));(Ext.cmd.derive("Ext.form.CheckboxManager",Ext.util.MixedCollection,{singleton:true,getByName:function(a,b){return this.filterBy(function(c){return c.name===a&&c.getFormId()===b})}},0,0,0,0,0,0,[Ext.form,"CheckboxManager"],0));(Ext.cmd.derive("Ext.form.field.Checkbox",Ext.form.field.Base,{alternateClassName:"Ext.form.Checkbox",stretchInputElFixed:false,childEls:["boxLabelEl","innerWrapEl","displayEl"],fieldSubTpl:['",{disableFormats:true,compiled:true}],publishes:{checked:1},subTplInsertions:["beforeBoxLabelTpl","afterBoxLabelTpl","beforeBoxLabelTextTpl","afterBoxLabelTextTpl","boxLabelAttrTpl","inputAttrTpl"],isCheckbox:true,focusCls:"form-checkbox-focus",fieldBodyCls:"x-form-cb-wrap",checked:false,checkedCls:"x-form-cb-checked",boxLabelCls:"x-form-cb-label",boxLabelAlign:"after",afterLabelCls:"x-form-cb-after",wrapInnerCls:"x-form-cb-wrap-inner",noBoxLabelCls:"x-form-cb-no-box-label",inputValue:"on",checkChangeEvents:[],changeEventName:"change",inputType:"checkbox",isTextInput:false,ariaRole:"native",onRe:/^on$/i,inputCls:"x-form-cb",_checkboxCls:"x-form-cb-input",initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var b=this,a=!!b.checked;b.originalValue=b.initialValue=b.lastValue=a;b.setValue(a)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}if(!a.fieldLabel){a.skipLabelForAttribute=true}return Ext.form.field.Base.prototype.getElConfig.call(this)},getModelData:function(){var a=Ext.form.field.Base.prototype.getModelData.apply(this,arguments);if(a){a[this.getName()]=this.getSubmitValue()}return a},getSubTplData:function(b){var d=this,c=d.boxLabel,h=d.boxLabelAlign,g=h==="before",e,a;e=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,b),{inputType:d.inputType,checkboxCls:d._checkboxCls,disabled:d.readOnly||d.disabled,checked:!!d.checked,wrapInnerCls:d.wrapInnerCls,boxLabel:c,boxLabelCls:d.boxLabelCls,boxLabelAlign:h,labelAlignedBefore:g,afterLabelCls:g?d.afterLabelCls:"",noBoxLabelCls:!c?d.noBoxLabelCls:"",inputName:d.name||d.id});a=e.inputElAriaAttributes;if(a){delete a["aria-readonly"]}return e},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on(a.changeEventName,a.onChangeEvent,a,{delegated:false});if(Ext.isIE){a.bodyEl.on("mousedown",a.onBodyElMousedown,a)}else{if(Ext.isMac&&(Ext.isGecko||Ext.isSafari)){a.boxLabelEl.on("mousedown",a.onBoxLabelOrInputMousedown,a);a.inputEl.on("mousedown",a.onBoxLabelOrInputMousedown,a)}}},setBoxLabel:function(a){var b=this;b.boxLabel=a;if(b.rendered){b.boxLabelEl.setHtml(a);b.boxLabelEl[a?"removeCls":"addCls"](b.noBoxLabelCls);b.updateLayout()}},onBodyElMousedown:function(a){if(a.target!==this.inputEl.dom){a.preventDefault()}},onBoxLabelOrInputMousedown:function(a){this.inputEl.focus();a.preventDefault()},onChangeEvent:function(a){this.updateValueFromDom()},updateValueFromDom:function(){var a=this,b=a.inputEl&&a.inputEl.dom;if(b){a.checked=a.rawValue=a.value=b.checked;a.checkChange()}},updateCheckedCls:function(b){var a=this;b=b!=null?b:a.getValue();a[b?"addCls":"removeCls"](a.checkedCls)},getRawValue:function(){var a=this.inputEl&&this.inputEl.dom;return a?a.checked:this.checked},getValue:function(){var a=this.inputEl&&this.inputEl.dom;return a?a.checked:this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.getValue()?this.inputValue:b},isChecked:function(c,a){var b=false;if(c===true||c==="true"){b=true}else{if(a!=="on"&&(a||a===0)&&(Ext.isString(c)||Ext.isNumber(c))){b=c==a}else{b=c==="1"||c===1||this.onRe.test(c)}}return b},setRawValue:function(c){var b=this,d=b.inputEl&&b.inputEl.dom,a=b.isChecked(c,b.inputValue);if(d){b.duringSetRawValue=true;d.checked=a;b.duringSetRawValue=false;b.updateCheckedCls(a)}b.checked=b.rawValue=a;if(!b.duringSetValue){b.lastValue=a}return a},setValue:function(g){var e=this,c,b,a,d;if(Ext.isArray(g)){c=e.getManager().getByName(e.name,e.getFormId()).items;a=c.length;for(b=0;b style="{bodyStyle}"
>',"{%this.renderContainer(out,values);%}",""],stateEvents:["collapse","expand"],maskOnDisable:false,initComponent:function(){var b=this,a=b.baseCls;if(b.ariaRole&&!b.ariaLabel){b.ariaLabel=Ext.String.formatEncode(b.descriptionText,b.title||"")}b.ariaRenderAttributes=b.ariaRenderAttributes||{};b.ariaRenderAttributes["aria-expanded"]=!b.collapsed;b.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);b.layout.managePadding=b.layout.manageOverflow=false;if(b.collapsed){b.addCls(a+"-collapsed");b.collapse()}if(b.title||b.checkboxToggle||b.collapsible){b.addTitleClasses();b.legend=b.createLegendCt()}b.initMonitor()},initRenderData:function(){var a=this,b=Ext.container.Container.prototype.initRenderData.call(this);b.bodyTargetCls=a.bodyTargetCls;a.protoBody.writeTo(b);delete a.protoBody;return b},doDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.doDestroy.call(this)},getState:function(){var a=Ext.container.Container.prototype.getState.call(this);a=this.addPropertyToState(a,"collapsed");return a},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn,collapsedHorizontal:function(){return true},collapsedVertical:function(){return true},createLegendCt:function(){var c=this,a=[],d={baseCls:c.baseCls+"-header",layout:"container",ui:c.ui,id:c.id+"-legend",autoEl:"legend",ariaRole:null,items:a,ownerCt:c,shrinkWrap:true,ownerLayout:c.componentLayout},b;if(c.checkboxToggle){a.push(c.createCheckboxCmp())}else{if(c.collapsible){a.push(c.createToggleCmp())}}a.push(c.createTitleCmp());b=new Ext.container.Container(d);return b},createTitleCmp:function(){var b=this,a={html:b.title,ui:b.ui,cls:b.baseCls+"-header-text",id:b.id+"-legendTitle",ariaRole:"presentation"};if(b.collapsible&&b.toggleOnTitleClick){a.listeners={click:{element:"el",scope:b,fn:b.toggle}};a.cls+=" "+b.baseCls+"-header-text-collapsible"}b.titleCmp=new Ext.Component(a);return b.titleCmp},createCheckboxCmp:function(){var b=this,d="-checkbox",a=b.baseCls+"-header"+d,c;a+=" "+a+"-"+b.ui;b.checkboxCmp=c=new Ext.form.field.Checkbox(Ext.apply({hideEmptyLabel:true,name:b.checkboxName||b.id+d,cls:a,id:b.id+"-legendChk",ui:b.checkboxUI,checked:!b.collapsed,msgTarget:"none",listeners:{change:b.onCheckChange,scope:b},ariaLabel:b.expandText},b.checkbox));return c},createToggleCmp:function(){var a=this,b;a.toggleCmp=b=new Ext.panel.Tool({cacheHeight:false,cls:a.baseCls+"-header-tool-"+a.ui,type:"toggle",handler:a.toggle,id:a.id+"-legendToggle",scope:a,ariaRole:"checkbox",ariaLabel:a.expandText,ariaRenderAttributes:{"aria-checked":!a.collapsed}});return b},doRenderLegend:function(b,e){var d=e.$comp,c=d.legend,a;if(c){c.ownerLayout.configureItem(c);d.setLegendCollapseImmunity(c);a=c.getRenderTree();Ext.DomHelper.generateMarkup(a,b)}},getCollapsed:function(){return this.collapsed?"top":false},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var b=this,a=b.legend;b.title=c;b.ariaLabel=Ext.String.formatEncode(b.descriptionText,c||"");if(b.rendered){if(!a){b.legend=a=b.createLegendCt();b.addTitleClasses();a.ownerLayout.configureItem(a);b.setLegendCollapseImmunity(a);a.render(b.el,0)}b.titleCmp.update(c);b.ariaEl.dom.setAttribute("aria-label",b.ariaLabel)}else{if(a){b.titleCmp.update(c)}else{b.addTitleClasses();b.legend=b.createLegendCt()}}return b},addTitleClasses:function(){var b=this,c=b.title,a=b.baseCls;if(c){b.addCls(a+"-with-title")}if(c||b.checkboxToggle||b.collapsible){b.addCls(a+"-with-legend")}},expand:function(){return this.setExpanded(true)},collapse:function(){return this.setExpanded(false)},setCollapsed:function(a){this.setExpanded(!a)},setExpanded:function(b){var c=this,d=c.checkboxCmp,e=c.toggleCmp,a=b?"expand":"collapse";if(!c.rendered||c.fireEvent("before"+a,c)!==false){b=!!b;if(d){d.setValue(b)}else{if(e&&e.ariaEl.dom){e.ariaEl.dom.setAttribute("aria-checked",b)}}if(b){c.removeCls(c.baseCls+"-collapsed")}else{c.addCls(c.baseCls+"-collapsed")}if(c.ariaEl.dom){c.ariaEl.dom.setAttribute("aria-expanded",!!b)}c.collapsed=!b;if(b){delete c.getInherited().collapsed}else{c.getInherited().collapsed=true}if(c.rendered){c.updateLayout({isRoot:false});c.fireEvent(a,c)}}return c},getRefItems:function(a){var c=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){c.unshift(b);if(a){c.unshift.apply(c,b.getRefItems(true))}}return c},toggle:function(){this.setExpanded(!!this.collapsed)},privates:{applyTargetCls:function(a){this.bodyTargetCls=a},finishRender:function(){var a=this.legend;Ext.container.Container.prototype.finishRender.call(this);if(a){a.finishRender()}},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({styleProp:"bodyStyle",styleIsText:true})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(e){var c=this,a=c.getProtoBody(),d=c.padding,b;if(d!==undefined){if(Ext.isIE8){d=c.parseBox(d);b=Ext.Element.parseBox(0);b.top=d.top;d.top=0;a.setStyle("padding",c.unitizeBox(b))}e.setStyle("padding",c.unitizeBox(d))}},onCheckChange:function(b,a){this.setExpanded(a)},setLegendCollapseImmunity:function(a){a.collapseImmune=true;a.getInherited().collapseImmune=true},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,["fieldset"],["component","box","container","fieldset"],{component:true,box:true,container:true,fieldset:true},["widget.fieldset"],[["fieldAncestor",Ext.form.FieldAncestor]],[Ext.form,"FieldSet"],0));(Ext.cmd.derive("Ext.form.Label",Ext.Component,{autoEl:"label",maskOnDisable:false,getElConfig:function(){var a=this;a.html=a.text?Ext.util.Format.htmlEncode(a.text):(a.html||"");return Ext.apply(Ext.Component.prototype.getElConfig.call(this),{htmlFor:a.forId||""})},setText:function(c,b){var a=this;b=b!==false;if(b){a.text=c;delete a.html}else{a.html=c;delete a.text}if(a.rendered){a.el.dom.innerHTML=b!==false?Ext.util.Format.htmlEncode(c):c;a.updateLayout()}return a}},0,["label"],["component","box","label"],{component:true,box:true,label:true},["widget.label"],0,[Ext.form,"Label"],0));(Ext.cmd.derive("Ext.form.Panel",Ext.panel.Panel,{alternateClassName:["Ext.FormPanel","Ext.form.FormPanel"],layout:"anchor",bodyAriaRole:"form",basicFormConfigs:["api","baseParams","errorReader","jsonSubmit","method","paramOrder","paramsAsHash","reader","standardSubmit","timeout","trackResetOnLoad","url","waitMsgTarget","waitTitle"],initComponent:function(){var a=this;if(a.frame){a.border=false}a.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);a.relayEvents(a.form,["beforeaction","actionfailed","actioncomplete","validitychange","dirtychange"]);if(a.pollForChanges){a.startPolling(a.pollInterval||500)}},initItems:function(){Ext.panel.Panel.prototype.initItems.call(this);this.initMonitor();this.form=this.createForm()},afterFirstLayout:function(){Ext.panel.Panel.prototype.afterFirstLayout.apply(this,arguments);this.form.initialize()},createForm:function(){var b={},d=this.basicFormConfigs,a=d.length,c=0,e;for(;c0;){d=a[c];if(d.checked){b=d.inputValue;break}}}else{b=Ext.form.CheckboxGroup.prototype.getValue.call(this)}return b},setValue:function(j){var g=this.items,b,h,k,e,c,d,a;Ext.suspendLayouts();if(this.simpleValue){for(c=0,d=g.length;c150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick(b);a.lastDownArrow=b.time}else{if(!b.stopped&&(b.time-a.lastDownArrow)<150){delete a.lastDownArrow}}},expand:function(){var c=this,a,b,d;if(c.rendered&&!c.isExpanded&&!c.destroyed){a=c.bodyEl;b=c.getPicker();d=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(c.matchFieldWidth){b.setWidth(c.bodyEl.getWidth())}b.show();c.isExpanded=true;c.alignPicker();a.addCls(c.openCls);if(!c.ariaStaticRoles[c.ariaRole]){if(!c.ariaEl.dom.hasAttribute("aria-owns")){c.ariaEl.dom.setAttribute("aria-owns",b.listEl?b.listEl.id:b.el.id)}c.ariaEl.dom.setAttribute("aria-expanded",true)}c.touchListeners=d.on({translate:false,touchstart:c.collapseIf,scope:c,delegated:false,destroyable:true});c.scrollListeners=Ext.on({scroll:c.onGlobalScroll,scope:c,destroyable:true});Ext.on("resize",c.alignPicker,c,{buffer:1});c.fireEvent("expand",c);c.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){var b=this,a;if(b.rendered&&!b.destroyed){a=b.getPicker();if(a.isVisible()&&a.isFloating()){b.doAlign()}}},doAlign:function(){var e=this,c=e.picker,a="-above",d,b;c.el.alignTo(e.triggerWrap,e.pickerAlign,e.pickerOffset);d=c.floatParent?c.getOffsetsTo(c.floatParent.getTargetEl()):c.getXY();c.x=d[0];c.y=d[1];b=c.el.getY()=g){k.deselectRange(o,g-1)}else{if(m!==h){k.selectRange(m,h,b)}}}k.lastSelected=h}else{if(n){if(!b){k.doSelect(h,false)}}else{k.selectWithEvent(h,j)}}}}break;case"SIMPLE":if(n===j.A&&b){k.selected.beginUpdate();k.selectRange(0,k.store.getCount()-1);k.selected.endUpdate()}else{if(c){k.doDeselect(h)}else{k.doSelect(h,true)}}break;case"SINGLE":if(!b){if(l){k.doSelect(h,false)}else{if(p||!n){k.selectWithEvent(h,j)}}}}if(!j.shiftKey&&!k.destroyed&&k.isSelected(h)){k.selectionStart=h;k.selectionStartIdx=g}},selectRange:function(m,d,n){var j=this,l=j.store,c=j.selected.items,o,g,h,e,a,k,b;if(j.isLocked()){return}o=j.normalizeRowRange(m,d);m=o[0];d=o[1];e=[];for(g=m;g<=d;g++){if(!j.isSelected(l.getAt(g))){e.push(l.getAt(g))}}if(!n){a=[];j.suspendChanges();for(g=0,h=c.length;gd){a.push(b)}}for(g=0,h=a.length;g0)}}}},deselectRange:function(e,d){var j=this,c=j.store,a,h,g,b;if(j.isLocked()){return}a=j.normalizeRowRange(e,d);e=a[0];d=a[1];g=[];for(h=e;h<=d;h++){b=c.getAt(h);if(j.isSelected(b)){g.push(b)}}if(g.length){j.doDeselect(g)}},normalizeRowRange:function(c,b){var a=this.store,d;if(!Ext.isNumber(c)){c=a.indexOf(c)}c=Math.max(0,c);if(!Ext.isNumber(b)){b=a.indexOf(b)}b=Math.min(b,a.getCount()-1);if(c>b){d=b;b=c;c=d}return[c,b]},select:function(b,c,a){if(Ext.isDefined(b)&&!(Ext.isArray(b)&&!b.length)){this.doSelect(b,c,a)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(c,e,b){var d=this,a;if(d.locked||c==null){return}if(typeof c==="number"){a=d.store.getAt(c);if(!a){return}c=[a]}if(d.selectionMode==="SINGLE"){if(c.isModel){c=[c]}if(c.length){d.doSingleSelect(c[0],b)}}else{d.doMultiSelect(c,e,b)}},doMultiSelect:function(a,l,k){var h=this,b=h.selected,j=false,m,d,g,e,c;if(h.locked){return}a=!Ext.isArray(a)?[a]:a;g=a.length;if(!l&&b.getCount()>0){m=h.deselectDuringSelect(a,k);if(h.destroyed){return}if(m[0]){h.maybeFireSelectionChange(m[1]>0&&!k);return}else{j=m[1]>0}}c=function(){if(!b.getCount()){h.selectionStart=e}if(!k){b.add(e)}j=true};for(d=0;d0&&!k);return g===l},doSingleSelect:function(a,b){var d=this,g=false,c=d.selected,e;if(d.locked){return}if(d.isSelected(a)){return}e=function(){if(c.getCount()){d.suspendChanges();var h=d.deselectDuringSelect([a],b);if(d.destroyed){return}d.resumeChanges();if(h[0]){return false}}d.lastSelected=a;if(!c.getCount()){d.selectionStart=a}c.add(a);g=true};d.onSelectChange(a,true,b,e);if(g&&!d.destroyed){d.maybeFireSelectionChange(!b)}},maybeFireSelectionChange:function(a){var b=this;if(a&&!b.suspendChange){b.fireEvent("selectionchange",b,b.getSelection())}},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():"SINGLE";this.selectionMode=this.modes[a]?a:"SINGLE"},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(d,c){var g=this,b=g.store,e,a;a=g.normalizeRowRange(d,c);d=a[0];c=a[1];for(e=d;e<=c;e++){if(!g.isSelected(b.getAt(e))){return false}}return true},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected?this.selected.contains(a):false},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var m=this,p=m.store,h=[],l=[],g=m.getSelection(),j=g.length,c=m.getSelected(),n,k,a,o,b,e;if(!p||!(c.isCollection||c.isBag||c.isRows)||!c.getCount()){return}a=p.getData();if(a.getSource){k=a.getSource();if(k){a=k}}m.refreshing=true;c.beginUpdate();m.suspendChanges();for(e=0;e0);if(h){k.fireEvent("lastselectedchanged",k,k.getSelection(),l)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(a,d,c,g){var e=this,b=d?"select":"deselect";if((c||e.fireEvent("before"+b,e,a))!==false&&g()!==false){if(!c&&!e.destroyed){e.fireEvent(b,e,a)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(c){var a=this.view,b;if(a){b=a.resolveSatelliteListenerScope(this,c)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,c)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,getLastSelected:function(){return this.lastSelected},selectWithEventMulti:function(k,m,d){var n=this,g=m.shiftKey,a=m.ctrlKey,c=g?(n.getSelectionStart()):null,h=n.getSelection(),l=h.length,b,j,o;if(g&&c){n.selectRange(c,k,a)}else{if(a&&d){if(n.allowDeselect){n.doDeselect(k,false)}}else{if(a){n.doSelect(k,true,false)}else{if(d&&!g&&!a&&l>1){if(n.allowDeselect){b=[];for(j=0;jthis.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent("itemclick",a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent("navigate",{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){this.setStore(null);Ext.destroy(this.viewListeners,this.keyNav);this.callParent()}},1,0,0,0,["view.navigation.default"],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,"NavigationModel"],0));(Ext.cmd.derive("Ext.view.AbstractView",Ext.Component,{isDataView:true,inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute("data-boundView"))}},defaultBindProperty:"store",renderBuffer:document.createElement("div"),statics:{updateDelay:200,queueRecordChange:function(n,p,h,b,c){var m=this,a=m.changeQueue||(m.changeQueue={}),j=h.internalId,l,g,k,d,q,o,e;l=a[j]||(a[j]={operation:b,record:h,data:{},views:[]});g=l.data;Ext.Array.include(l.views,n);if(c&&(k=c.length)){for(d=0;d
{1}
',d.itemCls,e,d.itemAriaRole);d.tpl=new Ext.XTemplate(e,c)}Ext.Component.prototype.initComponent.call(this);d.tpl=d.lookupTpl("tpl");if(d.overItemCls){d.trackOver=true}d.addCmpEvents();a=d.store=Ext.data.StoreManager.lookup(d.store||"ext-empty-store");if(!d.dataSource){d.dataSource=a}d.bindStore(a,true);d.getNavigationModel().bindComponent(this);if(!d.all){d.all=new Ext.CompositeElementLite()}d.scrollState={top:0,left:0};d.savedTabIndexAttribute="data-savedtabindex-"+d.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(b,a){var c=this.loadMask;Ext.Component.prototype.onRender.call(this,b,a);if(c){this.createMask(c)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.call(this);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refreshView()}else{a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var b=this,a=b.loadingHeight;if(a&&a>b.getHeight()){b.hasLoadingHeight=true;b.oldMinHeight=b.minHeight;b.minHeight=a;b.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.call(this);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var b=this.loadMask,a=[];if(b&&b.isComponent){a.push(b)}return a},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(a){var b=this,c;if(!b.ignoreNextSelection){b.ignoreNextSelection=true;c=b.getSelectionModel();if(a){c.select(a)}else{c.deselectAll()}b.ignoreNextSelection=false}},updateBindSelection:function(a,c){var d=this,b=null;if(!d.ignoreNextSelection){d.ignoreNextSelection=true;if(c.length){b=a.getLastSelected();d.hasHadSelection=true}if(d.hasHadSelection){d.setSelection(b)}d.ignoreNextSelection=false}},applySelectionModel:function(b,g){var e=this,d=e.grid,h,c,a;if(g){if(!g.destroyed){g.un({scope:e,selectionchange:e.updateBindSelection,lastselectedchanged:e.updateBindSelection})}Ext.destroy(e.selModelRelayer);b=Ext.Factory.selection(b)}else{if(b&&b.isSelectionModel){b.locked=e.disableSelection}else{if(e.simpleSelect){h="SIMPLE"}else{if(e.multiSelect){h="MULTI"}else{h="SINGLE"}}if(typeof b==="string"){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:e.allowDeselect||e.multiSelect,mode:h,locked:e.disableSelection},b))}}if(b.mode!=="SINGLE"){a=(d||e).ariaEl.dom;if(a){a.setAttribute("aria-multiselectable",true)}else{if(!d){c=e.ariaRenderAttributes||(e.ariaRenderAttributes={});c["aria-multiselectable"]=true}}}e.selModelRelayer=e.relayEvents(b,["selectionchange","beforeselect","beforedeselect","select","deselect","focuschange"]);b.on({scope:e,lastselectedchanged:e.updateBindSelection,selectionchange:e.updateBindSelection});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var c=this,b=c.getNavigationModel(),a;if(a==="scrollbar"){d.relatedTarget.focus();return}c.toggleChildrenTabbability(false);if(!c.itemFocused&&c.all.getCount()){if(d.event.getTarget()===c.tabGuardEl){a=c.all.getCount()-1}else{a=b.getLastFocused()}b.setPosition(a||0,d.event,null,!a);c.itemFocused=b.getPosition()!=null}if(c.itemFocused){c.el.dom.setAttribute("tabIndex",-1);if(c.tabGuardEl){c.tabGuardEl.setAttribute("tabIndex",-1)}}Ext.Component.prototype.onFocusEnter.call(this,d)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,true);a.itemFocused=false;a.el.dom.setAttribute("tabIndex",0);if(a.tabGuardEl){a.tabGuardEl.setAttribute("tabIndex",0)}}Ext.Component.prototype.onFocusLeave.call(this,b)},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var j=this,i=j.all,m=i.getCount(),h=j.refreshCounter,l,c,b,g=j.getSelectionModel(),e,d=h&&i.getCount()&&j.preserveScrollOnRefresh&&j.getScrollable(),k=j.bufferedRenderer,a;if(!j.rendered||j.destroyed){return}if(!j.hasListeners.beforerefresh||j.fireEvent("beforerefresh",j)!==false){j.refreshing=true;e=j.saveFocusState();l=j.getTargetEl();b=j.getViewRange();c=l.dom;if(d){a=d.getPosition();if(!(a.x||a.y)){a=null}}if(h){j.clearViewEl();j.refreshCounter++}else{j.refreshCounter=1}j.tpl.append(l,j.collectData(b,i.startIndex||0));if(b.length<1){j.addEmptyText();i.clear()}else{j.collectNodes(l.dom);j.updateIndexes(0)}e();if(j.refreshSelmodelOnRefresh!==false){g.refresh()}j.refreshNeeded=false;j.refreshSize(i.getCount()!==m);j.fireItemMutationEvent("refresh",j,b);if(d){d.scrollTo(a)}if(!j.viewReady){j.viewReady=true;j.fireEvent("viewready",j)}j.refreshing=false;if(k){k.refreshSize()}j.cleanupData()}if(!j.tabGuardEl){j.tabGuardEl=j.el.createChild({cls:"x-tab-guard x-tab-guard-after",tabIndex:"0"},null,true)}},addEmptyText:function(){var b=this,a=b.getStore();if(b.emptyText&&!a.isLoading()&&(!b.deferEmptyText||b.refreshCounter>1||a.isLoaded())){b.emptyEl=Ext.core.DomHelper.insertHtml("beforeEnd",b.getTargetEl().dom,b.emptyText)}},getEmptyText:function(){return this.emptyText},setEmptyText:function(a){var b=this;if(b.emptyText!==a){b.emptyText=a;b.refresh()}return b},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var c=this,b=c.getSizeModel(),a=c.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){c.updateLayout()}},afterFirstLayout:function(c,b){var d=this,a=d.getScrollable();if(a){a.on({scroll:d.onViewScroll,scrollend:d.onViewScrollEnd,scope:d,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,c,b)},clearViewEl:function(){var h=this,j=h.getTargetEl(),e=h.all,c=h.getStore(),d,b,g,a=h.getNodeContainer()===j;b=e.slice();g=[];for(d=e.startIndex;d<=e.endIndex;d++){g.push(c.getByInternalId(e.item(d,true).getAttribute("data-recordId")))}h.fireItemMutationEvent("itemremove",g,e.startIndex||0,b,h);h.clearEmptyEl();h.all.clear(!a);j=a?j.dom:h.getNodeContainer();if(j){j.innerHTML=""}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(b,a,c){this.fireEvent("scroll",this,a,c)},onViewScrollEnd:function(b,a,c){this.fireEvent("scrollend",this,a,c)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(e,d,c){var b,a,g;if(c){b=c.getAssociatedData();for(a in b){if(b.hasOwnProperty(a)){if(!g){e=Ext.Object.chain(e);g=true}e[a]=b[a]}}}return e},collectData:function(c,g){var e=[],d=0,a=c.length,b;for(;d-1){if(g.getNode(a)){e=g.bufferRender([a],d).children[0];g.all.replaceElement(d,e,true);g.updateIndexes(d,d);b.onUpdate(a);g.refreshSizePending=true;if(b.isSelected(a)){g.onItemSelect(a)}if(g.hasListeners.itemupdate){g.fireEvent("itemupdate",a,d,e,g)}return e}}}},onReplace:function(k,m,b,c){var i=this,j=i.all,g=i.getSelectionModel(),n=m,p,o,h,a,l,d,e;if(i.rendered){p=i.bufferRender(c,m,true);h=p.fragment;a=p.children;o=j.item(m);if(o){j.item(m).insertSibling(h,"before",true)}else{i.appendNodes(h)}j.insert(m,a);if(b.length){e=i.saveFocusState()}m+=c.length;d=m+b.length-1;l=j.removeRange(m,d,true);if(i.refreshSelmodelOnRefresh!==false){g.refresh()}i.updateIndexes(m);i.fireItemMutationEvent("itemremove",b,n,l,i);i.fireItemMutationEvent("itemadd",c,n,a,i);e();i.refreshSize()}},onAdd:function(d,c,e){var g=this,b,a=g.getSelectionModel();if(g.rendered&&!g.refreshNeeded){if(g.all.getCount()===0){g.refresh();b=g.all.slice()}else{b=g.doAdd(c,e);if(g.refreshSelmodelOnRefresh!==false){a.refresh()}g.updateIndexes(e);g.refreshSizePending=true}g.fireItemMutationEvent("itemadd",c,e,b,g)}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else{b.item(c-1).insertSibling(a,"after")}},doAdd:function(c,e){var h=this,k=h.bufferRender(c,e,true),g=k.fragment,b=k.children,i=h.all,d=i.getCount(),j=i.startIndex||0,a=i.endIndex||d-1;if(d===0||e>a){h.appendNodes(g)}else{if(e<=j){i.item(j).insertSibling(g,"before",true)}else{i.item(e).insertSibling(b,"before",true)}}i.insert(e,b);return b},onRemove:function(l,c,h){var j=this,m=j.all,k,d,e,a,b,g;if(j.rendered&&!j.refreshNeeded&&m.getCount()){if(j.dataSource.getCount()===0){j.refresh()}else{g=j.saveFocusState();a=[];for(d=c.length-1;d>=0;--d){e=c[d];k=h+d;if(a){b=m.item(k);a[d]=b?b.dom:undefined}if(m.item(k)){j.doRemove(e,k)}}j.fireItemMutationEvent("itemremove",c,h,a,j);g();j.updateIndexes(h)}j.refreshSizePending=true}},doRemove:function(a,b){this.all.removeElement(b,true)},eventLifecycleMap:{refresh:"onViewRefresh",itemremove:"onItemRemove",itemadd:"onItemAdd"},fireItemMutationEvent:function(a){var b=this,c=b.ownerGrid;if(c){b.ownerGrid[b.eventLifecycleMap[a]].apply(b.ownerGrid,Ext.Array.slice(arguments,1))}b.fireEvent.apply(b,arguments)},saveFocusState:function(){var e=this,b=e.dataSource||e.store,c=e.getNavigationModel(),d=c.recordIndex,g=c.record,a=e.el.contains(Ext.Element.getActiveElement());if(g){if(a){e.el.dom.focus()}return function(){if(b.getCount()){d=Math.min(d,e.all.getCount()-1);c.setPosition(b.contains(g)?g:d,null,null,true,!a)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(h,g){var b=this.all.elements,e,a=this.getViewRange(),d,c=this.id;h=h||0;g=g||((g===0)?0:(b.length-1));for(d=h;d<=g;d++){e=b[d];e.setAttribute("data-recordIndex",d);e.setAttribute("data-recordId",a[d].internalId);e.setAttribute("data-boundView",c)}},bindStore:function(b,c){var e=this,a=e.getSelectionModel(),d=e.getNavigationModel();if(a&&!a.destroyed){a.bindStore(b,c);a.bindComponent(b?e:null)}e.mixins.storeholder.bindStore.apply(e,arguments);if(d&&!d.destroyed){d.setStore(b)}if(b&&e.componentLayoutCounter&&!e.blockRefresh){e.doFirstRefresh(b,!c)}},doFirstRefresh:function(a,c){var b=this;if(b.deferInitialRefresh&&!c){Ext.defer(b.doFirstRefresh,1,b,[a,true])}else{if(a&&!b.deferRefreshForLoad(a)){b.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(a,c){var b=this;if(b.store.isBufferedStore){b.store.preserveScrollOnReload=b.preserveScrollOnReload}if(c&&c.isBufferedStore){delete c.preserveScrollOnReload}b.setMaskBind(a);if(!b.dataSource){b.dataSource=a}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return{refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(true);if(a.refreshSizePending){a.refreshSize(true);a.refreshSizePending=false}},onDataRefresh:function(a){var c=this,b=c.preserveScrollOnRefresh;if(a.loadCount>c.lastRefreshLoadCount){c.preserveScrollOnRefresh=c.preserveScrollOnReload}c.refreshView();c.preserveScrollOnRefresh=b;c.lastRefreshLoadCount=a.loadCount},refreshView:function(c){var b=this,a=b.blockRefresh||!b.rendered||b.up("[collapsed],[isCollapsingOrExpanding],[hidden]"),d=b.bufferedRenderer;if(a){b.refreshNeeded=true}else{if(d){d.refreshView(c)}else{b.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var b=[],a=this.getSelectionModel().getSelection(),d=a.length,c=0;for(;ch.bottom){a=c.bottom-h.bottom}}if(c.lefth.right){b=c.right-h.right}}if(b||a){g.scrollBy(b,a,false)}e.set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,["dataview"],["component","box","dataview"],{component:true,box:true,dataview:true},["widget.dataview"],0,[Ext.view,"View",Ext,"DataView"],0));(Ext.cmd.derive("Ext.view.BoundListKeyNav",Ext.view.NavigationModel,{navigateOnSpace:true,initKeyNav:function(a){var b=this,c=a.pickerField;if(!b.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,a);b.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:b.onKeyEsc,scope:b})}if(!c){return}if(!c.rendered){c.on("render",Ext.Function.bind(b.initKeyNav,b,[a],0),b,{single:true});return}b.fieldKeyNav=new Ext.util.KeyNav({disabled:true,target:c.inputEl,forceKeyDown:true,up:b.onKeyUp,down:b.onKeyDown,right:b.onKeyRight,left:b.onKeyLeft,pageDown:b.onKeyPageDown,pageUp:b.onKeyPageUp,home:b.onKeyHome,end:b.onKeyEnd,tab:b.onKeyTab,space:b.onKeySpace,enter:b.onKeyEnter,A:{ctrl:true,handler:b.onSelectAllKeyPress},priority:1001,scope:b})},processViewEvent:function(b,a,e,c,d){if(d.within(b.listWrap)){return d}if(d.getKey()===d.ESC){if(Ext.fly(d.target).isInputField()){d.target=d.target.parentNode}return d}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(b,a,e,c,d){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,b,a,e,c,d);if(d.pointerType==="mouse"){d.preventDefault()}},onKeyUp:function(i){var g=this,b=g.view,d=b.all,h=b.highlightedItem,c=h?b.indexOf(h):-1,a=c>0?c-1:d.getCount()-1;g.setPosition(a);i.preventDefault()},onKeyDown:function(i){var g=this,b=g.view,d=b.all,h=b.highlightedItem,c=h?b.indexOf(h):-1,a=c
',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return{vertical:a.vertical,upDisabledCls:a.upEnabled?"":(a.spinnerUpCls+"-disabled"),downDisabledCls:a.downEnabled?"":(a.spinnerDownCls+"-disabled"),spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var b=this,a=arguments,d=b.clickRepeater?a[1]:a[0],c=b.field;if(!c.readOnly&&!c.disabled){if(b.upEl.contains(d.target)){Ext.callback(b.upHandler,b.scope,[c,b,d],0,c)}else{if(b.downEl.contains(d.target)){Ext.callback(b.downHandler,b.scope,[c,b,d],0,c)}}}c.inputEl.focus()},onFieldRender:function(){var b=this,a=b.vertical,d,c;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);d=b.spinnerEl=b.el.select("."+b.spinnerCls,true);c=d.elements;b.upEl=a?c[0]:c[1];b.downEl=a?c[1]:c[0]},setUpEnabled:function(a){this.upEl[a?"removeCls":"addCls"](this.spinnerUpCls+"-disabled")},setDownEnabled:function(a){this.downEl[a?"removeCls":"addCls"](this.spinnerDownCls+"-disabled")}},0,0,0,0,["trigger.spinner"],0,[Ext.form.trigger,"Spinner"],0));(Ext.cmd.derive("Ext.form.field.Spinner",Ext.form.field.Text,{alternateClassName:"Ext.form.Spinner",config:{triggers:{spinner:{type:"spinner",upHandler:"onSpinnerUpClick",downHandler:"onSpinnerDownClick",endHandler:"onSpinEnd",scope:"this"}}},spinUpEnabled:true,spinDownEnabled:true,keyNavEnabled:true,mouseWheelEnabled:true,repeatTriggerClick:true,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:"spinbutton",applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var b=this,a=b.getTrigger("spinner");(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(b.keyNavEnabled){b.spinnerKeyNav=new Ext.util.KeyNav(b.inputEl,{scope:b,up:b.spinUp,down:b.spinDown});b.inputEl.on({keyup:b.onInputElKeyUp,scope:b})}if(b.mouseWheelEnabled){b.mon(b.bodyEl,"mousewheel",b.onMouseWheel,b)}b.spinUpEl=a.upEl;b.spinDownEl=a.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent("spin",a,"up");a.fireEvent("spinup",a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent("spin",a,"down");a.fireEvent("spindown",a);a.onSpinDown()}},setSpinUpEnabled:function(a){var b=this,c=b.spinUpEnabled;b.spinUpEnabled=a;if(c!==a&&b.rendered){b.getTrigger("spinner").setUpEnabled(a)}},setSpinDownEnabled:function(a){var b=this,c=b.spinDownEnabled;b.spinDownEnabled=a;if(c!==a&&b.rendered){b.getTrigger("spinner").setDownEnabled(a)}},onMouseWheel:function(b){var a=this,c;if(a.hasFocus){c=b.getWheelDelta();if(c>0){a.spinUp()}else{if(c<0){a.spinDown()}}b.stopEvent();a.onSpinEnd()}},onInputElKeyUp:function(a){if(a.keyCode===a.UP||a.keyCode===a.DOWN){this.onSpinEnd()}},doDestroy:function(){Ext.destroyMembers(this,"spinnerKeyNav");Ext.form.field.Text.prototype.doDestroy.call(this)}},0,["spinnerfield"],["component","box","field","textfield","spinnerfield"],{component:true,box:true,field:true,textfield:true,spinnerfield:true},["widget.spinnerfield"],0,[Ext.form.field,"Spinner",Ext.form,"Spinner"],function(a){a.prototype.onSpinEnd=Ext.Function.createBuffered(function(){this.fireEvent("spinend",this)},100)}));(Ext.cmd.derive("Ext.form.field.Number",Ext.form.field.Spinner,{alternateClassName:["Ext.form.NumberField","Ext.form.Number"],allowExponential:true,allowDecimals:true,decimalSeparator:null,submitLocaleSeparator:true,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,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",negativeText:"The value cannot be negative",baseChars:"0123456789",autoStripChars:false,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},getSubTplData:function(c){var e=this,d=e.minValue,a=e.maxValue,h,b,g;h=Ext.form.field.Spinner.prototype.getSubTplData.call(this,c);b=h.inputElAriaAttributes;if(b){if(d>Number.NEGATIVE_INFINITY){b["aria-valuemin"]=d}if(a=d&&g<=a){b["aria-valuenow"]=g}}return h},setValue:function(c){var b=this,d,a;if(b.hasFocus){d=b.getBind();a=d&&d.value;if(a&&a.syncing&&c===b.value){return b}}return Ext.form.field.Spinner.prototype.setValue.call(this,c)},getErrors:function(c){c=arguments.length>0?c:this.processRawValue(this.getRawValue());var b=this,e=Ext.form.field.Spinner.prototype.getErrors.call(this,c),d=Ext.String.format,a;if(c.length<1){return e}c=String(c).replace(b.decimalSeparator,".");if(isNaN(c)){e.push(d(b.nanText,c))}a=b.parseValue(c);if(b.minValue===0&&a<0){e.push(this.negativeText)}else{if(ab.maxValue){e.push(d(b.maxText,b.maxValue))}return e},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(c){var b=this,a=b.decimalSeparator;c=b.parseValue(c);c=b.fixPrecision(c);c=Ext.isNumber(c)?c:parseFloat(String(c).replace(a,"."));c=isNaN(c)?"":String(c).replace(".",a);return c},getSubmitValue:function(){var a=this,b=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!a.submitLocaleSeparator){b=b.replace(a.decimalSeparator,".")}return b},onChange:function(b){var a=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(a){if(Ext.isNumber(b)&&isFinite(b)){a.setAttribute("aria-valuenow",b)}else{a.removeAttribute("aria-valuenow")}}},toggleSpinners:function(){var c=this,d=c.getValue(),b=d===null,a;if(c.spinUpEnabled||c.spinUpDisabledByToggle){a=b||dc.minValue;c.setSpinDownEnabled(a,true)}},setMinValue:function(d){var b=this,a=b.ariaEl.dom,c,e,a;b.minValue=c=Ext.Number.from(d,Number.NEGATIVE_INFINITY);b.toggleSpinners();if(a){if(c>Number.NEGATIVE_INFINITY){a.setAttribute("aria-valuemin",c)}else{a.removeAttribute("aria-valuemin")}}if(b.disableKeyFilter!==true){e=b.baseChars+"";if(b.allowExponential){e+=b.decimalSeparator+"e+-"}else{if(b.allowDecimals){e+=b.decimalSeparator}if(b.minValue<0){e+="-"}}e=Ext.String.escapeRegex(e);b.maskRe=new RegExp("["+e+"]");if(b.autoStripChars){b.stripCharsRe=new RegExp("[^"+e+"]","gi")}}},setMaxValue:function(b){var a=this.ariaEl.dom,c;this.maxValue=c=Ext.Number.from(b,Number.MAX_VALUE);if(a){if(ca.maxLength){return}}a.setValue(b)}},0,["numberfield"],["component","box","field","textfield","spinnerfield","numberfield"],{component:true,box:true,field:true,textfield:true,spinnerfield:true,numberfield:true},["widget.numberfield"],0,[Ext.form.field,"Number",Ext.form,"NumberField",Ext.form,"Number"],0));(Ext.cmd.derive("Ext.toolbar.Paging",Ext.toolbar.Toolbar,{alternateClassName:"Ext.PagingToolbar",displayInfo:false,prependButtons:false,displayMsg:"Displaying {0} - {1} of {2}",emptyMsg:"No data to display",beforePageText:"Page",afterPageText:"of {0}",firstText:"First Page",prevText:"Previous Page",nextText:"Next Page",lastText:"Last Page",refreshText:"Refresh",inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:"store",getPagingItems:function(){var b=this,a={scope:b,blur:b.onPagingBlur};a[Ext.supports.SpecialKeyDownRepeat?"keydown":"keypress"]=b.onPagingKeyDown;return[{itemId:"first",tooltip:b.firstText,overflowText:b.firstText,iconCls:"x-tbar-page-first",disabled:true,handler:b.moveFirst,scope:b},{itemId:"prev",tooltip:b.prevText,overflowText:b.prevText,iconCls:"x-tbar-page-prev",disabled:true,handler:b.movePrevious,scope:b},"-",b.beforePageText,{xtype:"numberfield",itemId:"inputItem",name:"inputItem",cls:"x-tbar-page-number",allowDecimals:false,minValue:1,hideTrigger:true,enableKeyEvents:true,keyNavEnabled:false,selectOnFocus:true,submitValue:false,isFormField:false,width:b.inputItemWidth,margin:"-1 2 3 2",listeners:a},{xtype:"tbtext",itemId:"afterTextItem",html:Ext.String.format(b.afterPageText,1)},"-",{itemId:"next",tooltip:b.nextText,overflowText:b.nextText,iconCls:"x-tbar-page-next",disabled:true,handler:b.moveNext,scope:b},{itemId:"last",tooltip:b.lastText,overflowText:b.lastText,iconCls:"x-tbar-page-last",disabled:true,handler:b.moveLast,scope:b},"-",{itemId:"refresh",tooltip:b.refreshText,overflowText:b.refreshText,iconCls:"x-tbar-loading",disabled:b.store.isLoading(),handler:b.doRefresh,scope:b}]},initComponent:function(){var b=this,a=b.items||b.buttons||[],c;b.bindStore(b.store||"ext-empty-store",true);c=b.getPagingItems();if(b.prependButtons){b.items=a.concat(c)}else{b.items=c.concat(a)}delete b.buttons;if(b.displayInfo){b.items.push("->");b.items.push({xtype:"tbtext",itemId:"displayItem"})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},onAdded:function(a){var d=this,g=d.store,c=d._autoStore,e,b;if(c===undefined){d._autoStore=c=!(g&&!g.isEmptyStore)}if(c){e=d._storeChangeListener;if(e){e.destroy();e=null}b=a&&a.store;if(b){e=a.on({destroyable:true,scope:d,storechange:"onOwnerStoreChange"})}d._storeChangeListener=e;d.onOwnerStoreChange(a,b)}Ext.toolbar.Toolbar.prototype.onAdded.apply(this,arguments)},onOwnerStoreChange:function(a,b){this.setStore(b||Ext.getStore("ext-empty-store"))},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=true;a.onLoad();a.calledInternal=false}},updateInfo:function(){var e=this,c=e.child("#displayItem"),a=e.store,b=e.getPageData(),d,g;if(c){d=a.getCount();if(d===0){g=e.emptyMsg}else{g=Ext.String.format(e.displayMsg,b.fromRecord,b.toRecord,b.total)}c.setText(g)}},onLoad:function(){var h=this,d,b,c,a,g,i,e;g=h.store.getCount();i=g===0;if(!i){d=h.getPageData();b=d.currentPage;c=d.pageCount;if(b>c){if(c>0){h.store.loadPage(c)}else{h.getInputItem().reset()}return}a=Ext.String.format(h.afterPageText,isNaN(c)?1:c)}else{b=0;c=0;a=Ext.String.format(h.afterPageText,0)}Ext.suspendLayouts();e=h.child("#afterTextItem");if(e){e.update(a)}e=h.getInputItem();if(e){e.setDisabled(i).setValue(b)}h.setChildDisabled("#first",b===1||i);h.setChildDisabled("#prev",b===1||i);h.setChildDisabled("#next",b===c||i);h.setChildDisabled("#last",b===c||i);h.setChildDisabled("#refresh",false);h.updateInfo();Ext.resumeLayouts(true);if(!h.calledInternal){h.fireEvent("change",h,d||h.emptyPageData)}},setChildDisabled:function(a,b){var c=this.child(a);if(c){c.setDisabled(b)}},getPageData:function(){var b=this.store,a=b.getTotalCount(),c=Math.ceil(a/b.pageSize),d=Math.min(b.currentPage*b.pageSize,a);return{total:a,currentPage:b.currentPage,pageCount:Ext.Number.isFinite(c)?c:1,fromRecord:((b.currentPage-1)*b.pageSize)+1,toRecord:d||a}},onLoadError:function(){this.setChildDisabled("#refresh",false)},getInputItem:function(){return this.child("#inputItem")},readPageFromInput:function(b){var c=this.getInputItem(),d=false,a;if(c){a=c.getValue();d=parseInt(a,10);if(!a||isNaN(d)){c.setValue(b.currentPage);return false}}return d},onPagingBlur:function(c){var b=this.getInputItem(),a;if(b){a=this.getPageData().currentPage;b.setValue(a)}},onPagingKeyDown:function(b,a){this.processKeyEvent(b,a)},processKeyEvent:function(i,h){var d=this,c=h.getKey(),b=d.getPageData(),a=h.shiftKey?10:1,g;if(c===h.RETURN){h.stopEvent();g=d.readPageFromInput(b);if(g!==false){g=Math.min(Math.max(1,g),b.pageCount);if(g!==b.currentPage&&d.fireEvent("beforechange",d,g)!==false){d.store.loadPage(g)}}}else{if(c===h.HOME||c===h.END){h.stopEvent();g=c===h.HOME?1:b.pageCount;i.setValue(g)}else{if(c===h.UP||c===h.PAGE_UP||c===h.DOWN||c===h.PAGE_DOWN){h.stopEvent();g=d.readPageFromInput(b);if(g){if(c===h.DOWN||c===h.PAGE_DOWN){a*=-1}g+=a;if(g>=1&&g<=b.pageCount){i.setValue(g)}}}}}},beforeLoad:function(){this.setChildDisabled("#refresh",true)},moveFirst:function(){if(this.fireEvent("beforechange",this,1)!==false){this.store.loadPage(1);return true}return false},movePrevious:function(){var c=this,a=c.store,b=a.currentPage-1;if(b>0){if(c.fireEvent("beforechange",c,b)!==false){a.previousPage();return true}}return false},moveNext:function(){var d=this,a=d.store,c=d.getPageData().pageCount,b=a.currentPage+1;if(b<=c){if(d.fireEvent("beforechange",d,b)!==false){a.nextPage();return true}}return false},moveLast:function(){var b=this,a=b.getPageData().pageCount;if(b.fireEvent("beforechange",b,a)!==false){b.store.loadPage(a);return true}return false},doRefresh:function(){var b=this,a=b.store,c=a.currentPage;if(b.fireEvent("beforechange",b,c)!==false){a.loadPage(c);return true}return false},getStoreListeners:function(){return{beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},doDestroy:function(){var a=this,b=a._storeChangeListener;if(b){b.destroy();a._storeChangeListener=null}a.bindStore(null);Ext.toolbar.Toolbar.prototype.doDestroy.call(this)}},0,["pagingtoolbar"],["component","box","container","toolbar","pagingtoolbar"],{component:true,box:true,container:true,toolbar:true,pagingtoolbar:true},["widget.pagingtoolbar"],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,"Paging",Ext,"PagingToolbar"],0));(Ext.cmd.derive("Ext.view.BoundList",Ext.view.View,{alternateClassName:"Ext.BoundList",pageSize:0,baseCls:"x-boundlist",itemCls:"x-boundlist-item",listItemCls:"",shadow:false,trackOver:true,preserveScrollOnRefresh:true,enableInitialSelection:false,refreshSelmodelOnRefresh:true,componentLayout:"boundlist",navigationModel:"boundlist",scrollable:true,ariaEl:"listEl",tabIndex:-1,childEls:["listWrap","listEl"],renderTpl:['
','
    {$}="{.}"',">","
","
","{%","var pagingToolbar=values.$comp.pagingToolbar;","if (pagingToolbar) {","Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);","}","%}",{disableFormats:true}],focusOnToFront:false,alignOnScroll:false,initComponent:function(){var b=this,a=b.baseCls,c=b.itemCls;b.selectedItemCls=a+"-selected";if(b.trackOver){b.overItemCls=a+"-item-over"}b.itemSelector="."+c;if(b.floating){b.addCls(a+"-floating")}if(!b.tpl){b.generateTpl()}else{if(!b.tpl.isTemplate){b.tpl=new Ext.XTemplate(b.tpl)}}if(b.pageSize){b.pagingToolbar=b.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},generateTpl:function(){var a=this;a.tpl=new Ext.XTemplate('','
  • '+a.getInnerTpl(a.displayField)+"
  • ","
    ")},setDisplayField:function(a){this.displayField=a;this.generateTpl()},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var a=Ext.view.View.prototype.getRefItems.call(this),b=this.pagingToolbar;if(b){a.push(b)}return a},createPagingToolbar:function(){var a=this;return new Ext.toolbar.Paging({id:a.id+"-paging-toolbar",pageSize:a.pageSize,store:a.dataSource,border:false,ownerCt:a,ownerLayout:a.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null;if(!b.ariaStaticRoles[b.ariaRole]){b.refreshAriaAttributes()}},refreshAriaAttributes:function(){var k=this,l=k.store,g=k.getSelectionModel(),b,m,a,c,e,j,d,h;m=l.isFiltered()?l.getCount():l.getTotalCount()||l.getCount();a=k.getNodes();b=k.pickerField&&k.pickerField.multiSelect;for(d=0,h=a.length;dc){c=a;g=k}}}return g},initComponent:function(){var e=this,c=Ext.isDefined,b=e.store,d=e.transform,a,g;if("pinList" in e){e.collapseOnSelect=!e.pinList}if(d){a=Ext.getDom(d);if(a){if(!e.store){b=Ext.Array.map(Ext.Array.from(a.options),function(h){return[h.value,h.text]})}if(!e.name){e.name=a.name}if(!("value" in e)){e.value=a.value}}}if(!e.displayTpl){e.setDisplayTpl(false)}e.bindStore(b||"ext-empty-store",true,true);g=e.queryMode==="local";if(!c(e.queryDelay)){e.queryDelay=g?10:500}if(!c(e.minChars)){e.minChars=g?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);e.doQueryTask=new Ext.util.DelayedTask(e.doRawQuery,e);if(a){if(e.transformInPlace){e.render(a.parentNode,a);delete e.renderTo}Ext.removeNode(a)}},initEvents:function(){var a=this;Ext.form.field.Picker.prototype.initEvents.call(this);a.altArrowKeyNav=new Ext.util.KeyNav({target:a.inputEl,forceKeyDown:true,priority:1002,scope:a,down:{alt:true,handler:a.onAltDownArrow},up:{alt:true,handler:a.onAltUpArrow}})},getSubTplData:function(b){var c=this,e=c.id,d,a;d=Ext.form.field.Picker.prototype.getSubTplData.call(this,b);if(!c.ariaStaticRoles[c.ariaRole]){a=d.ariaElAttributes;if(a){a["aria-owns"]=e+"-inputEl "+e+"-picker-listEl";a["aria-autocomplete"]="list"}}return d},getSubTplMarkup:function(c){var d=this,a="",b=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(d.hiddenName){a=''}return a+b},applyDisplayTpl:function(b){var a=this;if(!b){b=new Ext.XTemplate('{[typeof values === "string" ? values : values["'+a.getDisplayField()+'"]]}'+a.getDelimiter()+"");b.auto=true}else{if(!b.isTemplate){b=new Ext.XTemplate(b)}}return b},applyFilters:function(b,c){var a=this;if(b===null||b.isFilterCollection){return b}if(b){if(!c){c=this.getFilters()}c.beginUpdate();c.splice(0,c.length,b);c.each(function(d){d.ownerId=a.id});c.endUpdate()}return c},applyValueNotFoundText:function(a){var b=this,c=b.valueNotFoundRecord||(b.valueNotFoundRecord=new Ext.data.Model());c.set(b.displayField,a);if(b.valueField&&b.displayField!==b.valueField){c.set(b.valueField,a)}return a},getFilters:function(b){var a=this.filters;if(!a&&b!==false){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,b){var c=this;if(b){b.un("endupdate","onEndUpdateFilters",c)}if(a){a.on("endupdate","onEndUpdateFilters",c)}c.onEndUpdateFilters(a)},onEndUpdateFilters:function(e){var d=this,g=d.filtered,c=!!e&&(e.length>0),a,b;if(g||c){d.filtered=c;a=[];b=d.store.getFilters();b.each(function(h){if(h.ownerId===d.id&&!e.contains(h)){a.push(h)}});b.splice(0,a,e.items)}},clearLocalFilter:function(){var b=this,a=b.queryFilter;if(a){b.queryFilter=null;b.changingFilters=true;b.store.removeFilter(a,true);b.changingFilters=false}},completeEdit:function(b){var a=this;Ext.form.field.Picker.prototype.completeEdit.call(this,b);a.doQueryTask.cancel();a.assertValue();if(a.queryFilter&&a.queryMode==="local"&&a.clearFilterOnBlur){a.clearLocalFilter()}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=="all"&&a.queryFilter&&a.queryMode==="local"&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},onAltDownArrow:function(a){a.stopEvent();if(!this.isExpanded){this.onDownArrow(a)}return false},onAltUpArrow:function(a){a.stopEvent();if(this.isExpanded){this.onEsc(a)}return false},assertValue:function(){var c=this,e=c.getRawValue(),b=c.getDisplayValue(),g=c.lastSelectedRecords,a=false,d,h;if(c.forceSelection){if(c.multiSelect){if(e!==b){c.setRawValue(b)}}else{h=c.findRecordByDisplay(e);if(!h){if(g&&(!c.allowBlank||c.rawValue)){h=g[0]}else{if(c.displayTplData&&c.displayTplData.length){h=c.findRecordByValue(c.displayTplData[0][c.valueField])}}}else{if(c.getDisplayValue([c.getRecordDisplayData(h)])===b){h=null;a=true}}if(h){c.select(h,true);c.fireEvent("select",c,h)}else{if(!a){if(g){delete c.lastSelectedRecords}c.setRawValue("")}}}}else{if((d=c.getValue())&&d==e){h=c.findRecordByDisplay(d);if(h&&(h!==(g&&g[0])||c.displayField!==c.valueField)){c.select(h,true);c.fireEvent("select",c,h)}}}c.collapse()},onTypeAhead:function(){var d=this,c=d.displayField,b=d.store.findRecord(c,d.getRawValue()),e,a,g;if(b){e=b.get(c);a=e.length;g=d.getRawValue().length;if(g!==0&&g!==a){d.lastMutatedValue=e;d.setRawValue(e);d.selectText(g,e.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){Ext.form.field.Picker.prototype.beforeReset.call(this);this.clearLocalFilter()},onUnbindStore:function(){var b=this,a=b.picker;if(b.queryFilter&&!b.store.destroyed){b.clearLocalFilter()}if(a){a.bindStore(null)}b.pickerSelectionModel.destroy()},onBindStore:function(a,c){var e=this,b=e.picker,d,g;if(a){if(a.autoCreated){e.queryMode="local";e.valueField=e.displayField="field1";if(!a.expanded){e.displayField="field2"}if(e.getDisplayTpl().auto){e.setDisplayTpl(null)}}if(!Ext.isDefined(e.valueField)){e.valueField=e.displayField}d={byValue:{rootProperty:"data",unique:false}};d.byValue.property=e.valueField;a.setExtraKeys(d);if(e.displayField===e.valueField){a.byText=a.byValue}else{d.byText={rootProperty:"data",unique:false};d.byText.property=e.displayField;a.setExtraKeys(d)}g={rootProperty:"data",extraKeys:{byInternalId:{property:"internalId"},byValue:{property:e.valueField,rootProperty:"data"}},listeners:{beginupdate:e.onValueCollectionBeginUpdate,endupdate:e.onValueCollectionEndUpdate,scope:e}};e.valueCollection=new Ext.util.Collection(g);e.pickerSelectionModel=new Ext.selection.DataViewModel({mode:e.multiSelect?"SIMPLE":"SINGLE",ordered:true,deselectOnContainerClick:false,enableInitialSelection:false,pruneRemoved:false,selected:e.valueCollection,store:a,listeners:{scope:e,lastselectedchanged:e.updateBindSelection}});if(!c){e.resetToDefault()}if(b){e.pickerSelectionModel.on({scope:e,beforeselect:e.onBeforeSelect,beforedeselect:e.onBeforeDeselect});b.setSelectionModel(e.pickerSelectionModel);if(b.getStore()!==a){b.bindStore(a)}}}},bindStore:function(a,e,b){var d=this,c=d.queryFilter;d.mixins.storeholder.bindStore.call(d,a,b);a=d.getStore();if(a&&c&&!e){a.getFilters().add(c)}if(!b&&a&&!a.isEmptyStore){d.setValueOnData()}},getStoreListeners:function(b){if(!b.isEmptyStore){var c=this,a={datachanged:c.onDataChanged,load:c.onLoad,exception:c.onException,update:c.onStoreUpdate,remove:c.checkValueOnChange};if(!b.getRemoteFilter()){a.filterchange=c.checkValueOnChange}return a}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else{if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){if(a.queryMode!="local"&&a.hasFocus){return}a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(c,b,e){var d=this,a=!d.valueCollection.byValue.get(d.value);if(e&&a&&!(c.lastOptions&&"rawQuery" in c.lastOptions)){d.setValueOnData()}d.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,false,true)},doQuery:function(i,c,h){var e=this,a=e.getStore(),d=a.getFilters(),b=e.beforeQuery({lastQuery:e.lastQuery||"",query:i||"",rawQuery:h,forceAll:c,combo:e,cancel:false}),g;if(b!==false&&!b.cancel){g=!!i&&(!e.queryFilter||e.queryFilter&&(d.indexOf(e.queryFilter)<0));if(e.queryCaching&&!g&&b.query===e.lastQuery){e.getPicker().refresh();e.expand();e.afterQuery(b)}else{e.lastQuery=b.query;if(e.queryMode==="local"){e.doLocalQuery(b)}else{e.doRemoteQuery(b)}}return true}else{e.startCheckChangeTask()}return false},beforeQuery:function(a){var b=this;if(b.fireEvent("beforequery",a)===false){a.cancel=true}else{if(!a.cancel){if(a.query.length0){if(d.autoSelectLast){a=c.getSelectionModel();e=a.lastSelected;if(e&&a.selected.length&&b.indexOf(e)>-1){g=e}}c.getNavigationModel().setPosition(g)}},doTypeAhead:function(a){var b=this;if(!b.typeAheadTask){b.typeAheadTask=new Ext.util.DelayedTask(b.onTypeAhead,b)}if(a.query.length>a.lastQuery.length||!Ext.String.startsWith(a.lastQuery,a.query)){b.typeAheadTask.delay(b.typeAheadDelay)}},onTriggerClick:function(c){var b=this,a;if(!b.readOnly&&!b.disabled){if(b.isExpanded){b.collapse()}else{if(c&&c.type==="keydown"&&c.altKey){a=b.autoSelect;b.autoSelect=false;b.expand();b.autoSelect=a}else{if(b.triggerAction==="all"){b.doQuery(b.allQuery,true)}else{if(b.triggerAction==="last"){b.doQuery(b.lastQuery,true)}else{b.doQuery(b.getRawValue(),false,true)}}}}}},onFieldMutation:function(h){var d=this,b=h.getKey(),c=b===h.BACKSPACE||b===h.DELETE,g=d.inputEl.dom.value,a=g.length;if(!d.readOnly&&(g!==d.lastMutatedValue||c)&&b!==h.TAB){d.lastMutatedValue=g;d.refreshEmptyText();if(a&&(h.type!=="keyup"||(!h.isSpecialKey()||c))){d.doQueryTask.delay(d.queryDelay)}else{if(!a&&(!b||c)){++d.suspendCheckChange;if(!d.multiSelect){d.value=null;d.displayTplData=undefined}if(d.clearValueOnEmpty){d.valueCollection.beginUpdate();d.pickerSelectionModel.deselectAll();d.valueCollection.removeAll();d.valueCollection.endUpdate()}d.collapse();if(d.queryFilter){d.clearLocalFilter()}d.lastQuery=null;--d.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,h)}}},doDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);Ext.destroy(a.altArrowKeyNav,a.valueCollection);Ext.form.field.Picker.prototype.doDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up("[floating]");a.picker.registerWithOwnerCt()}},createPicker:function(){var c=this,b,a=Ext.apply({xtype:"boundlist",id:c.id+"-picker",pickerField:c,selectionModel:c.pickerSelectionModel,floating:true,hidden:true,store:c.getPickerStore(),displayField:c.displayField,preserveScrollOnRefresh:true,pageSize:c.pageSize,tpl:c.tpl,ariaSelectable:c.ariaSelectable},c.listConfig,c.defaultListConfig);b=c.picker=Ext.widget(a);if(c.pageSize){b.pagingToolbar.on("beforechange",c.onPageChange,c)}if(!b.initialConfig.maxHeight){b.on({beforeshow:c.onBeforePickerShow,scope:c})}b.getSelectionModel().on({beforeselect:c.onBeforeSelect,beforedeselect:c.onBeforeDeselect,focuschange:c.onFocusChange,scope:c});b.getNavigationModel().navigateOnSpace=false;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(a){var b=this,d=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-d-b.getHeight();a.maxHeight=Math.max(d,c)-5},onBeforeSelect:function(c,a,b){return this.fireEvent("beforeselect",this,a,b)},onBeforeDeselect:function(c,a,b){return this.fireEvent("beforedeselect",this,a,b)},onFocusChange:function(c,a,b){var d=this.picker,g=this.inputEl,e;if(b){e=Ext.get(d.getNodeByRecord(b));if(e){g.dom.setAttribute("aria-activedescendant",e.id)}else{g.dom.removeAttribute("aria-activedescendant")}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(a){var b=this,c;if(!b.ignoreNextSelection){b.ignoreNextSelection=true;c=b.getPicker().getSelectionModel();if(a){c.select(a);b.hasHadSelection=true}else{c.deselectAll()}b.ignoreNextSelection=false}},updateBindSelection:function(a,c){var d=this,b=null;if(!d.ignoreNextSelection){d.ignoreNextSelection=true;if(c.length){b=a.getLastSelected();d.hasHadSelection=true}if(d.hasHadSelection){d.setSelection(b)}d.ignoreNextSelection=false}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var d=this,c=d.store,e=d.valueCollection.getRange(),b=e[0],a=e.length;d.updateBindSelection(d.pickerSelectionModel,e);if(d.isSelectionUpdating()){return}Ext.suspendLayouts();d.lastSelection=e;if(a){d.lastSelectedRecords=e}d.updateValue();if(a&&((!d.multiSelect&&c.contains(b))||d.collapseOnSelect||!c.getCount())){d.updatingValue=true;d.collapse();d.updatingValue=false}Ext.resumeLayouts(true);if(!d.suspendCheckChange){if(!d.multiSelect){e=b}d.fireEvent("select",d,e)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var d=this,b=d.getPicker(),a=b.getNavigationModel(),c;if(a){a.enable()}d.doAutoSelect();c=Ext.get(b.highlightedItem);if(c){d.inputEl.dom.setAttribute("aria-activedescendant",c.id)}},onCollapse:function(){var b=this,a=b.getPicker().getNavigationModel();if(a){a.disable()}if(b.updatingValue){b.doQueryTask.cancel()}b.inputEl.dom.removeAttribute("aria-activedescendant")},select:function(d,a){var c=this,b=c.picker,e;if(d&&d.isModel&&a===true&&b){e=!b.getSelectionModel().isSelected(d)}if(!e){c.suspendEvent("select")}c.setValue(d);c.resumeEvent("select")},findRecord:function(d,c){var b=this.store,a=b.findExact(d,c);return a!==-1?b.getAt(a):false},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=false;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=false;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,true)}},setValue:function(c){var b=this,d,a;if(b.hasFocus){d=b.getBind();a=d&&d.value;if(a&&a.syncing){if((Ext.isEmpty(c)&&Ext.isEmpty(b.value))||c===b.value){return b}else{if(Ext.isArray(c)&&Ext.isArray(b.value)&&Ext.Array.equals(c,b.value)){return b}}}}else{b.lastSelectedRecords=null}if(c!=null){b.doSetValue(c)}else{b.suspendEvent("select");b.valueCollection.beginUpdate();b.pickerSelectionModel.deselectAll();b.valueCollection.endUpdate();b.resumeEvent("select")}return b},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(q,m){var w=this,h=w.getStore(),j=h.getModel(),t=[],g=[],s=w.autoLoadOnValue,e=h.getCount()>0||h.isLoaded(),a=h.hasPendingLoad(),n=s&&!e&&!a,l=w.forceSelection,p=w.pickerSelectionModel,b=w.displayField===w.valueField,o=h.isEmptyStore,k=w.lastSelection,u,v,c,r,d,x;if(a||n||!e||o){if(!q.isModel){if(m){w.value=Ext.Array.from(w.value).concat(q)}else{w.value=q}w.setHiddenValue(w.value);w.setRawValue(b?q:"");if(b&&!Ext.isEmpty(q)&&w.inputEl&&w.emptyText){w.inputEl.removeCls(w.emptyUICls)}}if(n&&!o){h.load()}if(!q.isModel||o){return w}}q=m?Ext.Array.from(w.value).concat(q):Ext.Array.from(q);for(u=0,v=q.length;u0){e.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:"input",type:"hidden",name:a}));c=1;h=b.firstChild}while(c>g){b.removeChild(k[0]);--c}while(c','
    ','','
    ','{.}',"
    ","
    ","
    ",'
    ','
    ','
    ','',"
    ",'
    ','',"
    ","
    ",'','
    ','{.}',"
    ","
    ","
    ",'
    ','','
    {%',"var me=values.$comp, okBtn=me.okBtn, cancelBtn=me.cancelBtn;","okBtn.ownerLayout = cancelBtn.ownerLayout = me.componentLayout;","okBtn.ownerCt = cancelBtn.ownerCt = me;","Ext.DomHelper.generateMarkup(okBtn.getRenderTree(), out);","Ext.DomHelper.generateMarkup(cancelBtn.getRenderTree(), out);","%}
    ","
    ",""],okText:"OK",cancelText:"Cancel",baseCls:"x-monthpicker",showButtons:true,footerButtonUI:"default",measureWidth:35,measureMaxHeight:20,smallCls:"x-monthpicker-small",totalYears:10,yearOffset:5,monthOffset:6,alignOnScroll:false,initComponent:function(){var a=this;a.selectedCls=a.baseCls+"-selected";if(a.small){a.addCls(a.smallCls)}a.setValue(a.value);a.activeYear=a.getYear(new Date().getFullYear()-4,-4);if(a.showButtons){a.okBtn=new Ext.button.Button({ui:a.footerButtonUI,text:a.okText,handler:a.onOkClick,scope:a});a.cancelBtn=new Ext.button.Button({ui:a.footerButtonUI,text:a.cancelText,handler:a.onCancelClick,scope:a})}Ext.Component.prototype.initComponent.call(this)},beforeRender:function(){var g=this,c=0,b=[],a=Ext.Date.getShortMonthName,e=g.monthOffset,h=g.monthMargin,d="";if(g.padding&&!g.width){g.cacheWidth()}Ext.Component.prototype.beforeRender.call(this);for(;cc.measureMaxHeight){--b;a.setStyle("margin","0 "+b+"px")}return b},getLargest:function(a){var b=0;this.months.each(function(d){var c=d.getHeight();if(c>b){b=c}});return b},setValue:function(c){var b=this,d=b.activeYear,a;if(!c){b.value=[null,null]}else{if(Ext.isDate(c)){b.value=[c.getMonth(),c.getFullYear()]}else{b.value=[c[0],c[1]]}}if(b.rendered){a=b.value[1];if(a!==null){if((ad+b.yearOffset)){b.activeYear=a-b.yearOffset+1}}b.updateBody()}return b},getValue:function(){return this.value},hasSelection:function(){var a=this.value;return a[0]!==null&&a[1]!==null},getYears:function(){var d=this,e=d.yearOffset,g=d.activeYear,a=g+e,c=g,b=[];for(;c','
    ','','
    {%this.renderMonthBtn(values, out)%}
    ','',"
    ",'',"",'','','","","","","",'','',"{#:this.isEndOfWeek}",'","","","","
    ','',"
    ','
    ',"
    ",'','',"",'
    {todayText}.
    ','
    {ariaMinText}.
    ','
    {ariaMaxText}.
    ','
    {ariaDisabledDaysText}.
    ','
    {ariaDisabledDatesText}.
    ',"",{firstInitial:function(a){return Ext.picker.Date.prototype.getDayInitial(a)},isEndOfWeek:function(b){b--;var a=b%7===0&&b!==0;return a?'':""},renderTodayBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.todayBtn.getRenderTree(),b)},renderMonthBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.monthBtn.getRenderTree(),b)}}],initHour:12,numDays:42,initComponent:function(){var b=this,a=Ext.Date.clearTime;b.selectedCls=b.baseCls+"-selected";b.disabledCellCls=b.baseCls+"-disabled";b.prevCls=b.baseCls+"-prevday";b.activeCls=b.baseCls+"-active";b.cellCls=b.baseCls+"-cell";b.nextCls=b.baseCls+"-prevday";b.todayCls=b.baseCls+"-today";if(!b.format){b.format=Ext.Date.defaultFormat}if(!b.dayNames){b.dayNames=Ext.Date.dayNames}b.dayNames=b.dayNames.slice(b.startDay).concat(b.dayNames.slice(0,b.startDay));Ext.Component.prototype.initComponent.call(this);b.value=b.value?a(b.value,true):a(new Date());b.initDisabledDays()},getRefOwner:function(){return this.pickerField||Ext.Component.prototype.getRefOwner.call(this)},getRefItems:function(){var a=[],c=this.monthBtn,b=this.todayBtn;if(c){a.push(c)}if(b){a.push(b)}return a},beforeRender:function(){var c=this,b=Ext.String.htmlEncode,d=new Array(c.numDays),a=Ext.Date.format(new Date(),c.format);if(c.padding&&!c.width){c.cacheWidth()}c.monthBtn=new Ext.button.Split({ownerCt:c,ownerLayout:c.getComponentLayout(),text:"",tooltip:c.monthYearText,tabIndex:-1,ariaRole:"presentation",listeners:{click:c.doShowMonthPicker,arrowclick:c.doShowMonthPicker,scope:c}});if(c.showToday){c.todayBtn=new Ext.button.Button({ui:c.footerButtonUI,ownerCt:c,ownerLayout:c.getComponentLayout(),text:Ext.String.format(c.todayText,a),tooltip:Ext.String.format(c.todayTip,a),tooltipType:"title",tabIndex:-1,ariaRole:"presentation",handler:c.selectToday,scope:c})}Ext.Component.prototype.beforeRender.call(this);Ext.applyIf(c,{renderData:{}});Ext.apply(c.renderData,{dayNames:c.dayNames,showToday:c.showToday,prevText:b(c.prevText),nextText:b(c.nextText),todayText:b(c.todayText),ariaMinText:b(c.ariaMinText),ariaMaxText:b(c.ariaMaxText),ariaDisabledDaysText:b(c.ariaDisabledDaysText),ariaDisabledDatesText:b(c.ariaDisabledDatesText),days:d});c.protoEl.unselectable()},cacheWidth:function(){var a=this,b=a.parseBox(a.padding),c=Ext.getBody().createChild({cls:a.baseCls+" "+a.borderBoxCls,style:"position:absolute;top:-1000px;left:-1000px;"});a.self.prototype.width=c.getWidth()+b.left+b.right;c.destroy()},onRender:function(b,a){var c=this,d="div."+c.baseCls+"-date";Ext.Component.prototype.onRender.apply(this,arguments);c.cells=c.eventEl.select("tbody td");c.textNodes=c.eventEl.query(d);c.eventEl.set({"aria-labelledby":c.monthBtn.id});c.mon(c.eventEl,{scope:c,mousewheel:c.handleMouseWheel,click:{fn:c.handleDateClick,delegate:d}})},initEvents:function(){var a=this;Ext.Component.prototype.initEvents.call(this);if(a.pickerField){a.el.on("mousedown",a.onMouseDown,a)}a.monthBtn.el.on("mousedown",a.onMouseDown,a);a.prevRepeater=new Ext.util.ClickRepeater(a.prevEl,{handler:a.showPrevMonth,scope:a,mousedownStopEvent:true});a.nextRepeater=new Ext.util.ClickRepeater(a.nextEl,{handler:a.showNextMonth,scope:a,mousedownStopEvent:true});a.keyNav=new Ext.util.KeyNav(a.eventEl,Ext.apply({scope:a,left:function(b){if(b.ctrlKey){this.showPrevMonth()}else{this.update(Ext.Date.add(this.activeDate,Ext.Date.DAY,-1))}b.preventDefault()},right:function(b){if(b.ctrlKey){this.showNextMonth()}else{this.update(Ext.Date.add(this.activeDate,Ext.Date.DAY,1))}b.preventDefault()},up:function(b){if(b.ctrlKey){this.showNextYear()}else{this.update(Ext.Date.add(this.activeDate,Ext.Date.DAY,-7))}b.preventDefault()},down:function(b){if(b.ctrlKey){this.showPrevYear()}else{this.update(Ext.Date.add(this.activeDate,Ext.Date.DAY,7))}b.preventDefault()},pageUp:function(b){if(b.ctrlKey){this.showPrevYear()}else{this.showPrevMonth()}b.preventDefault()},pageDown:function(b){if(b.ctrlKey){this.showNextYear()}else{this.showNextMonth()}b.preventDefault()},home:function(b){this.update(Ext.Date.getFirstDateOfMonth(this.activeDate));b.preventDefault()},end:function(b){this.update(Ext.Date.getLastDateOfMonth(this.activeDate));b.preventDefault()},tab:function(b){this.handleTabKey(b);return true},enter:function(b){this.handleDateClick(b,this.activeCell.firstChild)},space:function(g){var c=this,i=c.pickerField,b,d,h;c.setValue(new Date(c.activeCell.firstChild.dateValue));if(i){b=c.startValue;d=c.value;h=i.getValue();if(h&&b&&h.getTime()===d.getTime()){i.setValue(b)}else{i.setValue(d)}}g.preventDefault()}},a.keyNavConfig));if(a.disabled){a.syncDisabled(true,true)}a.update(a.value)},onMouseDown:function(a){a.preventDefault()},handleTabKey:function(d){var c=this,a=c.getSelectedDate(c.activeDate),b=c.handler;if(!c.disabled&&a.dateValue&&!Ext.fly(a.parentNode).hasCls(c.disabledCellCls)){c.setValue(new Date(a.dateValue));c.fireEvent("select",c,c.value);if(b){Ext.callback(b,c.scope,[c,c.value],null,c,c)}c.onSelect()}else{c.fireEventArgs("tabout",[c])}},getSelectedDate:function(a){var d=this,i=a.getTime(),j=d.cells,k=d.selectedCls,g=j.elements,e=g.length,h,b;j.removeCls(k);for(b=0;b0){this.showPrevMonth()}else{if(b<0){this.showNextMonth()}}}},handleDateClick:function(d,a){var c=this,b=c.handler;d.stopEvent();if(!c.disabled&&a.dateValue&&!Ext.fly(a.parentNode).hasCls(c.disabledCellCls)){c.setValue(new Date(a.dateValue));c.fireEvent("select",c,c.value);if(b){Ext.callback(b,c.scope,[c,c.value],null,c,c)}c.onSelect()}},onSelect:function(){if(this.hideOnSelect){this.hide()}},selectToday:function(){var c=this,a=c.todayBtn,b=c.handler;if(a&&!a.disabled){c.setValue(Ext.Date.clearTime(new Date()));c.fireEvent("select",c,c.value);if(b){Ext.callback(b,c.scope,[c,c.value],null,c,c)}c.onSelect()}return c},selectedUpdate:function(e){var h=this,g=e.getTime(),d=h.cells,b=h.selectedCls,j,i=d.getCount(),a;h.eventEl.dom.setAttribute("aria-busy","true");a=h.activeCell;if(a){Ext.fly(a).removeCls(b);a.setAttribute("aria-selected",false)}for(j=0;ju||(B&&w&&B.test(m.dateFormat(E,w)))||(G&&G.indexOf(E.getDay())!==-1));D.todayDisabled=a;if(!D.disabled){D.todayBtn.setDisabled(a)}}l=function(I,H){var i=d[I],J=[];if(!i.hasAttribute("id")){i.setAttribute("id",D.id+"-cell-"+I)}r=+m.clearTime(q,true);i.firstChild.dateValue=r;i.setAttribute("aria-label",m.format(q,o));i.removeAttribute("aria-describedby");i.removeAttribute("data-qtip");if(r===y){H+=" "+D.todayCls;J.push(D.id+"-todayText")}if(r===k){D.activeCell=i;D.eventEl.dom.setAttribute("aria-activedescendant",i.id);i.setAttribute("aria-selected",true);H+=" "+D.selectedCls;D.fireEvent("highlightitem",D,i)}else{i.setAttribute("aria-selected",false)}if(ru){H+=" "+F;J.push(D.id+"-ariaMaxText");i.setAttribute("data-qtip",D.maxText)}else{if(G&&G.indexOf(q.getDay())!==-1){i.setAttribute("data-qtip",A);J.push(D.id+"-ariaDisabledDaysText");H+=" "+F}else{if(B&&w){g=m.dateFormat(q,w);if(B.test(g)){i.setAttribute("data-qtip",s.replace("%0",g));J.push(D.id+"-ariaDisabledDatesText");H+=" "+F}}}}}if(J.length){i.setAttribute("aria-describedby",J.join(" "))}i.className=H+" "+D.cellCls};D.eventEl.dom.setAttribute("aria-busy","true");for(;v=j){n=(++C);b=D.nextCls}else{n=v-e+1;b=D.activeCls}}c[v].innerHTML=n;q.setDate(q.getDate()+1);l(v,b)}D.eventEl.dom.removeAttribute("aria-busy");D.monthBtn.setText(Ext.Date.format(z,D.monthYearFormat))},update:function(a,d){var b=this,c=b.activeDate;if(b.rendered){b.activeDate=a;if(!d&&c&&b.el&&c.getMonth()===a.getMonth()&&c.getFullYear()===a.getFullYear()){b.selectedUpdate(a,c)}else{b.fullUpdate(a,c)}}return b},doDestroy:function(){var a=this;if(a.rendered){Ext.destroy(a.keyNav,a.monthPicker,a.monthBtn,a.nextRepeater,a.prevRepeater,a.todayBtn,a.todayElSpan)}Ext.Component.prototype.doDestroy.call(this)},privates:{finishRenderChildren:function(){var a=this;Ext.Component.prototype.finishRenderChildren.call(this);a.monthBtn.finishRender();if(a.showToday){a.todayBtn.finishRender()}},getFocusEl:function(){return this.eventEl},syncDisabled:function(c,b){var e=this,a=e.keyNav,d=e.todayBtn;if(a){a.setDisabled(c);e.prevRepeater.setDisabled(c);e.nextRepeater.setDisabled(c)}if(b&&d){d.setDisabled(e.todayDisabled||c)}}}},0,["datepicker"],["component","box","datepicker"],{component:true,box:true,datepicker:true},["widget.datepicker"],0,[Ext.picker,"Date",Ext,"DatePicker"],0));(Ext.cmd.derive("Ext.form.field.Date",Ext.form.field.Picker,{alternateClassName:["Ext.form.DateField","Ext.form.Date"],format:"m/d/Y",ariaFormat:"M j Y",altFormats:"m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j",disabledDaysText:"Disabled",ariaDisabledDaysText:"This day of week is disabled",disabledDatesText:"Disabled",ariaDisabledDatesText:"This date cannot be selected",minText:"The date in this field must be equal to or after {0}",ariaMinText:"The date must be equal to or after {0}",maxText:"The date in this field must be equal to or before {0}",ariaMaxText:"The date must be equal to or before {0}",invalidText:"{0} is not a valid date - it must be in the format {1}",formatText:"Expected date format {0}.",triggerCls:"x-form-date-trigger",showToday:true,useStrict:undefined,initTime:"12",initTimeFormat:"H",matchFieldWidth:false,startDay:0,valuePublishEvent:["select","blur"],componentCls:"x-form-field-date",ariaRole:"combobox",rawDate:null,rawDateText:"",initComponent:function(){var d=this,b=Ext.isString,c,a;c=d.minValue;a=d.maxValue;if(b(c)){d.minValue=d.parseDate(c)}if(b(a)){d.maxValue=d.parseDate(a)}d.disabledDatesRE=null;d.initDisabledDays();Ext.form.field.Picker.prototype.initComponent.call(this)},getSubTplData:function(b){var c=this,d,a;d=Ext.form.field.Picker.prototype.getSubTplData.call(this,b);if(!c.ariaStaticRoles[c.ariaRole]){a=d.ariaElAttributes;if(a){a["aria-owns"]=c.id+"-inputEl "+c.id+"-picker-eventEl";a["aria-autocomplete"]="none"}}return d},initValue:function(){var a=this,b=a.value;if(Ext.isString(b)){a.value=a.rawToValue(b);a.rawDate=a.value;a.rawDateText=a.parseDate(a.value)}else{a.value=b||null;a.rawDate=a.value;a.rawDateText=a.value?a.parseDate(a.value):""}Ext.form.field.Picker.prototype.initValue.call(this)},initDisabledDays:function(){if(this.disabledDates){var b=this.disabledDates,a=b.length-1,g="(?:",h,e=b.length,c;for(h=0;h0?q:this.formatDate(this.processRawValue(this.getRawValue()));var j=this,p=Ext.String.format,k=Ext.Date.clearTime,o=Ext.form.field.Picker.prototype.getErrors.call(this,q),n=j.disabledDays,d=j.disabledDatesRE,m=j.minValue,h=j.maxValue,g=n?n.length:0,e=0,a,b,l,c;if(q===null||q.length<1){return o}a=q;q=j.parseDate(q);if(!q){o.push(p(j.invalidText,a,Ext.Date.unescapeFormat(j.format)));return o}c=q.getTime();if(m&&ck(h).getTime()){o.push(p(j.maxText,j.formatDate(h)))}if(n){l=q.getDay();for(;e{tabIdx}-1"',' style="{fieldStyle}"',' class="{fieldCls} {fieldCls}-{ui}">{value}',{compiled:true,disableFormats:true}],ariaRole:undefined,focusable:false,skipLabelForAttribute:true,readOnly:true,fieldCls:"x-form-display-field",fieldBodyCls:"x-form-display-field-body",htmlEncode:false,noWrap:false,validateOnChange:false,initEvents:Ext.emptyFn,submitValue:false,getValue:function(){return this.value},valueToRaw:function(a){if(a||a===0||a===false){return a}else{return""}},isDirty:function(){return false},isValid:Ext.returnTrue,validate:Ext.returnTrue,getRawValue:function(){return this.rawValue},setRawValue:function(b){var a=this;b=Ext.valueFrom(b,"");a.rawValue=b;if(a.rendered){a.inputEl.dom.innerHTML=a.getDisplayValue();a.updateLayout()}return b},getDisplayValue:function(){var a=this,b=this.getRawValue(),c;if(a.renderer){c=a.renderer.call(a.scope||a,b,a)}else{c=a.htmlEncode?Ext.util.Format.htmlEncode(b):b}return c},getSubTplData:function(b){var a=Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments);a.value=this.getDisplayValue();return a}},0,["displayfield"],["component","box","field","displayfield"],{component:true,box:true,field:true,displayfield:true},["widget.displayfield"],0,[Ext.form.field,"Display",Ext.form,"DisplayField",Ext.form,"Display"],0));(Ext.cmd.derive("Ext.form.field.FileButton",Ext.button.Button,{childEls:["fileInputEl"],inputCls:"x-form-file-input",cls:"x-form-file-btn",preventDefault:false,tabIndex:undefined,useTabGuards:Ext.isIE||Ext.isEdge,promptCalled:false,autoEl:{tag:"div",unselectable:"on"},afterTpl:['accept="{accept}"','tabindex="{tabIndex}"',">"],keyMap:null,ariaEl:"fileInputEl",getAfterMarkup:function(a){return this.lookupTpl("afterTpl").apply(a)},getTemplateArgs:function(){var b=this,a;a=Ext.button.Button.prototype.getTemplateArgs.call(this);a.inputCls=b.inputCls;a.inputName=b.inputName||b.id;a.tabIndex=b.tabIndex!=null?b.tabIndex:null;a.accept=b.accept||null;a.role=b.ariaRole;return a},afterRender:function(){var c=this,b,a;Ext.button.Button.prototype.afterRender.apply(this,arguments);b={scope:c,mousedown:c.handlePrompt,keydown:c.handlePrompt,change:c.fireChange,focus:c.onFileFocus,blur:c.onFileBlur};if(c.useTabGuards){a={tag:"span",role:"button","aria-hidden":"true","data-tabguard":"true",style:{height:0,width:0}};a.tabIndex=c.tabIndex!=null?c.tabIndex:0;c.beforeInputGuard=c.el.createChild(a,c.fileInputEl);c.afterInputGuard=c.el.createChild(a);c.afterInputGuard.insertAfter(c.fileInputEl);c.beforeInputGuard.on("focus",c.onInputGuardFocus,c);c.afterInputGuard.on("focus",c.onInputGuardFocus,c);b.keydown=c.onFileInputKeydown}c.fileInputEl.on(b)},fireChange:function(a){this.fireEvent("change",this,a,this.fileInputEl.dom.value)},createFileInput:function(c){var d=this,a,b;a=d.fileInputEl=d.el.createChild({name:d.inputName||d.id,id:!c?d.id+"-fileInputEl":undefined,cls:d.inputCls+(d.getInherited().rtl?" x-rtl":""),tag:"input",type:"file",size:1,unselectable:"on"},d.afterInputGuard);a.dom.setAttribute("data-componentid",d.id);if(d.tabIndex!=null){d.setTabIndex(d.tabIndex)}if(d.accept){a.dom.setAttribute("accept",d.accept)}b={scope:d,change:d.fireChange,mousedown:d.handlePrompt,keydown:d.handlePrompt,focus:d.onFileFocus,blur:d.onFileBlur};if(d.useTabGuards){b.keydown=d.onFileInputKeydown}a.on(b)},handlePrompt:function(b){var a;if(b.type=="keydown"){a=b.getKey();this.promptCalled=((!Ext.isIE&&a===b.ENTER)||a===b.SPACE)?true:false}else{this.promptCalled=true}},onFileFocus:function(b){var a=this.ownerCt;if(!this.hasFocus){this.onFocus(b)}if(a&&!a.hasFocus){a.onFocus(b)}},onFileBlur:function(b){var a=this.ownerCt;if(this.promptCalled){this.promptCalled=false;b.preventDefault();return}if(this.hasFocus){this.onBlur(b)}if(a&&a.hasFocus){a.onBlur(b)}},onInputGuardFocus:function(a){this.fileInputEl.focus()},onFileInputKeydown:function(c){var a=c.getKey(),b;if(a===c.TAB){b=c.shiftKey?this.beforeInputGuard:this.afterInputGuard;if(b){b.suspendEvent("focus");b.focus();setTimeout(function(){b.resumeEvent("focus")},0)}}else{if(a===c.ENTER||a===c.SPACE){this.handlePrompt(c)}}return true},reset:function(a){var b=this;if(a){b.fileInputEl.destroy()}b.createFileInput(!a);if(a){b.ariaEl=b.fileInputEl}},restoreInput:function(a){var b=this;b.fileInputEl.destroy();a=Ext.get(a);if(b.useTabGuards){a.insertBefore(b.afterInputGuard)}else{b.el.appendChild(a)}b.fileInputEl=a},onDisable:function(){Ext.button.Button.prototype.onDisable.call(this);this.fileInputEl.dom.disabled=true},onEnable:function(){Ext.button.Button.prototype.onEnable.call(this);this.fileInputEl.dom.disabled=false},privates:{getFocusEl:function(){return this.fileInputEl},getFocusClsEl:function(){return this.el},setTabIndex:function(a){var b=this;if(!b.focusable){return}b.tabIndex=a;if(!b.rendered||b.destroying||b.destroyed){return}if(b.useTabGuards){b.fileInputEl.dom.setAttribute("tabIndex",-1);b.beforeInputGuard.dom.setAttribute("tabIndex",a);b.afterInputGuard.dom.setAttribute("tabIndex",a)}else{b.fileInputEl.dom.setAttribute("tabIndex",a)}}}},0,["filebutton"],["component","box","button","filebutton"],{component:true,box:true,button:true,filebutton:true},["widget.filebutton"],0,[Ext.form.field,"FileButton"],0));(Ext.cmd.derive("Ext.form.trigger.Component",Ext.form.trigger.Trigger,{cls:"x-form-trigger-cmp",onFieldRender:function(){var b=this,a=b.component;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);if(!a.isComponent&&!a.isWidget){a=Ext.widget(a)}b.component=a;a.render(b.el)},destroy:function(){var a=this.component;if(a.isComponent||a.isWidget){a.destroy()}this.component=null;Ext.form.trigger.Trigger.prototype.destroy.call(this)}},0,0,0,0,["trigger.component"],0,[Ext.form.trigger,"Component"],0));(Ext.cmd.derive("Ext.form.field.File",Ext.form.field.Text,{alternateClassName:["Ext.form.FileUploadField","Ext.ux.form.FileUploadField","Ext.form.File"],emptyText:undefined,needArrowKeys:false,triggers:{filebutton:{type:"component",hideOnReadOnly:false,preventMouseDown:false}},buttonText:"Browse...",buttonOnly:false,buttonMargin:3,clearOnSubmit:true,extraFieldBodyCls:"x-form-file-wrap",inputCls:"x-form-text-file",readOnly:true,editable:false,submitValue:false,triggerNoEditCls:"",childEls:["browseButtonWrap"],applyTriggers:function(a){var b=this,c=(a||{}).filebutton;if(c){c.component=Ext.apply({xtype:"filebutton",ownerCt:b,id:b.id+"-button",ui:b.ui,disabled:b.disabled,tabIndex:b.tabIndex,text:b.buttonText,style:b.buttonOnly?"":b.getButtonMarginProp()+b.buttonMargin+"px",accept:b.accept,inputName:b.getName(),listeners:{scope:b,change:b.onFileChange}},b.buttonConfig);return Ext.form.field.Text.prototype.applyTriggers.call(this,a)}},getSubTplData:function(a){var b=Ext.form.field.Text.prototype.getSubTplData.call(this,a);b.tabIdx=-1;return b},onRender:function(){var d=this,e,c,a,b;(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).apply(this,arguments);e=d.inputEl;e.dom.name="";e.on("focus",d.onInputFocus,d);e.on("mousedown",d.onInputMouseDown,d);b=d.getTrigger("filebutton");c=d.button=b.component;d.fileInputEl=c.fileInputEl;a=c.el;if(d.buttonOnly){d.inputWrap.setDisplayed(false);d.shrinkWrap=3}b.el.setWidth(a.getWidth()+a.getMargin("lr"));if(Ext.isIE){d.button.getEl().repaint()}},getTriggerMarkup:function(){return''},onFileChange:function(a,c,b){this.duringFileSelect=true;Ext.form.field.File.superclass.setValue.call(this,b);delete this.duringFileSelect},didValueChange:function(){return !!this.duringFileSelect},setEmptyText:Ext.emptyFn,setValue:Ext.emptyFn,reset:function(){var b=this,a=b.clearOnSubmit;if(b.rendered){b.button.reset(a);b.fileInputEl=b.button.fileInputEl;if(a){b.inputEl.dom.value="";Ext.form.field.File.superclass.setValue.call(this,null)}}Ext.form.field.Text.prototype.reset.call(this)},onShow:function(){Ext.form.field.Text.prototype.onShow.call(this);this.button.updateLayout()},onDisable:function(){Ext.form.field.Text.prototype.onDisable.call(this);this.button.disable()},onEnable:function(){Ext.form.field.Text.prototype.onEnable.call(this);this.button.enable()},isFileUpload:Ext.returnTrue,extractFileInput:function(){var b=this,a;if(b.rendered){a=b.button.fileInputEl.dom;b.reset()}else{a=document.createElement("input");a.type="file";a.className="x-hidden-display";a.name=b.getName()}return a},restoreInput:function(b){if(this.rendered){var a=this.button;a.restoreInput(b);this.fileInputEl=a.fileInputEl}},doDestroy:function(){this.fileInputEl=this.button=null;Ext.form.field.Text.prototype.doDestroy.call(this)},getButtonMarginProp:function(){return this.getInherited().rtl?"margin-right:":"margin-left:"},onInputFocus:function(b){var a=this;if(a.selectOnFocus&&document.activeElement===a.inputEl.dom){a.inputEl.dom.select()}a.focus();if(Ext.isIE9m){a.fileInputEl.addCls("x-position-relative");a.fileInputEl.removeCls("x-position-relative")}},onInputMouseDown:function(a){a.preventDefault();this.focus()},privates:{getFocusEl:function(){return this.button},getFocusClsEl:Ext.privateFn}},0,["fileuploadfield","filefield"],["component","box","field","textfield","filefield","fileuploadfield"],{component:true,box:true,field:true,textfield:true,filefield:true,fileuploadfield:true},["widget.filefield","widget.fileuploadfield"],0,[Ext.form.field,"File",Ext.form,"FileUploadField",Ext.ux.form,"FileUploadField",Ext.form,"File"],0));(Ext.cmd.derive("Ext.form.field.Hidden",Ext.form.field.Base,{alternateClassName:"Ext.form.Hidden",focusable:false,inputType:"hidden",isTextInput:false,hideLabel:true,hidden:true,ariaRole:"presentation",initComponent:function(){this.formItemCls+="-hidden";Ext.form.field.Base.prototype.initComponent.call(this)},isEqual:function(b,a){return this.isEqualAsString(b,a)},initEvents:Ext.emptyFn,setSize:Ext.emptyFn,setWidth:Ext.emptyFn,setHeight:Ext.emptyFn,setPosition:Ext.emptyFn,setPagePosition:Ext.emptyFn,markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn},0,["hiddenfield","hidden"],["component","box","field","hiddenfield","hidden"],{component:true,box:true,field:true,hiddenfield:true,hidden:true},["widget.hidden","widget.hiddenfield"],0,[Ext.form.field,"Hidden",Ext.form,"Hidden"],0));(Ext.cmd.derive("Ext.tip.Tip",Ext.panel.Panel,{alternateClassName:"Ext.Tip",minWidth:40,maxWidth:500,shadow:"sides",constrainPosition:true,autoRender:true,hidden:true,baseCls:"x-tip",focusOnToFront:false,maskOnDisable:false,closeAction:"hide",alwaysFramed:true,frameHeader:false,initComponent:function(){var a=this;a.floating=Ext.apply({},{shadow:a.shadow},a.self.prototype.floating);Ext.panel.Panel.prototype.initComponent.apply(this,arguments);a.constrain=a.constrain||a.constrainPosition},showAt:function(b){var a=this;a.calledFromShowAt=true;Ext.panel.Panel.prototype.showAt.apply(this,arguments);if(a.isVisible()){a.doAlignment(a.getRegion().alignTo({target:new Ext.util.Point(b[0],b[1]),inside:a.constrainPosition?Ext.getBody().getRegion().adjust(5,-5,-5,5):null,align:"tl-tl",overlap:true}))}a.calledFromShowAt=0},doAlignment:function(d){var b=this,c=b.anchorEl,a=d.anchor;b.setPagePosition([d.x,d.y]);if(c){c.removeCls(b.anchorCls);if(a){b.anchorCls="x-tip-anchor-"+a.position;c.addCls(b.anchorCls);c.show();if(a.align&1){c.setTop(d.anchor.y-d.y);c.dom.style.left=""}else{c.setLeft(d.anchor.x-d.x);c.dom.style.top=""}}else{c.hide()}}},privates:{initDraggable:function(){var a=this;a.draggable={el:a.getDragEl(),delegate:a.header.el,constrain:a,constrainTo:a.el.dom.parentNode};Ext.Component.prototype.initDraggable.call(a)}},ghost:undefined,unghost:undefined},0,["tip"],["component","box","container","panel","tip"],{component:true,box:true,container:true,panel:true,tip:true},["widget.tip"],0,[Ext.tip,"Tip",Ext,"Tip"],0));(Ext.cmd.derive("Ext.tip.ToolTip",Ext.tip.Tip,{alternateClassName:"Ext.ToolTip",autoHide:true,showDelay:500,hideDelay:200,dismissDelay:5000,mouseOffset:[15,18],trackMouse:false,anchorToTarget:true,targetCounter:0,quickShowInterval:250,hideAction:"hide",fadeOutDuration:1000,defaultAlign:"bl-tl",ariaRole:"tooltip",alwaysOnTop:true,initComponent:function(){var a=this;Ext.tip.Tip.prototype.initComponent.call(this);a.setTarget(a.target);a.currentTarget=new Ext.dom.Fly()},onRender:function(b,a){var c=this;Ext.tip.Tip.prototype.onRender.apply(this,arguments);c.anchorEl=c.el.createChild({role:"presentation",cls:"x-tip-anchor"})},show:function(){if(!this.currentTarget.dom&&this.target){return this.showBy(this.target)}Ext.tip.Tip.prototype.show.call(this)},setTarget:function(c){var b=this,a;if(b.targetListeners){b.targetListeners.destroy()}if(c){b.target=c=Ext.get(c.el||c);a={mouseover:"onTargetOver",mouseout:"onTargetOut",mousemove:"onMouseMove",tap:"onTargetTap",scope:b,destroyable:true};b.targetListeners=c.on(a)}else{b.target=null}},onMouseMove:function(c){var b=this,a=b.dismissDelay;b.pointerEvent=c;if(b.isVisible()&&b.currentTarget.contains(c.target)){if(a&&b.autoHide!==false){b.clearTimer("dismiss");b.dismissTimer=Ext.defer(b.hide,a,b)}if(b.trackMouse){b.doAlignment(b.getAlignRegion())}}},getAlignRegion:function(){var b=this,e=b.anchorEl,h=b.getAnchorAlign(),a,g,d,c=b.mouseOffset;if(!b.anchorSize){e.addCls("x-tip-anchor-top");e.show();b.anchorSize=new Ext.util.Offset(e.getWidth(),e.getHeight());e.removeCls("x-tip-anchor-top");e.hide()}if((b.anchor||b.align)&&b.anchorToTarget&&!b.trackMouse){d=b.currentTarget.getRegion()}else{d=b.pointerEvent?b.pointerEvent.getPoint().adjust(-c[1],c[0],c[1],-c[0]):new Ext.util.Point();if(!b.anchor){a=true;if(c[0]>0){if(c[1]>0){h="tl-br"}else{h="bl-tr"}}else{if(c[1]>0){h="tr-bl"}else{h="br-tl"}}}}g={align:b.convertPositionSpec(h),axisLock:b.axisLock,target:d,overlap:a,offset:b.targetOffset,inside:b.constrainPosition?Ext.getBody().getRegion().adjust(5,-5,-5,5):null};if(b.anchor){g.anchorSize=b.anchorSize}return b.getRegion().alignTo(g)},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity("")}})},getAnchorAlign:function(){switch(this.anchor){case"top":return"tl-bl";case"left":return"tl-tr";case"right":return"tr-tl";default:return this.defaultAlign}},onTargetTap:function(a){if(this.showOnTap&&a.pointerType!=="mouse"){this.onTargetOver(a)}},onTargetOver:function(g){var c=this,b=c.delegate,d=c.currentTarget,i=g.relatedTarget||g.fromElement,h,a=c.hasListeners;if(c.disabled){return}if(b){if(d.contains(g.target)){return}h=g.getTarget(b);if(h&&Ext.fly(h).contains(g.fromElement)){return}}else{if(!c.target.contains(i)){h=c.target.dom}else{return}}if(h){if((a.beforeshow||a.show)&&c.isVisible()){c.hide()}c.triggerElement=h;c.pointerEvent=g;d.attach(h);c.handleTargetOver(h,g)}else{if(d.dom){c.handleTargetOut()}}},handleTargetOver:function(b,a){if(a.pointerType!=="mouse"){this.showFromDelay()}else{this.delayShow()}},delayShow:function(){var a=this;a.clearTimer("hide");if(a.hidden&&!a.showTimer){if(a.delegate&&Ext.Date.getElapsed(a.lastHidden)','',' ',"",""],initComponent:function(){var a=this;Ext.Component.prototype.initComponent.apply(this,arguments);if(a.handler){a.on("select",a.handler,a.scope,true)}},initRenderData:function(){var a=this;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{itemCls:a.itemCls,colors:a.colors})},onRender:function(){var b=this,a=b.clickEvent;Ext.Component.prototype.onRender.apply(this,arguments);b.mon(b.el,a,b.handleClick,b,{delegate:"a"});if(a!=="click"){b.mon(b.el,"click",Ext.emptyFn,b,{delegate:"a",stopEvent:true})}},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);if(a.value){b=a.value;a.value=null;a.select(b,true)}},handleClick:function(c){var b=this,a;c.stopEvent();if(!b.disabled){a=c.currentTarget.className.match(b.colorRe)[1];b.select(a.toUpperCase())}},select:function(b,a){var e=this,h=e.selectedCls,g=e.value,c,d;b=b.replace("#","");if(!e.rendered){e.value=b;return}if(b!==g||e.allowReselect){c=e.el;if(e.value){d=c.down("a.color-"+g,true);Ext.fly(d).removeCls(h)}d=c.down("a.color-"+b,true);Ext.fly(d).addCls(h);e.value=b;if(a!==true){e.fireEvent("select",e,b)}}},clear:function(){var b=this,c=b.value,a;if(c&&b.rendered){a=b.el.down("a.color-"+c,true);Ext.fly(a).removeCls(b.selectedCls)}b.value=null},getValue:function(){return this.value||null}},0,["colorpicker"],["component","box","colorpicker"],{component:true,box:true,colorpicker:true},["widget.colorpicker"],0,[Ext.picker,"Color",Ext,"ColorPalette"],0));(Ext.cmd.derive("Ext.layout.component.field.HtmlEditor",Ext.layout.component.field.FieldContainer,{type:"htmleditor",naturalHeight:150,naturalWidth:300,beginLayout:function(b){var a=this.owner,c;if(Ext.isGecko){c=a.textareaEl.dom;this.lastValue=c.value;c.value=""}Ext.layout.component.field.FieldContainer.prototype.beginLayout.apply(this,arguments);b.toolbarContext=b.context.getCmp(a.toolbar);b.inputCmpContext=b.context.getCmp(a.inputCmp);b.bodyCellContext=b.getEl("bodyEl");b.textAreaContext=b.getEl("textareaEl");b.iframeContext=b.getEl("iframeEl")},beginLayoutCycle:function(i){var h=this,d=i.widthModel,c=i.heightModel,b=h.owner,g=b.iframeEl,e=b.textareaEl,a=(c.natural||c.shrinkWrap)?h.naturalHeight:"";Ext.layout.component.field.FieldContainer.prototype.beginLayoutCycle.apply(this,arguments);if(d.shrinkWrap){g.setStyle("width","");e.setStyle("width","")}else{if(d.natural){i.bodyCellContext.setWidth(h.naturalWidth)}}g.setStyle("height",a);e.setStyle("height",a)},finishedLayout:function(){var a=this.owner;Ext.layout.component.field.FieldContainer.prototype.finishedLayout.apply(this,arguments);if(Ext.isGecko){a.textareaEl.dom.value=this.lastValue}}},0,0,0,0,["layout.htmleditor"],0,[Ext.layout.component.field,"HtmlEditor"],0));(Ext.cmd.derive("Ext.toolbar.Separator",Ext.toolbar.Item,{alternateClassName:"Ext.Toolbar.Separator",baseCls:"x-toolbar-separator",ariaRole:"separator"},0,["tbseparator"],["component","box","tbitem","tbseparator"],{component:true,box:true,tbitem:true,tbseparator:true},["widget.tbseparator"],0,[Ext.toolbar,"Separator",Ext.Toolbar,"Separator"],0));(Ext.cmd.derive("Ext.layout.container.boxOverflow.Menu",Ext.layout.container.boxOverflow.None,{alternateClassName:"Ext.layout.boxOverflow.Menu",noItemsMenuText:'',menuCls:"x-box-menu",constructor:function(a){var b=this;Ext.layout.container.boxOverflow.None.prototype.constructor.call(this,a);b.menuItems=[]},beginLayout:function(a){Ext.layout.container.boxOverflow.None.prototype.beginLayout.call(this,a);this.clearOverflow(a)},beginLayoutCycle:function(b,a){Ext.layout.container.boxOverflow.None.prototype.beginLayoutCycle.call(this,b,a);if(!a){this.clearOverflow(b);this.layout.cacheChildItems(b)}},onRemove:function(a){Ext.Array.remove(this.menuItems,a)},clearItem:function(a){var b=a.menu;if(a.isButton&&b){a.setMenu(b,false)}},getSuffixConfig:function(){var d=this,c=d.layout,a=c.owner,b=a.id;d.menu=new Ext.menu.Menu({listeners:{scope:d,beforeshow:d.beforeMenuShow}});d.menuTrigger=new Ext.button.Button({id:b+"-menu-trigger",cls:d.menuCls+"-after x-toolbar-item",plain:a.usePlainButtons,ownerCt:a,ownerLayout:c,iconCls:"x-"+d.getOwnerType(a)+"-more-icon",ui:a.defaultButtonUI||"default",menu:d.menu,showEmptyMenu:true,getSplitCls:function(){return""}});return d.menuTrigger.getRenderTree()},getOverflowCls:function(a){return this.menuCls+"-body-"+a},handleOverflow:function(c){var b=this,a=b.layout;b.showTrigger(c);if(a.direction!=="vertical"){b.menuTrigger.setLocalY((c.state.boxPlan.maxSize-b.menuTrigger[a.names.getHeight]())/2)}return{reservedSpace:b.triggerTotalWidth}},captureChildElements:function(){var a=this,c=a.menuTrigger,b=a.layout.names;if(c.rendering){c.finishRender();a.triggerTotalWidth=c[b.getWidth]()+c.el.getMargin(b.parallelMargins)}},clearOverflow:function(h){var g=this,b=g.menuItems,e=b.length,a=g.layout.owner,j=a._asLayoutRoot,d,c;a.suspendLayouts();g.captureChildElements();g.hideTrigger();a.resumeLayouts();for(c=0;cc){k=r.target;p.menuItems.push(k);k.hide()}}b.resumeLayouts()},hideTrigger:function(){var a=this.menuTrigger;if(a){a.hide()}},beforeMenuShow:function(j){var h=this,b=h.menuItems,d=0,a=b.length,g,e,c=function(k,i){return k.isXType("buttongroup")&&!(i instanceof Ext.toolbar.Separator)};j.suspendLayouts();j.removeAll(false);for(;d',"{[Ext.util.Format.htmlEncode(values.value)]}","","{afterTextAreaTpl}","{beforeIFrameTpl}",'',"{afterIFrameTpl}",{disableFormats:true}],stretchInputElFixed:true,subTplInsertions:["beforeTextAreaTpl","afterTextAreaTpl","beforeIFrameTpl","afterIFrameTpl","iframeAttrTpl","inputAttrTpl"],enableFormat:true,enableFontSize:true,enableColors:true,enableAlignments:true,enableLists:true,enableSourceEdit:true,enableLinks:true,enableFont:true,createLinkText:"Please enter the URL for the link:",defaultLinkValue:"http://",fontFamilies:["Arial","Courier New","Tahoma","Times New Roman","Verdana"],defaultValue:Ext.isOpera?" ":"​",extraFieldBodyCls:"x-html-editor-wrap",defaultButtonUI:"default-toolbar",buttonDefaults:null,initialized:false,activated:false,sourceEditMode:false,iframePad:3,hideMode:"offsets",maskOnDisable:true,containerElCls:"x-html-editor-container",reStripQuotes:/^['"]*|['"]*$/g,textAlignRE:/text-align:(.*?);/i,safariNonsenseRE:/\sclass="(?:Apple-style-span|Apple-tab-span|khtml-block-placeholder)"/gi,nonDigitsRE:/\D/g,initComponent:function(){var a=this;a.items=[a.createToolbar(),a.createInputCmp()];a.layout={type:"vbox",align:"stretch"};if(a.value==null){a.value=""}Ext.form.FieldContainer.prototype.initComponent.apply(this,arguments);a.initField()},createInputCmp:function(){this.inputCmp=Ext.widget(this.getInputCmpCfg());return this.inputCmp},getInputCmpCfg:function(){var a=this,c=a.id+"-inputCmp",b={id:c,name:a.name,textareaCls:a.textareaCls+" x-hidden",value:a.value,iframeName:Ext.id(),iframeSrc:Ext.SSL_SECURE_URL,iframeCls:"x-htmleditor-iframe"};a.getInsertionRenderData(b,a.subTplInsertions);return{flex:1,xtype:"component",tpl:a.lookupTpl("componentTpl"),childEls:["iframeEl","textareaEl"],id:c,cls:"x-html-editor-input",data:b}},createToolbar:function(){this.toolbar=Ext.widget(this.getToolbarCfg());return this.toolbar},getToolbarCfg:function(){var h=this,b=[],e,a=Ext.quickTipsActive&&Ext.tip.QuickTipManager.isEnabled(),d="x-",j,g;function c(l,i,k){return Ext.merge({itemId:l,cls:d+"btn-icon",iconCls:d+"edit-"+l,enableToggle:i!==false,scope:h,handler:k||h.relayBtnCmd,clickEvent:"mousedown",tooltip:a?h.buttonTips[l]:g,overflowText:h.buttonTips[l].title||g,tabIndex:-1},h.buttonDefaults)}if(h.enableFont&&!Ext.isSafari2){j=Ext.widget("component",{itemId:"fontSelect",renderTpl:['"],childEls:["selectEl"],afterRender:function(){h.fontSelect=this.selectEl;Ext.Component.prototype.afterRender.apply(this,arguments)},onDisable:function(){var i=this.selectEl;if(i){i.dom.disabled=true}Ext.Component.prototype.onDisable.apply(this,arguments)},onEnable:function(){var i=this.selectEl;if(i){i.dom.disabled=false}Ext.Component.prototype.onEnable.apply(this,arguments)},listeners:{change:function(){h.win.focus();h.relayCmd("fontName",h.fontSelect.dom.value);h.deferFocus()},element:"selectEl"}});b.push(j,"-")}if(h.enableFormat){b.push(c("bold"),c("italic"),c("underline"))}if(h.enableFontSize){b.push("-",c("increasefontsize",false,h.adjustFont),c("decreasefontsize",false,h.adjustFont))}if(h.enableColors){b.push("-",Ext.merge({itemId:"forecolor",cls:d+"btn-icon",iconCls:d+"edit-forecolor",overflowText:h.buttonTips.forecolor.title,tooltip:a?h.buttonTips.forecolor||g:g,tabIndex:-1,menu:Ext.widget("menu",{plain:true,items:[{xtype:"colorpicker",allowReselect:true,focus:Ext.emptyFn,value:"000000",plain:true,clickEvent:"mousedown",handler:function(k,i){h.relayCmd("forecolor",Ext.isWebKit||Ext.isIE?"#"+i:i);this.up("menu").hide()}}]})},h.buttonDefaults),Ext.merge({itemId:"backcolor",cls:d+"btn-icon",iconCls:d+"edit-backcolor",overflowText:h.buttonTips.backcolor.title,tooltip:a?h.buttonTips.backcolor||g:g,tabIndex:-1,menu:Ext.widget("menu",{plain:true,items:[{xtype:"colorpicker",focus:Ext.emptyFn,value:"FFFFFF",plain:true,allowReselect:true,clickEvent:"mousedown",handler:function(k,i){if(Ext.isGecko){h.execCmd("useCSS",false);h.execCmd("hilitecolor","#"+i);h.execCmd("useCSS",true);h.deferFocus()}else{h.relayCmd(Ext.isOpera?"hilitecolor":"backcolor",Ext.isWebKit||Ext.isIE||Ext.isOpera?"#"+i:i)}this.up("menu").hide()}}]})},h.buttonDefaults))}if(h.enableAlignments){b.push("-",c("justifyleft"),c("justifycenter"),c("justifyright"))}if(!Ext.isSafari2){if(h.enableLinks){b.push("-",c("createlink",false,h.createLink))}if(h.enableLists){b.push("-",c("insertorderedlist"),c("insertunorderedlist"))}if(h.enableSourceEdit){b.push("-",c("sourceedit",true,function(){h.toggleSourceEdit(!h.sourceEditMode)}))}}for(e=0;e",b.iframePad,a,b.defaultFont)},getEditorBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){return this.iframeEl.dom.contentDocument||this.getWin().document},getWin:function(){return this.iframeEl.dom.contentWindow||window.frames[this.iframeEl.dom.name]},initDefaultFont:function(){var h=this,a=0,j,b,k,e,d,g,c;if(!h.defaultFont){b=h.textareaEl.getStyle("font-family");b=Ext.String.capitalize(b.split(",")[0]);j=Ext.Array.clone(h.fontFamilies);Ext.Array.include(j,b);j.sort();h.defaultFont=b;k=h.down("#fontSelect").selectEl.dom;for(d=0,g=j.length;d'+d+""}}d=g.cleanHtml(d);if(g.fireEvent("beforesync",g,d)!==false){if(Ext.isGecko&&e.value===""&&d==="
    "){d=""}if(e.value!==d){e.value=d;h=true}g.fireEvent("sync",g,d);if(h){g.checkChange()}}}},getValue:function(){var a=this,b;if(!a.sourceEditMode){a.syncValue()}b=a.rendered?a.textareaEl.dom.value:a.value;a.value=b;return b},pushValue:function(){var b=this,a;if(b.initialized){a=b.textareaEl.dom.value||"";if(!b.activated&&a.length<1){a=b.defaultValue}if(b.fireEvent("beforepush",b,a)!==false){b.getEditorBody().innerHTML=a;if(Ext.isGecko){b.setDesignMode(false);b.setDesignMode(true)}b.fireEvent("push",b,a)}}},focus:function(d,b){var c=this,e,a;if(b){if(!c.focusTask){c.focusTask=new Ext.util.DelayedTask(c.focus)}c.focusTask.delay(Ext.isNumber(b)?b:10,null,c,[d,false])}else{if(d){if(c.textareaEl&&c.textareaEl.dom){e=c.textareaEl.dom.value}if(e&&e.length){c.execCmd("selectall",true)}}a=c.getFocusEl();if(a&&a.focus){a.focus()}}return c},initEditor:function(){var d=this,c,a,h,i,b;if(d.destroying||d.destroyed){return}c=d.getEditorBody();if(!c){setTimeout(function(){d.initEditor()},10);return}a=d.textareaEl.getStyle(["font-size","font-family","background-image","background-repeat","background-color","color"]);a["background-attachment"]="fixed";c.bgProperties="fixed";Ext.DomHelper.applyStyles(c,a);h=d.getDoc();i=Ext.get(h);if(i){try{i.clearListeners()}catch(g){}b=d.onEditorEvent.bind(d);i.on({mousedown:b,dblclick:b,click:b,keyup:b,delegated:false,buffer:100});b=d.onRelayedEvent;i.on({mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,delegated:false,scope:d});if(Ext.isGecko){i.on("keypress",d.applyCommand,d)}if(d.fixKeys){i.on("keydown",d.fixKeys,d,{delegated:false})}if(d.fixKeysAfter){i.on("keyup",d.fixKeysAfter,d,{delegated:false})}if(Ext.isIE9){Ext.get(h.documentElement).on("focus",d.focus,d)}if(Ext.isIE8){i.on("focusout",function(){d.savedSelection=h.selection.type!=="None"?h.selection.createRange():null},d);i.on("focusin",function(){if(d.savedSelection){d.savedSelection.select()}},d)}Ext.getWin().on("unload",d.destroyEditor,d);h.editorInitialized=true;d.initialized=true;d.pushValue();d.setReadOnly(d.readOnly);d.fireEvent("initialize",d)}},destroyEditor:function(){var a=this,d=a.monitorTask,c,g;if(d){Ext.TaskManager.stop(d)}if(a.rendered){Ext.getWin().un("unload",a.destroyEditor,a);c=a.getDoc();if(c){Ext.get(c).destroy();if(c.hasOwnProperty){for(g in c){try{if(c.hasOwnProperty(g)){delete c[g]}}catch(b){}}}}delete a.iframeEl;delete a.textareaEl;delete a.toolbar;delete a.inputCmp}},doDestroy:function(){this.destroyEditor();Ext.form.FieldContainer.prototype.doDestroy.call(this)},onRelayedEvent:function(c){var b=this.iframeEl,d=Ext.fly(b).getTrueXY(),e=c.getXY(),a=c.getXY();c.xy=[d[0]+a[0],d[1]+a[1]];c.injectEvent(b);c.xy=e},onFirstFocus:function(){var c=this,b,a;c.activated=true;c.disableItems(c.readOnly);if(Ext.isGecko){c.win.focus();b=c.win.getSelection();if(b.focusNode&&!c.getValue().length){a=b.getRangeAt(0);a.selectNodeContents(c.getEditorBody());a.collapse(true);c.deferFocus()}try{c.execCmd("useCSS",true);c.execCmd("styleWithCSS",false)}catch(d){}}c.fireEvent("activate",c)},adjustFont:function(d){var e=d.getItemId()==="increasefontsize"?1:-1,c=this.getDoc().queryCommandValue("FontSize")||"2",a=Ext.isString(c)&&c.indexOf("px")!==-1,b;c=parseInt(c,10);if(a){if(c<=10){c=1+e}else{if(c<=13){c=2+e}else{if(c<=16){c=3+e}else{if(c<=18){c=4+e}else{if(c<=24){c=5+e}else{c=6+e}}}}}c=Ext.Number.constrain(c,1,6)}else{b=Ext.isSafari;if(b){e*=2}c=Math.max(1,c+e)+(b?"px":0)}this.relayCmd("FontSize",c)},onEditorEvent:function(){this.updateToolbar()},updateToolbar:function(){var j=this,e,c,d,k,b,g,a,h;if(j.readOnly){return}if(!j.activated){j.onFirstFocus();return}d=j.getToolbar().items.map;k=j.getDoc();if(j.enableFont&&!Ext.isSafari2){g=k.queryCommandValue("fontName");b=(g?g.split(",")[0].replace(j.reStripQuotes,""):j.defaultFont).toLowerCase();a=j.fontSelect.dom;if(b!==a.value||b!==g){a.value=b}}function m(){var i;for(e=0,c=arguments.length,b;e0){g=String.fromCharCode(g);switch(g){case"b":b="bold";break;case"i":b="italic";break;case"u":b="underline";break}if(b){a.win.focus();a.execCmd(b);a.deferFocus();d.preventDefault()}}}},insertAtCursor:function(k){var i=this,h=i.getWin(),j=i.getDoc(),c,g,d,l,e,b,a;if(i.activated){h.focus();if(h.getSelection){c=h.getSelection();if(c.getRangeAt&&c.rangeCount){g=c.getRangeAt(0);g.deleteContents();d=j.createElement("div");d.innerHTML=k;l=j.createDocumentFragment();while((e=d.firstChild)){b=l.appendChild(e)}a=l.firstChild;g.insertNode(l);if(b){g=g.cloneRange();g.setStartAfter(b);g.collapse(true);c.removeAllRanges();c.addRange(g)}}}else{if(j.selection&&c.type!=="Control"){c=j.selection;g=c.createRange();g.collapse(true);c.createRange().pasteHTML(k)}}i.deferFocus()}},fixKeys:(function(){var a;if(Ext.isIE10m){return function(i){var d=this,c=i.getKey(),h=d.getDoc(),j=d.readOnly,b,g;if(c===i.TAB){i.stopEvent();if(!j){b=h.selection.createRange();if(b){if(b.collapse){b.collapse(true);b.pasteHTML("    ")}d.deferFocus()}}}}}if(Ext.isOpera){return function(d){var c=this,b=d.getKey(),g=c.readOnly;if(b===d.TAB){d.stopEvent();if(!g){c.win.focus();c.execCmd("InsertHTML","    ");c.deferFocus()}}}}return null}()),fixKeysAfter:(function(){if(Ext.isIE){return function(d){var b=this,a=d.getKey(),c=b.getDoc(),h=b.readOnly,g;if(!h&&(a===d.BACKSPACE||a===d.DELETE)){g=c.body.innerHTML;if(g==="

     

    "||g==="

     

    "){c.body.innerHTML=""}}}}return null}()),getToolbar:function(){return this.toolbar},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"}},privates:{deferFocus:function(){this.focus(false,true)},getFocusEl:function(){return this.sourceEditMode?this.textareaEl:this.iframeEl}}},0,["htmleditor"],["component","box","container","fieldcontainer","htmleditor"],{component:true,box:true,container:true,fieldcontainer:true,htmleditor:true},["widget.htmleditor"],[["field",Ext.form.field.Field]],[Ext.form.field,"HtmlEditor",Ext.form,"HtmlEditor"],0));(Ext.cmd.derive("Ext.view.TagKeyNav",Ext.view.BoundListKeyNav,{onKeySpace:function(c){var a=this,b=a.view.pickerField;if(b.isExpanded&&b.inputEl.dom.value===""){b.preventKeyUpEvent=true;a.navigateOnSpace=true;Ext.view.BoundListKeyNav.prototype.onKeySpace.call(this,c);c.stopEvent();return false}return true}},0,0,0,0,["view.navigation.tagfield"],0,[Ext.view,"TagKeyNav"],0));(Ext.cmd.derive("Ext.form.field.Tag",Ext.form.field.ComboBox,{noWrap:false,multiSelect:true,delimiter:",",tipTpl:undefined,forceSelection:true,createNewOnEnter:false,createNewOnBlur:false,encodeSubmitValue:false,triggerOnClick:true,stacked:false,filterPickList:false,clearOnBackspace:true,grow:true,growMin:false,growMax:false,simulatePlaceholder:true,selectOnFocus:true,ariaHelpText:"Use Up and Down arrows to view available values, Enter to select. Use Left and Right arrows to view selected values, Delete key to deselect.",ariaHelpTextEditable:"Use Up and Down arrows to view available values, Enter to select. Type and press Enter to create a new value. Use Left and Right arrows to view selected values, Delete key to deselect.",ariaSelectedText:"Selected {0}.",ariaDeselectedText:"{0} removed from selection.",ariaNoneSelectedText:"No value selected.",ariaSelectedListLabel:"Selected values",ariaAvailableListLabel:"Available values",fieldSubTpl:['
    {$}="{.}"',' class="x-tagfield {fieldCls} {typeCls} {typeCls}-{ui}" style="{wrapperStyle}">','','",'
      aria-label="{ariaSelectedListLabel}"',' aria-multiselectable="true"',' class="x-tagfield-arialist">',"
    ","
    ",{disableFormats:true}],postSubTpl:['',"",'{[values.renderTrigger(parent)]}',""],extraFieldBodyCls:"x-tagfield-body",childEls:["listWrapper","itemList","inputEl","inputElCt","selectedText","ariaList"],clearValueOnEmpty:false,ariaSelectable:true,ariaEl:"listWrapper",tagItemCls:"x-tagfield-item",tagItemTextCls:"x-tagfield-item-text",tagItemCloseCls:"x-tagfield-item-close",tagItemSelector:".x-tagfield-item",tagItemCloseSelector:".x-tagfield-item-close",tagSelectedCls:"x-tagfield-item-selected",initComponent:function(){var c=this,b=c.typeAhead,a=c.delimiter;if(c.createNewOnEnter||c.createNewOnBlur){c.forceSelection=false}c.typeAhead=false;if(c.value==null){c.value=[]}c.selectionModel=new Ext.selection.Model({mode:"MULTI",onSelectChange:function(d,g,e,h){h()},listeners:{scope:c,selectionchange:c.onSelectionChange,focuschange:c.onFocusChange}});if(!c.ariaHelp){c.ariaHelp=c.createNewOnEnter?c.ariaHelpTextEditable:c.ariaHelpText}Ext.form.field.ComboBox.prototype.initComponent.call(this);c.typeAhead=b;if(a&&c.multiSelect){c.delimiterRegexp=new RegExp(Ext.String.escapeRegex(a))}},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.ComboBox.prototype.initEvents.apply(this,arguments);if(!a.enableKeyEvents){b.on("keydown",a.onKeyDown,a);b.on("keyup",a.onKeyUp,a)}a.listWrapper.on({scope:a,click:a.onItemListClick,mousedown:a.onItemMouseDown})},createPicker:function(){var b=this,a;a=Ext.apply({navigationModel:"tagfield"},b.defaultListConfig);if(b.ariaAvailableListLabel){a.ariaRenderAttributes={"aria-label":Ext.String.htmlEncode(b.ariaAvailableListLabel)}}b.defaultListConfig=a;return Ext.form.field.ComboBox.prototype.createPicker.call(this)},isValid:function(){var b=this,a=b.disabled,c=b.forceValidation||!a;return c?b.validateValue(b.getValue()):a},onBindStore:function(a){var b=this;Ext.form.field.ComboBox.prototype.onBindStore.call(this,a);if(a){b.valueStore=new Ext.data.Store({model:a.getModel(),proxy:"memory",useModelWarning:false});b.selectionModel.bindStore(b.valueStore);if(b.filterPickList){b.listFilter=new Ext.util.Filter({scope:b,filterFn:b.filterPicked});b.changingFilters=true;a.filter(b.listFilter);b.changingFilters=false}}},filterPicked:function(a){return !this.valueCollection.contains(a)},onUnbindStore:function(a){var c=this,d=c.valueStore,b=c.picker;if(b){b.bindStore(null)}if(d){d.destroy();c.valueStore=null}if(c.filterPickList&&!a.destroyed){c.changingFilters=true;a.removeFilter(c.listFilter);c.changingFilters=false}Ext.form.field.ComboBox.prototype.onUnbindStore.apply(this,arguments)},clearInput:function(){var c=this,d=c.getValueRecords(),a=c.inputEl&&c.inputEl.dom.value,b;if(d.length&&a){b=d[d.length-1].get(c.displayField);if(!Ext.String.startsWith(b,a,true)){return}c.inputEl.dom.value="";if(c.queryMode=="local"){c.clearLocalFilter();c.getPicker().refresh()}}},onValueCollectionEndUpdate:function(){var a=this,c=a.valueCollection.items,b=a.valueStore;if(a.isSelectionUpdating()){return}if(a.filterPickList){a.changingFilters=true;a.store.filter(a.listFilter);a.changingFilters=false}Ext.form.field.ComboBox.prototype.onValueCollectionEndUpdate.call(this);Ext.suspendLayouts();if(b){b.suspendEvents();b.loadRecords(c);b.resumeEvents()}a.refreshEmptyText();a.clearInput();Ext.resumeLayouts(true);a.alignPicker()},checkValueOnDataChange:Ext.emptyFn,onSelectionChange:function(a,e){var c=this,d=c.inputEl,b;c.applyMultiselectItemMarkup();c.applyAriaListMarkup();c.applyAriaSelectedText();if(d){if(e.length===0){d.dom.removeAttribute("aria-activedescendant")}else{b=c.getAriaListNode(e[0]);if(b){d.dom.setAttribute("aria-activedescendant",b.id)}}}c.fireEvent("valueselectionchange",c,e)},onFocusChange:function(a,d,b){var c=this;Ext.form.field.ComboBox.prototype.onFocusChange.call(this,a,d,b);c.fireEvent("valuefocuschange",c,d,b)},getAriaListNode:function(a){var c=this.ariaList,b;if(c&&a){b=c.selectNode('[data-recordid="'+a.internalId+'"]')}return b},doDestroy:function(){Ext.destroy(this.selectionModel);Ext.form.field.ComboBox.prototype.doDestroy.call(this)},getSubTplData:function(d){var j=this,b=j.id,h=Ext.form.field.ComboBox.prototype.getSubTplData.apply(this,arguments),e=j.emptyText,g=e&&h.value.length<1,k=j.growMin,a=j.growMax,c="",i;h.value="";h.emptyText=g?e:"";h.itemListCls="";h.emptyCls=g?j.emptyUICls:"";if(j.grow){if(Ext.isNumber(k)&&k>0){c+="min-height:"+k+"px;"}if(Ext.isNumber(a)&&a>0){c+="max-height:"+a+"px;"}}else{c+="max-height: 1px;"}h.wrapperStyle=c;if(j.stacked===true){h.itemListCls+=" x-tagfield-stacked"}if(!j.multiSelect){h.itemListCls+=" x-tagfield-singleselect"}if(!j.ariaStaticRoles[j.ariaRole]){h.multiSelect=j.multiSelect;h.ariaSelectedListLabel=Ext.String.htmlEncode(j.ariaSelectedListLabel);i=h.ariaElAttributes;if(i){i["aria-owns"]=b+"-inputEl "+b+"-picker "+b+"-ariaList"}i=h.inputElAriaAttributes;if(i){i.role="textbox";i["aria-describedby"]=b+"-selectedText "+(i["aria-describedby"]||"")}}return h},afterRender:function(){var b=this,c=b.inputEl,a=b.emptyText;if(a){if(Ext.supports.Placeholder&&c){c.dom.removeAttribute("placeholder")}}b.applyMultiselectItemMarkup();b.applyAriaListMarkup();b.applyAriaSelectedText();Ext.form.field.ComboBox.prototype.afterRender.apply(this,arguments);b.emptyClsElements.push(b.listWrapper,b.placeholderLabel)},findRecord:function(c,b){var a=this.getStore().queryRecords(c,b);return a.length?a[0]:false},getCursorPosition:function(){var a;if(document.selection){a=document.selection.createRange();a.collapse(true);a.moveStart("character",-this.inputEl.dom.value.length);a=a.text.length}else{a=this.inputEl.dom.selectionStart}return a},hasSelectedText:function(){var c=this.inputEl.dom,b,a;if(document.selection){b=document.selection;a=b.createRange();return(a.parentElement()===c)}else{return c.selectionStart!==c.selectionEnd}},onKeyDown:function(k){var l=this,p=k.getKey(),o=l.inputEl,d=o&&o.dom.value,a=l.valueCollection,h=l.selectionModel,c=false,m,n,b,q,g,j;if(l.destroyed||l.readOnly||l.disabled||!l.editable){return}m=a.getCount();if(m>0&&d===""){n=(h.getCount()>0)?a.indexOf(h.getLastSelected()):-1;if((p===k.BACKSPACE&&l.clearOnBackspace)||(p===k.DELETE&&n>-1)){if(n>-1){if(h.getCount()>1){n=-1}b=h.getSelection();q=[];for(g=0,j=b.length;g-1){h.select(n)}else{if(a.getCount()){h.select(a.last())}}}c=true}else{if(p===k.RIGHT||p===k.LEFT){if(n===-1&&p===k.LEFT){h.select(a.last());c=true}else{if(n>-1){if(p===k.RIGHT){if(n<(m-1)){h.select(n+1,k.shiftKey);c=true}else{if(!k.shiftKey){h.deselectAll();c=true}}}else{if(p===k.LEFT&&(n>0)){h.select(n-1,k.shiftKey);c=true}}}}}else{if(p===k.A&&k.ctrlKey){h.selectAll();c=k.A}}}}if(c){l.preventKeyUpEvent=c;k.stopEvent();return}if(l.isExpanded&&p===k.ENTER&&l.picker.highlightedItem){l.preventKeyUpEvent=true}if(l.enableKeyEvents){Ext.form.field.ComboBox.prototype.onKeyDown.apply(this,arguments)}if(!k.isSpecialKey()&&!k.hasModifier()){h.deselectAll()}},onKeyUp:function(h,b){var c=this,g=c.inputEl,d=g.dom.value,a=c.preventKeyUpEvent;if(c.preventKeyUpEvent){h.stopEvent();if(a===true||h.getKey()===a){delete c.preventKeyUpEvent}return}if(c.multiSelect&&c.delimiterRegexp&&c.delimiterRegexp.test(d)||(c.createNewOnEnter&&h.getKey()===h.ENTER)){if(c.createNewOnEnter&&d){c.ariaErrorEl.dom.innerHTML=Ext.String.formatEncode(c.ariaSelectedText,d)}d=Ext.Array.clean(d.split(c.delimiterRegexp));g.dom.value="";c.setValue(c.valueStore.getRange().concat(d));g.focus()}Ext.form.field.ComboBox.prototype.onKeyUp.call(this,h,b)},onEsc:function(c){var b=this,a=b.selectionModel,d=b.isExpanded;Ext.form.field.ComboBox.prototype.onEsc.call(this,c);if(!d&&a.getCount()>0){a.deselectAll()}c.stopEvent()},onTypeAhead:function(){var e=this,d=e.displayField,c=e.inputEl.dom,b=e.getStore().findRecord(d,c.value),g,a,h;if(b){g=b.get(d);a=g.length;h=c.value.length;if(h!==0&&h!==a){e.lastMutatedValue=g;c.value=g;e.selectText(h,g.length)}}},onItemListClick:function(d){var c=this,a=c.selectionModel,b=d.getTarget(c.tagItemSelector),g=b?d.getTarget(c.tagItemCloseSelector):false;if(c.readOnly||c.disabled){return}d.stopPropagation();if(b){if(g){c.removeByListItemNode(b);if(c.valueStore.getCount()>0){c.fireEvent("select",c,c.valueStore.getRange())}}else{c.toggleSelectionByListItemNode(b,d.shiftKey)}if(!Ext.supports.TouchEvents){c.inputEl.focus()}}else{if(a.getCount()>0){a.deselectAll()}c.inputEl.focus();if(c.triggerOnClick){c.onTriggerClick()}}},onItemMouseDown:function(a){a.preventDefault()},getMultiSelectItemMarkup:function(){var b=this,a=(b._getChildElCls&&b._getChildElCls())||"";if(!b.multiSelectItemTpl){if(!b.labelTpl){b.labelTpl="{"+b.displayField+"}"}b.labelTpl=b.lookupTpl("labelTpl");if(b.tipTpl){b.tipTpl=b.lookupTpl("tipTpl")}b.multiSelectItemTpl=new Ext.XTemplate(['','","",{isSelected:function(c){return b.selectionModel.isSelected(c)},getItemLabel:function(c){return Ext.String.htmlEncode(b.labelTpl.apply(c))},getTip:function(c){return Ext.String.htmlEncode(b.tipTpl.apply(c))},strict:true}])}if(!b.multiSelectItemTpl.isTemplate){b.multiSelectItemTpl=this.lookupTpl("multiSelectItemTpl")}return b.multiSelectItemTpl.apply(b.valueCollection.getRange())},applyMultiselectItemMarkup:function(){var b=this,a=b.itemList;if(a){a.select(".x-tagfield-item").destroy();b.inputElCt.insertHtml("beforeBegin",b.getMultiSelectItemMarkup());b.autoSize()}},getAriaListMarkup:function(){var c=this,b,a;if(!c.ariaListItemTpl){c.ariaListItemTpl=new Ext.XTemplate(['','
  • ","{[this.getItemLabel(values.data)]}","
  • ","
    ",{isPicked:function(d){return c.filterPicked(d)?"false":"true"},isSelected:function(d){return c.selectionModel.isSelected(d)?"true":"false"},getItemLabel:function(d){return Ext.String.htmlEncode(c.labelTpl.apply(d))},strict:true}])}if(!c.ariaListItemTpl.isTemplate){c.ariaListtemTpl=c.lookupTpl("ariaListItemTpl")}a=c.valueCollection.getRange();return c.ariaListItemTpl.apply(a)},applyAriaListMarkup:function(){var a=this,b=a.ariaList;if(b){b.select("*").destroy();b.insertHtml("afterBegin",a.getAriaListMarkup())}},getAriaSelectedText:function(a){var b=this;if(!b.ariaSelectedItemTpl){b.ariaSelectedItemTpl=new Ext.XTemplate(['',"{[this.getItemLabel(values.data)]}","",{getItemLabel:function(c){return Ext.String.htmlEncode(b.labelTpl.apply(c))},strict:true}])}if(!b.ariaSelectedItemTpl.isTemplate){b.ariaSelectedItemTpl=b.lookupTpl("ariaSelectedItemTpl")}return Ext.String.format(b.ariaSelectedText,b.ariaSelectedItemTpl.apply(a))},applyAriaSelectedText:function(){var b=this,d=b.selectedText,a,c;if(d){a=b.valueCollection.getRange();c=a.length?b.getAriaSelectedText(a):b.ariaNoneSelectedText;d.dom.innerHTML=Ext.String.htmlEncode(c)}},getRecordByListItemNode:function(a){return this.valueCollection.items[Number(a.getAttribute("data-selectionIndex"))]},toggleSelectionByListItemNode:function(b,d){var c=this,e=c.getRecordByListItemNode(b),a=c.selectionModel;if(e){if(a.isSelected(e)){a.deselect(e)}else{a.select(e,d)}}},removeByListItemNode:function(a){var b=this,c=b.getRecordByListItemNode(a);if(c){b.pickerSelectionModel.deselect(c)}},getDisplayValue:function(){return this.getRawValue()},getRawValue:function(){var e=this,c=e.getValueRecords(),b=[],d,a;for(d=0,a=c.length;d0||j.isLoaded(),b=j.hasPendingLoad(),m=q&&!g&&!b,e,s,r,p,c,t,n;if(Ext.isEmpty(o)){o=null;n=true}else{if(Ext.isString(o)&&u.multiSelect){o=o.split(u.delimiter)}else{o=Ext.Array.from(o,true)}}if(!n&&u.queryMode==="remote"&&!j.isEmptyStore&&d!==true&&m){for(r=0,s=o.length;r-1){o[r]=h.getAt(p)}else{p=u.findRecord(a,e);if(!p){if(u.forceSelection){k.push(e)}else{p={};p[u.valueField]=e;p[u.displayField]=e;c=u.valueStore.getModel();p=new c(p)}}if(p){o[r]=p}}}}if(k.length){t={};t[u.valueParam||u.valueField]=k.join(u.delimiter);j.load({params:t,callback:function(){u.setValue(o,l,true);u.autoSize();u.lastQuery=false}});return false}}if(!n&&!u.multiSelect&&o.length>0){for(r=o.length-1;r>=0;r--){if(o[r].isModel){o=o[r];break}}if(Ext.isArray(o)){o=o[o.length-1]}}return Ext.form.field.ComboBox.prototype.setValue.call(this,o,l)},updateValue:function(){var d=this,c=d.valueCollection.getRange(),a=c.length,b;for(b=0;b=b&&h<=a}});d.add(c);d.endUpdate()}},0,["timepicker"],["component","box","dataview","boundlist","timepicker"],{component:true,box:true,dataview:true,boundlist:true,timepicker:true},["widget.timepicker"],0,[Ext.picker,"Time"],function(){this.prototype.modelType=Ext.define(null,{extend:"Ext.data.Model",fields:["disp","date"]})}));(Ext.cmd.derive("Ext.form.field.Time",Ext.form.field.ComboBox,{alternateClassName:["Ext.form.TimeField","Ext.form.Time"],triggerCls:"x-form-time-trigger",minText:"The time in this field must be equal to or after {0}",maxText:"The time in this field must be equal to or before {0}",invalidText:"{0} is not a valid time",format:"g:i A",altFormats:"g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H|gi a|hi a|giA|hiA|gi A|hi A",formatText:"Expected time format HH:MM space AM or PM",increment:15,pickerMaxHeight:300,selectOnTab:true,snapToIncrement:false,valuePublishEvent:["select","blur"],initDate:"1/1/2008",initDateParts:[2008,0,1],initDateFormat:"j/n/Y",queryMode:"local",displayField:"disp",valueField:"date",initComponent:function(){var c=this,b=c.minValue,a=c.maxValue;if(b){c.setMinValue(b)}if(a){c.setMaxValue(a)}c.displayTpl=new Ext.XTemplate('{[typeof values === "string" ? values : this.formatDate(values["'+c.displayField+'"])]}'+c.delimiter+"",{formatDate:c.formatDate.bind(c)});c.store=Ext.picker.Time.createStore(c.format,c.increment);Ext.form.field.ComboBox.prototype.initComponent.call(this);c.getPicker()},afterQuery:function(a){var b=this;Ext.form.field.ComboBox.prototype.afterQuery.call(this,a);if(b.value===null&&b.getRawValue()&&b.validateOnChange){b.validate()}},isEqual:function(g,e){var b=Ext.Array.from,d=Ext.Date.isEqual,c,a;g=b(g);e=b(e);a=g.length;if(a!==e.length){return false}for(c=0;c0?l:this.getRawValue();var g=this,k=Ext.String.format,j=Ext.form.field.ComboBox.prototype.getErrors.call(this,l),h=g.minValue,e=g.maxValue,c=g.displayTplData,m=g.getRawValue(),b,d,a,n;if(c&&c.length>0){for(b=0,d=c.length;be){j.push(k(g.maxText,g.formatDate(e)))}}return j},formatDate:function(b){var d=[],c,a;b=Ext.Array.from(b);for(c=0,a=b.length;c=a.length){b.colIdx=0}else{b.colIdx++}b.setColumn(b.colIdx)}while(!b.getCell(true));break}}},statics:{compare:function(b,a){return b.rowIdx-a.rowIdx||b.colIdx-a.colIdx}}},1,0,0,0,0,0,[Ext.grid,"CellContext"],0));(Ext.cmd.derive("Ext.grid.CellEditor",Ext.Editor,{isCellEditor:true,alignment:"l-l!",hideEl:false,cls:"x-small-editor x-grid-editor x-grid-cell-editor",treeNodeSelector:".x-tree-node-text",shim:false,shadow:false,floating:true,alignOnScroll:false,useBoundValue:false,focusLeaveAction:"completeEdit",setGrid:function(a){this.grid=a},startEdit:function(b,c,a){this.context=this.editingPlugin.context;Ext.Editor.prototype.startEdit.call(this,b,c,a)},onShow:function(){var a=this,b=a.boundEl.down(a.context.view.innerSelector);if(b){if(a.isForTree){b=b.child(a.treeNodeSelector)}b.hide()}Ext.Editor.prototype.onShow.apply(this,arguments)},onFocusEnter:function(){var c=this,b=c.context,a=b.view;b.node=a.getNode(b.record);b.row=a.getRow(b.record);b.cell=b.getCell(true);b.rowIdx=a.indexOf(b.row);c.realign(true);Ext.Editor.prototype.onFocusEnter.apply(this,arguments);c.focusEnterEvent=null},onFocusLeave:function(d){var b=this,a=b.context.view,c=Ext.fly(d.relatedTarget);if(b[b.focusLeaveAction]()===false){d.event.stopEvent();return}delete b.focusLeaveAction;if(!a.destroyed&&a.el.contains(c)&&(!c.isAncestor(d.target)||c===a.el)&&!c.up(a.getCellSelector(),a.el)){b.context.grid.setActionableMode(false,a.actionPosition)}b.cacheElement();Ext.container.Container.prototype.onFocusLeave.apply(b,arguments)},completeEdit:function(a){var c=this,b=c.context;if(c.editing){b.value=c.field.value;if(c.editingPlugin.validateEdit(b)===false){if(b.cancel){b.value=c.originalValue;c.editingPlugin.cancelEdit()}return !!b.cancel}}Ext.Editor.prototype.completeEdit.call(this,a)},onEditComplete:function(b,a){var e=this,d=Ext.Element.getActiveElement(),c;e.editing=false;c=e.boundEl=e.context.getCell();if(c){e.restoreCell();if(c.contains(d)&&c.dom!==d){c.focus()}}Ext.Editor.prototype.onEditComplete.apply(this,arguments);if(a){e.editingPlugin.cancelEdit(e)}else{e.editingPlugin.onEditComplete(e,e.getValue(),e.startValue)}},cacheElement:function(){if(!this.editing&&!this.destroyed){Ext.getDetachedBody().dom.appendChild(this.el.dom)}},onHide:function(){Ext.Editor.superclass.onHide.apply(this,arguments)},onSpecialKey:function(i,h,d){var g=this,c=h.getKey(),b=g.completeOnEnter&&c===h.ENTER&&(!d||!d.fromBoundList),e=g.cancelOnEsc&&c===h.ESC,a=g.editingPlugin.view;if(b||e){h.stopEvent();if(e){g.focusLeaveAction="cancelEdit"}a.ownerGrid.setActionableMode(false)}},getRefOwner:function(){return this.column&&this.column.getView()},restoreCell:function(){var a=this,b=a.boundEl.down(a.context.view.innerSelector);if(b){if(a.isForTree){b=b.child(a.treeNodeSelector)}b.show()}},afterRender:function(){var a=this,b=a.field;Ext.Editor.prototype.afterRender.apply(this,arguments);if(b.isCheckbox){b.mon(b.inputEl,{mousedown:a.onCheckBoxMouseDown,click:a.onCheckBoxClick,scope:a})}},onCheckBoxMouseDown:function(){this.completeEdit=Ext.emptyFn},onCheckBoxClick:function(){delete this.completeEdit;this.field.focus(false,10)},realign:function(d){var j=this,g=j.boundEl,h=g.down(j.context.view.innerSelector),l=h.dom.firstChild,b=g.getWidth(),c=Ext.Array.clone(j.offsets),a=j.grid,i,k="",e=!l||(l.nodeType===3&&!(Ext.String.trim(k=l.data).length));if(j.isForTree){i=j.getTreeNodeOffset(h);b-=Math.abs(i);c[0]+=i}if(a.columnLines){b-=g.getBorderWidth("rl")}if(d===true){j.field.setWidth(b)}if(e){h.dom.innerHTML="X"}j.alignTo(g,j.alignment,c);if(e){h.dom.firstChild.data=k}},getTreeNodeOffset:function(a){return a.child(this.treeNodeSelector).getOffsetsTo(a)[0]}},0,0,["component","box","container","editor"],{component:true,box:true,container:true,editor:true},0,0,[Ext.grid,"CellEditor"],0));(Ext.cmd.derive("Ext.grid.ColumnComponentLayout",Ext.layout.component.Auto,{type:"columncomponent",setWidthInDom:true,_paddingReset:{paddingTop:"",paddingBottom:""},columnAutoCls:"x-column-header-text-container-auto",beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.titleContext=a.getEl("titleEl")},beginLayoutCycle:function(c){var b=this,a=b.owner,d=c.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(d){a.el.setWidth("")}a.textContainerEl[d&&!a.isGroupHeader?"addCls":"removeCls"](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(d,c){var b=this,a=b.owner,e;if(a.getRootHeaderCt().hiddenHeaders){d.setProp("innerHeight",0);return}if(!d.hasRawContent){if(a.headerWrap&&!d.hasDomProp("width")){b.done=false;return}e=c-d.getBorderInfo().height;d.setProp("innerHeight",e-a.titleEl.getHeight(),false)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp("innerWidth",b-a.getBorderInfo().width,false)}},calculateOwnerHeightFromContentHeight:function(d,c){var b=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),a=this.owner;if(!d.hasRawContent){if(!a.headerWrap||d.hasDomProp("width")){return c+a.titleEl.getHeight()+d.getBorderInfo().height}return null}return b},calculateOwnerWidthFromContentWidth:function(g,b){var a=this.owner,e=g.getPaddingInfo().width,d=this.getTriggerOffset(a,g),c;if(a.isGroupHeader){c=b}else{c=Math.max(b,a.textEl.getWidth()+g.titleContext.getPaddingInfo().width)}return c+e+d},getTriggerOffset:function(a,c){var b=0;if(c.widthModel.shrinkWrap&&!a.menuDisabled){if(a.query(">:not([hidden])").length===0){b=a.getTriggerElWidth()}}return b}},0,0,0,0,["layout.columncomponent"],0,[Ext.grid,"ColumnComponentLayout"],0));(Ext.cmd.derive("Ext.layout.container.Fit",Ext.layout.container.Container,{alternateClassName:"Ext.layout.FitLayout",itemCls:"x-fit-item",type:"fit",manageMargins:true,sizePolicies:[{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}],getItemSizePolicy:function(b,c){var a=c||this.owner.getSizeModel(),d=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[d]},beginLayoutCycle:function(k,g){var t=this,u=t.lastHeightModel&&t.lastHeightModel.calculated,h=t.lastWidthModel&&t.lastWidthModel.calculated,o=h||u,l=0,m=0,s,b,p,r,e,a,j,n,q,d;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(o&&k.targetContext.el.dom.tagName.toUpperCase()!=="TD"){o=h=u=false}b=k.childItems;e=b.length;for(p=0;p0){for(j=0;j'+c.view.emptyText+""}c.view.getComponentLayout().headerCt=c.headerCt;c.mon(c.view,{uievent:c.processEvent,scope:c});c.headerCt.view=c.view;if(c.hasListeners.viewcreated){c.fireEvent("viewcreated",c,c.view)}}return c.view},getEmptyText:function(){return this.view.emptyText},setEmptyText:function(a){this.emptyText=a;this.view.setEmptyText('
    '+a+"
    ");return this},getColumnManager:function(){return this.columnManager},getVisibleColumnManager:function(){return this.visibleColumnManager},getTopLevelColumnManager:function(){return this.ownerGrid.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},setAutoScroll:Ext.emptyFn,applyScrollable:function(b){var a=this.view;a=a&&(a.normalView||a);if(a){a.setScrollable(b)}return b},processEvent:function(g,i,j,a,h,d,c,k){var b=d.position.column;if(b){return b.processEvent.apply(b,arguments)}},ensureVisible:function(a,b){this.doEnsureVisible(a,b)},scrollByDeltaY:function(b,a){this.getView().scrollBy(null,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,null,a)},afterCollapse:function(){this.saveScrollPos();Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){Ext.panel.Panel.prototype.afterExpand.apply(this,arguments);this.restoreScrollPos()},saveScrollPos:Ext.emptyFn,restoreScrollPos:Ext.emptyFn,onHeaderResize:Ext.emptyFn,onHeaderMove:function(e,g,a,b,d){var c=this;if(c.optimizedColumnMove===false){c.view.refreshView()}else{c.view.moveColumn(b,d,a)}c.delayScroll()},onHeaderHide:function(b,c){var a=this.view;if(!b.childHideCount&&a.refreshCounter){a.refreshView()}},onHeaderShow:function(b,c){var a=this.view;if(a.refreshCounter){a.refreshView()}},onHeadersChanged:function(b,c){var a=this;if(a.rendered&&!a.reconfiguring){a.view.refreshView();a.delayScroll()}},delayScroll:function(){var a=this.view;if(a){this.scrollTask.delay(10,null,null,[a])}},onViewReady:function(){this.fireEvent("viewready",this)},onRestoreHorzScroll:function(){var b=this,a=b.scrollXPos;if(a){b.syncHorizontalScroll(b,true)}},getScrollerOwner:function(){var a=this;if(!this.scrollerOwner){a=this.up("[scrollerOwner]")}return a},getLhsMarker:function(){var a=this;return a.lhsMarker||(a.lhsMarker=Ext.DomHelper.append(a.el,{role:"presentation",cls:a.resizeMarkerCls},true))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:"presentation",cls:a.resizeMarkerCls},true))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(a){var b=this,c;if(!b.ignoreNextSelection){b.ignoreNextSelection=true;c=b.getSelectionModel();if(a){c.select(a)}else{c.deselectAll()}b.ignoreNextSelection=false}},updateBindSelection:function(a,c){var d=this,b=null;if(!d.ignoreNextSelection){d.ignoreNextSelection=true;if(c.length){b=a.getLastSelected();d.hasHadSelection=true}if(d.hasHadSelection){d.setSelection(b)}d.ignoreNextSelection=false}},updateFocused:function(a){this.getNavigationModel().setPosition(a)},updateHeaderBorders:function(a){this[a?"removeCls":"addCls"](this.noHeaderBordersCls)},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var a=this.getScrollerOwner().query("tableview");return a[a.length-1]},syncHorizontalScroll:function(e,c){var d=this,a=d.view.getScrollX(),b;c=c===true;if(d.rendered&&(c||a!==d.scrollXPos)){if(c){b=d.getScrollTarget();b.setScrollX(a)}d.headerCt.setScrollX(a);d.scrollXPos=a}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,c){var d=this,a=d.getView(),e=d.getStore();if(b){d.store=b;if(a.store!==b){a.bindStore(b,false)}d.mon(b,{load:d.onStoreLoad,scope:d});d.storeRelayers=d.relayEvents(b,["filterchange","groupchange"]);if(!d.reconfiguring&&d.hasListeners.storechange&&b!==e){d.fireEvent("storechange",d,b,e)}}else{d.unbindStore()}},unbindStore:function(){var c=this,b=c.store,a;if(b){b.trackStateChanges=false;c.store=null;c.mun(b,{load:c.onStoreLoad,scope:c});Ext.destroy(c.storeRelayers);a=c.view;if(a.store){a.bindStore(null)}if(!c.reconfiguring&&c.hasListeners.storechange){c.fireEvent("storechange",c,null,b)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(a){var b=this;b.reconfigure(a,undefined,true);if(b.isVisible(true)){if(a&&b.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}}else{if(!b.globalShowListener){b.globalShowListener=Ext.GlobalEvents.on({show:b.onGlobalShow,scope:b,destroyable:true})}}},onGlobalShow:function(b){var c=this,a=c.store;if(b===c||(b.isAncestor(c)&&c.isVisible(true))){if(a&&c.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}Ext.destroy(c.globalShowListener)}},reconfigure:function(o,d,i){var l=this,a=l.store,c=l.headerCt,n=l.lockable,g=c?c.items.getRange():l.columns,m=l.getView(),e,k,b,h,j;if(arguments.length===1&&Ext.isArray(o)){d=o;o=null}if(d){d=Ext.Array.slice(d)}l.reconfiguring=true;if(o){o=Ext.StoreManager.lookup(o);b=o&&o!==a}else{if(i){o=Ext.StoreManager.lookup("ext-empty-store");b=o!==a}}l.fireEvent("beforereconfigure",l,o,d,a,g);Ext.suspendLayouts();if(n){l.reconfigureLockable(o,d,i)}else{e=m.blockRefresh;m.blockRefresh=true;j=m.saveFocusState();if(b){l.unbindStore();l.bindStore(o)}if(d){delete l.scrollXPos;c.removeAll();c.add(d);h=true}c.onOwnerGridReconfigure(b,h);k=m.refreshCounter}Ext.resumeLayouts(true);l.reconfiguring=false;if(n){l.afterReconfigureLockable()}else{m.blockRefresh=e;if(m.refreshCounter===k){m.refreshView();j()}}l.fireEvent("reconfigure",l,o,d,a,g);delete l.reconfiguring;if(b){l.fireEvent("storechange",l,o,a)}},doDestroy:function(){var b=this,a=b.scrollTask;if(b.lockable){b.destroyLockable()}if(a){a.cancel()}Ext.destroy(b.plugins,b.focusEnterLeaveListeners,b.freeRowContexts,Ext.Object.getValues(b.liveRowContexts));Ext.panel.Panel.prototype.doDestroy.call(this);b.unbindStore()},privates:{initFocusableElement:function(){},doEnsureVisible:function(e,o){if(this.lockable){return this.ensureLockedVisible(e,o)}if(typeof e!=="number"&&!e.isEntity){e=this.store.getById(e)}var g=this,i=g.getView(),d=i.getNode(e),l,m,a,b,j,n,h,c,k;if(o){l=o.callback;m=o.scope;a=o.animate;b=o.highlight;j=o.select;n=o.focus;c=o.column}if(g.deferredEnsureVisible){g.deferredEnsureVisible.destroy()}if(!i.componentLayoutCounter){g.deferredEnsureVisible=i.on({resize:g.doEnsureVisible,args:Ext.Array.slice(arguments),scope:g,single:true,destroyable:true});return}if(typeof c==="number"){c=g.ownerGrid.getVisibleColumnManager().getColumns()[c]}if(d){h=i.getScrollable();if(c){k=Ext.fly(d).selectNode(c.getCellSelector())}if(h){h.scrollIntoView(k||d,!!c,a,b)}if(!e.isEntity){e=i.getRecord(d)}if(j){i.getSelectionModel().select(e)}if(n){i.getNavigationModel().setPosition(e,0)}Ext.callback(l,m||g,[true,e,d])}else{if(i.bufferedRenderer){i.bufferedRenderer.scrollTo(e,{animate:a,highlight:b,select:j,focus:n,column:c,callback:function(r,p,q){Ext.callback(l,m||g,[true,p,q])}})}else{Ext.callback(l,m||g,[false,null])}}},getFocusEl:function(){return this.getView().getFocusEl()},setActionableMode:function(b,a){var c=this.ownerGrid;if(!c.destroying&&c.view.setActionableMode(b,a)!==false){c.fireEvent("actionablemodechange",b);c[b?"addCls":"removeCls"](c.actionableModeCls);return true}},getOverflowStyle:function(){this.scrollFlags=this._scrollFlags["false"]["false"];return{overflowX:"hidden",overflowY:"hidden"}},getOverflowEl:function(){return null}}},1,["tablepanel"],["component","box","container","panel","tablepanel"],{component:true,box:true,container:true,panel:true,tablepanel:true},["widget.tablepanel"],0,[Ext.panel,"Table"],0));(Ext.cmd.derive("Ext.grid.ColumnLayout",Ext.layout.container.HBox,{type:"gridcolumn",firstHeaderCls:"x-column-header-first",lastHeaderCls:"x-column-header-last",initLayout:function(){Ext.layout.container.HBox.prototype.initLayout.call(this);if(this.scrollbarWidth===undefined){this.self.prototype.scrollbarWidth=Ext.getScrollbarSize().width}},beginLayout:function(c){var j=this,a=j.owner,d=j.firstHeaderCls,l=j.lastHeaderCls,b=[d,l],h=j.getVisibleItems(),g=h.length,e,k;Ext.layout.container.HBox.prototype.beginLayout.call(this,c);for(e=0;e0){a=this.getColumns()[b-1]}return a},getNextSibling:function(c){var b=this.getHeaderIndex(c),a;if(b!==-1){a=this.getColumns()[b+1]}return a||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var b=this.getColumns(),a=b.length;return a>0?b[a-1]:null},getHeaderByDataIndex:function(d){var c=this.getColumns(),a=c.length,b,e;if(Ext.isEmpty(d)){return null}for(b=0;b=k.left&&l=o.getMaxPosition().y-j.all.last(true).offsetHeight)){c.rowIdx--}i=Math.min(c.rowIdx,p.getCount()-1);g=p.getAt(i)}}else{if(s){g=i=null}else{if(q==null){q=r.lastFocused?r.lastFocused.column:0}if(typeof c==="number"){i=Math.max(Math.min(c,p.getCount()-1),0);g=p.getAt(c)}else{if(c.isEntity){g=c;i=p.indexOf(g)}else{if(c.tagName){g=j.getRecord(c);i=p.indexOf(g);if(i===-1){g=null}}else{if(m){return}s=true;g=i=null}}}}if(g){if(i===-1){r.recordIndex=-1;g=p.getAt(0);i=0;q=null}if(q==null){if(!(h=r.column)){b=0;h=a[0]}}else{if(typeof q==="number"){h=a[q];b=q}else{h=q;b=e.indexOf(q)}}}else{s=true;h=b=null}}if(h&&e.indexOf(h)===-1){if(b===-1){b=0}else{b=Math.min(b,a.length-1)}h=a[b]}if(j.actionableMode&&!s){return j.ownerGrid.setActionableMode(false,new Ext.grid.CellContext(j).setPosition(g,h))}if(i===r.recordIndex&&b===r.columnIndex&&j===r.position.view){return r.focusPosition(r.position)}if(r.cell){r.cell.removeCls(r.focusCls)}r.previousRecordIndex=r.recordIndex;r.previousRecord=r.record;r.previousItem=r.item;r.previousCell=r.cell;r.previousColumn=r.column;r.previousColumnIndex=r.columnIndex;r.previousPosition=r.position.clone();r.selectionStart=k.selectionStart;r.position.setAll(j,r.recordIndex=i,r.columnIndex=b,r.record=g,r.column=h);if(s){r.item=r.cell=null}else{r.focusPosition(r.position,l)}if(!d){k.fireEvent("focuschange",k,r.previousRecord,r.record);j.fireEvent("rowfocus",r.record,r.item,r.recordIndex);j.fireEvent("cellfocus",r.record,r.cell,r.position)}if(n&&!l&&r.cell!==r.previousCell){r.fireNavigateEvent(n)}},focusPosition:function(b){var d=this,c,e,a;d.item=d.cell=null;if(b&&b.record&&b.column){c=b.view;if(b.rowElement){e=d.item=b.rowElement}else{e=c.getRowByRecord(b.record)}if(e){d.cell=b.cellElement||Ext.fly(e).down(b.column.getCellSelector(),true);if(d.cell){d.cell=new Ext.dom.Fly(d.cell);c.lastFocused=d.lastFocused=d.position.clone();a=c.getScrollable();if(a){a.scrollIntoView(d.cell)}d.focusItem(d.cell);c.focusEl=d.cell}else{d.position.setAll();d.record=d.column=d.recordIndex=d.columnIndex=null}}else{e=c.dataSource.indexOf(b.record);d.position.setAll();d.record=d.column=d.recordIndex=d.columnIndex=null;if(e!==-1&&c.bufferedRenderer){d.lastKeyEvent=null;c.bufferedRenderer.scrollTo(e,false,d.afterBufferedScrollTo,d)}}}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getCell:function(){return this.cell},getPosition:function(c){var e=this,a=e.position,d,b,g;if(a.record&&a.column){if(c){return a}b=a.view;g=b.dataSource;d=g.indexOf(a.record);if(d===-1){d=a.rowIdx;if(!(a.record=g.getAt(d))){d=-1}}if(d===-1||b.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();e.record=e.column=e.recordIndex=e.columnIndex=null}else{return a}}return null},getLastFocused:function(){var c=this,a,b=c.lastFocused;if(b&&b.record&&b.column){a=b.view;if(a.dataSource.indexOf(b.record)!==-1&&a.getVisibleColumnManager().indexOf(b.column)!==-1){return b}}},onKeyTab:function(g){var e=!g.shiftKey,c=g.position.view,d,b,a;d=c.findFocusPosition(g.target,g.position,e,g);b=d.target;a=d.position;if(b){this.actionPosition=a.view.actionPosition=a;Ext.fly(b).focus()}else{c.onRowExit(g,g.item,g.item[e?"nextSibling":"previousSibling"],e)}g.preventDefault()},onKeyUp:function(b){var a=b.view.walkRecs(b.record,-1),c=this.getPosition();if(a){c.setRow(a);if(!c.getCell(true)){c.navigate(-1)}this.setPosition(c,null,b)}},onKeyDown:function(b){var a=b.record.isExpandingOrCollapsing?null:b.view.walkRecs(b.record,1),c=this.getPosition();if(a){c.setRow(a);if(!c.getCell(true)){c.navigate(-1)}this.setPosition(c,null,b)}},onKeyRight:function(b){var a=this.move("right",b);if(a){this.setPosition(a,null,b)}},onKeyLeft:function(b){var a=this.move("left",b);if(a){this.setPosition(a,null,b)}},onKeyEnter:function(b){var a=["cellclick",b.view,b.position.cellElement,b.position.colIdx,b.record,b.position.rowElement,b.recordIndex,b],c=b.position.getCell();if(c){if(!c.query('[tabIndex="-1"]').length){b.stopEvent();b.view.fireEvent.apply(b.view,a);a[0]="celldblclick";b.view.fireEvent.apply(b.view,a)}if(!this.view.actionableMode){this.view.ownerGrid.setActionableMode(true,this.getPosition())}}},onKeyF2:function(b){var a=this.view.ownerGrid,c=a.actionableMode;a.setActionableMode(!c,c?null:this.getPosition())},onKeyEsc:function(b){var a=this.view.ownerGrid;if(a.actionableMode){a.setActionableMode(false)}else{return true}},move:function(c,e){var d=this,b=d.getPosition(),a=b;if(b&&b.record){while(a){a=b.view.walkCells(a,c,e.shiftKey&&(c==="right"||c==="left")?d.vetoRowChange:null,d);if(a&&a.column.cellFocusable!==false){return a}}}},vetoRowChange:function(a){return this.getPosition().record===a.record},onKeyPageDown:function(e){var d=this,a=e.view,g=d.getRowsVisible(),c,b;if(g){if(a.bufferedRenderer){c=Math.min(e.recordIndex+g,a.dataSource.getCount()-1);d.lastKeyEvent=e;a.bufferedRenderer.scrollTo(c,false,d.afterBufferedScrollTo,d)}else{b=a.walkRecs(e.record,g);d.setPosition(b,null,e)}}},onKeyPageUp:function(e){var d=this,a=e.view,g=d.getRowsVisible(),c,b;if(g){if(a.bufferedRenderer){c=Math.max(e.recordIndex-g,0);d.lastKeyEvent=e;a.bufferedRenderer.scrollTo(c,false,d.afterBufferedScrollTo,d)}else{b=a.walkRecs(e.record,-g);d.setPosition(b,null,e)}}},onKeyHome:function(c){var b=this,a=c.view;if(c.altKey){if(a.bufferedRenderer){b.lastKeyEvent=c;a.bufferedRenderer.scrollTo(0,false,b.afterBufferedScrollTo,b)}else{b.setPosition(a.walkRecs(c.record,-a.dataSource.indexOf(c.record)),null,c)}}else{b.setPosition(c.record,0,c)}},afterBufferedScrollTo:function(b,a){this.setPosition(a,null,this.lastKeyEvent,null,!this.lastKeyEvent)},onKeyEnd:function(c){var b=this,a=c.view;if(c.altKey){if(a.bufferedRenderer){b.lastKeyEvent=c;a.bufferedRenderer.scrollTo(a.store.getCount()-1,false,b.afterBufferedScrollTo,b)}else{b.setPosition(a.walkRecs(c.record,a.dataSource.getCount()-1-a.dataSource.indexOf(c.record)),null,c)}}else{b.setPosition(c.record,c.view.getVisibleColumnManager().getColumns().length-1,c)}},getRowsVisible:function(){var e=false,a=this.view,d=a.all.first(),b,c;if(d){b=d.getHeight();c=a.el.getHeight();e=Math.floor(c/b)}return e},fireNavigateEvent:function(b){var a=this;a.fireEvent("navigate",{view:a.position.view,navigationModel:a,keyEvent:b||new Ext.event.Event({}),previousPosition:a.previousPosition,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,previousCell:a.previousCell,previousColumnIndex:a.previousColumnIndex,previousColumn:a.previousColumn,position:a.position,recordIndex:a.recordIndex,record:a.record,selectionStart:a.selectionStart,item:a.item,cell:a.cell,columnIndex:a.columnIndex,column:a.column})}},0,0,0,0,["view.navigation.grid"],0,[Ext.grid,"NavigationModel"],0));(Ext.cmd.derive("Ext.view.TableLayout",Ext.layout.component.Auto,{type:"tableview",beginLayout:function(h){var e=this,a=e.owner,g=a.ownerGrid,d=a.lockingPartner,c=h.lockingPartnerContext,i=d&&d.grid.isVisible()&&!d.grid.collapsed,b=h.context;h.doSyncRowHeights=i&&(g.syncRowHeight||g.syncRowHeightOnNextLayout);if(!e.columnFlusherId){e.columnFlusherId=e.id+"-columns";e.rowHeightFlusherId=e.id+"-rows"}Ext.layout.component.Auto.prototype.beginLayout.call(this,h);if(i){if(!c&&d.componentLayout.isRunning()){(c=h.lockingPartnerContext=b.getCmp(d)).lockingPartnerContext=h;if(!c.lockingPartnerContext){c.lockingPartnerContext=h}}if(h.doSyncRowHeights){if(c&&!c.rowHeightSynchronizer){c.rowHeightSynchronizer=c.target.syncRowHeightBegin()}h.rowHeightSynchronizer=e.owner.syncRowHeightBegin()}}(h.headerContext=b.getCmp(e.headerCt)).viewContext=h},beginLayoutCycle:function(b,a){Ext.layout.component.Auto.prototype.beginLayoutCycle.call(this,b,a);if(b.syncRowHeights){b.target.syncRowHeightClear(b.rowHeightSynchronizer);b.syncRowHeights=false}},calculate:function(e){var n=this,b=e.context,h=e.lockingPartnerContext,d=e.headerContext,k=e.ownerCtContext,c=n.owner,j=d.getProp("columnsChanged"),a=e.state,o,g,q,p,l=c.body.dom,r,m,i;if(!c.all.getCount()&&(!l||!c.body.child("table"))){e.setProp("viewOverflowY",false);Ext.layout.component.Auto.prototype.calculate.call(this,e);return}if(n.calcCount===1&&n.owner.bufferedRenderer){n.owner.bufferedRenderer.beforeTableLayout(e)}if(j===undefined){n.done=false;return}if(j){if(!(o=a.columnFlusher)){b.queueFlush(a.columnFlusher=o={ownerContext:e,columnsChanged:j,layout:n,id:n.columnFlusherId,flush:n.flushColumnWidths},true)}if(!o.flushed){n.done=false;return}}if(e.doSyncRowHeights){if(!(p=a.rowHeightFlusher)){if(!(q=a.rowHeights)){a.rowHeights=q=e.rowHeightSynchronizer;n.owner.syncRowHeightMeasure(q);e.setProp("rowHeights",q)}if(!(g=h.getProp("rowHeights"))){n.done=false;return}b.queueFlush(a.rowHeightFlusher=p={ownerContext:e,synchronizer:q,otherSynchronizer:g,layout:n,id:n.rowHeightFlusherId,flush:n.flushRowHeights},true)}if(!p.flushed){n.done=false;return}}Ext.layout.component.Auto.prototype.calculate.call(this,e);if(!e.heightModel.shrinkWrap){i=false;if(!k.heightModel.shrinkWrap){m=k.target.layout.getContainerSize(k);if(!m.gotHeight){n.done=false;return}r=l.offsetHeight;i=r>m.height}e.setProp("viewOverflowY",i)}if(n.done&&Ext.getScrollbarSize().height){if(!c.lockingPartner){e.setProp("overflowX",!!e.headerContext.state.boxPlan.tooNarrow)}}},measureContentHeight:function(d){var a=this.owner,c=a.body.dom,b=a.emptyEl,e=0;if(b){e+=b.offsetHeight}if(c){e+=c.offsetHeight}if(d.headerContext.state.boxPlan.tooNarrow){e+=Ext.getScrollbarSize().height}return e},flushColumnWidths:function(){var l=this,k=l.layout,b=l.ownerContext,d=l.columnsChanged,a=b.target,j=d.length,c,g,e,h;if(b.state.columnFlusher!==l){return}for(g=0;g0){i+=k;Ext.fly(c[a].el).setHeight(d)}else{b-=k}}d=g.rowHeight+b;if(Ext.isIE9&&h.view.ownerGrid.rowLines){d--}if(h.rowHeight+i=g+a;c--){e[c]=e[c-a];e[c].setAttribute("data-recordIndex",c)}}d.endIndex=d.endIndex+a}else{d.startIndex=g;d.endIndex=g+a-1}for(c=0;cg.endIndex){delete h[c]}}while(c!==b);delete h[c]},getCount:function(){return this.count},slice:function(e,b){var d=this.elements,a=[],c;if(!b){b=this.endIndex}else{b=Math.min(this.endIndex,b-1)}for(c=e||this.startIndex;c<=b;c++){a.push(d[c])}return a},replaceElement:function(d,c,a){var e=this.elements,b=(typeof d==="number")?d:this.indexOf(d);if(b>-1){c=Ext.getDom(c);if(a){d=e[b];d.parentNode.insertBefore(c,d);Ext.removeNode(d);c.setAttribute("data-recordIndex",b)}this.elements[b]=c}return this},indexOf:function(b){var c=this.elements,a;b=Ext.getDom(b);for(a=this.startIndex;a<=this.endIndex;a++){if(c[a]===b){return a}}return -1},clip:function(d,c){var k=this,a=k.elements,j=[],b,g,e,h;if(d===1){b=k.startIndex;k.startIndex+=c}else{k.endIndex-=c;b=k.endIndex+1}for(h=b,g=b+c-1;h<=g;h++){e=a[h];j.push(e);Ext.removeNode(e);delete a[h]}k.count-=c;k.view.fireItemMutationEvent("itemremove",k.view.dataSource.getRange(b,g),b,j,k.view)},removeRange:function(c,g,d){var k=this,a=k.elements,j=[],e,h,b,l;if(g==null){g=k.endIndex+1}else{g=Math.min(k.endIndex+1,g+1)}if(c==null){c=k.startIndex}b=g-c;for(h=c,l=g;h<=k.endIndex;h++,l++){e=a[h];if(h=h.startIndex&&j<=h.endIndex){l[l.length]=j}}Ext.Array.sort(l);e=l.length}else{if(lh.endIndex){return}e=1;l=[l]}for(g=i=l[0],b=0;g<=h.endIndex;g++,i++){if(b=h.startIndex){d=a[g]=a[i];d.setAttribute("data-recordIndex",g)}else{delete a[g]}}h.endIndex-=e;h.count-=e},scroll:function(q,s,h){var t=this,k=t.view,r=k.lookupViewModel(),g=k.store,l=t.elements,a=q.length,o=k.getNodeContainer(),m=t.statics().range,p,b,c,d,j,e,n,u;if(!(q.length||h)){return}if(s===-1){if(h){n=[];u=[];e=(t.endIndex-h)+1;if(m){m.setStartBefore(l[e]);m.setEndAfter(l[t.endIndex]);m.deleteContents();for(p=e;p<=t.endIndex;p++){b=l[p];delete l[p];n.push(g.getByInternalId(b.getAttribute("data-recordId")));u.push(b)}}else{for(p=e;p<=t.endIndex;p++){b=l[p];delete l[p];Ext.removeNode(b);n.push(g.getByInternalId(b.getAttribute("data-recordId")));u.push(b)}}k.fireItemMutationEvent("itemremove",n,e,u,k);t.endIndex-=h}if(q.length){j=k.bufferRender(q,t.startIndex-=a);d=j.children;for(p=0;p',"{[view.renderTHead(values, out, parent)]}","{%","view.renderRows(values.rows, values.columns, values.viewStartIndex, out);","%}","{[view.renderTFoot(values, out, parent)]}","","{% ","view = columns = column = null;","%}",{definitions:"var view, tableCls, columns, i, len, column;",priority:0}],outerRowTpl:['',"{%","this.nextTpl.applyOut(values, out, parent)","%}","",{priority:9999}],rowTpl:["{%",'var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";',"%}",'','{%',"parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)","%}","","",{priority:0}],cellTpl:['{tdStyle}"','',' role="presentation"',"",' role="{cellRole}" tabindex="-1"',"",' data-columnid="{[values.column.getItemId()]}">','
    {style}" ',"{cellInnerAttr:attributes}>{value}
    ","",{priority:0}],refreshSelmodelOnRefresh:false,scrollableType:"table",tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:["x-grid-cell x-grid-td"]},constructor:function(a){if(a.grid.isTree){a.baseCls="x-tree-view"}Ext.view.View.prototype.constructor.call(this,a)},hasVariableRowHeight:function(a){var b=this;return b.variableRowHeight||b.store.isGrouped()||b.getVisibleColumnManager().hasVariableRowHeight()||(!a&&b.lockingPartner&&b.lockingPartner.hasVariableRowHeight(true))},initComponent:function(){var a=this;if(a.columnLines){a.addCls(a.grid.colLinesCls)}if(a.rowLines){a.addCls(a.grid.rowLinesCls)}a.body=new Ext.dom.Fly();a.body.id=a.id+"gridBody";if(!a.trackOver){a.overItemCls=null}a.headerCt.view=a;a.grid.view=a;a.initFeatures(a.grid);a.itemSelector=a.getItemSelector();a.all=new Ext.view.NodeCache(a);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(b,e){var d=this,c=d.ownerGrid,g=b.type,a=d.disableSelection||c.disableSelection;if(!e){if(!(b&&b.isSelectionModel)){b=c.selModel||b}}if(b){if(b.isSelectionModel){b.allowDeselect=c.allowDeselect||b.selectionMode!=="SINGLE";b.locked=a}else{if(typeof b==="string"){b={type:b}}else{b.type=c.selType||b.selType||b.type||g}if(!b.mode){if(c.simpleSelect){b.mode="SIMPLE"}else{if(c.multiSelect){b.mode="MULTI"}}}b=Ext.Factory.selection(Ext.apply({allowDeselect:c.allowDeselect,locked:a},b))}}return b},updateSelectionModel:function(a,c){var b=this;if(c){c.un({scope:b,lastselectedchanged:b.updateBindSelection,selectionchange:b.updateBindSelection});Ext.destroy(b.selModelRelayer)}b.selModelRelayer=b.relayEvents(a,["selectionchange","beforeselect","beforedeselect","select","deselect","focuschange"]);a.on({scope:b,lastselectedchanged:b.updateBindSelection,selectionchange:b.updateBindSelection});b.selModel=a},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(a,u,k){var t=this,r=k>1,m=r&&document.createRange?document.createRange():null,b=r&&!m?document.createDocumentFragment():null,l=u,n=t.getGridColumns().length,s=n-1,e=(t.firstCls||t.lastCls)&&(u===0||u===n||a===0||a===s),p,o,h,q,c,d,g;if(t.rendered&&u!==a){h=t.el.query(t.rowSelector);for(p=0,q=h.length;p=(b-1)*a&&d.endIndex<=(b*a-1)){c.get(b);return false}},onViewScroll:function(b,a,c){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,b,a,c)}},createRowElement:function(b,c,d){var e=this,g=e.renderBuffer,a=e.collectData([b],c);a.columns=d;e.tpl.overwrite(g,a);e.cleanupData();return Ext.fly(g).down(e.getNodeContainerSelector(),true).firstChild},bufferRender:function(c,d){var e=this,g=e.renderBuffer,a,b=document.createRange?document.createRange():null;e.tpl.overwrite(g,e.collectData(c,d));e.cleanupData();Ext.fly(g).saveTabbableState({skipSelf:true,includeHidden:true});g=Ext.fly(g).down(e.getNodeContainerSelector(),true);if(b){b.selectNodeContents(g);a=b.extractContents()}else{a=document.createDocumentFragment();while(g.firstChild){a.appendChild(g.firstChild)}}return{fragment:a,children:Ext.Array.toArray(a.childNodes)}},collectData:function(a,d){var c=this,b=c.tableValues;c.rowValues.view=c;b.view=c;b.rows=a;b.columns=null;b.viewStartIndex=d;b.tableStyle="width:"+c.headerCt.getTableWidth()+"px";return b},cleanupData:function(){var a=this.tableValues;a.view=a.columns=a.rows=this.rowValues.view=null},refreshSize:function(e){var c=this,a=c.getBodySelector(),b=c.lockingPartner,d=c.saveFocusState();if(a){c.body.attach(c.el.down(a,true))}if(!c.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(e||(c.hasVariableRowHeight()&&c.dataSource.getCount())){c.grid.updateLayout()}Ext.resumeLayouts(!b||!b.grid.isVisible()||(b.all.getCount()===c.all.getCount()));d()}},isLayoutRoot:function(){return false},clearViewEl:function(c){var a=this,b;if(a.rendered){Ext.view.View.prototype.clearViewEl.call(this);if(!c){b=Ext.get(a.getNodeContainer());if(b&&b.dom!==a.getTargetEl().dom){b.destroy()}}}},getRefItems:function(j){var g=this,e=g.ownerGrid.liveRowContexts,c,b,h,d,a,k=Ext.view.View.prototype.getRefItems.apply(this,arguments);for(a in e){h=e[a].getWidgets();c=h.length;for(b=0;b');for(d=0;d')}c.push("")},renderRow:function(h,a,g){var j=this,e=a===-1,i=j.selectionModel,m=j.rowValues,d=m.itemClasses,c=m.rowClasses,b=j.itemCls,l,k=j.rowTpl;m.rowAttr={};m.record=h;m.recordId=h.internalId;m.recordIndex=j.store.indexOf(h);m.rowIndex=a;m.rowId=j.getRowId(h);m.itemCls=m.rowCls="";if(!m.columns){m.columns=j.ownerCt.getVisibleColumnManager().getColumns()}d.length=c.length=0;if(!e){d[0]=b;if(!j.ownerCt.disableSelection&&i.isRowSelected){if(i.isRowSelected(h)){d.push(j.selectedItemCls)}}if(j.stripeRows&&a%2!==0){d.push(j.altRowCls)}if(j.getRowClass){l=j.getRowClass(h,a,null,j.dataSource);if(l){c.push(l)}}}if(g){k.applyOut(m,g,j.tableValues)}else{return k.apply(m,j.tableValues)}},renderCell:function(e,i,h,o,k,g){var m=this,c,j=m.selectionModel,l=m.cellValues,d=l.classes,a=i.data[e.dataIndex],p=m.cellTpl,b=e.enableTextSelection,q,n,r=m.navigationModel.getPosition();if(b==null){b=m.enableTextSelection}l.record=i;l.column=e;l.recordIndex=h;l.rowIndex=o;l.columnIndex=l.cellIndex=k;l.align=e.textAlign;l.innerCls=e.innerCls;l.tdCls=l.tdStyle=l.tdAttr=l.style="";l.unselectableAttr=b?"":'unselectable="on"';d[1]=e.getCellId();n=2;if(e.renderer&&e.renderer.call){c=m.ownerCt.columnManager.getHeaderIndex(e);q=e.renderer.call(e.usingDefaultRenderer?e:e.scope||m.ownerCt,a,l,i,h,c,m.dataSource,m);if(l.css){i.cssWarning=true;l.tdCls+=" "+l.css;l.css=null}if(l.tdCls){d[n++]=l.tdCls}}else{q=a}l.value=(q==null||q.length===0)?e.emptyCellText:q;if(e.tdCls){d[n++]=e.tdCls}if(m.markDirty&&i.dirty&&i.isModified(e.dataIndex)){d[n++]=m.dirtyCls;if(e.dirtyTextElementId){l.tdAttr=(l.tdAttr?l.tdAttr+" ":"")+'aria-describedby="'+e.dirtyTextElementId+'"'}}if(e.isFirstVisible){d[n++]=m.firstCls}if(e.isLastVisible){d[n++]=m.lastCls}if(!b){d[n++]=m.unselectableCls}if(j&&(j.isCellModel||j.isSpreadsheetModel)&&j.isCellSelected(m,h,e)){d[n++]=m.selectedCellCls}if(r&&r.record.id===i.id&&r.column===e){d[n++]=m.focusedItemCls}d.length=n;l.tdCls=d.join(" ");p.applyOut(l,g);l.column=l.record=null},getRow:function(a){var b;if((!a&&a!==0)||!this.rendered){return null}if(a.target){a=a.target}if(Ext.isString(a)){return Ext.fly(a).down(this.rowSelector,true)}if(Ext.isNumber(a)){b=this.all.item(a);return b&&b.down(this.rowSelector,true)}if(a.isModel){return this.getRowByRecord(a)}b=Ext.fly(a);if(b.is(this.itemSelector)){return this.getRowFromItem(b)}return b.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(a){return this.id+"-record-"+a.internalId},constructRowId:function(a){return this.id+"-record-"+a},getNodeById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,false)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,true)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),false)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),true)},getRowFromItem:function(c){var d=Ext.getDom(c).tBodies[0].childNodes,a=d.length,b;for(b=0;b1)){k=F._extData;d=j.createRowElement(B,j.indexOfRow(B),v);if(Ext.fly(F,"_internal").hasCls(H)){Ext.fly(d).addCls(H)}if(Ext.isIE9m&&F.mergeAttributes){F.mergeAttributes(d,true)}else{g=d.attributes;a=g.length;for(K=0;K0){if(Ext.supports.ScrollWidthInlinePaddingBug){h+=g.getCellPaddingAfter(l[0])}if(g.columnLines){h+=Ext.fly(l[0].parentNode).getBorderWidth("lr")}}a.setWidth(1);d.textEl.setStyle({"text-overflow":"clip",display:"table-cell"});k=d.textEl.dom.offsetWidth+d.titleEl.getPadding("lr");d.textEl.setStyle({"text-overflow":"",display:""});for(;ca){return false}if(e){k.view=e}k.setPosition(b,0)}else{k.navigate(+1)}break;case"left":if(h.isFirstColumn()){b=e&&g.isNormalView?b:b-1;if(b<0){return false}if(e){k.view=e;d=e.getVisibleColumnManager().getColumns()}k.setPosition(b,d[d.length-1])}else{k.navigate(-1)}break;case"up":if(b===0){return false}else{k.setRow(b-1)}break;case"down":if(b===a){return false}else{k.setRow(b+1)}break}if(c&&c.call(j||g,k)!==true){return false}return k},walkRows:function(i,a){var d=this,h=d.dataSource,e=0,k=i,b,c=(a<0)?0:h.getCount()-1,g=c?1:-1,j=i;do{if(c?j>=c:j<=c){return k||c}j+=g;if((b=Ext.fly(d.getRow(j)))&&b.isVisible(true)){e+=g;k=j}}while(e!==a);return j},walkRecs:function(b,a){var h=this,k=h.dataSource,i=0,l=b,c,e=(a<0)?0:(k.isBufferedStore?k.getTotalCount():k.getCount())-1,j=e?1:-1,g=k.indexOf(b),d;do{if(e?g>=e:g<=e){return l}g+=j;d=k.getAt(g);if(!d.isCollapsedPlaceholder&&(c=Ext.fly(h.getNodeByRecord(d)))&&c.isVisible(true)){i+=j;l=d}}while(i!==a);return l},getFirstVisibleRowIndex:function(){var c=this,b=(c.dataSource.isBufferedStore?c.dataSource.getTotalCount():c.dataSource.getCount()),a=c.indexOf(c.all.first())-1;do{a+=1;if(a===b){return}}while(!Ext.fly(c.getRow(a)).isVisible(true));return a},getLastVisibleRowIndex:function(){var b=this,a=b.indexOf(b.all.last());do{a-=1;if(a===-1){return}}while(!Ext.fly(b.getRow(a)).isVisible(true));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(a,b){return new Ext.grid.CellContext(this).setPosition(a,b)},doDestroy:function(){var e=this,d=e.featuresMC,c,b,a;e.bindStore(null);if(d){for(b=0,a=d.getCount();b=e.viewSize)){e.onReplace(b,c,[],a)}else{Ext.view.View.prototype.onAdd.apply(this,arguments)}d.setPendingStripe(c);d.addingRows=false},onRemove:function(b,a,c){var d=this,g=d.bufferedRenderer,e;if(d.rendered&&g&&d.dataSource.getCount()+a.length>=g.viewSize){e=d.saveFocusState();g.onReplace(b,c,a,[]);e()}else{Ext.view.View.prototype.onRemove.apply(this,arguments)}if(d.actionPosition&&Ext.Array.indexOf(a,d.actionPosition.record)!==-1){d.actionPosition=null}d.setPendingStripe(c)},saveFocusState:function(){var g=this,h=g.dataSource,a=g.actionableMode,c=g.getNavigationModel(),d=a?g.actionPosition:c.getPosition(true),b=Ext.Element.getActiveElement(true),j=d&&d.view===g&&d.getCell(),e,i;if(j&&j.contains(b)){d=d.clone();b.suspendFocusEvents();if(a&&j!==b){g.suspendActionableMode()}else{a=false;c.setPosition()}b.resumeFocusEvents();return function(){h=g.dataSource;if(h.getCount()){e=Math.min(d.rowIdx,g.all.getCount()-1);i=Math.min(d.colIdx,g.getVisibleColumnManager().getColumns().length-1);d=new Ext.grid.CellContext(g).setPosition(h.contains(d.record)?d.record:e,i);if(a){g.resumeActionableMode(d)}else{c.setPosition(d,null,null,null,true)}}else{d.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(b){var c=this,a=c.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on("expand",c.onDataRefresh,c,{single:true});return}Ext.view.View.prototype.onDataRefresh.call(this,b)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(a){var b=this.stripeOnUpdate;if(b===null){b=a}else{b=Math.min(b,a)}this.stripeOnUpdate=b},onEndUpdate:function(){var a=this,c=a.stripeOnUpdate,b=a.all.startIndex;if(a.rendered&&(c||c===0)){if(c-1)&&!b;p=p+(l?1:-1)){c=a[p];v.setColumn(c);o=Ext.fly(d).down(v.column.getCellSelector());for(n=0;n0){d.el.dom.style.height="";c=d.getStretchers();e=b-d.el.dom.offsetHeight;if(e>0){c[0].style.marginTop=a.constrainScrollRange(e)+"px";e=b-d.el.dom.offsetHeight;if(e>0){c[1].style.marginTop=Math.min(e,a.maxSpacerMargin||0)+"px"}}}}},getStretchers:function(){var c=this,a=c.stretchers,b;if(a){c.el.appendChild(a)}else{b={cls:"x-scroller-spacer",style:"position:relative"};a=c.stretchers=c.el.appendChild([b,b],true)}return a}}},1,["tableview","gridview"],["component","box","dataview","tableview","gridview"],{component:true,box:true,dataview:true,tableview:true,gridview:true},["widget.gridview","widget.tableview"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,"Table",Ext.grid,"View"],0));(Ext.cmd.derive("Ext.grid.Panel",Ext.panel.Table,{alternateClassName:["Ext.list.ListView","Ext.ListView","Ext.grid.GridPanel"],viewType:"tableview",ariaRole:"grid",lockable:false,rowLines:true},0,["grid","gridpanel"],["component","box","container","panel","tablepanel","gridpanel","grid"],{component:true,box:true,container:true,panel:true,tablepanel:true,gridpanel:true,grid:true},["widget.grid","widget.gridpanel"],0,[Ext.grid,"Panel",Ext.list,"ListView",Ext,"ListView",Ext.grid,"GridPanel"],0));(Ext.cmd.derive("Ext.grid.RowContext",Ext.Base,{constructor:function(a){Ext.apply(this,a);this.widgets={}},setRecord:function(a,b){var c=this.viewModel;this.record=a;this.recordIndex=b;if(c){c.set("record",a);c.set("recordIndex",b)}},free:function(){var e=this,c=e.widgets,d,g,a,b=e.viewModel;e.record=null;if(b){b.set("record");b.set("recordIndex")}for(d in c){g=c[d];a=g.getFocusEl();if(a){if(a.isTabbable(true)){a.saveTabbableState({includeHidden:true})}a.blur()}g.detachFromBody();g.hidden=true}},getWidget:function(b,e){var d=this,c=d.widgets||(d.widgets={}),a;if(e.bind&&!d.viewModel){d.viewModel=Ext.Factory.viewModel({parent:d.ownerGrid.lookupViewModel(),data:{record:d.record,recordIndex:d.recordIndex}},d.ownerGrid.rowViewModel)}if(!(a=c[b])){a=c[b]=Ext.widget(Ext.apply({viewModel:d.viewModel,_rowContext:d},e));if(a.isWidget){a.initBindable()}}else{a.hidden=false}return a},getWidgets:function(){var b=this.widgets,c,a=[];for(c in b){a.push(b[c])}return a},destroy:function(){var c=this,a=c.widgets,b,d;for(b in a){d=a[b];d._rowContext=null;d.destroy()}Ext.destroy(c.viewModel);c.callParent()}},1,0,0,0,0,0,[Ext.grid,"RowContext"],0));(Ext.cmd.derive("Ext.grid.RowEditorButtons",Ext.container.Container,{frame:true,shrinkWrap:true,position:"bottom",ariaRole:"toolbar",constructor:function(b){var d=this,a=b.rowEditor,e="x-",c=a.editingPlugin;b=Ext.apply({baseCls:e+"grid-row-editor-buttons",defaults:{xtype:"button",ui:a.buttonUI,scope:c,flex:1,minWidth:Ext.panel.Panel.prototype.minButtonWidth},items:[{cls:e+"row-editor-update-button",itemId:"update",handler:c.completeEdit,text:a.saveBtnText,disabled:a.updateButtonDisabled,listeners:{element:"el",keydown:d.onUpdateKeyDown,scope:d}},{cls:e+"row-editor-cancel-button",itemId:"cancel",handler:c.cancelEdit,text:a.cancelBtnText,listeners:{element:"el",keydown:d.onCancelKeyDown,scope:d}}]},b);Ext.container.Container.prototype.constructor.call(this,b);d.addClsWithUI(d.position)},onUpdateKeyDown:function(a){if(a.shiftKey&&a.getKey()===a.TAB){a.stopEvent();this.rowEditor.child(":focusable:not([isButton]):last").focus(false,true)}},onCancelKeyDown:function(a){if(!a.shiftKey&&a.getKey()===a.TAB){a.stopEvent();this.rowEditor.child(":focusable").focus(false,true)}},setButtonPosition:function(b){var e=this,a=this.rowEditor,h=a.getHeight(),d=a.body,c="",g="";e.removeClsWithUI(e.position);e.position=b;e.addClsWithUI(b);if(b==="top"){c=(h-d.getBorderWidth("t"))+"px"}else{g=(h-d.getBorderWidth("b"))+"px"}e.el.setStyle({top:g,bottom:c})},privates:{getFramingInfoCls:function(){return this.baseCls+"-"+this.ui+"-"+this.position},getFrameInfo:function(){var a=Ext.container.Container.prototype.getFrameInfo.call(this);a.top=true;return a}}},1,["roweditorbuttons"],["component","box","container","roweditorbuttons"],{component:true,box:true,container:true,roweditorbuttons:true},["widget.roweditorbuttons"],0,[Ext.grid,"RowEditorButtons"],0));(Ext.cmd.derive("Ext.grid.RowEditor",Ext.form.Panel,{saveBtnText:"Update",cancelBtnText:"Cancel",errorsText:"Errors",dirtyText:"You need to commit or cancel your changes",lastScrollLeft:0,lastScrollTop:0,border:false,tabGuard:true,_wrapCls:"x-grid-row-editor-wrap",errorCls:"x-grid-row-editor-errors-item",buttonUI:"default",hideMode:"offsets",_cachedNode:false,initComponent:function(){var d=this,b=d.editingPlugin.grid,a=Ext.container.Container,c,e,g;d.cls="x-grid-editor x-grid-row-editor";d.layout={type:"hbox",align:"middle"};d.lockable=b.lockable;if(d.lockable){d.items=[g=d.lockedColumnContainer=new a({id:b.id+"-locked-editor-cells",scrollable:{x:false,y:false},layout:{type:"hbox",align:"middle"},margin:"0 1 0 0"}),e=d.normalColumnContainer=new a({scrollable:{x:false,y:false},flex:1,id:b.id+"-normal-editor-cells",layout:{type:"hbox",align:"middle"}})];g.getScrollable().addPartner(b.lockedGrid.view.getScrollable(),"x");e.getScrollable().addPartner(b.normalGrid.view.getScrollable(),"x");b.lockedGrid.on({collapse:d.onGridResize,expand:d.onGridResize,beginfloat:d.onBeginFloat,scope:d})}else{d.setScrollable({x:false,y:false});d.getScrollable().addPartner(b.view.getScrollable(),"x");d.lockedColumnContainer=d.normalColumnContainer=d}Ext.form.Panel.prototype.initComponent.call(this);if(d.fields){d.addFieldsForColumn(d.fields,true);d.insertColumnEditor(d.fields);delete d.fields}d.mon(Ext.GlobalEvents,{scope:d,show:d.repositionIfVisible});c=d.getForm();c.trackResetOnLoad=true;c.on("validitychange",d.onValidityChange,d);c.on("errorchange",d.onErrorChange,d)},onGridResize:function(){if(this.rendered){var c=this,e=c.getClientWidth(),a=c.editingPlugin.grid,d=a.body,b=c.getFloatingButtons();c.wrapEl.setLocalX(d.getOffsetsTo(a)[0]+d.getBorderWidth("l")-a.el.getBorderWidth("l"));c.setWidth(e);b.setLocalX((e-b.getWidth())/2);if(c.lockable){c.lockedColumnContainer.setWidth(a.normalGrid.el.getLeft(true))}}},onBeginFloat:function(a){if(a.isSliding&&this.isVisible()){return false}},syncAllFieldWidths:function(){var e=this,d=e.query("[isEditorComponent]"),a=d.length,c,b;e.preventReposition=true;for(b=0;ba;e=b?1:0;d=c.getGridColumns();for(g=0,k=d.length;g=b){d=0}}if(c){h=g.down(":focusable:not([isButton]):first");a.column.getView().getScrollable().scrollIntoView(a.ownerCt.child(":focusable").el)}else{h=g.down(":focusable:not([isButton]):last")}g.tabGuardBeforeEl.focus();g.editingPlugin.startEdit(d,h.column)}}else{h.focus()}},destroyColumnEditor:function(a){var b;if(a.hasEditor()&&(b=a.getEditor())){b.destroy()}},getFloatingButtons:function(){var b=this,a=b.floatingButtons;if(!a&&!b.destroying&&!b.destroyed){b.floatingButtons=a=new Ext.grid.RowEditorButtons({ownerCmp:b,rowEditor:b})}return a},repositionIfVisible:function(d){var b=this,a=b.view;if(d&&(d===b||!d.el.isAncestor(a.el))){return}if(b.isVisible()&&a.isVisible(true)){b.reposition()}},isLayoutChild:function(a){return false},getRefOwner:function(){return this.editingPlugin.grid},getRefItems:function(b){var d=this,a,c;if(d.lockable){a=[d.lockedColumnContainer];a.push.apply(a,d.lockedColumnContainer.getRefItems(b));a.push(d.normalColumnContainer);a.push.apply(a,d.normalColumnContainer.getRefItems(b))}else{a=Ext.form.Panel.prototype.getRefItems.apply(this,arguments)}c=d.getFloatingButtons();if(c){a.push.apply(a,c.getRefItems(b))}return a},reposition:function(i,e){var g=this,b=g.context,k=b&&b.row,j=g.wrapEl,a,c,d,h;if(k&&Ext.isElement(k)){d=g.syncButtonPosition(b);a=g.calculateLocalRowTop(k);c=g.calculateEditorTop(a);h=function(){g.syncEditorClip();g.wrapAnim=null;if(!e){if(d){g.scroller.scrollBy(0,d,true)}g.focusColumnField(b.column)}};if(i){g.wrapAnim=j.addAnimation(Ext.applyIf({to:{top:c},duration:i.duration||125,callback:h},i))}else{j.setLocalY(c);h()}}},getScrollDelta:function(){var i=this,h=i.scroller.getElement().dom,e=i.context,c=i.body,b=0,d,g,a;if(e){b=Ext.fly(e.row).getOffsetsTo(h)[1];if(b<0){b-=c.getBorderPadding().beforeY}else{if(b>0){d=h.clientHeight;g=h.scrollHeight;a=i.getHeight()+i.floatingButtons.getHeight();if(d===g&&a>d){return 0}b=Math.max(b+a-d-c.getBorderWidth("b"),0);if(b>0){b-=c.getBorderPadding().afterY}}}}return b},calculateLocalRowTop:function(b){var a=this.editingPlugin.grid;return Ext.fly(b).getOffsetsTo(a)[1]-a.el.getBorderWidth("t")+this.lastScrollTop},calculateEditorTop:function(b){var a=b-this.lastScrollTop;if(this._buttonsOnTop){a-=(this.body.dom.offsetHeight-this.context.row.offsetHeight-this.body.getBorderPadding().afterY)}else{a-=this.body.getBorderPadding().beforeY}return a},getClientWidth:function(){var d=this,c=d.editingPlugin.grid,b,a;if(d.lockable){b=(c.lockedGrid.collapsed&&c.lockedGrid.placeholder)||c.lockedGrid;a=b.getRegion().union(c.scrollBody.el.getClientRegion()).width}else{a=c.view.el.dom.clientWidth}return a},getEditor:function(a){var b=this;if(Ext.isNumber(a)){return b.query("[isEditorComponent]")[a]}else{if(a.isHeader&&!a.isGroupHeader){return a.getEditor()}}},addFieldsForColumn:function(e,b){var g=this,c,a,h,d;if(Ext.isArray(e)){for(c=0,a=e.length;cdisplayfield");b=g.length;for(c=0;c0||(b.rowIdx>0&&b.isLastRenderedRow())){if(!d._buttonsOnTop){a.setButtonPosition("top");d._buttonsOnTop=true;d.layout.setAlign("bottom");d.updateLayout()}e=0}else{if(d._buttonsOnTop!==false){a.setButtonPosition("bottom");d._buttonsOnTop=false;d.layout.setAlign("top");d.updateLayout()}else{a.setButtonPosition(a.position)}}return e},syncEditorClip:function(){var b=this,c=b.tooltip,a=b.scroller.getElement().getConstrainRegion();b.clipTo(a);b.floatingButtons.clipTo(a);if(c&&c.isVisible()){c.clipTo(a,5)}},focusColumnField:function(b){var c,a;if(b&&!b.destroyed){if(b.isVisible()){c=this.getEditor(b);if(c&&c.isFocusable(true)){a=true;c.focus()}}if(!a){this.focusColumnField(b.next())}}},cancelEdit:function(){var h=this,g=h.getForm(),a=g.getFields(),c=a.items,e=c.length,d,b=h.context.record;if(h._cachedNode){h.clearCache()}h.hide();if(b&&b.phantom&&!b.modified&&h.removeUnmodified){h.editingPlugin.grid.store.remove(b)}g.clearInvalid();for(d=0;d[isFormField]"),d=b.length,c,a,g;for(c=0;c'+h.join("")+""},createErrorListItem:function(b,a){b=a?a+": "+b:b;return'
  • '+b+"
  • "},doDestroy:function(){var a=this;if(a.wrapAnim){Ext.fx.Manager.removeAnim(a.wrapAnim);a.wrapAnim=null}a.floatingButtons=a.tooltip=Ext.destroy(a.floatingButtons,a.tooltip);Ext.form.Panel.prototype.doDestroy.call(this)}},0,["roweditor"],["component","box","container","panel","form","roweditor"],{component:true,box:true,container:true,panel:true,form:true,roweditor:true},["widget.roweditor"],0,[Ext.grid,"RowEditor"],0));(Ext.cmd.derive("Ext.view.DropZone",Ext.dd.DropZone,{indicatorCls:"x-grid-drop-indicator",indicatorHtml:['',''].join(""),constructor:function(a){var b=this;Ext.apply(b,a);if(!b.ddGroup){b.ddGroup="view-dd-zone-"+b.view.id}Ext.dd.DropZone.prototype.constructor.call(this,b.view.el)},fireViewEvent:function(){var b=this,a;b.lock();a=b.view.fireEvent.apply(b.view,arguments);b.unlock();return a},getTargetFromEvent:function(k){var j=k.getTarget(this.view.getItemSelector()),d,c,b,g,a,h;if(!j){d=k.getY();for(g=0,c=this.view.getNodes(),a=c.length;g=(b.bottom-b.top)/2){d="before"}else{d="after"}return d},containsRecordAtOffset:function(d,b,g){if(!b){return false}var a=this.view,c=a.indexOf(b),e=a.getNode(c+g),h=e?a.getRecord(e):null;return h&&Ext.Array.contains(d,h)},positionIndicator:function(b,c,d){var g=this,i=g.view,h=g.getPosition(d,b),k=i.getRecord(b),a=c.records,j;if(!Ext.Array.contains(a,k)&&(h==="before"&&!g.containsRecordAtOffset(a,k,-1)||h==="after"&&!g.containsRecordAtOffset(a,k,1))){g.valid=true;if(g.overRecord!==k||g.currentPosition!==h){j=Ext.fly(b).getY()-i.el.getY()-1;if(h==="after"){j+=Ext.fly(b).getHeight()}g.getIndicator().setWidth(Ext.fly(i.el).getWidth()).showAt(0,j);g.overRecord=k;g.currentPosition=h}}else{g.invalidateDrop()}},invalidateDrop:function(){if(this.valid){this.valid=false;this.getIndicator().hide()}},onNodeOver:function(c,a,g,d){var b=this;if(!Ext.Array.contains(d.records,b.view.getRecord(c))){b.positionIndicator(c,d,g)}return b.valid?b.dropAllowed:b.dropNotAllowed},notifyOut:function(c,a,g,d){var b=this;Ext.dd.DropZone.prototype.notifyOut.apply(this,arguments);b.overRecord=b.currentPosition=null;b.valid=false;if(b.indicator){b.indicator.hide()}},onContainerOver:function(a,h,g){var d=this,b=d.view,c=b.dataSource.getCount();if(c){d.positionIndicator(b.all.last(),g,h)}else{d.overRecord=d.currentPosition=null;d.getIndicator().setWidth(Ext.fly(b.el).getWidth()).showAt(0,0);d.valid=true}return d.dropAllowed},onContainerDrop:function(a,c,b){return this.onNodeDrop(a,null,c,b)},onNodeDrop:function(i,a,h,g){var d=this,c=false,b={wait:false,processDrop:function(){d.invalidateDrop();d.handleNodeDrop(g,d.overRecord,d.currentPosition);c=true;d.fireViewEvent("drop",i,g,d.overRecord,d.currentPosition)},cancelDrop:function(){d.invalidateDrop();c=true}},j=false;if(d.valid){j=d.fireViewEvent("beforedrop",i,g,d.overRecord,d.currentPosition,b);if(b.wait){return}if(j!==false){if(!c){b.processDrop()}}}return j},destroy:function(){this.indicator=Ext.destroy(this.indicator);Ext.dd.DropZone.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.view,"DropZone"],0));(Ext.cmd.derive("Ext.grid.ViewDropZone",Ext.view.DropZone,{indicatorHtml:'',indicatorCls:"x-grid-drop-indicator",handleNodeDrop:function(c,d,e){var j=this.view,k=j.getStore(),l=j!==c.view,h,a,b,g;if(c.copy){a=c.records;for(b=0,g=a.length;b=0&&!(j.isGroupHeader&&(!j.items||!j.items.length))&&o!==b){k=n.isGroupHeader?n.query(":not([hidden]):not([isGroupHeader])").length:1;if((o<=b)&&k>1){b-=k}a.getRootHeaderCt().grid.view.moveColumn(o,b,k)}l.fireEvent("columnmove",s,n,o,b);l.isDDMoveInGrid=false;if(a.isGroupHeader&&!s.isGroupHeader){if(s!==a){n.savedFlex=n.flex;delete n.flex;n.width=g}}else{if(!s.isGroupHeader){if(n.savedFlex){n.flex=n.savedFlex;delete n.width}}}Ext.resumeLayouts(true);if(r.headerCt.grid.floated){r.headerCt.grid.updateLayout()}}}},1,0,0,0,0,0,[Ext.grid.header,"DropZone"],0));(Ext.cmd.derive("Ext.grid.plugin.HeaderReorderer",Ext.plugin.Abstract,{init:function(a){this.headerCt=a;a.on({boxready:this.onHeaderCtRender,single:true,scope:this})},destroy:function(){var a=this;a.headerCt.un("boxready",a.onHeaderCtRender,a);Ext.destroy(a.dragZone,a.dropZone);a.headerCt=a.dragZone=a.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(b){var a=this;a.dragZone=new Ext.grid.header.DragZone(a.headerCt);a.dropZone=new Ext.grid.header.DropZone(a.headerCt);if(a.disabled){a.dragZone.disable()}b.setTouchAction({panX:false})},enable:function(){this.disabled=false;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=true;if(this.dragZone){this.dragZone.disable()}}},0,0,0,0,["plugin.gridheaderreorderer"],0,[Ext.grid.plugin,"HeaderReorderer"],0));(Ext.cmd.derive("Ext.grid.header.Container",Ext.container.Container,{border:true,baseCls:"x-grid-header-ct",dock:"top",weight:100,defaultType:"gridcolumn",defaultWidth:100,sortAscText:"Sort Ascending",sortDescText:"Sort Descending",sortClearText:"Clear Sort",columnsText:"Columns",headerOpenCls:"x-column-header-open",menuSortAscCls:"x-hmenu-sort-asc",menuSortDescCls:"x-hmenu-sort-desc",menuColsIcon:"x-cols-icon",blockEvents:false,dragging:false,sortOnClick:true,enableFocusableContainer:false,childHideCount:0,sortable:true,enableColumnHide:true,initComponent:function(){var a=this;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){a.isRootHeader=true;if(a.enableColumnResize){a.resizer=new Ext.grid.plugin.HeaderResizer();a.plugins.push(a.resizer)}if(a.enableColumnMove){a.reorderer=new Ext.grid.plugin.HeaderReorderer();a.plugins.push(a.reorderer)}}if(a.isColumn&&!a.isGroupHeader){if(!a.items||a.items.length===0){a.isContainer=a.isFocusableContainer=false;if(!a.hasOwnProperty("focusable")){a.focusable=true}a.layout={type:"container",calculate:Ext.emptyFn}}}else{a.layout=Ext.apply({type:"gridcolumn",align:"stretch"},a.initialConfig.layout);a.defaults.columnLines=a.columnLines;if(a.isRootHeader){if(!a.hiddenHeaders){a.enableFocusableContainer=true;a.ariaRole="rowgroup"}a.columnManager=new Ext.grid.ColumnManager(false,a);a.visibleColumnManager=new Ext.grid.ColumnManager(true,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else{a.visibleColumnManager=new Ext.grid.ColumnManager(true,a);a.columnManager=new Ext.grid.ColumnManager(false,a)}}a.menuTask=new Ext.util.DelayedTask(a.updateMenuDisabledState,a);Ext.container.Container.prototype.initComponent.call(this)},isNested:function(){return !!this.getRootHeaderCt().down("[isNestedParent]")},isNestedGroupHeader:function(){var b=this,a=b.getRefOwner().query(">:not([hidden])");return(a.length===1&&a[0]===b)},maybeShowNestedGroupHeader:function(){var a=this.items,b;if(a&&a.length===1&&(b=a.getAt(0))&&b.hidden){b.show()}},setNestedParent:function(a){a.isNestedParent=false;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var c=this,a,b;Ext.container.Container.prototype.initEvents.call(this);if(!c.isColumn&&!c.isGroupHeader){a=c.onHeaderCtEvent;b={click:a,dblclick:a,contextmenu:a,mousedown:c.onHeaderCtMouseDown,mouseover:c.onHeaderCtMouseOver,mouseout:c.onHeaderCtMouseOut,scope:c};if(Ext.supports.Touch){b.longpress=c.onHeaderCtLongPress}c.mon(c.el,b)}},onHeaderCtEvent:function(d,b){var c=this,i=c.getHeaderElByEvent(d),h,g,a;if(c.longPressFired){c.longPressFired=false;return}if(i&&!c.blockEvents){h=Ext.getCmp(i.id);if(h){g=h[h.clickTargetName];if((!h.isGroupHeader&&!h.isContainer)||d.within(g)){if(d.type==="click"||d.type==="tap"){a=h.onTitleElClick(d,g,c.sortOnClick);if(a){c.onHeaderTriggerClick(a,d,d.pointerType==="touch"?a.el:a.triggerEl)}else{c.onHeaderClick(h,d,b)}}else{if(d.type==="contextmenu"){c.onHeaderContextMenu(h,d,b)}else{if(d.type==="dblclick"&&h.resizable){h.onTitleElDblClick(d,g.dom)}}}}}}},blockNextEvent:function(){this.blockEvents=true;Ext.asap(this.unblockEvents,this)},unblockEvents:function(){this.blockEvents=false},onHeaderCtMouseDown:function(k,j){var b=Ext.Component.fromElement(j),h,d,a,g,c;if(b!==this){if(b.isGroupHeader){h=b.getVisibleGridColumns();g=this.getScrollable();for(d=0,a=h.length;d=a.visibleFromIdx){c++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){i=a.visibleColumnManager.getColumns().length}e.onHeaderMoved(a,i,a.visibleFromIdx,c)},maybeContinueRemove:function(){var a=this;return(a.isGroupHeader&&!a.applyingState)&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(e,b){var d=this,a=d.ownerCt;Ext.container.Container.prototype.onRemove.call(this,e,b);if(!d.destroying){if(!d.getRootHeaderCt().isDDMoveInGrid){d.onHeadersChanged(e,false)}if(d.maybeContinueRemove()){if(e.rendered){d.detachComponent(e)}d.destroyAfterRemoving=true;Ext.suspendLayouts();a.remove(d,false);Ext.resumeLayouts(true)}}},onHeadersChanged:function(e,a){var b,d=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(d){d.onColumnsChanged();b=d.ownerCt;if(b&&!a){b.onHeadersChanged(d,e)}}},onHeaderMoved:function(g,a,c,e){var d=this,b=d.ownerCt;if(d.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(d,g,a,c,e)}d.fireEvent("columnmove",d,g,c,e)}},onColumnsChanged:function(){var c=this,d=c.menu,a,b;if(c.rendered){c.fireEvent("columnschanged",c);if(d){a=d.child("#columnItemSeparator");b=d.child("#columnItem");if(a){a.destroy()}if(b){b.destroy()}}}},lookupComponent:function(b){var a=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!a.isGroupHeader&&a.width===undefined&&!a.flex){a.width=this.defaultWidth}return a},setSortState:function(){var b=this.up("[store]").store,d=this.visibleColumnManager.getColumns(),a=d.length,c,g,e;for(c=0;cgridcolumn[hideable]"),h=a.length,d;for(;bo.el.dom.clientHeight?Ext.getScrollbarSize().width:0),e=0,m=n.getVisibleGridColumns(),j=h.hidden,l,g,r,k,c;function p(){for(g=0,l=m.length;gk){h.width=k;d=true}else{h.width=c;a-=c+s;p()}q();Ext.resumeLayouts(true)},autoSizeColumn:function(b){var a=this.view;if(a){a.autoSizeColumn(b);if(this.forceFit){this.applyForceFit(b)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(a){var b=this;return new Ext.util.KeyNav(a,{scope:b,down:b.showHeaderMenu,left:b.onFocusableContainerLeftKey,right:b.onFocusableContainerRightKey,home:b.onHomeKey,end:b.onEndKey,space:b.onHeaderActivate,enter:b.onHeaderActivate})},onHomeKey:function(a){return this.focusChild(null,true,a)},onEndKey:function(a){return this.focusChild(null,false,a)},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(d){var c=this.getFocusableFromEvent(d),a,b;if(c&&c.isColumn){a=c.getView();if(c.sortable&&this.sortOnClick){b=a.getNavigationModel().getLastFocused();c.toggleSortState();if(b){a.ownerCt.ensureVisible(b.record)}}else{if(d.getKey()===d.SPACE){c.onTitleElClick(d,d.target,this.sortOnClick)}}return this.onHeaderClick(c,d,c.el)}},onOwnerGridReconfigure:function(a,b){var c=this;if(!c.rendered||c.destroying||c.destroyed){return}if(a||b){c.initFocusableContainer()}}}},0,["headercontainer"],["component","box","container","headercontainer"],{component:true,box:true,container:true,headercontainer:true},["widget.headercontainer"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.grid.header,"Container"],0));(Ext.cmd.derive("Ext.grid.column.Column",Ext.grid.header.Container,{alternateClassName:"Ext.grid.Column",config:{triggerVisible:false,sorter:null,align:"start"},baseCls:"x-column-header",hoverCls:"x-column-header-over",ariaRole:"columnheader",enableFocusableContainer:false,sortState:null,possibleSortStates:["ASC","DESC"],ariaSortStates:{ASC:"ascending",DESC:"descending"},childEls:["titleEl","triggerEl","textEl","textContainerEl","textInnerEl"],headerWrap:false,renderTpl:['","{%this.renderContainer(out,values)%}"],dataIndex:null,text:"\xa0",menuText:null,emptyCellText:"\xa0",sortable:true,resizable:true,hideable:true,menuDisabled:false,renderer:false,draggable:true,tooltipType:"qtip",initDraggable:Ext.emptyFn,tdCls:"",dirtyText:"Cell value has been edited",producesHTML:true,ignoreExport:false,exportStyle:null,isHeader:true,isColumn:true,scrollable:false,requiresMenu:false,tabIndex:-1,ascSortCls:"x-column-header-sort-ASC",descSortCls:"x-column-header-sort-DESC",componentLayout:"columncomponent",groupSubHeaderCls:"x-group-sub-header",groupHeaderCls:"x-group-header",clickTargetName:"titleEl",detachOnRemove:true,initResizable:Ext.emptyFn,rendererNames:{column:"renderer",edit:"editRenderer",summary:"summaryRenderer"},formatterNames:{column:"formatter",edit:"editFormatter",summary:"summaryFormatter"},initComponent:function(){var a=this;if(!a.rendererScope){a.rendererScope=a.scope}if(a.header!=null){a.text=a.header;a.header=null}if(a.cellWrap){a.tdCls=(a.tdCls||"")+" x-wrap-cell"}if(a.columns!=null){a.isGroupHeader=true;a.ariaRole="presentation";a.items=a.columns;a.columns=null;a.cls=(a.cls||"")+" "+a.groupHeaderCls;a.sortable=a.resizable=false;a.align="center"}else{if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls("x-column-header-align-"+a.align);a.setupRenderer();a.setupRenderer("edit");a.setupRenderer("summary");Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},beforeLayout:function(){var c=this.items,b,d,a;if(!Ext.isArray(c)){c=c.items}b=c.length;if(b){for(d=0;!a&&d1}}else{if(a&&c.defaultRenderer){c.renderer=c.defaultRenderer;c.usingDefaultRenderer=true}}}else{h=Ext.app.bind.Parser.fly(g);g=h.compileFormat();h.release();c[c.formatterNames[b]]=null;c[c.rendererNames[b]]=c.bindFormatter(g)}},getView:function(){var a=this.getRootHeaderCt();if(a){return a.view}},onFocusLeave:function(a){Ext.grid.header.Container.prototype.onFocusLeave.call(this,a);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var a=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(a.isGroupHeader){if(a.config.hidden||!a.hasVisibleChildColumns()){a.hide()}}},hasVisibleChildColumns:function(){var b=this.items.items,a=b.length,c,d;for(c=0;cgridcolumn:not([hidden]):not([menuDisabled])");c=b.length;if(Ext.Array.contains(b,a.hideCandidate)){c--}if(c){return false}a.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==false};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){return this.locked||!!this.up("[isColumn][locked]","[isRootHeader]")},hasMultipleVisibleChildren:function(a){if(!this.isXType("headercontainer")){a.result=false;return false}if(this.query(">gridcolumn:not([hidden])").length>1){return false}},hide:function(){var c=this,b=c.getRootHeaderCt(),a=c.getRefOwner();if(a.constructing){Ext.grid.header.Container.prototype.hide.call(this);return c}if(c.rendered&&!c.isVisible()){return c}if(b.forceFit){c.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(c.flex){c.savedWidth=c.getWidth();c.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(a.isGroupHeader){if(c.isNestedGroupHeader()){a.hide()}if(c.isSubHeader&&!c.isGroupHeader&&a.query(">gridcolumn:not([hidden])").length===1){a.lastHiddenHeader=c}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(c);Ext.resumeLayouts(true);if(b.grid.ownerGrid.lockable&&b.grid.isLayoutRoot()){b.grid.ownerGrid.syncLockableLayout()}return c},show:function(){var c=this,a=c.getRootHeaderCt(),b=c.getRefOwner();if(c.isVisible()){return c}if(b.isGroupHeader){b.lastHiddenHeader=null}if(c.rendered){if(a.forceFit){a.applyForceFit(c)}}Ext.suspendLayouts();if(c.isSubHeader&&b.hidden){b.show(false,true)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(c.isGroupHeader){c.maybeShowNestedGroupHeader()}b=c.getRootHeaderCt();if(b){b.onHeaderShow(c)}Ext.resumeLayouts(true);if(a.grid.ownerGrid.lockable&&a.grid.isLayoutRoot()){a.grid.ownerGrid.syncLockableLayout()}return c},shouldUpdateCell:function(b,d){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(d){var a=d.length,c,e;for(c=0;c'+this.dirtyText+"")}},calculateHeaderId:function(){var e=this,g,h,b,d,c,a;if(!e.headerId){g=e.up("tablepanel");if(!g){return}b=e.items.items;if(b){for(c=0,a=b.length;cActions",itemTabIndex:0,itemAriaRole:"button",maskOnDisable:false,ignoreExport:true,sortable:false,innerCls:"x-grid-cell-inner-action-col",actionIconCls:"x-action-col-icon",constructor:function(d){var h=this,b=Ext.apply({},d),c=b.items||h.items||[h],j,e,a,g;h.origRenderer=b.renderer||h.renderer;h.origScope=b.scope||h.scope;h.renderer=h.scope=b.renderer=b.scope=null;b.items=null;Ext.grid.column.Column.prototype.constructor.call(this,b);h.items=c;for(e=0,a=c.length;e":k?(' style="font-family:'+k.fontFamily+'">'+k.character+""):">")}return x},updater:function(a,e,c,b,g){var d={};Ext.fly(a).addCls(d.tdCls).down(this.getView().innerSelector,true).innerHTML=this.defaultRenderer(e,d,c,null,null,g,b)},enableAction:function(b,a){var c=this;if(!b){b=0}else{if(!Ext.isNumber(b)){b=Ext.Array.indexOf(c.items,b)}}c.items[b].disabled=false;c.up("tablepanel").el.select(".x-action-col-"+b).removeCls(c.disabledCls);if(!a){c.fireEvent("enable",c)}},disableAction:function(b,a){var c=this;if(!b){b=0}else{if(!Ext.isNumber(b)){b=Ext.Array.indexOf(c.items,b)}}c.items[b].disabled=true;c.up("tablepanel").el.select(".x-action-col-"+b).addCls(c.disabledCls);if(!a){c.fireEvent("disable",c)}},doDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.doDestroy.call(this)},processEvent:function(k,m,o,b,l,i,d,q){var j=this,h=i.getTarget(),n=k==="keydown"&&i.getKey(),c,p,a,g=Ext.fly(o);i.stopSelection=!n&&j.stopSelection;if(n&&(h===o||!g.contains(h))){h=g.query("."+j.actionIconCls,true);if(h.length===1){h=h[0]}else{return}}if(h&&(c=h.className.match(j.actionIdRe))){p=j.items[parseInt(c[1],10)];a=p.disabled||(p.isDisabled?Ext.callback(p.isDisabled,p.scope||j.origScope,[m,b,l,p,d],0,j):false);if(p&&!a){if(k==="mousedown"&&!j.getView().actionableMode){i.preventDefault()}else{if(k==="click"||(n===i.ENTER||n===i.SPACE)){Ext.callback(p.handler||j.handler,p.scope||j.origScope,[m,b,l,p,i,d,q],undefined,j);if(m.destroyed){return false}else{if(!i.position.getNode()){i.position.refresh()}if(!m.el.contains(Ext.Element.getActiveElement())){return false}}}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(b,a){b.call(a||this,this)},getRefItems:function(){return[]},privates:{getFocusables:function(){return[]},shouldUpdateCell:function(){return 2}}},1,["actioncolumn"],["component","box","container","headercontainer","gridcolumn","actioncolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,actioncolumn:true},["widget.actioncolumn"],0,[Ext.grid.column,"Action",Ext.grid,"ActionColumn"],0));(Ext.cmd.derive("Ext.grid.column.Boolean",Ext.grid.column.Column,{alternateClassName:"Ext.grid.BooleanColumn",trueText:"true",falseText:"false",undefinedText:" ",defaultFilterType:"boolean",producesHTML:false,defaultRenderer:function(a){if(a===undefined){return this.undefinedText}if(!a||a==="false"){return this.falseText}return this.trueText},updater:function(a,b){Ext.fly(a).down(this.getView().innerSelector,true).innerHTML=Ext.grid.column.Boolean.prototype.defaultRenderer.call(this,b)}},0,["booleancolumn"],["component","box","container","headercontainer","gridcolumn","booleancolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,booleancolumn:true},["widget.booleancolumn"],0,[Ext.grid.column,"Boolean",Ext.grid,"BooleanColumn"],0));(Ext.cmd.derive("Ext.grid.column.Check",Ext.grid.column.Column,{alternateClassName:["Ext.ux.CheckColumn","Ext.grid.column.CheckColumn"],isCheckColumn:true,config:{headerCheckbox:false},align:"center",triggerEvent:"click",invert:false,ignoreExport:true,stopSelection:true,headerCheckedCls:"x-grid-hd-checker-on",headerCheckboxCls:"x-column-header-checkbox",checkboxCls:"x-grid-checkcolumn",checkboxCheckedCls:"x-grid-checkcolumn-checked",innerCls:"x-grid-checkcolumn-cell-inner",clickTargetName:"el",defaultFilterType:"boolean",checkboxAriaRole:"button",constructor:function(a){this.updateHeaderState=Ext.Function.createAnimationFrame(a.updateHeaderState||this.updateHeaderState);this.scope=this;Ext.grid.column.Column.prototype.constructor.apply(this,arguments)},afterComponentLayout:function(){var a=this;Ext.grid.column.Column.prototype.afterComponentLayout.apply(this,arguments);if(a.useAriaElements&&a.headerCheckbox){a.updateHeaderAriaDescription(a.areAllChecked())}if(!a.storeListeners){a.updateHeaderState();a.storeListeners=a.getView().dataSource.on({datachanged:a.onDataChanged,scope:a,destroyable:true})}},onRemoved:function(){Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments);this.storeListeners=Ext.destroy(this.storeListeners)},onDataChanged:function(b,a){this.updateHeaderState()},updateHeaderCheckbox:function(b){var c=this,a="x-column-header-checkbox";if(b){c.addCls(a);c.sortable=false;if(c.useAriaElements){c.updateHeaderAriaDescription(c.areAllChecked())}}else{c.removeCls(a);if(c.useAriaElements&&c.ariaEl.dom){c.ariaEl.dom.removeAttribute("aria-describedby")}}c.updateHeaderState()},processEvent:function(i,k,o,b,j,g,c,p){var h=this,n=i==="keydown"&&g.getKey(),m=i===h.triggerEvent,a=h.disabled,d,l;g.stopSelection=!n&&h.stopSelection;if(!a&&(m||(n===g.ENTER||n===g.SPACE))){l=!h.isRecordChecked(c);if(h.fireEvent("beforecheckchange",h,b,l,c,g)!==false){h.setRecordCheck(c,b,l,o,g);if(m&&!k.actionableMode){g.preventDefault()}if(h.hasListeners.checkchange){h.fireEvent("checkchange",h,b,l,c,g)}}}else{d=Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)}return d},onTitleElClick:function(d,a,b){var c=this;if(!c.disabled&&(d.keyCode||!c.text||(Ext.fly(d.target).hasCls(c.headerCheckboxCls)))){c.toggleAll(d)}else{return Ext.grid.column.Column.prototype.onTitleElClick.call(this,d,a,b)}},toggleAll:function(i){var h=this,c=h.getView(),d=c.getStore(),g=!h.allChecked,b,j,a;if(h.fireEvent("beforeheadercheckchange",h,g,i)!==false){if(h.hasListeners.checkchange||h.hasListeners.beforecheckchange){b=i.position=new Ext.grid.CellContext(c)}d.each(function(e,k){h.setRecordCheck(e,k,g,c.getCell(e,h))});h.setHeaderStatus(g,i);h.fireEvent("headercheckchange",h,g,i)}},setHeaderStatus:function(b,c){var a=this;if(a.allChecked!==b){a.allChecked=b;if(a.headerCheckbox){a[b?"addCls":"removeCls"](a.headerCheckedCls);if(a.useAriaElements){a.updateHeaderAriaDescription(b)}}}},updateHeaderState:function(a){if(!this.destroyed&&this.headerCheckbox){this.setHeaderStatus(this.areAllChecked(),a)}},onEnable:function(){Ext.grid.column.Column.prototype.onEnable.apply(this,arguments);this._setDisabled(false)},onDisable:function(){this._setDisabled(true)},_setDisabled:function(c){var d=this,a=d.disabledCls,b;b=d.up("tablepanel").el.select(d.getCellSelector());if(c){b.addCls(a)}else{b.removeCls(a)}},defaultRenderer:function(e,b){var c=this,a=c.checkboxCls,d=c.tooltip;if(c.invert){e=!e}if(c.disabled){b.tdCls+=" "+c.disabledCls}if(e){a+=" "+c.checkboxCheckedCls;d=c.checkedTooltip||d}if(c.useAriaElements){b.tdAttr+=' aria-describedby="'+c.id+"-cell-description"+(!e?"-not":"")+'-selected"'}c.updateHeaderState();return""},isRecordChecked:function(a){var b=this.property;if(b){return a[b]}return a.get(this.dataIndex)},areAllChecked:function(){var e=this,c=e.getView().getStore(),b,a,d;if(!c.isBufferedStore&&c.getCount()>0){b=c.getData().items;a=b.length;for(d=0;d');if(c.useAriaElements){b.push(''+c.headerDeselectText+''+c.headerSelectText+''+c.rowDeselectText+''+c.rowSelectText+"")}}}},1,["checkcolumn"],["component","box","container","headercontainer","gridcolumn","checkcolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,checkcolumn:true},["widget.checkcolumn"],0,[Ext.grid.column,"Check",Ext.ux,"CheckColumn",Ext.grid.column,"CheckColumn"],0));(Ext.cmd.derive("Ext.grid.column.Date",Ext.grid.column.Column,{alternateClassName:"Ext.grid.DateColumn",isDateColumn:true,defaultFilterType:"date",producesHTML:false,initComponent:function(){if(!this.format){this.format=Ext.Date.defaultFormat}Ext.grid.column.Column.prototype.initComponent.apply(this,arguments)},defaultRenderer:function(a){return Ext.util.Format.date(a,this.format)},updater:function(a,b){Ext.fly(a).down(this.getView().innerSelector,true).innerHTML=Ext.grid.column.Date.prototype.defaultRenderer.call(this,b)}},0,["datecolumn"],["component","box","container","headercontainer","gridcolumn","datecolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,datecolumn:true},["widget.datecolumn"],0,[Ext.grid.column,"Date",Ext.grid,"DateColumn"],0));(Ext.cmd.derive("Ext.grid.column.Number",Ext.grid.column.Column,{alternateClassName:"Ext.grid.NumberColumn",defaultFilterType:"number",format:"0,000.00",producesHTML:false,defaultRenderer:function(a){return Ext.util.Format.number(a,this.format)},updater:function(a,b){Ext.fly(a).down(this.getView().innerSelector,true).innerHTML=Ext.grid.column.Number.prototype.defaultRenderer.call(this,b)}},0,["numbercolumn"],["component","box","container","headercontainer","gridcolumn","numbercolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,numbercolumn:true},["widget.numbercolumn"],0,[Ext.grid.column,"Number",Ext.grid,"NumberColumn"],0));(Ext.cmd.derive("Ext.grid.column.RowNumberer",Ext.grid.column.Column,{alternateClassName:"Ext.grid.RowNumberer",isRowNumberer:true,text:" ",width:23,sortable:false,draggable:false,autoLock:true,lockable:false,align:"right",producesHTML:false,ignoreExport:true,constructor:function(a){var b=this;b.width=b.width;Ext.grid.column.Column.prototype.constructor.apply(this,arguments);b.sortable=false;b.scope=b},resizable:false,hideable:false,menuDisabled:true,dataIndex:"",cls:"x-row-numberer",tdCls:"x-grid-cell-row-numberer x-grid-cell-special",innerCls:"x-grid-cell-inner-row-numberer",rowspan:undefined,defaultRenderer:function(j,b,g,c,e,a,i){var d=this.rowspan,h=a.currentPage,k=i.store.indexOf(g);if(b&&d){b.tdAttr='rowspan="'+d+'"'}if(h>1){k+=(h-1)*a.pageSize}return k+1},updater:function(a,d,c,b,e){Ext.fly(a).down(this.getView().innerSelector,true).innerHTML=this.defaultRenderer(d,null,c,null,null,e,b)}},1,["rownumberer"],["component","box","container","headercontainer","gridcolumn","rownumberer"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,rownumberer:true},["widget.rownumberer"],0,[Ext.grid.column,"RowNumberer",Ext.grid,"RowNumberer"],0));(Ext.cmd.derive("Ext.grid.column.Template",Ext.grid.column.Column,{alternateClassName:"Ext.grid.TemplateColumn",initComponent:function(){var a=this;a.tpl=(!Ext.isPrimitive(a.tpl)&&a.tpl.compile)?a.tpl:new Ext.XTemplate(a.tpl);a.hasCustomRenderer=true;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments)},defaultRenderer:function(c,d,a){var b=Ext.apply({},a.data,a.getAssociatedData());return this.tpl.apply(b)},updater:function(a,b){Ext.fly(a).down(this.getView().innerSelector,true).innerHTML=Ext.grid.column.CheckColumn.prototype.defaultRenderer.call(this,b)}},0,["templatecolumn"],["component","box","container","headercontainer","gridcolumn","templatecolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,templatecolumn:true},["widget.templatecolumn"],0,[Ext.grid.column,"Template",Ext.grid,"TemplateColumn"],0));(Ext.cmd.derive("Ext.grid.column.Widget",Ext.grid.column.Column,{config:{defaultWidgetUI:{}},ignoreExport:true,sortable:false,onWidgetAttach:null,preventUpdate:true,innerCls:"x-grid-widgetcolumn-cell-inner",stopSelection:true,initComponent:function(){var a=this,b;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments);b=a.widget;a.widget=b=Ext.apply({},b);if(!b.ui){b.ui=a.getDefaultWidgetUI()[b.xtype]||"default"}a.isFixedSize=Ext.isNumber(b.width)},processEvent:function(g,i,j,a,h,d,b,k){var c;if(this.stopSelection&&g==="click"){c=d.getTarget(i.innerSelector);if(c&&c!==d.target){d.stopSelection=true}}},beforeRender:function(){var a=this,c=a.tdCls,b;a.listenerScopeFn=function(d){if(d==="this"){return this}return a.resolveListenerScope(d)};b=Ext.widget(a.widget);a.bindDataIndex=a.dataIndex&&b.defaultBindProperty&&!b.bind;c=c?c+" ":"";a.tdCls=c+b.getTdCls();a.setupViewListeners(a.getView());Ext.grid.column.Column.prototype.beforeRender.call(this);b.destroy()},afterRender:function(){var a=this.getView();Ext.grid.column.Column.prototype.afterRender.call(this);if(a&&a.viewReady&&!a.ownerGrid.reconfiguring){this.onViewRefresh(a,a.getViewRange())}},defaultRenderer:Ext.emptyFn,updater:function(a,c,b){this.updateWidget(b)},onCellsResized:function(h){var g=this,c=g.ownerGrid.getManagedWidgets(g.getId()),b=c.length,d=g.getView(),e,a;if(!g.isFixedSize&&g.rendered&&d&&d.viewReady){a=d.getEl().down(g.getCellInnerSelector());if(a){h-=parseInt(g.getCachedStyle(a,"padding-left"),10)+parseInt(g.getCachedStyle(a,"padding-right"),10);for(e=0;e0){j=d.getModel();for(o=0;o-1},indexOfPlaceholder:function(a){return this.data.indexOf(a)},indexOfId:function(a){return this.data.indexOfKey(a)},indexOfTotal:function(a){return this.store.indexOf(a)},onIdChanged:function(a,d,c,b){this.data.updateKey(d,c)},onUpdate:function(k,g,c,e){var j=this,a=j.groupingFeature,l,d,i,b,h;if(k.isGrouped()){l=g.group=a.getGroup(g);if(l){d=a.getMetaGroup(g);if(e&&Ext.Array.contains(e,a.getGroupField())){return j.onDataChanged()}if(d.isCollapsed){j.fireEvent("update",j,d.placeholder)}else{Ext.suspendLayouts();j.fireEvent("update",j,g,c,e);h=l.items;i=h[0];b=h[h.length-1];if(i!==g){i.group=l;j.fireEvent("update",j,i,"edit",e);delete i.group}if(b!==g&&b!==i&&a.showSummaryRow){b.group=l;j.fireEvent("update",j,b,"edit",e);delete b.group}Ext.resumeLayouts(true)}}delete g.group}else{j.fireEvent("update",j,g,c,e)}},onGroupChange:function(b,a){if(!a){this.processStore(b)}this.fireEvent("groupchange",b,a)},onDataChanged:function(){this.processStore(this.store);this.fireEvent("refresh",this)},destroy:function(){var a=this;a.bindStore(null);Ext.destroy(a.data);a.groupingFeature=null;Ext.util.Observable.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.grid.feature,"GroupStore"],0));(Ext.cmd.derive("Ext.grid.feature.Grouping",Ext.grid.feature.Feature,{eventPrefix:"group",eventSelector:".x-grid-group-hd",refreshData:{},wrapsItem:true,groupHeaderTpl:"{columnName}: {name}",depthToIndent:17,collapsedCls:"x-grid-group-collapsed",hdCollapsedCls:"x-grid-group-hd-collapsed",hdNotCollapsibleCls:"x-grid-group-hd-not-collapsible",collapsibleCls:"x-grid-group-hd-collapsible",ctCls:"x-group-hd-container",groupByText:"Group by this field",showGroupsText:"Show in groups",hideGroupedHeader:false,startCollapsed:false,enableGroupingMenu:true,enableNoGroups:true,collapsible:true,groupers:null,expandTip:"Click to expand. CTRL key collapses all others",collapseTip:"Click to collapse. CTRL/click collapses all others",showSummaryRow:false,outerTpl:["{%","if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {","this.groupingFeature.setup(values.rows, values.view.rowValues);","}","this.nextTpl.applyOut(values, out, parent);","if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {","this.groupingFeature.cleanup(values.rows, values.view.rowValues);","}","%}",{priority:200}],groupRowTpl:["{%","var me = this.groupingFeature,",'colspan = "colspan=" + values.columns.length;',"if (me.disabled || parent.rows.length === 1 && parent.rows[0].isSummary) {","values.needsWrap = false;","} else {","me.setupRowData(values.record, values.rowIndex, values);","}","%}",'','',"{% values.view.renderColumnSizer(values, out); %}",'','',"{%",'var groupTitleStyle = (!values.view.lockingPartner || (values.view.ownerCt === values.view.ownerCt.ownerLockable.lockedGrid) || (values.view.lockingPartner.headerCt.getVisibleGridColumns().length === 0)) ? "" : "visibility:hidden";',"%}",'
    ','
    ','{[values.groupHeaderTpl.apply(values.groupRenderInfo, parent) || " "]}',"
    ","
    ","","","
    ",'',"{%","values.itemClasses.length = 0;","this.nextTpl.applyOut(values, out, parent);","%}","",'',"{%me.outputSummaryRecord(values.summaryRecord, values, out, parent);%}","","","{%this.nextTpl.applyOut(values, out, parent);%}","",{priority:200,beginRowSync:function(a){var b=this.groupingFeature;a.add("header",b.eventSelector);a.add("summary",b.summaryRowSelector)},syncContent:function(b,i,a){b=Ext.fly(b,"syncDest");i=Ext.fly(i,"syncSrc");var e=this.groupingFeature,d=b.down(e.eventSelector,true),c=i.down(e.eventSelector,true),h=b.down(e.summaryRowSelector,true),g=i.down(e.summaryRowSelector,true);if(d&&c){Ext.fly(d).syncContent(c)}if(h&&g){if(a){this.groupingFeature.view.updateColumns(h,g,a)}else{Ext.fly(h).syncContent(g)}}}}],relayedEvents:["groupcollapse","groupexpand"],init:function(c){var e=this,a=e.view,b=e.getGridStore(),d,g;a.isGrouping=b.isGrouped();e.mixins.summary.init.call(e);Ext.grid.feature.Feature.prototype.init.call(this,c);a.headerCt.on({columnhide:e.onColumnHideShow,columnshow:e.onColumnHideShow,columnmove:e.onColumnMove,scope:e});a.addTpl(Ext.XTemplate.getTpl(e,"outerTpl")).groupingFeature=e;a.addRowTpl(Ext.XTemplate.getTpl(e,"groupRowTpl")).groupingFeature=e;a.preserveScrollOnRefresh=true;if(b.isBufferedStore){e.collapsible=false}else{d=e.lockingPartner;if(d&&d.dataSource){e.dataSource=a.dataSource=g=d.dataSource}else{e.dataSource=a.dataSource=g=new Ext.grid.feature.GroupStore(e,b)}}c=c.ownerLockable||c;c.on("beforereconfigure",e.beforeReconfigure,e);if(!a.isLockedView){e.gridEventRelayers=c.relayEvents(a,e.relayedEvents)}a.on({afterrender:e.afterViewRender,scope:e,single:true});e.groupRenderInfo={};if(g){g.on("groupchange",e.onGroupChange,e)}else{e.setupStoreListeners(b)}e.mixins.summary.bindStore.call(e,c,c.getStore())},getGridStore:function(){return this.view.getStore()},indexOf:function(a){if(a.isCollapsedPlaceholder){return this.dataSource.indexOfPlaceholder(a)}return this.dataSource.indexOf(a)},indexOfPlaceholder:function(a){return this.dataSource.indexOfPlaceholder(a)},isInCollapsedGroup:function(b){var e=this,d=e.getGridStore(),a=false,c;if(d.isGrouped()&&(c=e.getMetaGroup(b))){a=!!(c&&c.isCollapsed)}return a},createCache:function(){var a=this.metaGroupCache={},b=this.lockingPartner;if(b){b.metaGroupCache=a}return a},getCache:function(){return this.metaGroupCache||this.createCache()},invalidateCache:function(){var a=this.lockingPartner;this.metaGroupCache=null;if(a){a.metaGroupCache=null}},vetoEvent:function(a,c,d,b){if(b.type!=="mouseover"&&b.type!=="mouseout"&&b.type!=="mouseenter"&&b.type!=="mouseleave"&&b.getTarget(this.eventSelector)){return false}},enable:function(){var c=this,a=c.view,b=c.getGridStore(),e=c.hideGroupedHeader&&c.getGroupedHeader(),d;a.isGrouping=true;if(a.lockingPartner){a.lockingPartner.isGrouping=true}Ext.grid.feature.Feature.prototype.enable.call(this);if(c.lastGrouper){b.group(c.lastGrouper);c.lastGrouper=null}if(e){e.hide()}d=c.view.headerCt.getMenu().down("#groupToggleMenuItem");if(d){d.setChecked(true,true)}},disable:function(){var c=this,a=c.view,b=c.getGridStore(),g=c.hideGroupedHeader&&c.getGroupedHeader(),e=b.getGrouper(),d;a.isGrouping=false;if(a.lockingPartner){a.lockingPartner.isGrouping=false}Ext.grid.feature.Feature.prototype.disable.call(this);if(e){c.lastGrouper=e;b.clearGrouping()}if(g){g.show()}d=c.view.headerCt.getMenu().down("#groupToggleMenuItem");if(d){d.setChecked(false,true);d.disable()}},afterViewRender:function(){var b=this,a=b.view;a.on({scope:b,groupmousedown:b.onGroupMousedown,groupclick:b.onGroupClick});if(b.enableGroupingMenu){b.injectGroupingMenu()}b.pruneGroupedHeader();b.lastGrouper=b.getGridStore().getGrouper();if(b.disabled){b.disable()}},injectGroupingMenu:function(){var a=this,b=a.view.headerCt;b.showMenuBy=a.showMenuBy;b.getMenuItems=a.getMenuItems()},onColumnHideShow:function(d,h){var l=this,m=l.view,b=m.headerCt,a=b.getMenu(),c=a.activeHeader,n=a.down("#groupMenuItem"),g,o=l.grid.getVisibleColumnManager().getColumns().length,k,j,e;if(c&&n){g=c.groupable===false||!c.dataIndex||l.view.headerCt.getVisibleGridColumns().length<2?"disable":"enable";n[g]()}if(m.rendered&&o){k=m.el.query("."+l.ctCls);for(e=0,j=k.length;e','','',"",'','
    {rowBody}
    ',"","","{%","if(this.rowBody.bodyBefore) {","this.nextTpl.applyOut(values, out, parent);","}","%}",{priority:100,beginRowSync:function(a){a.add("rowBody",this.owner.eventSelector)},syncContent:function(c,g,b){var a=this.owner,d=Ext.fly(c).down(a.eventSelector,true),e;if(d&&(e=Ext.fly(g).down(a.eventSelector,true))){Ext.fly(d).syncContent(e)}}}],init:function(b){var c=this,a=c.view=b.getView();b.variableRowHeight=a.variableRowHeight=true;a.rowBodyFeature=c;a.headerCt.on({columnschanged:c.onColumnsChanged,scope:c});a.addTpl(c.outerTpl).rowBody=c;a.addRowTpl(Ext.XTemplate.getTpl(this,"extraRowTpl")).rowBody=c;Ext.grid.feature.Feature.prototype.init.apply(this,arguments)},getSelectedRow:function(a,c){var b=a.getNode(c);if(b){return Ext.fly(b).down(this.eventSelector)}return null},onColumnsChanged:function(d){var b=this.view.el.query(this.rowBodyTdSelector),e=d.getVisibleGridColumns().length,a=b.length,c;for(c=0;c','','',"
    ",""],scrollable:{x:false,y:false},hidden:!d.showSummaryRow,itemId:"summaryBar",cls:[d.dockedSummaryCls,d.dockedSummaryCls+"-"+c],xtype:"component",dock:c,weight:10000000})[0]},afterrender:function(){b.getView().getScrollable().addPartner(d.summaryBar.getScrollable(),"x");d.onStoreUpdate()},single:true});b.headerCt.afterComponentLayout=Ext.Function.createSequence(b.headerCt.afterComponentLayout,function(){var e=this.getTableWidth(),g=d.summaryBar.innerCt;d.summaryBar.item.setWidth(e);if(this.tooNarrow){e+=Ext.getScrollbarSize().width}g.setWidth(e)})}else{if(b.bufferedRenderer){d.wrapsItem=true;a.addRowTpl(Ext.XTemplate.getTpl(d,"fullSummaryTpl")).summaryFeature=d;a.on("refresh",d.onViewRefresh,d)}else{d.wrapsItem=false;d.view.addFooterFn(d.renderSummaryRow)}}b.ownerGrid.on({beforereconfigure:d.onBeforeReconfigure,columnmove:d.onStoreUpdate,scope:d});d.bindStore(b,b.getStore())},onBeforeReconfigure:function(b,a){this.summaryRecord=null;if(a){this.bindStore(b,a)}},bindStore:function(b,a){var c=this;Ext.destroy(c.storeListeners);c.storeListeners=a.on({scope:c,destroyable:true,update:c.onStoreUpdate,datachanged:c.onStoreUpdate});Ext.grid.feature.AbstractSummary.prototype.bindStore.call(this,b,a)},renderSummaryRow:function(c,d,e){var b=c.view,g=b.findFeature("summary"),a,h;if(!g.disabled&&g.showSummaryRow&&!b.addingRows&&!b.updatingRows){a=g.summaryRecord;d.push('');g.outputSummaryRecord((a&&a.isModel)?a:g.createSummaryRecord(b),c,d,e);d.push("
    ")}},toggleSummaryRow:function(d,a){var c=this,b=c.summaryBar;Ext.grid.feature.AbstractSummary.prototype.toggleSummaryRow.call(this,d,a);if(b){b.setVisible(c.showSummaryRow);c.onViewScroll()}},getSummaryBar:function(){return this.summaryBar},getSummaryRowPlaceholder:function(a){var b=this.summaryItemCls,c,d;c=Ext.fly(a.getNodeContainer());if(!c){return null}d=c.down("."+b,true);if(!d){d=c.createChild({tag:"table",cellpadding:0,cellspacing:0,cls:b,style:"table-layout: fixed; width: 100%",children:[{tag:"tbody"}]},false,true)}return d},vetoEvent:function(a,c,d,b){return !b.getTarget(this.summaryRowSelector)},onViewScroll:function(){this.summaryBar.setScrollX(this.view.getScrollX())},onViewRefresh:function(b){var c=this,a,d;if(!c.disabled&&c.showSummaryRow&&!b.all.getCount()){a=c.createSummaryRecord(b);d=c.getSummaryRowPlaceholder(b);d.appendChild(Ext.fly(b.createRowElement(a,-1)).down(c.summaryRowSelector,true))}},createSummaryRecord:function(j){var h=this,d=j.headerCt.getGridColumns(),a=h.remoteRoot,g=h.summaryRecord,l=d.length,e,c,k,b,m;if(!g){m={id:j.id+"-summary-record"};g=h.summaryRecord=new Ext.data.Model(m)}g.beginEdit();if(a){b=h.generateSummaryData();if(b){g.set(b)}}else{for(e=0;e{text} {linkHrefCls}{childElCls}" href="{href}" target="{hrefTarget}" hidefocus="true" unselectable="on" tabindex="{tabIndex}" {$}="{.}">{text}
    ',autoEl:{role:"presentation"},maskOnDisable:false,iconAlign:"left",initComponent:function(){var b=this,a=b.cls?[b.cls]:[],c;if(b.hasOwnProperty("canActivate")){b.focusable=b.canActivate}if(b.plain){a.push("x-menu-item-plain")}if(a.length){b.cls=a.join(" ")}if(b.menu){c=b.menu;b.menu=null;b.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==false&&!a.destroying&&!a.destroyed&&a.isVisible(true)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.plain){a.addCls(a.activeCls)}a.activated=true;if(a.hasListeners.activate){a.fireEvent("activate",a)}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=false;if(a.hasListeners.deactivate){a.fireEvent("deactivate",a)}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&((a.isMenu&&a.floating)||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,a){var b=this;if(!b.disabled&&b.activated&&b.menu){b.hideOnClick=false;b.cancelDeferHide();a=a==null?b.menuExpandDelay:a;if(a===0){b.doExpandMenu(c)}else{b.cancelDeferExpand();b.expandMenuTimer=Ext.defer(b.doExpandMenu,a,b,[c])}}},doExpandMenu:function(a){var b=this,c=b.menu;if(!c.isVisible()){b.parentMenu.activeChild=c;c.ownerCmp=b;c.parentMenu=b.parentMenu;c.constrainTo=document.body;c.autoFocus=!a||!a.pointerType;c.showBy(b,b.menuAlign)}else{if(a&&a.type==="keydown"){c.focus()}}},getRefItems:function(a){var c=this.menu,b;if(c){b=c.getRefItems(a);b.unshift(c)}return b||[]},getValue:function(){return this.value},hideMenu:function(a){var b=this;if(b.menu){b.cancelDeferExpand();b.hideMenuTimer=Ext.defer(b.doHideMenu,Ext.isNumber(a)?a:b.menuHideDelay,b)}},onClick:function(g){var d=this,c=d.clickHideDelay,h=g.browserEvent,b,a;if(!d.href||d.disabled){g.stopEvent();if(d.disabled){return false}}if(d.disabled||d.handlingClick){return}if(d.hideOnClick&&!d.menu){if(!c){d.deferHideParentMenus()}else{d.deferHideParentMenusTimer=Ext.defer(d.deferHideParentMenus,c,d)}}b=d.fireEvent("click",d,g);if(d.destroyed){return}if(b!==false&&d.handler){Ext.callback(d.handler,d.scope,[d,g],0,d)}if(d.destroyed){return}if(Ext.isIE9m){a=h.returnValue===false?true:false}else{a=!!h.defaultPrevented}if(d.href&&g.type!=="click"&&!a){d.handlingClick=true;d.itemEl.dom.click();d.handlingClick=false}if(!d.hideOnClick&&!d.hasFocus){d.focus()}return b},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},doDestroy:function(){var a=this;if(a.rendered){a.clearTip()}a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.doDestroy.call(this)},beforeRender:function(){var i=this,j=i.glyph,h,d=!!(i.icon||i.iconCls||j),k=!!i.menu,e=((i.iconAlign==="right")&&!k),b=i.isMenuCheckItem,a=[],c=i.ownerCt,g=c.plain;if(i.plain){i.ariaEl="el"}Ext.Component.prototype.beforeRender.call(this);if(d){if(k&&i.showCheckbox){d=false}}if(j){h=j.fontFamily;j=j.character}if(!g||(d&&!e)||b){if(c.showSeparator&&!g){a.push(i.indentCls)}else{a.push(i.indentNoSeparatorCls)}}if(k){a.push(i.indentRightArrowCls)}else{if(d&&(e||b)){a.push(i.indentRightIconCls)}}Ext.applyIf(i.renderData,{hasHref:!!i.href,href:i.href||"#",hrefTarget:i.hrefTarget,icon:i.icon,iconCls:i.iconCls,glyph:j,glyphCls:j?"x-menu-item-glyph":undefined,glyphFontFamily:h,hasIcon:d,hasMenu:k,indent:!g||d||b,isCheckItem:b,rightIcon:e,plain:i.plain,text:i.text,arrowCls:i.arrowCls,baseIconCls:i.baseIconCls,textCls:i.textCls,indentCls:a.join(" "),linkCls:i.linkCls,linkHrefCls:i.linkHrefCls,groupCls:i.group?i.groupCls:"",tabIndex:i.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,true)}},getMenu:function(){return this.menu||null},setMenu:function(i,h){var g=this,c=g.menu,b=g.arrowEl,a=g.ariaEl.dom,e,d;if(c){c.ownerCmp=c.parentMenu=null;if(h===true||(h!==false&&g.destroyMenu)){Ext.destroy(c)}if(a){a.removeAttribute("aria-haspopup");a.removeAttribute("aria-owns")}else{e=(g.ariaRenderAttributes||(g.ariaRenderAttributes={}));delete e["aria-haspopup"];delete e["aria-owns"]}}if(i){d=i.isMenu;i=g.menu=Ext.menu.Manager.get(i,{ownerCmp:g,focusOnToFront:false});i.setOwnerCmp(g,d);if(a){a.setAttribute("aria-haspopup",true);a.setAttribute("aria-owns",i.id)}else{e=(g.ariaRenderAttributes||(g.ariaRenderAttributes={}));e["aria-haspopup"]=true;e["aria-owns"]=i.id}}else{i=g.menu=null}if(i&&g.rendered&&!g.destroying&&b){b[i?"addCls":"removeCls"](g.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(b){var c=this,a=c.iconEl,d=c.icon;if(c.glyph){c.setGlyph(null)}if(a){a.setStyle("background-image",b?"url("+b+")":"")}c.icon=b;c.fireEvent("iconchange",c,d,b)},setIconCls:function(b){var d=this,a=d.iconEl,c=d.iconCls;if(d.glyph){d.setGlyph(null)}if(a){a.setStyle("background-image","");if(d.iconCls){a.removeCls(d.iconCls)}if(b){a.addCls(b)}}d.iconCls=b;d.fireEvent("iconchange",d,c,b)},setText:function(d){var c=this,b=c.textEl||c.el,a=c.text;c.text=d;if(c.rendered){b.setHtml(d||"");c.updateLayout()}c.fireEvent("textchange",c,a,d)},getTipAttr:function(){return this.tooltipType==="qtip"?"data-qtip":"title"},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(c,a){var b=this;if(b.rendered){if(!a){b.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(c)){Ext.tip.QuickTipManager.register(Ext.apply({target:b.itemEl.id},c));b.tooltip=c}else{b.itemEl.dom.setAttribute(b.getTipAttr(),c)}}else{b.tooltip=c}return b},getFocusEl:function(){return this.plain?this.el:this.itemEl},getFocusClsEl:function(){return this.el},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)}},applyGlyph:function(b,a){if(b){if(!b.isGlyph){b=new Ext.Glyph(b)}if(b.isEqual(a)){b=undefined}}return b},updateGlyph:function(c,b){var a=this.iconEl;if(a){a.setStyle("background-image","none");this.icon=null;if(c){a.dom.innerHTML=c.character;a.setStyle(c.getStyle())}else{a.dom.innerHTML=""}}}},0,["menuitem"],["component","box","menuitem"],{component:true,box:true,menuitem:true},["widget.menuitem"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,"Item",Ext.menu,"TextItem"],0));(Ext.cmd.derive("Ext.menu.CheckItem",Ext.menu.Item,{checkedCls:"x-menu-item-checked",uncheckedCls:"x-menu-item-unchecked",groupCls:"x-menu-group-icon",hideOnClick:false,checkChangeDisabled:false,submenuText:"{0} submenu",ariaRole:"menuitemcheckbox",childEls:["checkEl"],defaultBindProperty:"checked",showCheckbox:true,isMenuCheckItem:true,checkboxCls:"x-menu-item-checkbox",initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==false){a.hideOnClick=true}}},beforeRender:function(){var b=this,a;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(b.renderData,{checkboxCls:b.checkboxCls,showCheckbox:b.showCheckbox});a=(b.ariaRenderAttributes||(b.ariaRenderAttributes={}));a["aria-checked"]=b.menu?"mixed":b.checked;if(b.menu){a["aria-label"]=Ext.String.formatEncode(b.submenuText,b.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,true);if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on("mousedown",a.onMouseDownCheck)}},disableCheckChange:function(){var b=this,a=b.checkEl;if(a){a.addCls(b.disabledCls)}if(Ext.isIE8&&b.rendered){b.el.repaint()}b.checkChangeDisabled=true},enableCheckChange:function(){var b=this,a=b.checkEl;if(a){a.removeCls(b.disabledCls)}b.checkChangeDisabled=false},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&"touch"===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==="keydown"&&a.menu){return false}}Ext.menu.Item.prototype.onClick.call(this,b)},doDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.doDestroy.call(this)},setText:function(c){var b=this,a=b.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(a&&b.menu){a.setAttribute("aria-label",Ext.String.formatEncode(b.submenuText,c))}},setChecked:function(e,c){var d=this,g=d.checkedCls,h=d.uncheckedCls,b=d.el,a=d.ariaEl.dom;if(d.checked!==e&&(c||d.fireEvent("beforecheckchange",d,e)!==false)){if(b){if(e){b.addCls(g);b.removeCls(h)}else{b.addCls(h);b.removeCls(g)}}if(a){a.setAttribute("aria-checked",d.menu?"mixed":!!e)}d.checked=e;Ext.menu.Manager.onCheckChange(d,e);d.publishState("checked",e);if(!c){Ext.callback(d.checkHandler,d.scope,[d,e],0,d);d.fireEvent("checkchange",d,e)}}}},0,["menucheckitem"],["component","box","menuitem","menucheckitem"],{component:true,box:true,menuitem:true,menucheckitem:true},["widget.menucheckitem"],0,[Ext.menu,"CheckItem"],0));(Ext.cmd.derive("Ext.menu.Separator",Ext.menu.Item,{focusable:false,canActivate:false,hideOnClick:false,plain:true,separatorCls:"x-menu-item-separator",text:" ",ariaRole:"separator",beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,["menuseparator"],["component","box","menuitem","menuseparator"],{component:true,box:true,menuitem:true,menuseparator:true},["widget.menuseparator"],0,[Ext.menu,"Separator"],0));(Ext.cmd.derive("Ext.menu.Menu",Ext.panel.Panel,{defaultType:"menuitem",enableKeyNav:true,allowOtherMenus:false,ariaRole:"menu",floating:true,constrain:true,hidden:true,hideMode:"visibility",ignoreParentClicks:false,mouseLeaveDelay:100,isMenu:true,showSeparator:true,minWidth:undefined,defaultMinWidth:120,defaultAlign:"tl-bl?",focusOnToFront:false,bringParentToFront:false,alignOnScroll:false,focusable:true,tabIndex:-1,defaultFocus:":focusable",allowFocusingDisabledChildren:true,menuClickBuffer:0,baseCls:"x-menu",_iconSeparatorCls:"x-menu-icon-separator",_itemCmpCls:"x-menu-item-cmp",layout:{type:"vbox",align:"stretchmax",overflowHandler:"Scroller"},initComponent:function(){var c=this,a=["x-menu"],d=c.bodyCls?[c.bodyCls]:[],e=c.floating!==false,b={element:"el",click:c.onClick,mouseover:c.onMouseOver,scope:c};if(Ext.supports.Touch){b.pointerdown=c.onMouseOver}c.on(b);c.on({beforeshow:c.onBeforeShow,scope:c});if(c.plain){a.push("x-menu-plain")}c.cls=a.join(" ");d.push("x-menu-body",Ext.dom.Element.unselectableCls);c.bodyCls=d.join(" ");if(e){if(c.minWidth===undefined){c.minWidth=c.defaultMinWidth}}else{c.hidden=!!c.initialConfig.hidden;c.constrain=false}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(c.getLayout(),{configureItem:c.configureItem});c.itemOverTask=new Ext.util.DelayedTask(c.handleItemOver,c)},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);if(this.floating){a.hidden=this.hidden}return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!a.getSizeModel().width.shrinkWrap){a.layout.align="stretch"}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes["aria-expanded"]=!!a.autoShow}},onBoxReady:function(){var b=this,c=b._iconSeparatorCls,a=b.focusableKeyNav;if(a){a.map.processEventScope=b;a.map.processEvent=function(d){if(d.keyCode===d.ESC){d.target=this.el.dom}return d};a.map.addBinding([{key:Ext.event.Event.ESC,handler:b.onEscapeKey,scope:b},{key:/[\w]/,handler:b.onShortcutKey,scope:b,shift:false,ctrl:false,alt:false}])}else{b.escapeKeyNav=new Ext.util.KeyNav(b.el,{eventName:"keydown",scope:b,esc:b.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(b.showSeparator){b.iconSepEl=b.body.insertFirst({role:"presentation",cls:c+" "+c+"-"+b.ui,html:" "})}if(Ext.supports.Touch||Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){b.el.on({scope:b,click:b.preventClick,translate:false})}b.mouseMonitor=b.el.monitorMouseLeave(b.mouseLeaveDelay,b.onMouseLeave,b)},onFocusEnter:function(b){var a=this,c;Ext.panel.Panel.prototype.onFocusEnter.call(this,b);a.mixins.focusablecontainer.onFocusEnter.call(a,b);if(a.floating){c=a.getInherited();if(!c.topmostFocusEvent){c.topmostFocusEvent=b}}},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.lastFocusedChild=null;a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},handleItemOver:function(b,a){if(!a.containsFocus&&(b.pointerType==="mouse"||a.isMenuItem)){a.focus()}if(a.expandMenu){a.expandMenu(b)}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var a=this,b=a.lastFocusedChild;if(b){b.blur()}},getItemFromEvent:function(d){var a=this,c=a.layout.getRenderTarget().dom,b=d.getTarget();while(b.parentNode!==c){b=b.parentNode;if(!b){return}}return Ext.getCmp(b.id)},lookupComponent:function(b){var a=this;if(typeof b==="string"){if(b[0]==="@"){b=Ext.panel.Panel.prototype.lookupComponent.call(this,b)}else{b=a.lookupItemFromString(b)}}else{if(Ext.isObject(b)){b=a.lookupItemFromObject(b)}}if(!b.dock){b.minWidth=b.minWidth||a.minWidth}return b},lookupItemFromObject:function(b){var a=this.defaultType;if(!b.isComponent){if(!b.xtype&&Ext.isBoolean(b.checked)){a="menucheckitem"}b=Ext.ComponentManager.create(b,a)}if(b.isMenuItem){b.parentMenu=this}return b},lookupItemFromString:function(a){return(a==="separator"||a==="-")?new Ext.menu.Separator():new Ext.menu.Item({canActivate:false,hideOnClick:false,plain:true,text:a})},configureItem:function(c){var b=this.owner,e="x-",d=b.ui,a,g;if(c.isMenuItem){c.setUI(d)}else{if(b.items.getCount()>1&&!c.rendered&&!c.dock){g=b._itemCmpCls;a=[g+" "+g+"-"+d];if(!b.plain&&(c.indent!==false||c.iconCls==="no-icon")){a.push(e+"menu-item-indent-"+d)}if(c.rendered){c.el.addCls(a)}else{c.cls=(c.cls||"")+" "+a.join(" ")}c.$extraMenuCls=a}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(h){var g=this,c=h.type,d,b,a=c==="keydown";if(g.disabled){h.stopEvent();return}d=g.getItemFromEvent(h);if(d&&d.isMenuItem){if(!d.menu||!g.ignoreParentClicks){b=d.onClick(h)}else{h.stopEvent()}if(g.destroyed){return}if(d.menu&&b!==false&&a){d.expandMenu(h,0)}}if(!d||d.disabled){d=undefined}g.fireEvent("click",g,d,h)},doDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.doDestroy.call(this)},onMouseLeave:function(b){var a=this;if(a.itemOverTask){a.itemOverTask.cancel()}if(a.disabled){return}a.fireEvent("mouseleave",a,b)},onMouseOver:function(h){var g=this,i=h.getRelatedTarget(),b=!g.el.contains(i),d=g.getItemFromEvent(h),c=g.parentMenu,a=g.ownerCmp;if(b&&c){c.setActiveItem(a);a.cancelDeferHide();c.mouseMonitor.mouseenter();c.itemOverTask.cancel()}if(g.disabled){return}if(d){g.itemOverTask.delay(g.mouseLeaveDelay,null,null,[h,d])}if(b){g.fireEvent("mouseenter",g,h)}g.fireEvent("mouseover",g,d,h)},setActiveItem:function(b){var a=this;if(b&&(b!==a.lastFocusedChild)){a.focusChild(b,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(j,h){var b=String.fromCharCode(h.getCharCode()),c=this.query(">[text]"),a=c.length,g=this.lastFocusedChild,k=Ext.Array.indexOf(c,g),d=k;if(a===0){return}for(;;){if(++d===a){d=0}g=c[d];if(d===k){return}if(g.text&&g.text[0].toUpperCase()===b){g.focus();return}}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)+c)){a.up("menuitem").setChecked(false,true);if(b.gt.getValue()!=null){j.gt=null}}}}j[i.filterKey]=c;h.setValue(j);g.up("menu").hide()}},0,0,0,0,["grid.filter.date"],0,[Ext.grid.filters.filter,"Date"],0));(Ext.cmd.derive("Ext.grid.filters.filter.List",Ext.grid.filters.filter.SingleFilter,{type:"list",operator:"in",itemDefaults:{checked:false,hideOnClick:false},idField:"id",labelField:"text",labelIndex:null,loadingText:"Loading...",loadOnShow:true,single:false,plain:true,gridStoreListenersCfg:{add:"onDataChanged",refresh:"onDataChanged",remove:"onDataChanged",update:"onDataChanged"},constructor:function(a){var c=this,b;Ext.grid.filters.filter.SingleFilter.prototype.constructor.call(this,a);c.labelIndex=c.labelIndex||c.column.dataIndex;if(c.store){c.store=Ext.StoreManager.lookup(c.store)}if(!c.store&&!c.options){b=c.getGridStore();if(c.value!=null&&c.active&&!b.isEmptyStore){c.gridStoreListeners=b.on(Ext.apply({scope:c,destroyable:true},c.gridStoreListenersCfg))}c.gridListeners=c.grid.on({reconfigure:c.onReconfigure,scope:c,destroyable:true});c.inferOptionsFromGridStore=true}},destroy:function(){var c=this,a=c.store,b=c.autoStore;if(a&&a.isStore){if(b||a.autoDestroy){a.destroy()}else{a.un("load",c.bindMenuStore,c)}c.store=null}Ext.destroy(c.gridStoreListeners,c.gridListeners);Ext.grid.filters.filter.SingleFilter.prototype.destroy.call(this)},activateMenu:function(){var e=this,g=e.filter.getValue(),c,d,a,b;if(!g||!g.length){return}c=e.menu.items;for(d=0,a=c.length;d-1){b.setChecked(true,true)}}},bindMenuStore:function(a){var b=this;if(b.grid.destroyed||b.preventFilterRemoval){return}b.createListStore(a);b.createMenuItems(b.store);b.loaded=true},createListStore:function(n){var h=this,m=h.store,j=n.isStore,b=h.idField,d=h.labelField,k=false,a,c,e,g,l;if(j){if(n!==h.getGridStore()){k=true;m=h.store=n}else{h.autoStore=true;a=h.getOptionsFromStore(n)}}else{a=[];for(e=0,g=n.length;e=0;--b){c=e.getAt(b);if(c.isGridFilter){if(!d){e.beginUpdate()}e.remove(c);d=true}}if(d){e.endUpdate()}}}}},0,0,0,0,["plugin.gridfilters"],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.grid.filters,"Filters"],0));(Ext.cmd.derive("Ext.grid.locking.HeaderContainer",Ext.grid.header.Container,{headerCtRelayEvents:["blur","focus","move","resize","destroy","beforedestroy","boxready","afterrender","render","beforerender","removed","hide","beforehide","show","beforeshow","enable","disable","added","deactivate","beforedeactivate","activate","beforeactivate","remove","add","beforeremove","beforeadd","afterlayout","menucreate","sortchange","columnschanged","columnshow","columnhide","columnmove","headertriggerclick","headercontextmenu","headerclick","columnresize","statesave","beforestatesave","staterestore","beforestaterestore"],constructor:function(b){var a=this,d=b.lockedGrid,c=b.normalGrid;a.lockable=b;Ext.grid.header.Container.prototype.constructor.call(this);d.visibleColumnManager.rootColumns=c.visibleColumnManager.rootColumns=b.visibleColumnManager=a.visibleColumnManager=new Ext.grid.ColumnManager(true,d.headerCt,c.headerCt);d.columnManager.rootColumns=c.columnManager.rootColumns=b.columnManager=a.columnManager=new Ext.grid.ColumnManager(false,d.headerCt,c.headerCt);a.lockedEventRelayers=a.relayEvents(d.headerCt,a.headerCtRelayEvents);a.normalEventRelayers=a.relayEvents(c.headerCt,a.headerCtRelayEvents)},destroy:function(){var a=this;Ext.destroy(a.lockedEventRelayers,a.normalEventRelayers);a.lockedEventRelayers=a.normalEventRelayers=null;Ext.grid.header.Container.prototype.destroy.call(this)},getRefItems:function(){return this.lockable.lockedGrid.headerCt.getRefItems().concat(this.lockable.normalGrid.headerCt.getRefItems())},getGridColumns:function(){return this.lockable.lockedGrid.headerCt.getGridColumns().concat(this.lockable.normalGrid.headerCt.getGridColumns())},getColumnsState:function(){var b=this,a=b.lockable.lockedGrid.headerCt.getColumnsState(),c=b.lockable.normalGrid.headerCt.getColumnsState();return a.concat(c)},applyColumnsState:function(o,b){var l=this,d=l.lockable.lockedGrid,e=d.headerCt,k=l.lockable.normalGrid.headerCt,g=e.items.items.concat(k.items.items),a=g.length,j,c,n,h,m;for(j=0;jtablepanel:not(hidden)>tableview");if(a){a.focus()}},focusRow:function(c){var a,b=this.getNavigationModel().lastFocused;a=b?b.view:this.normalView;a.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn("onRowFocus",arguments)},isVisible:function(a){return this.ownerGrid.isVisible(a)},getCellInclusive:function(d,b){var a=d.column,c=this.lockedGrid.getColumnManager().getColumns().length;if(a>=c){d=Ext.apply({},d);d.column-=c;return this.normalView.getCellInclusive(d,b)}else{return this.lockedView.getCellInclusive(d,b)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute("data-columnId"))}return false},onRowSelect:function(){this.relayFn("onRowSelect",arguments)},onRowDeselect:function(){this.relayFn("onRowDeselect",arguments)},onCellSelect:function(a){a.column.getView().onCellSelect({record:a.record,column:a.column})},onCellDeselect:function(a){a.column.getView().onCellDeselect({record:a.record,column:a.column})},getCellByPosition:function(e,c){var d=this,a=e.view,b=e.column;if(a===d){e=new Ext.grid.CellContext(b.getView()).setPosition(e.record,e.column)}return a.getCellByPosition(e,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.ownerGrid.getScrollable();a.scrollBy.apply(a,arguments)},ensureVisible:function(){var a=this.normalView;a.ensureVisible.apply(a,arguments)},disable:function(){this.relayFn("disable",arguments)},enable:function(){this.relayFn("enable",arguments)},addElListener:function(){this.relayFn("addElListener",arguments)},refreshNode:function(){this.relayFn("refreshNode",arguments)},addRowCls:function(){this.relayFn("addRowCls",arguments)},removeRowCls:function(){this.relayFn("removeRowCls",arguments)},destroy:function(){var a=this;a.rendered=false;a.bindStore(null,false,"dataSource");Ext.destroy(a.selModel,a.navigationModel,a.loadMask,a.lockedViewEventRelayers,a.normalViewEventRelayers);a.lockedView.lockingPartner=a.normalView.lockingPartner=null;a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext.grid.locking,"View",Ext.grid,"LockingView"],function(){this.borrow(Ext.Component,["up"]);this.borrow(Ext.view.AbstractView,["doFirstRefresh","applyFirstRefresh"]);this.borrow(Ext.view.Table,["cellSelector","selectedCellCls","selectedItemCls"])}));(Ext.cmd.derive("Ext.scroll.LockingScroller",Ext.scroll.Scroller,{config:{lockedScroller:null,normalScroller:null},scrollTo:function(a,d,c){var b;if(Ext.isObject(a)){b=a.lockedX;if(b){this.getLockedScroller().scrollTo(b,null,c)}}Ext.scroll.Scroller.prototype.scrollTo.call(this,a,d,c)},updateLockedScroller:function(a){a.on("scroll","onLockedScroll",this);a.setLockingScroller(this)},updateNormalScroller:function(a){a.on("scroll","onNormalScroll",this);a.setLockingScroller(this)},getPosition:function(){var b=this,a=Ext.scroll.Scroller.prototype.getPosition.call(this);a.x=b.getNormalScroller().getPosition().x;a.lockedX=b.getLockedScroller().getPosition().x;return a},privates:{updateSpacerXY:function(h){var g=this,b=g.getLockedScroller(),d=g.getNormalScroller(),e=b.component,c=d.component,a=h.y+((c.headerCt.tooNarrow||e.headerCt.tooNarrow)?Ext.getScrollbarSize().height:0);c.stretchHeight(a);e.stretchHeight(a);Ext.scroll.Scroller.prototype.updateSpacerXY.call(this,h)},doScrollTo:function(a,c,b){if(a!=null){this.getNormalScroller().scrollTo(a,null,b);a=null}Ext.scroll.Scroller.prototype.doScrollTo.call(this,a,c,b)},onLockedScroll:function(b,a,c){this.position.lockedX=a},onNormalScroll:function(b,a,c){this.position.x=a}}},0,0,0,0,["scroller.locking"],0,[Ext.scroll,"LockingScroller"],0));(Ext.cmd.derive("Ext.grid.locking.Lockable",Ext.Base,{alternateClassName:"Ext.grid.Lockable",syncRowHeight:true,headerCounter:0,lockedGridCls:"x-grid-inner-locked",normalGridCls:"x-grid-inner-normal",lockingBodyCls:"x-grid-locking-body",scrollContainerCls:"x-grid-scroll-container",scrollBodyCls:"x-grid-scroll-body",scrollbarClipperCls:"x-grid-scrollbar-clipper",scrollbarCls:"x-grid-scrollbar",scrollbarVisibleCls:"x-grid-scrollbar-visible",unlockText:"Unlock",lockText:"Lock",bothCfgCopy:["hideHeaders","enableColumnHide","enableColumnMove","enableColumnResize","sortableColumns","multiColumnSort","columnLines","rowLines","variableRowHeight","numFromEdge","trailingBufferZone","leadingBufferZone","scrollToLoadBuffer","syncRowHeight"],normalCfgCopy:["scroll"],lockedCfgCopy:[],determineXTypeToCreate:function(e){var c=this,h,d,b,g,a;if(c.subGridXType){h=c.subGridXType}else{if(!e){return"gridpanel"}d=c.getXTypes().split("/");b=d.length;g=d[b-1];a=d[b-2];if(a!=="tablepanel"){h=a}else{h=g}}return h},injectLockable:function(){this.focusable=false;this.lockable=true;this.hasView=true;var p=this,r=p.store=Ext.StoreManager.lookup(p.store),k=p.lockedViewConfig,q=p.normalViewConfig,j=Ext.Object,m,b,e,o,g,d,c,h,l=p.viewConfig,n=l&&l.loadMask,a=(n!==undefined)?n:p.loadMask,s=p.bufferedRenderer;m=p.constructLockableFeatures();p.scrollable=new Ext.scroll.LockingScroller({component:p,x:false,y:true});p.features=null;b=p.constructLockablePlugins();p.plugins=b.topPlugins;e={id:p.id+"-locked",$initParent:p,isLocked:true,bufferedRenderer:s,ownerGrid:p,ownerLockable:p,xtype:p.determineXTypeToCreate(true),store:r,scrollerOwner:false,animate:false,border:false,cls:p.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||this.ownerGrid.normalGrid.floatedFromCollapse},features:m.lockedFeatures,plugins:b.lockedPlugins};o={id:p.id+"-normal",$initParent:p,isLocked:false,bufferedRenderer:s,ownerGrid:p,ownerLockable:p,xtype:p.determineXTypeToCreate(),store:r,reserveScrollbar:p.reserveScrollbar,scrollerOwner:false,border:false,cls:p.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||this.ownerGrid.lockedGrid.floatedFromCollapse},features:m.normalFeatures,plugins:b.normalPlugins};p.addCls("x-grid-locked");Ext.copy(o,p,p.bothCfgCopy,true);Ext.copy(e,p,p.bothCfgCopy,true);Ext.copy(o,p,p.normalCfgCopy,true);Ext.copy(e,p,p.lockedCfgCopy,true);Ext.apply(o,p.normalGridConfig);Ext.apply(e,p.lockedGridConfig);for(g=0;gs.clientHeight;if(d&&h){h-=w;l.setStyle("width",h+"px")}A.toggleCls(x,z&&!!g);p.toggleCls(x,!!g);B.normalScrollbarClipper.toggleCls(B.scrollbarClipperCls+"-floated",!!B.normalGrid.floatedFromCollapse);B.normalScrollbar.toggleCls(B.scrollbarCls+"-floated",!!B.normalGrid.floatedFromCollapse);B.lockedScrollbarClipper.toggleCls(B.scrollbarClipperCls+"-floated",!!B.lockedGrid.floatedFromCollapse);B.lockedScrollbar.toggleCls(B.scrollbarCls+"-floated",!!B.lockedGrid.floatedFromCollapse);A.setSize(B.lockedScrollbarClipper.dom.offsetWidth,i);p.setSize(h,i);if(B.getInherited().rtl){p.rtlSetLocalX(m);B.normalScrollbarClipper.rtlSetLocalX(m)}else{p.setLocalX(m);B.normalScrollbarClipper.setLocalX(m)}B.scrollContainer.setBox(r=z?k.union(b):b);if(e){if(d){s.style.width=(r+w)+"px";s.style.right=-w+"px";n.headerCt.layout.innerCt.setWidth(n.headerCt.layout.innerCt.getWidth()+w);B.verticalScrollbarScroller.setSize({y:B.scrollable.getSize().y});B.verticalScrollbar.show()}else{B.verticalScrollbar.hide()}}B.getScrollable().scrollTo(B.lastScrollPos)}},initScrollContainer:function(){var i=this,l=i.scrollContainer=i.body.insertFirst({cls:[i.scrollContainerCls,i._rtlCls]}),h=i.scrollBody=l.appendChild({cls:i.scrollBodyCls}),p=i.lockedScrollbar=l.appendChild({cls:[i.scrollbarCls,i.scrollbarCls+"-locked",i._rtlCls]}),c=i.normalScrollbar=l.appendChild({cls:[i.scrollbarCls,i._rtlCls]}),o=i.lockedGrid.view,b=i.normalGrid.view,m=o.getScrollable(),k=b.getScrollable(),a=Ext.scroll.Scroller,e,d,n,g,j;o.stretchHeight(0);b.stretchHeight(0);i.scrollable.setConfig({element:h,lockedScroller:m,normalScroller:k});n=i.lockedScrollbarClipper=h.appendChild({cls:[i.scrollbarClipperCls,i.scrollbarClipperCls+"-locked",i._rtlCls]});g=i.normalScrollbarClipper=h.appendChild({cls:[i.scrollbarClipperCls,i._rtlCls]});n.appendChild(o.el);g.appendChild(b.el);o.ignoreDomPosition=true;b.ignoreDomPosition=true;e=i.lockedScrollbarScroller=new a({element:p,x:"scroll",y:false,rtl:m.getRtl&&m.getRtl()});d=i.normalScrollbarScroller=new a({element:c,x:"scroll",y:false,rtl:k.getRtl&&k.getRtl()});if(b.el._rtlScrollbarOnRight){i.verticalScrollbar=l.appendChild({cls:i.scrollbarCls,style:{top:0,left:0,bottom:0,width:Ext.getScrollbarSize().width+"px"}});i.verticalScrollbarScroller=new a({element:i.verticalScrollbar,x:false,y:true});i.verticalScrollbarScroller.addPartner(i.scrollable,"y")}e.addPartner(m,"x");d.addPartner(k,"x");j=i.lockedGrid.headerCt.getScrollable();if(j){e.addPartner(j,"x")}j=i.normalGrid.headerCt.getScrollable();if(j){d.addPartner(j,"x")}i.view.onPanelRender(h)},processColumns:function(g,d){var n=this,h,k,e,m=new Ext.grid.header.Container({"$initParent":n}),l=[],c=[],b={itemId:"lockedHeaderCt",stretchMaxPartner:"^^>>#normalHeaderCt",items:l},j={itemId:"normalHeaderCt",stretchMaxPartner:"^^>>#lockedHeaderCt",items:c},o={locked:b,normal:j},a;if(Ext.isObject(g)){Ext.applyIf(b,g);Ext.applyIf(j,g);a=Ext.apply({},g);delete a.items;Ext.apply(m,a);g=g.items}m.constructing=true;for(h=0,k=g.length;h=b.store.getCount()){b.setBodyTop(0)}else{if(b.bodyTop>b.scrollTop||b.bodyTop+ca){c.position=c.scrollTop=Math.max(a-c.bodyHeight,0);c.scroller.scrollTo(null,c.scrollTop)}if(c.bodyTop>a){b.body.translate(null,c.bodyTop=c.position)}if(b.getScrollable()){c.refreshScroller(b,a)}},refreshScroller:function(c,b){var a=c.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:c.headerCt.getTableWidth(),y:b});if(c.lockingPartner){this.scroller.setSize({x:0,y:b})}}},setViewSize:function(k,b){var j=this,n=j.store,l=j.view,p,q=l.all,g=q.getCount(),i=n.getCount(),a,e,h=j.view.lockingPartner&&j.view.lockingPartner.bufferedRenderer,m=g-k,d=0,c=Math.max(0,i-1),o=Ext.Number.sign((j.getFirstVisibleRowIndex()-q.startIndex)-(q.endIndex-j.getLastVisibleRowIndex()));if(h&&!b&&h.view.componentLayoutCounter){if(h.viewSize>k){k=h.viewSize}else{if(l.componentLayoutCounter){h.setViewSize(k,true)}}}m=g-k;if(m){j.scrollTop=j.scroller?j.scroller.getPosition().y:0;j.viewSize=k;if(n.isBufferedStore){n.setViewSize(k)}if(g){a=Math.max(0,Math.min(q.startIndex,i-k));e=Math.min(a+k-1,c);if(a===q.startIndex&&e===q.endIndex){if(m<0){j.handleViewScroll(o)}}else{if(h){h.disable()}if(m<0){if(i>k&&i>g){n.getRange(a,e,{callback:function(s,t,r){p=l.ownerGrid;if(r>q.endIndex){q.scroll(Ext.Array.slice(s,q.endIndex+1,Infinity),1,0)}if(t=n.startIndex+i.viewSize){i.refreshSize();return}if(d&&c=i.viewSize){n.moveBlock(m);i.refreshSize();a=n.startIndex;if(m>0){i.doNotMirror=true;i.handleViewScroll(-1);i.doNotMirror=false}if(n.startIndex===a){if(n.startIndex){i.setBodyTop(i.bodyTop+=b);j.suspendEvent("scroll");j.scrollBy(0,b);j.resumeEvent("scroll");i.position=i.scrollTop=i.scroller.getPosition().y}}else{j.suspendEvent("scroll");j.scrollBy(0,(a-n.startIndex)*i.rowHeight);j.resumeEvent("scroll")}j.refreshSize(n.getCount()!==d);return}if(d&&l>n.endIndex){i.refreshSize();if(m>0){i.onRangeFetched(null,n.startIndex,Math.min(k.getCount(),n.startIndex+i.viewSize)-1,null,true)}j.refreshSize(n.getCount()!==d);return}if(l0?1:-1;if(Math.abs(e)>=20||(b!==g.lastScrollDirection)){g.lastScrollDirection=b;g.handleViewScroll(g.lastScrollDirection,e)}}}},onViewScrollEnd:function(){var b=this,a=b.view.body.dom;if(a){if(b.needsPointerEventsFix){a.style.pointerEvents="";b.preservePointerEvents=false}}},handleViewScroll:function(h,b){var e=this,l=e.view.all,j=e.store,d=j.getCount(),g=e.viewSize,c=d-1,i=Math.max(0,d-g),a,k;if(h===-1){if(l.startIndex){if(e.topOfViewCloseToEdge()){a=Math.max(0,e.getLastVisibleRowIndex()+e.trailingBufferZone-g);if(a>l.startIndex){a=l.startIndex+Math.floor(b/e.rowHeight)}}}}else{if(l.endIndexa.scrollTop-(a.numFromEdge*a.rowHeight)}else{return(a.getFirstVisibleRowIndex()-a.view.all.startIndex)g){j=c-g+1}}}}if(j===0&&c===-1){e.doRefreshView([],0,0)}else{i.getRange(j,c,{callback:e.doRefreshView,scope:e})}},doRefreshView:function(n,h,d,e){var s=this,m=s.view,q=s.scroller,k=m.all,r=k.startIndex,g=k.endIndex,i,a,b=k.getCount(),l,j=h!==k.startIndex,p,o,c;m.refreshing=s.refreshing=true;if(m.refreshCounter){if(m.hasListeners.beforerefresh&&m.fireEvent("beforerefresh",m)===false){return m.refreshNeeded=m.refreshing=s.refreshing=false}c=m.saveFocusState();m.clearViewEl(true);m.refreshCounter++;if(n.length){l=m.doAdd(n,h);if(j){i=k.item(r,true);a=k.item(g,true);if(i){o=-i.offsetTop}else{if(a){o=k.last(true).offsetTop-a.offsetTop}}if(o){p=Math.max(s.bodyTop+o,0);s.scrollTop=p?s.scrollTop+o:0}else{p=h*s.rowHeight;s.scrollTop=Math.max(p+s.rowHeight*(pq.endIndex){B=q.startIndex-j;r.clearViewEl(true);A=r.doAdd(s,j);r.fireItemMutationEvent("itemadd",s,j,A,r);for(w=0;wq.endIndex||gq.endIndex){l=Math.max(j-q.startIndex,0);if(v){D=q.item(q.startIndex+l,true).offsetTop}A=q.scroll(Ext.Array.slice(s,q.endIndex+1-j),1,l);if(v){n=E.bodyTop+D}else{n=x}}else{l=Math.max(q.endIndex-g,0);d=q.startIndex;A=q.scroll(Ext.Array.slice(s,0,q.startIndex-j),-1,l);if(v){n=E.bodyTop-q.item(d,true).offsetTop;if(!q.startIndex){if(n){y.scrollTo(null,E.position=(E.scrollTop-=n));n=0}}else{if(n<0){D=q.startIndex*E.rowHeight;y.scrollTo(null,E.position=(E.scrollTop+=D));n=E.bodyTop+D}}}else{n=x}}}E.position=E.scrollTop}if(t){h.resumeFocusEvents();if(!m.contains(h)){k=r.actionableMode?r.actionPosition:r.lastFocused;if(k&&k.column){r.renderingRows=true;r.onFocusLeave({});r.renderingRows=false;if(k.column.focusable){p=k.column}else{p=k.column.el.findTabbableElements()[0]}if(!p){p=r.el}p.focus()}}}n=Math.max(Math.floor(n),0);if(r.positionBody){E.setBodyTop(n)}if(A&&o&&!o.disabled){o.scrollTop=o.position=E.scrollTop;if(o.view.ownerCt.isVisible()){c=o.onRangeFetched(s,j,g,e,true);if(r.ownerGrid.syncRowHeight||r.ownerGrid.syncRowHeightOnNextLayout||(o.variableRowHeight!==v)){E.syncRowHeights(A,c);r.ownerGrid.syncRowHeightOnNextLayout=false}}if(o.bodyTop!==n){o.setBodyTop(n)}o.scroller.scrollTo(null,E.scrollTop)}if(E.variableRowHeight&&E.bodyHeight!==b&&r.componentLayoutCounter===z){delete E.rowHeight;E.refreshSize()}return A},syncRowHeights:function(g,a){var j=this,h=0,l=1,k=[],b=[],d=Ext.grid.locking.RowSynchronizer,c,e;if(g&&a){h=g.length;l=a.length}if(h!==l){g=j.view.all.slice();a=j.view.lockingPartner.all.slice();h=l=g.length}for(c=0;cg||j+h.bodyHeightg||k+i.bodyHeightg){return i.getLastVisibleRowIndex(l,e-1,b,g)}h=m+a[e].offsetHeight;if(h>=g){return e}else{if(e!==c){return i.getLastVisibleRowIndex(e+1,c,b,g)}}}return i.getFirstVisibleRowIndex()+Math.ceil(d/i.rowHeight)},getScrollHeight:function(){var c=this,e=c.view,j=e.all,g=c.store,k=g.getCount(),d=j.getCount(),i,b,a,h;if(!k){return 0}if(!c.hasOwnProperty("rowHeight")){if(d){if(c.variableRowHeight){c.rowHeight=Math.floor(c.bodyHeight/d)}else{i=j.first();b=i.getHeight();if(Ext.isIE8){a=i.getBorderWidth("b");if(a>0){b-=a}}c.rowHeight=b}}else{delete c.rowHeight}}if(c.variableRowHeight){if(j.endIndex===k-1){h=c.bodyTop+c.bodyHeight-1}else{h=Math.floor((k-d)*c.rowHeight)+c.bodyHeight;h+=c.bodyTop-j.startIndex*c.rowHeight}}else{h=Math.floor(k*c.rowHeight)}return(c.scrollHeight=h)},attemptLoad:function(d,a,c){var b=this;if(b.scrollToLoadBuffer){if(!b.loadTask){b.loadTask=new Ext.util.DelayedTask()}b.loadTask.delay(b.scrollToLoadBuffer,b.doAttemptLoad,b,[d,a,c])}else{b.doAttemptLoad(d,a,c)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(d,a,c){var b=this;if(!b.destroyed){b.store.getRange(d,a,{loadId:++b.loadId,callback:function(g,i,e,h){if(h.loadId===b.loadId&&b.scrollTop===c){b.onRangeFetched(g,i,e,h)}},fireEvent:false})}},destroy:function(){var b=this,a=b.view;b.cancelLoad();if(a&&a.el){a.un("scroll",b.onViewScroll,b)}if(b.store){b.unbindStore()}Ext.destroy(b.viewListeners,b.stretcher,b.gridListeners,b.scrollListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,["plugin.bufferedrenderer"],0,[Ext.grid.plugin,"BufferedRenderer"],0));(Ext.cmd.derive("Ext.grid.plugin.Editing",Ext.plugin.Abstract,{clicksToEdit:2,triggerEvent:undefined,relayedEvents:["beforeedit","edit","validateedit","canceledit"],defaultFieldUI:"default",defaultFieldXType:"textfield",editStyle:"",constructor:function(a){var b=this;Ext.plugin.Abstract.prototype.constructor.call(this,a);b.mixins.observable.constructor.call(b);b.on("edit",function(c,d){b.fireEvent("afteredit",c,d)})},init:function(a){var b=this,c=a.ownerLockable;b.grid=a;b.view=a.view;b.initEvents();if(a.rendered){b.setup()}else{b.mon(a,{beforereconfigure:b.onBeforeReconfigure,reconfigure:b.onReconfigure,scope:b,beforerender:{fn:b.onBeforeRender,single:true,scope:b}})}a.editorEventRelayers=a.relayEvents(b,b.relayedEvents);if(c){c.editorEventRelayers=c.relayEvents(b,b.relayedEvents)}a.isEditable=true;a.editingPlugin=a.view.editingPlugin=b},onBeforeReconfigure:function(){this.reconfiguring=true},onReconfigure:function(){this.setup();delete this.reconfiguring},onBeforeRender:function(){this.setup()},setup:function(){this.initFieldAccessors(this.grid.getTopLevelColumnManager().getColumns())},destroy:function(){var b=this,a=b.grid;Ext.destroy(b.keyNav);b.clearListeners();if(a){if(a.ownerLockable){Ext.destroy(a.ownerLockable.editorEventRelayers);a.ownerLockable.editorEventRelayers=null}Ext.destroy(a.editorEventRelayers);a.editorEventRelayers=null;a.editingPlugin=a.view.editingPlugin=null}Ext.plugin.Abstract.prototype.destroy.call(this)},getEditStyle:function(){return this.editStyle},initFieldAccessors:function(d){if(d.isGroupHeader){d=d.getGridColumns()}else{if(!Ext.isArray(d)){d=[d]}}var h=this,j,i=d.length,b=function(c,k){return h.getColumnField(this,k)},a=function(){return h.hasColumnField(this)},g=function(c){h.setColumnField(this,c)},e;for(j=0;j0;){g[b]=e[a[b].get](b,d&&!c)}}return g},getHiddenTextArea:function(){var b=this.shared,a;a=b.textArea;if(!a){a=b.textArea=Ext.getBody().createChild({tag:"textarea",tabIndex:-1,style:{position:"absolute",top:"-1000px",width:"1px",height:"1px"}});a.suspendFocusEvents()}return a},onCopy:function(b,a){this.doCutCopy(a,false)},onCut:function(b,a){this.doCutCopy(a,true)},onPaste:function(h,e){var d=this,a=d.shared.data,g=d.getSource(),b,j,c;if(d.validateAction(e)===false){return}if(g){for(b=0,j=g.length;b0;){b=g[a];e[b]=e[b]?3:2}}return d.allFormats=e},updateMemory:function(){this.allFormats=null},updateSystem:function(){this.allFormats=null},validateAction:Ext.privateFn}},0,0,0,0,0,0,[Ext.plugin,"AbstractClipboard"],0));(Ext.cmd.derive("Ext.grid.plugin.Clipboard",Ext.plugin.AbstractClipboard,{formats:{cell:{get:"getCells"},html:{get:"getCellData"},raw:{get:"getCellData",put:"putCellData"}},getCellData:function(n,b){var k=this.getCmp(),h=k.getSelectionModel(),i=[],m=n==="raw",g=n==="text",q,o,d,l,a,c,e,p,j;h.getSelected().eachCell(function(r){c=r.column,j=r.column.getView();e=r.record;if(c.ignoreExport){return}if(a!==e){a=e;i.push(p=[])}l=c.dataIndex;if(m){d=e.data[l]}else{q=j.all.item(r.rowIdx);if(!q){q=Ext.fly(j.createRowElement(e,r.rowIdx))}o=q.down(c.getCellInnerSelector());d=o.dom.innerHTML;if(g){d=Ext.util.Format.stripTags(d)}}p.push(d);if(b&&l){e.set(l,null)}});return Ext.util.TSV.encode(i)},getCells:function(i,b){var g=this.getCmp(),d=g.getSelectionModel(),e=[],h,a,c,j;d.getSelected().eachCell(function(k){c=k.record;if(a!==c){a=c;e.push(j={model:c.self,fields:[]})}h=k.column.dataIndex;j.fields.push({name:h,value:c.data[h]});if(b&&h){c.set(h,null)}});return e},getTextData:function(b,a){return this.getCellData(b,a)},putCellData:function(g,m){var o=Ext.util.TSV.decode(g),p,q=o.length,n=q?o[0].length:0,h,k,j=this.getCmp().getView(),a=j.dataSource.getCount()-1,e=j.getVisibleColumnManager().getColumns().length-1,c=j.getNavigationModel(),i=c.getPosition(),l,b,d={};if(!i){j.getSelectionModel().getSelected().eachCell(function(r){i=r;return false})}if(i){i=new Ext.grid.CellContext(j).setPosition(i.record,i.column)}else{i=new Ext.grid.CellContext(j).setPosition(0,0)}b=i.colIdx;for(h=0;h[isFormField]"),h=j.length,d,a,k;for(d=0;de){b.setHeight(g)}else{c.setHeight(e)}}}else{c.dom.style.height=b.dom.style.height=""}},onColumnUnlock:function(c,a){var b=this,d;c=c||b.grid;d=c.lockedGrid.visibleColumnManager.getColumns();if(d.length===1){c.normalGrid.removeCls("x-grid-hide-row-expander-spacer");c.lockedGrid.addCls("x-grid-hide-row-expander-spacer");if(d[0]===b.expanderColumn){c.unlock(b.expanderColumn)}else{c.lock(b.expanderColumn,0)}}},onColumnLock:function(c,a){var b=this,d;c=c||b.grid;d=b.lockedGrid.visibleColumnManager.getColumns();if(d.length===1){b.lockedGrid.headerCt.insert(0,b.expanderColumn);c.normalGrid.addCls("x-grid-hide-row-expander-spacer");c.lockedGrid.removeCls("x-grid-hide-row-expander-spacer")}},getHeaderConfig:function(){var b=this,a=b.grid.lockable&&b.grid;return{width:b.headerWidth,ignoreExport:true,lockable:false,autoLock:true,sortable:false,resizable:false,draggable:false,hideable:false,menuDisabled:true,tdCls:"x-grid-cell-special",innerCls:"x-grid-cell-inner-row-expander",renderer:function(){return''},processEvent:function(h,k,m,j,i,g,d){var c=g.pointerType==="touch",l=!!g.getTarget(".x-grid-row-expander");if((h==="click"&&l)||(h==="keydown"&&g.getKey()===g.SPACE)){if(c){m.focus()}b.toggleRow(j,d,g);g.stopSelection=!b.selectRowOnExpand}else{if(g.type==="mousedown"&&!c&&l){g.preventDefault()}}},isLocked:function(){return a&&(a.lockedGrid.isVisible()||this.locked)},editRenderer:function(){return" "}}}},0,0,0,0,["plugin.rowexpander"],0,[Ext.grid.plugin,"RowExpander"],0));(Ext.cmd.derive("Ext.grid.plugin.RowWidget",Ext.grid.plugin.RowExpander,{lockableScope:"top",config:{defaultWidgetUI:{}},widget:null,lockedWidget:null,addCollapsedCls:{fn:function(b,a,c){var d=this.rowExpander;if(!d.recordsExpanded[a.record.internalId]){a.itemClasses.push(d.rowCollapsedCls)}this.nextTpl.applyOut(a,b,c)},priority:20000},setCmp:function(a){var c=this,b,d;c.rowIdCls=Ext.id(null,"x-rowwidget-");c.recordsExpanded={};Ext.plugin.Abstract.prototype.setCmp.apply(c,arguments);d=c.widget;c.widget=d=Ext.apply({},d);if(!d.ui){d.ui=c.getDefaultWidgetUI()[d.xtype]||"default"}if(a.enableLocking&&c.lockedWidget){c.lockedWidget=d=Ext.apply({},c.lockedWidget);if(!d.ui){d.ui=c.getDefaultWidgetUI()[d.xtype]||"default"}}b=c.getFeatureConfig(a);if(a.features){a.features=Ext.Array.push(b,a.features)}else{a.features=b}},getFeatureConfig:function(a){var c=this,b=[],d={ftype:"rowbody",rowExpander:c,rowIdCls:c.rowIdCls,bodyBefore:c.bodyBefore,recordsExpanded:c.recordsExpanded,rowBodyHiddenCls:c.rowBodyHiddenCls,rowCollapsedCls:c.rowCollapsedCls,setupRowData:c.setupRowData,setup:c.setup,onClick:Ext.emptyFn};b.push(Ext.apply({lockableScope:"normal"},d));if(a.enableLocking){b.push(Ext.apply({lockableScope:"locked"},d))}return b},setupRowData:function(a,d,c){var b=this.rowExpander;b.rowBodyFeature=this;c.rowBodyCls=b.recordsExpanded[a.internalId]?"":b.rowBodyHiddenCls},bindView:function(a){var b=this;b.viewListeners=a.on({refresh:b.onViewRefresh,itemadd:b.onItemAdd,scope:b,destroyable:true});Ext.override(a,b.viewOverrides)},destroy:function(){var a=this,b=a.getId();a.viewListeners.destroy();if(a.grid.lockable){a.grid.destroyManagedWidgets(b+"-"+a.lockedView.getId());a.grid.destroyManagedWidgets(b+"-"+a.normalView.getId())}else{a.grid.destroyManagedWidgets(b+"-"+a.view.getId())}Ext.grid.plugin.RowExpander.prototype.destroy.call(this)},privates:{viewOverrides:{handleEvent:function(a){if(a.getTarget("."+this.rowExpander.rowIdCls,this.body)){return}this.callParent([a])},onFocusEnter:function(a){if(a.event.getTarget("."+this.rowExpander.rowIdCls,this.body)){return}this.callParent([a])},toggleChildrenTabbability:function(c){var a=this.getTargetEl(),d=this.all,b;for(b=d.startIndex;b<=d.endIndex;b++){a=Ext.fly(this.getRow(d.item(b)));if(c){a.restoreTabbableState(true)}else{a.saveTabbableState({skipSelf:true,includeSaved:false})}}}},destroyLiveWidget:function(b,a){a.destroy()},destroyFreeWidget:function(a){a.destroy()},onItemAdd:function(b,j,k,h){var g=this,e=k.length,c,d,a=g.grid.lockable;Ext.suspendLayouts();for(c=0;c=b[0]&&a.rowIdx<=b[1]){b=this.getColumnRange();return(a.colIdx>=b[0]&&a.colIdx<=b[1])}}return false},eachRow:function(c,b){var e=this,g=e.getRowRange(),a=new Ext.grid.CellContext(e.view),d;for(d=g[0];d<=g[1];d++){a.setRow(d);if(c.call(b||e,a.record)===false){return}}},eachColumn:function(d,c){var e=this,a=e.getColumnRange(),b=new Ext.grid.CellContext(e.view),g;for(g=a[0];g<=a[1];g++){b.setColumn(g);if(d.call(c||e,b.column,g)===false){return}}},eachCell:function(d,c){var g=this,h=g.getRowRange(),a=g.getColumnRange(),b=new Ext.grid.CellContext(g.view),e,i;for(e=h[0];e<=h[1];e++){b.setRow(e);for(i=a[0];i<=a[1];i++){b.setColumn(i);if(d.call(c||g,b,i,e)===false){return}}}},getFirstRowIndex:function(){return this.startCell?Math.min(this.startCell.rowIdx,this.endCell.rowIdx):0},getLastRowIndex:function(){return this.startCell?Math.max(this.startCell.rowIdx,this.endCell.rowIdx):-1},getFirstColumnIndex:function(){return this.startCell?Math.min(this.startCell.colIdx,this.endCell.colIdx):0},getLastColumnIndex:function(){return this.startCell?Math.max(this.startCell.colIdx,this.endCell.colIdx):-1},privates:{clear:function(){var b=this,a=b.view;b.eachCell(function(c){a.onCellDeselect(c)});b.startCell=b.endCell=null},setRangeStart:function(b,a){this.startCell=(this.endCell=b.clone()).clone();this.view.onCellSelect(b)},setRangeEnd:function(b){var k=this,i,h,c,j,g,n,a,e,l=k.view,o=l.all,m=new Ext.grid.CellContext(l),d=l.getVisibleColumnManager().getColumns().length-1;k.endCell=b.clone();i=k.getRange();h=k.lastRange||i;c=Math.max(Math.min(i[0][1],h[0][1]),o.startIndex);j=Math.min(Math.max(i[1][1],h[1][1]),o.endIndex);g=Math.min(i[0][0],h[0][0]);n=Math.min(Math.max(i[1][0],h[1][0]),d);for(a=c;a<=j;a++){for(e=g;e<=n;e++){m.setPosition(a,e);if(ai[1][1]||ei[1][0]){l.onCellDeselect(m)}else{l.onCellSelect(m)}}}k.lastRange=i},extendRange:function(b){var c=this,a;if(b[b.type]<0){a=c.endCell.clone().setPosition(c.getLastRowIndex(),c.getLastColumnIndex());c.startCell=b.start.clone();c.setRangeEnd(a);c.view.getNavigationModel().setPosition(b.start)}else{c.startCell=c.startCell.setPosition(c.getFirstRowIndex(),c.getFirstColumnIndex());c.setRangeEnd(b.end);c.view.getNavigationModel().setPosition(b.end)}},getRange:function(){return[[this.getFirstColumnIndex(),this.getFirstRowIndex()],[this.getLastColumnIndex(),this.getLastRowIndex()]]},getRangeSize:function(){return this.getCount()},getCount:function(){var a=this.getRange();return(a[1][0]-a[0][0]+1)*(a[1][1]-a[0][1]+1)},selectAll:function(){var b=this,a=b.view;b.clear();b.setRangeStart(new Ext.grid.CellContext(a).setPosition(0,0));b.setRangeEnd(new Ext.grid.CellContext(a).setPosition(a.dataSource.getCount()-1,a.getVisibleColumnManager().getColumns().length-1))},isAllSelected:function(){var b=this.rangeStart,a=this.rangeEnd;if(b){if(!b.colIdx&&!b.rowIdx){return a.colIdx===a.view.getVisibleColumnManager().getColumns().length-1&&a.rowIdx===a.view.dataSource.getCount-1}}return false},getColumnRange:function(){return[this.getFirstColumnIndex(),this.getLastColumnIndex()]},getLastSelected:function(){return this.view.dataSource.getAt(this.endCell.rowIdx)},getRowRange:function(){return[this.getFirstRowIndex(),this.getLastRowIndex()]},onSelectionFinish:function(){var a=this;if(a.getCount()){a.view.getSelectionModel().onSelectionFinish(a,new Ext.grid.CellContext(a.view).setPosition(a.getFirstRowIndex(),a.getFirstColumnIndex()),new Ext.grid.CellContext(a.view).setPosition(a.getLastRowIndex(),a.getLastColumnIndex()))}else{a.view.getSelectionModel().onSelectionFinish(a)}}}},0,0,0,0,0,0,[Ext.grid.selection,"Cells"],0));(Ext.cmd.derive("Ext.grid.selection.Columns",Ext.grid.selection.Selection,{type:"columns",isColumns:true,clone:function(){var c=this,a=new c.self(c.view),b=c.selectedColumns;if(b){a.selectedColumns=Ext.Array.slice(b)}return a},eachRow:function(c,b){var a=this.selectedColumns;if(a&&a.length){this.view.dataSource.each(c,b||this)}},eachColumn:function(h,g){var j=this,b=j.view,e=j.selectedColumns,a,d,c=new Ext.grid.CellContext(b);if(e){a=e.length;for(d=0;d=d[0]&&a<=d[1]}return b},getCount:function(){var e=this,g=e.selectedRecords,a=g?g.getCount():0,c=e.getRange(),d,b=e.view.dataSource;for(d=c[0];d<=c[1];d++){if(!g||!g.byInternalId.get(b.getAt(d).internalId)){a++}}return a},getRecords:function(){var a=this.selectedRecords;return a?a.getRange():[]},selectAll:function(){var a=this,b=a.view.dataSource,c=b.isBufferedStore?b.getData().getCount():b.getCount();a.clear();a.setRangeStart(0);a.setRangeEnd(c-1);a.addRange();a.allSelected=true},getFirstRowIndex:function(){return this.getCount()?this.view.dataSource.indexOf(this.selectedRecords.first()):0},getLastRowIndex:function(){return this.getCount()?this.view.dataSource.indexOf(this.selectedRecords.first()):-1},eachRow:function(b,a){var c=this.selectedRecords;if(c){c.each(b,a||this)}},eachColumn:function(e,d){var c=this.view.getVisibleColumnManager().getColumns(),a=c.length,b;if(this.selectedRecords){for(b=0;bg[1]){if(d&&(b=d.byInternalId.get(j.getAt(a).internalId))){d.remove(b)}i.onRowDeselect(a)}else{i.onRowSelect(a)}}h.lastRange=g},extendRange:function(b){var d=this,a=d.view.dataSource,c;for(c=b.start.rowIdx;c<=b.end.rowIdx;c++){d.add(a.getAt(c))}},getLastSelected:function(){return this.selectedRecords.last()},getRange:function(){var b=this.rangeStart,a=this.rangeEnd;if(b==null){return[0,-1]}else{if(b<=a){return[b,a]}}return[a,b]},getRangeSize:function(){var a=this.getRange();return a[1]-a[0]+1},createRecordCollection:function(){var b=this.view.dataSource,a=new Ext.util.Collection({rootProperty:"data",extraKeys:{byInternalId:{rootProperty:false,property:"internalId"}},sorters:[function(d,c){return b.indexOf(d)-b.indexOf(c)}]});return a},addRange:function(){var c=this,a,b;if(c.rangeStart!=null){a=c.getRange();b=c.selectedRecords||(c.selectedRecords=c.createRecordCollection());c.view.dataSource.getRange(a[0],a[1],{forRender:false,callback:function(d){b.add.apply(b,d)}});c.setRangeStart(c.lastRange=null)}},onSelectionFinish:function(){var b=this,a=b.getContiguousSelection();if(a){b.view.getSelectionModel().onSelectionFinish(b,new Ext.grid.CellContext(b.view).setPosition(a[0],0),new Ext.grid.CellContext(b.view).setPosition(a[1],b.view.getVisibleColumnManager().getColumns().length-1))}else{b.view.getSelectionModel().onSelectionFinish(b)}},getContiguousSelection:function(){var b=this.view.dataSource,d,a,c;if(this.selectedRecords){d=Ext.Array.sort(this.selectedRecords.getRange(),function(g,e){return b.indexOf(g)-b.indexOf(e)});a=d.length;if(a){for(c=1;cb+c.el.getHeight(true)-15){if(i.extendY){a[1]=3;d.start()}}else{if(i.lastXY[1]g+c.el.getWidth(true)-15){if(i.extendX){a[0]=3;d.start()}}else{if(i.lastXY[0]h.lastPos.rowIdx&&h.extendY){h.extensionDescriptor={type:"rows",start:d.setRow(h.lastPos.rowIdx+1),end:c.setRow(b.rowIdx),rows:b.rowIdx-h.lastPos.rowIdx,mousePosition:h.lastXY};h.mask.dom.style.borderTopWidth="0";g.x=l.x;g.y=l.bottom;g.width=l.right-l.left;g.height=e.getRegion().bottom-l.bottom}else{if(b.colIdxh.lastPos.colIdx&&h.extendX){h.extensionDescriptor={type:"columns",start:d.setColumn(h.lastPos.colIdx+1),end:c.setColumn(b.colIdx),columns:b.colIdx-h.lastPos.colIdx,mousePosition:h.lastXY};h.mask.dom.style.borderLeftWidth="0";g.x=l.right;g.y=l.top;g.width=e.getRegion().right-l.right;g.height=l.bottom-l.top}else{h.extensionDescriptor=null}}}}if(j.ownerGrid.hasListeners.selectionextenderdrag){j.ownerGrid.fireEvent("selectionextenderdrag",j.ownerGrid,j.getSelectionModel().getSelected(),h.extensionDescriptor)}if(h.extensionDescriptor){h.mask.show();h.mask.setBox(g)}else{h.mask.hide()}},destroy:function(){var a=this;Ext.destroy(a.gridListeners,a.viewListeners,a.mask,a.handle);Ext.dd.DragTracker.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.grid.selection,"SelectionExtender"],0));(Ext.cmd.derive("Ext.grid.selection.SpreadsheetModel",Ext.selection.Model,{isSpreadsheetModel:true,config:{columnSelect:{$value:false,lazy:true},cellSelect:{$value:true,lazy:true},rowSelect:{$value:true,lazy:true},dragSelect:{$value:true,lazy:true},selected:null,extensible:{$value:true,lazy:true}},checkboxSelect:false,checkboxColumnIndex:0,showHeaderCheckbox:true,checkColumnHeaderText:null,checkboxHeaderWidth:24,rowNumbererHeaderWidth:46,columnSelectCls:"x-ssm-column-select",rowNumbererHeaderCls:"x-ssm-row-numberer-hd",tdCls:"x-grid-cell-special x-selmodel-column",bindComponent:function(b){var d=this,c,a,e;if(d.view!==b){if(d.view){d.navigationModel=null;Ext.destroy(d.viewListeners,d.navigationListeners)}d.view=b;if(b){d.getCellSelect();e=b.ownerGrid.lockedGrid;if(e){d.hasLockedHeader=true;d.onViewCreated(e,e.getView())}else{b.grid.on({viewcreated:d.onViewCreated,scope:d,single:true})}d.gridListeners=b.ownerGrid.on({columnschanged:d.onColumnsChanged,columnmove:d.onColumnMove,scope:d,destroyable:true});a=d.getStoreListeners();a.scope=d;a.destroyable=true;d.storeListeners=d.store.on(a);c=d.getViewListeners();c.scope=d;c.destroyable=true;d.viewListeners=b.on(c);d.navigationModel=b.getNavigationModel();d.navigationListeners=d.navigationModel.on({navigate:d.onNavigate,scope:d,destroyable:true});if(d.getColumnSelect()){b.ownerGrid.addCls(d.columnSelectCls)}d.updateHeaderState()}}},getCheckboxHeaderConfig:function(){var a=this,b=a.showHeaderCheckbox!==false;return{xtype:"checkcolumn",isCheckerHd:b,headerCheckbox:b,ignoreExport:true,text:a.checkColumnHeaderText,clickTargetName:"el",width:a.checkboxHeaderWidth,sortable:false,draggable:false,resizable:false,hideable:false,menuDisabled:true,tdCls:a.tdCls,cls:"x-selmodel-column",stopSelection:false,editRenderer:a.editRenderer||a.renderEmpty,locked:a.hasLockedHeader,updateHeaderState:a.updateHeaderState.bind(a),toggleAll:Ext.emptyFn,setRecordCheck:Ext.emptyFn,isRecordChecked:Ext.emptyFn}},renderEmpty:function(){return" "},getStoreListeners:function(){var b=this,a=Ext.selection.Model.prototype.getStoreListeners.call(this);a.priority=2000;a.refresh=b.onStoreChanged;a.clear=b.onStoreChanged;return a},onHeaderClick:function(j,k,h){var d=this,g=d.selected,a,b,c;if(k===d.numbererColumn||k===d.checkColumn){h.stopEvent();if(!g||!g.isAllSelected()){d.selectAll()}else{d.deselectAll()}d.updateHeaderState();d.lastColumnSelected=null}else{if(d.columnSelect){if(h.shiftKey&&g&&g.lastColumnSelected){g.clear();a=d.view.ownerGrid.getVisibleColumnManager();b=Ext.Array.sort([a.indexOf(g.lastColumnSelected),a.indexOf(k)],Ext.Array.numericSortFn);for(c=b[0];c<=b[1];c++){d.selectColumn(a.getHeaderAtIndex(c),true)}}else{if(d.isColumnSelected(k)){d.deselectColumn(k);d.selected.lastColumnSelected=null}else{d.selectColumn(k,h.ctrlKey);d.selected.lastColumnSelected=k}}}}},updateHeaderState:function(){var d=this,b=d.view.dataSource,a=d.views,e=d.selected,h=false,c=d.checkColumn,g;if(b&&e&&e.isRows){g=b.getCount();if(b.isBufferedStore){h=e.allSelected}else{h=g>0&&(g===e.getCount())}}if(a&&a.length){if(c){c.setHeaderStatus(h)}}},onBindStore:function(a,c,b){if(!b){this.onStoreRefresh()}},onBeforeReconfigure:function(e,a,d,h,c){var g=this,b=g.checkboxColumnIndex;if(d){Ext.suspendLayouts();if(g.numbererColumn){g.numbererColumn.ownerCt.remove(g.numbererColumn,false);d.unshift(g.numbererColumn)}if(g.checkColumn){if(b==="first"){b=0}else{if(b==="last"){b=d.length}}g.checkColumn.ownerCt.remove(g.checkColumn,false);Ext.Array.insert(d,b,[g.checkColumn])}Ext.resumeLayouts()}},getCellContext:function(a,b){return new Ext.grid.CellContext(this.view.ownerGrid.getView()).setPosition(a,b)},select:function(b,m,l){var h=this,a=h.selected,j=h.view,k=j.dataSource,g,d,e,c=false;if(!a||!a.isRows||a.view!==j){h.resetSelection(true);a=h.selected=new Ext.grid.selection.Rows(j)}else{if(!m){a.clear()}}if(!Ext.isArray(b)){b=[b]}g=b.length;for(d=0;d1&&!e.shiftKey&&e.type==="click"){return}if(!(i.cellSelect||i.columnSelect||i.rowSelect)||!g.record||e.type==="mousedown"){return}if(a&&e.keyCode===e.A){if(!b||b.getCount()<2){i.selectAll()}else{i.deselectAll()}i.updateHeaderState();return}if(h){if(j.column===i.numbererColumn||j.column===i.checkColumn||!(i.cellSelect||i.columnSelect)||(b&&b.isRows)){if(i.rowSelect){if(!b||!b.isRows||b.view!==k){i.resetSelection(true);b=i.selected=new Ext.grid.selection.Rows(k)}if(!b.getRangeSize()){b.setRangeStart(g.previousRecordIndex||0)}b.setRangeEnd(g.recordIndex);b.addRange();c=true}}else{if(i.cellSelect){if(!b||!b.isCells||b.view!==k){i.resetSelection(true);b=i.selected=new Ext.grid.selection.Cells(k)}if(!b.getRangeSize()){b.setRangeStart(g.previousPosition||i.getCellContext(0,0))}b.setRangeEnd(j);c=true}else{if(i.columnSelect){if(!b||!b.isColumns||b.view!==k){i.resetSelection(true);b=i.selected=new Ext.grid.selection.Columns(k)}if(!b.getCount()){b.setRangeStart(j.column)}b.setRangeEnd(g.position.column);c=true}}}}else{if(j.column===i.numbererColumn||j.column===i.checkColumn||(i.rowSelect&&!i.cellSelect)){if(!b||!b.isRows||b.view!==k){i.resetSelection(true);b=i.selected=new Ext.grid.selection.Rows(k)}if(a||j.column===i.checkColumn){if(b.contains(d)){b.remove(d)}else{b.add(d)}}else{b.clear();b.add(d)}c=true}else{if(i.cellSelect){if(!b||!b.isCells||b.view!==k){i.resetSelection(true);i.selected=b=new Ext.grid.selection.Cells(k)}else{b.clear()}b.setRangeStart(j);c=true}else{if(i.columnSelect){if(!b||!b.isColumns||b.view!==k){i.resetSelection(true);i.selected=b=new Ext.grid.selection.Columns(k)}if(a){if(b.contains(j.column)){b.remove(j.column)}else{b.add(j.column)}}else{b.setRangeStart(j.column)}c=true}}}}if(c){if(b.isRows){i.updateHeaderState()}i.fireSelectionChange()}},isRowSelected:function(a){var b=this,c=b.selected;if(c&&c.isRows){a=Ext.isNumber(a)?b.store.getAt(a):a;return c.contains(a)}else{return false}},isColumnSelected:function(a){var b=this,c=b.selected;if(c&&c.isColumns){return c.contains(a)}else{return false}},isCellSelected:function(a,g,c){var d=this,b,e=d.selected;a=a.ownerGrid.view;if(e){if(e.isColumns){if(typeof c==="number"){c=a.getVisibleColumnManager().getColumns()[c]}return e.contains(c)}if(e.isCells){b=new Ext.grid.CellContext(a).setPosition({row:g,column:c});return e.contains(b)}}return false},applySelected:function(a){return a},updateSelected:function(g,h){var c,e,b,d,a;if(h){h.clear()}if(g&&g.getCount()){c=g.view;if(g.isRows){g.eachRow(c.onRowSelect,c)}else{if(g.isColumns){e=g.getColumns();b=e.length;if(b){a=new Ext.grid.CelContext(c);c.store.each(function(i){a.setRow(i);for(d=0;d0);if(j){t.widthModel=t.heightModel=null;b=v.getSizeModel(l&&l.widthModel.pairsByHeightOrdinal[l.heightModel.ordinal]);if(h){t.sizeModel=b}t.widthModel=b.width;t.heightModel=b.height;if(l&&!t.isComponentChild){if(p.needsItemSize||!v.liquidLayout){l.remainingChildDimensions+=2}else{if(t.widthModel.calculated){++l.remainingChildDimensions}if(t.heightModel.calculated){++l.remainingChildDimensions}}}}else{if(a){t.recoverProp("x",a,d);t.recoverProp("y",a,d);if(t.widthModel.calculated){t.recoverProp("width",a,d)}else{if("width" in a){++s}}if(t.heightModel.calculated){t.recoverProp("height",a,d)}else{if("height" in a){++s}}if(l&&!t.isComponentChild){l.remainingChildDimensions+=s}}}if(a&&p&&p.manageMargins){t.recoverProp("margin-top",a,d);t.recoverProp("margin-right",a,d);t.recoverProp("margin-bottom",a,d);t.recoverProp("margin-left",a,d)}if(c){k=c.heightModel;r=c.widthModel;if(r&&k&&g&&w){if(g.shrinkWrap&&w.shrinkWrap){if(r.constrainedMax&&k.constrainedMin){k=null}}}if(r){t.widthModel=r}if(k){t.heightModel=k}if(c.state){Ext.apply(t.state,c.state)}}return u},initContinue:function(e){var h=this,d=h.ownerCtContext,a=h.target,c=h.widthModel,g=a.getInherited(),b;if(c.fixed){g.inShrinkWrapTable=false}else{delete g.inShrinkWrapTable}if(e){if(d&&c.shrinkWrap){b=d.isBoxParent?d:d.boxParent;if(b){b.addBoxChild(h)}}else{if(c.natural){h.boxParent=d}}}return e},initDone:function(d){var b=this,a=b.props,c=b.state;if(b.remainingChildDimensions===0){a.containerChildrenSizeDone=true}if(d){a.containerLayoutDone=true}if(b.boxChildren&&b.boxChildren.length&&b.widthModel.shrinkWrap){b.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var b=this,c=b.target,a=b.ownerCtContext;if(a&&a.isTopLevel){b.animatePolicy=c.ownerLayout.getAnimatePolicy(b)}else{if(!a&&c.isCollapsingOrExpanding&&c.animCollapse){b.animatePolicy=c.componentLayout.getAnimatePolicy(b)}}if(b.animatePolicy){b.context.queueAnimation(b)}},addBlock:function(b,d,e){var c=this,g=c[b]||(c[b]={}),a=g[e]||(g[e]={});if(!a[d.id]){a[d.id]=d;++d.blockCount;++c.context.blockCount}},addBoxChild:function(d){var c=this,b,a=d.widthModel;d.boxParent=this;d.measuresBox=a.shrinkWrap?d.hasRawContent:a.natural;if(d.measuresBox){b=c.boxChildren;if(b){b.push(d)}else{c.boxChildren=[d]}}},addPositionStyles:function(d,b){var a=b.x,e=b.y,c=0;if(a!==undefined){d.left=a+"px";++c}if(e!==undefined){d.top=e+"px";++c}return c},addTrigger:function(g,h){var e=this,a=h?"domTriggers":"triggers",i=e[a]||(e[a]={}),b=e.context,d=b.currentLayout,c=i[g]||(i[g]={});if(!c[d.id]){c[d.id]=d;++d.triggerCount;c=b.triggers[h?"dom":"data"];(c[d.id]||(c[d.id]=[])).push({item:this,prop:g});if(e.props[g]!==undefined){if(!h||!(e.dirty&&(g in e.dirty))){++d.firedTriggers}}}},boxChildMeasured:function(){var b=this,c=b.state,a=(c.boxesMeasured=(c.boxesMeasured||0)+1);if(a===b.boxChildren.length){c.clearBoxWidth=1;++b.context.progressCount;b.markDirty()}},borderNames:["border-top-width","border-right-width","border-bottom-width","border-left-width"],marginNames:["margin-top","margin-right","margin-bottom","margin-left"],paddingNames:["padding-top","padding-right","padding-bottom","padding-left"],trblNames:["top","right","bottom","left"],cacheMissHandlers:{borderInfo:function(a){var b=a.getStyles(a.borderNames,a.trblNames);b.width=b.left+b.right;b.height=b.top+b.bottom;return b},marginInfo:function(a){var b=a.getStyles(a.marginNames,a.trblNames);b.width=b.left+b.right;b.height=b.top+b.bottom;return b},paddingInfo:function(b){var a=b.frameBodyContext||b,c=a.getStyles(b.paddingNames,b.trblNames);c.width=c.left+c.right;c.height=c.top+c.bottom;return c}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(a){var c=this[a],b;if(c){for(b in c){this.clearBlocks(a,b)}}},clearBlocks:function(c,g){var h=this[c],b=h&&h[g],d,e,a;if(b){delete h[g];d=this.context;for(a in b){e=b[a];--d.blockCount;if(!--e.blockCount&&!e.pending&&!e.done){d.queueLayout(e)}}}},block:function(a,b){this.addBlock("blocks",a,b)},domBlock:function(a,b){this.addBlock("domBlocks",a,b)},fireTriggers:function(b,g){var h=this[b],d=h&&h[g],c=this.context,e,a;if(d){for(a in d){e=d[a];++e.firedTriggers;if(!e.done&&!e.blockCount&&!e.pending){c.queueLayout(e)}}}},flush:function(){var b=this,a=b.dirty,c=b.state,d=b.el;b.dirtyCount=0;if("attributes" in b){d.set(b.attributes);delete b.attributes}if("innerHTML" in b){d.innerHTML=b.innerHTML;delete b.innerHTML}if(c&&c.clearBoxWidth){c.clearBoxWidth=0;b.el.setStyle("width",null);if(!--c.blocks){b.context.queueItemLayouts(b)}}if(a){delete b.dirty;b.writeProps(a,true)}},flushAnimations:function(){var o=this,c=o.previousSize,l,n,e,h,g,d,i,m,k,a,b;if(c){l=o.target;n=l.getAnimationProps();e=n.duration;h=Ext.Object.getKeys(o.animatePolicy);g=Ext.apply({},{from:{},to:{},duration:e||Ext.fx.Anim.prototype.duration},n);for(d=0,i=0,m=h.length;i0},runLayout:function(b){var a=this,c=a.getCmp(b.owner);b.pending=false;if(c.state.blocks){return}b.done=true;++b.calcCount;++a.calcCount;b.calculate(c);if(b.done){a.layoutDone(b);if(b.completeLayout){a.queueCompletion(b)}if(b.finalizeLayout){a.queueFinalize(b)}}else{if(!b.pending&&!b.invalid&&!(b.blockCount+b.triggerCount-b.firedTriggers)){a.queueLayout(b)}}},setItemSize:function(h,g,b){var d=h,a=1,c,e;if(h.isComposite){d=h.elements;a=d.length;h=d[0]}else{if(!h.dom&&!h.el){a=d.length;h=d[0]}}for(e=0;e0){b.insert(0,l)}}}}},getItemsRenderTree:function(a){this.beforeRenderItems(a);return Ext.layout.container.VBox.prototype.getItemsRenderTree.apply(this,arguments)},renderItems:function(a,b){this.beforeRenderItems(a);Ext.layout.container.VBox.prototype.renderItems.apply(this,arguments)},configureItem:function(a){Ext.layout.container.VBox.prototype.configureItem.apply(this,arguments);a.ignoreHeaderBorderManagement=true;a.animCollapse=false;if(this.fill){a.flex=1}},beginLayout:function(a){Ext.layout.container.VBox.prototype.beginLayout.apply(this,arguments);this.innerCt.dom.setAttribute("role","tablist");this.innerCt.dom.setAttribute("aria-multiselectable",true);this.updatePanelClasses(a)},updatePanelClasses:function(e){var c=e.visibleItems,d=c.length,a=true,b,h,g;for(b=0;b1){a.processing=true;b.collapse();a.processing=false}},onRemove:function(a,d){var c=this,b;Ext.layout.container.VBox.prototype.onRemove.apply(this,arguments);if(!c.owner.destroying&&!c.multi&&!a.collapsed){b=c.owner.items.first();if(b){b.expand()}}},getExpanded:function(h){var b=this.owner.items.items,a=b.length,d=0,c=[],g,e;for(;dc){c=e.weight}}},this);return c},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return true},isItemShrinkWrap:function(a){return true},insertSplitter:function(d,c,g,b){var h=d.region,e=Ext.apply({xtype:"bordersplitter",collapseTarget:d,id:d.id+"-splitter",hidden:g,canResize:d.splitterResize!==false,splitterFor:d,synthetic:true},b),a=c+((h==="south"||h==="east")?0:1);if(d.collapseMode==="mini"){e.collapsedCls=d.collapsedCls}d.splitter=this.owner.add(a,e)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(a,c){var b;if(c&&c.splitter){b=c.region;if(b==="south"||b==="east"){c=c.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,a,c)},onAdd:function(j,d){var g=this,c=j.placeholderFor,i=j.region,e,h,a,b;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(i){Ext.apply(j,g.regionFlags[i]);if(g.owner.isViewport){j.isViewportBorderChild=true}if(j.initBorderRegion){j.initBorderRegion()}e=i==="center";if(e){g.centerRegion=j}else{h=j.split;a=!!j.hidden;if(typeof h==="object"){b=h;h=true}if((j.isHorz||j.isVert)&&(h||j.collapseMode==="mini")){g.insertSplitter(j,d,a||!h,b)}}if(!e&&!j.hasOwnProperty("collapseMode")){j.collapseMode=g.panelCollapseMode}if(!j.hasOwnProperty("animCollapse")){if(j.collapseMode!=="placeholder"){j.animCollapse=false}else{j.animCollapse=g.panelCollapseAnimate}}if(a&&j.placeholder&&j.placeholder.isVisible()){g.owner.insert(d,j.placeholder)}}else{if(c){Ext.apply(j,g.regionFlags[c.region]);j.region=c.region;j.weight=c.weight}}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(b,d){var e=this,i=b.region,g=b.splitter,a=e.owner,h=a.destroying,c;if(i){if(b.isCenter){e.centerRegion=null}delete b.isCenter;delete b.isHorz;delete b.isVert;if(g&&!a.destroying){a.doRemove(g,true)}delete b.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!h&&!d&&b.rendered){c=b.getEl();if(c){c.setStyle("top","");c.setStyle(e.horzPositionProp,"")}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:true,isHorz:false,isVert:false},north:{isCenter:false,isHorz:false,isVert:true,collapseDirection:"top"},south:{isCenter:false,isHorz:false,isVert:true,collapseDirection:"bottom"},west:{isCenter:false,isHorz:true,isVert:false,collapseDirection:"left"},east:{isCenter:false,isHorz:true,isVert:false,collapseDirection:"right"}},setupSplitterNeighbors:function(m){var p={},e=m.length,o=this.touchedRegions,h,g,a,l,d,k,n,b,c;for(h=0;h{%this.renderBody(out, values)%}'],targetElCls:"x-center-target",beginLayout:function(b){var k=this,c=k.percentRe,g,j,d,a,l,h,e;Ext.layout.container.Fit.prototype.beginLayout.call(this,b);g=b.childItems;for(d=0,j=g.length;d style="border-spacing:{itemSpacing}px"
    >
    style="width:{labelWidth}">
    ',afterBodyTpl:"",getRenderData:function(){var c=this,a=c.labelWidth,b=c.formWrapCls,d=Ext.layout.container.Auto.prototype.getRenderData.call(this);if(a){if(typeof a==="number"){a+="px"}d.labelWidth=a;b+=" "+c.formWrapSizedLabelCls}else{b+=" "+c.formWrapAutoLabelCls}d.formWrapCls=b;d.formColGroupCls=c.formColGroupCls;d.formColumnCls=c.formColumnCls;d.formLabelColumnCls=c.formLabelColumnCls;return d},getRenderTarget:function(){return this.formWrap}},0,0,0,0,["layout.form"],0,[Ext.layout.container,"Form",Ext.layout,"FormLayout"],0));(Ext.cmd.derive("Ext.menu.Bar",Ext.menu.Menu,{isMenuBar:true,defaultMenuAlign:"tl-bl?",floating:false,constrain:false,showSeparator:false,allowOtherMenus:true,ariaRole:"menubar",ui:"default-menubar",layout:{type:"hbox",align:"stretchmax",pack:"start",overflowHandler:"menu"},lookupComponent:function(a){a=Ext.menu.Menu.prototype.lookupComponent.call(this,a);if(a.isMenuItem){a.menuAlign=this.defaultMenuAlign}return a},privates:{onFocusableContainerLeftKey:function(a){a.preventDefault();this.mixins.focusablecontainer.onFocusableContainerLeftKey.call(this,a)},onFocusableContainerRightKey:function(a){a.preventDefault();this.mixins.focusablecontainer.onFocusableContainerRightKey.call(this,a)},onFocusableContainerUpKey:function(a){var b=this.lastFocusedChild;a.preventDefault();if(b&&b.expandMenu){b.expandMenu(a,0)}},onFocusableContainerDownKey:function(a){var b=this.lastFocusedChild;a.preventDefault();if(b&&b.expandMenu){b.expandMenu(a,0)}}}},0,["menubar"],["component","box","container","panel","menu","menubar"],{component:true,box:true,container:true,panel:true,menu:true,menubar:true},["widget.menubar"],0,[Ext.menu,"Bar"],0));(Ext.cmd.derive("Ext.menu.ColorPicker",Ext.menu.Menu,{hideOnClick:true,pickerId:null,initComponent:function(){var b=this,a=Ext.apply({},b.initialConfig);delete a.listeners;Ext.apply(b,{plain:true,showSeparator:false,bodyPadding:0,items:Ext.applyIf({cls:"x-menu-color-item",margin:0,id:b.pickerId,xtype:"colorpicker"},a)});Ext.menu.Menu.prototype.initComponent.apply(this,arguments);b.picker=b.down("colorpicker");b.relayEvents(b.picker,["select"]);if(b.hideOnClick){b.on("select",b.hidePickerOnSelect,b)}},hidePickerOnSelect:function(){Ext.menu.Manager.hideAll()}},0,["colormenu"],["component","box","container","panel","menu","colormenu"],{component:true,box:true,container:true,panel:true,menu:true,colormenu:true},["widget.colormenu"],0,[Ext.menu,"ColorPicker"],0));(Ext.cmd.derive("Ext.menu.DatePicker",Ext.menu.Menu,{ariaRole:"dialog",ariaLabel:"Date picker",hideOnClick:true,pickerId:null,enableFocusableContainer:false,initComponent:function(){var c=this,a,b;if(c.pickerCfg){b=Ext.apply({cls:"x-menu-date-item",margin:0,border:false,id:c.pickerId,xtype:"datepicker"},c.pickerCfg)}else{a=Ext.apply({},c.initialConfig);delete a.listeners;b=Ext.applyIf({cls:"x-menu-date-item",margin:0,border:false,id:c.pickerId,xtype:"datepicker"},a)}Ext.apply(c,{showSeparator:false,plain:true,bodyPadding:0,items:[b]});Ext.menu.Menu.prototype.initComponent.call(this);c.picker=c.down("datepicker");c.relayEvents(c.picker,["select"]);if(c.hideOnClick){c.on("select",c.hidePickerOnSelect,c)}},onEscapeKey:function(a){if(this.floating&&this.ownerCmp&&this.ownerCmp.focus){this.ownerCmp.focus()}},hidePickerOnSelect:function(){Ext.menu.Manager.hideAll()}},0,["datemenu"],["component","box","container","panel","menu","datemenu"],{component:true,box:true,container:true,panel:true,menu:true,datemenu:true},["widget.datemenu"],0,[Ext.menu,"DatePicker"],0));(Ext.cmd.derive("Ext.panel.Pinnable",Ext.Mixin,{mixinId:"pinnable",pinnable:true,pinnedTip:"Unpin this item",unpinnedTip:"Pin this item",initPinnable:function(){var b=this,a=b.isPinned();b.addTool(b.pinTool=Ext.widget({xtype:"tool",type:a?"unpin":"pin",callback:"togglePin",scope:b,tooltip:a?b.pinnedTip:b.unpinnedTip}))},isPinned:function(){return !this.floating},setPinned:function(b){var c=this,a;if(b!==c.isPinned()){a=[c,b];if(c.fireEventArgs("beforepinchange",a)!==false){c.updatePinned(b);c.fireEventArgs("pinchange",a)}}},togglePin:function(){this.setPinned(!this.isPinned())},updatePinned:function(b){var c=this,a=c.pinTool;a.setTooltip(b?c.pinnedTip:c.unpinnedTip);a.setType(b?"unpin":"pin")}},0,0,0,0,0,0,[Ext.panel,"Pinnable"],0));(Ext.cmd.derive("Ext.plugin.Manager",Ext.Base,{alternateClassName:["Ext.PluginManager","Ext.PluginMgr"],singleton:true,typeName:"ptype",create:function(b,e,d){var a,c;if(b.init){a=b}else{if(d){b=Ext.apply({},b);b.cmp=d}else{d=b.cmp}if(b.xclass){a=Ext.create(b)}else{c="plugin."+(b.ptype||e);a=Ext.ClassManager.instantiateByAlias(c,b)}}if(a&&d&&a.setCmp&&!a.setCmpCalled){a.setCmp(d);a.setCmpCalled=true}return a}},0,0,0,0,0,0,[Ext.plugin,"Manager",Ext,"PluginManager",Ext,"PluginMgr"],0));(Ext.cmd.derive("Ext.resizer.BorderSplitterTracker",Ext.resizer.SplitterTracker,{getPrevCmp:null,getNextCmp:null,calculateConstrainRegion:function(){var z=this,a=z.splitter,o=a.collapseTarget,d=a.defaultSplitMin,h=a.vertical?"Width":"Height",c="min"+h,v="max"+h,j="get"+h,u=a.neighbors,e=u.length,n=o.el.getBox(),g=n.x,p=n.y,y=n.right,k=n.bottom,r=a.vertical?(y-g):(k-p),x,l,s,m,w,t,q,b;m=(o[c]||Math.min(r,d))-r;w=o[v];if(!w){w=1000000000}else{w-=r}b=r;for(x=0;xq){w=q}}if(w-m<2){return null}n=new Ext.util.Region(p,y,k,g);z.constraintAdjusters[z.getCollapseDirection()](n,m,w,a);z.dragInfo={minRange:m,maxRange:w,targetSize:b};return n},constraintAdjusters:{left:function(c,a,b,d){c[0]=c.x=c.left=c.right+a;c.right+=b+d.getWidth()},top:function(c,a,b,d){c[1]=c.y=c.top=c.bottom+a;c.bottom+=b+d.getHeight()},bottom:function(c,a,b,d){c.bottom=c.top-a;c.top-=b+d.getHeight()},right:function(c,a,b,d){c.right=c.left-a;c[0]=c.x=c.left=c.x-b+d.getWidth()}},onBeforeStart:function(k){var g=this,h=g.splitter,d=h.collapseTarget,b=h.neighbors,c=b.length,a,j;if(d.collapsed){return false}for(a=0;ac){d.minWidth=d.el.getWidth()*a}else{d.minHeight=d.el.getHeight()*c}}if(d.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(d,arguments)},d.throttle);d.resize=function(h,i,g){if(g){Ext.resizer.ResizeTracker.prototype.resize.apply(d,arguments)}else{e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=true}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(c){var b,a=this.proxyCls;if(c.isComponent){b=c.getProxy().addCls(a)}else{b=c.createProxy({tag:"div",role:"presentation",cls:a,id:c.id+"-rzproxy"},Ext.getBody())}b.removeCls("x-proxy-el");return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(b,a){Ext.dd.DragTracker.prototype.onMouseDown.call(this,b,a);Ext.dom.Element.maskIframes()},onMouseUp:function(a){Ext.dd.DragTracker.prototype.onMouseUp.call(this,a);Ext.dom.Element.unmaskIframes()},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(q,m){var r=this,c=r.activeResizeHandle.region,g=r.getOffset(r.constrainTo?"dragTarget":null),k=r.startBox,h,o=0,s=0,j,p,a=0,u=0,t,i,b,d,n,l;c=r.convertRegionName(c);switch(c){case"south":s=g[1];b=2;break;case"north":s=-g[1];u=-s;b=2;break;case"east":o=g[0];b=1;break;case"west":o=-g[0];a=-o;b=1;break;case"northeast":s=-g[1];u=-s;o=g[0];i=[k.x,k.y+k.height];b=3;break;case"southeast":s=g[1];o=g[0];i=[k.x,k.y];b=3;break;case"southwest":o=-g[0];a=-o;s=g[1];i=[k.x+k.width,k.y];b=3;break;case"northwest":s=-g[1];u=-s;o=-g[0];a=-o;i=[k.x+k.width,k.y+k.height];b=3;break}d={width:k.width+o,height:k.height+s,x:k.x+a,y:k.y+u};j=Ext.Number.snap(d.width,r.widthIncrement);p=Ext.Number.snap(d.height,r.heightIncrement);if(j!==d.width||p!==d.height){switch(c){case"northeast":d.y-=p-d.height;break;case"north":d.y-=p-d.height;break;case"southwest":d.x-=j-d.width;break;case"west":d.x-=j-d.width;break;case"northwest":d.x-=j-d.width;d.y-=p-d.height}d.width=j;d.height=p}if(d.widthr.maxWidth){d.width=Ext.Number.constrain(d.width,r.minWidth,r.maxWidth);if(a){d.x=k.x+(k.width-d.width)}}else{r.lastX=d.x}if(d.heightr.maxHeight){d.height=Ext.Number.constrain(d.height,r.minHeight,r.maxHeight);if(u){d.y=k.y+(k.height-d.height)}}else{r.lastY=d.y}if(r.preserveRatio||q.shiftKey){h=r.startBox.width/r.startBox.height;n=Math.min(Math.max(r.minHeight,d.width/h),r.maxHeight);l=Math.min(Math.max(r.minWidth,d.height*h),r.maxWidth);if(b===1){d.height=n}else{if(b===2){d.width=l}else{t=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(t>h){d.height=n}else{d.width=l}if(c==="northeast"){d.y=k.y-(d.height-k.height)}else{if(c==="northwest"){d.y=k.y-(d.height-k.height);d.x=k.x-(d.width-k.width)}else{if(c==="southwest"){d.x=k.x-(d.width-k.width)}}}}}}r.setPosition=d.x!==r.startBox.x||d.y!==r.startBox.y;r.resize(d,m)},resize:function(d,a){var c=this,e,b=c.setPosition;if(c.dynamic||(!c.dynamic&&a)){if(b){c.target.setBox(d)}else{c.target.setSize(d.width,d.height)}}if(!a){e=c.getProxy();if(e&&e!==c.target){if(b||c.hideProxy){e.setBox(d)}else{e.setSize(d.width,d.height)}}}},onEnd:function(a){this.updateDimensions(a,true);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,"ResizeTracker"],0));(Ext.cmd.derive("Ext.resizer.Resizer",Ext.Base,{alternateClassName:"Ext.Resizable",handleCls:"x-resizable-handle",overCls:"x-resizable-handle-over",pinnedCls:"x-resizable-pinned",wrapCls:"x-resizable-wrap",wrappedCls:"x-resizable-wrapped",delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:true,handles:"s e se",height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:false,preserveRatio:false,transparent:false,possiblePositions:{n:"north",s:"south",e:"east",w:"west",se:"southeast",sw:"southwest",nw:"northwest",ne:"northeast"},touchActionMap:{n:{panY:false},s:{panY:false},e:{panX:false},w:{panX:false},se:{panX:false,panY:false},sw:{panX:false,panY:false},nw:{panX:false,panY:false},ne:{panX:false,panY:false}},ariaRole:"presentation",constructor:function(r){var s=this,m=Ext.dom.Element.unselectableCls,n=[],h,l,b,t,p,o,g,j,q,a,k,c,d,e;if(Ext.isString(r)||Ext.isElement(r)||r.dom){h=r;r=arguments[1]||{};r.target=h}s.mixins.observable.constructor.call(s,r);h=s.target;if(h){if(h.isComponent){h.addClsWithUI("resizable");if(h.minWidth){s.minWidth=h.minWidth}if(h.minHeight){s.minHeight=h.minHeight}if(h.maxWidth){s.maxWidth=h.maxWidth}if(h.maxHeight){s.maxHeight=h.maxHeight}if(h.floating){if(!s.hasOwnProperty("handles")){s.handles="n ne e se s sw w nw"}}s.el=h.getEl()}else{h=s.el=s.target=Ext.get(h)}}else{h=s.target=s.el=Ext.get(s.el)}s.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(s.width)){s.width=Ext.Number.constrain(s.width,s.minWidth,s.maxWidth)}if(Ext.isNumber(s.height)){s.height=Ext.Number.constrain(s.height,s.minHeight,s.maxHeight)}if(s.width!==null||s.height!==null){s.target.setSize(s.width,s.height)}t=s.el.dom.tagName.toUpperCase();if(t==="TEXTAREA"||t==="IMG"||t==="TABLE"){s.originalTarget=s.target;c=h.isComponent?h.getEl():h;s.el.addCls(s.wrappedCls);s.target=s.el=s.el.wrap({role:"presentation",cls:s.wrapCls,id:s.el.id+"-rzwrap",style:c.getStyle(["margin-top","margin-bottom"])});d=c.getPositioning();s.el.setPositioning(d);c.clearPositioning();j=c.getBox();if(d.position!=="absolute"){j.x=0;j.y=0}s.el.setBox(j);c.setStyle("position","absolute");s.isTargetWrapped=true}s.el.position();if(s.pinned){s.el.addCls(s.pinnedCls)}s.resizeTracker=new Ext.resizer.ResizeTracker({disabled:s.disabled,target:h,el:s.el,constrainTo:s.constrainTo,handleCls:s.handleCls,overCls:s.overCls,throttle:s.throttle,proxy:s.originalTarget?s.el:null,dynamic:s.originalTarget?true:s.dynamic,originalTarget:s.originalTarget,delegate:"."+s.handleCls,preserveRatio:s.preserveRatio,heightIncrement:s.heightIncrement,widthIncrement:s.widthIncrement,minHeight:s.minHeight,maxHeight:s.maxHeight,minWidth:s.minWidth,maxWidth:s.maxWidth});s.resizeTracker.on({mousedown:s.onBeforeResize,drag:s.onResize,dragend:s.onResizeEnd,scope:s});if(s.handles==="all"){s.handles="n s e w ne nw se sw"}a=s.handles=s.handles.split(s.delimiterRe);b=s.possiblePositions;p=a.length;l=s.handleCls+" "+s.handleCls+"-{0}";if(s.target.isComponent){e=s.target.baseCls;l+=" "+e+"-handle "+e+"-handle-{0}";if(Ext.supports.CSS3BorderRadius){l+=" "+e+"-handle-{0}-br"}}for(o=0;o-1){this.doSelect(a.record,false,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(b,e,d,h){var g=this,i,c,a;if(e){i=g.nextSelection;c="select"}else{i=g.selection;c="deselect"}a=i.view||g.primaryView;if((d||g.fireEvent("before"+c,g,b,i.rowIdx,i.colIdx))!==false&&h()!==false){if(e){a.onCellSelect(i)}else{a.onCellDeselect(i);delete g.selection}if(!d){g.fireEvent(c,g,b,i.rowIdx,i.colIdx)}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(d,e,b,c){var a=d.up("tablepanel");if(a){this.onViewRefresh(a.view)}},onUpdate:function(a){var b=this,c;if(b.isSelected(a)){c=b.selecting?b.nextSelection:b.selection;b.view.onCellSelect(c)}},onViewRefresh:function(b){var e=this,h=e.getPosition(),c,g=b.headerCt,a,d;if(h&&h.view===b){a=h.record;d=b.getColumnByPosition(h);if(!d.isDescendantOf(g)){d=g.queryById(d.id)||g.down('[text="'+d.text+'"]')||g.down('[dataIndex="'+d.dataIndex+'"]')}if(h.record){if(d&&(b.store.indexOfId(a.getId())!==-1)){c=new Ext.grid.CellContext(b).setPosition({row:a,column:d});e.setPosition(c)}}else{e.selection=null}}},selectByPosition:function(a,b){this.setPosition(a,b)}},0,0,0,0,["selection.cellmodel"],0,[Ext.selection,"CellModel"],0));(Ext.cmd.derive("Ext.selection.RowModel",Ext.selection.DataViewModel,{enableKeyNav:true,isRowModel:true,deselectOnContainerClick:false,onUpdate:function(b){var d=this,a=d.view,c;if(a&&d.isSelected(b)){c=a.indexOf(b);a.onRowSelect(c);if(b===d.lastFocused){a.onRowFocus(c,true)}}},onSelectChange:function(g,b,l,a){var j=this,m=j.views||[j.view],c=m.length,d=j.store.indexOf(g),h=b?"select":"deselect",e,k;if((l||j.fireEvent("before"+h,j,g,d))!==false&&a()!==false){for(e=0;e-1){c.push(n)}}if(c.length>0){m.deselect(c)}}else{m.selectAll()}}},getHeaderConfig:function(){var b=this,d=b.showHeaderCheckbox!==false,c=Ext.String.htmlEncode,a;a={xtype:"checkcolumn",headerCheckbox:d,isCheckerHd:d,ignoreExport:true,text:b.headerText,width:b.headerWidth,sortable:false,draggable:false,resizable:false,hideable:false,menuDisabled:true,checkOnly:b.checkOnly,checkboxAriaRole:"presentation",tdCls:b.tdCls,cls:"x-selmodel-column",editRenderer:b.editRenderer||b.renderEmpty,locked:b.hasLockedHeader(),processEvent:b.processColumnEvent,toggleAll:Ext.emptyFn,setRecordCheck:Ext.emptyFn,isRecordChecked:b.isRowSelected.bind(b)};if(!b.checkOnly){a.tabIndex=undefined;a.ariaRole="presentation";a.focusable=false;a.cellFocusable=false}else{a.useAriaElements=true;a.ariaLabel=c(b.headerAriaLabel);a.headerSelectText=c(b.headerSelectText);a.headerDeselectText=c(b.headerDeselectText);a.rowSelectText=c(b.rowSelectText);a.rowDeselectText=c(b.rowDeselectText)}return a},processColumnEvent:function(g,i,j,b,h,d,c,k){var a=i.getNavigationModel();if((d.type==="keydown"&&i.actionableMode&&d.getKey()===d.SPACE)||(!this.checkOnly&&d.type===this.triggerEvent)){a.fireEvent("navigate",{view:i,navigationModel:a,keyEvent:d,position:d.position,recordIndex:b,record:c,item:d.item,cell:d.position.cellElement,columnIndex:d.position.colIdx,column:d.position.column})}},toggleRecord:function(b,c,d,a){this[d?"select":"deselect"]([b],this.mode!=="SINGLE")},renderEmpty:function(){return" "},refresh:function(){Ext.selection.RowModel.prototype.refresh.apply(this,arguments);this.updateHeaderState()},selectByPosition:function(a,b){if(!a.isCellContext){a=new Ext.grid.CellContext(this.view).setPosition(a.row,a.column)}if(!this.checkOnly||a.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,a,b)}},onSelectChange:function(a,c){var d=this,b;Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(d.column){d.column.updateCellAriaDescription(a,c)}if(!d.suspendChange){d.updateHeaderState()}},onStoreLoad:function(){Ext.selection.RowModel.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()},onStoreAdd:function(){Ext.selection.RowModel.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()},onStoreRemove:function(){Ext.selection.RowModel.prototype.onStoreRemove.apply(this,arguments);this.updateHeaderState()},onStoreRefresh:function(){Ext.selection.RowModel.prototype.onStoreRefresh.apply(this,arguments);this.updateHeaderState()},maybeFireSelectionChange:function(a){if(a&&!this.suspendChange){this.updateHeaderState()}Ext.selection.RowModel.prototype.maybeFireSelectionChange.apply(this,arguments)},resumeChanges:function(){Ext.selection.RowModel.prototype.resumeChanges.call(this);if(!this.suspendChange){this.updateHeaderState()}},updateHeaderState:function(){var g=this,h=g.store,e=h.getCount(),j=g.views,k=false,a=0,b,d,c;if(!h.isBufferedStore&&e>0){b=g.selected;k=true;for(c=0,d=b.getCount();c-1){++a}}k=e===a}if(j&&j.length){g.column.setHeaderStatus(k)}},vetoSelection:function(g){var c=this,b=c.column,a,d,h;if(c.checkOnly){d=g.type===b.triggerEvent&&g.getTarget(c.column.getCellSelector());h=g.getKey()===g.SPACE&&g.position.column===b;a=!(d||h)}return a||Ext.selection.RowModel.prototype.vetoSelection.call(this,g)},privates:{onBeforeNavigate:function(a){var b=a.keyEvent;if(this.selectionMode!=="SINGLE"){a.ctrlKey=a.ctrlKey||b.ctrlKey||(b.type===this.column.triggerEvent&&!b.shiftKey)||b.getKey()===b.SPACE}},selectWithEventMulti:function(a,d,b){var c=this;if(!d.shiftKey&&!d.ctrlKey&&d.getTarget(c.column.getCellSelector())){if(b){c.doDeselect(a)}else{c.doSelect(a,true)}}else{Ext.selection.RowModel.prototype.selectWithEventMulti.call(this,a,d,b)}}}},1,0,0,0,["selection.checkboxmodel"],0,[Ext.selection,"CheckboxModel"],function(a){a.prototype.checkSelector="."+Ext.grid.column.Check.prototype.checkboxCls}));(Ext.cmd.derive("Ext.selection.TreeModel",Ext.selection.RowModel,{selectOnExpanderClick:false,constructor:function(a){var b=this;Ext.selection.RowModel.prototype.constructor.call(this,a);if(b.pruneRemoved){b.pruneRemoved=false;b.pruneRemovedNodes=true}},getStoreListeners:function(){var b=this,a=Ext.selection.RowModel.prototype.getStoreListeners.call(this);a.noderemove=b.onNodeRemove;return a},onNodeRemove:function(c,d,a){if(!a){var b=[];this.gatherSelected(d,b);if(b.length){this.deselect(b)}}},pruneRemovedOnRefresh:function(){return this.pruneRemovedNodes},vetoSelection:function(d){var c=this.view,b=this.selectOnExpanderClick,a=!b&&d.type==="click"&&d.getTarget(c.expanderSelector||(c.lockingPartner&&c.lockingPartner.expanderSelector));return a||Ext.selection.RowModel.prototype.vetoSelection.call(this,d)},privates:{gatherSelected:function(d,c){var e=d.childNodes,b,a,g;if(this.selected.containsKey(d.id)){c.push(d)}if(e){for(b=0,a=e.length;b=a.value){g=a.value}}c.setValue(b,g,false);c.fireEvent("drag",c,h,d)}},getValueFromTracker:function(){var b=this.slider,a=this.tracker.getXY(),c;a[0]+=this.pointerOffset[0];a[1]+=this.pointerOffset[1];c=b.getTrackpoint(a);if(c!==undefined){return b.reversePixelValue(c)}},onDragEnd:function(d){var b=this,a=b.slider,c=b.value;a.onDragEnd(b,d);b.el.removeCls("x-slider-thumb-drag");b.dragging=a.dragging=false;a.fireEvent("dragend",a,d);if(b.dragStartValue!==c){a.fireEvent("changecomplete",a,c,b)}},destroy:function(){var a=this,b=this.anim;if(b){b.end()}a.el=a.tracker=a.anim=Ext.destroy(a.el,a.tracker);a.callParent()}},1,0,0,0,0,0,[Ext.slider,"Thumb"],0));(Ext.cmd.derive("Ext.slider.Tip",Ext.tip.Tip,{minWidth:10,offsets:null,align:null,position:"",defaultVerticalPosition:"left",defaultHorizontalPosition:"top",isSliderTip:true,init:function(c){var b=this,d,a;if(!b.position){b.position=c.vertical?b.defaultVerticalPosition:b.defaultHorizontalPosition}switch(b.position){case"top":a=[0,-10];d="b-t?";break;case"bottom":a=[0,10];d="t-b?";break;case"left":a=[-10,0];d="r-l?";break;case"right":a=[10,0];d="l-r?"}if(!b.align){b.align=d}if(!b.offsets){b.offsets=a}c.on({scope:b,dragstart:b.onSlide,drag:b.onSlide,dragend:b.hide,destroy:b.destroy})},onSlide:function(c,d,a){var b=this;b.update(b.getText(a));b.show();b.el.alignTo(a.el,b.align,b.offsets)},getText:function(a){return String(a.value)}},0,["slidertip"],["component","box","container","panel","tip","slidertip"],{component:true,box:true,container:true,panel:true,tip:true,slidertip:true},["widget.slidertip"],0,[Ext.slider,"Tip"],0));(Ext.cmd.derive("Ext.slider.Multi",Ext.form.field.Base,{alternateClassName:"Ext.slider.MultiSlider",vertical:false,minValue:0,maxValue:100,decimalPrecision:0,keyIncrement:1,pageSize:10,increment:0,clickRange:[5,15],clickToChange:true,animate:true,dragging:false,constrainThumbs:true,useTips:true,tipText:null,defaultBindProperty:"values",ariaRole:"slider",focusable:true,needArrowKeys:true,tabIndex:0,skipLabelForAttribute:true,focusCls:"slider-focus",childEls:["endEl","innerEl"],fieldSubTpl:['
    tabindex="{tabIdx}"',' {$}="{.}"',' {$}="{.}"',">",'","
    ",{renderThumbs:function(g,e){var j=e.$comp,h=0,c=j.thumbs,b=c.length,d,a;for(;hg&&a.index>b.index){continue}b=a;l=h}}return b},onKeyDown:function(d){var c=this,a=c.ariaEl.dom,b,g;b=d.getKey();if(c.disabled||c.thumbs.length!==1){if(b!==d.TAB){d.preventDefault()}return}switch(b){case d.UP:case d.RIGHT:g=d.ctrlKey?c.maxValue:c.getValue(0)+c.keyIncrement;break;case d.DOWN:case d.LEFT:g=d.ctrlKey?c.minValue:c.getValue(0)-c.keyIncrement;break;case d.HOME:g=c.minValue;break;case d.END:g=c.maxValue;break;case d.PAGE_UP:g=c.getValue(0)+c.pageSize;break;case d.PAGE_DOWN:g=c.getValue(0)-c.pageSize;break}if(g!==undefined){d.stopEvent();g=c.normalizeValue(g);c.setValue(0,g,undefined,true);if(a){a.setAttribute("aria-valuenow",g)}}},normalizeValue:function(b){var c=this,a=c.zeroBasedSnapping?"snap":"snapInRange";b=Ext.Number[a](b,c.increment,c.minValue,c.maxValue);b=Ext.util.Format.round(b,c.decimalPrecision);b=Ext.Number.constrain(b,c.minValue,c.maxValue);return b},setMinValue:function(h){var g=this,c=g.thumbs,b=c.length,a=g.ariaEl.dom,d,e;g.minValue=h;for(e=0;eh){g.setValue(e,h,false)}}if(a){a.setAttribute("aria-valuemax",h)}g.syncThumbs()},setValue:function(g,l,b,d){var k=this,j=k.thumbs,h=k.ariaEl.dom,a,e,c,m;if(Ext.isArray(g)){m=g;b=l;for(c=0,e=m.length;c{% this.renderTabGuard(out, values, \'before\'); %}{% this.renderTabGuard(out, values, \'after\'); %}',_reverseDockNames:{left:"right",right:"left"},_layoutAlign:{top:"end",right:"begin",bottom:"begin",left:"end"},initComponent:function(){var d=this,a=d.initialConfig.layout,c=a&&a.align,b=a&&a.overflowHandler;if(d.plain){d.addCls(d.baseCls+"-plain")}Ext.panel.Bar.prototype.initComponent.call(this);d.setLayout({align:c||(d.getTabStretchMax()?"stretchmax":d._layoutAlign[d.dock]),overflowHandler:b||"scroller"});d.on({click:d.onClick,element:"el",scope:d})},ensureTabVisible:function(b){var c=this,d=c.tabPanel,a=c.layout.overflowHandler;if(c.rendered&&a&&c.tooNarrow&&a.scrollToItem){if(b||b===0){if(!b.isTab){if(Ext.isNumber(b)){b=this.items.getAt(b)}else{if(b.isComponent&&d&&d.items.contains(b)){b=b.tab}}}}if(!b){b=c.activeTab}if(b){a.scrollToItem(b)}}},initRenderData:function(){var a=this;return Ext.apply(Ext.panel.Bar.prototype.initRenderData.call(this),{bodyCls:a.bodyCls,baseBodyCls:a._baseBodyCls,bodyTargetCls:a.bodyTargetCls,stripCls:a._stripCls,dock:a.dock})},setDock:function(h){var g=this,a=g.items,c=g.ownerCt,e,b,d;a=a&&a.items;if(a){for(b=0,d=a.length;b1){if(d&&d!==b&&!d.disabled){a=d}else{a=b.next("tab[disabled=false]")||b.prev("tab[disabled=false]")}}return a||c.activeTab},setActiveTab:function(b,a){var c=this;if(!b.disabled&&b!==c.activeTab){if(c.activeTab){if(c.activeTab.destroyed){c.previousTab=null}else{c.previousTab=c.activeTab;c.activeTab.deactivate();c.deactivateFocusable(c.activeTab)}}b.activate();c.activateFocusable(b);c.activeTab=b;c.needsScroll=true;if(!a){c.fireEvent("change",c,b,b.card);c.updateLayout()}}},privates:{adjustTabPositions:function(){var h=this,a=h.items.items,d=a.length,g,b,e,c,j;if(!Ext.isIE8){j=h._getTabAdjustProp();while(d--){g=a[d];e=g.el;b=g.lastBox;c=g.isTab?g.getActualRotation():0;if(c===1&&g.isVisible()){e.setStyle(j,(b.x+b.width)+"px")}else{if(c===2&&g.isVisible()){e.setStyle(j,(b.x-b.height)+"px")}}}}},applyTargetCls:function(a){this.bodyTargetCls=a},_getTabAdjustProp:function(){return"left"},getTargetEl:function(){return this.body||this.frameBody||this.el},onClick:function(h,g){var d=this,i,c,b,a;if(h.getTarget(".x-box-scroller")){return}if(Ext.isIE8&&d.vertical){a=d.getTabInfoFromPoint(h.getXY());c=a.tab;b=a.close}else{i=h.getTarget("."+Ext.tab.Tab.prototype.baseCls);c=i&&Ext.getCmp(i.id);b=c&&c.closeEl&&(g===c.closeEl.dom)}if(b){h.preventDefault()}if(c&&c.isDisabled&&!c.isDisabled()){c.beforeClick(b);if(c.closable&&b){c.onCloseClick()}else{d.doActivateTab(c)}}},onOverflowMenuItemClick:function(h,d,g,b){var c=d&&d.masterComponent,a=this.layout.overflowHandler;if(c&&!c.isDisabled()){this.doActivateTab(c);if(a.menuTrigger){a.menuTrigger.focus()}}},doActivateTab:function(a){var b=this.tabPanel;if(b){if(!a.disabled){b.setActiveTab(a.card)}}else{this.setActiveTab(a)}},onFocusableContainerFocus:function(c){var b=this,a=b.mixins.focusablecontainer,d;d=a.onFocusableContainerFocus.call(b,c);if(d&&d.isTab){b.doActivateTab(d)}},onFocusableContainerFocusEnter:function(c){var b=this,a=b.mixins.focusablecontainer,d;d=a.onFocusableContainerFocusEnter.call(b,c);if(d&&d.isTab){b.doActivateTab(d)}},focusChild:function(e,b){var c=this,a=c.mixins.focusablecontainer,d;d=a.focusChild.call(c,e,b);if(c.activateOnFocus&&d&&d.isTab){c.doActivateTab(d)}}}},0,["tabbar"],["component","box","container","tabbar"],{component:true,box:true,container:true,tabbar:true},["widget.tabbar"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.tab,"Bar"],0));(Ext.cmd.derive("Ext.tab.Panel",Ext.panel.Panel,{alternateClassName:["Ext.TabPanel"],config:{tabBar:undefined,tabPosition:"top",tabRotation:"default",tabStretchMax:true},removePanelHeader:true,plain:false,itemCls:"x-tabpanel-child",minTabWidth:undefined,maxTabWidth:undefined,deferredRender:true,_defaultTabRotation:{top:0,right:1,bottom:0,left:2},initComponent:function(){var g=this,c=g.activeTab!==null?(g.activeTab||0):null,e=g.dockedItems,h=g.header,d=g.tabBarHeaderPosition,b=g.getTabBar(),a;g.layout=new Ext.layout.container.Card(Ext.apply({owner:g,deferredRender:g.deferredRender,itemCls:g.itemCls,activeItem:c},g.layout));if(d!=null){h=g.header=Ext.apply({},h);a=h.items=(h.items?h.items.slice():[]);h.itemPosition=d;a.push(b);h.hasTabBar=true}else{e=[].concat(g.dockedItems||[]);e.push(b);g.dockedItems=e}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);c=g.activeTab=g.getComponent(c);if(c){b.setActiveTab(c.tab,true)}},onRender:function(){var b=this.items.items,a=b.length,c;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(c=0;cr){h=p.slice(r,u+1);s.add(h)}else{for(o=r-1;o>=t;o--){s.remove(p[o],false)}}}else{for(o=0;o','
    lineempty" role="presentation">
    ',"",'
    -end-plus {expanderCls}" role="presentation">
    ','','
    {checkboxCls}-checked">
    ',"
    ",'','','style="font-family:{glyphFontFamily}"',"",">{glyph}","",'','","",' role="presentation" class="{childCls} {baseIconCls} {customIconCls} ','{baseIconCls}-leafparent-expandedparent {iconCls}" ','style="background-image:url({icon})"/>>',"",'','{value}',"",'{value}',""],uiFields:{checked:1,icon:1,iconCls:1},rowFields:{expanded:1,loaded:1,expandable:1,leaf:1,loading:1,qtip:1,qtitle:1,cls:1},initComponent:function(){var a=this;a.rendererScope=a.scope;a.setupRenderer();a.innerRenderer=a.renderer;a.renderer=a.treeRenderer;Ext.grid.column.Column.prototype.initComponent.call(this);a.scope=a;a.hasCustomRenderer=a.innerRenderer&&a.innerRenderer.length>1},treeRenderer:function(i,a,e,b,c,j,h){var g=this,k=e.get("cls"),d;if(a&&k){a.tdCls+=" "+k}d=g.initTemplateRendererData(i,a,e,b,c,j,h);return g.lookupTpl("cellTpl").apply(d)},initTemplateRendererData:function(n,a,g,b,e,o,l){var k=this,c=k.innerRenderer,d=g.data,m=g.parentNode,p=l.rootVisible,q=[],h,j,i;while(m&&(p||m.data.depth>0)){h=m.data;q[p?h.depth:h.depth-1]=m.isLastVisible()?0:1;m=m.parentNode}if(a){a.iconCls=a.icon=a.glyph=null}else{a={}}n=c?c.apply(k.rendererScope,arguments):n;j=a.glyph||d.glyph;if(j){j=Ext.Glyph.fly(j);i=j.fontFamily;j=j.character}return{record:g,baseIconCls:k.iconCls,customIconCls:(d.icon||d.iconCls)?k.customIconCls:"",glyph:j,glyphFontFamily:i,iconCls:a.iconCls||d.iconCls,icon:a.icon||d.icon,checkboxCls:k.checkboxCls,checked:d.checked,elbowCls:k.elbowCls,expanderCls:k.expanderCls,textCls:k.textCls,leaf:d.leaf,expandable:g.isExpandable(),expanded:d.expanded,isLast:g.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:d.href,hrefTarget:d.hrefTarget,lines:q,metaData:a,childCls:k.getChildCls?k.getChildCls()+" ":"",value:n}},shouldUpdateCell:function(b,d){var e=this,c=0,a,g;if(e.hasCustomRenderer){return 1}if(d){a=d.length;for(;c1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,a);c.view.grid.on({columnschanged:c.onColumnsChanged,scope:c})},onKeyNavCreate:function(a){var b=this.onAsterisk;a.map.addBinding([{key:"8",shift:true,handler:b,scope:this},{key:Ext.event.Event.NUM_MULTIPLY,handler:b,scope:this}])},onColumnsChanged:function(){this.isTreeGrid=this.view.ownerGrid.getVisibleColumnManager().getColumns().length>1},onCellClick:function(d,b,g,c,h,e,a){Ext.grid.NavigationModel.prototype.onCellClick.call(this,d,b,g,c,h,e,a);return !a.nodeToggled},onKeyLeft:function(d){var c=this,b=d.view,a=c.record;if(c.isTreeGrid&&!d.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,d)}if(d.position.column.isTreeColumn&&a.isExpanded()){b.collapse(a)}else{a=a.parentNode;if(a&&!(a.isRoot()&&!b.rootVisible)){c.setPosition(a,null,d)}}},onKeyRight:function(c){var b=this,a=b.record;if(b.isTreeGrid&&!c.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,c)}if(!a.isLeaf()){if(c.position.column.isTreeColumn&&!a.isExpanded()){c.view.expand(a)}else{if(a.isExpanded()){a=a.childNodes[0];if(a){b.setPosition(a)}}}}},onKeyEnter:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else{Ext.grid.NavigationModel.prototype.onKeyEnter.call(this,a)}},onKeySpace:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else{Ext.grid.NavigationModel.prototype.onKeySpace.call(this,a)}},toggleCheck:function(a){this.view.onCheckChange(a)},onAsterisk:function(a){this.view.ownerGrid.expandAll()}},0,0,0,0,["view.navigation.tree"],0,[Ext.tree,"NavigationModel"],0));(Ext.cmd.derive("Ext.tree.View",Ext.view.Table,{config:{selectionModel:{type:"treemodel"}},isTreeView:true,loadingCls:"x-grid-tree-loading",expandedCls:"x-grid-tree-node-expanded",leafCls:"x-grid-tree-node-leaf",expanderSelector:".x-tree-expander",checkboxSelector:".x-tree-checkbox",expanderIconOverCls:"x-tree-expander-over",nodeAnimWrapCls:"x-tree-animator-wrap",ariaRole:"treegrid",loadMask:false,rootVisible:true,expandDuration:250,collapseDuration:250,toggleOnDblClick:true,stripeRows:false,treeRowTpl:["{%","this.processRowValues(values);","this.nextTpl.applyOut(values, out, parent);","%}",{priority:10,processRowValues:function(c){var b=c.record,a=c.view;c.rowAttr["data-qtip"]=b.get("qtip")||"";c.rowAttr["data-qtitle"]=b.get("qtitle")||"";c.rowAttr["aria-level"]=b.getDepth()+1;if(b.isLeaf()){c.rowClasses.push(a.leafCls)}else{if(b.isExpanded()){c.rowClasses.push(a.expandedCls);c.rowAttr["aria-expanded"]=true}else{c.rowAttr["aria-expanded"]=false}}if(b.isLoading()){c.rowClasses.push(a.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=false}else{if(a.initialConfig.animate===undefined){a.animate=Ext.enableFx}}a.store=a.panel.getStore();a.onRootChange(a.store.getRoot());a.animQueue={};a.animWraps={};Ext.view.Table.prototype.initComponent.call(this);a.store.setRootVisible(a.rootVisible);a.addRowTpl(a.lookupTpl("treeRowTpl"))},onFillComplete:function(e,d,b){var c=this,a=c.store,g=a.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||g===-1){return}c.onAdd(c.store,b,g);c.refreshPartner()},refreshPartner:function(){var a=this.lockingPartner;if(a){a.refresh()}},afterRender:function(){var a=this;Ext.view.Table.prototype.afterRender.call(this);a.el.on({scope:a,delegate:a.expanderSelector,mouseover:a.onExpanderMouseOver,mouseout:a.onExpanderMouseOut})},processUIEvent:function(a){if(a.getTarget("."+this.nodeAnimWrapCls,this.el)){return false}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},getChecked:function(){var a=[];this.node.cascade(function(b){if(b.get("checked")){a.push(b)}});return a},isItemChecked:function(a){return a.get("checked")},createAnimWrap:function(a,b){var e=this,d=e.getNode(a),c;c=Ext.fly(d).insertSibling({role:"presentation",tag:"div",cls:e.nodeAnimWrapCls},"after");return{record:a,node:d,el:c,expanding:false,collapsing:false,animateEl:c,targetEl:c}},getAnimWrap:function(d,a){if(!this.animate){return null}var b=this.animWraps,c=b[d.internalId];if(a!==false){while(!c&&d){d=d.parentNode;if(d){c=b[d.internalId]}}}return c},doAdd:function(b,g){var h=this,d=b[0],i=d.parentNode,j=h.all,n,c=h.getAnimWrap(i),l,k,e,m,a;if(!c||!c.expanding){return Ext.view.Table.prototype.doAdd.call(this,b,g)}m=h.bufferRender(b,g,true);a=m.children;i=c.record;l=c.targetEl;k=l.dom.childNodes;e=k.length;n=g-h.indexInStore(i)-1;if(!e||n>=e){l.appendChild(m.fragment,true)}else{Ext.fly(k[n]).insertSibling(a,"before",true)}j.insert(g,a);return a},onRemove:function(g,a,b){var d=this,e,c,j=d.hasListeners.remove,h;if(d.viewReady){e=d.store.getCount()===0;if(d.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,g,a,b)}if(j){h=this.all.slice(b,b+a.length)}if(e){d.refresh()}else{for(c=a.length-1,b+=c;c>=0;--c,--b){d.doRemove(a[c],b)}d.refreshSizePending=true}if(j){d.fireItemMutationEvent("itemremove",a,b,h,d)}}},doRemove:function(a,c){var h=this,d=h.all,b=h.getAnimWrap(a),g=d.item(c),e=g?g.dom:null;if(!e||!b||!b.collapsing){return Ext.view.Table.prototype.doRemove.call(this,a,c)}b.targetEl.dom.insertBefore(e,b.targetEl.dom.firstChild);d.removeElement(c)},onBeforeExpand:function(d,b,c){var e=this,a;if(e.rendered&&e.all.getCount()&&e.animate){if(e.getNode(d)){a=e.getAnimWrap(d,false);if(!a){a=e.animWraps[d.internalId]=e.createAnimWrap(d);a.animateEl.setHeight(0)}else{if(a.collapsing){a.targetEl.select(e.itemSelector).destroy()}}a.expanding=true;a.collapsing=false}}},onExpand:function(i){var h=this,e=h.animQueue,a=i.getId(),c=h.getNode(i),g=c?h.indexOf(c):-1,d,b,j;if(h.singleExpand){h.ensureSingleExpand(i)}if(g===-1){return}d=h.getAnimWrap(i,false);if(!d){i.isExpandingOrCollapsing=false;h.fireEvent("afteritemexpand",i,g,c);return}b=d.animateEl;j=d.targetEl;b.stopAnimation();e[a]=true;Ext.on("idle",function(){b.dom.style.height="0px"},null,{single:true});b.animate({from:{height:0},to:{height:j.dom.scrollHeight},duration:h.expandDuration,listeners:{afteranimate:function(){var k=j.dom.childNodes,l=Ext.Element.getActiveElement();if(k.length){if(!j.contains(l)){l=null}d.el.insertSibling(k,"before",true);if(l){Ext.fly(l).focus()}}d.el.destroy();h.animWraps[d.record.internalId]=e[a]=null}},callback:function(){i.isExpandingOrCollapsing=false;if(!h.destroyed){h.refreshSize(true)}h.fireEvent("afteritemexpand",i,g,c)}})},onBeforeCollapse:function(e,b,c,h,d){var g=this,a;if(g.rendered&&g.all.getCount()){if(g.animate){if(e.isVisible()){a=g.getAnimWrap(e);if(!a){a=g.animWraps[e.internalId]=g.createAnimWrap(e,c)}else{if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}}a.expanding=false;a.collapsing=true;a.callback=h;a.scope=d}}else{g.onCollapseCallback=h;g.onCollapseScope=d}}},onCollapse:function(d){var g=this,a=g.animQueue,i=d.getId(),e=g.getNode(d),c=e?g.indexOf(e):-1,b=g.getAnimWrap(d),h;if(!g.all.getCount()||!d.isVisible()){return}if(!b){d.isExpandingOrCollapsing=false;g.fireEvent("afteritemcollapse",d,c,e);Ext.callback(g.onCollapseCallback,g.onCollapseScope);g.onCollapseCallback=g.onCollapseScope=null;return}h=b.animateEl;a[i]=true;h.stopAnimation();h.animate({to:{height:0},duration:g.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();g.animWraps[b.record.internalId]=a[i]=null}},callback:function(){d.isExpandingOrCollapsing=false;if(!g.destroyed){g.refreshSize(true)}g.fireEvent("afteritemcollapse",d,c,e);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(d,c,h,e){var g=this,b=!!g.animate,a;if(!b||!d.isExpandingOrCollapsing){if(!d.isLeaf()){d.isExpandingOrCollapsing=b}Ext.suspendLayouts();a=d.expand(c,h,e);Ext.resumeLayouts(true);return a}},collapse:function(c,b,g,d){var e=this,a=!!e.animate;if(!a||!c.isExpandingOrCollapsing){if(!c.isLeaf()){c.isExpandingOrCollapsing=a}return c.collapse(b,g,d)}},toggle:function(b,a,d,c){if(b.isExpanded()){this.collapse(b,a,d,c)}else{this.expand(b,a,d,c)}},onItemDblClick:function(a,g,c,h){var d=this,b=d.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,g,c,h);if(d.toggleOnDblClick&&a.isExpandable()&&!(b&&b.clicksToEdit===2)){d.toggle(a)}},onCellClick:function(a,c,b,i,j,h){var g=this,d=h.position.column;if(d.isTreeColumn){if(h.getTarget(g.checkboxSelector,a)&&b.get("checked")!=null){g.onCheckChange(h);if(d.stopSelection){h.stopSelection=true}}else{if(h.getTarget(g.expanderSelector,a)&&b.isExpandable()){g.getNavigationModel().setPosition(h.position);g.toggle(b,h.ctrlKey);h.nodeToggled=true}}return Ext.view.Table.prototype.onCellClick.call(this,a,c,b,i,j,h)}},onCheckChange:function(g){var d=this,b=g.record,a=b.get("checked"),c;if(a===1){c=true}else{c=!a}d.setChecked(b,c,g)},setChecked:function(c,p,s,d){var u=this,k=u.checkPropagationFlags[u.ownerGrid.checkPropagation.toLowerCase()],n=c.data.checked,h=u.ownerGrid.triStateCheckbox?1:false,t=(!d||d.propagateCheck!==false)&&(k&1),a=(!d||d.checkParent!==false)&&(k&2),g,j,q,l,b,m=0,r,o;if(u.fireEvent("beforecheckchange",c,n,s)===false){return}if(p!==1&&t){b=c.childNodes;r=b.length;for(o=0;o=i.top&&h<(i.top+d)){return"before"}else{if(!a&&(k||(h>=(i.bottom-d)&&h<=i.bottom))){return"after"}else{return"append"}}},isValidDropPoint:function(b,j,n,k,g){if(!b||!g.item){return false}var o=this.view,l=o.getRecord(b),d=g.records,a=d.length,m=d.length,c,h;if(!(l&&j&&a)){return false}for(c=0;c2)?a[2]:null,h=(i>3)?a[3]:"/",d=(i>4)?a[4]:null,g=(i>5)?a[5]:false;document.cookie=c+"="+escape(e)+((b===null)?"":("; expires="+b.toUTCString()))+((h===null)?"":("; path="+h))+((d===null)?"":("; domain="+d))+((g===true)?"; secure":"")},get:function(c){var g=document.cookie.split("; "),a=g.length,e,d,b;for(d=0;d'+this.removeRowText+""},onFocusLeave:function(a){this.onDismissSearch();Ext.grid.Panel.prototype.onFocusLeave.call(this,a)},afterComponentLayout:function(c,a,e,g){var d=this,b=d.searchPopup;Ext.grid.Panel.prototype.afterComponentLayout.call(this,c,a,e,g);if(b&&b.isVisible()){b.showBy(d,d.popupAlign)}},privates:{popupAlign:"tl-tr?",onGlobalScroll:function(a){if(!this.owns(a.getElement())){this.onDismissSearch()}},onDismissSearch:function(b){var a=this.searchPopup;if(a&&(!b||!(a.owns(b.getTarget())||this.owns(b.getTarget())))){this.scrollListeners.destroy();this.touchListeners.destroy();a.hide()}},onShowSearch:function(b,d,g){var e=this,a=e.searchPopup,c=e.getStore();if(!a){a=Ext.merge({owner:e,field:e.fieldName,floating:true,alignOnScroll:false},e.getSearch());e.searchPopup=a=e.add(a);if(c.getCount()){a.selectRecords(c.getRange())}}a.invocationEvent=g;a.showBy(e,e.popupAlign);if(!g||g.pointerType!=="touch"){a.lookupReference("searchField").focus()}e.scrollListeners=Ext.on({scroll:"onGlobalScroll",scope:e,destroyable:true});e.touchListeners=Ext.getDoc().on({translate:false,touchstart:e.onDismissSearch,scope:e,delegated:false,destroyable:true})}}},0,["multiselector"],["component","box","container","panel","tablepanel","gridpanel","grid","multiselector"],{component:true,box:true,container:true,panel:true,tablepanel:true,gridpanel:true,grid:true,multiselector:true},["widget.multiselector"],0,[Ext.view,"MultiSelector"],0));(Ext.cmd.derive("Ext.window.Toast",Ext.window.Window,{isToast:true,cls:"x-toast",bodyPadding:10,autoClose:true,plain:false,draggable:false,resizable:false,shadow:false,focus:Ext.emptyFn,anchor:null,useXAxis:false,align:"t",alwaysOnTop:true,spacing:6,paddingX:30,paddingY:10,slideInAnimation:"easeIn",slideBackAnimation:"bounceOut",slideInDuration:500,slideBackDuration:500,hideDuration:500,autoCloseDelay:3000,stickOnClick:false,stickWhileHover:true,closeOnMouseDown:false,closable:false,focusable:false,isHiding:false,isFading:false,destroyAfterHide:false,closeOnMouseOut:false,xPos:0,yPos:0,constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.window.Window.prototype.constructor.call(this,a)},initComponent:function(){var a=this;if(a.autoClose&&a.closable==null){a.closable=false}a.updateAlignment(a.align);a.setAnchor(a.anchor);Ext.window.Window.prototype.initComponent.call(this)},onRender:function(){var a=this;Ext.window.Window.prototype.onRender.apply(this,arguments);a.el.hover(a.onMouseEnter,a.onMouseLeave,a);if(a.closeOnMouseDown){Ext.getDoc().on("mousedown",a.onDocumentMousedown,a)}},alignmentProps:{br:{paddingFactorX:-1,paddingFactorY:-1,siblingAlignment:"br-br",anchorAlign:"tr-br"},bl:{paddingFactorX:1,paddingFactorY:-1,siblingAlignment:"bl-bl",anchorAlign:"tl-bl"},tr:{paddingFactorX:-1,paddingFactorY:1,siblingAlignment:"tr-tr",anchorAlign:"br-tr"},tl:{paddingFactorX:1,paddingFactorY:1,siblingAlignment:"tl-tl",anchorAlign:"bl-tl"},b:{paddingFactorX:0,paddingFactorY:-1,siblingAlignment:"b-b",useXAxis:0,anchorAlign:"t-b"},t:{paddingFactorX:0,paddingFactorY:1,siblingAlignment:"t-t",useXAxis:0,anchorAlign:"b-t"},l:{paddingFactorX:1,paddingFactorY:0,siblingAlignment:"l-l",useXAxis:1,anchorAlign:"r-l"},r:{paddingFactorX:-1,paddingFactorY:0,siblingAlignment:"r-r",useXAxis:1,anchorAlign:"l-r"},x:{br:{anchorAlign:"bl-br"},bl:{anchorAlign:"br-bl"},tr:{anchorAlign:"tl-tr"},tl:{anchorAlign:"tr-tl"}}},updateAlignment:function(e){var c=this,a=c.alignmentProps,b=a[e],d=a.x[e];if(d&&c.useXAxis){Ext.applyIf(c,d)}Ext.applyIf(c,b)},getXposAlignedToAnchor:function(){var c=this,g=c.align,a=c.anchor,d=a&&a.el,b=c.el,e=0;if(d&&d.dom){if(!c.useXAxis){e=b.getLeft()}else{if(g==="br"||g==="tr"||g==="r"){e+=d.getAnchorXY("r")[0];e-=(b.getWidth()+c.paddingX)}else{e+=d.getAnchorXY("l")[0];e+=c.paddingX}}}return e},getYposAlignedToAnchor:function(){var d=this,g=d.align,a=d.anchor,e=a&&a.el,b=d.el,c=0;if(e&&e.dom){if(d.useXAxis){c=b.getTop()}else{if(g==="br"||g==="bl"||g==="b"){c+=e.getAnchorXY("b")[1];c-=(b.getHeight()+d.paddingY)}else{c+=e.getAnchorXY("t")[1];c+=d.paddingY}}}return c},getXposAlignedToSibling:function(b){var c=this,e=c.align,a=c.el,d;if(!c.useXAxis){d=a.getLeft()}else{if(e==="tl"||e==="bl"||e==="l"){d=(b.xPos+b.el.getWidth()+b.spacing)}else{d=(b.xPos-a.getWidth()-c.spacing)}}return d},getYposAlignedToSibling:function(b){var d=this,e=d.align,a=d.el,c;if(d.useXAxis){c=a.getTop()}else{if(e==="tr"||e==="tl"||e==="t"){c=(b.yPos+b.el.getHeight()+b.spacing)}else{c=(b.yPos-a.getHeight()-b.spacing)}}return c},getToasts:function(){var a=this.anchor,c=this.anchorAlign,b=a.activeToasts||(a.activeToasts={});return b[c]||(b[c]=[])},setAnchor:function(a){var c=this,b;c.anchor=a=((typeof a==="string")?Ext.getCmp(a):a);if(!a){b=Ext.window.Toast;c.anchor=b.bodyAnchor||(b.bodyAnchor={el:Ext.getBody()})}},beforeShow:function(){var a=this;if(a.stickOnClick){a.body.on("click",function(){a.cancelAutoClose()})}if(a.autoClose){if(!a.closeTask){a.closeTask=new Ext.util.DelayedTask(a.doAutoClose,a)}}a.el.setX(-10000);a.el.setOpacity(1)},afterShow:function(){var e=this,b=e.el,d,a,c,g;Ext.window.Window.prototype.afterShow.apply(this,arguments);d=e.getToasts();c=d.length;a=c&&d[c-1];if(a){b.alignTo(a.el,e.siblingAlignment,[0,0]);e.xPos=e.getXposAlignedToSibling(a);e.yPos=e.getYposAlignedToSibling(a)}else{b.alignTo(e.anchor.el,e.anchorAlign,[(e.paddingX*e.paddingFactorX),(e.paddingY*e.paddingFactorY)],false);e.xPos=e.getXposAlignedToAnchor();e.yPos=e.getYposAlignedToAnchor()}Ext.Array.include(d,e);if(e.enableAnimations){g=b.getXY();b.animate({from:{x:g[0],y:g[1]},to:{x:e.xPos,y:e.yPos,opacity:1},easing:e.slideInAnimation,duration:e.slideInDuration,dynamic:true,callback:e.afterPositioned,scope:e})}else{e.setLocalXY(e.xPos,e.yPos);e.afterPositioned()}},afterPositioned:function(){var a=this;if(!a.destroying&&!a.destroyed&&a.autoClose){a.closeTask.delay(a.autoCloseDelay)}},onDocumentMousedown:function(a){if(this.isVisible()&&!this.owns(a.getTarget())){this.hide()}},slideBack:function(){var e=this,b=e.anchor,g=b&&b.el,c=e.el,d=e.getToasts(),a=Ext.Array.indexOf(d,e);if(!e.isHiding&&c&&c.dom&&g&&g.isVisible()){if(a){e.xPos=e.getXposAlignedToSibling(d[a-1]);e.yPos=e.getYposAlignedToSibling(d[a-1])}else{e.xPos=e.getXposAlignedToAnchor();e.yPos=e.getYposAlignedToAnchor()}e.stopAnimation();if(e.enableAnimations){c.animate({to:{x:e.xPos,y:e.yPos},easing:e.slideBackAnimation,duration:e.slideBackDuration,dynamic:true})}}},update:function(){var a=this;if(a.isVisible()){a.isHiding=true;a.hide()}Ext.window.Window.prototype.update.apply(this,arguments);a.show()},cancelAutoClose:function(){var a=this.closeTask;if(a){a.cancel()}},doAutoClose:function(){var a=this;if(!(a.stickWhileHover&&a.mouseIsOver)){a.close()}else{a.closeOnMouseOut=true}},doDestroy:function(){this.removeFromAnchor();this.cancelAutoClose();Ext.window.Window.prototype.doDestroy.call(this)},onMouseEnter:function(){this.mouseIsOver=true},onMouseLeave:function(){var a=this;a.mouseIsOver=false;if(a.closeOnMouseOut){a.closeOnMouseOut=false;a.close()}},removeFromAnchor:function(){var c=this,b,a;if(c.anchor){b=c.getToasts();a=Ext.Array.indexOf(b,c);if(a!==-1){Ext.Array.erase(b,a,1);for(;a